1 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
4 adjust_address_nv call.
6 2002-04-29 Janis Johnson <janis187@us.ibm.com>
8 * doc/install.texi (Testing): Provide additional information, and
9 a stronger encouragement, for running the testsuites.
11 2002-04-29 DJ Delorie <dj@redhat.com>
13 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
16 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
19 Solaris 2 <widec.h> if missing.
20 * fixinc/fixincl.x: Regenerate.
21 * fixinc/tests/base/widec.h: New file.
23 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
25 * toplev.c (f_options): Add "profile" switch so that
26 -fno-profile can be used to disable -p.
28 2002-04-29 Bernd Schmidt <bernds@redhat.com>
30 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
32 * tree.c (build_common_tree_nodes_2): Likewise.
33 * tree.h (enum tree_index): Likewise.
34 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
36 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
38 (init_mmx_sse_builtins): Initialize SSE2 builtins.
39 (ix86_expand_builtin): Add support for SSE2 builtins.
40 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
41 (VALID_SSE_REG_MODE): Use it.
42 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
43 (enum ix86_builtins): Add SSE2 builtins.
44 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
45 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
46 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
47 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
48 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
49 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
50 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
51 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
52 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
53 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
54 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
55 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
56 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
57 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
58 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
59 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
60 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
61 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
62 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
63 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
64 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
65 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
66 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
67 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
68 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
69 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
70 lfence_insn): New patterns.
71 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
72 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
74 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
76 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
78 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
80 * doc/contrib.texi (Contributors): Add Paolo Carlini and
82 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
83 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
84 and CPU instead of cpu.
86 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
88 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
90 (lang_independent_options): Add -fif-conversion, -fif-conversion2
91 (rest_of_compilation): Do if conversion only when asked for.
92 (parse_options_and_default_flags): Set new variables to 1 for -O1
93 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
95 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
97 * i386.c (dbx64_register_map): Fix typo.
99 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
101 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
102 real_one_half, real_bb_freq_max): New static variables.
103 (debug_profile_bbauxs): Kill.
104 (process_note_predictions): Kill unused variable.
105 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
107 (propagate_freq): Use REAL_ARITHMETICS.
108 (estimate_bb_frequencies): Likevise; init new static variables.
109 * Makefile.in (predict.o): Add dependency on real.h
111 2002-04-28 David S. Miller <davem@redhat.com>
114 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
115 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
116 several {reads,writes} instead.
117 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
120 2002-04-27 David S. Miller <davem@redhat.com>
123 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
126 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
127 including signal.h and sys/ucontext.h, not needed.
129 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
131 * varasm.c (output_constant_def): Correct test for not calling
132 ENCODE_SECTION_INFO for INTEGER_CST.
134 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
136 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
137 keep most cases as function eval_token.
138 (eval_token): New function.
139 (_cpp_parse_expr): Read token here for improved diagnostics.
140 Don't use op_as_text. Detect bad ':' here.
141 (reduce): Don't detect bad ':' here.
142 (op_as_text): Remove.
143 * cpphash.h (_cpp_test_assertion): Change prototype.
144 * cpplib.c (_cpp_test_assertion): Change prototype.
146 2002-04-28 Richard Henderson <rth@redhat.com>
149 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
150 (ggc_mark_rtx_children): New.
152 2002-04-28 Jakub Jelinek <jakub@redhat.com>
155 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
156 after call peepholes for UltraSPARC.
157 (call + jump 64-bit peepholes): Remove.
159 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
162 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
163 result as temporary value.
165 2002-04-28 Jakub Jelinek <jakub@redhat.com>
168 * toplev.c (rest_of_compilation): Only run regrename and copy
169 propagation if optimizing.
171 2002-04-28 Jakub Jelinek <jakub@redhat.com>
174 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
175 register of REGNO_DECL (i).
176 * Makefile.in (reload1.o): Add $(TREE_H).
178 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
180 * cppexp.c (lex): Update to use state.skip_eval.
181 (struct op): Remove prio and flags members.
182 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
183 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
184 (LEFT_ASSOC): New macro.
185 (optab): New table of operator priorities and flags.
187 (_cpp_parse_expr): Clean up logic. Return bool. Use a
188 malloc-ed parser stack.
189 (reduce): New; reduce the operator stack.
190 (_cpp_expand_op_stack): Expand the operator stack as necessary.
191 * cpphash.h (struct op): Predeclare.
192 (struct cpp_reader): New members op_stack, op_limit.
193 (struct lexer_state): New member skip_eval.
194 (_cpp_parse_expr): Update.
195 (_cpp_expand_op_stack): New.
196 * cpplib.c (do_if): Update.
197 * cppinit.c (cpp_create_reader): Create op stack.
198 (cpp_destroy): And destroy it.
199 * cpplib.h (CPP_LAST_CPP_OP): Correct.
200 (TTYPE_TABLE): Correct.
202 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
205 * c-decl.c (duplicate_decls): Call merge_weak.
206 * c-pragma.c (apply_pragma_weak): Warn about misuse.
207 * output.h (merge_weak): Prototype merge_weak.
208 * varasm.c (merge_weak): New function.
209 (declare_weak): Make sure we don't give an error on VAR_DECLs.
210 Mark RTL with SYMBOL_REF_WEAK.
212 2002-04-27 Kurt Garloff <garloff@suse.de>
214 * tree-inline.c (inlinable_function_p): Improve heuristics
215 by using a smoother function to cut down allowable inlinable size.
216 * param.def: Add parameters max-inline-insns-single,
217 max-inline-slope, min-inline-insns that determine the exact
218 shape of the above function.
221 2002-04-26 Richard Henderson <rth@redhat.com>
223 * c-parse.in (malloced_yyss, malloced_yyvs): New.
224 (yyoverflow): Re-add. Set them.
225 (free_parser_stacks): New.
226 * c-common.h: Declare it.
227 * c-lex.c (c_common_parse_file): Call it.
229 2002-04-26 Richard Henderson <rth@redhat.com>
231 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
234 2002-04-26 Eric Christopher <echristo@redhat.com>
237 * config/mips/mips.c (mips_issue_rate): Define. New function.
238 (TARGET_SCHED_ISSUE_RATE): Use.
240 2002-04-25 David S. Miller <davem@redhat.com>
243 * reorg.c (optimize_skip): Do not allow exception causing
244 instructions to be considered for delay slots.
245 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
246 (relax_delay_slots): Do not try to consider exception causing
247 instructions as redundant.
249 2002-04-26 Richard Henderson <rth@redhat.com>
252 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
254 2002-04-26 Mark Mitchell <mark@codesourcery.com>
257 * config/i386/i386.md (untyped_call): Return the value in a float
258 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
261 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
263 * tree.c (tree_int_cst_lt): Compare constants whose types differ
264 in unsigned-ness correctly.
266 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
268 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
269 portable runtime model.
271 2002-04-26 Richard Henderson <rth@redhat.com>
273 * c-parse.in (yyoverflow): Revert.
275 2002-04-26 David Edelsohn <edelsohn@gnu.org>
276 Richard Henderson <rth@redhat.com>
278 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
279 result as temporary value.
281 2002-04-26 Richard Henderson <rth@redhat.com>
284 * c-common.c (fix_string_type): Split out of ...
285 (combine_strings): ... here. Take a varray, not a tree list.
286 (c_expand_builtin_printf): Use fix_string_type.
287 * c-common.h: Update decls.
288 * c-parse.in (string): Remove. Update all uses to use STRING
289 instead, and not call combine_strings.
292 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
293 (build_asm_stmt): Likewise.
294 * objc/objc-act.c (my_build_string): Use fix_string_type.
295 (build_objc_string_object): Build varray for combine_strings.
297 2002-04-26 Bo Thorsen <bo@suse.co.uk>
299 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
302 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
304 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
305 (HAVE_NO_R_OPERAND): Remove.
306 (HAVE_VALUE): Remove.
307 (op_to_prio): Update.
308 (UNARY): Don't alter flags.
309 (_cpp_parse_expr): want_value used to indicate whether
310 a number or unary operator is expected next. Distinguish
311 unary and binary +/-.
312 (op_as_text): Update for unary operators.
314 2002-04-25 Richard Henderson <rth@redhat.com>
317 * c-parse.in (yyoverflow): New.
319 2002-04-25 Richard Henderson <rth@redhat.com>
322 * c-common.c (shorten_compare): Simplfy conditions leading to
323 the generation of a warning.
325 2002-04-25 Richard Henderson <rth@redhat.com>
328 * expmed.c (extract_bit_field): Fall through to generic code rather
329 than aborting on subreg special case.
331 2002-04-25 David S. Miller <davem@redhat.com>
333 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
336 2002-04-25 Steve Christiansen <smc@us.ibm.com>
338 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
340 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
342 * c-decl.c (grokdeclarator): Remove outdated ??? note
343 on invalid declaration of flexible array members.
345 2002-04-25 Richard Henderson <rth@redhat.com>
347 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
349 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
351 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
352 needed by the compiler, even if they are used as global regs.
354 2002-04-25 Matt Hiller <hiller@redhat.com>
356 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
358 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
359 of the corresponding functions.
360 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
363 2002-04-25 Matt Hiller <hiller@redhat.com>
365 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
367 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
368 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
369 registers, adjust comment accordingly.
370 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
371 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
372 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
373 for coprocessor registers.
374 (ADDITIONAL_REGISTER_NAMES): Include
375 ALL_COP_ADDITIONAL_REGISTER_NAMES.
377 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
378 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
379 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
380 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
381 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
383 (mips_char_to_class): Adjust comment to include coprocessor
386 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
388 (mips_reg_names, mips_regno_to_class): Include coprocessor
390 (mips_sw_reg_names): Ditto, make non-static.
391 (mips_move_1word): Handle moves to and from coprocessor registers.
392 (mips_move_2words): Handle moves to and from coprocessor
394 (mips_class_max_nregs, mips_register_move_cost): Handle
395 coprocessor register classes.
396 (override_options): Initialize mips_char_to_class and
397 mips_hard_regno_mode_ok properly for coprocessor registers.
399 * config/mips/mips.md (movdi_internal, movdi_internal2,
400 movsi_internal1, movsi_internal2): Add constraint-sets for
401 coprocessor registers.
402 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
403 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
405 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
406 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
408 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
409 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
411 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
412 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
415 * doc/tm.texi: Document feature.
417 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
419 * integrate.c (function_attribute_inlinable_p): Simplify.
420 Check the table pointer is not NULL.
422 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
424 * doc/c-tree.texi: Fix typo in introduction.
426 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
428 * c-common.h (c_common_parse_file): Update.
429 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
430 * c-lex.c (YYDEBUG): Get from c-lex.h.
431 (c_common_parse_file): Update.
432 * c-lex.h (YYDEBUG, yydebug): New.
433 * c-parse.in (YYDEBUG): Get from c-lex.h.
434 (c_set_yydebug): Remove.
435 * c-tree.h (c_set_yydebug): Remove.
436 * langhooks-def.h (lhd_do_nothing_i): New.
437 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
438 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
439 * langhooks.c (lhd_do_nothing_i): New.
440 (lhd_set_yydebug): Remove.
441 * langhooks.h (struct lang_hooks): Update.
442 * toplev.c (set_yydebug): New.
443 (compile_file): Update call to parse_file hook.
444 (decode_d_option): Update.
446 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
448 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
450 * loop.c (load_mems): Don't change the interface of called functions.
452 * calls.c (expand_call): Take current_function_pretend_args_size
453 into account when setting argblock for sibcalls.
455 2002-04-24 Matt Hiller <hiller@redhat.com>
457 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
460 * cpplex.c (skip_line_comment): Process comment one multibyte
461 character at a time rather than one char at a time, if
463 (parse_string): Process string one multibyte character at a time
464 rather than one char at a time, if appropriate.
465 * c-lex.c (lex_string): Lex and copy multibyte strings
467 * cpplib.h (cppchar_t): Change to unsigned.
469 2002-04-24 Richard Henderson <rth@redhat.com>
472 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
475 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
477 * sh.c (sh_va_arg): If argument was passed by reference,
478 dereference the pointer.
480 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
482 * sh.md (divsi3_i4_media): Use match_operand for input values
483 rather than hard registers.
484 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
485 unnecessarily through hard registers. Keep copies of pseudo
486 registers outside of the libcall sequence.
488 * sh.md (casesi_shift_media): Add modes.
490 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
493 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
495 * attribs.c (c_common_attribute_table): Move table and handlers
497 (format_attribute_table, lang_attribute_table,
498 lang_attribute_common): Remove.
499 (init_attributes): Replace NULL pointers with pointers to the
501 (handle_packed_attribute, handle_nocommon_attribute,
502 handle_common_attribute, handle_noreturn_attribute,
503 handle_noinline_attribute, handle_always_inline_attribute,
504 handle_used_attribute, handle_unused_attribute,
505 handle_const_attribute, handle_transparent_union_attribute,
506 handle_constructor_attribute, handle_destructor_attribute,
507 handle_mode_attribute, handle_section_attribute,
508 handle_aligned_attribute, handle_weak_attribute,
509 handle_alias_attribute, handle_visibility_attribute,
510 handle_no_instrument_function_attribute, handle_malloc_attribute,
511 handle_no_limit_stack_attribute, handle_pure_attribute,
512 handle_deprecated_attribute, handle_vector_size_attribute,
513 vector_size_helper): Move to c-common.c.
514 * c-common.c (c_common_attribute_table,
515 handle_packed_attribute, handle_nocommon_attribute,
516 handle_common_attribute, handle_noreturn_attribute,
517 handle_noinline_attribute, handle_always_inline_attribute,
518 handle_used_attribute, handle_unused_attribute,
519 handle_const_attribute, handle_transparent_union_attribute,
520 handle_constructor_attribute, handle_destructor_attribute,
521 handle_mode_attribute, handle_section_attribute,
522 handle_aligned_attribute, handle_weak_attribute,
523 handle_alias_attribute, handle_visibility_attribute,
524 handle_no_instrument_function_attribute, handle_malloc_attribute,
525 handle_no_limit_stack_attribute, handle_pure_attribute,
526 handle_deprecated_attribute, handle_vector_size_attribute,
527 vector_size_helper): Move from attribs.c.
528 * c-common.h (c_common_attribute_table,
529 c_common_format_attribute_table): New.
530 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
531 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
532 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
533 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
534 (LANG_HOOKS_INITIALIZER): Update.
535 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
536 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
537 * target.h: Update comment.
538 * tree.c (default_target_attribute_table): Remove.
539 * tree.h (default_target_attribute_table, format_attribute_table,
540 lang_attribute_table, lang_attribute_common): Remove.
542 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
543 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
545 2002-04-24 Jason Merrill <jason@redhat.com>
547 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
548 * dwarf2out.c (dwarf_attr_name): Support it.
549 (gen_array_type_die): Emit it.
550 (lookup_type_die): No special handling for VECTOR_TYPE.
551 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
553 2002-04-24 Richard Henderson <rth@redhat.com>
555 * config/mips/mips.md (movdi_usd): Renumber.
557 2002-04-24 David S. Miller <davem@redhat.com>
560 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
561 32-bit Sparc and current_function_returns_struct is true.
563 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
565 * loop.c (canonicalize_condition): Use gen_int_mode.
567 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
569 * config/rs6000/altivec.h: Cleanup file. Add non individual
613 (vec_lde): Add vector float variant.
618 (vec_vmhaddshs): New.
640 (vec_vmladduhm): New.
641 (vec_vmhraddshs): New.
674 (vec_vrsqrtefp): New.
726 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
729 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
730 added literals from substracted literals.
731 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
732 (fold) [associate]: Preserve MINUS_EXPR if needed.
734 2002-04-23 Zack Weinberg <zack@codesourcery.com>
736 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
739 2002-04-23 Tom Tromey <tromey@redhat.com>
741 * gcc.c: Added --resource. For PR java/6314.
743 2002-04-23 David O'Brien <obrien@FreeBSD.org>
745 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
746 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
749 2002-04-23 David O'Brien <obrien@FreeBSD.org>
751 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
753 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
755 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
757 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
758 (ix86_expand_clrstr): Fix typo.
759 * loop.c (gen_load_of_final_value): New.
760 (loop_givs_rescan, strength_reduce, check_dbra_loop):
763 2002-04-23 Roger Sayle <roger@eyesopen.com>
765 * builtins.c (builtin_memset_gen_str): New function.
766 (expand_builtin_memset): Optimize the case of constant length, but
769 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
771 * config/rs6000/altivec.h (vec_step): Remove extraneous
773 (vec_ctu): Cast return.
775 2002-04-23 Alan Modra <amodra@bigpond.net.au>
778 * function.h: (struct function): Add profile_label_no field.
779 (current_function_profile_label_no): Define.
780 * function.c: (profile_label_no): New static var.
781 (expand_function_start): Increment it, and copy to
782 current_function_profile_label_no.
783 * output.h (profile_label_no): Delete.
784 * final.c (profile_label_no): Delete.
785 (profile_function): Use current_function_profile_label_no.
786 (final_end_function): Don't increment profile_label_no here.
787 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
788 profile_label_no with current_function_profile_label_no.
789 * config/pa/pa.c (current_function_number): Delete.
790 (pa_output_function_prologue): Don't output profile label here.
791 (hppa_profile_hook): Use label_no param rather than
792 current_function_number.
793 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
794 * config/pa/pa.h: .. here.
795 (FUNCTION_PROFILER): Output profile label here.
797 2002-04-22 Eric Christopher <echristo@redhat.com>
799 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
800 patch of 2002-04-09 due to binutils issues.
801 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
803 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
805 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
806 constraint to 'o' for m=r and r=m alternatives.
807 ("*movv8hi_internal1"): Same.
808 ("*movv16qi_internal1"): Same.
809 ("*movv4sf_internal1"): Same.
811 2002-04-22 Janis Johnson <janis187@us.ibm.com>
813 * rtl.h (RTX_FLAG): New macro.
814 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
815 * final.c (alter_subreg): Use macro to access rtx flag.
816 * integrate.c (copy_rtx_and_substitute): Use new access macro.
817 * print-rtl.c (print_rtx): Use new access macro.
819 * cse.c (insert): Check rtx code before accessing flag.
821 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
822 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
823 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
824 convert_const_symbol_ref, make_canonical, make_alternative_compare,
825 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
826 simplify_test_exp, optimize_attrs, simplify_by_exploding,
827 find_and_mark_used_attributes, unmark_used_attributes,
828 add_values_to_cover, simplify_with_current_value,
829 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
830 copy_rtx_unchanging, main): Use new access macros.
832 2002-04-22 Tom Rix <trix@redhat.com>
834 * expmed.c (init_expmed): Generate shifted constant once.
836 2002-04-22 Zack Weinberg <zack@codesourcery.com>
838 * c-lex.c (lex_charconst): Call convert to get constant in
839 proper type; don't just smash the type field.
842 * config.gcc: Add list of obsolete configurations. Disallow
843 building these without --enable-obsolete.
844 * doc/install.texi: Document --enable-obsolete and obsoletion
845 policy. Mention obsoletion of individual targets in
848 2002-04-22 Richard Henderson <rth@redhat.com>
850 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
852 2002-04-22 Mark Mitchell <mark@codesourcery.com>
855 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
856 (walk_fixup_memory_subreg): Likewise.
857 (fixup_var_refs_insn): Adjust accordingly.
858 (fixup_var_refs_1): Likewise.
860 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
862 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
863 LIBPATH_ARCH64_SPEC): Define.
864 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
865 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
866 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
867 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
869 2002-04-22 Joel Sherrill <joel@OARcorp.com>
871 * gthr-rtems.h: Correct prototypes to remove warnings.
873 2002-04-22 Richard Henderson <rth@redhat.com>
876 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
878 * gcse.c (free_insn_expr_list_list): New.
879 (clear_modify_mem_tables): Use it. Fix bit set usage.
880 (canon_list_insert): Use EXPR_LISTs for expressions.
881 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
883 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
885 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
886 file change and include code to _cpp_pop_buffer.
887 * cpphash.h (struct pending_option): Predeclare.
888 (struct cpp_reader): New member next_include_file.
889 (_cpp_pop_file_buffer): Update.
890 (_cpp_push_next_buffer): Update, rename.
891 * cppinit.c (cpp_destroy): Free include chain and pending here.
892 (cpp_finish_options): Simplify.
893 (_cpp_push_next_buffer): Rename and clean up.
894 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
896 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
898 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
900 * config/rs6000/altivec.h (vec_xor): Add variant for both args
901 being vector signed int.
903 (vec_xor): Add variant for both args being vector signed char.
904 Remove redundant variant.
907 2002-04-21 David S. Miller <davem@redhat.com>
909 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
910 compare mode in output RTL.
912 2002-04-22 David Edelsohn <edelsohn@gnu.org>
914 * config/rs6000/rs6000.c (rs6000_override_options): Correct
915 style and formatting of previous patch.
917 2002-04-22 Alan Modra <amodra@bigpond.net.au>
919 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
920 flag_pic for ABI_AIX.
922 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
924 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
925 * cppfiles.c (read_include_file): Similarly.
926 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
927 uxstrdup ustrchr, ufputs): Similarly.
928 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
929 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
930 cpp_ideq, parse_identifier, parse_number): Similarly.
931 * cpplib.c (struct directive, dequote_string, D, run_directive,
932 cpp_push_buffer): Similarly.
933 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
934 _cpp_create_definition, check_trad_stringification,
935 cpp_macro_definition): Similarly.
937 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
939 * cppmacro.c (funlike_invocation_p): Don't step back
942 2002-04-21 David Edelsohn <edelsohn@gnu.org>
944 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
947 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
949 * doc/invoke.texi: Remove Chill references.
950 * doc/gcc.texi: Update last modified date.
952 2002-04-20 Kazu Hirata <kazu@hxi.com>
954 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
955 push and pop. Replace add.l with add.w.
957 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
959 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
960 multiply instructions for H8/300H case.
962 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
964 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
965 Bum three instructions from each routine.
967 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
969 * Makefile.in: Update.
970 * decl.c (push_c_function_context, pop_c_function_context,
971 mark_c_function_context): Rename for consistency.
972 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
973 * c-tree.h (push_c_function_context, pop_c_function_context,
974 mark_c_function_context): Rename for consistency.
975 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
976 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
977 * function.c (init_lang_status, save_lang_status,
978 restore_lang_status, mark_lang_status, free_lang_status):
980 (push_function_context_to, pop_function_context_from,
981 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
983 * function.h (init_lang_status, save_lang_status,
984 restore_lang_status, mark_lang_status, free_lang_status):
986 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
987 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
988 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
989 LANG_HOOKS_FUNCTION_INITIALIZER): New.
990 (LANG_HOOKS_INITIALIZER): Update.
991 (lhd_do_nothing_f): New.
992 * langhooks.h (struct lang_hooks_for_functions): New.
993 (struct lang_hooks): New hooks.
994 * langhooks.c (lhd_do_nothing_f): New.
996 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
997 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
999 2002-04-19 David S. Miller <davem@redhat.com>
1001 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
1002 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
1004 2002-04-19 Jakub Jelinek <jakub@redhat.com>
1006 PR optimization/3756
1007 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
1008 x = ((int) y < 0) ? cst1 : cst2.
1010 2002-04-19 Jakub Jelinek <jakub@redhat.com>
1013 * function.c: Reapply patch for c/6358.
1014 (expand_function_end): Copy decl_rtl's mode, not
1015 current_function_return_rtx mode.
1017 2002-04-19 Joel Sherrill <joel@OARcorp.com>
1019 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
1022 2002-04-19 Tom Tromey <tromey@redhat.com>
1024 * doc/install.texi (Specific): Update status of Solaris 2.8.
1027 2002-04-19 Andreas Schwab <schwab@suse.de>
1029 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
1030 (PUT_REAL): Restore old definition.
1032 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
1033 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1035 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
1036 binutils 2.11.2 and higher generate smaller binaries than Sun's
1039 2002-04-19 Mark Mitchell <mark@codesourcery.com>
1042 * toplev.c (rest_of_compilation): Do not defer functions for which
1043 TREE_SYMBOL_REFERENCED has already been set.
1045 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
1047 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
1050 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
1052 * builtins.c: Include langhooks.h.
1053 (lang_type_promotes_to): Remove.
1054 (expand_builtin_va_arg): Use new hook.
1055 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
1056 (simple_type_promotes_to): Move to c-typeck.c.
1057 * c-common.h (simple_type_promotes_to): Remove.
1058 * c-decl.c (duplicate_decls, grokdeclarator): Update.
1059 * c-format.c: Include langhooks.h.
1060 (check_format_types): Update.
1061 * c-tree.h (c_type_promotes_to): New.
1062 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
1063 (type_lists_compatible_p): Update.
1064 * langhooks-def.h (lhd_type_promotes_to): New.
1065 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
1066 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1067 * langhooks.c (lhd_type_promotes_to): New.
1068 * langhooks.h (struct lang_hooks_for_types): New hook.
1069 * tree.h (lang_type_promotes_to): Remove.
1071 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
1073 2002-04-18 Richard Henderson <rth@redhat.com>
1075 * function.c: Revert patch for c/6358.
1077 2002-04-18 Richard Henderson <rth@redhat.com>
1079 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
1080 blocks. Handle multiple references to the TRAP block. Handle
1081 non-adjacent THEN and OTHER blocks.
1083 2002-04-18 Richard Henderson <rth@redhat.com>
1085 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
1086 crash with no type for by-mode libcalls.
1088 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
1090 2002-04-18 Bob Wilson <bob.wilson@acm.org>
1092 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
1093 __xtensa_nonlocal_goto): Use a syscall instructions to flush
1094 the register windows.
1096 2002-04-18 Zack Weinberg <zack@codesourcery.com>
1098 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
1099 appropriate. Document need for extended precision even when
1100 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
1101 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
1102 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
1103 instead of relying on later syntax error when REAL_WIDTH > 5.
1104 * real.c: Define NE based only on whether or not we have a
1105 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
1106 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
1107 define GET_REAL and PUT_REAL as simple memcpy operations; no
1108 need to byteswap or round.
1109 Use #error instead of #ifdef-ing out the entire file, for
1110 prompt error detection.
1112 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
1114 2002-04-18 David S. Miller <davem@redhat.com>
1116 * config/sparc/sparc.h (BRANCH_COST): Define.
1118 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
1121 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
1123 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
1124 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
1125 propagate_block calls after relaxation loop using new variable
1126 stabilized_prop_flags.
1128 2002-04-18 Richard Henderson <rth@redhat.com>
1130 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
1131 (ia64_va_arg): Expect variable sized types by reference.
1132 * config/ia64/ia64-protos.h: Update.
1133 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
1134 ia64_function_arg_pass_by_reference.
1136 2002-04-18 Richard Henderson <rth@redhat.com>
1138 * ifcvt.c: Include except.h.
1139 (block_has_only_trap): Break out from find_cond_trap.
1140 (find_cond_trap): Use it. Always delete the trap block.
1141 (merge_if_block): Allow then block null. Be less simplistic about
1142 what insns can end a block.
1143 * Makefile.in (ifcvt.o): Depend on except.h.
1145 * config/ia64/ia64.md (trap, conditional_trap): New.
1147 2002-04-18 Jakub Jelinek <jakub@redhat.com>
1150 * function.c (assign_parms): Assign hard current_function_return_rtx
1152 (expand_function_end): ...not here.
1154 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
1156 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
1157 * c-tree.h (c_incomplete_type_error): New.
1158 * c-typeck.c (require_complete_type, build_component_ref): Update.
1159 (incomplete_type_error): Rename.
1160 * langhooks-def.h (lhd_incomplete_type_error): New.
1161 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
1162 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1163 * langhooks.c (lhd_incomplete_type_error): New.
1164 * langhooks.h (struct lang_hooks_for_types): New hook.
1165 * tree.c (size_in_bytes): Use new hook.
1166 * tree.h (incomplete_type_error): Remove.
1168 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
1170 2002-04-18 Zack Weinberg <zack@codesourcery.com>
1172 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
1173 TARGET_FLOAT_FORMAT blocks.
1175 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1177 * doc/install.texi (Downloading the source): Do not mention Chill
1178 any longer, but mention Ada.
1179 (Configuration): Do not mention Chill any longer.
1181 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
1183 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
1185 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
1187 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
1190 2002-04-18 Jakub Jelinek <jakub@redhat.com>
1192 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
1193 instead of unsigned_type.
1195 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
1197 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
1198 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
1201 2002-04-18 Bernd Schmidt <bernds@redhat.com>
1203 * attribs.c (vector_type_node_list): New static variable.
1204 (handle_vector_size_attribute): Use it to avoid generating a
1205 new type node each time we are called.
1207 * combine.c (subst): Avoid trying to make a vector mode subreg of
1208 an integer constant.
1209 (gen_lowpart_for_combine): Likewise.
1211 2002-04-18 Roger Sayle <roger@eyesopen.com>
1212 Jakub Jelinek <jakub@redhat.com>
1214 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
1215 for integer constant c (if x has unsigned type or sign bit is not
1216 set in c). This folds the zero/sign extension into the bit-wise and
1219 2002-04-18 Jakub Jelinek <jakub@redhat.com>
1222 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
1225 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
1227 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
1229 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
1231 * gcc.c (read_specs): Detect and fail if an attempt is made to
1232 rename a spec string to an already existing string.
1234 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1236 * config/s390/s390.c (legitimize_pic_address): Do not generate
1237 illegal address constant without CONST.
1239 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1241 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
1242 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1244 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1246 PR optimization/6305
1247 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
1248 to make sure previous reloads are taken into account. Generate
1249 better code if one operand is an in-range immediate constant.
1251 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
1253 * doc/install.texi (Building): libgcj requires GNU make.
1255 2002-04-17 Jakub Jelinek <jakub@redhat.com>
1258 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
1259 even if hard quad and register is not floating.
1260 (movtf reg<-mem split): Disallow splitting if hard quad and
1261 register is floating.
1262 (movtf mem<-reg split): Likewise.
1263 * config/sparc/sparc.c (fp_register_operand): New predicate.
1264 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
1266 2002-04-17 Zack Weinberg <zack@codesourcery.com>
1268 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
1269 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
1270 (unprotoize.o): Ditto. Build from protoize.c. Define
1271 UNPROTOIZE on command line.
1272 * protoize.c: Include cppdefault.h. Delete include_defaults.
1273 (in_system_include_dir): Use cpp_include_defaults (defined in
1275 * unprotoize.c: Delete file.
1277 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
1279 * config/rs6000/altivec.h (vec_ld): Add array variants.
1283 2002-04-17 Alan Matsuoka <alanm@redhat.com>
1284 Aldy Hernandez <aldyh@redhat.com>
1286 * config/rs6000/altivec.h: Define __ALTIVEC__.
1293 Add parentheses to all macro arguments.
1295 2002-04-16 Richard Henderson <rth@redhat.com>
1298 * except.c (remove_eh_handler): Insert inner regions at beginning
1299 of sibling chain. Refactor expressions.
1301 2002-04-16 Richard Henderson <rth@redhat.com>
1303 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
1304 * config/sparc/sol2-gas-bi.h: New file.
1305 * config.gcc (sparc*-solaris): Add it as needed.
1306 * configure.in (AS_SPARC64_FLAG): Remove check.
1307 * config.in, configure: Regenerate.
1309 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
1311 2002-04-16 Richard Henderson <rth@redhat.com>
1313 * config/mips/mips.c (override_options): Don't override N32 for
1317 * config/mips/mips.md (can_delay): Split out of existing define_delays.
1318 (HILO_delay): Set can_delay false.
1320 2002-04-16 Dale Johannesen <dalej@apple.com>
1322 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
1323 instruction addresses.
1324 (rs6000_output_function_epilogue): Likewise.
1326 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
1328 * c-parse.in (poplevel, compstmt_start,
1329 compstmt_primary_start): Add ending ';', in accordance
1332 2002-04-16 Richard Henderson <rth@redhat.com>
1334 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
1335 Adjust tm_file order to get TARGET_DEFAULT set properly.
1336 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
1337 * doc/install.texi (sparc-solaris): Update.
1339 2002-04-16 Dale Johannesen <dalej@apple.com>
1341 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
1342 comparison operands do not match each other or if modes of
1343 conditions do not match result.
1345 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
1348 * config/s390/s390.md (mulsidi3): Set both subregs of the
1351 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
1353 * config/rs6000/altivec.h (vec_addc): Type check.
1355 2002-04-16 Jakub Jelinek <jakub@redhat.com>
1358 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
1360 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
1362 2002-04-15 Richard Henderson <rth@redhat.com>
1364 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
1365 call_really_used_regs too.
1367 2002-04-15 Richard Henderson <rth@redhat.com>
1369 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
1371 2002-04-15 David S. Miller <davem@redhat.com>
1373 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
1376 2002-04-16 Jakub Jelinek <jakub@redhat.com>
1379 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
1380 CONST_VECTOR is { 0, ... 0 }.
1382 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
1384 * doc/install.texi (Installing GCC: Configuration): Clarify
1385 the only supported ways to configure gcc.
1387 2002-04-15 Roland McGrath <roland@frob.com>
1389 * config.gcc (alpha*-*-gnu*): New target configuration.
1390 * config/alpha/gnu.h: New file for it.
1391 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
1393 2002-04-16 Mark Mitchell <mark@codesourcery.com>
1395 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
1396 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
1397 * tree.h (expand_start_stmt_expr): Update prototype.
1398 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
1399 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
1400 on the STMT_EXPR created for the inline function.
1402 2002-04-15 Richard Henderson <rth@redhat.com>
1404 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
1405 config/i386/linux-aout.h, config/i386/linux-oldld.h,
1406 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
1407 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
1408 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
1409 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
1410 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
1411 Define __gnu_linux__, not gnu_linux.
1412 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
1414 2002-04-15 Mark Mitchell <mark@codesourcery.com>
1416 Remove Chill front end.
1417 * gcc.c (default_compilers): Remove Chill entries.
1418 * ch: Remove directory.
1419 * doc/frontends.texi: Remove information about Chill.
1420 * doc/sourcebuild.texi: Likewise.
1421 * doc/standards.texi: Likewise.
1423 2002-04-15 Douglas B Rupp <rupp@gnat.com>
1425 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
1426 (LONGLONG_STANDALONE): Define.
1428 2002-04-15 David S. Miller <davem@redhat.com>
1430 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
1431 Call emit_library_call with LCT_NORMAL.
1432 (sparc_initialize_trampoline): Use LCT_foo instead of
1433 magic constant in emit_library_call invocations.
1434 (sparc64_initialize_trampoline): Likewise.
1435 (sparc_profile_hook): Likewise.
1436 * config/sparc/sparc.md: Likewise.
1438 * config/sparc/sparc.c (sparc_extra_constraint_check):
1439 Fix type of argument 'c'.
1440 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
1443 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
1445 * diagnostic.h (output_buffer_state): Redefine.
1446 (output_format_decoder): New macro.
1447 (output_prefixing_rule): Likewise.
1448 (output_line_cutoff): Likewise.
1449 (diagnostic_format_decoder): Adjust.
1450 (diagnostic_prefixing_rule): Likewise.
1451 (diagnostic_line_cutoff): Likewise.
1452 (diagnostic_state): Likewise.
1453 (diagnostic_kind_count): Likewise.
1454 (diagnostic_buffer): Now a macro.
1456 * diagnostic.c (diagnostic_buffer): Remove definition.
1457 (output_is_line_wrapping): Adjust.
1458 (set_real_maximum_length): Likewise.
1459 (output_set_maximum_length): Likewise.
1460 (init_output_buffer): Likewise.
1461 (lhd_print_error_function): Likewise.
1462 (output_do_verbatim): Likewise.
1464 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
1466 * cpperror.c (print_location): Don't print include chain
1468 (cpp_begin_message): Update to use DL_ macros.
1469 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
1470 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
1471 cpp_notice, cpp_notice_from_errno): Remove.
1472 (cpp_error, cpp_error_with_line): Update to take a diagnostic
1475 * cppexp.c (CPP_ICE): Remove.
1476 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
1477 lex, integer_overflow, _cpp_parse_expr): Update.
1478 * cppfiles.c (read_include_file, find_include_file,
1479 handle_missing_header, _cpp_read_file, remap_filename): Update.
1480 * cpphash.h (enum error_type): Remove.
1481 (_cpp_begin_message): Update.
1482 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
1483 cpp_handle_option, cpp_post_options): Update.
1484 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
1485 skip_whitespace, parse_identifier, parse_slow, parse_string,
1486 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
1487 cpp_interpret_charconst): Update.
1488 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
1489 lex_macro_node, do_undef, glue_header_name, parse_include,
1490 do_include_common, read_flag, do_line, do_linemarker, do_ident,
1491 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
1492 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
1493 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
1494 _cpp_pop_buffer, do_diagnostic): Update.
1495 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
1496 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
1497 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
1498 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
1499 cpp_notice, cpp_notice_from_errno): Remove.
1500 (cpp_error, cpp_error_with_line): Update to take a diagnostic
1503 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
1504 collect_args, enter_macro_context, save_parameter, parse_params,
1505 _cpp_create_definition, check_trad_stringification,
1506 cpp_macro_definition): Update.
1507 * cppmain.c (cpp_preprocess_file): Update.
1508 * fix-header.c (read_scan_file): Update.
1510 2002-04-14 Andreas Schwab <schwab@suse.de>
1512 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
1514 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
1516 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
1518 2002-04-13 Mark Mitchell <mark@codesourcery.com>
1520 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
1523 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
1525 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
1527 2002-04-13 Joel Sherrill <joel@OARcorp.com>
1529 * config/sparc/t-elf: Enable v8 multilibs. Impacts
1530 sparc-elf and sparc-rtems targets.
1532 2002-04-13 Mark Mitchell <mark@codesourcery.com>
1534 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
1535 defined, and __gnu_hurd__ wherever __GNU__ is defined.
1536 * arm/linux-elf.h: Likewise.
1537 * cris/aout.h: Likewise.
1538 * cris/linux.h: Likewise.
1539 * i370/linux.h: Likewise.
1540 * i386/gnu.h: Likewise.
1541 * i386/linux-aout.h: Likewise.
1542 * i386/linux-oldld.h: Likewise.
1543 * i386/linux.h: Likewise.
1544 * i386/linux64.h: Likewise.
1545 * ia64/linux.h: Likewise.
1546 * m68k/linux-aout.h: Likewise.
1547 * m68k/linux.h: Likewise.
1548 * mips/linux.h: Likewise.
1549 * pa/pa-linux.h: Likewise.
1550 * pj/linux.h: Likewise.
1551 * rs6000/sysv4.h: Likewise.
1552 * s390/linux.h: Likewise.
1553 * sh/linux.h: Likewise.
1554 * sparc/linux-aout.h: Likewise.
1555 * sparc/linux.h: Likewise.
1556 * sparc/linux64.h: Likewise.
1557 * xtensa/linux.h: Likewise.
1559 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
1561 * stmt.c (check_unique_operand_names): Expect operand names to
1562 be strings rather than identifiers. Use simple_cst_equal to
1564 (resolve_operand_name_1): Make same identifier to string change here.
1565 * c-parse.in (asm_operand): Convert a named operand into a string.
1566 * cp/parse.y (asm_operand): Likewise.
1568 2002-04-13 Andreas Schwab <schwab@suse.de>
1570 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
1572 2002-04-12 Mark Mitchell <mark@codesourcery.com>
1574 Revert these changes:
1576 2002-04-06 Mark Mitchell <mark@codesourcery.com>
1579 * stor-layout.c (layout_decl): Reset the RTL for the decl.
1581 2002-04-12 Richard Henderson <rth@redhat.com>
1583 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
1584 (sparc*-*-solaris): Clean up header files.
1585 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
1586 and plan on generating 64-bit code.
1587 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
1588 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
1589 * config/sparc/sol2-sld-64.h: Rename ...
1590 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
1591 for AS_SPARC64_FLAG not defined.
1592 * config/sparc/sol2-gld-bi.h: New.
1593 * config/sparc/sol2-sld.h: Remove.
1594 * config/sparc/sol26-sld.h: New.
1595 * config/sparc/sol2.h: Tidy comments.
1596 * doc/install.texi: Document sparc-solaris configury changes.
1598 2002-04-12 Richard Henderson <rth@redhat.com>
1600 * recog.c (offsettable_address_p): Match the logic in adjust_address.
1602 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
1603 in 64-bit mode only. Use only for 32-bit or MEDLOW.
1605 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1607 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
1609 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
1611 * pa.c (pa_can_combine_p): Call extract_insn before calling
1614 2002-04-12 Douglas B Rupp <rupp@gnat.com>
1616 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
1617 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
1618 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
1619 (CPP_PREDEFINES): Handle __declspec.
1620 * config/i386/t-interix (USER_H): Remove.
1622 2002-04-12 DJ Delorie <dj@redhat.com>
1624 * integrate.c (compare_blocks): Make comparisons safe for when
1625 sizeof(int) < sizeof(char *).
1626 (find_block): Likewise.
1628 2002-04-12 Jan Hubicka <jh@suse.cz>
1629 David Edelsohn <edelsohn@gnu.org>
1631 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
1633 (symbol_ref_operand): New.
1634 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
1635 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
1637 2002-04-12 Andreas Schwab <schwab@suse.de>
1639 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
1640 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
1641 overrides the definition in config/svr4.h.
1643 2002-04-12 Eric Norum <eric.norum@usask.ca>
1645 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
1646 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
1647 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
1648 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
1649 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
1650 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
1651 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
1652 definitions to config/rtems.h and make the targets more similar.
1654 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1656 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
1657 POINTERS_EXTEND_UNSIGNED.
1658 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
1659 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
1661 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
1664 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
1666 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
1667 depends on TARGET_SHMEDIA, not TARGET_SH5.
1669 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
1671 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
1672 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
1674 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
1676 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
1679 2002-04-12 Andreas Schwab <schwab@suse.de>
1681 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
1683 2002-04-12 Richard Henderson <rth@redhat.com>
1686 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
1688 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
1689 modes spanning multiple hard regs.
1691 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
1693 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1695 * pa.c (pa_output_function_prologue): Don't accumulate the total
1696 number of code bytes when using TARGET_64BIT, or gas, SOM and not
1697 the portable runtime.
1698 (output_deferred_plabels): Handle 64bit plabels.
1699 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
1700 generating pic code using the GAS assembler for object formats that
1701 are not SOM (ie., ELF32 and ELF64).
1702 (output_millicode_call): Check attribute type if attribute length is 28.
1703 Likewise use $PIC_pcrel$0. Only call get_attr_length and
1704 dbr_sequence_length once.
1705 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
1706 dbr_sequence_length once.
1707 * pa.h (TARGET_SOM): Define if not defined.
1708 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
1709 with GAS and not SOM.
1710 (jump, call_internal_reg, call_value_internal_reg): Likewise.
1711 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
1713 2002-04-11 David O'Brien <obrien@FreeBSD.org>
1715 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
1716 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
1717 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
1718 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
1719 elfos.h and dbxelf.h values are fine now.
1720 * config/i386/freebsd.h, config/alpha/freebsd.h
1721 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
1723 2002-04-11 David O'Brien <obrien@FreeBSD.org>
1725 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
1726 or set Acpu or Amachine. Reformat.
1727 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
1729 (LINK_SPEC): Do not need to undef.
1730 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
1731 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
1732 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
1734 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
1735 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
1736 (LINK_SPEC): Do not need to undef.
1737 (DONT_USE_BUILTIN_SETJMP): Do not define.
1738 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
1739 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
1740 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
1741 Remove trailing spaces.
1742 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
1743 __ELF__, or set Acpu or Amachine. Reformat.
1744 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
1747 2002-04-11 David O'Brien <obrien@FreeBSD.org>
1749 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
1750 all other *-*-freebsd* targets.
1752 2002-04-11 Richard Henderson <rth@redhat.com>
1754 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
1756 2002-04-11 David O'Brien <obrien@FreeBSD.org>
1758 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
1759 Include {cpu}/{cpu}.h thru tm_file.
1760 (alpha*-*-linux*ecoff): Remove target.
1761 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
1762 (LINK_SPEC): Remove, is not OS independent.
1763 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
1764 (LINK_SPEC): Do not need to #undef any longer.
1765 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
1767 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
1769 (LINK_SPEC): Moved here from alpha/elf.h.
1770 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
1772 * config/alpha/linux-ecoff.h: Remove.
1773 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
1774 (CPP_SPEC): Define _POSIX_SOURCE as needed.
1775 (CPP_SUBTARGET_SPEC): Do not define.
1776 (LINK_SPEC): Do not need to #undef any longer.
1777 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
1778 * config/alpha/vms.h: Likewise.
1780 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
1782 * doc/extend.texi: Remove old claim that typedefs cannot have
1783 an alignment attribute.
1785 2002-04-11 Jakub Jelinek <jakub@redhat.com>
1787 PR optimization/6177
1788 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
1789 bitpos is 0 and bitsize CONCAT size.
1791 2002-04-11 Jakub Jelinek <jakub@redhat.com>
1794 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
1796 2002-04-10 David O'Brien <obrien@FreeBSD.org>
1798 * config/alpha/freebsd.h: Minor reformatting.
1799 (CPP_SPEC): Define ELF and add cpp_subtarget.
1800 (ASM_SPEC): No longer needed.
1802 2002-04-11 Richard Henderson <rth@redhat.com>
1804 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
1805 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
1806 (dimode mem/zero splitter): New.
1808 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
1810 * config/cris/cris.c (cris_override_options): Tweak error message
1811 for PIC not implemented.
1813 * config/cris/cris.h: Tweak comments related to parameter-passing.
1815 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
1817 2002-04-10 Richard Henderson <rth@redhat.com>
1819 * except.c (add_ehl_entry): Allow duplicates after landing pad
1822 2002-04-10 David Edelsohn <edelsohn@gnu.org>
1824 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
1826 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
1828 * c-decl.c (c_init_decl_processing): Move generation of
1829 decls for g77_integer_type_node and friends from here ...
1830 * c-common.c (c_common_nodes_and_builtins): ... to here.
1832 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
1834 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
1835 is only used as frame pointer when frame_pointer_needed is true.
1837 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
1840 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
1841 for the fact that the pool entry uses two words.
1842 (movdf_hard_insn): Similarly. Also, ADR instruction can span
1844 (movdf_soft_insn): Similarly.
1845 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
1846 for the fact that the pool entry uses three words.
1848 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
1850 * config/mips/mips.c (mips_va_arg): When using the struct version
1851 of the EABI va_list, allow arguments in the register save area to
1852 take up less room than a stack argument.
1854 2002-04-10 Richard Henderson <rth@redhat.com>
1856 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
1857 if EXPAND_INITIALIZER.
1859 2002-04-09 Richard Henderson <rth@redhat.com>
1861 * config/alpha/alpha.md (movdi_er_maybe_g): New.
1862 * config/alpha/alpha.c (alpha_expand_mov): Use it.
1864 2002-04-10 Alan Modra <amodra@bigpond.net.au>
1866 PR optimization/6233
1867 * rtlanal.c (pure_call_p): New function.
1868 * rtl.h (pure_call_p): Declare.
1869 * loop.c (prescan_loop): Use it to set has_nonconst_call.
1870 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
1872 2002-04-09 Eric Christopher <echristo@redhat.com>
1874 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
1875 information to .comm directive.
1877 2002-04-09 Richard Henderson <rth@redhat.com>
1880 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
1882 2002-04-09 Richard Henderson <rth@redhat.com>
1884 * basic-block.h (flow_delete_block_noexpunge): Declare.
1885 (expunge_block_nocompact): Declare.
1886 * cfg.c (expunge_block_nocompact): Split out from ...
1887 (expunge_block): ... here.
1888 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
1889 (flow_delete_block_noexpunge): Split out from ...
1890 (flow_delete_block): ... here.
1891 * cfgcleanup.c (delete_unreachable_blocks): Compact while
1892 removing dead blocks.
1893 * except.c (exception_handler_labels): Remove.
1894 (exception_handler_label_map): New.
1895 (struct eh_region): Add aka member.
1896 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
1897 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
1898 (for_each_eh_label, for_each_eh_label_1): New.
1899 (init_eh): Register exception_handler_label_map.
1900 (free_eh_status): Use free_region.
1901 (find_exception_handler_labels): Use the map, not the list.
1902 (remove_exception_handler_label): Likewise.
1903 (maybe_remove_eh_handler): Likewise.
1904 (remove_eh_handler): Use the region aka bitmap.
1905 * except.h (exception_handler_labels): Remove.
1906 (for_each_eh_label): Declare.
1907 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
1908 * loop.c (invalidate_loops_containing_label): New.
1909 (find_and_verify_loops): Use it. Use for_each_eh_label.
1910 * sched-rgn.c (is_cfg_nonregular): Use
1911 current_function_has_exception_handlers.
1913 2002-04-09 Richard Henderson <rth@redhat.com>
1915 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
1916 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
1917 Do not return changed status.
1918 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
1919 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
1920 New functions that do return changed status.
1921 * sbitmap.h: Update decls.
1922 * gcse.c, lcm.c: Use _cg functions as needed.
1924 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
1926 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
1927 (sh64-*-elf*, sh-*-rtemself*): Likewise.
1928 * config/sh/embed_bb.c: New file.
1929 * config/sh/embed-elf.h: New file.
1930 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
1931 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
1932 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
1934 (SUBTARGET_CPP_PTR_SPEC): Don't define.
1935 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
1936 Add subtarget_asm_endian_spec.
1937 (ASM_SPEC): Use subtarget_asm_endian_spec.
1938 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
1939 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
1940 (WCHAR_UNSIGNED): Define.
1941 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
1942 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
1943 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
1945 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
1946 (sh_adjust_cost): Likewise.
1947 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
1949 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
1950 (WCHAR_TYPE_SIZE): Likewise.
1951 (ASM_SPEC): Use subtarget_asm_endian_spec.
1952 (SH_ELF_WCHAR_TYPE): #undef/ #define.
1953 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
1954 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
1955 (MAX_WCHAR_TYPE_SIZE): Don't #define .
1956 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
1957 (USER_LABEL_PREFIX): Don't #undef /#define .
1958 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
1959 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
1960 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
1961 (ASM_SPEC): Likewise.
1962 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
1963 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
1964 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
1965 (LIB2FUNCS_EXTRA): Define.
1966 * t-sh64 (LIB2FUNCS_EXTRA): Define.
1967 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
1968 (LIB1ASMFUNCS_CACHE): Define.
1969 (LIB2FUNCS_EXTRA): Redefine empty.
1971 2002-04-08 Richard Henderson <rth@redhat.com>
1973 * reorg.c (get_branch_condition): Use reversed_comparison_code.
1975 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1977 * config/m68hc11/larith.asm (__map_data_section): Fix condition
1978 and optimize for size.
1979 (__do_global_ctors): Fix pointer comparison.
1980 (__do_global_dtors): Likewise.
1982 2002-04-09 David S. Miller <davem@redhat.com>
1984 * config/sparc/sparc.c (sparc_extra_constraint_check): New
1985 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
1986 allow reloading pseudos.
1987 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
1988 * config/sparc/sparc-protos.h: Declare it.
1990 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
1991 unsigned comparison warning.
1992 (output_restore_regs): Mark leaf_function as unused.
1994 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1996 * expr.c (is_aligning_offset): New function.
1997 (expand_expr, case COMPONENT_EXPR): Call it.
1999 2002-04-08 David S. Miller <davem@redhat.com>
2002 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
2004 Make init_priority work on Sparc when using GNU ld.
2005 * config/sparc/linux.h, config/sparc/linux64.h,
2006 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
2007 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
2008 * config/sparc/sol2-gld.h: New file to do the same.
2009 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
2010 sparc/sol2-gld.h to tm_file.
2012 PR optimization/4328
2013 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
2014 * doc/md.texi: Document it.
2015 * config/sparc/sparc.md (movdi_insn_sp64_novis,
2016 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
2017 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
2018 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
2019 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
2021 2002-04-08 Andreas Jaeger <aj@suse.de>
2023 * stmt.c (expand_asm_operands): Revert last patch from Richard
2026 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2028 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
2029 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
2031 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2033 * doc/contrib.texi (Contributors): Add David O'Brien.
2035 2002-04-08 Alan Modra <amodra@bigpond.net.au>
2037 * configure.in (auto-build.h): Use target_alias and build_alias
2038 when running configure.
2039 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
2040 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
2041 * configure: Regenerate.
2043 2002-04-07 David S. Miller <davem@redhat.com>
2045 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
2047 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
2050 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
2051 generating 32-bit pic code.
2053 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
2055 * cppinit.c (cpp_create_reader): Initialize
2056 discard_comments_in_macro_exp.
2057 (COMMAND_LINE_OPTIONS): Add "-CC" option.
2058 (cpp_handle_option): Handle "-CC" option.
2059 * cpplex.c (save_comment): If saving a C++ comment in
2060 a directive, convert it to a C comment.
2061 (_cpp_lex_direct): Pass second comment start character to
2062 save_comment to indicate comment type.
2063 * cpplib.c (_cpp_handle_directive): If processing
2064 a "#define" directive and discard_comments_in_macro_exp
2065 is false, re-enable saving of comments.
2066 (lex_macro_node): If discard_comments_in_macro_exp is false,
2067 discard any comments before the macro identifier.
2068 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
2070 * cppmacro.c (cpp_get_token): If expanding a macro while
2071 processing a directive, discard any comments we might encounter.
2072 (parse_params): If discard_comments_in_macro_exp is false,
2073 ignore comments in the macro parameter list.
2074 * gcc.c (cpp_unique_options): Add "-CC" option.
2075 (option_map): Map "--comments-in-macros" to "-CC".
2076 * doc/cppopts.texi: Document "-CC" option.
2077 * f/lang-specs.h: Add "-CC" option.
2078 * testsuite/gcc.dg/cpp/maccom1.c: New test.
2079 * testsuite/gcc.dg/cpp/maccom2.c: New test.
2080 * testsuite/gcc.dg/cpp/maccom3.c: New test.
2081 * testsuite/gcc.dg/cpp/maccom4.c: New test.
2082 * testsuite/gcc.dg/cpp/maccom5.c: New test.
2083 * testsuite/gcc.dg/cpp/maccom6.c: New test.
2085 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2088 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
2090 2002-04-06 Mark Mitchell <mark@codesourcery.com>
2093 * stor-layout.c (layout_decl): Reset the RTL for the decl.
2096 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
2097 RTX_UNCHANGING_P for the functions arguments when a tail call
2100 2002-04-06 Jason Merrill <jason@redhat.com>
2102 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
2103 (parse_options_and_default_flags): Set them appropriately.
2104 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
2106 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
2108 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
2111 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
2114 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
2115 types come in by-reference. Fix typo in comment.
2117 2002-04-05 David S. Miller <davem@redhat.com>
2119 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
2120 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
2121 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
2122 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
2124 2002-04-05 David S. Miller <davem@redhat.com>
2126 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
2127 are not going to emit return instructions, emit at least a nop
2128 for the sake of sane backtraces.
2130 2002-04-05 Richard Henderson <rth@redhat.com>
2132 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
2134 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
2136 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
2138 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
2140 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
2141 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
2142 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
2144 2002-04-05 Andreas Schwab <schwab@suse.de>
2146 * c-convert.c: Include c-common.h.
2147 * Makefile.in (c-convert.o): Updated.
2149 2002-04-05 Jakub Jelinek <jakub@redhat.com>
2151 * mklibgcc.in: Use separate libgcc.map for each multilib.
2152 * Makefile.in (distclean): Don't remove libgcc.map here.
2154 2002-04-05 Jakub Jelinek <jakub@redhat.com>
2156 * Makefile.in (s-mlib): Handle --disable-multilib by separate
2157 genmultilib invocation.
2159 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
2161 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
2162 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
2163 to num_gprs for symmetry.
2164 * config/mips/mips.c: Adjust accordingly.
2166 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
2168 * c-common.c (truthvalue_conversion): Rename, update.
2169 * c-common.h (c_common_truthvalue_conversion): New.
2170 * c-convert.c (convert): Update.
2171 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
2172 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
2173 * c-typeck.c (build_binary_op, build_unary_op,
2174 build_conditional_expr): Update.
2175 * fold-const.c (constant_boolean_node, fold): Use langhook.
2176 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
2177 * langhooks.h (struct lang_hooks): New hook.
2178 * stmt.c (expand_decl_cleanup): Use langhook.
2179 * tree.h (truthvalue_conversion): Remove.
2181 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
2183 2002-04-05 Alan Modra <amodra@bigpond.net.au>
2185 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
2186 Add rules to make null object file.
2188 2002-04-04 Jim Blandy <jimb@redhat.com>
2190 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
2191 macro formal parameter names.
2193 2002-04-04 David S. Miller <davem@redhat.com>
2195 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
2197 2002-04-04 Richard Henderson <rth@redhat.com>
2200 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
2201 Support copies into and out of memory. Don't accept allows_reg
2202 and allows_mem as gospel.
2204 2002-04-04 Richard Henderson <rth@redhat.com>
2207 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
2208 (write_dependence_p): Likewise.
2210 2002-04-04 Richard Henderson <rth@redhat.com>
2212 * predict.c (estimate_bb_frequencies): Do frequency calculation
2213 with a volatile temporary.
2215 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
2217 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
2219 2002-04-04 Jakub Jelinek <jakub@redhat.com>
2222 * final.c (final_start_function): Don't bump profile_label_no here...
2223 (final_end_function): ...but here.
2225 2002-04-04 Jakub Jelinek <jakub@redhat.com>
2227 * config/sparc/sparc.md (pic): New attribute.
2228 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
2230 (split after do_builtin_setjmp_setup): New.
2232 2002-04-04 Jakub Jelinek <jakub@redhat.com>
2235 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
2238 2002-04-04 Jakub Jelinek <jakub@redhat.com>
2240 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
2241 UNITS_PER_WORD for zero sized aggregates.
2243 2002-04-03 David S. Miller <davem@redhat.com>
2245 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
2246 one-character spec for this, just use %(link_gcc_c_sequence).
2248 2002-04-03 David S. Miller <davem@redhat.com>
2250 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
2253 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
2255 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
2256 (DWARF_FRAME_RETURN_COLUMN): Move.
2257 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2258 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
2259 * pa.c (except.h, predict.h): Include.
2261 (store_reg_modify, set_reg_plus_d): Revise prototypes.
2262 (output_ascii): Add cast.
2263 (store_reg_modify): Revise to add frame notes.
2264 (set_reg_plus_d): Likewise.
2265 (compute_frame_size): Include space for eh data registers in frame if
2266 the current function calls eh_return.
2267 (hppa_expand_prologue): Ensure register %r2 is saved if the current
2268 function calls eh_return. Save eh data registers if the current
2269 function calls eh_return. Fix code to add frame notes. Emit
2270 blockage to prevent insns with frame notes being scheduled in the
2271 delay slot of calls.
2272 (hppa_expand_epilogue): Restore eh data registers and do final stack
2273 adjustment if the current function calls eh_return. Don't add frame
2275 (output_call): Revise for change in length of call insn. Don't do
2276 return pointer adjustment for an unconditional jump in the delay slot
2277 of a call when using frame notes.
2278 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
2279 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
2280 (ARG_POINTER_CFA_OFFSET): Define.
2281 * pa.md (return_external_pic): New pattern.
2282 (prologue): Correct formatting. Use return_external_pic if current
2283 function calls eh_return.
2284 (call_internal_symref, call_value_internal_symref,
2285 sibcall_internal_symref, sibcall_value_internal_symref): Change default
2286 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
2288 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
2290 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
2291 list of targets to check using "nop" insn.
2292 * configure: Rebuilt.
2294 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2296 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
2298 2002-04-03 David S. Miller <davem@redhat.com>
2300 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
2301 library sequence passed to the linker.
2302 (LINK_COMMAND_SPEC): Use it.
2303 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
2304 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
2305 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
2307 2002-04-03 Jason Merrill <jason@redhat.com>
2309 * except.c (struct eh_status): Remove protect_list.
2310 (begin_protect_partials, end_protect_partials): Remove.
2311 (add_partial_entry): Remove.
2312 * except.h: Remove prototypes.
2314 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
2315 expand_decl_cleanup_eh.
2318 * tree.h (CLEANUP_EH_ONLY): New macro.
2319 * stmt.c (expand_decl_cleanup_eh): New fn.
2320 (expand_cleanups): Check CLEANUP_EH_ONLY.
2321 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
2322 Use expand_decl_cleanup_eh.
2323 (expand_stmt): Adjust.
2324 * c-common.h: Adjust prototype.
2326 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
2328 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
2329 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
2330 (cris_target_asm_function_epilogue): Ditto.
2331 (cris_initial_frame_pointer_offset): Ditto.
2332 (cris_simple_epilogue): Ditto.
2333 (cris_expand_builtin_va_arg): Variable-size types come in
2336 2002-04-03 David S. Miller <davem@redhat.com>
2338 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
2340 (set_fast_math): Correct 'fsr' type.
2342 2002-04-03 Richard Henderson <rth@redhat.com>
2345 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
2346 * toplev.c (check_global_declarations): Use it.
2347 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
2348 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2349 (LANG_HOOKS_DECLS): Add it.
2350 * langhooks.c (lhd_warn_unused_global_decl): New.
2351 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2352 * c-objc-common.c (c_warn_unused_global_decl): New.
2353 * c-tree.h (c_warn_unused_global_decl): Declare.
2354 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
2356 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
2358 * langhooks-def.h (lhd_set_decl_assembler_name,
2359 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
2360 (LANG_HOOKS_INITIALIZER): Update.
2361 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
2362 * langhooks.h (struct lang_hooks): New hook.
2363 * tree.c (set_decl_assembler_name): Move to langhooks.c.
2364 (lang_set_decl_assembler_name): Remove.
2365 (init_obstacks): Don't set hook.
2366 (decl_assembler_name): New function.
2367 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
2368 (decl_assembler_name): New.
2369 (lang_set_decl_assembler_name): Remove.
2371 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2373 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
2374 works properly with .hidden symbols.
2375 * configure: Rebuilt.
2376 * config.in: Rebuilt.
2377 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
2378 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
2379 properly with .hidden symbols.
2381 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2384 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
2387 2002-04-03 Richard Henderson <rth@redhat.com>
2390 * sched-rgn.c (sets_likely_spilled): New.
2391 (sets_likely_spilled_1): New.
2392 (add_branch_dependences): Use it.
2394 2002-04-02 Richard Henderson <rth@redhat.com>
2397 * loop.h (LOOP_FIRST_PASS): New.
2398 * loop.c (strength_reduce): Mind it when deciding to unroll.
2399 * toplev.c (rest_of_compilation): Set it.
2401 2002-04-02 David S. Miller <davem@redhat.com>
2403 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
2404 mems_ok_for_ldd_peep when the order of the loads being examined
2406 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
2407 existing comment to increase comprehension of this situation.
2409 2002-04-02 Zack Weinberg <zack@codesourcery.com>
2411 * config/sh/sh.md: Don't use union real_extract.
2413 2002-04-02 Richard Henderson <rth@redhat.com>
2415 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
2417 2002-04-02 David O'Brien <obrien@FreeBSD.org>
2419 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
2420 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
2421 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
2422 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
2423 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
2424 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
2425 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
2426 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
2427 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
2428 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
2429 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
2430 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
2431 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
2432 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
2433 Include as many configury headers via tm_file as possible. This
2434 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
2435 * config/openbsd-oldgas.h: New file.
2436 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
2437 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
2438 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
2439 config/i386/i386-coff.h, config/i386/i386-interix.h,
2440 config/i386/iscdbx.h, config/i386/linux-aout.h,
2441 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
2442 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
2443 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
2444 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
2445 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
2446 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
2447 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
2448 config/i386/vxi386.h: Do not directly include configury headers.
2449 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
2450 Directly include configury headers that are no longer automatically
2451 included by the above headers.
2452 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
2453 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
2454 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
2455 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
2456 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
2457 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
2458 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
2459 (TARGET_VERSION): Define.
2460 * config/i386/beos-elf.h, config/i386/freebsd.h,
2461 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
2462 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
2463 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
2464 config/i386/sco5.h, config/i386/sysv4.h
2465 (TARGET_VERSION): Do not need to protect.
2466 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
2467 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
2468 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
2469 config/i386/i386-interix.h, config/i386/linux-aout.h,
2470 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
2471 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
2472 (YES_UNDERSCORES): Do not define - not needed.
2473 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
2474 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
2475 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
2476 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
2477 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
2478 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
2479 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
2480 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
2482 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
2483 Richard Henderson <rth@redhat.com>
2486 * function.c (assign_temp): Accept either type or decl argument.
2487 Detect variables whose size is too large to fit into an integer.
2488 * stmt.c (expand_decl): Pass the decl, not the type.
2490 2002-04-02 David O'Brien <obrien@FreeBSD.org>
2492 * protoize.c: Match include directory usage with cppdefault.c.
2494 2002-04-03 Jeffrey A Law (law@redhat.com)
2495 Hans-Peter Nilsson <hp@bitrange.com>
2497 * combine.c (simplify_comparison): Avoid narrowing a comparison
2498 with a paradoxical subreg when doing so would drop signficant bits.
2500 2002-04-02 Steve Ellcey <sje@cup.hp.com>
2502 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
2503 if POINTERS_EXTEND_UNSIGNED is defined.
2505 2002-04-02 Richard Henderson <rth@redhat.com>
2508 * local-alloc.c (contains_replace_regs): LO_SUM may contain
2511 2002-04-02 Richard Henderson <rth@redhat.com>
2513 * doc/standards.texi: Document required freestanding libc entry points.
2515 2002-04-02 Alan Modra <amodra@bigpond.net.au>
2517 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
2518 associated splitter. Remove MQ constraint.
2519 (ctrdi_internal4): Correct CCmode clobber.
2521 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
2523 * milli64.S ($$dyncall): New function.
2524 * t-linux (LIB1ASMFUNCS): Revise module list.
2525 (LIB1ASMSRC): Use pa/milli64.S.
2527 2002-04-02 Richard Henderson <rth@redhat.com>
2529 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
2530 rename solaris_sys_varargs_h.
2532 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2534 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
2535 the same mode as its component.
2537 2002-04-02 Richard Henderson <rth@redhat.com>
2540 * final.c (this_is_asm_operands): Export.
2541 * output.h (this_is_asm_operands): Declare.
2542 * config/i386/i386.c (print_operand): Error odd asm operands.
2544 2002-04-02 Richard Henderson <rth@redhat.com>
2547 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
2549 2002-04-01 Richard Henderson <rth@redhat.com>
2552 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
2553 * fixinc/fixincl.x: Rebuild.
2555 2002-04-01 Richard Henderson <rth@redhat.com>
2557 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
2558 (atomic_alloc, atomic_free): New.
2559 (SIZE, MASK_FOR, PTR_IN): New.
2560 (emergency_reg_state, emergency_reg_state_free): New.
2561 (emergency_labeled_state, emergency_labeled_state_free): New.
2562 (reg_state_alloced, labeled_state_alloced): New.
2563 (alloc_reg_state, free_reg_state): New.
2564 (alloc_label_state, free_label_state, free_label_states): New.
2565 (push, pop, dup_state_stack, free_state_stack): Use them.
2566 (desc_label_state): Likewise.
2567 (uw_frame_state_for): Free label states and state stack.
2568 (uw_update_reg_address): Eliminate warnings.
2570 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
2572 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
2573 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
2575 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
2577 * c-decl.c (grokdeclarator): Update.
2578 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
2579 * c-tree.h (c_mark_addressable): New.
2580 * c-typeck.c (default_function_array_conversion, build_unary_op,
2581 build_array_ref, convert_for_assignment): Update.
2582 (mark_addressable): Rename.
2583 * calls.c (try_to_integrate, expand_call): Use langhook.
2584 * expr.c (expand_expr): Use langhook.
2585 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
2586 * langhooks.h (struct lang_hooks): New hook.
2587 * stmt.c (expand_asm_operands): Use langhook.
2588 * tree.h (mark_addressable): Remove.
2590 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
2592 2002-04-01 Bob Wilson <bob.wilson@acm.org>
2594 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
2597 2002-04-01 Bob Wilson <bob.wilson@acm.org>
2599 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
2600 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
2602 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
2604 * c-common.c (unsigned_conversion_warning, convert_and_check,
2605 unsigned_type, signed_type, shorten_compare,
2606 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
2607 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
2608 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
2610 * c-decl.c (grokdeclarator): Update.
2611 * c-format.c (check_format_types): Update.
2612 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
2613 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
2614 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
2615 * convert.c (convert_to_integer): Use new hooks.
2616 * expmed.c (make_tree): Use new hooks.
2617 * expr.c (store_expr): Use new hooks.
2618 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
2619 all_ones_mask_p, unextend, fold): Use new hooks.
2620 * langhooks.h (struct lang_hooks_for_types): New hooks.
2621 * tree.h (signed_or_unsigned_type, signed_type,
2622 unsigned_type): Remove.
2624 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
2625 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
2627 2002-03-31 Richard Henderson <rth@redhat.com>
2629 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
2630 (desc_frgr_mem): Fix reference to f16-f31.
2632 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2634 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
2635 RTVEC_ELT): Const-ify.
2636 * varray.h (VARRAY_CHECK): Const-ify.
2637 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
2638 ggc_mark_rtvec, ggc_mark): Const-ify.
2640 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
2642 * diagnostic.c: Include langhooks-def.h.
2643 * Makefile.in (diagnostic.o): Update.
2645 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
2647 * c-common.c (c_unsafe_for_reeval): Rename.
2648 * c-common.h (c_unsafe_for_reeval): Rename.
2649 * c-decl.c (finish_incomplete_decl): Rename.
2650 (c_init_decl_processing): Don't set langhook.
2651 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
2652 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
2653 * c-objc-common.c (c_objc_common_init): Don't set langhook.
2654 * c-tree.h (finish_incomplete_decl): Rename.
2655 * langhooks-def.h (lhd_unsafe_for_reeval): New.
2656 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
2657 (LANG_HOOKS_INITIALIZER): Update.
2658 * langhooks.c (lhd_unsafe_For_reeval): New.
2659 * langhooks.h (struct langhooks): New hooks.
2660 * toplev.c (incomplete_decl_finalize_hook): Remove.
2661 (wrapup_global_declarations): Update.
2662 * tree.c (lang_unsafe_for_reeval): Remove.
2663 (unsafe_for_reeval): Update.
2664 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
2667 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
2668 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
2670 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
2672 * diagnostic.c (print_error_function): Remove.
2673 (default_print_error_function): Rename.
2674 (report_error_function): Update.
2675 * diagnostic.h (print_error_function): Remove.
2676 (default_print_error_function): Remove.
2677 * langhooks-def.h (struct diagnostic_context): Predeclare.
2678 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
2679 (LANG_HOOKS_INITIALIZER): Update.
2680 * langhooks.h (struct diagnostic context): Predeclare.
2681 (struct lang_hooks): New hook.
2683 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2685 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
2686 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
2688 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
2689 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
2690 of PIC_OFFSET_TABLE_REGNUM thruout.
2691 * config/rs6000/rs6000.md: Likewise.
2692 * config/rs6000/darwin.h: Likewise.
2694 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2696 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
2697 unsigned HOST_WIDE_INT, not unsigned int.
2699 2002-03-31 Jakub Jelinek <jakub@redhat.com>
2701 PR middle-end/6096, middle-end/6098, middle-end/6099
2702 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
2704 (fill_slots_from_thread): Likewise.
2706 2002-03-31 Jakub Jelinek <jakub@redhat.com>
2708 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
2709 floating fields in float regs.
2710 (function_arg_record_value_2): Likewise.
2712 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
2714 * config/mmix/mmix.md (define_constants): Remove misleading
2715 FIXME. Add MMIX_fp_rO_OFFSET.
2716 ("nonlocal_goto_receiver"): Don't have stack-frame address of
2717 saved rO as part of the pattern. Remove FIXME.
2718 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
2719 here, at output-time.
2721 2002-03-31 Jakub Jelinek <jakub@redhat.com>
2724 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
2726 (output_v9branch): Likewise.
2728 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
2730 * gcc.c: Revert previous patch for now.
2731 * config/i386/djgpp.h: Likewise.
2733 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
2735 * config/mmix/crti.asm (_init): Register _fini with atexit.
2736 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
2738 2002-03-31 Richard Henderson <rth@redhat.com>
2741 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
2742 (ASM_OUTPUT_DEF_FROM_DECLS): New.
2744 2002-03-31 Richard Henderson <rth@redhat.com>
2746 * libgcc2.c (__bb_exit_func): Make static.
2748 * config/alpha/alpha.md (trap): New.
2750 2002-03-31 Richard Henderson <rth@redhat.com>
2752 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
2753 promoted argument types; build trap.
2754 (expand_builtin_trap): New.
2755 (expand_builtin): Use it.
2756 * stmt.c (expand_nl_goto_receivers): Likewise.
2757 * expr.h (expand_builtin_trap): Declare.
2758 * libfuncs.h (LTI_abort, abort_libfunc): New.
2759 * optabs.c (init_optabs): Init abort_libfunc.
2761 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
2763 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
2764 (LINK_COMMAND_SPEC): ... from here.
2765 (init_gcc_specs): Duplicate it here too, omitting
2766 shared_name in the second copy.
2767 (init_spec): Test for duplicate
2768 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
2770 2002-03-30 David S. Miller <davem@redhat.com>
2772 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
2773 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
2775 2002-03-30 Roger Sayle <roger@eyesopen.com>
2776 Richard Henderson <rth@redhat.com>
2778 * regmove.c (combine_stack_adjustments_for_block): Avoid
2779 emitting a stack adjustment of zero bytes. Let delete_insn
2782 2002-03-30 Richard Henderson <rth@redhat.com>
2784 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
2785 (sparc_emitting_epilogue): New.
2786 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
2787 * config/sparc/sparc-protos.h: Update.
2788 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
2789 (TARGET_SWITCHES): Update.
2790 * config/sparc/sparc.md (return): Remove.
2791 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
2792 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
2793 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
2794 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
2795 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
2796 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
2797 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
2798 Remove MASK_EPILOGUE.
2799 * doc/invoke.texi: Update.
2801 2002-03-30 Daniel Berlin <dan@dberlin.org>
2803 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
2804 CPP will start the file for us.
2806 2002-03-30 Richard Henderson <rth@redhat.com>
2809 * config/ia64/ia64.c (group_barrier_needed_p): Special case
2810 prologue_allocate_stack.
2811 (ia64_single_set): Use insn codes for recognition of special
2812 cases, not rtl matching.
2813 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
2815 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
2817 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
2819 2002-03-30 Richard Henderson <rth@redhat.com>
2822 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
2823 or -fomit-frame-pointer with profiling.
2824 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
2825 (FUNCTION_PROFILER): Do nothing.
2826 (PROFILE_HOOK): New.
2827 * config/sparc/sparc.c (sparc_override_options): Don't check
2828 code models for profiling.
2829 (sparc_function_profiler): Remove.
2830 (sparc_profile_hook): New.
2831 * config/sparc/sparc-protos.h: Update.
2833 2002-03-30 Jakub Jelinek <jakub@redhat.com>
2835 PR optimization/6086
2836 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
2837 of SUBREG of volatile MEM or because the MEM was mode dependent,
2838 return CLOBBER instead of unmodified SUBREG.
2840 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
2842 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
2843 when not optimizing.
2845 * toplev.c (rest_of_compilation): Cann mark_constant_function
2846 only when optimizing.
2848 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
2851 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
2852 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
2853 (try_optimize_cfg): clear all AUX fields.
2855 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
2856 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
2857 (ix86_address_cost): Be prepared for SUBREGed registers.
2858 (legitimate_address_p): Accept SUBREGed registers.
2860 2002-03-29 Richard Henderson <rth@redhat.com>
2863 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
2865 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2867 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
2868 for aggregate and TFmode types.
2870 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
2872 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
2874 2002-03-29 Richard Henderson <rth@redhat.com>
2877 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
2878 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
2880 2002-03-29 Richard Henderson <rth@redhat.com>
2883 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
2884 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
2885 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
2886 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
2888 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
2890 2002-03-29 Dale Johannesen <dalej@apple.com>
2892 * loop.c (combine_movables): Do allow combination of pseudos.
2894 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
2896 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
2897 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
2898 No functional change except ...
2899 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
2900 * doc/install.texi (*-*-freebsd*): Document port configuration.
2902 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
2904 * Makefile.in (convert.o, calls.o, expmed.o): Update.
2905 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
2907 * builtin-types.def (BT_PTRMODE): Update.
2908 * c-common.c (type_for_size): Rename c_common_type_for_size.
2909 (type_for_mode): Similarly.
2910 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
2912 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
2913 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
2914 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
2916 * c-typeck.c (common_type, comptypes, default_conversion):
2918 * calls.c: Include langhooks.h.
2919 (emit_library_call_value_1): Use new hooks. Avoid redundant
2921 * convert.c: Include langhooks.h
2922 (convert_to_pointer, convert_to_integer): Use new hooks.
2923 * except.c (init_eh): Similarly.
2924 * expmed.c: Include langhooks.h.
2925 (expand_mult_add): Use new hooks.
2926 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
2927 try_casesi): Similarly.
2928 * fold-const.c (optimize_bit_field_compare, make_range,
2929 decode_field_reference, fold_truthop, fold): Similarly.
2930 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
2931 put_var_into_stack): Similarly.
2932 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
2933 LANG_HOOKS_TYPE_FOR_SIZE): New.
2934 (LANG_HOOKS_TYPES_INITIALIZER): Update.
2935 * langhooks.h (lang_hooks_for_types): New hooks.
2936 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
2937 * tree.c (get_unwidened, get_narrower): Similarly.
2938 * tree.h (type_for_mode, type_for_size): Remove.
2939 * varasm.c (force_const_mem): Use new hooks.
2940 * utils2.c (nonbinary_modular_operation): Update.
2942 * objc-act.c (handle_impent): Update.
2943 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
2946 2002-03-29 Steve Ellcey <sje@cup.hp.com>
2948 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
2949 * config/ia64/ia64.c (basereg_operand): New.
2950 * config/ia64/ia64-protos.h (basereg_operand): Declare.
2951 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
2953 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
2955 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
2956 unwind information when frame_pointer_needed.
2957 (mmix_assemble_integer): Tweak wording in comment.
2959 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
2961 * Makefile.in (except.o): Update.
2962 * except.c: Include langhooks.h.
2963 (init_eh): Use langhook.
2964 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
2965 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
2966 (LANG_HOOKS_INITIALIZER): Update.
2967 * langhooks.h (lang_hooks_for_types): New.
2968 (struct lang_hooks): Add it.
2969 * tree.c (make_lang_type_fn, make_lang_type): Remove.
2970 * tree.h (make_lang_type_fn, make_lang_type): Remove.
2972 * alpha/alpha.c: Include langhooks.h.
2973 (alpha_build_va_list): Use langhook.
2974 * d30v/d30v.c: Include langhooks.h.
2975 (d30v_build_va_list): Use langhook.
2976 * i386/i386.c: Include langhooks.h.
2977 (ix86_build_va_list): Use langhook.
2978 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
2979 * s390/s390.c: Include langhooks.h.
2980 (s390_build_va_list): Use langhook.
2981 * stormy16/stormy16.c: Include langhooks.h.
2982 (stormy16_build_va_list): Use langhook.
2984 2002-03-29 Jakub Jelinek <jakub@redhat.com>
2987 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
2989 (length): Compute variable length for branches/calls/jumps here.
2990 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
2991 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
2992 define branch_type attribute.
2993 (divsi3_sp32): Maximum length is 6 not 7.
2994 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
2995 call_address_untyped_struct_value_sp32,
2996 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
2997 * config/sparc/sparc.c (empty_delay_slot): New function.
2998 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
2999 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
3001 2002-03-29 Jakub Jelinek <jakub@redhat.com>
3003 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
3004 nonzero_bits if not needed.
3005 (nonzero_bits) [XOR]: Likewise.
3006 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
3007 reg_last_set_mode and mode are both MODE_INT, but not equal.
3008 (record_value_for_reg): Compute reg_last_set_nonzero_bits
3009 in nonzero_bits_mode for MODE_INT modes.
3011 2002-03-28 Richard Henderson <rth@redhat.com>
3014 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
3015 to GAS. Correct drift between alternatives.
3017 2002-03-28 Richard Henderson <rth@redhat.com>
3020 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
3022 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
3024 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
3025 emulation to the linker.
3027 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
3029 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
3030 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
3032 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
3034 * combine.c (simplify_and_const_int): Make sure to apply mask
3035 when force_to_mode returns a constant integer. PR3311.
3037 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
3039 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
3041 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3043 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
3044 and Objective-C Dialect Options.
3046 2002-03-28 Richard Henderson <rth@redhat.com>
3048 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
3049 comparison should be done vs !=0 not >0 return code. Tidy cases.
3051 2002-03-28 Richard Henderson <rth@redhat.com>
3053 * c-decl.c (finish_function): New arg can_defer_p. Pass it
3054 on to c_expand_body.
3055 * c-tree.h (finish_function): Update decl.
3056 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
3058 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
3060 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
3062 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
3064 * rtlanal.c: Include flags.h
3065 (may_trap_p): Do not mark FP operations if trapping
3066 if !flag_trapping_math
3067 * Makefile.in (rtlanal.o): Add dependency on flag.h
3068 * ifcvt.c (noce_operand_ok): Avoid the lameness.
3070 2002-03-27 Zack Weinberg <zack@codesourcery.com>
3072 * mips.md: Use dconst1, not 1.0, as first argument of
3073 REAL_VALUE_LDEXP. Don't use union real_extract.
3075 2002-03-28 Alan Modra <amodra@bigpond.net.au>
3077 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
3078 rather than $target. Heed program_prefix and
3079 program_transform_name. Search for gas in cross-compiler case too.
3080 "test -x" rather than "test -f".
3081 (gcc_cv_ld): Likewise.
3082 (gcc_cv_nm): Heed program_prefix and program_transform_name.
3083 (gcc_cv_objdump): Likewise.
3084 * configure: Regenerate.
3086 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
3088 * Makefile.in (attribs.o): Update.
3089 * attribs.c: Include langhooks.h.
3090 (decl_attributes): Use langhook.
3091 * c-decl.c (insert_default_attributes): Rename.
3092 * c-tree.h (c_insert_default_attributes): New.
3093 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
3094 (LANG_HOOKS_INITIALIZER): Update.
3095 * langhooks.h (struct lang_hooks): New hook.
3096 * tree.h (insert_default_attributes): Remove.
3098 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
3100 2002-03-27 Andreas Schwab <schwab@suse.de>
3102 * config/i386/i386.c (classify_argument): Also check for
3105 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3107 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
3110 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
3112 * i960.md (ret): Set PC.
3113 (nonlocal_goto): Fix expander.
3114 * builtins.c (epxand_builin_longjmp): Check that we've emitted
3117 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
3119 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
3122 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3124 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
3125 assigning to BLOCK_FOR_INSN directly.
3127 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
3129 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
3131 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
3133 * c-common.c (c_expand_expr): Fix prototype.
3134 * c-common.h (c_expand_expr): Always declare, update.
3135 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
3136 * c-objc-common.c (c_objc_common_init): No global hook.
3137 * expr.c (expand_expr): Use langhook.
3138 * expr.h (enum expand_modifier): Conditionally declare.
3139 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
3140 (LANG_HOOKS_INITIALIZER): Update.
3141 * langhooks.c (lhd_expand_expr): New.
3142 * langhooks.h (struct lang_hooks): New hook.
3143 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
3144 (lang_independent_init): Don't default hook.
3146 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
3148 2002-03-27 Richard Henderson <rth@redhat.com>
3151 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
3152 TARGET_CONST_GP. Simplify conditions.
3154 2002-03-27 Richard Henderson <rth@redhat.com>
3156 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
3157 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
3158 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
3160 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
3162 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
3163 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
3164 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
3165 Remove unnecessary masks.
3166 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
3167 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
3168 -mwindows, -mdll switches and their negations.
3170 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
3172 * gcc-common.c (lang_mark_false_label_stack): Remove.
3173 * ggc.h (lang_mark_false_label_stack): Similarly.
3175 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
3177 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
3179 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
3180 or __rtems_ is defined.
3182 2002-03-26 Richard Henderson <rth@redhat.com>
3184 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
3185 if a non-trivial load was emitted.
3186 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
3187 in high+extra+low case.
3189 2002-03-26 Richard Henderson <rth@redhat.com>
3191 * config.gcc (sparc*-solaris): Use float_format=sparc.
3193 2002-03-26 Richard Henderson <rth@redhat.com>
3195 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
3196 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
3197 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
3198 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
3199 (WINT_TYPE_SIZE): Fix at 32.
3201 2002-03-26 Richard Henderson <rth@redhat.com>
3203 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
3204 until after eh landing pad generation.
3205 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
3206 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
3208 2002-03-26 Richard Henderson <rth@redhat.com>
3210 * expr.h (ADD_PARM_SIZE): One more convert for INC.
3212 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
3214 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
3215 and warning switches.
3216 (cc1_options): Likewise.
3218 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
3220 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
3221 Restore more of the signal context. Set no_reg_stack_frame.
3222 * config/ia64/unwind-ia64.c (unw_state_record):
3223 Add no_reg_stack_frame, comments.
3224 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
3225 (uw_update_context): Adjust bsp when unwinding from leaf,
3226 but not signal frame.
3228 2002-03-26 David Edelsohn <edelsohn@gnu.org>
3230 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
3232 2002-03-26 Bob Wilson <bob.wilson@acm.org>
3234 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
3236 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
3239 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
3240 "Add a pool_range attribute", which was lost during the ARM/Thumb
3243 2002-03-26 Bob Wilson <bob.wilson@acm.org>
3245 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
3246 a register into the MAC16 accumulator.
3248 2002-03-26 Andrew Cagney <ac131313@redhat.com>
3250 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
3251 (Warning Options): Document -Wswitch-enum.
3252 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
3254 (warn_switch_enum): Define variables.
3255 * flags.h (warn_switch_enum): Declare variables.
3256 * stmt.c (expand_end_case_type): When warn_switch_enum /
3257 -Wswitch-enum, perform switch checks.
3260 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
3262 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
3263 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
3264 (reload_muladdsi_compare0_scratch): Delete.
3266 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
3268 * doc/install.texi (*-*-freebsd*): Update.
3270 2002-03-26 Richard Henderson <rth@redhat.com>
3272 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
3273 (SUB_PARM_SIZE): Cast DEC to ssizetype.
3275 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
3276 types from the normal argument frame.
3278 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
3279 variable sized objects by reference.
3280 (sparc_va_arg): Receive them by reference too.
3282 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
3284 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
3285 code to not restoring global registers.
3287 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
3289 * Makefile.in (ggc-common.o): Update.
3290 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
3291 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
3292 * c-tree.h (c_mark_tree): New.
3293 * ggc-common.c: Include langhooks.h.
3294 (gcc_mark_trees): Use new langhook.
3295 * ggc-callbacks.c: Delete file.
3296 * ggc.h (lang_mark_tree): Remove.
3297 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
3298 (LANG_HOOKS_INITIALIZER): Update.
3299 * langhooks.h (struct lang_hooks): New hook.
3301 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
3303 2002-03-25 Zack Weinberg <zack@codesourcery.com>
3305 * doc/cpp.texi: Exclude entire Top node from printed manual.
3306 Move option index after directive index. Insert page breaks
3307 before GFDL and concept index. Index environment variables
3308 with command line options.
3309 * doc/cppenv.texi: Use @vtable for environment variable list.
3310 Add paragraph explaining semantics of empty elements in path
3311 variables. Exclude a cross-reference to Fishkill from the
3312 manpage. Remove an unnecessary cross-reference of the entry
3313 right above the referer. Don't use @anchor in text that goes
3315 * doc/cppopts.texi: Cross-reference the environment variables
3316 section, not the specific environment variable, for consistency.
3318 2002-03-25 Richard Henderson <rth@redhat.com>
3320 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
3321 anywhere in the block. Don't refer to insns that have been
3322 removed from the chain. Iterate backward through the new insns.
3323 Don't refer to edges that have been removed.
3325 2002-03-26 Alan Modra <amodra@bigpond.net.au>
3327 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
3328 test for overflow of constant.
3330 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
3333 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
3334 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
3335 these patterns on arm_archv4.
3337 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
3339 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
3342 2002-03-25 Zack Weinberg <zack@codesourcery.com>
3344 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
3345 float_handled, float_handler, float_signal, set_float_handler,
3346 and do_float_handler. Set handler for SIGFPE to crash_signal.
3347 * toplev.h: Don't prototype do_float_handler.
3349 * c-lex.c: Fold parse_float into lex_number. Make warning
3350 about portability of hex float constants more informative, and
3351 don't issue it on top of a syntax error.
3352 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
3354 * real.h: Define REAL_VALUE_ABS here...
3355 * simplify-rtx.c: ... not here. Fold check_fold_consts,
3356 simplify_unary_real, simplify_binary_real, and
3357 simplify_binary_is2orm1 into their callers.
3358 * tree.c: Fold build_real_from_int_cst_1 into caller.
3360 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
3362 * tsystem.h: Include float.h here...
3363 * libgcc2.c: ... not here.
3365 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
3367 Fixes for: PR bootstrap/3591, target/5676
3368 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
3369 defined. Do not disable exceptions or rtti.
3370 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
3371 mcore.h. Disable exceptions and rtti, since they are not
3374 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
3376 * c-decl.c (maybe_build_cleanup): Remove.
3377 * expr.c (expand_expr): Use langhook.
3378 * langhooks-def.h (lhd_return_null_tree,
3379 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
3380 (LANGHOOKS_INITIALIZER): Update.
3381 * langhooks.c (lhd_return_null_tree): New.
3382 * langhooks.h (struct lang_hooks): New hook.
3383 * tree-inline.c (initialize_inlined_parameters): Use langhook.
3384 * tree.h (maybe_build_cleanup): Remove.
3386 2002-03-25 Jakub Jelinek <jakub@redhat.com>
3388 * regrename.c (build_def_use): Move recog_memoized
3389 before extract_insn.
3391 2002-03-25 Jakub Jelinek <jakub@redhat.com>
3394 * expr.c (emit_group_store): Handle storing into CONCAT.
3396 2002-03-25 Jakub Jelinek <jakub@redhat.com>
3398 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
3399 corresponding MATCH_DUP.
3401 2002-03-24 Richard Henderson <rth@redhat.com>
3403 * unroll.c (unroll_loop): Zero label_map.
3405 * gcse.c: Include except.h.
3406 * Makefile.in (gcse.o): Update.
3408 2002-03-24 Richard Henderson <rth@redhat.com>
3410 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
3411 Do resolve_unique_section before shared data clause.
3413 2002-03-24 Richard Henderson <rth@redhat.com>
3415 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
3417 2002-03-24 Richard Henderson <rth@redhat.com>
3419 * recog.c (peephole2_optimize): Split blocks when EH insns are
3420 generated in the middle of a block. Do global life update if
3423 2002-03-24 Richard Henderson <rth@redhat.com>
3425 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
3427 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
3430 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
3431 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
3432 (init_dependency_output): Don't make no_output decision here.
3434 2002-03-24 Andrew Cagney <ac131313@redhat.com>
3436 * stmt.c (check_for_full_enumeration_handling): Remove tests of
3437 warn_switch. Update description.
3438 (expand_end_case_type): Call check_for_full_enumeration_handling
3441 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3443 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
3444 (m68hc11_split_move): Call it to see if the source and destination
3445 operands use the same direction auto inc/dec mode, otherwise make the
3446 source an offsetable memory operand and generate an add.
3448 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3450 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
3451 register for operand 2.
3452 ("*subsi3_zero_extendqi"): Likewise.
3453 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
3454 bits so that it is compatible with a pop.
3455 ("*andhi3_gen"): Likewise.
3456 ("xorhi3"): Likewise.
3458 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
3460 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
3462 (cpp_post_options): ... not here.
3464 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
3465 Aldy Hernandez <aldyh@redhat.com>
3467 Removal of separate preprocessor cpp0.
3469 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
3470 cpp0, install-common): Update.
3471 * c-common.c (flag_preprocess_only): New.
3472 (c_common_init): Preprocess for -E.
3473 * c-common.h (flag_preprocess_only): New.
3474 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
3475 * c-objc-common.c (c_init_decl_processing): Exit quickly
3476 for NULL return from c_common_init.
3477 * cpplib.h (cpp_preprocess_file): New.
3478 * cppmain.c (main, general_init, pfile, progname): Remove.
3479 (do_preprocessing): Rename cpp_preprocess_file, don't call
3480 cpp_finish. Don't close stdout here.
3481 (setup_callbacks): Update prototype.
3482 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
3484 * tradcpp.c (main): Ignore -quiet.
3486 * lang-specs.h (default_compilers): Preprocess with cc1obj.
3488 2002-03-24 Richard Henderson <rth@redhat.com>
3490 PR optimization/5742
3491 * machmode.def: Add inner mode field to complex modes.
3492 * config/mips/mips.c (mips_function_value): Always define. Add
3493 new argument to handle libcalls.
3494 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
3495 (FUNCTION_VALUE): Likewise.
3496 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
3497 * config/mips/mips-protos.h: Update.
3499 2002-03-23 Richard Henderson <rth@redhat.com>
3501 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
3502 * config/sparc/sparc-protos.h: Update.
3503 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
3505 2002-03-23 Richard Henderson <rth@redhat.com>
3507 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
3508 _start or _init begins the text segment.
3510 2002-03-23 David Edelsohn <edelsohn@gnu.org>
3512 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
3513 not HOST_WIDEST_INT.
3514 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
3516 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
3519 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
3520 operand argument to output_return_instruction.
3521 * arm.c (arm_print_operand, case 'd'): If the operand is
3522 const_true_rtx then just return.
3523 (arm_print_operand, case 'D'): If the operand is const_true_rtx
3526 2002-03-23 Andrew Cagney <ac131313@redhat.com>
3528 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
3529 (Warning Options): Document -Wswitch-default.
3530 * toplev.c (W_options): Add -Wswitch-default. Update comment on
3532 (warn_switch_default): Define variable.
3533 (warn_switch): Update comment.
3534 * flags.h (warn_switch_default): Declare variable.
3535 (warn_switch): Update comment.
3536 * stmt.c (expand_end_case): Check for and, when
3537 warn_switch_no_default, warn of a missing default case.
3539 2002-03-23 Alan Modra <amodra@bigpond.net.au>
3541 * real.h (N): Special case 128 bit doubles.
3543 * combine.c (simplify_comparison): When widening modes, ignore
3544 sign extension on CONST_INTs.
3546 2002-03-22 Bob Wilson <bob.wilson@acm.org>
3548 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
3549 passed to adjust_address. Fix comment formatting.
3552 2002-03-22 Zack Weinberg <zack@codesourcery.com>
3554 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
3555 Always make REAL_VALUE_TYPE a struct containing an array of
3556 HOST_WIDE_INT, not a double. Tidy up the code deciding how
3557 big it is. Don't declare or use union real_extract.
3559 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
3560 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
3561 (print_operand), config/arm/arm.c (output_move_double),
3562 config/arm/arm.md (consttable_4, consttable_8),
3563 config/romp/romp.c (output_fpops), config/s390/s390.h
3564 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
3565 (xtensa_output_literal): Don't use union real_extract.
3567 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
3568 (sfmode_constant_to_ulong), config/ns32k/merlin.h
3569 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
3570 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
3571 (PRINT_OPERAND): Don't use local version of union
3574 * config/convex/convex.c (check_float_value), config/vax/vax.c
3575 (vax_float_literal), config/m88k/m88k.md (divdf3),
3576 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
3577 config/pdp11/pdp11.c (output_move_quad): Don't do host
3578 arithmetic on target floating point quantities.
3580 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
3581 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
3583 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
3584 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
3586 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
3587 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
3589 * print-rtl.c (print_rtx): Disable code which needs
3590 floating-point emulator.
3591 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
3592 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
3593 depending on HOST_FLOAT_FORMAT to be defined properly.
3595 * config/1750a/1750a.c (get_double, float_label): Delete.
3596 (print_operand): Delete huge commented-out chunk. Use
3597 REAL_VALUE_TO_DECIMAL.
3598 * config/1750a/1750a-protos.h: Delete prototypes of deleted
3600 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
3602 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
3603 Use REAL_VALUE_TO_DECIMAL as ELF version does.
3604 * config/m88k/m88k.c (real_power_of_2_operand,
3605 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
3606 real_extract out of the union; run the input through
3607 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
3608 from that into the union.
3609 * config/pdp11/pdp11.c (output_move_double): Rearrange
3610 parentheses to make automatic indenter happy.
3612 * doc/tm.texi (Cross-compilation): Rename node to "Floating
3613 Point" and rewrite to describe current situation. Also adjust
3614 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
3616 * doc/rtl.texi: Adjust cross reference.
3618 2002-03-22 Bob Wilson <bob.wilson@acm.org>
3620 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
3621 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
3622 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
3623 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
3624 prevent use of sp as a reload register.
3625 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
3626 non_acc_reg_operand.
3627 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
3628 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
3629 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
3630 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
3632 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
3634 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
3635 * cpplex.c (unterminated): Delete.
3636 (parse_string): No string literal may extend over multiple
3637 lines. Suppress the error when preprocessing assembly.
3638 * cppmain.c (scan_translation_unit): Strings are single-line.
3640 * doc/cpp.texi: Update to match.
3642 2002-03-22 Jakub Jelinek <jakub@redhat.com>
3644 PR optimization/5854
3645 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
3647 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
3648 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
3649 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
3650 const0 if scratch register was not allocated.
3651 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
3652 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
3654 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
3655 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
3656 with GEN_INT (...) everywhere. Remove constraints in define_split
3658 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
3659 require scratch register for setting 0 into regs/non-pushable memory.
3661 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
3663 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
3664 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
3666 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
3668 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
3669 * cppinit.c (cpp_create_reader): On by default.
3670 (cpp_handle_option): Handle -W[no-]endif-labels.
3671 (cpp_post_options): Also enable if -pedantic.
3672 * cpplib.c (do_else): Use it.
3673 (do_endif): Likewise.
3674 * doc/cppopts.texi: Document new option.
3675 * doc/invoke.texi: Document new option.
3677 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
3679 * config/i386/i386.c, config/i386/i386.md: Change all occurences
3680 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
3682 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
3684 * flow.c (calculate_global_regs_live): Clear aux fields of
3687 2002-03-22 Jakub Jelinek <jakub@redhat.com>
3689 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
3690 REG or MEM subregs, pass rtx * instead of rtx to it.
3691 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
3692 rtx * instead of rtx to alter_subreg.
3693 * config/m32r/m32r.c (gen_split_move_double): Likewise.
3694 * config/pj/pj.c (pj_output_rval): Likewise.
3696 2002-03-22 Richard Henderson <rth@redhat.com>
3699 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
3700 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
3701 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
3702 (ia64_expand_prologue): Look at int_regs, not words, for number
3703 of incomming int regs.
3705 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
3707 * expr.c (expand_expr): A RESULT_DECL is part of a call.
3709 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
3711 * toplev.c (flag_loop_optimize, flag_crossjumping):
3712 New static variables.
3713 (rest_of_compilation): Conditionalize crossjumping and
3715 (parse_options_and_default_flags): Default loop_optimize and
3717 (lang_independent_options): Add -fcrossjumping and -floop-optimize
3718 * invoke.texi (crossjumping, loop-optimize): Document.
3720 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
3722 * real.c (eiisneg): Move outside #ifdef NANS.
3724 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
3726 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
3727 frequencies match; avoid match on different loop depths.
3728 (try_crossjump_to_bb): Kill tests that no longer brings time
3730 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
3732 (split_edge): Likewise.
3734 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
3737 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
3738 * cfgrtl.c: Include insn-config.h
3739 (split_block) Dirtify block in presence of conditional execution
3741 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
3743 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
3744 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
3745 (function_arg): Constify CUMULATIVE_ARGS.
3746 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
3747 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
3748 (UNITS_PER_DOUBLE): New macro.
3749 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
3750 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
3751 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
3752 fp_regs and stack_words.
3753 (EABI_FLOAT_VARARGS_P): New macro.
3754 * config/mips/mips.c (struct mips_arg_info): New.
3755 (mips_arg_info): New function.
3756 (function_arg_advance): Use it. Add adjustment instructions here
3757 rather than in function_arg.
3758 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
3759 for VOIDmode at the beginning of the function.
3760 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
3761 (function_arg_pass_by_reference): Likewise.
3762 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
3763 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
3764 (mips_va_start): Likewise. Use the new stack_words field of
3765 CUMULATIVE_ARGS to set up overflow area. Reformat.
3766 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
3767 doubles and other types, aligning the overflow pointer for non-doubles
3768 too. Remove some code duplication. Replace hard-coded constants.
3770 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
3772 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
3773 (CLASS_UNITS): Undefine.
3774 (CLASS_MAX_NREGS): Use FP_INC.
3775 * config/mips/mips.c (compute_frame_size): Likewise.
3776 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
3778 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
3780 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
3781 prototype, and handle lexing numbers and identifiers.
3782 (parse_identifier): Update to new form of parse_slow.
3783 (parse_number): Fast path only, use parse_slow otherwise.
3784 (_cpp_lex_direct): Update calls to parse_number.
3786 2002-03-21 DJ Delorie <dj@redhat.com>
3788 * bb-reorder.c (make_reorder_chain_1): Protect against
3789 when redundant edges are omitted.
3790 * predict.c (dump_prediction): Likewise.
3792 2002-03-21 Richard Henderson <rth@redhat.com>
3795 * fixinc/inclhack.def (solaris_stdio_tag): New.
3796 * fixinc/fixincl.x: Regenerate.
3798 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
3801 * c-typeck.c (process_init_element): Flag non-static
3802 initialization of a flexible array member as illegal.
3804 2002-03-22 Alan Modra <amodra@bigpond.net.au>
3806 * config/rs6000/t-linux64: New.
3807 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
3808 t-ppccomm. Use t-rs6000 and t-linux64.
3809 (powerpc64-*-gnu* <tmake_file>): Likewise.
3810 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
3811 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
3812 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
3814 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
3816 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
3817 flag_really_no_inline instead of optimize == 0.
3819 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
3821 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
3823 * flags.h (flag_really_no_inline): New.
3825 * c-common.c (c_common_post_options): Initialize
3826 flag_really_no_inline.
3828 * toplev.c (flag_really_no_inline): New.
3830 2002-03-21 Jakub Jelinek <jakub@redhat.com>
3832 * config/avr/avr.md (length): Fix length computation for
3833 conditional branches.
3835 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
3837 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
3838 sdbout.o, profile.o): Update.
3839 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
3841 * c-common.h (gettags): Move here from tree.h.
3842 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
3843 insert_block, getdecls, kept_level_p, global_bindings_p): New.
3844 * dbxout.c (dbxout_init): Use getdecls langhook.
3845 * expr.c (expand_expr): Use insert_block langhook.
3846 * fold-const.c: Include langhooks.h.
3847 (fold_range_test, fold_binary_op_with_conditional_arg,
3848 fold): Use global_bindings_p langhook.
3849 * integrate.c (expand_inline_function): Use insert_block langhook.
3850 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
3851 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
3852 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
3853 LANG_HOOKS_GETDECLS): New.
3854 (LANG_HOOKS_INITIALIZER): Update.
3855 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
3857 * langhooks.h (struct lang_hooks_for_decls): New.
3858 (struct lang_hooks): Update.
3859 * profile.c: Include langhooks.h.
3860 (output_func_start_profiler): Use new langhooks.
3861 * sdbout.c: Include langhooks.h.
3862 (sdbout_init, sdbout_finish): Use getdecls langhook.
3863 * stmt.c: Include langhooks.h.
3864 (expand_fixup, fixup_gotos): Use new langhooks.
3865 * stor-layout.c: Include langhooks.h.
3866 (variable_size): Use global_bindings_p langhook.
3867 * toplev.c (compile_file): Use getdecls langhook.
3868 * tree-inline.c (remap_block): Use insert_block langhook.
3869 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
3870 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
3872 2002-03-21 Richard Henderson <rth@redhat.com>
3874 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
3875 constants in .data when -fpic.
3877 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3879 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
3882 2002-03-21 Tom Tromey <tromey@redhat.com>
3884 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
3886 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3888 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
3890 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
3892 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
3893 Richard Henderson <rth@redhat.com>
3896 * c-common.c (c_expand_expr): Preserve result of a statement
3897 expression if needed.
3899 2002-03-21 Jakub Jelinek <jakub@redhat.com>
3902 * genrecog.c (maybe_both_true_mode): Remove.
3903 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
3904 * machmode.def (Pmode): Likewise.
3906 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
3908 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
3909 (nonlocal_mentioned_p_1): New function.
3910 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
3911 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
3912 (mark_constant_function): Recognize pure functions.
3913 * rtl.h (global_reg_mentioned_p): New prototype.
3914 * rtlanal.c (global_reg_mentioned_p,
3915 global_reg_mentioned_p_1): New function.
3917 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3919 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
3921 * fixinc/fixincl.x: Regenerate.
3923 2002-03-20 Jason Merrill <jason@redhat.com>
3925 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
3927 2002-03-20 Michael Meissner <meissner@redhat.com>
3929 * doc/invoke.texi (Optimize Options): Document that -O2 sets
3932 2002-03-20 Bob Wilson <bob.wilson@acm.org>
3934 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
3935 ".literal_position" directive before the constant pool.
3937 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3939 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
3940 Add Craig Rodrigues.
3941 Add Brad Lucier to testers.
3943 2002-03-20 Jakub Jelinek <jakub@redhat.com>
3946 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
3948 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
3949 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
3950 instead of insn_extract.
3952 2002-03-20 Jakub Jelinek <jakub@redhat.com>
3955 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
3957 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
3958 stmt if some case has been output.
3960 2002-03-20 Jakub Jelinek <jakub@redhat.com>
3963 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
3964 movsfcc_1, movdfcc_1): Add %O2.
3965 * config/i386/i386.c (print_operand): Handle %ON.
3966 Print . before float condition codes in Sun as cmov syntax.
3967 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
3968 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
3971 2002-03-20 Philip Blundell <pb@nexus.co.uk>
3973 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
3974 return instruction if PC was popped.
3976 2002-03-20 Bob Wilson <bob.wilson@acm.org>
3978 * config/xtensa/xtensa.md: Remove unused type attributes.
3979 (adddi_carry, subddi_carry): Change type attribute to "multi".
3981 2002-03-19 Dale Johannesen <dalej@apple.com>
3983 PR optimization/5999, middle-end/5731
3984 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
3985 multiplications by reciprocals.
3987 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
3989 * Makefile.in: Update.
3990 * c-common.c: Include langhooks.h.
3991 (inline_forbidden_p): Use new hook.
3992 * diagnostic.c: Include langhooks.h.
3993 (format_with_decl, announce_function,
3994 default_print_error_function): Use new hook.
3995 * dwarf2out.c (dwarf2_name): Use new hook.
3996 * function.c: Include langhooks.h.
3997 (init_function_start): Use new hook.
3998 * langhooks-def.h (lhd_decl_printable_name): New.
3999 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
4000 (LANGHOOKS_INITIALIZER): Update.
4001 * langhooks.c (lhd_decl_printable_name): New.
4002 * langhooks.h (struct lang_hooks): New hook.
4003 * toplev.c (decl_name, decl_printable_name): Remove.
4004 (open_dump_file): Use new hook.
4005 (process_options): Remove old hook.
4006 * tree.h (decl_printable_name): Remove.
4008 * objc-act.c (objc_init): Remove old hook.
4009 (objc_printable_name): Export.
4010 * objc-act.h (objc_printable_name): New.
4011 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
4013 2002-03-19 Jim Blandy <jimb@redhat.com>
4015 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
4016 the start_source_file debug hook, not the current line number.
4018 2002-03-19 Richard Henderson <rth@redhat.com>
4020 * flow.c (EH_USES): Provide default.
4021 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
4022 * doc/tm.texi (EH_USES): New.
4024 * config/ia64/ia64.c (ia64_eh_uses): New.
4025 * config/ia64/ia64-protos.h: Update.
4026 * config/ia64/ia64.h (EH_USES): New.
4028 2002-03-19 Richard Henderson <rth@redhat.com>
4030 * varasm.c (output_constant_def): Fix stupid typo.
4032 2002-03-19 Richard Henderson <rth@redhat.com>
4035 * except.c (current_function_has_exception_handlers): New.
4036 * except.h: Declare it.
4037 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
4038 Combine tests that disable all sibcalls for the function.
4040 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
4042 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
4045 2002-03-19 Richard Henderson <rth@redhat.com>
4048 * config/ia64/ia64.c: Revert 2002-03-01 patch.
4049 * config/ia64/ia64.h (INIT_EXPANDERS): New.
4051 2002-03-19 Jim Blandy <jimb@redhat.com>
4053 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
4054 name, even if the replacement list contains no tokens, as required
4057 2002-03-19 Jason Merrill <jason@redhat.com>
4059 * varasm.c (globalize_decl): Get the name from the RTL, not
4060 DECL_ASSEMBLER_NAME.
4062 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
4064 2002-03-19 Bob Wilson <bob.wilson@acm.org>
4066 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
4067 subdi_carry): Define.
4069 2002-03-19 David Edelsohn <edelsohn@gnu.org>
4071 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
4072 about -fpic/-fPIC if extra_warnings set.
4074 2002-03-19 David Edelsohn <edelsohn@gnu.org>
4076 * expr.c (expand_expr): Sign-extend CONST_INT generated from
4077 TREE_STRING_POINTER.
4078 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
4080 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4082 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
4083 in favor of SP if FRAME_POINTER_REQUIRED is false.
4085 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
4087 * emit-rtl.c (gen_int_mode): New function.
4088 * rtl.h: Prototype for it.
4089 * combine.c (make_extraction, simplify_comparison), expmed.c
4090 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
4091 (convert_modes, store_field), optabs.c (expand_fix),
4092 simplify-rtx.c (neg_const_int, simplify_unary_real),
4094 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
4095 Use it instead of GEN_INT (trunc_int_for_mode (...)).
4097 2002-03-19 Jakub Jelinek <jakub@redhat.com>
4100 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
4101 convert_parm_for_inlining.
4102 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
4104 * langhooks-def.h: Likewise.
4105 * objc/objc-lang.c: Likewise.
4106 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
4108 * tree-inline.c (initialize_inlined_parameters):
4109 Call convert_parm_for_inlining lang hook if needed.
4110 * c-typeck.c (c_convert_parm_for_inlining): New function.
4111 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
4113 2002-03-18 Mark Mitchell <mark@codesourcery.com>
4115 * calls.c (precompute_arguments): Do not assume that temporaries
4116 can be destroyed after expanding the argument.
4117 (expand_call): Likewise.
4119 2002-03-15 Eric Christopher <echristo@redhat.com>
4121 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
4122 Fix register preference on last change.
4123 * config/mips/mips.c (mips_return_in_memory): New function.
4124 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
4125 * config/mips/mips-protos.h: Declare.
4126 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
4127 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
4129 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
4131 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
4133 (anddi3, iorsi3): Likewise.
4135 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
4136 use %gprel for symbols that are going to be placed in linkonce
4139 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
4140 RETURN_ADDRESS_POINTER_REGNUM to $ra.
4141 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
4142 not needed. Disregard leaf_function_p().
4143 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
4144 mips16 frame pointer.
4145 * config/mips/mips.md (store ra): Only to small SP offsets.
4146 2001-08-22 Graham Stott <grahams@redhat.com>
4147 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
4148 return a REG rtx for the return address register.
4150 2002-03-18 Bob Wilson <bob.wilson@acm.org>
4152 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
4153 constant-pool addresses as "mode-dependent".
4154 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
4156 2002-03-18 Jakub Jelinek <jakub@redhat.com>
4159 * expr.c (emit_group_load): Use extract_bit_field if
4160 needed for CONCAT arguments.
4162 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
4165 * arm.md (tablejump): Make this a define_expand. For PIC add the
4166 offset to the base of the table.
4167 (thumb_tablejump): Matcher for Thumb tablejump insn.
4168 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
4169 as the difference of two labels.
4170 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4171 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
4173 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
4174 * arm.c (get_jump_table_size): If the table is not in the text
4175 section, return zero.
4177 2002-03-18 Bernd Schmidt <bernds@redhat.com>
4179 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
4181 (arm_reload_out_hi): Use gen_lowpart instead of
4182 gen_rtx_SUBREG to access QImode components.
4183 * config/arm/arm.md: Disable zero_extend split for QImode
4184 subregs in BIG_ENDIAN mode.
4185 (storehi_bigend): Match use of least significant byte.
4186 (storeinthi): Remove extraneous SUBREG.
4187 Add missing construction of operands[2].
4188 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
4189 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
4190 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
4192 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
4194 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
4197 2002-03-17 Richard Henderson <rth@redhat.com>
4199 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
4202 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
4204 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
4205 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
4207 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4209 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
4211 * predict.c (estimate_bb_frequencies): Delete unused variables.
4213 2002-03-17 Richard Henderson <rth@redhat.com>
4215 * config/ia64/ia64.c (ia64_attribute_table): Move before
4216 targetm definition. Make static.
4218 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
4220 * c-common.h (yyparse, c_common_parse_file): New.
4221 * c-lang.c: Include c-common.h.
4222 (LANG_HOOKS_PARSE_FILE): Redefine.
4223 * c-lex.c: Include c-common.h.
4224 (yyparse): Rename c_common_parse_file. Call yyparse.
4225 * c-parse.in (yyparse): Remove macro.
4226 * c-tree.h (yyparse_1): Remove.
4227 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
4228 (LANG_HOOKS_INITIALIZER): Update.
4229 * langhooks.h (struct lang_hoooks): New hook parse_file.
4230 * toplev.c (compile_file): Use parse_file hook.
4231 * tree.h (yyparse): Remove.
4232 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
4234 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
4236 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
4237 float_truncate, not fix.
4238 ("*truncdfsf2_real"): Ditto.
4239 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
4241 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
4243 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
4245 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
4246 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
4247 where appropriate. Make the second reference to
4248 leaf_function_p a function call, as intended. Reindented.
4250 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
4251 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
4253 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
4254 add register to non-constant into sp.
4256 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
4257 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
4258 (mips16_gp_pseudo_rtx): Lose.
4259 (INIT_EXPANDERS): Deleted.
4260 * config/mips/mips.c (mips_init_machine_status): New.
4261 (mips_free_machine_status): New.
4262 (mips_mark_machine_status): New.
4263 (override_options): Set them.
4264 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
4265 (struct machine_function): ... new. Replaced all references.
4266 (mips_add_gc_roots): Don't mark them.
4267 (embedded_pic_fnaddr_reg): New, extracted from...
4268 (embedded_pic_offset): ... here.
4269 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
4272 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
4274 * cppinit.c: Revert -MD removal.
4276 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4278 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
4279 soft registers by default for 68HC12.
4280 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
4281 when compiling with -fomit-frame-pointer.
4282 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
4283 (expand_epilogue): Likewise.
4284 (m68hc11_gen_rotate): Use exg when rotating by 8.
4286 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4288 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
4289 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
4290 (splits): Remove unused add splits.
4291 ("*addhi3_68hc12"): Tune constraints.
4292 ("addhi_sp"): Try to use X instead of Y in all cases and if the
4293 constant fits in 8-bits and D is dead use abx/aby instructions.
4294 ("*addhi3"): Remove extern declaration of ix_reg.
4295 ("*subsi3"): Optimize and provide new split.
4296 ("subhi3"): Cleanup.
4297 ("*subhi3_sp"): Avoid saving X if we know it is dead.
4298 (arith splits): For 68hc12 save the address register on the stack
4299 and do the arithmetic operation with a pop.
4301 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4303 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
4304 allocating QImode in address registers.
4305 ("*movqi_m68hc11"): Likewise.
4307 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
4309 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
4311 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
4313 * cppinit.c (print_help): Display -MD and -MMD.
4314 Don't display usage string. Update assertion syntax and
4316 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
4317 (cpp_handle_option): Update.
4319 2002-03-15 Chris Demetriou <cgd@broadcom.com>
4321 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
4322 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
4323 and define it so that regardless of target CPU size,
4324 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
4325 of "int" rather than "long."
4327 2002-03-15 Richard Henderson <rth@redhat.com>
4329 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
4332 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4334 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
4335 ("tstqi" split): Avoid using memory for tstqi on address register.
4336 (splits): Remove constraints.
4337 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
4338 ("cmpdf", "cmpsf"): Remove since not used.
4339 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
4340 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
4342 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4344 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
4345 ("neghi2"): Tighten constraints.
4346 ("one_cmplsi2"): Optimize and simplify split.
4347 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
4349 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4351 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
4352 and split of AND operation to clear the upper bits.
4353 ("*logicalsi3_zextqi"): Likewise.
4354 ("*logicallhi3_zexthi_ashift8"): Likewise.
4355 ("*logicalsi3_silshr16"): Likewise.
4356 ("logicalsi3_silshl16"): Likewise.
4357 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
4359 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4361 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
4362 (m68hc11_indirect_p): New function.
4363 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
4364 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
4366 (asm_print_register): Likewise.
4367 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
4368 (m68hc11_indirect_p): Declare.
4369 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
4370 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
4371 (TARGET_SWITCHES): New option -mrelax.
4372 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
4374 ("iorsi3", "xorsi3"): Likewise.
4375 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
4376 ("*andhi3_mem"): New to handle destination in memory with bclr
4377 and a scratch register.
4378 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
4379 ("*andhi3_const"): New when operand2 is constant.
4380 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
4381 ("*andhi3_gen"): Cleanup of the old "andhi3".
4382 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
4383 ("xorqi3"): Update constraints.
4385 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4387 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
4388 for reg_equiv_memory_loc when the operand is a register that does
4389 not get a hard register (stack location).
4390 (tst_operand): After reload, accept all memory operand.
4391 (symbolic_memory_operand): Fix detection of symbolic references.
4392 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
4393 accept symbols and any constant.
4395 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4397 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
4398 note on the insn that sets the soft frame register.
4399 (must_parenthesize): ix and iy are also reserved names.
4400 (print_operand_address): One more place where parenthesis are required
4401 to avoid confusion with register names.
4402 (m68hc11_gen_movhi): Allow push of stack pointer.
4403 (m68hc11_check_z_replacement): Fix handling of parallel with a
4405 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
4406 the replacement register is.
4407 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
4408 and D8_REGS classes.
4409 (MODES_TIEABLE_P): All modes are tieable except QImode.
4411 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4413 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
4414 (___subdi3): Likewise.
4415 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
4416 (__map_data_section): Optimize 68hc11 case.
4418 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4420 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
4421 than a shift to avoid adding a register with itself.
4422 (m68hc11_memory_move_cost): Take into account NO_REGS.
4423 (m68hc11_register_move_cost): Update and use memory move cost
4425 (m68hc11_address_cost): Make cost of valid offset not 0 so that
4426 it gives more opportunities to cse to optimize.
4427 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
4428 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
4430 2002-03-15 Mark Mitchell <mark@codesourcery.com>
4432 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
4433 * c-common.def (CLEANUP_STMT): New tree node.
4434 * c-common.h (CLEANUP_DECL): New macro.
4435 (CLEANUP_EXPR): Likewise.
4436 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
4437 * expr.c (expand_expr): Tidy.
4438 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
4439 * tree-inline.c (initialize_inlined_parameters): Clean up
4440 new local variables.
4442 2002-03-15 Jakub Jelinek <jakub@redhat.com>
4445 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
4446 before movrXX only, use reg_overlap_mentioned_p.
4447 Only special case NE if just one insn can be generated.
4449 2002-03-15 Jason Merrill <jason@redhat.com>
4451 * varasm.c (assemble_variable): Call resolve_unique_section before
4452 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
4455 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
4458 * arm.md (split pattern for thumb shiftable immediates): Add comment
4459 explaining non-obvious test.
4461 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
4464 * arm.md (movaddr, movaddr_insn): Delete.
4466 2002-03-15 Jason Merrill <jason@redhat.com>
4468 * toplev.c (wrapup_global_declarations): Clarify variable handling.
4469 -fkeep-static-consts doesn't apply to comdats.
4471 2002-03-14 Richard Henderson <rth@redhat.com>
4473 * c-decl.c: Include c-pragma.h.
4474 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
4475 (finish_function): Tidy.
4476 * c-pragma.c: Include c-common.h.
4477 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
4478 (handle_pragma_weak): Use them.
4479 (init_pragma): Register pending_weaks.
4480 * c-pragma.h (maybe_apply_pragma_weak): Declare.
4481 * print-tree.c (print_node): Print DECL_WEAK.
4482 * varasm.c (mark_weak_decls): Remove.
4483 (remove_from_pending_weak_list): Remove.
4485 (asm_emit_uninitialised): Call globalize_decl for weak commons.
4486 (weak_decls): Make a tree_list.
4487 (declare_weak): Cons weak_decls directly.
4488 (globalize_decl): Remove weak_decls elements directly.
4489 (weak_finish): Simplify weak_decls walk. Don't weaken unused
4490 symbols. Don't pretend to handle aliases.
4491 (init_varasm_once): Update weak_decls registry.
4492 * Makefile.in: Update dependencies.
4494 2002-03-14 Richard Henderson <rth@redhat.com>
4497 * config/ia64/ia64.c: Include tm_p.h last.
4498 (gen_nop_type): Remove duplicate definition.
4499 (cycle_end_fill_slots): Set sched_data for second L slot.
4500 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
4501 (nop_cycles_until): Fix typos.
4503 2002-03-15 Jakub Jelinek <jakub@redhat.com>
4505 PR optimization/5891
4506 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
4508 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
4510 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
4511 descriptors correctly.
4513 2002-03-14 Michael Meissner <meissner@redhat.com>
4515 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
4516 100, allowing MAX_UNROLLED_INSNS to be overridden.
4518 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
4521 * unroll.c (params.h): Include.
4522 (MAX_UNROLLED_INSNS): Delete, now in params.h.
4524 * doc/invoke.texi (--param max-unroll-insns): Document.
4526 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
4528 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
4530 * arm.md: Fix warnings about constraints in peepholes and splits.
4532 2002-03-14 Zack Weinberg <zack@codesourcery.com>
4534 * cpphash.h (struct lexer_state): Remove line_extension member.
4535 * cpplib.c (dequote_string, do_linemarker): New functions.
4536 (linemarker_dir): New data object.
4537 (DIRECTIVE_TABLE): No longer need to interpret #line in
4538 preprocessed source. Delete obsolete comment about return
4540 (end_directive, directive_diagnostics, _cpp_handle_directive):
4541 Don't muck with line_extension.
4542 (directive_diagnostics): No need to issue warnings for
4544 (_cpp_handle_directive): Issue warnings for linemarkers here,
4545 when appropriate. Dispatch linemarkers to do_linemarker, not
4547 (do_line): Code to handle linemarkers split out to do_linemarker.
4548 Convert escape sequences in filename argument, both places.
4550 * cppmacro.c (quote_string): Rename cpp_quote_string and
4551 export. All callers changed.
4552 * cpplib.h (cpp_quote_string): Prototype.
4553 * cppmain.c (print_line): Call cpp_quote_string on to_file
4556 * doc/cpp.texi: Document that escapes are now interpreted in
4557 #line and in linemarkers, and that non-printing characters are
4558 converted to octal escapes when linemarkers are generated.
4560 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
4562 * emit-rtl.c (try_split): Use delete_insns.
4563 * recog.c (split_all_insns): Fix terminating condition.
4565 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
4566 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
4569 * arm.c (arm_output_epilogue): Fix floating-point register save
4570 adjustment when using a frame pointer.
4572 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
4574 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
4575 * config/mips/mips.c (compute_frame_size): Retrofit them here.
4576 (save_restore_insns, mips_expand_epilogue): And here.
4577 (build_mips16_call_stub): And here.
4578 (mips_function_value): Use the new macros to decide whether a single
4579 or complex float can be returned in floating-point registers. Return
4580 a parallel rtx in the complex case.
4582 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
4584 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
4585 call after liveness analysis.
4587 * recog.c (split_insn): Use delete_insn_and_edges.
4589 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
4590 instructions to have branch prediction notes.
4591 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
4593 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
4595 * configure.in: Don't pass -Wno-long-long to a ADA compiler
4596 that doesn't support it.
4597 * configure: Regenerate.
4599 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4602 * config/sparc/sparc.md (normal_branch, inverted_branch,
4603 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
4604 inverted_fp_branch): Adjust calls to output_cbranch.
4605 Set length attribute.
4606 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
4607 output_v9branch. Set length attribute.
4608 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
4610 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
4611 (output_cbranch): Likewise. Handle far branches.
4612 (output_v9branch): Handle far branches.
4613 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
4615 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
4616 noov_compare64_op predicates.
4618 2002-03-13 Jason Merrill <jason@redhat.com>
4620 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
4621 into the function and constify it.
4622 * gthr-dce.h, gthr-solaris.h: Likewise.
4624 2002-03-13 David Edelsohn <edelsohn@gnu.org>
4626 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
4627 * config/rs6000/rs6000.c (rs6000_va_arg): Use
4628 std_expand_builtin_va_arg if not ABI_V4.
4630 2002-03-13 Jason Merrill <jason@redhat.com>
4632 * varasm.c (globalize_decl): New fn.
4633 (assemble_start_function): Use it.
4634 (asm_emit_uninitialized): Use it.
4635 (assemble_alias): Use it.
4636 (assemble_variable): Use it.
4638 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
4640 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
4641 2002-03-12 internal visibility change.
4642 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
4643 visibility into SYMBOL_REF_FLAG.
4645 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
4647 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
4648 VOIDmode operand. Add compile-time optimization for constant results.
4650 2002-03-12 Jason Merrill <jason@redhat.com>
4652 * c-typeck.c (convert_for_assignment): Don't allow conversions
4653 between pointers and references. Only allow lvalues to convert to
4656 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
4658 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
4659 before prologue, to avoid scheduling problems.
4661 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4663 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
4664 (ELIMINABLE_REGS): Add sfp->sp.
4665 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
4667 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4669 PR optimization/5892
4670 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
4672 2002-03-13 Jakub Jelinek <jakub@redhat.com>
4674 * loop.c (basic_induction_var): Don't call convert_modes if mode
4675 classes are different.
4677 2002-03-12 Richard Henderson <rth@redhat.com>
4679 PR optimization/5901
4680 * function.c (reposition_prologue_and_epilogue_notes): Position
4681 the markers after/before the last/first insn not deleted.
4683 2002-03-12 Richard Henderson <rth@redhat.com>
4685 PR optimization/5878
4686 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
4687 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
4688 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
4690 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
4691 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
4692 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
4694 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
4695 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
4696 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
4697 also. Don't set it if not flag_pic.
4698 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
4699 to be INVALID_REGNUM when not used.
4701 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
4703 * expmed.c (store_bit_field): Reset alias set for memory.
4704 (extract_bit_field): Same.
4706 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4708 * c-common.c (c_tree_code_type, c_tree_code_length,
4709 c_tree_code_name, add_c_tree_codes): Delete.
4710 * c-common.h (add_c_tree_codes): Delete.
4711 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
4713 * c-objc-common.c (c_objc_common_init): Don't call
4714 add_c_tree_codes, instead set lang_unsafe_for_reeval.
4715 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
4716 objc_tree_code_name, add_objc_tree_codes): Delete.
4717 (objc_init): Don't call add_objc_tree_codes.
4718 * objc/objc-lang.c (tree_code_type, tree_code_length,
4719 tree_code_name): Define.
4720 * toplev.c (lang_independent_init): Don't set
4721 tree_code_length[IDENTIFIER_NODE].
4722 * tree.c (tree_code_type, tree_code_length, tree_code_name):
4723 Delete definitions, moved to language front-ends.
4724 * tree.def (IDENTIFIER_NODE): Hardwire the length.
4725 * tree.h (tree_code_type, tree_code_length, tree_code_name):
4727 (tree_code_length): Change type to unsigned char.
4729 2002-03-12 Richard Henderson <rth@redhat.com>
4731 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
4732 internal visibility change.
4734 2002-03-12 Bob Wilson <bob.wilson@acm.org>
4736 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
4737 validize_mem() instead of change_address to avoid clobbering
4740 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
4742 * c-lex.h (position_after_whitespace): Remove.
4744 2002-03-12 Jakub Jelinek <jakub@redhat.com>
4746 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
4747 (lex_string): Use unsigned char pointers.
4749 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
4751 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
4752 is not a valid memory_operand.
4754 2002-03-12 Bob Wilson <bob.wilson@acm.org>
4756 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
4757 * config/xtensa/lib1funcs.asm: Fix copyright to include
4758 special case for libgcc files.
4759 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
4760 (__divsi3): Likewise.
4761 (__umodsi3): Likewise.
4762 (__modsi3): Likewise.
4763 * config/xtensa/lib2funcs.S: Fix copyright to include
4764 special case for libgcc files.
4766 2002-03-12 Tom Rix <trix@redhat.com>
4768 * collect2.c (resolve_lib_name): Move outside of
4769 OBJECT_FORMAT_COFF ifdef.
4770 (ignore_library): Same.
4772 2002-03-12 Bob Wilson <bob.wilson@acm.org>
4774 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
4776 2002-03-12 Bob Wilson <bob.wilson@acm.org>
4778 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
4779 to function_section before writing out the constant pool.
4781 2002-03-12 David Edelsohn <edelsohn@gnu.org>
4783 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
4785 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
4787 2002-03-12 Alan Modra <amodra@bigpond.net.au>
4789 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
4793 (cmpsi splitter): Likewise.
4794 (modsi3): Fail if <= 0.
4795 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
4796 redundant test when HOST_BITS_PER_WIDE_INT != 32.
4797 (reg_or_sub_cint64_operand): Likewise.
4798 (num_insns_constant_wide): Optimize sign extension.
4799 (rs6000_legitimize_address): Likewise.
4801 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
4803 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4804 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
4806 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
4808 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
4809 address calculation.
4811 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
4813 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
4814 scratch register to DImode / TImode.
4815 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
4816 register used does not overlap the target.
4818 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4820 * Makefile.in (debug.o): Depend on debug.h.
4821 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
4822 * debug.c (do_nothing_debug_hooks): Likewise.
4823 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
4824 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
4825 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
4826 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
4827 * dwarfout.c (dwarf_debug_hooks): Likewise.
4828 * integrate.c (output_inline_function): Likewise.
4829 * objc/objc-act.c (synth_module_prologue): Likewise.
4830 * sdbout.c (sdb_debug_hooks): Likewise.
4831 * toplev.c (debug_hooks): Likewise.
4832 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
4834 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4836 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
4837 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
4838 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
4839 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
4840 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
4841 * defaults.h (POINTER_SIZE): Define.
4842 * doc/tm.texi (POINTER_SIZE): Document default.
4844 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4846 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
4848 2002-03-11 Richard Henderson <rth@redhat.com>
4850 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
4851 if rebuild_label_notes_after_reload.
4853 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
4855 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
4856 emit pic register load if "internal" visibility.
4857 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
4858 (cris_expand_builtin_va_arg): Do all computations on trees.
4860 2002-03-11 Richard Henderson <rth@redhat.com>
4862 * rtlanal.c: Include recog.h.
4863 (keep_with_call_p): Fix thinko.
4864 * Makefile.in (rtlanal.o): Update dependencies.
4866 2002-03-11 Chris Meyer <cmeyer@gatan.com>
4868 * genflags.c (gen_insn): Use IS_VSPACE.
4869 * genoutput.c (output_insn_data): Likewise.
4870 (process_template): Likewise.
4872 2002-03-11 Richard Henderson <rth@redhat.com>
4874 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
4876 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
4878 * Makefile.in: Update.
4879 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
4880 Update documentation.
4881 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
4882 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
4884 2002-03-11 Zack Weinberg <zack@codesourcery.com>
4886 * Makefile.in: Give texi2pod its input file as a command line
4887 argument, not on stdin.
4889 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
4890 Daniel Berlin <dan@dberlin.org>
4892 C++ alias analysis improvement.
4893 * alias.c (record_component_aliases): Record aliases for base
4896 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
4898 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
4900 2002-03-11 Douglas B Rupp <rupp@gnat.com>
4902 * toplev.c (vms_fopen): Remove, not needed.
4904 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
4906 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
4908 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
4909 for FP, already done later.
4911 * toplev.c (debug_args): Add entry for VMS_DEBUG.
4912 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
4914 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
4916 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
4917 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
4918 LARGEST_EXPONENT_IS_NORMAL for the given mode.
4919 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
4920 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
4921 (ediv, emul, eldexp, esqrt): Likewise.
4922 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
4923 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
4924 (saturate): New function.
4925 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
4926 (make_nan): Use a saturation value instead of a NaN if
4927 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
4928 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
4929 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
4930 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
4931 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
4932 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
4933 !ROUND_TOWARDS_ZERO.
4934 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
4935 (ROUND_TOWARDS_ZERO): Document.
4937 2002-03-11 Andreas Jaeger <aj@suse.de>
4939 * cfg.c (dump_flow_info): Remove unused variable.
4941 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
4943 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
4944 computations on trees.
4946 2002-03-10 Richard Henderson <rth@redhat.com>
4949 * reload.c (copy_replacements_1): New.
4950 (copy_replacements): Use it to recurse through the rtx.
4952 2002-03-10 Richard Henderson <rth@redhat.com>
4954 * loop.c (strength_reduce): Compute number of iterations as
4955 unsigned HOST_WIDE_INT.
4957 2002-03-10 Richard Henderson <rth@redhat.com>
4959 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
4960 to move away from the end of the block.
4962 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
4964 PR preprocessor/5899
4965 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
4967 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4969 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
4971 * attribs.c (decl_attributes): Fix signed/unsigned warning.
4973 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
4975 * config/mmix/mmix.c: Improve comments.
4976 (mmix_target_asm_function_prologue): Drop variable
4977 empty_stack_frame. Don't allocate unused slot above fp.
4978 (mmix_target_asm_function_epilogue): Mirror prologue changes.
4979 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
4980 brace in first column.
4981 (enum reg_class): Ditto.
4982 (FIRST_PARM_OFFSET): Now 0.
4983 (USER_LABEL_PREFIX): Remove #if 0:d definition.
4985 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4987 * combine.c (make_extraction): Fix error in last change.
4989 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4991 * c4x.c (c4x_fp_reglist): Const-ify.
4992 * cris.c (cris_print_operand): Likewise.
4993 * i386.c (ix86_va_arg): Likewise.
4994 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
4995 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
4996 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
4997 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
4998 * mcore.h (regno_reg_class): Likewise.
4999 * mips.c (gen_int_relational): Likewise.
5000 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
5001 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
5002 * pdp11.c (move_costs): Likewise.
5003 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
5004 * s390.c (s390_branch_condition_mnemonic, regclass_map):
5006 * s390.h (regclass_map): Likewise.
5007 * sh.c (shift_amounts): Likewise.
5008 * sh.md (rotlsi3): Likewise.
5010 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
5012 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
5013 (ne0+5): Use new clobber to generate proper shift pattern.
5014 Patch by Michael Matz <matz@kde.org>.
5016 2002-03-09 Andreas Schwab <schwab@suse.de>
5018 * gcc.c (validate_all_switches): Also handle `%W{...}'.
5020 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
5022 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
5024 2002-03-09 Jakub Jelinek <jakub@redhat.com>
5027 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
5028 even for non-representable constants.
5030 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5032 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
5033 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
5034 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
5035 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
5036 (pop_function_context): Compute MAY_SHARE parameter for
5038 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
5039 (gen_mem_addressof): Call fixup_var_refs with new parm.
5041 * combine.c (make_extraction): Don't make extension of CONST_INT.
5043 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
5045 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
5046 in o32 and o64 ABIs.
5047 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
5048 but getting fixed-size structs passed in registers regardless of
5049 padding in o32 and o64 ABIs.
5051 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
5052 offset before loading address of argument passed by transparent
5055 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
5057 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
5059 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
5061 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
5062 marker such that registers after it are saved.
5064 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5066 * sparc.c (arith_4096_operand): Fix error in last change.
5068 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
5070 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
5073 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
5075 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
5078 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
5080 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
5082 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
5084 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
5085 removed; fix return value.
5086 * combine.c (combine_instructions): Dirtify blocks where we failed to
5087 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
5088 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
5090 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5092 * gcse.c (insert_insn_end_bb): Fix typo in last change.
5094 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
5096 * recog.c (peephole2_optimize): Re-distribute EH edges.
5098 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
5100 * expr.c (expand_expr): Use unsave lang hook.
5101 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
5102 (LANG_HOOKS_INITIALIZER): Update.
5103 * langhooks.h (struct lang_hooks): New hook unsave.
5104 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
5105 (unsave_expr_1): Remove unused lang_unsave_expr_now.
5106 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
5107 (unsave_expr_now): Remove.
5108 * tree.h (unsave_expr_now, lang_unsave,
5109 lang_unsave_expr_now): Remove.
5112 2002-03-08 Andreas Jaeger <aj@suse.de>
5114 * flow.c (propagate_block_delete_insn): Remove unused variable.
5116 2002-03-08 Kazu Hirata <kazu@hxi.com>
5118 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
5119 insn length for memory load/store.
5121 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
5123 * doc/install.texi (--with-libiconv-prefix): Document.
5125 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
5127 * doc/sourcebuild.texi: Fix typo.
5129 2002-03-08 Jakub Jelinek <jakub@redhat.com>
5132 * builtins.c (std_expand_builtin_va_arg): Do all computations on
5135 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5137 * rtl.c (copy_most_rtx): Move from here ...
5138 * emit-rtl.c (copy_most_rtx): ... to here.
5140 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
5142 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
5143 SUBTARGET_CPP_SIZE_SPEC.
5144 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
5146 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
5148 2002-03-07 Matt Hiller <hiller@redhat.com>
5150 * gensupport.c (first_dir_md_include): Renamed from include;
5151 change all references.
5152 (last_dir_md_include): Renamed from last_include; change all
5154 (init_md_reader): Unconditionally initialize base_dir whether or
5155 not filename is a relative path.
5157 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
5159 * config/fp-bit.c (_unord_f2): Compile it in even if
5160 US_SOFTWARE_GOFAST is enabled.
5162 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
5163 NULL_RTX. Set all HFmode operations as NULL_RTX.
5164 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
5165 NULL_RTX, try reversing the comparison and the operands.
5167 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
5169 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
5170 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
5173 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
5175 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
5177 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
5179 * basic-block.h (fixup_abnormal_edges): Declare.
5180 * reload1.c (fixup_abnormal_edges): New function.
5181 * reg-stack.c (convert_regs): Use it.
5183 * gcse.c (insert_insn_end_bb): Handle trapping insns.
5185 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
5187 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
5189 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
5190 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
5191 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
5192 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
5193 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
5194 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
5195 unless x and y could be infinite.
5196 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
5197 Check that the common type of both arguments is a real, even for
5198 targets without unordered comparisons. Allow an integer argument
5199 to be compared against a real.
5200 (expand_tree_builtin): Use expand_unordered_cmp.
5201 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
5202 * cse.c (fold_rtx): Likewise. Fix indentation.
5203 * fold-const.c (fold_real_zero_addition_p): New.
5204 (fold): Use it, and the new HONOR_... macros.
5205 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
5206 * jump.c (reversed_comparison_code_parts): After searching for
5207 the true comparison mode, use HONOR_NANS to decide whether it
5208 can be safely reversed.
5209 (reverse_condition_maybe_unordered): Remove IEEE check.
5210 * simplify-rtx.c (simplify_binary_operation): Use the new macros
5211 to decide which simplifications are valid. Allow the following
5212 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
5213 and (a - -b) to (a + b).
5214 (simplify_relational_operation): Use HONOR_NANS.
5215 * doc/tm.texi: Document the MODE_HAS_... macros.
5217 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
5219 * combine.c (simplify_comparison): If simplifying a logical shift
5220 right and compare with constant, force the comparison to unsigned.
5222 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
5224 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
5226 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
5228 (alt_reg_names): Remove % for vrsave.
5230 2002-03-06 Richard Henderson <rth@redhat.com>
5232 PR optimization/5844
5233 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
5234 if used indicates we've already emitted one copy of an operand.
5235 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
5236 (gen_split): Supply a non-null used.
5238 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
5240 * reload1.c (reload): Unshare all rtl after reload is done.
5242 * simplify-rtx.c (simplify_plus_minus): Do not abort,
5243 but simply fail if the expression is too complex to simplify.
5244 (simplify_gen_binary): Handle simplify_plus_minus failures.
5246 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
5248 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
5249 consistently call delete_trivially_dead_insns after CSE and GCSE;
5250 fix DFI_life dumping; do jump threading after liveness; do crossjumping
5251 after liveness2; update comment in last crossjumping.
5252 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
5254 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
5256 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
5257 after completing fast dead code elimination.
5259 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
5262 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
5264 * version.c: Fix misplaced leading blanks on first line.
5266 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
5268 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
5270 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
5272 * cfgcleanup.c (mentions_nonequal_regs): New function.
5273 (thread_jump): Use it.
5274 * toplev.c (rest_of_compilation): Run jump threading after
5277 2002-03-06 Jakub Jelinek <jakub@redhat.com>
5279 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
5282 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
5284 * predict.c (estimate_bb_frequencies): Do not reload the
5285 frequencies from notes.
5287 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
5289 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
5290 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
5292 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
5293 delete_noop_moves): Return indeger.
5294 * flow.c (ndead): New variable.
5295 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
5296 BB argument; update callers.
5297 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
5298 (life_analysis): Do not call purge_all_dead_edges.
5299 (update_life_info): Return number of deleted insns; print statistics.
5300 (update_life_info_in_dirty_blocks): likewise.
5301 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
5302 return number of insns deleted.
5304 * cse.c: Include timevar.h
5305 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
5306 iterate until stabilizes; print statistics; return number of killed
5308 * Makefile.in: (cse.o): Add timevar.h dependency
5309 * rtl.h (delete_trivially_dead_insns): New.
5310 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
5311 * toplev.c (rest_of_compilation): Update callers.
5313 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
5314 (try_optimize_cfg): Do not update liveness.
5315 (cleanup-cfg): Loop until try_optimize_cfg and dead code
5316 removal stabilizes; use delete_trivially_dead_insns.
5318 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
5320 2002-03-05 Zack Weinberg <zack@codesourcery.com>
5322 * cppmain.c (setup_callbacks): Disable #pragma and #ident
5323 callbacks when processing assembly language.
5325 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
5327 * pa.h (ASM_FILE_END): Define.
5328 * som.h (ASM_FILE_END): Delete.
5330 * pa.c (function_arg): Don't pass floats in general registers in
5331 indirect calls if TARGET_ELF32.
5333 2002-03-05 Richard Henderson <rth@redhat.com>
5335 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
5337 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
5339 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
5341 2002-03-05 Jakub Jelinek <jakub@redhat.com>
5343 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
5344 -r command line. Don't hide any symbols if not building
5347 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
5349 * cfg.c (dump_flow_info): Warn about profile mismatches.
5350 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
5351 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
5353 2002-03-05 Jakub Jelinek <jakub@redhat.com>
5355 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
5356 wide volatile memory by parts.
5358 2002-03-05 Jakub Jelinek <jakub@redhat.com>
5360 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
5363 2002-03-05 Richard Henderson <rth@redhat.com>
5365 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
5367 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
5369 * toplev.c (documented_lang_options): Document more
5370 language-specific options.
5371 * doc/invoke.texi (Warning Options): Correct documentation for
5372 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
5373 * c-decl.c (c_decode_option): Use a table to handle warning options.
5375 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
5377 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
5378 parameter to mmix_encode_section_info.
5379 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
5380 relocatably. Always produce ELF, not mmo if linking relocatably.
5381 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
5382 first is non-zero, don't add symbol prefix.
5383 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
5384 prototype accordingly.
5386 2002-03-04 Krister Walfridsson <cato@df.lth.se>
5388 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
5390 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
5392 * configure.in: Increase required makeinfo version to 4.1.
5393 * configure: Regenerate.
5395 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
5397 * .cvsignore: Remove *.info* and genrtl*; these files are generated
5400 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
5402 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
5403 * doc/invoke.texi: Fix @math uses.
5405 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
5407 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
5410 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
5412 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
5413 (powerpc-*-eabisimaltivec*): Same.
5415 * config/rs6000/t-ppcendian: New.
5417 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5419 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
5420 nonimmediate_src_operand and nonimmediate_lsrc_operand to
5421 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
5423 2002-03-03 Richard Henderson <rth@redhat.com>
5425 * toplev.c (rest_of_decl_compilation): Revert last two changes.
5427 2002-03-03 Zack Weinberg <zack@codesourcery.com>
5429 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
5430 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
5431 tree.c, config/m68k/m68k.c:
5432 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
5433 REAL_ARITHMETIC blocks unconditional. Delete some further
5434 #ifdef blocks predicated on REAL_ARITHMETIC.
5435 * flags.h, toplev.c: Delete remaining references to
5438 * doc/invoke.texi: Remove documentation of -fpretend-float.
5439 * doc/tm.texi: Describe the various REAL_* macros as provided by
5440 real.h, not by the target configuration files.
5442 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
5443 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
5444 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
5445 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
5446 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
5447 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
5448 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
5449 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
5450 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
5451 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
5452 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
5453 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
5454 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
5455 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
5456 config/xtensa/xtensa.h:
5457 Do not define, undefine, or mention in comments any of
5458 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
5459 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
5460 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
5461 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
5462 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
5463 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
5464 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
5465 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
5466 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
5468 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5470 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
5471 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
5472 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
5473 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
5474 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
5475 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
5477 * defaults.h (BITS_PER_WORD): Define.
5478 * doc/tm.texi (BITS_PER_WORD): Document default value.
5480 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
5481 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
5482 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
5484 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5486 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
5487 lieu of explicit sizeof/sizeof.
5488 * i386.c (override_options, ix86_init_mmx_sse_builtins,
5489 ix86_expand_builtin): Likewise.
5490 * mips.c (mips_add_gc_roots): Likewise.
5491 * mmix.c (mmix_output_condition): Likewise.
5492 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
5493 altivec_init_builtins): Likewise.
5494 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
5495 * cppexp.c (Nsuff, parse_number): Likewise.
5496 * cppinit.c (builtin_array_end): Likewise.
5497 * gcc.c (n_default_compilers, process_command): Likewise.
5498 * genpreds.c (output_predicate_decls): Likewise.
5499 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
5500 * lcm.c (N_ENTITIES): Likewise.
5501 * stor-layout.c (set_sizetype): Likewise.
5503 2002-03-03 Richard Henderson <rth@redhat.com>
5505 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
5506 for types or labels.
5508 2002-03-03 Richard Henderson <rth@redhat.com>
5510 * c-decl.c (start_decl): Initialized variables are not common.
5512 2002-03-02 Per Bothner <per@bothner.com>
5514 * gcc.c (option_map): Suport new --bootclasspath option.
5515 --CLASSPATH is now just an alias for --classpath.
5517 2002-03-02 Richard Henderson <rth@redhat.com>
5519 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
5520 load if "internal" visibility.
5521 * doc/extend.texi: Document visibility meanings.
5523 2002-03-02 Richard Henderson <rth@redhat.com>
5525 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
5526 to functions as well.
5528 2002-03-02 Richard Henderson <rth@redhat.com>
5530 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
5531 (handle_visibility_attribute): Don't call assemble_visibility.
5532 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
5533 without asmspec. Invoke assemble_alias when needed.
5534 * varasm.c (maybe_assemble_visibility): New.
5535 (assemble_start_function, assemble_variable, assemble_alias): Use it.
5537 2002-03-02 Richard Henderson <rth@redhat.com>
5539 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
5540 invoke ENCODE_SECTION_INFO with first call flag.
5542 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
5543 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
5544 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
5545 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
5546 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
5547 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
5548 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
5549 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
5550 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
5551 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
5552 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
5553 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
5554 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
5555 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
5556 config/mcore/mcore-protos.h, config/mcore/mcore.c,
5557 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
5558 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
5559 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
5560 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
5561 config/sh/sh.h, config/sparc/sparc.h,
5562 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
5563 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
5564 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
5565 FIRST argument. As needed, examine it and do nothing.
5567 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
5568 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
5569 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
5571 * config/arm/t-pe (pe.o): Add dependencies.
5573 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5575 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
5576 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
5577 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
5578 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
5579 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
5580 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
5581 * defaults.h (BITS_PER_UNIT): Define.
5582 * doc/tm.texi (BITS_PER_UNIT): Document default value.
5584 2002-03-02 Kazu Hirata <kazu@hxi.com>
5586 * config/h8300/h8300-protos.h: Add a prototype for
5587 compute_a_shift_length.
5588 * config/h8300/h8300.c (h8300_asm_insn_count): New.
5589 (compute_a_shift_length): Likewise.
5590 (h8300_adjust_insn_length): Do not adjust insn length of shift
5592 * config/h8300/h8300.md (anonymous shift patterns): Use
5593 compute_a_shift_length.
5595 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5597 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
5600 * emit-rtl.c (offset_address): Call update_temp_slot_address.
5602 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5604 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
5605 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
5606 * flags.h (flag_zero_initialized_in_bss): Declare.
5607 * toplev.c (flag_zero_initialized_in_bss): New flag.
5608 (lang_independent_options): Add flag_zero_initialized_in_bss.
5609 * tree.c (initializer_zerop): New function.
5610 * tree.h (initializer_zerop): Declare.
5611 * varasm.c (assemble_variable): If we can emit bss, put zero
5612 initializers in the bss section.
5614 2002-03-02 Alan Modra <amodra@bigpond.net.au>
5616 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
5617 like more than one symbol per .weak directive.
5619 2002-03-01 Richard Henderson <rth@redhat.com>
5621 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
5622 adjust argument_pointer by pretend_args_size.
5623 (ia64_va_start): Adjust va_start address by -pretend_args_size.
5625 2002-03-01 Kazu Hirata <kazu@hxi.com>
5627 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
5629 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
5631 * toplev.c (rest_of_compilation): Delete dead jumptables before
5633 * flow.c (delete_dead_jumptables): Make global.
5634 * rtl.h (delete_dead_jumptables): Declare.
5636 2002-03-01 David Edelsohn <edelsohn@gnu.org>
5638 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
5639 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
5640 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
5642 2002-03-01 Kazu Hirata <kazu@hxi.com>
5644 * config/h8300/h8300-protos.h: Fix formatting.
5645 * config/h8300/h8300.c: Likewise.
5646 * config/h8300/h8300.h: Likewise.
5648 2002-03-01 Kazu Hirata <kazu@hxi.com>
5650 * config/h8300/h8300.c (print_operand): Support 16-bit
5652 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
5654 2002-02-28 Richard Henderson <rth@redhat.com>
5656 * expmed.c (store_bit_field): Prevent generation of CONCATs;
5657 pun complex values as integers; use gen_lowpart instead of
5659 (extract_bit_field): Likewise.
5661 2002-03-01 Alan Modra <amodra@bigpond.net.au>
5662 David Edelsohn <edelsohn@gnu.org>
5664 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
5665 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
5666 (SUPPORTS_WEAK): Likewise.
5667 * output.h (add_weak): Add tree param.
5668 * varasm.c (add_weak): Likewise. Save decl.
5669 (struct weak_syms): Add decl field.
5670 (mark_weak_decls): New function.
5671 (init_varasm_once): ggc_add_root mark_weak_decls.
5672 (assemble_start_function): Use ASM_WEAKEN_DECL.
5673 (assemble_variable): Likewise.
5674 (assemble_alias): Likewise.
5675 (declare_weak): Pass decl to add_weak.
5676 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
5677 (remove_from_pending_weak_list): Declare and define for
5679 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
5680 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
5681 * defaults.h (SUPPORTS_WEAK): Likewise.
5682 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
5683 .weak for code sym. Do emit .size for descriptor sym.
5684 (ASM_DECLARE_FUNCTION_SIZE): Define.
5685 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
5686 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
5687 .lglobl unless TARGET_XCOFF. Formatting fixes.
5688 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
5690 (HANDLE_PRAGMA_WEAK): Remove.
5691 (ASM_WEAKEN_LABEL): Remove.
5692 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
5694 2002-03-01 Jason Merrill <jason@redhat.com>
5696 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
5697 (TARGET_EXPR_CLEANUP): New macro.
5699 2002-02-28 Steve Ellcey <sje@cup.hp.com>
5701 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
5702 to take ptr_extend into account as third type of extension.
5703 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
5704 fields used by SUBREG_PROMOTED_UNSIGNED_P.
5705 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
5706 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
5707 * calls.c (precompute_arguments): Use new macro.
5708 (expand_call): Ditto.
5709 * combine.c (nonzero_bits): Ditto.
5710 (record_promoted_value): Ditto.
5711 * expr.c (store_expr): Ditto.
5712 (expand_expr): Ditto.
5713 * function.c (assign_parms): Ditto.
5715 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
5717 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
5718 override -shared and -shared-libgcc.
5720 2002-02-28 David O'Brien <obrien@FreeBSD.org>
5722 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
5724 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
5727 2002-02-28 Richard Henderson <rth@redhat.com>
5729 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
5730 4 cycle latency from MM producers.
5731 (ia64_internal_sched_reorder): Likewise with pipeline flush.
5733 2002-02-28 Jakub Jelinek <jakub@redhat.com>
5735 * mklibgcc.in: Don't use GNU make extension.
5737 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
5739 * c-parse.in (STATIC): New terminal.
5740 (scspec): New non-terminal. Update productions accordingly.
5741 (program): Remove bogus ifc / end ifc.
5742 (array_declarator): Simplify production using STATIC.
5744 2002-02-28 Jim Meyering <meyering@lucent.com>
5746 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
5747 \a still means TARGET_BELL.
5749 2002-02-28 Richard Henderson <rth@redhat.com>
5751 * haifa-sched.c (sched_emit_insn): New.
5752 (schedule_block): Use last_scheduled_insn to track last insn.
5753 * sched-int.h (sched_emit_insn): Prototype.
5754 * config/ia64/ia64.c (last_issued): Remove.
5755 (ia64_variable_issue): Don't set it.
5756 (nop_cycles_until): Use sched_emit_insn.
5758 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
5760 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
5763 2002-02-28 Kazu Hirata <kazu@hxi.com>
5765 * config/h8300/h8300.c: Fix formatting.
5766 * config/h8300/h8300.h: Likewise.
5768 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
5770 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
5771 which may overwrite the high byte of the frame pointer.
5773 2002-02-28 Bo Thorsen <bo@suse.de>
5775 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
5776 (STARTFILE_SPEC): Add 64 bit files.
5777 (ENDFILE_SPEC): Likewise.
5779 2002-02-28 Jason Merrill <jason@redhat.com>
5781 * c-decl.c (finish_function): Only warn about missing return
5782 statement with -Wreturn-type.
5784 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
5786 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
5788 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
5789 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
5791 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
5793 * basic-block.h (BB_REACHABLE): Renumber.
5794 (BB_DIRTY, BB_NEW): New flags.
5795 (clear_bb_flags): Declare.
5796 (update_life_info_in_dirty_blocks): Declare.
5797 * cfg.c (clear_bb_flags): New function.
5798 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
5799 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
5800 reorder_insns, emit_insn_after): Mark block as dirty.
5801 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
5802 (update_life_info_in_dirty_blocks): New function.
5803 * recog.c (apply_change_group): Dirtify block.
5805 * cse.c (cse_insn): Reorder emitting of jump insn to keep
5807 * gcse.c (delete_null_pointer_checks): Likewise.
5809 * toplev.c (dump_file_index): Move cse2 after bp,
5811 (dump_file_info): Similary.
5812 (rest_of_compilation): Avoid most of CFG rebuilds;
5813 do first if converision after null pointer checks, do cse2
5814 after branch prediction; avoid full liveness rebuild after
5815 initializing subregs.
5816 * invoke.texi (-d options): Document -du, renumber.
5818 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
5819 (notice_new_block): Do not set BB_UPDATE_LIFE.
5820 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
5821 merge_blocks_move_successor_nojumps, merge_blocks,
5822 try_crossjump_to_edge): Likewise.
5823 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
5824 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
5825 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
5826 (merge_of_block): Do not use life_data_ok.
5827 (find_if_case_1): Do not use SET_UPDATE_LIFE.
5828 (if_convert): Use BB_DIRTY mechanizm to update life.
5829 * lcm.c (optimize_mode_switching): Update
5830 update_life_info_in_dirty_blocks
5832 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
5834 * Makefile.in (integrate.o): Update.
5835 * c-decl.c (copy_lang_decl): Rename.
5836 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
5837 * integrate.c: Include langhooks.h.
5838 (copy_decl_for_inlining): Update to use langhook.
5839 * langhooks-def.h (lhd_do_nothing_t,
5840 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
5841 (LANG_HOOKS_INITIALIZER): Update.
5842 * langhooks.c (lhd_do_nothing_t): New.
5843 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
5844 * tree.h (copy_lang_decl): Remove.
5846 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
5848 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
5850 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
5851 POST_DEC, and POST_MODIFY.
5853 2002-02-27 Zack Weinberg <zack@codesourcery.com>
5855 * c-typeck.c (digest_init): Remove unused parameter; all
5858 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
5860 * expmed.c (expand_shift): Correctly test for low part of a
5863 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
5865 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
5866 insn UIDs with insn addresses.
5868 2002-02-27 Zack Weinberg <zack@codesourcery.com>
5870 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
5871 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
5872 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
5873 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
5874 gcc.c, toplev.c: Delete code implementing -traditional mode.
5876 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
5877 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
5878 Document removal of -traditional mode for compilation, and
5879 remove documentation only relevant to that mode.
5881 * config/nextstep.h, config/ptx4.h, config/svr4.h,
5882 config/convex/convex.h, config/d30v/d30v.h,
5883 config/i386/dgux.h, config/i386/osf1elf.h,
5884 config/i386/osfelf.h, config/i386/osfrose.h,
5885 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
5886 config/m68k/hp310.h, config/m88k/dgux.h,
5887 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
5888 config/m88k/m88k.h, config/m88k/openbsd.h,
5889 config/mips/abi64.h, config/mips/osfrose.h,
5890 config/mips/svr4-5.h, config/mips/svr4-t.h,
5891 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
5892 config/stormy16/stormy16.h: Remove all references to
5893 -traditional from target specs. Delete all mention of the
5894 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
5895 delete a couple of commented-out definitions of
5896 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
5899 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
5900 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
5902 2002-02-27 Zack Weinberg <zack@codesourcery.com>
5904 * mklibgcc.in: Don't use \n in a line subject to
5905 interpretation by echo.
5907 2002-02-27 Graham Stott <grahams@redhat.com>
5909 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
5912 * loop.c (prescan_loop): Handle PARALLEL.
5914 * unroll.c (loop_iterations): Return 0 if the add_val for
5917 * final.c (output_operand_lossage): Constify PFX_STR.
5919 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
5921 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
5923 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
5924 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
5926 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
5928 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5930 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
5932 * cpplex.c (_cpp_lex_token): Handle directives in macro
5934 * cpplib.c (_cpp_handle_directive): Save and restore state
5935 if parsing macro args when entering a directive.
5936 * cppmacro.c (collect_args): No need to handle directives
5938 (enter_macro_context, replace_args): Use the original macro
5939 definition in case it was redefined whilst collecting arguments.
5943 2002-02-26 David Edelsohn <edelsohn@gnu.org>
5945 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
5946 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
5947 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
5949 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
5950 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
5951 (load_toc_v4_PIC_2): Same.
5953 2002-02-26 Alan Modra <amodra@bigpond.net.au>
5955 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
5957 2002-02-26 Richard Henderson <rth@redhat.com>
5959 * config/alpha/alpha.md (ashldi_se): Re-enable.
5961 2002-02-26 Richard Henderson <rth@redhat.com>
5963 * config/alpha/alpha.c (alpha_encode_section_info): Examine
5964 MODULE_LOCAL_P; improve commentary.
5966 2002-02-26 Zack Weinberg <zack@codesourcery.com>
5968 * doc/cpp.texi: Clarify documentation of relationship between
5971 2002-02-26 Kazu Hirata <kazu@hxi.com>
5973 * config/h8300/h8300-protos.h: Update the prototype for
5974 compute_logical_op_length. Add the prototype for
5975 compute_logical_op_cc.
5976 * config/h8300/h8300.c (compute_logical_op_length): Figure out
5978 (compute_logical_op_cc): New.
5979 * config/h8300/h8300.md: Combine all the logical op patterns
5980 in HImode and SImode. Use compute_logical_op_cc.
5982 2002-02-26 Kelley Cook <kelleycook@comcast.net>
5984 * config/i386/i386.c (print_operand): Don't append ATT-style
5985 length suffixs to x87 opcodes when in Intel mode.
5987 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
5989 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
5990 (init_emit_once): Update calls.
5991 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
5992 (init_syntax_once): Prototype.
5994 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
5996 * pa-linux.h (LIB_SPEC): Update definition.
5997 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
5999 2002-02-26 Richard Henderson <rth@redhat.com>
6001 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
6002 if we emitted a stop bit.
6004 2002-02-26 Jakub Jelinek <jakub@redhat.com>
6006 * configure.in (libgcc_visibility): Substitute.
6007 * configure: Rebuilt.
6008 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
6009 defined symbols .hidden.
6011 2002-02-26 Jakub Jelinek <jakub@redhat.com>
6013 * attribs.c (c_common_attribute_table): Add visibility.
6014 (handle_visibility_attribute): New function.
6015 * varasm.c (assemble_visibility): New function.
6016 * output.h (assemble_visibility): Add prototype.
6017 * tree.h (MODULE_LOCAL_P): Define.
6018 * crtstuff.c (__dso_handle): Use visibility attribute.
6019 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
6020 for MODULE_LOCAL_P symbols too.
6021 * config/ia64/ia64.c (ia64_encode_section_info): Handle
6022 MODULE_LOCAL_P symbols the same way as local symbols.
6023 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
6024 into .sdata/.sbss by the user.
6025 * doc/extend.texi (Function Attributes): Document visibility
6028 2002-02-26 Jakub Jelinek <jakub@redhat.com>
6031 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
6032 STRING_CST initializer spanning the whole variable without
6034 If expand_expr returned MEM, don't use it.
6036 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
6038 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
6039 generate a die for the lexical block.
6041 2002-02-26 Kazu Hirata <kazu@hxi.com>
6043 * config/h8300/h8300-protos.h: Add a prototype for
6044 compute_logical_op_length.
6045 * config/h8300/h8300.c (compute_logical_op_length): New.
6046 * config/h8300/h8300.md (anonymous logical patterns): Use
6047 compute_logical_op_length for length.
6049 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
6051 * dwarf2out.c (modified_type_die): Do not call type_main_variant
6053 (gen_type_die): Same.
6055 * attribs.c (handle_vector_size_attribute): Set debug information.
6057 2002-02-26 Daniel Egger <degger@fhm.edu>
6059 * config/rs6000/rs6000.md: Swap define_insn attributes to
6060 fix incorrect generation of merge high instructions instead
6063 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
6065 * c-typeck.c (really_start_incremental_init): Use
6066 bitsize_zero_node for vectors.
6068 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
6070 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
6071 ("*set_vrsave_internal"): Same.
6073 2002-02-25 Richard Henderson <rth@redhat.com>
6075 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
6076 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
6078 2002-02-25 Jakub Jelinek <jakub@redhat.com>
6081 * config/i386/i386.c (ix86_return_pops_args): Only pop
6082 fake structure return argument if it was passed on the stack.
6084 2002-02-25 Jason Merrill <jason@redhat.com>
6086 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
6089 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
6091 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
6092 link with shared_name only.
6093 * doc/invoke.texi (Link Options): Document new behavior.
6095 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
6097 * c-typeck.c (push_init_level): Handle vectors.
6099 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
6101 * config/sparc/sparc.c (const64_high_operand): Zero-extend
6102 operands of SPARC_SETHI_P.
6103 (input_operand): Likewise.
6104 (sparc_emit_set_const32): Likewise.
6105 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
6106 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
6107 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
6108 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
6109 (movdi_insn_sp64_vis): Likewise.
6110 (movdi split, movdf split): Use SETHI32.
6111 * doc/md.texi: Document SPARC constraints L, M and N.
6113 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
6115 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
6116 ("*set_vrsave_internal"): use mfspr for Darwin.
6118 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
6119 gen_get_vrsave_internal.
6121 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6123 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
6125 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
6127 * cpplex.c (cpp_interpret_charconst): Get signedness or
6128 otherwise of wide character constants correct.
6129 * cppexp.c (lex): Get signedness of wide charconsts correct.
6131 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6133 * optabs.c (widen_operand): Only call convert_modes for
6134 promoted SUBREG if signedness matches.
6135 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
6137 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
6139 * cpplib.c (glue_header_name): Use local buffer to build up
6142 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
6144 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
6146 2002-02-23 Kazu Hirata <kazu@hxi.com>
6148 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
6149 H8/300[HS] separately.
6150 * config/h8300/h8300.md: Remove the early clobber constraint
6151 from bit field patterns.
6153 2002-02-23 Kazu Hirata <kazu@hxi.com>
6155 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
6157 (mulhisi3): Likewise.
6158 (umulqisi3): Likewise.
6159 (umulhisi3): Likewise.
6161 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
6163 * cppinit.c (output_deps): Correct test for stdout output.
6164 (init_dependency_output): Cure warning.
6166 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6168 * expr.c (store_expr): When converting expression to promoted
6169 equivalent type, allow using SUBREG_REG of TARGET as the target
6170 of the expansion of EXP.
6171 * loop.c (basic_induction_var, case SUBREG): Always look inside.
6172 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
6173 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
6174 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
6175 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
6177 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
6179 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
6180 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
6181 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
6183 2002-02-23 Jakub Jelinek <jakub@redhat.com>
6185 PR optimization/5747
6186 * loop.c (scan_loop): Update reg info if move_movables created new
6189 2002-02-23 David Edelsohn <edelsohn@gnu.org>
6191 * gcc.c (init_gcc_spec): Revert last change.
6193 2002-02-23 David Edelsohn <edelsohn@gnu.org>
6195 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
6196 gpc_reg_operand constraint.
6198 2002-02-23 Alan Modra <amodra@bigpond.net.au>
6200 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
6201 Simplify comparison of `low'.
6202 (add_operand): Fix formatting.
6203 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
6204 (mask_operand): Disallow mask to wrap in 64-bit mode.
6205 (rs6000_stack_info): Remove redundant test setting push_p.
6206 (output_toc): Fix formatting.
6207 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
6208 cc_reg_not_cr0_operand constraint.
6209 (booldi3, boolcdi3 splitters): Same.
6211 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
6213 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
6215 2002-02-22 David Edelsohn <edelsohn@gnu.org>
6217 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
6218 gcc invoked with -shared-libgcc.
6220 2002-02-22 Jakub Jelinek <jakub@redhat.com>
6223 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
6224 decl if any of elements was TREE_USED.
6226 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
6228 * config/sparc/sol2.h: Don't include sys/mman.h.
6229 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
6230 (arith_4096_operand): Don't throw high bits away.
6231 (const64_operand): Take sign extension of CONST_INTs into account.
6232 (const64_high_operand, sparc_emit_set_const32): Likewise.
6233 (GEN_HIGHINT64): Likewise.
6234 (sparc_emit_set_const64_quick1): Likewise.
6235 (const64_is_2insns): Likewise.
6236 (print_operand): Use trunc_int_for_mode for sign extension.
6237 * config/sparc/sparc.h (SMALL_INT32): Likewise.
6238 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
6239 chars. Assume CONST_INT is already properly sign-extended.
6240 (movdi split): Sign-extend each SImode part.
6241 (andsi3 split): Don't mask high bits off, so that result
6242 remains properly sign-extend.
6243 (iorsi3 split): Likewise.
6244 (xorsi3 split): Likewise.
6246 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
6248 * fold-const.c (fold): Fix typo in comments.
6250 2002-02-21 Diego Novillo <dnovillo@redhat.com>
6252 * Makefile.in (langhooks.o): Update dependencies.
6254 2002-02-21 Diego Novillo <dnovillo@redhat.com>
6256 * langhooks.c: Include flags.h.
6258 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
6260 * testsuite/gcc.dg/attr-alwaysinline.c: New.
6262 * c-common.c (c_common_post_options): Set inline trees by
6265 * doc/extend.texi (Function Attributes): Document always_inline
6267 Update documentation about inlining when not optimizing.
6269 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
6271 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
6272 unless DECL_ALWAYS_INLINE.
6274 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
6275 unless DECL_ALWAYS_INLINE.
6276 (c_disregard_inline_limits): Disregard if always_inline set.
6278 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
6279 Disregard if always_inline set.
6280 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
6281 unless DECL_ALWAYS_INLINE.
6283 * attribs.c (handle_always_inline_attribute): New.
6284 (c_common_attribute_table): Add always_inline.
6286 * config/rs6000/altivec.h: Add prototypes for builtins
6287 requiring the always_inline attribute.
6289 2002-02-21 Eric Christopher <echristo@redhat.com>
6291 * expmed.c (store_bit_field): Try to simplify the subreg
6292 before generating a new one when when the mode size of
6293 value is less than maxmode.
6295 2002-02-21 Richard Henderson <rth@redhat.com>
6297 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
6298 than gen_rtx_PLUS to form the sum.
6299 * explow.c (force_reg): Rearrange to not allocate new pseudo
6300 when force_operand returns a register.
6301 * expr.c (expand_assignment): Allow offset_rtx expansion to
6302 return a sum. Do not force addresses into registers.
6303 (expand_expr): Likewise.
6304 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
6305 to canonicalize arithmetic that didn't simpify.
6306 (simplify_plus_minus): New argument force; update
6307 all callers. Don't split CONST unless we can do something with it,
6308 and wouldn't lose the constness of the operands.
6310 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
6311 that we generated earlier.
6313 2002-02-21 Tom Tromey <tromey@redhat.com>
6315 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6316 (output_line_info): Use constant `1', with a long explanatory
6318 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
6320 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
6322 * jump.c (redirect_jump): If old label has no UID, don't try to
6325 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
6327 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
6328 If input is constant, do shifts at compile time.
6330 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
6332 * doc/extend.texi: Fix some more overfull hboxes.
6334 2002-02-21 Jakub Jelinek <jakub@redhat.com>
6336 PR optimization/4994
6337 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
6340 2002-02-21 Jakub Jelinek <jakub@redhat.com>
6343 * expr.h (expand_and): Add mode argument.
6344 * expmed.c (expand_and): Add mode argument.
6345 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
6346 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
6347 * except.c (expand_builtin_extract_return_addr): Likewise.
6348 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
6349 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
6350 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
6351 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
6352 * config/c4x/c4x.md: Use GEN_INT (x) instead of
6353 gen_rtx (CONST_INT, VOIDmode, x).
6355 2002-02-21 Jakub Jelinek <jakub@redhat.com>
6358 * stmt.c (warn_if_unused_value): Move side effects test once more.
6360 2002-02-20 Torbjorn Granlund <tege@swox.com>
6362 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
6363 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
6365 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
6367 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
6368 SUBREG or ZERO_EXTEND.
6370 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
6372 * sh.h (current_function_anonymous_args): Remove.
6373 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
6374 of current_function_varargs and current_function_stdarg is set.
6375 * sh.c (sh_expand_prologue): Check current_function_varargs /
6376 current_function_stdarg / TARGET_SH5 instead of
6377 current_function_anonymous_args.
6379 * sh64.h (TARGET_VERSION): Define.
6381 2002-02-20 David Edelsohn <edelsohn@gnu.org>
6383 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
6384 VRSAVE_REGNO on TARGET_ALTIVEC.
6386 2002-02-20 Alan Modra <amodra@bigpond.net.au>
6388 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
6389 bits of SImode const_int.
6390 (includes_rshift_p): Likewise.
6391 (print_operand): Call mask_operand and mask64_operand with correct
6393 (rs6000_output_function_epilogue): Pad traceback table to word.
6394 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
6395 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
6396 mask64_operand with correct mode.
6397 (FUNCTION_ARG_REGNO_P): Correct parentheses.
6399 2002-02-20 Jakub Jelinek <jakub@redhat.com>
6402 * varasm.c (get_pool_constant_mark): New.
6403 * rtl.h (get_pool_constant_mark): Add prototype.
6404 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
6405 be represented if it has not been output.
6407 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
6409 * combine.c (do_SUBST): Sanity check substitutions of
6410 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
6411 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
6412 CONST_INT into its operand.
6413 (known_cond): Likewise, for ZERO_EXTEND.
6414 * simplify-rtx.c (simplify_unary_operation): Fix condition to
6415 allow for simplification of wide modes. Reject CONST_INTs in
6416 ZERO_EXTEND when their actual mode is not given.
6418 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
6420 * c-decl.c (pushdecl): If no global declaration is found for an
6421 extern declaration in block scope, try a limbo one.
6423 2002-02-20 Jakub Jelinek <jakub@redhat.com>
6426 * c-common.c (pointer_int_sum): Moved from...
6427 * c-typeck.c (pointer_int_sum): ...here.
6428 * c-common.h (pointer_int_sum): Add prototype.
6430 2002-02-20 Jakub Jelinek <jakub@redhat.com>
6433 * c-decl.c (duplicate_decls): Return 0 if issued error about
6436 2002-02-20 Roger Sayle <roger@eyesopen.com>
6437 Jakub Jelinek <jakub@redhat.com>
6440 * tree.c (host_integerp): Ensure that the constant integer is
6441 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
6442 when pos is zero or non-zero respectively. Clarify comment.
6443 * c-format.c (check_format_info_recurse): Fix host_integerp
6444 usage; the pos argument should be zero when assigning to a
6445 signed HOST_WIDE_INT.
6447 2002-02-20 Richard Henderson <rth@redhat.com>
6449 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
6450 of the operand, rather than assuming TImode.
6451 (ix86_expand_binop_builtin): Cope with commutative patterns
6452 using nonimmediate_operand for both operands.
6453 (ix86_expand_timode_binop_builtin): Likewise.
6454 (ix86_expand_store_builtin): Validate operand 1.
6455 (ix86_expand_unop1_builtin): Likewise.
6457 2002-02-20 Philip Blundell <philb@gnu.org>
6460 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
6462 2002-02-20 Richard Henderson <rth@redhat.com>
6465 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
6467 2002-02-20 Tom Tromey <tromey@redhat.com>
6469 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6470 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6471 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6472 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
6473 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
6476 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
6478 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
6479 for (const_int 0) in X not just INTVAL.
6481 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
6483 * doc/extend.texi: Avoid or reduce overfull hboxes.
6485 2002-02-20 Diego Novillo <dnovillo@redhat.com>
6487 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
6488 operations if the field does not start at a mode boundary.
6490 2001-02-20 Joel Sherrill <joel@OARcorp.com>
6492 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
6493 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
6494 Also done for -Acpu and -Amachine.
6496 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
6498 * cppinit.c (init_dependency_output): Take deps output file
6499 from -o if none given with -MF. Suppress normal output.
6500 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
6501 * doc/cpp.texi, doc/invoke.texi: Update.
6503 2002-02-19 Zack Weinberg <zack@codesourcery.com>
6505 * toplev.c (output_quoted_string): Write unprintable
6506 characters with octal escapes.
6508 2002-02-19 David Edelsohn <edelsohn@gnu.org>
6510 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
6511 really_call_used[VRSAVE_REGNO] if not Altivec.
6513 2002-02-19 Alan Modra <amodra@bigpond.net.au>
6515 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
6517 (constant_pool_expr_1): Fix formatting.
6518 (rs6000_legitimize_reload_address): Likewise.
6520 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6522 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
6523 now that we have one.
6525 2002-02-19 Zack Weinberg <zack@codesourcery.com>
6527 * tree.h (struct tree_common): Remove aux. Add unused_0 at
6528 end of first block of bitfields (which was only seven bits);
6529 rename dummy to unused_1; remove comment which is no longer true.
6531 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
6533 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
6535 2002-02-19 Philip Blundell <pb@nexus.co.uk>
6538 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
6542 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
6543 arm_is_longcall_p rather than inspecting call-type cookie
6545 (call_value_insn) [TARGET_THUMB]: Likewise.
6547 2002-02-19 Graham Stott <grahams@redhat.com>
6549 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
6551 2002-02-19 David Edelsohn <edelsohn@gnu.org>
6553 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
6554 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
6555 (FP_SAVE_INLINE): Delete.
6557 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
6558 * config/rs6000/eabi.asm: Remove ABI save restore routines.
6559 * config/rs6000/t-ppccomm: Build crtsavres.o.
6560 * config/rs6000/crtsavres.asm: New file.
6562 2002-02-19 Philip Blundell <philb@gnu.org>
6564 * config/arm/arm.c (use_return_insn): Don't reject interrupt
6566 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
6567 (output_return_instruction): Allow interrupt functions to return with
6568 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
6569 (arm_expand_prologue): Subtract 4 before stacking LR in an
6572 2002-02-19 Philip Blundell <pb@nexus.co.uk>
6574 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
6575 decl, not just FUNCTION_DECL.
6576 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
6577 (arm_assemble_integer): Likewise.
6578 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
6581 2002-02-19 matthew green <mrg@eterna.com.au>
6583 * config.gcc (sparc-*-netbsdelf*): Enable target.
6584 (sparc64-*-netbsd*): New target.
6585 * config/sparc/netbsd-elf.h: New file.
6586 * config/sparc/t-netbsd64: New file.
6588 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
6590 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
6592 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
6594 * doc/invoke.texi: explicitly list the style guidelines that
6595 -Weffc++ checks for.
6597 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
6599 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
6601 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
6604 * gcc.c (cpp_unique_options): Treat -o as indicating object file
6605 only if not -E. If -E, pass -o through to the preprocessor.
6607 2002-02-19 Kazu Hirata <kazu@hxi.com>
6609 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
6610 register number with an appropriate macro.
6612 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
6614 * doc/rtl.texi (Constants): Close @code tag.
6616 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
6618 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
6619 ("mmx_uavgv4hi3"): Same.
6620 ("pmulhrwv4hi3"): Same.
6622 * tree-inline.c (walk_tree): Handle vectors.
6624 * c-common.c (constant_expression_warning): Handle vectors.
6625 (overflow_warning): Same.
6627 * sched-deps.c (sched_analyze_2): Handle vectors.
6629 * rtlanal.c (rtx_unstable_p): Handle vectors.
6630 (rtx_varies_p): Same.
6631 (count_occurrences): Same.
6632 (regs_set_between_p): Same.
6633 (modified_between_p): Same.
6634 (modified_in_p): Same.
6635 (volatile_insn_p): Same.
6636 (volatile_refs_p): Same.
6637 (side_effects_p): Same.
6639 (inequality_comparisons_p): Same.
6640 (replace_regs): Same.
6641 (computed_jump_p_1): Same.
6643 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
6645 (inner_mode_array): New.
6646 (copy_rtx): Handle vectors.
6647 (copy_most_rtx): Same.
6648 (rtx_equal_p): Same.
6649 (get_mode_alignment): Adjust for vectors.
6651 * resource.c (mark_referenced_resources): Handle vectors.
6652 (mark_set_resources): Same.
6654 * reload1.c (eliminate_regs): Handle vectors.
6655 (elimination_effects): Same.
6656 (scan_paradoxical_subregs): Same.
6658 * reload.c (subst_reg_equivs): Handle vectors.
6660 * regrename.c (scan_rtx): Handle vectors.
6662 * regclass.c (reg_scan_mark_refs): Handle vectors.
6664 * recog.c (find_single_use_1): Handle vectors.
6666 * local-alloc.c (equiv_init_varies_p): Handle vectors.
6667 (contains_replace_regs): Same.
6668 (memref_referenced_p): Same.
6670 * integrate.c (copy_rtx_and_substitute): Handle vectors.
6671 (subst_constants): Same.
6673 * genattrtab.c (attr_copy_rtx): Handle vectors.
6674 (encode_units_mask): Same.
6675 (clear_struct_flag): Same.
6676 (count_sub_rtxs): Same.
6678 * gcse.c (want_to_gcse_p): Handle vectors.
6679 (oprs_unchanged_p): Same.
6680 (hash_expr_1): Same.
6681 (oprs_not_set_p): Same.
6682 (expr_killed_p): Same.
6683 (compute_transp): Same.
6684 (store_ops_ok): Same.
6686 * function.c (purge_addressof_1): Do not allow paradoxical subregs
6688 (fixup_var_refs_1): Same.
6689 (instantiate_virtual_regs_1): Same.
6691 * fold-const.c (operand_equal_p): Handle vectors.
6693 (rtl_expr_nonnegative_p): Same.
6695 * flow.c (mark_used_regs): Handle vectors.
6697 * df.c (df_uses_record): Handle vectors.
6699 * cselib.c (cselib_subst_to_values): Handle vectors.
6700 (cselib_mem_conflict_p): Same.
6703 * cse.c (canon_reg): Handle vectors.
6705 (cse_process_notes): Same.
6706 (count_reg_usage): Same.
6709 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
6711 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
6713 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
6714 (gen_rtx): Handle CONST_VECTOR.
6715 (gen_const_vector_0): New.
6716 (copy_rtx_if_shared): CONST_VECTORs can be shared.
6717 (reset_used_flags): Same.
6718 (copy_insn_1): Same.
6719 (initializer_constant_valid_p): Handle VECTOR_CST.
6721 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
6723 * doc/rtl.texi (Constants): Document const_vector.
6724 (CONST0_RTX): Update for vectors.
6725 (RTL sharing): Same.
6727 * print-tree.c (print_node): Add case for VECTOR_CST.
6729 * tree.h (TREE_VECTOR_CST_ELTS): New.
6730 (struct tree_vector): New.
6731 (union tree_node): Add vector node.
6732 (build_vector): Add prototype.
6734 * tree.def (VECTOR_CST): New.
6736 * tree.c (build_vector): New.
6738 * expmed.c (make_tree): Handle CONST_VECTOR.
6740 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
6741 (CONST_VECTOR_ELT): New.
6742 (CONST_VECTOR_NUNITS): New.
6744 * machmode.h (GET_MODE_INNER): New.
6745 (DEF_MACHMODE): Accept 8th arg.
6747 * machmode.def: Add 8th argument for vector inner mode.
6748 Add inner vector modes for vectors.
6750 * rtl.def (VEC_CONST): Remove.
6751 (CONST_VECTOR): New.
6753 * expr.c (clear_storage): Allow vectors.
6754 (is_zeros_p): Handle VECTOR_CST.
6756 * varasm.c (output_constant_pool): Handle vectors.
6757 (rtx_const): Add veclo and vechi fields.
6758 (kind): Add RTX_VECTOR.
6759 (decode_rtx_const): Add case for vector.
6761 * config/rs6000/rs6000-protos.h: Add zero_constant.
6763 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
6764 constants. Force easy vector constants into memory.
6765 (easy_vector_constant): New.
6766 (emit_easy_vector_constant): New.
6767 (rs6000_legitimize_reload_address): Do not generate bad reloads on
6770 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
6772 ("altivec_lvxl"): Same.
6773 (altivec_lvebx): Same.
6774 (altivec_lvehx): Same.
6775 (altivec_lvewx): Same.
6776 ("*movv4si_const0"): New.
6777 ("*movv4sf_const0"): New.
6778 ("*movv8hi_const0"): New.
6779 ("*movv16qi_const0"): New.
6781 2002-02-18 Kazu Hirata <kazu@hxi.com>
6783 * config/h8300/h8300.c (notice_update_cc): Use
6786 2002-02-18 Kazu Hirata <kazu@hxi.com>
6788 * config/h8300/h8300.md (divmod patterns): Change the
6789 constraints for operands[1] to register_operand.
6791 2002-02-18 Kazu Hirata <kazu@hxi.com>
6793 * config/h8300/h8300-protos.h: Remove the prototype for
6795 * config/h8300/h8300.c (p_operand): Remove.
6796 * config/h8300/h8300.md: Replace p_operand with
6799 2002-02-18 Philip Blundell <pb@nexus.co.uk>
6801 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
6803 (output_return_instruction): Allow use of LDR to unstack
6804 return addresss even for interrupt handlers or when
6805 interworking. If compiling for ARMv5, use interworking-safe
6806 return instructions by default. Remove duplicated code and
6807 lengthy "strcat" sequences.
6809 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6811 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
6812 (LINK_EH_SPEC): Define.
6813 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
6815 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
6817 * config/s390/s390.c (s390_emit_prologue): Do not set the
6818 frame_related flag for call-clobbered registers.
6820 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
6822 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
6823 (construct_container): Fix handling of SSE operands.
6824 (ix86_expand_builtin): Fix handling of 64bit pointers.
6825 (mmx_maskmovq_rex): New pattern.
6827 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
6829 * regrename.c (kill_set_value): Handle subregs properly.
6831 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
6833 * objc/objc-act.c (handle_impent): Remove leading '*'
6834 from objc_class_name.
6836 2002-02-17 Richard Henderson <rth@redhat.com>
6838 * config/alpha/alpha.c (some_small_symbolic_operand,
6839 some_small_symbolic_operand_1, split_small_symbolic_operand,
6840 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
6841 Handle small SYMBOL_REFs anywhere, not just inside memories.
6842 * config/alpha/alpha-protos.h: Update.
6843 * config/alpha/alpha.h (PREDICATE_CODES): Update.
6844 * config/alpha/alpha.md (small symbolic operand splitter): Update.
6846 2002-02-17 Roland McGrath <roland@frob.com>
6848 * config.gcc (powerpc-*-gnu-gnualtivec*,
6849 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
6850 * config/rs6000/gnu.h: New file.
6851 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
6852 Grok "gnu" in rs6000_abi_name.
6853 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
6854 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
6855 Grok -mcall-gnu analogous to -mcall-linux et al.
6856 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6857 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
6858 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
6860 2002-02-17 Jakub Jelinek <jakub@redhat.com>
6863 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
6866 2002-02-17 Philipp Thomas <pthomas@suse.de>
6868 * config/cris/cris.h: Undefine STARTFILE_SPEC and
6869 ENDFILE_SPEC before (re)defining them.
6871 2002-02-17 Kazu Hirata <kazu@hxi.com>
6873 * config/h8300/h8300.c: Fix formatting.
6874 * config/h8300/h8300.h: Likewise.
6876 2002-02-17 Philipp Thomas <pthomas@suse.de>
6878 * doc/tm.texi: Explain why empty strings should not be
6879 marked for translation.
6881 2002-02-17 Philipp Thomas <pthomas@suse.de>
6883 * final.c (output_operand_lossage): Changed to accept
6884 printf style arguments. Change calls where necessary.
6885 * output.h (output_operand_lossage): Change declaration
6886 accordingly. Update copyright.
6887 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
6888 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
6889 Update copyright date where necessary.
6891 * config/i386/i386.c (print_operand): Likewise. Remove use of
6894 * config/cris/cris.c (cris_operand_lossage): Likewise.
6895 Rename parameter so that exgettext recognizes it as
6896 translatable message.
6897 (LOSE_AND_RETURN): Rename parameter to msgid.
6899 2002-02-17 Kazu Hirata <kazu@hxi.com>
6901 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
6902 hard coded register number with an appropriate macro.
6903 (HARD_REGNO_MODE_OK): Likewise.
6904 (ARG_POINTER_REGNUM): Likewise.
6905 (STATIC_CHAIN_REGNUM): Likewise.
6906 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
6907 * config/h8300/h8300.md (define_constants): Define more
6910 2002-02-17 Philipp Thomas <pthomas@suse.de>
6912 * config/i386/i386.h: Don't mark empty strings for translation.
6914 2002-02-16 H.J. Lu <hjl@gnu.org>
6916 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
6918 2002-02-16 Zack Weinberg <zack@codesourcery.com>
6920 * cppinit.c (merge_include_chains): Check for brack being
6921 NULL before attempting to merge it with qtail.
6923 2002-02-16 Andrew Cagney <ac131313@redhat.com>
6925 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
6928 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
6930 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
6932 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
6934 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
6935 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
6936 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
6938 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6940 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
6941 now only if !TARGET_FIX.
6942 (*movsi_nt_vms_fix): New pattern.
6944 2002-02-16 Douglas B Rupp <rupp@gnat.com>
6946 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
6947 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
6948 (alpha_sa_mask, alpha_sa_size): Reflect above change.
6949 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
6950 (alpha_start_function, alpha_expand_epilogue): Likewise.
6951 (unicosmk_gen_dsib): Likewise.
6953 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6955 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
6957 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
6959 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
6960 check_and_change_labels, s390_final_chunkify): Delete.
6961 (s390_split_branches, s390_chunkify_pool): New functions.
6962 (s390_function_prologue): Call them.
6964 * config/s390/s390.h (S390_REL_MAX): Delete.
6965 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
6967 * config/s390/s390.md (cjump, icjump, jump): Fix length
6968 attribute calculation.
6971 2002-02-15 David Edelsohn <edelsohn@gnu.org>
6973 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
6974 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
6976 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
6978 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
6979 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
6980 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
6982 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
6984 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
6986 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
6988 * reload.c (find_dummy_reload): Check that an output register
6989 is valid for its mode.
6991 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
6993 * combine.c (known_cond): After replacing the REG of a SUBREG, try
6996 * function.c (assign_parms): Demote promoted argument passed by
6997 transparent reference.
6999 2001-02-14 Joel Sherrill <joel@OARcorp.com>
7001 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
7002 -Acpu() and -Amachine() to eliminate warnings.
7004 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
7006 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
7008 2002-02-14 Kazu Hirata <kazu@hxi.com>
7010 * config/h8300/h8300-protos.h: Update the prototype for
7012 * config/h8300/h8300.c (const_costs): Treat SET as a little
7013 more expensive operation.
7014 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
7015 reference to const_costs.
7017 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
7019 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
7021 2002-02-14 Jakub Jelinek <jakub@redhat.com>
7024 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
7025 use arguments from newtype.
7027 2002-02-13 Eric Christopher <echristo@redhat.com>
7029 * config/mips/mips.c (override_options): Add check for march/mipsX
7030 on the same command line. Fix error message in cpu processing.
7031 Remove architecture and ISA checks.
7033 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
7035 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
7037 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
7039 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
7041 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
7043 ("*movv8hi_internal1"): Same.
7044 ("*movv16qi_internal1"): Same.
7045 ("*movv4sf_internal1"): Same.
7047 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
7048 not push_reload for altivec modes.
7050 2002-02-13 Joel Sherrill <joel@OARcorp.com>
7052 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
7053 all RTEMS targets including removal of #includes from config/*/rtems*.h
7054 file and adding them to tm_file setting. Added xm_defines=POSIX to
7056 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
7057 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
7058 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
7059 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
7060 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
7061 config/m68k/rtemself.h: Ditto.
7062 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
7063 config/mips/rtems64.h: Ditto.
7064 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
7065 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
7067 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
7068 config/sparc/rtemself.h: Ditto.
7069 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
7070 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
7071 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
7073 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
7074 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
7075 target made more similar to i386-elf.
7076 * config/i386/t-rtems-i386: Added soft float support and multilibs.
7077 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
7078 be similar to config/m68k/t-m68kelf.
7079 * gthr-rtems.h: Encapsulate with extern "C" for C++.
7081 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
7083 * regmove.c (kill_value): Handle subregs.
7085 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
7087 * i386.md (mul patterns): Allow memory operand to be first;
7088 add expanders where needed; fix constraints.
7089 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
7090 Allow memory operand to be the first.
7092 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
7095 2002-02-13 Jakub Jelinek <jakub@redhat.com>
7098 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
7101 2002-02-13 Jakub Jelinek <jakub@redhat.com>
7103 PR optimization/5547:
7104 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
7105 all valid IA-32 address modes involving non-scaled %ebx and
7106 GOT/GOTOFF as displacement.
7108 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
7110 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
7111 after emitting ltorg insns.
7113 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
7114 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
7115 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
7116 *abssf2): Fix "op_type" attribute.
7118 2002-02-13 Douglas B Rupp <rupp@gnat.com>
7120 * mkconfig.sh: Avoid using a subshell redirect.
7121 ($output.T): Change to $(output)T.
7122 (ENABLE_NLS): Remove unneeded undef.
7124 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
7125 * config/alpha/x-vms (libsubdir): Define.
7127 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
7128 register frame procedures. Optimize retrieving context.
7130 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
7131 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
7132 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
7134 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7136 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
7137 Make same change as for find_base_value.
7139 2002-02-13 Kazu Hirata <kazu@hxi.com>
7141 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
7142 of QImode and SImode.
7144 2002-02-13 Kazu Hirata <kazu@hxi.com>
7146 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
7147 length computation of movsi.
7148 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
7150 2002-02-13 Kazu Hirata <kazu@hxi.com>
7152 * config/h8300/h8300.md (subqi3): Tighten the predicate for
7153 operands[2] to register_operand.
7155 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
7157 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
7159 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
7161 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
7162 for altivec_lvx* and altivec_stvx*.
7163 ("*movv4si_internal"): Add constraint for loading from GPRs.
7164 ("*movv8hi_internal1"): Same.
7165 ("*movv16qi_internal1"): Same.
7166 ("*movv4sf_internal1"): Same.
7168 * config/rs6000/rs6000.c (altivec_register_operand): New.
7170 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
7171 altivec_register_operand.
7173 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
7175 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
7178 2002-02-13 Stan Shebs <shebs@apple.com>
7180 * c-typeck.c (digest_init): Handle vectors.
7181 (really_start_incremental_init): Same.
7182 (pop_init_level): Same.
7183 (process_init_element): Same.
7185 * varasm.c (output_constant): Same.
7187 * expr.c (clear_storage): Same.
7188 (store_constructor): Same.
7190 2002-02-12 Eric Christopher <echristo@redhat.com>
7192 * explow.c (hard_function_value): Add comment explaining
7193 signed/unsigned comparison.
7195 2002-02-12 Jakub Jelinek <jakub@redhat.com>
7197 * jump.c (never_reached_warning): Add finish argument.
7198 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
7199 real insn after end.
7200 * rtl.h (never_reached_warning): Adjust prototype.
7201 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
7202 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
7203 never_reached_warning.
7205 2002-02-12 Graham Stott <grahams@redhat.com>
7207 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
7209 2002-02-12 Kazu Hirata <kazu@hxi.com>
7211 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
7212 logical shifts on H8/300.
7213 (shift_alg_si): Improve several shifts on H8/300.
7214 (get_shift_alg): Likewise.
7216 2002-02-12 Graham Stott <grahams@redhat.com>
7218 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
7220 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7222 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
7223 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
7225 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
7227 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
7228 non-CONST_INT through default_assemble_integer.
7229 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
7230 <case 8>: Abort for CONST_DOUBLE.
7232 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
7234 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
7236 * config/pa/pa-linux.h (LIB_SPEC): Delete.
7237 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
7239 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
7241 * config/stormy16/stormy16.md (zero_extendqihi2): New.
7243 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
7245 * regrename.c (regrename_optimize): Don't accept a
7246 part-clobbered register if the replaced register is not part
7249 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
7250 take padding into account when computing the argument value.
7252 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
7254 * combine.c (try_combine): Apply substitutions in
7255 CALL_INSN_FUNCTION_USAGE too.
7257 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
7259 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
7260 __builtin_altivec_abs*.
7263 * config/rs6000/rs6000.h (rs6000_builtins): Add
7264 ALTIVEC_BUILTIN_ABS*.
7266 * config/rs6000/altivec.h: Use const char for builtins expecting
7268 (vec_abs): New versions for C and C++.
7271 2002-02-10 Kazu Hirata <kazu@hxi.com>
7273 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
7276 2002-02-10 Kazu Hirata <kazu@hxi.com>
7278 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
7279 constant definition from h8300.md.
7280 (FRAME_POINTER_REGNUM): Likewise.
7281 * config/h8300/h8300.md (define_constants): Add FP_REG.
7283 2002-02-10 Kazu Hirata <kazu@hxi.com>
7285 * config/h8300/h8300.c (print_operand): Remove redundant code.
7287 2002-02-10 Kazu Hirata <kazu@hxi.com>
7289 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
7290 * config/h8300/h8300.c (byte_reg): Make it static.
7292 2002-02-10 Richard Henderson <rth@redhat.com>
7295 * c-typeck.c (incomplete_type_error): Handle flexible array members.
7297 2002-02-10 Richard Henderson <rth@redhat.com>
7300 * tree.c (append_random_chars): Don't abort if main_input_filename
7303 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
7305 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
7307 2002-02-10 Kazu Hirata <kazu@hxi.com>
7309 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
7310 (pushhi1): Likewise.
7312 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
7314 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
7315 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
7317 2002-02-09 David O'Brien <obrien@FreeBSD.org>
7319 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
7321 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
7323 2002-02-09 Kazu Hirata <kazu@hxi.com>
7325 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
7326 a half of an SImode register on H8/300.
7328 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
7330 * i386.md (movdi_2): Add missing '!'.
7332 2002-02-09 Kazu Hirata <kazu@hxi.com>
7334 * config/h8300/h8300.h: Fix formatting. Remove commented-out
7337 2002-02-09 Kazu Hirata <kazu@hxi.com>
7339 * config/h8300/h8300.md (length): Correct the distance valid
7340 for the short branch.
7342 2002-02-09 Kazu Hirata <kazu@hxi.com>
7344 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
7346 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
7348 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
7349 registers in SImode.
7350 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
7353 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
7356 Contribute sh64-elf.
7357 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
7358 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
7359 (sh_cannot_modify_jumps_p): New function.
7360 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
7361 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
7362 (sh_ms_bitfield_layout_p): New function.
7363 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
7364 Zack Weinberg <zack@codesourcery.com>
7365 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
7366 expand_simple_binop instead of expand_binop.
7367 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
7368 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
7369 use of .quad and .uaquad.
7370 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
7371 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
7372 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7373 * config/sh/sh.md (movdi_const, movdi_const_32bit,
7374 movdi_const_16bit): Make sure all CONSTs have modes.
7375 (sym2PIC): Ditto, but by adjusting all callers.
7376 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
7377 if the prologue calls the SHmedia argument decoder or register
7379 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7380 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
7381 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
7382 (sh_expand_epilogue): Don't emit USE of return target register.
7383 (prepare_move_operands): Legitimize DImode PIC addresses.
7384 (sh_media_register_for_return): Skip tr0, used to initialize the
7386 (sh_expand_prologue): Remove explicit USE of return register.
7387 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
7388 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
7389 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
7390 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
7391 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
7393 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
7394 (MOVI_SHORI_BASE_OPERAND_P): New.
7395 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
7396 (EXTRA_CONSTRAINT_T): Define in terms of them.
7397 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
7398 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
7399 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
7400 alternatives supporting TARGET_REGS.
7401 (UNSPEC_GOTPLT): New constant.
7402 (movdi split): Move incrementing of LABEL_NUSES...
7403 (movdi_const, movdi_const_32bit): Here. Use
7404 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
7405 (movdi_const_16bit): New.
7406 (call, call_value) [flag_pic]: Use GOTPLT.
7407 (call_pop, call_value_pop): New expands.
7408 (call_pop_compact, call_pop_rettramp): New insns.
7409 (call_value_pop_compact, call_value_pop_rettramp): New insns.
7410 (sibcall) [flag_pic]: Use GOT.
7411 (builtint_setjmp_receiver): Remove bogus, unused expand.
7412 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
7413 (*pt, *ptb, ptrel): New insns.
7414 (sym2GOT): Handle DImode GOT.
7415 (sym2GOTPLT, symGOTPLT2reg): New expands.
7416 (sym2PIC): New expand.
7417 (shcompact_return_tramp): Use GOTPLT to return trampoline.
7418 (shcompact_return_tramp_i): Use return register explicitly.
7419 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
7420 disable flag_reorder_blocks.
7421 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
7422 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
7423 clobbers, for clarity.
7424 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
7425 restoring of r0 in macl as MAYBE_DEAD.
7426 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
7427 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
7428 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
7429 alter_subreg all over.
7430 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
7431 reload, instead of emitting instructions that would require
7433 (casesi_load_media): Add missing modes.
7434 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
7435 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
7436 as used if the argument decoder is called.
7437 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
7438 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
7439 Pmode, then extend it to DImode if necessary.
7440 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
7441 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
7442 constants in FPU-enabled SHmedia, let them be loaded from memory.
7443 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
7444 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
7445 Adjust whitespace in assembly output templates.
7446 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
7447 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
7448 mode of if_then_else.
7449 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
7450 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
7452 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
7453 Joern Rennecke <amylaar@redhat.com>
7454 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
7455 (SUBTARGET_CPP_PTR_SPEC): New.
7456 (SUBTARGET_CPP_SPEC): Remove.
7457 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
7458 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
7459 Fix typo in previous checkin.
7460 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
7461 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
7462 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
7463 Alexandre Oliva <aoliva@redhat.com>
7464 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
7465 what single FP register can hold for SHmedia target.
7466 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
7467 Alexandre Oliva <aoliva@redhat.com>
7468 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
7469 Do not split into SUBREG.
7470 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
7471 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
7472 and added new functions as specified in SH5 ABI r9.
7473 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
7474 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
7476 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
7477 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
7478 gen_consttable_4 and gen_consttable_8. Emit multiple labels
7479 and consttable_window_ends.
7480 2001-06-03 Graham Stott <grahams@redhat,com>
7481 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
7482 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
7483 * config/sh/sh.c (print_operand): Handle floating-point pair,
7484 vector and matrix registers.
7485 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
7486 vector modes into account.
7487 * config/sh/sh.md (movv2sf): Split move between registers into
7489 (movv4sf, movv16sf): Introduce insns that get split only after
7491 * config/sh/shmedia.h: Fix Copyright dates.
7492 * config/sh/ushmedia.h: Likewise. Move loop counter
7493 declarations into conditionals that uses them.
7494 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
7496 * config/sh/sshmedia.h: Fix Copyright dates.
7497 (sh_media_PUTCFG): Fix constraints.
7498 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
7499 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
7500 ptrmemfunc_vbit_in_delta for SH5.
7501 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
7502 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
7503 * invoke.texi: Likewise.
7504 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
7505 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
7506 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
7507 GCC_pop_shmedia_regs_nofpu): New global symbols.
7508 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
7509 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
7510 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
7511 compact function with nonlocal labels.
7512 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
7513 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
7514 (initial_elimination_offset): Account for their stack space.
7515 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
7516 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
7517 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
7518 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
7519 least one of the operands to be a register.
7520 (movv2sf): Likewise. Renamed to movv2sf_i.
7521 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
7522 prepare_move_operands() before emitting SHmedia insns.
7523 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
7524 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
7525 Don't save nor initialize r12. Don't mis-align the stack.
7526 Pad the code with a nop.
7527 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
7529 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
7530 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
7531 [__SHMEDIA__]: Implement.
7532 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
7533 * config/sh/sh.md: Set latency of `pt' closer to reality.
7534 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
7535 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
7536 Set move, load and store type attributes.
7537 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
7538 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
7540 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
7541 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
7542 * config/sh/sh.c (sh_media_register_for_return): New function.
7543 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
7544 branch-target register.
7545 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
7546 * config/sh/sh.md (return_media_i): Use any call-clobbered
7547 branch-target register.
7548 (return_media): If r18 wasn't copied in the prologue, copy it
7550 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
7551 Clear class FP0_REGS.
7552 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
7554 2001-03-08 DJ Delorie <dj@redhat.com>
7555 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
7556 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
7557 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
7558 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
7559 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
7560 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
7561 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
7562 return value correctly for call_cookie.
7563 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
7564 * config/sh/crt1.asm (start): Modified so as to call
7565 ___setup_argv_and_call_main.
7566 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
7567 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
7569 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
7570 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
7571 (STRIP_NAME_ENCODING): Use it.
7572 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
7573 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
7574 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
7575 prepare_scc_operands().
7576 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
7577 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
7578 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
7579 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
7580 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
7581 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
7582 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
7583 used in shcompact_incoming_args.
7584 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
7586 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
7588 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
7590 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
7591 Simplify. Adjust. Add sanity check.
7592 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
7594 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
7596 (udivsi3, divsi3): Use them.
7597 (force_mode_for_call): New insn.
7598 (call, call_value, sibcall_value): Emit it before SHcompact
7600 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
7601 * config/sh/sh.md (call, call_value, sibcall): Make sure the
7602 call cookie is non-NULL before taking its value.
7603 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
7604 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
7605 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
7606 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
7608 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
7609 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
7610 temporary for stack adjusts. Use MACL and MACH to pass
7611 arguments to shcompact_incoming_args.
7612 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
7614 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
7615 (nested_trampoline): Load static chain address into r1.
7616 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
7617 2001-01-07 Alexandre Oliva <aoliva@redhat.com
7618 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
7619 fp_arith_reg_operand().
7620 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
7621 * config/sh/sh.md (casesi): Sign-extend the first two operands,
7622 and use signed compares for them.
7623 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
7624 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
7625 ones properly aligned.
7626 (find_barrier): Account for extra alignment needed for 8-byte wide
7628 (machine_dependent_reorg): Require a label for the second 4-byte
7629 constant after an 8-byte one.
7630 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
7632 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
7633 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
7634 last_float when switching float modes.
7635 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
7636 auto-increment for general-purpose registers.
7637 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
7639 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
7641 * config/sh/sh.c (sh_builtin_saveregs): Support using all
7642 registers for varargs.
7643 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
7644 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
7645 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
7646 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
7647 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
7648 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
7649 call_cookie accordingly.
7650 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
7651 (SHCOMPACT_BYREF): Likewise.
7652 (SHCOMPACT_FORCE_ON_STACK): New macro.
7653 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
7654 (sh_builtin_saveregs): Likewise.
7655 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7656 shcompact_incoming_args): Use new shift values. Support
7657 sequences of consecutive and non-consecutive pushes/pops.
7658 * config/sh/sh.md (return): Don't explicitly use PR_REG.
7659 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
7660 * config/sh/sh.h (TEXT_SECTION): Define.
7661 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
7662 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
7663 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
7664 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
7665 return values on FPU-enabled SHmedia.
7666 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
7667 FPU-enabled SHmedia.
7668 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
7669 value is returned in a non-FP reg and is not returned by
7671 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
7673 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
7674 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
7675 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
7676 quad-aligned to be passed by callee-copy reference.
7677 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
7678 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
7679 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
7680 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
7681 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
7682 copying low-numbered FP regs to r7 and r8.
7683 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
7684 FP regs to general-purpose regs only if the copy was passed on the
7686 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
7687 copying FP reg to r9.
7688 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
7689 copy FP regs to general-purpose regs only in outgoing calls.
7690 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
7691 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
7693 * config/sh/sh.h (struct sh_args): Document all fields.
7694 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
7695 passed partially on the stack should not consider making
7697 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
7698 stack_regs only for incoming calls. When passing FP args,
7699 make sure there are FP regs available before modifying
7701 (SHCOMPACT_BYREF): Pass double args in general-purpose
7702 registers by reference.
7703 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
7704 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
7705 attempt to generate sibcalls if the caller got any arguments
7707 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
7708 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
7709 to 8-byte boundaries.
7710 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
7711 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
7712 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
7713 stored in the stack.
7714 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
7715 for the offsets to have the ISA bit set.
7716 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
7717 invocation. Use beq instead of bgt to mark end of sequence of
7719 (shcompact_incoming_args): Fix store of r2. Use beq instead of
7720 bgt to mark end of sequence of stores.
7721 * config/sh/sh.c (arith_operand): Don't check whether
7722 CONST_OK_FOR_J for now.
7723 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
7724 instead of long for conversion.
7725 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
7726 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
7727 before passing it to fprintf.
7728 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
7729 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
7730 Call set_fpscr before reading/writing SR.
7731 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
7733 * config/sh/lib1funcs.asm: Add `.align 2' directives before
7735 (FMOVD_WORKS): Define on SH5 with FPU.
7736 (set_fpscr): Define on SH5. Remove separate _fpscr_values
7738 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
7740 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
7741 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
7743 (ia_main_table): Ditto.
7744 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
7745 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
7746 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
7747 the definitions from sh.h.
7748 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
7750 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
7751 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
7752 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
7753 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
7754 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
7755 Increment LABEL_NUSES.
7757 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
7759 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
7761 * config/sh/elf.h (SIZE_TYPE): Likewise.
7762 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
7763 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7764 shcompact_incoming_args): Load switch table addresses using
7766 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
7767 (NO_BUILTIN_SIZE_TYPE): Define.
7768 (SIZE_TYPE): Don't define.
7769 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
7770 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
7771 definition of __SH5__=32 for -m5-compact-nofpu.
7772 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
7774 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
7775 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
7776 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
7777 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
7778 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
7779 (INSN_LENGTH_ALIGNMENT): Likewise.
7780 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
7781 * config/sh/sh.md (call, call_value, sibcall): Simplify
7782 copying of non-branch-target register.
7783 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
7784 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
7785 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
7786 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
7787 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
7788 floating-point values as structs.
7789 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
7790 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
7791 general-purpose register.
7792 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
7793 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
7794 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
7795 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
7796 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
7797 (ENCODE_SECTION_INFO): Enclose variables and constants in
7799 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
7800 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
7801 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
7802 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
7803 only for LABEL_REFs. For SYMBOL_REFs, prepend
7804 SH_DATALABEL_ENCODING to the symbol name.
7805 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
7807 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
7808 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
7810 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
7811 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
7812 (DATALABEL_REF_P): Don't require CONST.
7813 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
7815 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
7816 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
7818 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
7819 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
7820 Use shallow_copy_rtx and PUT_MODE to change the mode of
7821 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
7822 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
7823 on SHmedia using GENERAL_REGs.
7824 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
7825 bltu_media_i): Fix reversion of conditions.
7826 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
7827 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
7828 * config/sh/sh.c (output_far_jump): Save r13 in macl.
7829 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
7830 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
7831 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
7832 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
7833 (GCC_nested_trampoline): Likewise.
7834 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
7835 * config/sh/sh.c (gen_datalabel_ref): Define.
7836 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
7837 (INITIALIZE_TRAMPOLINE): Likewise.
7838 (TRAMPOLINE_ADJUST_ADDRESS): Define.
7839 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
7840 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
7841 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
7842 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
7843 (ic_invalidate): Adjust for SH5.
7844 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
7845 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
7847 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
7848 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
7849 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
7850 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
7851 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
7852 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
7853 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
7854 * config/sh/sh.c (target_reg_operand): Match only target-branch
7855 registers and pseudos that aren't virtual registers.
7856 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
7857 Copy operands that don't match target_reg_operand to pseudos.
7858 (call_media, call_value_media, sibcall_media): Use
7859 target_reg_operand instead of target_operand.
7860 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
7861 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
7862 * config/sh/sh.c (target_reg_operand): Match hardware registers
7863 other than branch-target registers.
7864 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
7865 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
7866 (fpscr_values) [SH5 == 32]: Define.
7867 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
7868 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
7869 Handle function addresses coming in SUBREGs.
7870 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
7871 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7872 shcompact_return_trampoline): Use datalabel where appropriate.
7873 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
7874 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
7875 general-purpose register to copy one branch-target register to
7877 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
7878 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
7879 SYMBOL_REFs with VOIDmode.
7880 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
7881 bltu_media_i): New insns.
7882 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
7883 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
7884 (INIT_CUMULATIVE_ARGS): Likewise.
7885 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
7886 * machmode.def (V16SFmode): New mode.
7887 * c-common.c (type_for_mode): Support V2SF and V16SF.
7888 * tree.c (build_common_tree_nodes_2): Likewise.
7889 * tree.h (tree_index): Likewise.
7890 * calls.c (emit_call_1): Take args_so_far. Adjust all
7891 callers. Introduce CALL_POPS_ARGS.
7892 * tm.texi (CALL_POPS_ARGS): Document.
7893 * config/sh/crt1.asm: Implement in SHmedia mode.
7894 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
7895 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
7896 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
7897 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
7898 Implement divsi and udivsi in SHmedia mode. Introduce
7899 SHcompact trampolines.
7900 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
7902 (regno_reg_class): Rewrite.
7903 (fp_reg_names): Remove.
7904 (sh_register_names, sh_additional_register_names): New.
7905 (print_operand): Added `u'. Support SUBREGs in addresses.
7906 Add parentheses around shifted CONSTs.
7907 (output_file_start): Output .mode and .abi directives.
7908 (shiftcosts, addsubcosts, multcosts): Adjust.
7909 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
7910 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
7911 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
7912 bytes, not registers. Take into account the need for the
7913 SHcompact incoming args trampoline. Adjust all callers.
7914 (sh_expand_prologue): Take stack_regs into account. Call
7915 incoming args trampoline. Keep stack aligned as per SH5 ABI.
7916 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
7917 stack aligned as per SH5 ABI.
7918 (sh_builtin_saveregs): Support SH5 ABI.
7919 (sh_build_va_list, sh_va_start): Likewise.
7920 (initial_elimination_offset): Take alignment into account.
7921 Compute location of PR according to the SH5 stack frame.
7922 (arith_reg_operand): Reject branch-target registers.
7923 (shmedia_6bit_operand): New.
7924 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
7925 (target_reg_operand): Match DImode only. Accept SUBREGs.
7926 (target_operand): New.
7927 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
7928 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
7929 SIBCALL_REGS for SHmedia.
7930 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
7931 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
7932 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
7933 (TARGET_SWITCHES): New SH5 flags.
7934 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
7935 VALID_REGISTER_P to disable unsupported registers.
7936 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
7937 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
7938 (FUNCTION_ARG_PADDING): Define.
7939 (FASTEST_ALIGNMENT): Adjust.
7940 (SH_REGISTER_NAMES_INITIALIZER): New.
7941 (sh_register_names): Declare.
7942 (DEBUG_REGISTER_NAMES): Define.
7943 (REGISTER_NAMES): Define based on sh_register_names.
7944 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
7945 (sh_additional_register_names): Declare.
7946 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
7947 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
7948 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
7949 (REGISTER_NATURAL_MODE): Define.
7950 (FIRST_PSEUDO_REGISTER): Adjust.
7951 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
7952 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
7953 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
7954 (VECTOR_MODE_SUPPORTED_P): Define.
7955 (REG_CLASS_CONTENTS): Adjust.
7956 (SMALL_REGISTER_CLASSES): Adjust.
7957 (REG_ALLOC_ORDER): Adjust.
7958 (INDEX_REG_CLASS): Adjust.
7959 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
7960 (CONST_OK_FOR_LETTER_P): Adjust.
7961 (PREFERRED_RELOAD_CLASS): Adjust.
7962 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
7963 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
7964 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
7965 (FIRST_FP_PARM_REG): Adjust.
7966 (CALL_POPS_ARGS): Define.
7967 (FUNCTION_ARG_REGNO_P): Adjust.
7968 (struct sh_args): New fields.
7969 (GET_SH_ARG_CLASS): Adjust.
7970 (INIT_CUMULATIVE_ARGS): Adjust.
7971 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
7972 (FUNCTION_ARG_ADVANCE): Adjust.
7973 (FUNCTION_ARG): Adjust.
7974 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
7975 (FUNCTION_ARG_CALLEE_COPIES): Define.
7976 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
7977 (STRICT_ARGUMENT_NAMING): Define.
7978 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
7979 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
7980 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
7981 (SETUP_INCOMING_VARARGS): Adjust.
7982 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
7983 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
7984 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
7985 (SUBREG_OK_FOR_INDEX_P): Adjust.
7986 (EXTRA_CONSTRAINT_S): Update.
7987 (EXTRA_CONSTRAINT_T): New.
7988 (EXTRA_CONSTRAINT): Adjust.
7989 (GO_IF_LEGITIMATE_INDEX): Adjust.
7990 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
7991 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
7993 (MAX_MOVE_MAX): Define.
7995 (CONST_COSTS): Adjust.
7996 (REGISTER_MOVE_COST): Adjust.
7997 (BRANCH_COST): Adjust.
7998 (TEXT_SECTION_ASM_OP): Adjust.
7999 (DBX_REGISTER_NUMBER): Adjust.
8000 (ASM_OUTPUT_DOUBLE_INT): New.
8001 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
8002 (PREDICATE_CODES): Adjust.
8003 (PROMOTE_MODE): Adjust.
8004 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
8005 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
8006 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
8007 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
8008 (DR0_REG, DR2_REG, DR4_REG): Renumber.
8009 (TR0_REG, TR1_REG, TR2_REG): New.
8010 (XD0_REG): Renumber.
8011 (UNSPEC_COMPACT_ARGS): New.
8012 (type): Added pt and ptabs.
8013 (length): Default to 4 on SHmedia. Default pt length to 12
8014 and 20 on SHmedia32 and SHmedia64, respectively.
8015 (pt): New function unit.
8016 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
8017 Add whitespace between operands of SHmedia instructions.
8019 (adddi3_media, addsi3_media): Adjust constraints.
8020 (subsi3) [SHmedia]: Force operand 1 into a register.
8021 (udivsi3_i1_media, udivsi3_i4_media): New.
8022 (udivsi3): Support SHmedia.
8023 (divsi3_i1_media, divsi3_i4_media): New.
8024 (divsi3): Support SHmedia.
8025 (anddi3, iordi3, xordi3): Adjust constraints.
8026 (zero_extendhidi2, zero_extendqidi2): New.
8027 (extendsidi2, extendhidi2, extendqidi2): New.
8028 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
8029 (pop_e, pop_fpul, pop_4): Likewise.
8030 (movsi_media): Support FP and BT registers.
8031 (movsi_media_nofpu): New. Adjust splits to DImode.
8032 (lduw, ldub): Renamed to zero_extend* above.
8033 (movqi_media): Fix typo.
8034 (movdi_media): Support FP and BT registers.
8035 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
8036 (movdi_const_32bit): New.
8037 (shori_media): Require immediate operand. Use `u' for output.
8038 (movdf_media, movsf_media): Simplified.
8039 (movdf_media_nofpu, movsf_media_nofpu): New.
8040 (movdf, movsf): Adjust
8041 (movv2sf, movv2sf, movv16sf): New.
8042 (beq_media, beq_media_i): Adjust constraints. Don't use
8043 scratch BT register.
8044 (bne_media, bne_media_i): Likewise.
8045 (bgt_media, bgt_media_i): Likewise.
8046 (bge_media, bge_media_i): Likewise.
8047 (bgtu_media, bgtu_media_i): Likewise.
8048 (bgeu_media, bgeu_media_i): Likewise.
8049 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
8050 bunordered): Emit jump insn. Force operands to registers when
8052 (jump_media, jump): Simplify.
8053 (call_compact, call_compact_rettramp): New.
8054 (call_value_compact, call_value_compact_rettramp): New.
8055 (call_media, call_value_media): Simplify.
8056 (sibcall_compact, sibcall_media): New.
8057 (call, call_value): Adjust for SHmedia and SHcompact.
8058 (sibcall, sibcall_value, untyped_call): Likewise.
8059 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
8060 (indirect_jump): Adjust for SHmedia.
8061 (casesi_jump_media): New.
8062 (nop): Re-enable for SHmedia.
8063 (call_site): Restrict to SH1.
8064 (casesi): Adjust for SHmedia.
8065 (casesi_shift_media, casesi_load_media): New.
8066 (return): Explicitly use PR register. Call return trampoline
8068 (return_i): Explicitly use PR register.
8069 (shcompact_return_tramp, shcompact_return_tramp_i): New.
8070 (return_media): Adjust.
8071 (shcompact_incoming_args): New.
8073 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
8074 (movstrsi): Disable on SH5.
8075 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
8076 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
8077 (subsf3, subsf3_media): Likewise.
8078 (mulsf3, mulsf3_media, mac_media): Likewise.
8079 (divsf3, divsf3_media): Likewise.
8080 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
8081 (floatsisf2, fux_truncsfsi2): Likewise.
8082 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
8084 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
8085 (cmpunsf_media, cmpsf): Likewise.
8086 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
8087 (abssf2, abssf2_media): Likewise.
8088 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
8089 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
8090 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
8091 (floatsidf2, fix_truncdfsi2): Likewise.
8092 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
8094 (cmpeqdf_media, cmpgtdf_media): Likewise.
8095 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
8096 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
8097 (absdf2, absdf2_media): Likewise.
8098 (extendsfdf2, extendsfdf2_media): Likewise.
8099 (truncsfdf2, truncsfdf2_media): Likewise.
8100 * config/sh/sh64.h: New file.
8101 * config/sh/t-sh64: New file.
8102 * config/sh/shmedia.h: New file.
8103 * config/sh/ushmedia.h: New file.
8104 * config/sh/sshmedia.h: New file.
8105 * configure.in: Added sh64-*-elf.
8106 * configure: Rebuilt.
8107 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
8108 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
8109 (reg_class_from_letter): Use `b' for TARGET_REGS.
8110 (print_operand): Support `%M', `%m', `AND' and
8111 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
8112 (andcosts): Adjust for SHmedia.
8113 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
8115 (target_reg_operand): New function.
8116 * config/sh/sh-protos.h (target_reg_operand): Declare.
8117 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
8118 FP registers on SH5.
8119 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
8121 (TARGET_REGISTER_P): New macro.
8122 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
8123 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
8124 (EXTRA_CONSTRAINT_S): New macro.
8125 (EXTRA_CONSTRAINT): Adjust.
8126 (FLOAT_TYPE_SIZE): Define to 32.
8127 (Pmode): DImode on SHmedia.
8128 (CONST_COSTS): Adjust for SHmedia literals.
8129 (PREDICATE_CODES): Added target_reg_operand.
8130 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
8131 * config/sh/sh.md: Remove all attrs from SHmedia insns.
8132 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
8133 (cmpdi): Accept SHmedia.
8134 (movdicc_false, movdicc_true): New insns.
8135 (movdicc): New expand.
8136 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
8138 (addsi3_media): Match `S' constraint.
8139 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
8140 (negdi2): Expand for SHmedia.
8141 (one_cmpldi2): New expand.
8142 (zero_extendsidi2): Change from expand to insn.
8143 (extendsidi2): Add constraints.
8144 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
8145 LD/ST address. Fix SI immediate loading split.
8146 (movhi_media, movqi_media, lduw, ldub): New insns.
8147 (movhi, movqi): Accept SHmedia.
8148 (shori_media, movdi_media): Relax input constraints. Split
8150 (movdf_media, movsf_media): New insn. New split to movdi.
8151 (movdf, movsf): Match on SHmedia.
8152 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
8153 bgeu_media): New insns and splits. New insns with `_i' suffix.
8154 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
8155 (bunordered): New expand.
8156 (jump_compact): Renamed from `jump'.
8157 (jump_media): New insn.
8159 (call_media, call_value_media): New insns.
8160 (call, call_value): Adjust.
8161 (indirect_jump_compact): Renamed from `indirect_jump'.
8162 (indirect_jump_media): New insn.
8163 (indirect_jump): New expand.
8164 (untyped_call, return): Accept SHmedia.
8165 (return_media): New insn.
8166 (prologue, epilogue, blockage): Accept SHmedia.
8167 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
8168 (sunordered): New expand.
8169 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
8170 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
8171 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
8172 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
8173 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
8174 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
8175 abssf2_media): New insns.
8176 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
8177 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
8178 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
8179 floatdidf2, floatsidf2_media, fix_truncdfdi2,
8180 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
8181 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
8182 absdf2_media): New insns.
8183 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
8184 (extendsfdf2_media, truncdfsf2_media): New insns.
8185 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
8186 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
8187 * config/sh/sh.h (CONST_OK_FOR_J): Document.
8188 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
8189 * config/sh/sh.md (adddi3): New expand.
8190 (adddi3_media, adddi3z_media): New insns.
8191 (adddi3_compact): Renamed from adddi3.
8192 (addsi3_media): Use add.l r63 to add constant zero.
8193 (subdi3): New expand.
8194 (subdi3_media): New insn.
8195 (subdi3_compact): Renamed from subdi3.
8196 (mulsidi3): New expand.
8197 (mulsidi3_media): New insn.
8198 (mulsidi3_compact): Renamed from mulsidi3.
8199 (umulsidi3): New expand.
8200 (umulsidi3_media): New insn.
8201 (umulsidi3_compact): Renamed from umulsidi3.
8202 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
8203 (ashlsi3, ashrsi3, lshrsi3): Use them.
8204 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
8205 (ashldi3, ashrdi3, lshrdi3): Use them.
8206 (zero_extendsidi2): New expand.
8207 (extendsidi2): New insn.
8208 (movsi_media): New insn. Split to movdi to load constants.
8209 (movsi): Enable for shmedia.
8210 (movdi_media): New insn. Use shori_media to load wide constants.
8211 (short_media): New insn.
8212 (movdi): Enable for shmedia.
8213 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
8214 * config/sh/sh.h (CPP_SPEC): Added `m5'.
8215 (SUBTARGET_CPP_SPEC): Added `!m5'.
8216 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
8217 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
8218 to all other SH variants.
8219 (TARGET_DEFAULT): Set to SH1_BIT.
8220 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
8221 (BITS_PER_WORD): Raise to 64 on shmedia.
8222 (MAX_BITS_PER_WORD): Change to 64.
8223 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
8224 (INT_TYPE_SIZE): Keep as 32.
8225 (UNITS_PER_WORD): Raise to 8 on shmedia.
8226 (MIN_UNITS_PER_WORD): Keep as 4.
8227 (POINTER_SIZE): Raise to 64 on shmedia.
8228 (CONST_OK_FOR_J): New macro.
8229 (CONST_OK_FOR_LETTER_P): Use it.
8230 (processor_type): Add PROCESSOR_SH5.
8231 * config/sh/sh.md: Conditionalize all expands, insns and
8232 splits to TARGET_SH1.
8234 (addsi3_compact): Renamed from...
8235 (addsi3): Now an expand.
8236 (addsi3_media, subsi3_media): New insns.
8237 (subsi3): Don't negate constants with SHmedia.
8239 * hooks.c: New file.
8240 * hooks.h: New file.
8241 * Makefile.in (HOOKS_H): New.
8242 (TARGET_DEF_H): Added $(HOOKS_H).
8243 (OBJS): Added hooks.o.
8244 (cfgcleanup.o, bb-reorder.o): Added target.h.
8245 (hooks.o): Added dependencies.
8246 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
8247 (TARGET_INITIALIZER): this.
8248 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
8249 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
8250 * bb-reorder.c: Include target.h.
8251 (reorder_basic_blocks): Skip if cannot modify jumps.
8252 * cfgcleanup.c: Include target.h.
8253 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
8255 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8257 * config/mips/mips.md (casesi_internal, casesi_internal_di):
8258 Protect jump delay slot instructions with .set noreorder and
8261 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8263 * config/mips/mips.md (casesi_internal_di): Calculate
8264 the index into the target offset table correctly.
8266 2002-02-08 Richard Henderson <rth@redhat.com>
8268 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
8269 * final.c (output_addr_const): Accept and discard SUBREG.
8270 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
8271 mark them unknown instead.
8272 (simplify_subtraction): Handle RTX_UNKNOWN.
8273 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
8275 2002-02-08 David Edelsohn <edelsohn@gnu.org>
8277 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
8279 2002-02-08 Richard Henderson <rth@redhat.com>
8281 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
8283 2002-02-08 Andreas Jaeger <aj@suse.de>
8285 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
8286 * config/i386/t-linux64: New file.
8288 2002-02-08 Jakub Jelinek <jakub@redhat.com>
8290 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
8291 * c-parse.in (compstmt): Clear last_expr_type.
8293 2002-02-07 Richard Henderson <rth@redhat.com>
8295 * loop.c (strength_reduce): Sink final_value when not
8298 2002-02-07 David O'Brien <obrien@FreeBSD.org>
8300 * config/sparc/freebsd.h: Fix mismatched spec {.
8302 2002-02-07 Richard Henderson <rth@redhat.com>
8304 * cfgrtl.c: Include recog.h and insn-config.h.
8305 (keep_with_call_p): Fix general_operand invocation.
8306 * Makefile.in (cfgrtl.o): Update dependencies.
8308 2002-02-07 Kazu Hirata <kazu@hxi.com>
8310 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
8311 comment. Accept HImode only if TARGET_H8300.
8313 2002-02-07 Eric Christopher <echristo@redhat.com>
8315 * config/mips/crtn.asm: Cleanup #ifdefs.
8317 2002-02-07 Eric Christopher <echristo@redhat.com>
8319 * config/mips/crti.asm: Add changes for mips16. mips16 uses
8320 register 7 as RA instead of $31.
8321 * config/mips/crtn.asm: Ditto.
8322 * config/mips/mips.c (mips_move_2words): Add case for
8323 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
8324 (compute_frame_size): Fix typo.
8325 (save_restore_insns): Ditto. Make documentation about using
8326 register $7 as return register more precise.
8327 (mips_expand_epilogue): Fix comment. Add code to work around not
8328 being able to add to the stack pointer directly.
8329 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
8330 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
8333 2002-02-07 Tom Rix <trix@redhat.com>
8335 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
8336 immediates in ldu and stdu DS opcode field.
8337 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
8338 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
8339 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
8341 2002-02-07 Jeff Sturm <jsturm@one-point.com>
8343 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
8344 offset for stack bias.
8346 2002-02-07 H.J. Lu <hjl@gnu.org>
8348 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
8350 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
8352 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
8354 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
8356 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
8357 * i386.c (x86_order_regs_for_local_alloc): New global function.
8358 * i386.h (REG_ALLOC_ORDER): CLeanup.
8359 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
8361 2002-02-07 Richard Henderson <rth@redhat.com>
8363 PR optimization/2463
8364 * alias.c (find_base_value): Recall base values for fixed hard regs.
8365 * loop.c (loop_regs_update): Don't use single_set on non-insns.
8367 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
8369 * config/mips/mips.md (define_delay) [mips16]: Adjust required
8372 2002-02-06 Richard Henderson <rth@redhat.com>
8375 * stmt.c (resolve_operand_name_1): Take more care with mixed
8376 named and unnamed operands.
8378 2002-02-06 Janis Johnson <janis187@us.ibm.com>
8379 Jan Hubicka <jh@suse.cz>
8381 * loop.c (remove_constant_addition): Avoid clobbering a shared
8384 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
8386 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
8387 * config/s390/t-linux64: New file.
8388 * config/s390/libgcc-glibc.ver: New file.
8390 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
8392 * config/s390/linux64.h: Delete file.
8393 * config/s390/s390x.h: New file.
8394 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
8395 as target header file.
8396 * config/s390/linux.h (TARGET_VERSION): Define depending on
8397 DEFAULT_TARGET_64BIT.
8398 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
8399 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
8400 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
8401 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
8402 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
8403 (EXTRA_SPEC): New define.
8404 * config/s390/s390.h (TARGET_VERSION): Define depending on
8405 DEFAULT_TARGET_64BIT.
8406 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
8408 2002-02-06 Jason Merrill <jason@redhat.com>
8410 * c-decl.c (finish_function): Warn about a non-void function with
8411 no return statement and no abnormal exit.
8412 (current_function_returns_abnormally): New variable.
8413 (start_function): Clear it.
8414 (struct c_language_function): Add returns_abnormally.
8415 (push_c_function_context): Save it.
8416 (pop_c_function_context): Restore it.
8417 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
8418 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
8419 an explicit return type.
8420 * c-tree.h: Declare current_function_returns_abnormally.
8421 (C_FUNCTION_IMPLICIT_INT): New macro.
8422 * c-typeck.c (build_function_call): Set it.
8423 (c_expand_return): Set current_function_returns_value even if the
8426 2002-02-06 Jakub Jelinek <jakub@redhat.com>
8429 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
8430 unsafe for reevaluation.
8432 2002-02-06 Jakub Jelinek <jakub@redhat.com>
8435 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
8436 EXPR_STMT, but COMPOUND_STMT, recurse into it.
8438 2002-02-06 Richard Henderson <rth@redhat.com>
8440 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
8441 be a general_operand. Dest for function value must be a pseudo.
8443 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8445 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
8446 as SYMBOL_REFs from the constant pool.
8448 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
8450 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
8451 passed by invisible reference.
8453 2002-02-05 Richard Henderson <rth@redhat.com>
8455 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
8457 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
8459 Implement using "base addresses" in insn operands as default.
8460 * config/mmix/mmix.c (mmix_conditional_register_usage): if
8461 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
8462 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
8463 used to read the rtx value.
8464 (mmix_target_asm_function_epilogue): Fix spacing.
8465 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
8466 (mmix_legitimate_address): Ditto.
8467 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
8468 should be loaded with a GETA insn. Don't allocate needless extra
8469 char for nul termination and fix misleading comment.
8470 (mmix_print_operand_address): Handle constants if
8471 TARGET_BASE_ADDRESSES.
8472 (mmix_output_register_setting): Use base addressing if
8473 TARGET_BASE_ADDRESSES and the number of insns is 3.
8474 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
8475 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
8476 to use R as constraint, add LDA to match s.
8477 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
8478 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
8479 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
8480 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
8481 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
8482 order with other fixed registers.
8483 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
8484 other parameter/call-clobbered registers.
8485 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
8486 -mbase-addresses, -mno-base-addresses.
8487 (MMIX Options): Ditto.
8489 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
8491 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
8493 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
8495 * config/rs6000/altivec.h: Change elem to _S_elem.
8497 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
8499 * config/netbsd.h (WCHAR_TYPE): Define.
8500 (WCHAR_TYPE_SIZE): Ditto.
8502 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
8503 (WCHAR_UNSIGNED): Ditto.
8504 (WCHAR_TYPE_SIZE): Ditto.
8506 * config/arm/netbsd.h: Likewise.
8507 * config/i386/netbsd-elf.h: Likewise.
8508 * config/i386/netbsd.h: Likewise.
8509 * config/m68k/netbsd-elf.h: Likewise.
8510 * config/m68k/netbsd.h: Likewise.
8511 * config/ns32k/netbsd.h: Likewise.
8512 * config/sparc/netbsd.h: Likewise.
8513 * config/vax/netbsd.: Likewise.
8515 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
8517 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
8518 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
8519 (TARGET_INITIALIZER): this.
8520 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
8521 (BITFIELD_NBYTES_LIMITED): Markup fix.
8522 * tree.h (default_ms_bitfield_layout_p): Declare.
8523 (record_layout_info): Added prev_field.
8524 * tree.c (default_ms_bitfield_layout_p): New fn.
8525 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
8526 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
8527 * stor-layout.c: Include target.h.
8528 (start_record_layout): Initialize prev_field.
8529 (place_field): Handle MS bit-field layout, and disregard
8530 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
8531 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
8532 * Makefile.in (stor-layout.o): Adjust dependencies.
8534 2002-02-05 Jason Merrill <jason@redhat.com>
8536 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
8538 2002-02-05 Andreas Jaeger <aj@suse.de>
8540 * crtstuff.c: Fix comments.
8542 2002-02-05 Richard Henderson <rth@redhat.com>
8545 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
8546 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
8549 * config/mips/mips.c (function_arg): Handle TImode.
8550 (function_arg_advance): Likewise.
8552 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8554 * config/rs6000/altivec.h (vec_step_help): Rename to
8557 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8559 * config/rs6000/altivec.h: Fix typos.
8561 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
8563 * config/arm/netbsd.h: Correct a comment.
8565 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8567 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
8568 building void typed builtins.
8570 * config/rs6000/altivec.h (vec_ld*): Fix typos.
8571 (vec_step): Implement for C++.
8573 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8575 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
8577 2002-02-04 Richard Henderson <rth@redhat.com>
8579 * combine.c (nonzero_bits): Re-introduce special case for
8580 sp/fp/ap wrt REGNO_POINTER_ALIGN.
8582 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
8584 * doc/extend.texi: Warn about unsupported usage of altivec
8587 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
8588 (altivec_predicate_*): New.
8590 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
8591 Add C++ version of vec_*() functions.
8593 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
8594 (bdesc_2arg): Remove altivec predicates.
8595 (altivec_expand_builtin): Handle predicates.
8596 (altivec_init_builtins): Handle predicates.
8597 (altivec_expand_predicate_builtin): New.
8599 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8601 * pa.c (DO_FRAME_NOTES): Move forward.
8602 (store_reg): Revise handling of frame notes.
8603 (load_reg): Likewise.
8604 (set_reg_plus_d): Likewise.
8605 (hppa_expand_prologue): Likewise.
8606 (hppa_expand_epilogue): Likewise.
8608 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8610 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
8612 2002-02-04 Jakub Jelinek <jakub@redhat.com>
8614 PR c/4475, c++/3780:
8615 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
8616 * c-common.h (SWITCH_TYPE): Define.
8617 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
8618 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
8619 Rename spareness variable to sparseness.
8620 (expand_end_case_type): Renamed from expand_end_case, use orig_type
8621 if non-NULL instead of TREE_TYPE (orig_index).
8622 * tree.h (expand_end_case_type): Renamed from expand_end_case.
8623 (expand_end_case): Define using expand_end_case_type.
8624 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
8625 to expand_end_case_type.
8626 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
8628 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8630 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
8631 (BIGGEST_ALIGNMENT): Change to 128.
8633 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8635 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
8637 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
8639 * pa.md (call_internal_reg_64bit): Remove unused variable.
8641 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
8643 * config/arm/arm.h (machine_function): Add uses_anonymous_args
8645 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
8646 * config/arm/arm.c (current_function_anonymous_args): Delete,
8647 replace uses with cfun->machine->uses_anonymous_args.
8648 (arm_reorg): Do not reset uses_anonymous_args.
8650 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
8651 any geenral register.
8653 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
8655 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
8658 2002-02-04 Richard Henderson <rth@redhat.com>
8660 * combine.c (force_to_mode): Remove STACK_BIAS code.
8661 (nonzero_bits): Likewise. Replace sp/fp special case with
8662 REGNO_POINTER_ALIGN.
8664 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
8665 (HARD_FRAME_POINTER_REGNUM): New.
8666 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
8667 (FIXED_REGS, CALL_USED_REGS): Update.
8668 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
8669 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
8670 (HARD_REGNO_NREGS): Update for SFP.
8671 (STACK_POINTER_OFFSET): Include bias here ...
8672 (FIRST_PARM_OFFSET): ... not here.
8673 (STACK_BIAS): Remove.
8674 (INIT_EXPANDERS): New.
8675 (STARTING_FRAME_OFFSET): Do not include bias.
8676 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
8677 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
8678 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
8679 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
8680 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
8681 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
8682 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
8683 (MUST_SAVE_REGISTER): Likewise.
8684 (sparc_flat_function_prologue): Likewise.
8685 (sparc_flat_function_epilogue): Likewise.
8686 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
8687 (sparc_init_modes): SFP is GENERAL_REGS.
8688 (sparc_builtin_saveregs): SFP does not have bias applied.
8690 2002-02-04 Richard Henderson <rth@redhat.com>
8692 * config/alpha/alpha.c (current_function_is_thunk): Don't check
8693 current_function_is_thunk.
8694 (alpha_sa_mask): Distinguish between current_function_is_thunk
8695 called from ASM_OUTPUT_MI_THUNK and not.
8696 (alpha_does_function_need_gp): Thunks always need gp.
8697 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8698 (alpha_output_mi_thunk_osf): New.
8699 * config/alpha/alpha-protos.h: Update.
8700 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
8702 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
8704 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
8705 function types, not when they're taken away.
8707 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
8709 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
8710 CODE_LABEL and jump table when replacing a table jump with a
8713 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8715 * config/s390/s390-protos.h (legitimize_la_operand,
8716 s390_secondary_input_reload_class, s390_plus_operand,
8717 s390_expand_plus_operand): Add prototypes.
8719 config/s390/s390.c (s390_secondary_input_reload_class,
8720 s390_plus_operand, s390_expand_plus_operand): New functions.
8722 (struct s390_address): New member 'pointer'.
8723 (s390_decompose_address): Compute it.
8724 (legitimate_la_operand_p): Use it.
8725 (legitimize_la_operand): New function.
8726 (movti, movdi, movdf splitters): Call it.
8728 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
8729 (PREDICATE_CODES): Add s390_plus_operand.
8731 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
8732 (la_ccclobber): Allow GENERAL_REGS as output operand.
8734 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
8735 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
8736 (*la_64, *la_31, reload_indi, reload_insi): ... these.
8738 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
8740 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
8741 register names for regular asm () construct.
8743 2002-02-04 Jakub Jelinek <jakub@redhat.com>
8745 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
8748 2002-02-04 Jakub Jelinek <jakub@redhat.com>
8750 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
8753 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
8755 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
8756 constant pool to be identical by string address and index.
8758 2002-02-04 Anthony Green <green@redhat.com>
8760 * output.h (SECTION_OVERRIDE): Define.
8761 * varasm.c (named_section): Obey SECTION_OVERRIDE.
8763 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
8765 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
8766 by existing arm*-*-netbsd* (a.out) target.
8767 (ns32k-*-netbsdelf*): Likewise.
8768 (sparc-*-netbsdelf*): Likewise.
8769 (vax-*-netbsdelf*): Likewise.
8771 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
8773 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
8774 headers and libobjc headers.
8776 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
8778 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
8779 (_mingw.h): Remove duplicate include.
8781 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
8783 * config.gcc: Set cpu_type to m68k for 68010, as well.
8784 (m68010-*-netbsdelf*): New...
8785 (m68k*-*-netbsdelf*): ...targets.
8786 * config/m68k/netbsd-elf.h: New file.
8788 2002-02-02 Kazu Hirata <kazu@hxi.com>
8790 * config/h8300/h8300.c (hand_list): Move inside function_arg.
8792 2002-02-02 Kazu Hirata <kazu@hxi.com>
8794 * config/h8300/h8300.c (h8_push_ops): Move inside
8796 (h8_pop_ops): Likewise.
8797 (h8_move_ops): Likewise.
8799 2002-02-02 Kazu Hirata <kazu@hxi.com>
8801 * config/h8300/h8300.c (os_task): Make it static.
8802 (monitor): Likewise.
8803 (pragma_saveall): Likewise.
8805 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
8807 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
8808 constant is a valid sign-extension for Pmode.
8810 2002-02-02 Kazu Hirata <kazu@hxi.com>
8812 * config/h8300/h8300.c: Fix formatting.
8814 2002-02-02 Kazu Hirata <kazu@hxi.com>
8816 * config/h8300/h8300.md: Fix formatting.
8818 2002-02-02 Kazu Hirata <kazu@hxi.com>
8820 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
8821 predicates of operands[1]. Split the patterns for each
8824 2002-02-02 Kazu Hirata <kazu@hxi.com>
8826 * config/h8300/h8300.md (xor patterns): Tighten the predicates
8827 of operands[1] to register_operand.
8829 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
8831 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
8832 * cpphash.c (_cpp_init_hashtable): Similarly.
8833 * cppinit.c (cpp_create_reader): Default the signed_char flag.
8834 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
8835 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
8836 (cpp_handle_option): Handle the new options.
8837 * cpplex.c (cpp_interpret_charconst): Use new flag.
8838 * cpplib.h (struct cpp_options): New member signed_char.
8839 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
8840 (cpp_options): Handle -fsigned-char and -funsigned-char.
8841 (static_specs): Remove signed_char_spec.
8842 (do_spec1): Don't handle %c.
8843 * system.h: Poison SIGNED_CHAR_SPEC.
8844 * tradcif.y (yylex): Use flag_signed_char.
8845 * tradcpp.h (flag_signed_char): New.
8846 * tradcpp.c (flag_signed_char): New.
8847 (main): Handle new command-line options.
8848 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
8850 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
8851 * avr/avr.h: Remove old comments.
8852 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
8853 (CC1_SPEC): Pass -fsigned-char if -mic*.
8854 (SIGNED_CHAR_SPEC): Remove.
8856 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
8858 2002-02-01 Eric Christopher <echristo@redhat.com>
8860 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
8861 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
8862 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
8863 (ASM_OUTPUT_REG_POP): Ditto.
8865 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
8867 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
8870 2002-02-02 Jakub Jelinek <jakub@redhat.com>
8872 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
8874 2002-02-02 Jakub Jelinek <jakub@redhat.com>
8877 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
8880 2002-02-01 Janis Johnson <janis187@us.ibm.com>
8882 * cfganal.c: Include tm_p.h.
8883 (keep_with_call_p): Fix the test that determines if a register holds
8884 the return value of a call.
8886 2002-02-01 DJ Delorie <dj@redhat.com>
8888 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
8889 we are given conflicting registers, switch to the other one we
8890 had allocated for us.
8891 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
8892 as TImode so we know when the "other" register is available.
8894 2002-02-01 David O'Brien <obrien@FreeBSD.org>
8896 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
8899 2002-02-01 Janis Johnson <janis187@us.ibm.com>
8901 * cfganal.c (keep_with_call_p): New function.
8902 (flow_call_edges_add): Prevent splitting a block between a call and
8903 a single-set instruction that should be kept in the same block.
8905 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
8907 * doc/install.texi (avr): Update outdated URL.
8909 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
8911 * config/stormy16/stormy16.md (pushqi): New.
8915 (movhi): Remove stack operands.
8917 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
8918 nonimmediate_nonstack_operand.
8919 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
8921 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
8924 2002-01-31 Jason Merrill <jason@redhat.com>
8926 * Makefile.in (c-parse.c): Handle .output file.
8927 * objc/Make-lang.in (objc-parse.c): Likewise.
8929 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
8931 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
8932 the -me[lb] option is given. Don't output the default flag
8935 2002-01-31 Zack Weinberg <zack@codesourcery.com>
8937 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
8938 the primary source file; this has not been done yet.
8939 * c-decl.c (c_expand_body): Reset input_filename from
8940 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
8942 2002-01-31 Kazu Hirata <kazu@hxi.com>
8944 * rtlanal.c (subreg_regno_offset): Do not use
8945 SUBREG_REGNO_OFFSET.
8946 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
8947 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
8949 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
8951 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
8952 version rather than GNATS version in --version output.
8954 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
8956 * ifcvt.c (noce_process_if_block): Make a copy of the destination
8957 when copying back from a temporary.
8959 2002-01-30 Richard Henderson <rth@redhat.com>
8961 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
8962 and new_dest are the same.
8964 2002-01-30 Richard Henderson <rth@redhat.com>
8967 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
8968 * rtl.c (note_insn_name): Update.
8969 * emit-rtl.c (remove_unnecessary_notes): Kill it.
8970 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
8971 to perform loop rotation.
8972 (expand_exit_loop_top_cond): New.
8973 * tree.h (expand_exit_loop_top_cond): Declare it.
8974 * c-semantics.c (genrtl_while_stmt): Use it.
8975 (genrtl_for_stmt): Likewise.
8977 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
8979 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
8980 arguments to 64-bit boundaries on 64-bit ABIs.
8982 2002-01-30 Steve Ellcey <sje@cup.hp.com>
8984 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
8986 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
8988 * c-decl.c (grokdeclarator): Handle type being a typedef for an
8991 2002-01-30 David O'Brien <obrien@FreeBSD.org>
8993 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
8994 * config/sparc/sparc_bi.h: Remove file.
8995 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
8997 2002-01-30 Richard Henderson <rth@redhat.com>
8999 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
9001 2002-01-30 Zack Weinberg <zack@codesourcery.com>
9003 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
9005 2002-01-30 Jason Merrill <jason@redhat.com>
9007 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
9008 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
9009 (reg_save): Use DW_CFA_offset_extended_sf instead.
9011 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
9013 2002-01-29 Jakub Jelinek <jakub@redhat.com>
9015 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
9018 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
9020 * rs6000.md ("*call_value_local32"): Remove constraints.
9021 ("*call_value_local64"): Same.
9022 ("*call_value_indirect_nonlocal_aix32"): Same.
9023 ("*call_value_nonlocal_aix32"): Same.
9024 ("*call_value_indirect_nonlocal_aix64"): Same.
9025 ("*call_value_nonlocal_aix64"): Same.
9026 ("*call_value_nonlocal_sysv"): Same.
9028 2002-01-29 Richard Henderson <rth@redhat.com>
9030 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
9032 2002-01-29 Richard Henderson <rth@redhat.com>
9034 * expr.c (force_operand): Ignore flag_pic for detecting pic
9036 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
9037 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
9038 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
9039 instead of open-coded loop.
9040 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
9041 be fixed when in use.
9043 2002-01-29 Richard Henderson <rth@redhat.com>
9045 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
9046 * sched-rgn.c (propagate_deps): Update them.
9047 * sched-deps.c (sched_analyze_insn): Update them. Flush the
9048 clobbers list when either gets too long.
9050 2002-01-29 Jakub Jelinek <jakub@redhat.com>
9052 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
9053 and INDEX_REGS the same as GENERAL_REGS.
9054 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
9056 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
9058 * tree.c (build_nonstandard_integer_type): Correct prototype.
9060 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
9062 * config/s390/s390.md (movstrsico, movstrdix_64,
9063 movstrsix_31): Remove, replace by ...
9064 (movstrdi_short, movstrsi_short, movstrdi_long,
9065 movstrsi_long): ... these. New.
9066 (movstrdi, movstrsi): Adapt.
9068 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
9069 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
9070 Remove unnecessary CC clobber.
9071 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
9072 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
9074 (divmoddi4): Don't partially initialize TImode register.
9076 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
9078 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
9080 2002-01-29 Richard Henderson <rth@redhat.com>
9082 * flow.c (print_rtl_and_abort): Remove.
9083 (print_rtl_and_abort_fcn): Remove.
9084 (verify_local_live_at_start): Use dump_bb instead.
9085 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
9086 (verify_wide_reg_1): Return 2 on mode test failure.
9088 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
9090 PR c/3325, c/3326, c/2511, c/3347
9091 * c-decl.c (enum_decl_context): Remove BITFIELD.
9092 (grokdeclarator): Take bitfield width as an input.
9093 Ensure bitfields are given the correct type. Perform
9094 bitfield width validation with build_bitfield_integer_type
9095 rather than waiting for finish_struct.
9096 (grok_typename, grok_typename_in_parm_context, start_decl,
9097 push_parmdecl, grokfield, start_function): Update calls to
9099 (build_bitfield_integer_type): New function.
9100 (finish_struct): Move bitfield validation to grokdeclarator
9101 and build_bitfield_integer_type.
9102 * tree.c (build_nonstandard_integer_type): New function.
9103 * tree.h (build_nonstandard_integer_type): New prototype.
9105 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
9107 2002-01-29 Jakub Jelinek <jakub@redhat.com>
9110 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
9111 don't ignore unrecognized -W* options.
9112 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
9113 * cpplib.h (cpp_handle_option): Adjust prototype.
9114 * c-decl.c (c_decode_options): Pass 0 as last argument to
9118 * gcc.c (cpp_unique_options): Split from cpp_options.
9119 (cpp_options): Source cpp_unique_options.
9120 (default_compilers): Use cpp_unique_options instead of cpp_options
9121 when used together with cc1_options.
9122 (static_specs): Add cpp_unique_options.
9123 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
9124 when used together with cc1_options.
9126 2002-01-29 Kazu Hirata <kazu@hxi.com>
9128 * config/h8300/h8300-protos.h: Update the prototype of
9130 * config/h8300/h8300.c (output_a_shift): Remove an unused
9131 argument 'insn'. Remove redundant code.
9132 * config/h8300/h8300.md: Adust to the new prototype of
9135 2002-01-29 Kazu Hirata <kazu@hxi.com>
9137 * config/h8300/h8300-protos.h: Update the prototypes of
9138 emit_a_rotate and expand_a_rotate.
9139 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
9140 first argument to 'enum rtx_code'.
9141 (expand_a_rotate): Likewise.
9143 2002-01-28 Kazu Hirata <kazu@hxi.com>
9145 * config/h8300/h8300-protos.h: Update the prototype of
9147 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
9149 * config/h8300/h8300.md: Adjust to the new prototype.
9151 2002-01-28 Kazu Hirata <kazu@hxi.com>
9153 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
9156 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
9158 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
9159 is a fixed register before returning pic_offset_table_rtx.
9160 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
9161 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
9163 2002-01-28 Jason Merrill <jason@redhat.com>
9165 * dwarf2.h: Sync with src version.
9167 2002-01-28 Paul Koning <pkoning@equallogic.com>
9169 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
9171 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
9172 * doc/extend.texi (__builtin_prefetch): Update documentation:
9173 first argument is now const void ptr.
9175 2002-01-28 Kazu Hirata <kazu@hxi.com>
9177 * config/h8300/h8300-protos.h: Remove an unused prototype.
9179 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
9181 * toplev.c (lang_independent_init): Round up identifier size.
9183 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
9185 * config.gcc: Revert previous change.
9187 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
9189 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
9191 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
9193 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
9194 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
9195 other non-elf netbsd config frags.
9196 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
9197 collect2 will does that.
9198 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
9199 shared-lib frobbing will work.
9201 2002-01-28 Kazu Hirata <kazu@hxi.com>
9203 * config/h8300/h8300.h: Fix formatting.
9204 * config/h8300/h8300.md: Likewise.
9206 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
9208 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
9209 the old, removed AAA_standards fix.
9210 * fixinc/fixincl.x: Rebuilt.
9212 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
9214 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
9215 atexit call in crtbegin, hooked in after call to frame_dummy;
9216 register EH before registering __fini__start.
9218 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
9220 * config/rs6000/altivec.h: Remove spurious semicolons.
9222 2002-01-27 Kazu Hirata <kazu@hxi.com>
9224 * config/h8300/h8300.md: Replace dead bit extraction patterns
9225 with ones that work.
9227 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9229 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
9230 if not STRICT_ALIGNMENT.
9231 * rtl.h (MEM_ALIGN): Likewise.
9233 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
9235 * doc/invoke.texi (-fdump-translation-unit): Revert this
9236 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
9238 2002-01-27 Kazu Hirata <kazu@hxi.com>
9240 * config/h8300/h8300.md (define_constants): New.
9241 (anonymous patterns) Use defined constants appropriately.
9243 2002-01-27 Kazu Hirata <kazu@hxi.com>
9245 * config/h8300/h8300.c (function_arg): Remove redundant code.
9247 2002-01-26 Richard Henderson <rth@redhat.com>
9249 * sched-deps.c (reg_pending_uses_head): New.
9250 (reg_pending_barrier): Rename from reg_pending_sets_all.
9251 (find_insn_list): Don't mark inline.
9252 (find_insn_mem_list): Remove.
9253 (add_dependence_list, add_dependence_list_and_free): New.
9254 (flush_pending_lists): Replace only_write param with separate
9255 for_read and for_write parameters. Update all callers. Use
9256 add_dependence_list_and_free.
9257 (sched_analyze_1): Do not add reg dependencies here; just set
9258 the pending bits. Use add_dependence_list.
9259 (sched_analyze_2): Likewise.
9260 (sched_analyze_insn): Replace schedule_barrier_found with
9261 reg_pending_barrier. Add all dependencies for pending reg
9262 uses, sets, and clobbers.
9263 (sched_analyze): Don't add reg dependencies for calls, just
9264 set pending bits. Use regs_invalidated_by_call. Treat
9265 sched_before_next_call as a normal list, not a fake insn.
9266 (init_deps): No funny init for sched_before_next_call.
9267 (free_deps): Free pending mems lists. Don't zero reg_last.
9268 (init_deps_global): Init reg_pending_uses.
9269 (finish_deps_global): Free it.
9270 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
9271 (find_insn_mem_list): Remove.
9272 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
9273 (propagate_deps): Use them. Zero temp mem lists.
9275 2002-01-26 Richard Henderson <rth@redhat.com>
9277 * Makefile.in (CRTSTUFF_CFLAGS): New.
9278 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
9279 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
9280 crtstuff.c instead of alpha assembly version.
9281 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
9282 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
9283 not FORCE_{INIT,FINI}_SECTION_ALIGN.
9284 (__do_global_dtors_aux): Mark used.
9285 (frame_dummy, __do_global_ctors_aux): Mark used.
9286 (fini_dummy, init_dummy): Remove.
9288 * config/alpha/crtbegin.asm: Remove file.
9289 * config/alpha/crtend.asm: Remove file.
9290 * config/alpha/t-crtbe: Remove file.
9291 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
9292 (LINK_EH_SPEC): New.
9294 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
9295 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
9296 calling constructors.
9297 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
9299 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
9300 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
9301 CRT_END_INIT_DUMMY hack.
9302 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
9303 FORCE_{INIT,FINI}_SECTION_ALIGN.
9305 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
9306 FORCE_{INIT,FINI}_SECTION_ALIGN.
9308 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
9309 invocation sequence.
9310 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
9312 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
9313 (FORCE_CODE_SECTION_ALIGN): New.
9315 2002-01-26 Richard Henderson <rth@redhat.com>
9317 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
9319 2002-01-26 Richard Henderson <rth@redhat.com>
9321 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
9322 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
9324 2002-01-26 Kazu Hirata <kazu@hxi.com>
9326 * config/h8300/h8300.md: Remove bit extraction patterns that
9327 cannot be triggered.
9328 Restrict each bit extraction pattern to a variant on which the
9331 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
9333 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
9335 2002-01-26 Kazu Hirata <kazu@hxi.com>
9337 * config/h8300/h8300.md: Remove bit test patterns that cannot
9339 Restrict each bit test pattern to a variant on which the
9342 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9344 * builtins.c (expand_builtin_strncat): Remove redundant check for
9347 2002-01-25 David O'Brien <obrien@FreeBSD.org>
9349 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
9351 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
9354 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
9356 * dbxout.c (dbxout_init): Use assemble_name rather than just
9357 stripping off the first character.
9358 (dbxout_source_file): Likewise.
9360 2002-01-25 DJ Delorie <dj@redhat.com>
9362 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
9363 using rtx_equal_p, not by comparing pointers.
9365 2002-01-25 Steve Ellcey <sje@cup.hp.com>
9367 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
9368 for PIC_OFFSET_TABLE_REGNUM.
9369 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
9371 2002-01-25 David O'Brien <obrien@FreeBSD.org>
9373 * config.gcc (x86_64-*-freebsd*): New target.
9374 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
9376 (i[34567]86-*-freebsd*): Don't include svr4.h.
9377 * config/i386/freebsd64.h: New file.
9379 2002-01-25 Douglas B Rupp <rupp@gnat.com>
9381 * config/alpha/x-vms (version): Make static.
9383 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
9384 in previous checkin.
9386 * Makefile.in (install-headers-cp): New target.
9387 * config.gcc (alpha-dec-*vms*): Install headers with
9390 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
9392 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
9395 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9397 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
9398 of compare_tree_int.
9399 (expand_builtin_strncat): Likewise.
9400 * c-decl.c (finish_struct): Use tree_low_cst.
9401 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
9402 * tree.c (compare_tree_int): Likewise.
9404 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
9406 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
9407 adjustments even if they are implemented by more than two insns.
9409 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
9411 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
9412 * df.h (struct ref): Kill B.
9413 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
9415 * basic-block.h (PROP_EQUAL_NOTES): New flag.
9416 * flow.c (propagate_one_insn): Use it.
9417 (mark_used_regs): Handle NIL.
9419 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
9421 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
9424 2002-01-25 David Edelsohn <edelsohn@gnu.org>
9426 * rs6000.md (prefetch): Make address V4SI mode so that the address
9427 is restricted to legitimate form for instruction.
9429 2002-01-25 Bob Wilson <bob.wilson@acm.org>
9431 * doc/install.texi (xtensa-*-elf): New target.
9432 (xtensa-*-linux*): New target.
9433 * doc/contrib.texi: Add myself.
9435 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
9437 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
9438 purpose register to hold an SImode (or smaller) value.
9440 2002-01-25 Jakub Jelinek <jakub@redhat.com>
9442 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
9444 * crtstuff.c: Likewise.
9446 2002-01-25 Kazu Hirata <kazu@hxi.com>
9448 * config/h8300/h8300.md (negation patterns): Tighten
9449 predicates to register_operand.
9451 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
9453 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
9456 * builtins.c (expand_builtin_prefetch): Same.
9458 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9460 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
9463 2002-01-24 Kazu Hirata <kazu@hxi.com>
9465 * config/h8300/h8300.c (print_operand): Remove support for
9466 operand character 'A'.
9467 * config/h8300/h8300.md (three anonymous patterns): Replace
9468 operand character 'A' with either 'T' or 'S'.
9470 2002-01-24 Kazu Hirata <kazu@hxi.com>
9472 * config/h8300/h8300.c (print_operand): Remove support for
9473 operand character 'U'.
9475 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
9477 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
9479 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
9481 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
9482 values to be assigned to the stack pointer.
9484 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
9486 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
9487 to const_double needs to be done right for big-endian systems.
9489 2002-01-24 Jason Merrill <jason@redhat.com>
9492 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
9493 to can_throw_internal.
9495 2002-01-23 Richard Henderson <rth@redhat.com>
9497 * fold-const.c (fold): Change UINT_MAX test to check vs precision
9498 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
9500 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9502 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
9503 (symGOT2reg): Use them, then set as GOT value as unchanging.
9504 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
9505 as a temporary, if possible.
9506 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
9507 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
9509 2002-01-23 Kazu Hirata <kazu@hxi.com>
9511 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
9512 accept to accept 0x80 as operands[2].
9514 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9516 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
9518 2002-01-23 Richard Henderson <rth@redhat.com>
9520 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
9522 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
9524 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
9525 (parmlist_or_identifiers_1): Verify that only a parmlist follows
9528 2002-01-23 Richard Henderson <rth@redhat.com>
9530 * expr.c (move_by_pieces_1): Extend size before negation.
9532 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
9533 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
9534 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
9535 * config/m68k/t-m68kelf: Likewise.
9537 2002-01-23 Bob Wilson <bob.wilson@acm.org>
9539 * config/xtensa/elf.h: New file.
9540 * config/xtensa/lib1funcs.asm: New file.
9541 * config/xtensa/lib2funcs.S: New file.
9542 * config/xtensa/linux.h: New file.
9543 * config/xtensa/t-xtensa: New file.
9544 * config/xtensa/xtensa-config.h: New file.
9545 * config/xtensa/xtensa-protos.h: New file.
9546 * config/xtensa/xtensa.c: New file.
9547 * config/xtensa/xtensa.h: New file.
9548 * config/xtensa/xtensa.md: New file.
9549 * config.gcc (xtensa-*-elf*): New target.
9550 (xtensa-*-linux*): New target.
9551 * cse.c (canon_hash): Compare rtx pointers instead of register
9552 numbers. This is required for the Xtensa port.
9553 * integrate.c (copy_insn_list): Handle case where the static
9554 chain is in memory and the memory address has to be copied to
9556 * doc/invoke.texi (Option Summary): Add Xtensa options.
9557 (Xtensa Options): New node.
9558 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
9560 2002-01-23 Zack Weinberg <zack@codesourcery.com>
9562 * diagnostic.c (internal_error): Do ICE suppression only
9563 when ENABLE_CHECKING is not defined.
9565 * c-typeck.c (require_complete_type): Return error_mark_node
9566 if type is error_mark_node.
9568 2002-01-23 Janis Johnson <janis187@us.ibm.com>
9570 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
9571 -Os and issue a warning.
9573 2002-01-23 Zack Weinberg <zack@codesourcery.com>
9575 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
9576 current (lack of) need for host configuration by hand.
9578 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
9579 references. Documentation of some target macros moved from
9580 hostconfig.texi to tm.texi.
9582 2002-01-23 Will Cohen <wcohen@redhat.com>
9584 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
9587 2002-01-23 Kazu Hirata <kazu@hxi.com>
9589 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
9592 2002-01-23 Jason Merrill <jason@redhat.com>
9594 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
9596 * function.c (assign_parms): Don't put args of inline functions
9597 into registers when not optimizing.
9599 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
9601 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
9602 (prologue_use): New pattern.
9603 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
9604 preference to gen_rtx_USE.
9605 (thumb_expand_prologue): Use gen_prologue_use in preference to
9607 (thumb_expand_epilogue): Use gen_prologue_use in preference to
9610 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
9612 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
9614 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
9617 * doc/extend.texi: Correct documentation of __alignof__.
9619 2002-01-22 Zack Weinberg <zack@codesourcery.com>
9621 * params.h: Rename arguments of DEFPARAM so that it will be
9622 recognized as a translation keyword.
9624 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
9626 * extend.texi: Document altivec functions.
9627 Fix N-bit adjectives in X86 builtin documentation.
9629 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
9631 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
9632 auto_inc_dec values.
9634 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
9636 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
9638 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
9640 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
9642 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
9644 2002-01-22 Richard Henderson <rth@redhat.com>
9646 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
9647 copy_insn not copy_rtx.
9649 2002-01-23 Alan Modra <amodra@bigpond.net.au>
9651 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
9652 "nonzero" as that might add "1" bits. Ensure "constop" is
9653 properly sign extened.
9654 (force_to_mode): Tweak for sign extended constop.
9656 2002-01-22 Richard Henderson <rth@redhat.com>
9658 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
9659 for_each_rtx instead of assuming we're already looking at the MEM.
9660 (split_small_symbolic_mem_operand): Likewise.
9661 * config/alpha/alpha.h (PREDICATE_CODES): Update.
9662 * config/alpha/alpha.md (small symbolic memory splitters): Update.
9664 2002-01-22 Richard Henderson <rth@redhat.com>
9666 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
9667 sequence number for the literal.
9668 (divmoddi_internal_er): Likewise.
9670 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
9673 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
9674 in LIBICONV variable.
9675 * configure: Regenerated.
9677 2002-01-22 Krister Walfridsson <cato@df.lth.se>
9679 * dependence.c (build_def_use): Remove array_idx.
9681 * dwarfout.c (last_filename): Remove.
9682 (output_compile_unit_die): Remove last_filename.
9684 2002-01-22 Roger Sayle <roger@eyesopen.com>
9685 Richard Henderson <rth@redhat.com>
9688 * fold-const.c (fold): Optimize unsigned comparisons against
9689 UINT_MAX (and similar unsigned constants).
9691 2002-01-22 Janis Johnson <janis187@us.ibm.com>
9693 * Makefile.in (loop.o): Depend on OPTABS_H.
9694 * loop.c (emit_prefetch_instructions): Check the prefetch operand
9695 against the predicate.
9698 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
9699 for the address operand.
9701 2002-01-22 Richard Henderson <rth@redhat.com>
9703 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
9705 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
9708 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
9711 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
9713 * config.gcc (x86_64-*-netbsd*): New target.
9714 * config/i386/netbsd64.h: New file.
9716 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
9718 * regrename.c (kill_value): Fix typo.
9720 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
9722 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
9724 * config/rs6000/rs6000.h: Same.
9726 * function.c (instantiate_virtual_regs): Remove
9727 STARTING_FRAME_PHASE.
9728 (assign_stack_local_1): Same.
9729 Calculate frame phase.
9731 2002-01-22 Nick Clifton <nickc@redhat.com>
9733 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
9734 variable declaration to outer scope in order to simplify
9736 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
9737 arm_hard_regno_mode_ok.
9738 * config/arm/arm-protos.h: Add a prototype for
9739 arm_hard_regno_mode_ok.
9740 * config/arm/arm.c (soft_df_operand): Remove now redundant
9741 check for DImode values using IP_REGNUM.
9742 (nonimmediate_soft_df_operand): Remove now redundant check for
9743 DImode values using IP_REGNUM.
9744 (arm_hard_regno_mode_ok): New function. New check: make sure
9745 that DImode values are not stored in IP_REGNUM.
9747 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
9749 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
9751 2002-01-22 Jason Merrill <jason@redhat.com>
9753 * c-semantics.c (genrtl_compound_stmt): Only check nesting
9754 consistency if this COMPOUND_STMT is scoped.
9756 2002-01-22 Kazu Hirata <kazu@hxi.com>
9758 * predict.c: Fix formatting.
9759 * print-tree.c: Likewise.
9760 * protoize.c: Likewise.
9763 * sbitmap.h: Likewise.
9765 * sched-deps.c: Likewise.
9766 * sched-vis.c: Likewise.
9767 * sdbout.c: Likewise.
9768 * sibcall.c: Likewise.
9770 * ssa-ccp.c: Likewise.
9771 * ssa-dce.c: Likewise.
9773 * stor-layout.c: Likewise.
9774 * system.h: Likewise.
9776 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9778 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
9779 if fits in bounds of base type.
9781 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
9782 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
9783 (add_bound_info, default): If can't find a context, make a
9785 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
9787 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
9789 * c-typeck.c (parser_build_binary_op): If result from
9790 build_binary_op is ERROR_MARK just return error_mark_node without
9793 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
9795 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
9796 Split a.out-specific bits into...
9797 * config/netbsd-aout.h: ...this.
9798 * config/netbsd-elf.h: New file.
9799 * config/alpha/netbsd-elf.h: Remove.
9800 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
9801 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
9802 (STARTFILE_SPEC): Remove redundant definition.
9803 (ENDFILE_SPEC): Likewise.
9804 (LINK_SPEC): Likewise.
9805 (CPP_SPEC): Likewise.
9806 (ASM_SPEC): Likewise.
9807 (LIB_SPEC): Likewise.
9808 (SWITCH_TAKES_ARG): Likewise.
9809 (TARGET_MEM_FUNCTIONS): Likewise.
9810 (CPP_PREDEFINES): Redefine.
9811 (ASM_FINAL_SPEC): Remove redefinition.
9812 (ASM_COMMENT_START): Redefine.
9813 (FUNCTION_PROFILER): Define.
9814 (TARGET_VERSION): Redefine.
9815 Comment and formatting cleanup.
9816 * config/i386/netbsd.h: Include <netbsd-aout.h>.
9817 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
9818 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
9819 big- or little-endian.
9820 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
9821 * config.gcc (*-*-netbsd*): Add definitions common to all
9823 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
9824 gnu_ld definitions. Add netbsd-elf.h to and remove
9825 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
9826 tmake_file, and don't lose previous tmake_file contents.
9827 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
9828 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
9829 gnu_ld definitions. Add netbsd-elf.h to tm_file.
9830 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
9831 (mipsel-*-netbsd*): Rename this to...
9832 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
9833 mips/little.h to tm_file for mips*el-*.
9834 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
9835 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
9836 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
9838 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
9840 * pa-protos.h (reg_before_reload_operand): New function prototype.
9841 * pa.c (reg_before_reload_operand): New function implementation.
9842 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
9845 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9847 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
9849 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
9851 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
9852 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
9853 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
9854 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
9855 (ENDFILE_SPEC): Undefine.
9856 (STARTFILE_SPEC): Redefine for PA.
9858 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9860 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
9862 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
9864 * config.gcc: Add entries to supported PowerPC --with-cpu
9867 2002-01-21 Jakub Jelinek <jakub@redhat.com>
9869 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
9870 true for 64-bit mode only SSE registers in 32-bit mode.
9872 2002-01-21 Kazu Hirata <kazu@hxi.com>
9874 * unwind-dw2.c: Fix formatting.
9875 * unwind-dw2-fde.c: Likewise.
9876 * unwind-dw2-fde.h: Likewise.
9877 * unwind-pe.h: Likewise.
9878 * varasm.c: Likewise.
9879 * varray.h: Likewise.
9881 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
9883 Remove workaround for register stack overwrite bug in mmix.
9884 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
9885 support for TARGET_REG_STACK_FILL_BUG.
9886 * config/mmix/mmix.h: Remove member has_call_without_parameters.
9887 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
9889 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
9890 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
9891 -mno-reg-stack-fill-bug-workaround.
9892 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
9893 machine member has_call_without_parameters.
9894 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
9895 -mreg-stack-fill-bug-workaround and
9896 -mno-reg-stack-fill-bug-workaround.
9897 (MMIX Options): Ditto.
9899 2002-01-21 Kazu Hirata <kazu@hxi.com>
9901 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
9903 Remove redundant code.
9905 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
9907 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
9908 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
9909 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
9910 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
9911 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
9912 out target macro definitions and non-target-specific comments
9913 mostly taken from old versions of the manual.
9915 2002-01-20 Kazu Hirata <kazu@hxi.com>
9917 * config/h8300/h8300.h: Fix comment formatting.
9918 * config/ia64/aix.h: Likewise.
9919 * config/ia64/ia64-protos.h: Likewise.
9920 * config/ia64/ia64.c: Likewise.
9921 * config/ia64/ia64.h: Likewise.
9922 * config/ia64/ia64intrin.h: Likewise.
9923 * config/ia64/linux.h: Likewise.
9924 * config/ia64/unwind-aix.c: Likewise.
9925 * config/ia64/unwind-ia64.c: Likewise.
9927 2002-01-20 Kazu Hirata <kazu@hxi.com>
9929 * config/h8300/h8300.c: Revise comments about shift code.
9931 2002-01-20 Kazu Hirata <kazu@hxi.com>
9933 * config/h8300/h8300.c (function_arg): Update a comment.
9935 2002-01-20 Kazu Hirata <kazu@hxi.com>
9937 * config/h8300/h8300.md: Update the comments at the beginning
9940 2002-01-20 Kazu Hirata <kazu@hxi.com>
9942 * config/i370/i370.c: Fix comment formatting.
9943 * config/i370/i370.h: Likewise.
9944 * config/i370/i370.md: Likewise.
9945 * config/i370/linux.h: Likewise.
9947 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9949 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
9951 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
9952 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
9955 2002-01-20 Graham Stott <grahams@redhat.com>
9957 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
9959 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
9961 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
9963 2002-01-19 Tom Rix <trix@redhat.com>
9965 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
9967 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
9969 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
9971 * function.c (assign_stack_local_1): Adjust x_frame_offset with
9972 STARTING_FRAME_PHASE.
9973 (STARTING_FRAME_PHASE): New.
9974 (instantiate_virtual_regs): Check saneness of
9975 STARTING_FRAME_PHASE.
9977 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
9979 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
9981 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
9983 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
9985 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
9986 be used for bootstrapping GCC 3.0.
9988 2002-01-18 Kazu Hirata <kazu@hxi.com>
9990 * config/h8300/h8300.md: Fix an insn length.
9992 2002-01-18 Kazu Hirata <kazu@hxi.com>
9994 * bitmap.h: Fix comment formatting.
9995 * combine.c: Likewise.
9996 * cppfiles.c: Likewise.
9997 * c-pragma.h: Likewise.
9998 * c-typeck.c: Likewise.
10000 * dwarf2out.c: Likewise.
10001 * function.c: Likewise.
10003 * genattrtab.c: Likewise.
10004 * gthr-win32.h: Likewise.
10005 * haifa-sched.c: Likewise.
10006 * predict.c: Likewise.
10007 * rtlanal.c: Likewise.
10009 * unwind-dw2-fde.h: Likewise.
10010 * unwind-pe.h: Likewise.
10011 * vmsdbgout.c: Likewise.
10013 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10015 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
10016 if type_required and passed decl.
10018 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
10020 * config.gcc (cpu_type): Include altivec.h in powerpc
10024 * config/rs6000/altivec.h: New.
10026 2002-01-17 David Edelsohn <edelsohn@gnu.org>
10028 * doc/install.texi (*-ibm-aix*): Update assembler and exception
10029 handling information.
10030 * doc/trouble.texi (Interoperation): Add libstdc++ information
10032 (Misunderstandings): Add template instantiation and static template
10033 member information for AIX.
10035 2002-01-17 Jason Merrill <jason@redhat.com>
10037 * dbxout.c (dbxout_type): Support const and volatile.
10039 * except.c (add_partial_entry): Remove backwards compatibility code.
10040 (end_protect_partials): Likewise.
10042 2002-01-17 Jakub Jelinek <jakub@redhat.com>
10044 * config/ia64/ia64.md (prologue_use): New.
10045 * config/ia64/ia64.c (ia64_expand_prologue): Use
10046 gen_prologue_use instead of gen_rtx_USE.
10047 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
10048 as CODE_FOR_pred_rel_mutex.
10049 (ia64_sched_reorder2): Likewise.
10051 2002-01-16 Eric Christopher <echristo@redhat.com>
10053 * config/mips/r3900.h: Reformat.
10054 (SUBTARGET_CPP_SIZE_SPEC): Remove.
10055 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
10056 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
10057 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
10058 * config/mips/t-elf: Remove mips3 multilib.
10060 2002-01-16 H.J. Lu <hjl@gnu.org>
10062 * config/mips/linux.h: Include "mips/abi64.h".
10064 2002-01-16 H.J. Lu <hjl@gnu.org>
10066 * config/mips/t-linux: New.
10068 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
10070 * config/mips/linux.h: Don't include "gofast.h".
10071 (INIT_SUBTARGET_OPTABS): Removed.
10073 2002-01-16 Kazu Hirata <kazu@hxi.com>
10075 * config/h8300/h8300-protos.h: Replace emit_a_shift with
10077 * config/h8300/h8300.c: Likewise.
10078 * config/h8300/h8300.md: Likewise.
10080 2002-01-16 Kazu Hirata <kazu@hxi.com>
10082 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
10083 spaces after an opcode name.
10084 (pushqi1_h8300hs): Likewise.
10085 (pushhi1_h8300hs): Likewise.
10087 2002-01-16 Kazu Hirata <kazu@hxi.com>
10089 * doc/extend.texi: Replace "option" with "attribute"
10092 2002-01-16 Jakub Jelinek <jakub@redhat.com>
10094 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
10095 (and:DI () (const_int -8)).
10096 (split_small_symbolic_mem_operand): Split
10097 (mem (and:DI () (const_int -8)).
10099 2002-01-16 Jakub Jelinek <jakub@redhat.com>
10102 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
10103 same way as TYPE_IMUL.
10104 (ultrasparc_sched_reorder): Likewise.
10105 * config/sparc/sparc.md (type): Add comment to update
10106 ultrasparc_sched_reorder when making changes.
10108 2002-01-16 Kazu Hirata <kazu@hxi.com>
10110 * doc/invoke.texi: Change the dump file name of block
10111 reordering pass from 28.bbro to 29.bbro.
10112 Mention -dk option.
10114 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
10116 * i386.md (minsf splitter): Fix pasto.
10118 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
10120 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
10121 to frame pointer initialisation instruction.
10122 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
10123 initialisation instruction.
10124 (soft_df_operand): Do not accept the IP register.
10125 (nonimmediate_soft_df_operand): Do not accept the IP register.
10127 2002-01-16 Jakub Jelinek <jakub@redhat.com>
10130 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
10131 MASK_V8 being both set.
10133 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
10135 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
10136 insn for GOT register; add REG_MAYBE_DEAD notes instead.
10137 config/s390/s390.md (call, call_value): Add GOT register to
10138 CALL_INSN_FUNCTION_USAGE where needed.
10139 (call_exp, call_value_exp): New.
10141 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
10143 * config/arm/arm.c: General formatting tidy up.
10145 2002-01-16 Graham Stott <grahams@redhat.com>
10147 * calls.c (try_to_integrate): Use "(size_t)" intermediate
10148 cast and when casting an integer literal to "rtx" pointer.
10149 (expand_call): Likewise.
10150 * flow.c (try_pre_increment): Likewise.
10151 (find_use_as_address): Likewise.
10152 * integrate.c (expand_iline_function): Likewise.
10153 * regmove.c (try_auto_increment): Likewise.
10155 2002-01-16 Graham Stott <grahams@redhat.com>
10157 * sched-rgn.c (passed): Use sbitmap_free.
10158 (header): Likewise.
10160 (in_queue): Likewise.
10161 (in_stack): Likewise.
10163 2002-01-15 Eric Christopher <echristo@redhat.com>
10165 * flow.c (propagate_one_insn): Change to use fatal_insn.
10167 2002-01-15 Kazu Hirata <kazu@hxi.com>
10169 * expmed.c (extract_fixed_bit_field): Remove unused code.
10170 * system.h: Poison SLOW_ZERO_EXTEND.
10171 * doc/tm.texi: Remove.
10172 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
10173 * config/arm/arm.h: Likewise.
10174 * config/avr/avr.h: Likewise.
10175 * config/clipper/clipper.h: Likewise.
10176 * config/convex/convex.h: Likewise.
10177 * config/d30v/d30v.h: Likewise.
10178 * config/dsp16xx/dsp16xx.h: Likewise.
10179 * config/elxsi/elxsi.h: Likewise.
10180 * config/fr30/fr30.h: Likewise.
10181 * config/h8300/h8300.h: Likewise.
10182 * config/i370/i370.h: Likewise.
10183 * config/i386/i386.h: Likewise.
10184 * config/m68k/m68k.h: Likewise.
10185 * config/mips/mips.h: Likewise.
10186 * config/ns32k/ns32k.h: Likewise.
10187 * config/pdp11/pdp11.h: Likewise.
10188 * config/pj/pj.h: Likewise.
10189 * config/s390/s390.h: Likewise.
10190 * config/sh/sh.h: Likewise.
10191 * config/stormy16/stormy16.h: Likewise.
10192 * config/v850/v850.h: Likewise.
10193 * config/vax/vax.h: Likewise.
10194 * config/we32k/we32k.h: Likewise.
10196 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
10198 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
10199 (altivec_lvsl): Change constraint to b.
10200 (altivec_lvsr): Same.
10201 (altivec_lvebx): Same.
10202 (altivec_lvehx): Same.
10203 (altivec_lvewx): Same.
10204 (altivec_lvxl): Same.
10205 (altivec_lvx): Same.
10206 (altivec_stvx): Add parallel.
10207 (altivec_stvxl): Same.
10208 (altivec_stvehx): Same.
10209 (altivec_stvebx): Same.
10210 (altivec_stvebx): Same.
10212 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
10214 * config.gcc: Change altivec.h to altivec-defs.h.
10216 * config/rs6000/altivec.h: Delete.
10218 * config/rs6000/altivec-defs.h: Add.
10220 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
10222 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
10225 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
10226 less than or equal to eight bytes.
10228 * vax.md (andsi3): Remove constraints and change SET destination
10229 operand type to nonimmediate_operand.
10230 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
10231 when it is a CONST_INT.
10233 2002-01-15 Jason Merrill <jason@redhat.com>
10235 * c-common.def (FILE_STMT): New code.
10236 * c-common.c (statement_code_p): It's a statement.
10237 * c-common.h (stmt_tree_s): Add x_last_filename.
10238 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
10239 (last_expr_filename): New macro.
10240 * c-semantics.c (begin_stmt_tree): Initialize it.
10241 (add_stmt): If the filename changed, also insert a
10243 (expand_stmt): Handle seeing one.
10245 2002-01-15 Eric Christopher <echristo@redhat.com>
10247 * flow.c (propagate_one_insn): Add error message and print out
10248 insn for debugging.
10250 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
10252 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
10253 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
10254 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
10255 TRAMPOLINE_ALIGNMENT.
10256 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
10258 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
10259 PCC_BITFIELD_TYPE_MATTERS.
10260 * config/interix.h (STDC_VALUE): Remove. Use
10261 STDC_0_IN_SYSTEM_HEADERS.
10262 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
10263 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
10264 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
10266 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
10268 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
10269 not work on this platform currently.
10271 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
10273 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
10274 readonly_warning in _().
10276 2002-01-15 Douglas B Rupp <rupp@gnat.com>
10278 * gcc.c (delete_if_ordinary): Backout previous change.
10280 2002-01-15 Kazu Hirata <kazu@hxi.com>
10282 * config/h8300/h8300.c (print_operand): Remove support for
10283 unused operand characters.
10285 * read-rtl.c: Fix formatting.
10286 * real.c: Likewise.
10287 * recog.c: Likewise.
10288 * regclass.c: Likewise.
10289 * regmove.c: Likewise.
10290 * reg-stack.c: Likewise.
10291 * reload1.c: Likewise.
10292 * rtlanal.c: Likewise.
10294 2002-01-15 Kazu Hirata <kazu@hxi.com>
10296 * config/i386/i386.c: Fix formatting.
10298 2002-01-15 Jakub Jelinek <jakub@redhat.com>
10300 * c-typeck.c (process_init_element): Don't save_expr
10301 COMPOUND_LITERAL_EXPR if just its initializer will be used.
10303 2002-01-15 David Edelsohn <edelsohn@gnu.org>
10305 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
10306 emit optional traceback table if optimize_size or TARGET_ELF.
10307 * config/rs6000/rs6000.md (prefetch): New.
10309 2002-01-15 Andreas Jaeger <aj@suse.de>
10311 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
10313 2002-01-15 Kazu Hirata <kazu@hxi.com>
10315 * mips-tfile.c: Fix formatting.
10317 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
10319 * unroll.c (final_reg_note_copy): Fix previous commit.
10321 2002-01-14 Kazu Hirata <kazu@hxi.com>
10323 * config/h8300/h8300-protos.h: Remove the prototype for
10325 * config/h8300/h8300.c (eq_operator): Remove.
10327 2002-01-14 Richard Henderson <rth@redhat.com>
10329 * config/i386/i386.md (prefetch): Tidy.
10330 (prefetch_3dnow): Fix locality operand.
10332 2002-01-14 Richard Henderson <rth@redhat.com>
10334 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
10335 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
10337 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
10339 * reload1.c (reload_combine): Pass reg_sum replacement through
10340 copy_rtx in loop performing multiple changes.
10342 2002-01-14 Jakub Jelinek <jakub@redhat.com>
10344 * except.c (remove_unreachable_regions): New.
10345 (free_eh_status): Clear exception_handler_labels.
10346 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
10347 (find_exception_handler_labels): Don't add the same label more than
10349 (remove_exception_handler_label): Don't die if
10350 find_exception_handler_labels hasn't been called for the current
10353 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
10355 * toplev.c (rest_of_compilation): Rebuild jump labels after
10358 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
10360 * doc/extend.texi: Move documentation of X86 built-in functions
10362 * doc/invoke.texi: From here.
10363 * doc/sourcebuild.texi: Document location of documentation for
10364 machine built-in functions.
10366 2002-01-13 Christopher Faylor <cgf@redhat.com>
10368 * cppfiles.c (TEST_THRESHOLD): New macro.
10369 (SHOULD_MMAP): Ditto.
10370 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
10373 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
10375 * unroll.c (final_reg_note_copy): Properly handle
10377 (unroll_loops): Fix LOOP_CONDITION heuristics.
10379 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
10381 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
10382 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
10384 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
10386 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
10389 2002-01-14 Tom Rix <trix@redhat.com>
10391 * config/rs6000/rs6000.md: Fix typo with sradi.
10393 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
10395 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
10396 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
10397 (clrstrdi, clrstrsi): Adapt callers.
10399 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
10401 (movti splitter): Never use register 0 as base register.
10403 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
10405 * combine.c (simplify_shift_const): Always generate new rtx
10406 for shift expression instead of reusing given expression.
10408 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10410 * config/alpha/alpha.c (alpha_expand_mov): Don't call
10411 alpha_legitimize_address unless mode is Pmode.
10413 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
10415 * doc/md.texi (Modifiers): Document the '*' constraint for the
10418 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
10419 * doc/extend.texi (Function Attributes): 'interrupt' is valid
10422 2002-01-13 Richard Henderson <rth@redhat.com>
10424 * reload.c (find_reloads): Use a hard reg destination as reload reg
10425 for an input reload of the source.
10427 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10429 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
10432 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
10434 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
10435 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
10437 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
10439 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10441 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
10443 2002-01-12 Tom Rix <trix@redhat.com>
10445 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
10448 2002-01-12 Richard Henderson <rth@redhat.com>
10450 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
10452 * doc/invoke.texi: Update Alpha options.
10454 * doc/invoke.texi: Update i386 built-in function lists.
10456 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
10458 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
10459 referencing outside.
10461 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10463 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
10464 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
10465 offsets, and change line folding.
10466 * optabs.c (expand_binop): Remove warnings.
10467 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
10469 2002-01-12 Graham Stott <grahams@redhat.com>
10471 * attribs.c (handle_deprecated_attribute): constify WHAT.
10472 * diagnostic.c (warn_deprecated_use): Add braces, fixes
10473 dangling else warning and constify WHAT.
10474 * except.h (struct function, struct inline_remap): Move
10475 struct tag forward defs before all prototypes.
10476 (duplicate_eh_regions): Whitespace.
10478 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
10480 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
10481 MODE_BASE_REG_CLASS.
10482 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
10484 2002-01-12 Richard Henderson <rth@redhat.com>
10486 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
10487 (ix86_expand_vector_move): New.
10488 (bdesc_2arg): Remove andps, andnps, orps, xorps.
10489 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
10490 Remove old prefetch builtins. Special case the logicals removed above.
10491 (ix86_expand_builtin): Likewise.
10492 (safe_vector_operand): Use V4SFmode, not TImode.
10493 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
10494 (ix86_expand_timode_binop_builtin): New.
10495 * config/i386/i386-protos.h: Update.
10496 * config/i386/i386.h (enum ix86_builtins): Update.
10497 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
10498 Use ix86_expand_vector_move in vector move expanders.
10499 (movti_internal, movti_rex64): Add xorps alternative.
10500 (sse_clrv4sf): Rename and adjust from sse_clrti.
10501 (prefetch): Don't work so hard.
10502 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
10503 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
10504 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
10506 2002-01-11 Richard Henderson <rth@redhat.com>
10508 * config/i386/mmintrin.h: New file.
10509 * config/i386/xmmintrin.h: New file.
10510 * config.gcc (i?86-*-*): Add extra_headers.
10511 * simplify-rtx.c (simplify_unary_operation): Handle saturating
10513 (simplify_binary_operation): Handle saturating arithmetic codes.
10514 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
10515 not the lowpart subreg.
10516 (ix86_expand_builtin): Return a TImode dummy register instead of 0
10518 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
10520 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10522 * conflict.c (conflict_graph_compute): Free regsets when finished.
10523 * ssa.c (compute_coalesced_reg_partition): Likewise.
10525 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10527 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
10528 every where we allocate a register.
10530 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10532 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
10533 * lcm.c (compute_earliest, compute_farthest): Likewise.
10535 2002-01-11 Janis Johnson <janis187@us.ibm.com>
10537 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
10539 2002-01-11 Janis Johnson <janis187@us.ibm.com>
10541 * doc/rtl.texi (Insns): Fix 2 typos.
10543 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
10545 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
10546 options. Use @table @gcctabopt for MMIX options. Add index
10547 entries for MMIX options. Start new paragraph with first
10548 heading of the machine-dependent options.
10550 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
10553 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
10554 * combine.c (force_to_mode): Same.
10555 * reload1.c (clear_reload_reg_in_use): Same.
10557 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
10559 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
10562 2002-01-11 Andreas Jaeger <aj@suse.de>,
10563 Brad Lucier <lucier@math.purdue.edu>
10565 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
10568 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
10570 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
10571 Protect with IN_LIBGCC.
10572 (LINK_EH_SPEC): Add required trailing space.
10574 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
10576 * c-tree.h: Move function declarations so that they are listed
10577 under the filename which contains them.
10578 (check_identifier, finish_decl_top_level,
10579 lookup_name_current_level_global, shadow_record_fields): Remove.
10581 2002-01-11 Andreas Jaeger <aj@suse.de>
10583 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
10586 2002-01-10 Richard Henderson <rth@redhat.com>
10588 * config/alpha/alpha.c (print_operand): Add 'J'.
10589 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
10590 new operand with the sequence number for the lituse. When splitting
10591 the insns, use gen_movdi_er_high_g and generate a sequence number.
10592 (gen_movdi_er_high_g): Print the sequence number if non-zero.
10594 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
10596 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
10597 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
10599 (altivec_expand_builtin): Same.
10600 (altivec_expand_stv_builtin): New.
10602 * config/rs6000/rs6000.h (rs6000_builtins): Same.
10604 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
10605 ("altivec_lvehx"): New.
10606 ("altivec_lvewx"): New.
10607 ("altivec_lvxl"): New.
10608 ("altivec_lvx"): New.
10609 ("altivec_stvx"): New.
10610 ("altivec_stvebx"): New.
10611 ("altivec_stvehx"): New.
10612 ("altivec_stvewx"): New.
10613 ("altivec_stvxl"): New.
10615 2002-01-10 Richard Henderson <rth@redhat.com>
10617 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
10618 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
10619 care not to delete instructions twice.
10621 2002-01-10 Zack Weinberg <zack@codesourcery.com>
10623 * toplev.c: Don't declare environ (it's not used anywhere).
10624 * configure.in: Don't check for declaration of environ.
10625 * config/i386/xm-mingw32.h: Don't #define environ.
10626 * config.in, configure: Regenerate.
10628 2002-01-10 Zack Weinberg <zack@codesourcery.com>
10630 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
10631 * configure: Regenerate.
10633 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
10634 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
10635 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
10637 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
10638 LIMITS_H_TEST here, not in m68k/x-next.
10639 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
10640 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
10642 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
10643 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
10644 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
10646 * config/i386/x-djgpp: Renamed i386/t-djgpp.
10647 * config/m88k/x-dolph: Renamed m88k/t-dolph.
10648 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
10649 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
10650 replacement of quadlib.asm with quadlib.c.
10652 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
10653 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
10654 config/rs6000/xm-beos.h: Delete file.
10656 * config.gcc: Update to match above changes.
10658 2002-01-10 Kazu Hirata <kazu@hxi.com>
10660 * config/h8300/h8300.h: Fix comment typos.
10661 * config/h8300/h8300.md: Likewise.
10662 * config/h8300/lib1funcs.asm: Likewise.
10664 2002-01-10 Dale Johannesen <dalej@apple.com>
10666 PR optimization/5269
10667 * unroll.c (precondition_loop_p): Make *increment be the correct
10668 sign when n_iterations known, to avoid confusing caller.
10670 2002-01-10 Kazu Hirata <kazu@hxi.com>
10672 * doc/extend.texi (deprecated): Fix a typo.
10674 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
10676 * basic-block.h (update_br_prob_note): Declare.
10677 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
10678 (try_forward_edges): Care negative frequencies and update note.
10679 (outgoing_edges_match): Tweek conditional merging heuristics.
10680 (try_crossjump_to_edge): use update_br_prob_note.
10681 * cfglayout.c (fixup_reorder_chain): Likewise.
10682 * cfrtl.c (update_br_prob_note): New.
10683 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
10685 * i386.c (ix86_decompose_address): Return -1 if address contains
10687 (legitimate_address_p): Require ix86_decompose_address to return 1.
10689 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
10690 (cprop_insn): Likewise.
10692 2002-01-10 Kazu Hirata <kazu@hxi.com>
10694 * toplev.c: Fix formatting.
10695 * tree.c: Likewise.
10696 * tree-dump.c: Likewise.
10697 * unroll.c: Likewise.
10698 * unwind-dw2.c: Likewise.
10699 * unwind-dw2-fde.c: Likewise.
10700 * unwind-dw2-fde-glibc.c: Likewise.
10701 * unwind-sjlj.c: Likewise.
10703 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
10705 * doc/invoke.texi: Document PDP-11 options.
10707 2002-01-10 Kazu Hirata <kazu@hxi.com>
10709 * config/h8300/h8300.h: Fix formatting.
10711 2002-01-10 Ira Ruben <ira@apple.com>
10713 Add __attribute__ ((deprecated)).
10714 * extend.texi: Document __attribute__ ((deprecated)).
10715 * invoke.texi: Document -Wno-deprecated-declarations.
10716 * testsuite/g++.dg/other/deprecated.C: New C++ test.
10717 * testsuite/gcc.dg/deprecated.c: New C test.
10718 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
10719 (c_common_attribute_table): Add "deprecated" entry.
10720 (handle_deprecated_attribute): New function.
10721 * c-decl.c (deprecated_states): New enum.
10722 deprecated_state: State of "deprecated" handling.
10723 (start_decl): Set deprecated_state based on attributes.
10724 (grokdeclarator): Test for deprecated uses, propagate attribute.
10725 * c-typeck.c (build_component_ref): Test for deprecated fields.
10726 (build_external_ref): Test for deprecated primaries.
10727 * diagnostic.c (warn_deprecated_use) New function to issue
10728 warnings about __attribute__ ((depricated)) references.
10729 * flags.h (warn_deprecated_decl): Extern declared for
10730 -W[no-]deprecated-declarations option.
10731 * print-tree.c (print_node): Show deprecated flag status.
10732 * toplev.c (warn_deprecated_decl): Defined.
10733 (W_options): Added "deprecated-declaration".
10734 * toplev.h (warn_deprecated_use): Extern declared.
10735 * tree.h (struct tree_common): Define deprecated_flag.
10736 (TREE_DEPRECATED): New macro to access flag.
10737 * cp/call.c (build_call): Test for deprecated calls.
10738 * cp/class.c (add_implicitly_declared_members): Set global
10739 flag to tell grokdeclarator to not issue deprecated warnings.
10740 * cp/cp-tree.h: Add extern for adding_implicit_members.
10741 * cp/decl.c (deprecated_states): New enum.
10742 (start_decl): Set deprecated_state based on attributes.
10743 (grokdeclarator): Test for deprecated uses, propagate attribute.
10744 * cp/lex.c (do_identifier): Test for deprecated primaries.
10745 * cp/typeck.c (build_component_ref): Test for deprecated fields.
10747 2002-01-10 Ira Ruben <ira@apple.com>
10749 Fix to assign attributes to inline member functions.
10750 * cp/decl.c (start_method): Handle attrlist.
10752 2002-01-10 Kazu Hirata <kazu@hxi.com>
10754 * combine.c (expand_field_assignment): Use subreg_lsb().
10756 2002-01-10 David Edelsohn <edelsohn@gnu.org>
10758 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
10759 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
10760 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
10761 Recurse for any operand of AND as long as constant is non-zero.
10763 2002-01-10 Kazu Hirata <kazu@hxi.com>
10765 * config/h8300/h8300.md: Remove constraints from expanders.
10767 2002-01-10 Kazu Hirata <kazu@hxi.com>
10769 * varasm.c: Fix formatting.
10770 * varray.c: Likewise.
10771 * vmsdbgout.c: Likewise.
10772 * xcoffout.c: Likewise.
10774 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
10776 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
10777 update edge probabilities to match.
10779 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
10781 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
10783 * doc/languages.texi, doc/sourcebuild.texi: New files.
10784 * doc/configfiles.texi: Make a subsubsection. Update.
10785 * doc/configterms.texi: Add @node. Remove warning that this isn't
10786 instructions for building GCC.
10787 * doc/makefile.texi: Make a subsection.
10788 * doc/gccint.texi: Update.
10790 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
10792 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
10794 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
10796 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
10798 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
10800 * optabs.c (expand_fix): Look for wider integer modes first.
10802 * i386.md (mov?f): Avoid the fake const double trick for medium
10804 (min?f*/max?f*): Prohibit memory operands for i387 variant.
10805 (fop_df_4): Disable for SSE compilation.
10807 2002-01-10 Graham Stott <grahams@redhat.com>
10809 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
10810 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
10812 2002-01-10 Richard Henderson <rth@redhat.com>
10814 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
10816 2002-01-10 Richard Henderson <rth@redhat.com>
10818 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
10819 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
10821 2002-01-10 Kazu Hirata <kazu@hxi.com>
10823 * combine.c (can_combine_p): Fix a comment typo.
10825 2002-01-09 Zack Weinberg <zack@codesourcery.com>
10827 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
10828 empty list correctly. Change loop index $t to $f for
10829 consistency with rest of Makefile.
10831 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
10833 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
10834 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
10836 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
10837 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
10838 (altivec_init_builtins): Same.
10839 (altivec_expand_unop_builtin): Return NULL_RTX on error.
10840 (altivec_expand_binop_builtin): Same.
10841 (altivec_expand_ternop_builtin): Same.
10844 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
10845 ("altivec_vctuxs"): Fix typo.
10846 ("altivec_vnmsubfp"): Same.
10847 ("altivec_dssall"): New.
10848 ("altivec_mfvscr"): New.
10849 ("altivec_dss"): New.
10850 ("altivec_lvsl"): New.
10851 ("altivec_lvsr"): New.
10852 ("altivec_dstt"): New.
10853 ("altivec_dstst"): New.
10854 ("altivec_dststt"): New.
10855 ("altivec_dst"): New.
10857 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
10858 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
10860 2002-01-09 Richard Henderson <rth@redhat.com>
10862 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
10864 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
10866 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
10868 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
10870 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
10872 2002-01-09 Kazu Hirata <kazu@hxi.com>
10874 * read-rtl.c: Fix formatting.
10875 * real.c: Likewise.
10876 * regclass.c: Likewise.
10877 * regrename.c: Likewise.
10878 * reg-stack.c: Likewise.
10879 * reload1.c: Likewise.
10880 * reload.c: Likewise.
10883 2002-01-09 Kazu Hirata <kazu@hxi.com>
10885 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
10886 to extract items in the expr_list chain.
10888 2002-01-09 Richard Henderson <rth@redhat.com>
10890 * config/vax/vax.c (vax_rtx_cost): Never abort.
10892 * config/vax/vax.h (REAL_ARITHMETIC): Define.
10894 2002-01-09 Jan Hubicka <jh@suse.cz>
10896 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
10898 2002-01-09 Richard Henderson <rth@redhat.com>
10900 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
10901 Unify code from various alternatives.
10903 2002-01-09 Richard Henderson <rth@redhat.com>
10905 * regrename.c (copy_value): Ignore the copy if the source register
10906 is present in the value chain with a narrower mode.
10908 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10910 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
10911 for the c4x target. Also improve layout.
10913 2002-01-09 Richard Henderson <rth@redhat.com>
10915 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
10916 * config/m32r/m32r.md (and ior xor splitters): Swap operands
10917 to match insn patterns.
10919 2002-01-09 Richard Henderson <rth@redhat.com>
10921 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
10922 (copyprop_hardreg_forward_1): Likewise.
10924 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
10926 * pa.md (decrement_and_branch_until_zero): Change predicate for
10927 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
10929 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
10931 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
10932 gets undefined. For Darwin.
10934 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10936 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
10938 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
10940 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
10942 2002-01-08 Richard Henderson <rth@redhat.com>
10944 * regrename.c (copy_value): Ignore overlapping copies.
10946 2002-01-08 Richard Henderson <rth@redhat.com>
10948 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
10949 as needed to avoid shared structure.
10951 2002-01-08 Kazu Hirata <kazu@hxi.com>
10953 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
10956 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
10958 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
10959 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
10960 documentation of obsolete macros.
10961 * system.h: Poison these macros.
10962 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
10963 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
10964 config/c4x/c4x.h, config/clipper/clipper.h,
10965 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
10966 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
10967 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
10968 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
10969 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
10970 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
10971 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10972 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
10973 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
10974 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10975 config/sparc/sparc.h, config/stormy16/stormy16.h,
10976 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
10977 definitions and commented out definitions of obsolete macros.
10978 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
10979 of MAX_INT_TYPE_SIZE.
10981 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10983 * config/s390/s390.c (s390_preferred_reload_class): Never
10984 return ADDR_REGS if it isn't a subset of the given class.
10985 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
10986 FP_REGS, but all superclasses as well.
10988 * config/s390/s390.c (s390_function_profiler): Fix thinko.
10990 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
10991 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
10992 must not be a const_int.
10994 2002-01-08 Richard Henderson <rth@redhat.com>
10996 * Makefile.in (toplev.o): Depend on options.h.
10997 (gcc.o): Depend on specs.h.
10999 2002-01-08 Jakub Jelinek <jakub@redhat.com>
11001 * expr.c (store_expr): Convert VOIDmode constants back to target's
11004 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11006 * doc/invoke.texi: Markup gcc as @command. Refer to
11007 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
11008 of http://gcc.gnu.org/thanks.html.
11010 2002-01-08 Dale Johannesen <dalej@apple.com>
11012 * config/rs6000/rs6000.md: Add missing int register
11013 target case to movdf_low.
11015 2002-01-08 Zack Weinberg <zack@codesourcery.com>
11017 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
11018 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
11019 (cppinit.o): Depend on except.h.
11020 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
11021 s-specs): New rules.
11023 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
11024 Don't create specs.h/options.h/gencheck.h here. Remove
11025 unnecessary variable settings from last argument of AC_OUTPUT.
11026 * config.in, configure: Regenerate.
11027 * intl.c: Hardcode package name as "gcc".
11029 * cppinit.c: Include except.h.
11030 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
11032 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
11033 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
11034 (!)USING_SJLJ_EXCEPTIONS.
11035 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
11037 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
11039 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
11040 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
11041 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
11042 documentation of obsolete macros.
11043 * system.h: Poison these macros.
11044 * config/d30v/d30v.h, config/ns32k/encore.h,
11045 config/stormy16/stormy16.h: Remove definitions and commented out
11046 definitions of obsolete macros.
11048 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
11050 * objc/objc-act.c (handle_class_ref): Mark the declaration of
11051 %sobjc_class_ref_%s as used - to prevent unwanted compiler
11054 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
11056 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
11057 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
11058 to insn adjusting stack/frame pointer.
11059 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
11060 accept operands that cause the insn to be non-splittable.
11062 2002-01-08 Graham Stott <grahams@redhat.com>
11064 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
11065 (C_TYPE_FIELDS_VOLATILE): Likewise.
11066 (C_TYPE_BEING_DEFINED): Likewise.
11067 (C_IS_RESERVED_WORD): Likewise.
11068 (C_TYPE_VARIABLE_SIZE): Likewise.
11069 (C_DECL_VARIABLE_SIZE): Likewise.
11070 (C_MISSING_PROTOTYPE_WARNED): Likewise.
11071 (C_SET_EXP_ORIGINAL_CODE): Likewise.
11072 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
11074 (C_DECL_ANTICIPATED): Likewise.
11075 (c_build_type_variant): Add parenthesis.
11077 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
11079 * gcc.c (option_map): Remove --version.
11080 (process_command): Handle -fversion following the GNU Coding
11081 Standards. Partially addresses PR other/704.
11083 2002-01-08 Graham Stott <grahams@redhat.com>
11085 * combine.c (combine_instructions): Fix typo.
11087 2002-01-08 Graham Stott <grahams@redhat.com>
11089 * debug.h: Use "tree" and "rtx" throughout.
11091 * debug.c: Likewise.
11093 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
11095 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
11096 constant pool, use the pool's version of the symbol instead.
11098 2002-01-07 Richard Henderson <rth@redhat.com>
11100 * regrename.c (find_oldest_value_reg): Ignore the value chain if
11101 the original register was copied in a mode with a fewer number of
11102 hard registers than the desired mode.
11103 (copyprop_hardreg_forward_1): Likewise.
11104 (debug_value_data): Fix loop test.
11105 * toplev.c (parse_options_and_default_flags): Reenable
11106 -fcprop-registers at -O1.
11108 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
11110 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
11111 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
11113 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
11116 * config/rs6000/rs6000.md: Add altivec predicate patterns.
11118 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
11120 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
11121 (pa_output_function_prologue): Output local label at the beginning of
11122 the prologue when profiling.
11123 (hppa_profile_hook): Use the local label rather than the function label.
11124 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
11126 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
11128 * config/rs6000/rs6000.c (print_operand): Remove extra space.
11129 (altivec_expand_unop_builtin): Fix thinko.
11130 (altivec_expand_binop_builtin): Same.
11131 (altivec_expand_ternop_builtin): Same.
11132 (altivec_expand_builtin): Same.
11134 2002-01-07 Richard Henderson <rth@redhat.com>
11136 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
11138 2002-01-07 Jason Merrill <jason@redhat.com>
11140 * unwind-dw2.c (execute_cfa_program): Use < again.
11142 2002-01-07 Jakub Jelinek <jakub@redhat.com>
11144 * predict.c (combine_predictions_for_insn): Avoid division by zero.
11146 2002-01-07 Jakub Jelinek <jakub@redhat.com>
11148 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
11149 Don't allow -1 - x -> ~x simplifications in the first pass.
11151 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
11153 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
11155 (altivec_expand_binop_builtin): Same.
11156 (altivec_expand_unop_builtin): Same.
11157 (print_operand): Fix typo.
11158 (bdesc_1arg): Add vupk* variants.
11160 * rs6000.h (rs6000_builtins): Add vupk* enums.
11162 * rs6000.md: Add altivec_vupk* variants.
11164 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
11166 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
11167 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
11168 and last update dates.
11170 2002-01-07 Janis Johnson <janis187@us.ibm.com>
11172 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
11174 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
11176 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
11177 * config/avr/avr.h (CPP_SPEC): Likewise.
11178 (LINK_SPEC): Likewise.
11179 (CRT_BINUTILS_SPECS): Likewise.
11180 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
11181 * doc/invoke.texi (AVR Options): Document them.
11183 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
11185 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
11188 2002-01-07 Graham Stott <grahams@redhat.com>
11190 * config/i386/i386.h: Update copyright date.
11191 (HALF_PIC_PTR): Add parenthesis.
11192 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
11193 (CONSTANT_ALIGNMENT): Add parenthesis.
11194 (DATA_ALIGNMENT): Likewise.
11195 (LOCAL_ALIGNMENT): Likewise.
11196 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
11197 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
11198 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
11199 (HARD_REGNO_NREGS): Add paranethesis.
11200 (VALID_SSE_REG_MODE): Whitespace.
11201 (VALID_MMX_REG_MODE): Whitespace.
11202 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
11203 (ix86_hard_regno_mode_ok): Add parenthesis.
11204 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
11205 (RETURN_IN_MEMORY): Whitespace.
11206 (N_REG_CLASSES): Add parenthesis.
11207 (INTEGER_CLASS_P): Add parenthesis and wrap.
11208 (FLOAT_CLASS_P): Likewise.
11209 (SSE_CLASS_P): Likewise.
11210 (MMX_CLASS_P): Likewise.
11211 (MAYBE_INTEGER_CLASS_P): Likewise.
11212 (MAYBE_FLOAT_CLASS_P): Likewise.
11213 (MAYBE_SSE_CLASS_P): Likewise.
11214 (MAYBE_MMX_CLASS_P): Likewise.
11215 (Q_CLASS_P): Likewise.
11216 (GENERAL_REGNO_P): Uppercase macro parameter.
11217 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
11218 (FP_REGNO_P): Likewise.
11219 (ANY_FP_REGNO_P): Uppercase macro parameter.
11220 (SSE_REGNO_P): Likewise.
11221 (SSE_REGNO): Likewise.
11222 (SSE_REG_P): Likewise.
11223 (SSE_FLOAT_MODE_P): Likewise.
11224 (MMX_REGNO_P): Likewise.
11225 (MMX_REG_P):Likewise.
11226 (STACK_REG_P): Likewise.
11227 (NON_STACK_REG_P): Likewise.
11228 (STACK_TOP_P): Likewise.
11229 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
11230 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
11231 (SECONDARY_MEMORY_NEEDED): Likewise.
11232 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
11233 (MD_ASM_CLOBBERS): Whitespace and wrap.
11234 (MUST_PASS_IN_STACK): Whitespace and wrap.
11235 (RETURN_POPS_ARGS): Add parenthesis.
11236 (INIT_CUMULATIVE_ARGS): Likewise.
11237 (FUNCTION_ARG): Likewise.
11238 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
11239 (SETUP_INCOMING_VARARGS): Likewise.
11240 (BUILD_VA_LIST_TYPE): Add parenthesis.
11241 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
11243 (EXPAND_BUILTIN_VA_ARG): Likewise.
11244 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
11245 (INITIALIZE_TRAMPOLINE): Add parenthesis.
11246 (INITIAL_ELIMINATION_OFFSET): Likewise.
11247 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
11248 (REGNO_OK_FOR_BASE_P): Likewise.
11249 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
11250 (REGNO_OK_FOR_DIREG_P): Likewise.
11251 (REG_OK_FOR_INDEX_P): Whitespace.
11252 (REG_OK_FOR_BASE_P): Whitespace.
11253 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
11255 (FIND_BASE_TERM): Fix typo.
11256 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
11257 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
11258 (SYMBOLIC_CONST; Whitespace.
11259 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
11260 (ENCODE_SECTION_INFO): Whitespace.
11261 (FINALIZE_PIC): Remove do { ... } while (0).
11262 (PROMOTE_MODE): Wrap in do { ... } while (0).
11263 (CONST_COSTS): Whitespace.
11264 (RTX_COSTS): Add paramethesis, whitespace and wrap.
11265 (REGISTER_MOVE_COST): Add parenthesis.
11266 (MEMORY_MOVE_COST): Likewise.
11267 (EXTRA_CC_MODES): Whitespace.
11268 (SELECT_CC_MODE): Add parenthesis and whitespace.
11269 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
11270 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
11271 (ASM_OUTPUT_LABEL): Add paramethesis.
11272 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
11273 (ASM_OUTPUT_REG_POP): Likewise.
11274 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
11275 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11277 * config/i386/i386.c: Update copyright.
11278 (CHECK_STACK_LIMIT): Add parenthesis.
11279 (AT_BP): Uppercase macro parameter.
11280 (x86_64_int_parameter_registers): Constify.
11281 (x86_64_int_return_registers): Likewise.
11282 (ix86_compare_op0): Use rtx.
11283 (construct_container): Constify INTREG parameter.
11284 (function_arg): Use rtx.
11286 * diagnostic.h: Update copyright date.
11287 (output_buffer_state): Add parenthesis.
11288 (output_buffer_format_args): Likewise.
11290 * combine.c (combine_instructions): Replace XEXP (links, 0)
11293 2002-01-06 H.J. Lu <hjl@gnu.org>
11295 * cfgcleanup.c (thread_jump): Fix 2 typos.
11297 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
11299 * config.gcc: Add support for --enable-altivec.
11301 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
11303 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
11305 2002-01-06 Jakub Jelinek <jakub@redhat.com>
11307 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
11308 __objc_class_name_*.
11310 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
11312 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
11314 2002-01-06 Richard Henderson <rth@redhat.com>
11316 * reorg.c (emit_delay_sequence): Remove death notes, not merely
11317 nop them out. Increment label reference count for REG_LABEL.
11318 (fill_slots_from_thread): Frob label reference count around
11319 delete_related_insns.
11321 2002-01-05 Richard Henderson <rth@redhat.com>
11323 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
11326 2002-01-05 Richard Henderson <rth@redhat.com>
11328 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
11329 * integrate.c (output_inline_function): Likewise.
11330 * toplev.c (rest_of_compilation): Do it here instead. Move call
11331 to remove_unnecessary_notes after emitting abstract instance.
11332 Force an emitted nested function to have its parent emited as well.
11333 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
11335 (rtl_for_decl_location): Do not look at reload data structures
11336 before reload has run.
11338 2002-01-05 Kazu Hirata <kazu@hxi.com>
11340 * cse.c: Fix formatting.
11341 * dwarf2asm.c: Likewise.
11342 * dwarf2out.c: Likewise.
11343 * explow.c: Likewise.
11344 * expmed.c: Likewise.
11345 * function.c: Likewise.
11346 * gcov.c: Likewise.
11347 * gencheck.c: Likewise.
11348 * genrecog.c: Likewise.
11349 * ggc-common.c: Likewise.
11350 * ggc-page.c: Likewise.
11351 * global.c: Likewise.
11353 2002-01-05 Kazu Hirata <kazu@hxi.com>
11355 * combine.c: Fix formatting.
11357 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
11360 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
11362 2002-01-05 David Edelsohn <edelsohn@gnu.org>
11364 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
11365 as 1 for __powerpc64__ as well.
11367 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
11369 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
11372 2002-01-05 Daniel Berlin <dan@dberlin.org>
11374 * lcm.c: Revert change, due to performance regression it causes on
11375 SPEC because it's slightly more conservative (sigh, I hate
11378 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
11380 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
11382 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
11384 * doc/cppinternals.texi: Update.
11386 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
11388 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
11389 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
11391 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
11392 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
11393 kludge for pre-october-14th mmix versions to handle new-found bug
11394 with PUSHJ/PUSHGO and the register stack.
11395 * config/mmix/mmix.h (struct machine_function): Rename member
11396 has_call_value_without_parameters to has_call_without_parameters.
11397 All referers changed.
11398 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
11399 TARGET_MASK_BRANCH_PREDICT): New macros.
11400 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
11401 -mno-reg-stack-fill-bug-workaround.
11402 * config/mmix/mmix.md ("call"): Set struct machine member
11403 has_call_without_parameters.
11405 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
11407 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
11409 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
11411 * cfgcleanup.c: Include tm_p.h
11412 (mark_effect): Fix handling of hard register; fix handling of SET
11414 2002-01-04 Kazu Hirata <kazu@hxi.com>
11416 * config/h8300/h8300.md (anonymous patterns): Check that
11417 operands are registers before using REGNO on them.
11419 2002-01-03 Roland McGrath <roland@frob.com>
11421 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
11423 2002-01-04 Jakub Jelinek <jakub@redhat.com>
11425 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
11426 * c-common.h (genrtl_expr_stmt_value): Likewise.
11427 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
11428 (expand_expr_stmt_value): Add maybe_last argument.
11429 Don't warn about statement with no effect if it is the last statement
11430 in expression statement.
11431 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
11432 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
11433 expand_expr_stmt_value.
11434 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
11435 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
11436 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
11437 as maybe_last to expand_expr_stmt_value.
11439 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
11441 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
11442 be passed in, do not build it.
11443 (c_begin_if_stmt): New function.
11444 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
11445 * c-common.h (c_expand_start_cond): Update prototype.
11446 (c_begin_if_stmt): Prototype new function.
11447 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
11448 * c-parse.in (if_prefix): Use c_begin_if_stmt,
11449 c_begin_while_stmt and c_finish_while_stmt_cond.
11451 2002-01-04 William Cohen <wcohen@redhat.com>
11453 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
11454 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
11455 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
11456 * config/pa/som.h (ASM_FILE_START): Likewise.
11458 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
11460 * lcm.c: Include df.h.
11461 Add available_transfer_function prototype.
11462 (compute_available): Rework to use iterative dataflow framework.
11463 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
11464 with bb_info in df.h
11465 (available_transfer_function): New function.
11467 * Makefile.in (lcm.o): add df.h to dependencies.
11469 2002-01-04 Richard Henderson <rth@redhat.com>
11471 * config/alpha/alpha.c (some_operand): Accept HIGH.
11472 (input_operand): Likewise; accept simple references to globals.
11473 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
11474 (alpha_const_double_ok_for_letter_p): Likewise.
11475 (alpha_extra_constraint): Likewise.
11476 (alpha_preferred_reload_class): Likewise. Do not force
11477 symbolic constants to memory.
11478 (alpha_legitimate_address_p): Accept simple references
11479 to small_symbolic_operand.
11480 (alpha_legitimize_address): New arg scratch. Be prepared to be
11481 called when no_new_pseudos. Emit simple symbolic references.
11482 Split integers into low, high, and rest.
11483 (alpha_expand_mov): Use alpha_legitimize_address.
11484 (some_small_symbolic_mem_operand): New.
11485 (split_small_symbolic_mem_operand): New.
11486 * config/alpha/alpha-protos.h: Update.
11487 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
11488 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
11489 (EXTRA_CONSTRAINT): Likewise.
11490 (PREFERRED_RELOAD_CLASS): Likewise.
11491 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
11492 (PREDICATE_CODES): Update.
11493 * config/alpha/alpha.md: New post-reload splitters to convert
11494 simplfied symbolic operands to the form that references $29.
11495 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
11496 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
11498 2002-01-03 Richard Henderson <rth@redhat.com>
11500 * local-alloc.c (function_invariant_p): Update commentary.
11502 2002-01-04 H.J. Lu <hjl@gnu.org>
11504 * toplev.c (rest_of_compilation): Fix a typo when calling
11507 2002-01-03 Kazu Hirata <kazu@hxi.com>
11509 * c-common.c: Fix formatting.
11510 * diagnostic.c: Likewise.
11511 * doloop.c: Likewise.
11512 * dwarf2out.c: Likewise.
11514 2002-01-03 Kazu Hirata <kazu@hxi.com>
11516 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
11517 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
11519 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
11521 * cpperror.c: Update comments and copyright.
11522 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
11523 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
11525 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
11527 * collect2.c (main): Use strcmp when testing for "-shared".
11529 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
11531 * cppmacro.c: Don't include intl.h. Update comments.
11532 (new_number_token): Allocate enough buffer for 64-bit unsigned
11533 integers; update prototype.
11534 * cppmain.c: Update comments.
11536 2002-01-03 William Cohen <wcohen@redhat.com>
11538 * function.h (struct function): Add profile.
11539 (current_function_profile): New.
11540 doc/extend.texi: Update documentation.
11541 * final.c (final_start_function): Use current_function_profile
11542 instead of profile_flag.
11543 (profile_after_prologue): Likewise.
11544 * function.c (expand_function_start): Likewise.
11545 (expand_function_start): Likewise.
11546 * config/alpha/alpha.c (direct_call_operand):
11547 (alpha_does_function_need_gp): Likewise.
11548 (alpha_expand_prologue): Likewise.
11549 * config/arm/arm.c (arm_expand_prologue): Likewise.
11550 thumb_expand_prologue: Likewise.
11551 * config/d30v/d30v.c (d30v_stack_info): Likewise.
11552 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
11553 (fr30_expand_prologue): Likewise.
11554 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
11555 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
11556 * config/i386/i386.h (FINALIZE_PIC): Likewise.
11557 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
11558 * config/i960/i960.c (i960_output_function_prologue): Likewise.
11559 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
11560 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
11561 (m32r_expand_prologue): Likewise.
11562 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
11563 (m88k_expand_prologue): Likewise.
11564 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
11565 * config/mips/mips.c (compute_frame_size): Likewise.
11566 (mips_expand_prologue): Likewise.
11567 (mips_can_use_return_insn): Likewise.
11568 * config/pa/elf.h (ASM_FILE_START): Likewise.
11569 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
11570 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
11571 * config/pa/som.h (ASM_FILE_START): Likewise.
11572 * config/romp/romp.c (romp_using_r14): Likewise.
11573 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
11574 (rs6000_stack_info): Likewise.
11575 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11576 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
11577 * config/v850/v850.c (compute_register_save_size): Likewise.
11579 2002-01-03 Jakub Jelinek <jakub@redhat.com>
11581 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
11582 gen_lowpart_common fails, use gen_lowpart_SUBREG.
11584 2002-01-03 Turly O'Connor <turly@apple.com>
11586 * darwin.c (machopic_output_possible_stub_label): Don't generate
11587 stub routines for pseudo-stubs which we've just defined.
11589 2002-01-03 Kazu Hirata <kazu@hxi.com>
11591 * builtins.c: Fix formatting.
11592 * c-typeck.c: Likewise.
11593 * combine.c: Likewise.
11594 * expr.c: Likewise.
11595 * loop.c: Likewise.
11597 2002-01-03 Andreas Schwab <schwab@suse.de>
11599 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
11600 and return true if _cpp_push_next_buffer pushed a new include
11602 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
11603 _cpp_pop_file_buffer did not push a new file.
11604 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
11606 2002-01-02 Eric Christopher <echristo@redhat.com>
11608 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
11609 FIND_REG_INC_NOTE call. Update copyright.
11610 * loop.c (canonicalize_condition): Ditto.
11611 * reorg.c (delete_scheduled_jump): Ditto.
11613 2002-01-03 Kazu Hirata <kazu@hxi.com>
11615 * gcse.c: Fix formatting.
11617 2002-01-03 Graham Stott <grahams@redhat.com>
11619 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
11620 forward defs for struct tags rtx_def, union_tree, rtvec_def
11621 also output corresponding typedefs for rtx, tree, and rtvec.
11623 * system.h: Move forward defs for struct tags rtx_def, union_tree,
11624 rtvec_def along with corresponding typedefs for rtx, tree, and
11625 rtvec to config.h, hconfig.h, tconfig.h.
11627 2002-01-03 Graham Stott <grahams@redhat.com>
11629 * tree.h: Update copyright date.
11630 (IS_EXPR_CODE_CLASS): Add parenthesis.
11631 (TREE_SET_CODE): Add whitespace.
11632 (TREE_CHECK): Add parenthesis.
11633 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
11634 (CST_OR_CONSTRUCTOR_CHECK):
11635 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
11636 (TREE_SYMBOL_REFERENCED): Whitespace.
11637 (INT_CST_LT): Likewise.
11638 (INT_CST_LT_UNSIGNED): Likewise.
11639 (tree_real_cst): Unwrap comment.
11640 (tree_string): Likewise.
11641 (tree_complex): Likewise.
11642 (IDENTIFIER_POINTER): correct cast.
11643 (SAVE_EXPR_CONTEXT): Whitespace.
11644 (EXPR_WFL_FILENAME_NODE): Likewise.
11645 (EXPR_WFL_FILENAME): Remove parenthesis.
11646 (DECL_ORIGIN): Add parenthesis.
11647 (DECL_FROM_INLINE): Use NULL_TREE.
11648 (build_int_2): Whitespace.
11649 (build_type_variant): Add parenthesis.
11651 * gcc/jcf-parse.c: Update copyright date.
11652 (yyparse): Constify resource_filename.
11654 2002-01-03 Graham Stott <grahams@redhat.com>
11656 * rtl.h: Update copyright date.
11657 (RTL_CHECK1): Wrap long line.
11658 (RTL_CHECK2): Likewise.
11659 (RTL_CHECKC1): Wrap long line and whitespace.
11660 (RTL_CHECKC2): Likewise.
11661 (XWINT): Whitespace.
11667 (XBITMAP): Likewise.
11669 (XBBDEF): Likewise.
11671 (X0WINT): Likewise.
11673 (X0UINT): Likewise.
11677 (X0MODE): Likewise.
11678 (X0BITMAP): Likewise.
11679 (X0TREE): Likewise.
11680 (X0BBDEF): Likewise.
11681 (X0ADVFLAGS): Likewise.
11682 (X0CSELIB): Likewise.
11683 (X0MEMATTR): Likewise.
11684 (XCWINT): Likewise.
11686 (XCUINT): Likewise.
11690 (XCMODE): Likewise.
11691 (XCBITMAP): Likewise.
11692 (XCTREE): Likewise.
11693 (XCBBDEF): Likewise.
11694 (XCADVFLAGS): Likewise.
11695 (XCCSELIB): Likewise.
11696 (XC2EXP): Likewise.
11697 (INSN_UID): Likewise.
11698 (PREV_INSN): Likewise.
11699 (PATTERN): Likewise.
11700 (INSN_CODE): Likewise.
11701 (PUT_REG_NOTE_KIND): Likewise.
11702 (CODE_LABEL_NUMBER): Likewise.
11703 (NOTE_SOURCE_FILE): Likewise.
11704 (NOTE_BLOCK): Likewise.
11705 (NOTE_EH_HANDLER): Likewise.
11706 (NOTE_RANGE_INFO): Likewise.
11707 (NOTE_LIVE_INFO): Likewise.
11708 (NOTE_BASIC_BLOCK): Likewise.
11709 (NOTE_EXPECTED_VALUE): Likewise.
11710 (NOTE_LINE_NUMBER): Likewise.
11711 (LABEL_NAME): Likewise.
11712 (LABEL_NUSES): Likewise.
11713 (LABEL_ALTERNATE_NAME): Likewise.
11714 (ADDRESSOF_DECL): Likewise.
11715 (JUMP_LABEL): Likewise.
11716 (LABEL_NEXTREF): Likewise.
11718 (ORIGINAL_REGNO: Likewise.
11719 (HARD_REGISTER_NUM_P): Add parenthesis.
11720 (SUBREG_REG): Whitespace.
11721 (SUBREG_BYTE): Likewise.
11722 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
11723 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
11724 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
11725 (ASM_OPERANDS_INPUT_VEC): Likewise.
11726 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
11727 (ASM_OPERANDS_INPUT): Likewise.
11728 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
11729 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
11730 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
11731 (ASM_OPERANDS_INPUT_MODE): Likewise.
11732 (ASM_OPERANDS_SOURCE_FILE): Likewise.
11733 (ASM_OPERANDS_SOURCE_LINE): Likewise.
11734 (MEM_SET_IN_STRUCT_P): Minor reformat.
11735 (TRAP_CONDITION): Whitespace.
11736 (TRAP_CODE): Likewise.
11737 (COND_EXEC_TEST): Likewise.
11738 (COND_EXEC_CODE): Likewise.
11739 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
11740 (PHI_NODE_P): Add parenthesis.
11741 (plus_constant): Whitespace and add parenthesis.
11743 2002-01-03 Kazu Hirata <kazu@hxi.com>
11745 * config/avr/avr.c: Fix comment typos.
11746 * config/c4x/c4x.md: Likewise.
11747 * config/dsp16xx/dsp16xx.h: Likewise.
11748 * config/dsp16xx/dsp16xx.md: Likewise.
11749 * config/i386/i386.md: Likewise.
11750 * config/ia64/ia64.c: Likewise.
11751 * config/m32r/m32r.h: Likewise.
11752 * config/m68hc11/m68hc11.md: Likewise.
11753 * config/mmix/mmix.c: Likewise.
11754 * config/mn10200/mn10200.c: Likewise.
11755 * config/romp/romp.c: Likewise.
11756 * config/sh/sh.c: Likewise.
11757 * config/stormy16/stormy16.c: Likewise.
11758 * config/stormy16/stormy16.h: Likewise.
11759 * config/stormy16/stormy16.md: Likewise.
11761 2002-01-03 Graham Stott <grahams@redhat.com>
11763 * loop.h: Update copyright date.
11764 (LOOP_MOVABLES): Fix typo.
11765 (LOOP_REGS): Likewise.
11766 (LOOP_IVS): Likewise.
11768 2002-01-03 Graham Stott <grahams@redhat.com>
11770 * cppinit.c: Update copyright date.
11771 Don't include output.h
11772 * Makefile.in: Update copyright date.
11775 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
11778 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
11779 (-pthread) Add to RS/6000 options.
11781 2002-01-02 Kazu Hirata <kazu@hxi.com>
11783 * except.c: Fix comment typos.
11784 * loop.c: Likewise.
11785 * varasm.c: Likewise.
11786 * doc/tm.texi: Fix a typo.
11788 2002-01-02 Jakub Jelinek <jakub@redhat.com>
11790 * c-typeck.c (output_init_element): Allow initializing static storage
11791 duration objects with compound literals.
11793 2002-01-02 Richard Henderson <rth@redhat.com>
11795 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
11798 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11800 * gcc.c (default_compilers): Const-ify.
11801 * mips-tdump.c (stab_names): Likewise.
11802 * mips-tfile.c (map_coff_types, map_coff_storage,
11803 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
11804 pseudo_ops_t, pseudo_ops): Likewise.
11805 * protoize.c (default_include): Likewise
11807 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
11808 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
11809 Add array size in declaration.
11810 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
11811 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
11812 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
11813 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
11814 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
11815 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
11816 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
11817 emtens, make_nan): Const-ify.
11818 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
11819 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
11821 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
11823 * config.gcc (ia64-*-*): Set extra_headers.
11824 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
11825 * config/alpha/t-osf: Remove.
11826 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
11828 2002-01-02 David Edelsohn <edelsohn@gnu.org>
11830 * config/rs6000/t-aix43: Revert previous change.
11832 2002-01-02 Jason Merrill <jason@redhat.com>
11834 * c-decl.c (c_expand_body): Call outlining_inline_function when
11835 emitting an inline function out of line.
11837 2002-01-02 Richard Henderson <rth@redhat.com>
11839 * dwarf2out.c (limbo_die_node): Add created_for member.
11840 (new_die): New argument created_for. Update all callers.
11841 (mark_limbo_die_list): New.
11842 (dwarf2out_init): Register limbo_die_list as a root.
11843 (dwarf2out_finish): Force insert limbo dies into their function
11846 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
11849 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
11851 2002-01-02 Kazu Hirata <kazu@hxi.com>
11853 * config/h8300/fixunssfsi.c: Update copyright.
11856 * config/h8300/h8300.c: Update copyright.
11857 Eliminate warnings.
11859 2002-01-02 Kazu Hirata <kazu@hxi.com>
11861 * config/romp/romp.c: Fix comment formatting.
11862 * config/romp/romp.h: Likewise.
11863 * config/romp/romp.md: Likewise.
11864 * config/s390/s390.c: Likewise.
11865 * config/stormy16/stormy16.c: Likewise.
11866 * config/stormy16/stormy16.h: Likewise.
11868 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
11870 * c-common.h (genrtl_expr_stmt_value): Declare.
11871 * c-semantics.c (genrtl_goto_stmt): Redirect to...
11872 (genrtl_goto_stmt_value): ... this new function. Pass new
11873 argument down to expand_expr_stmt_value, taking
11874 TREE_ADDRESSABLE into account.
11875 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
11876 STMT_EXPR as addressable, i.e., one whose result we want.
11877 * expr.c (expand_expr): Don't save expression statement value
11878 of labeled_blocks or loop_exprs.
11879 * stmt.c (expand_expr_stmt): Redirect to...
11880 (expand_expr_stmt_value): ... this new function. Use new
11881 argument to tell whether to save expression value.
11882 (expand_end_stmt_expr): Reset last_expr_type and
11883 last_expr_value if we don't have either.
11884 * tree-inline.c (declare_return_variable): Mark its use
11885 statement as addressable.
11886 * tree.h: Document new use of TREE_ADDRESSABLE.
11887 (expand_expr_stmt_value): Declare.
11889 2002-01-01 Tom Rix <trix@redhat.com>
11891 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
11892 rs6000_emit_allocate_stack.
11894 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
11896 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
11897 ${srcdir}/ginclude/ to every entry in extra_headers.
11898 * configure: Regenerate.
11899 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
11900 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
11901 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
11902 * ginclude/proto.h: Rename to config/convex/proto.h.
11904 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11906 * attribs.c (handle_vector_size_attribute): Use host_integerp
11907 and tree_int_cst; remove warnings.
11908 * caller-save.c (insert_restore): Add cast to get rid of warning.
11909 (insert_save): Likewise.
11910 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
11911 * regmove.c (find_matches): Add temporary var to kill a warning.
11913 2002-01-01 Douglas B Rupp <rupp@gnat.com>
11915 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
11916 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
11917 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
11918 (vms-dwarf2eh.o): Add Makefile rule.
11919 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
11920 * config/alpha/vms-dwarf2eh.asm: New file.
11922 * gcc.c (delete_if_ordinary): Delete all versions.
11924 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
11926 * config/mmix/mmix.md: Update FIXME to not mention
11928 (MMIX_rJ_REGNUM): New define_constants constant.
11929 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
11930 "*movdicc_real"): Adjust contraints formatting.
11931 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
11932 for branch prediction.
11933 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
11935 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
11936 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
11937 number. Delete related FIXMEs.
11938 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
11939 from number to MMIX_rJ_REGNUM.
11940 (TARGET_MASK_BRANCH_PREDICT): New.
11941 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
11942 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
11943 value. Add -mbranch-predict and -mno-branch-predict.
11944 (TARGET_VERSION): Drop date.
11945 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
11946 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
11947 for finding out global symbols.
11948 (mmix_asm_output_labelref): Revert condition for global symbol.
11949 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
11950 (mmix_print_operand_punct_valid_p): A '+' is valid.
11952 See ChangeLog.6 for earlier changes.