1 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
3 * cpplib.c (glue_header_name): Use local buffer to build up
6 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
8 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
10 2002-02-23 Kazu Hirata <kazu@hxi.com>
12 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
13 H8/300[HS] separately.
14 * config/h8300/h8300.md: Remove the early clobber constraint
15 from bit field patterns.
17 2002-02-23 Kazu Hirata <kazu@hxi.com>
19 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
22 (umulqisi3): Likewise.
23 (umulhisi3): Likewise.
25 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
27 * cppinit.c (output_deps): Correct test for stdout output.
28 (init_dependency_output): Cure warning.
30 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32 * expr.c (store_expr): When converting expression to promoted
33 equivalent type, allow using SUBREG_REG of TARGET as the target
34 of the expansion of EXP.
35 * loop.c (basic_induction_var, case SUBREG): Always look inside.
36 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
37 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
38 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
39 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
41 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
43 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
44 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
45 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
47 2002-02-23 Jakub Jelinek <jakub@redhat.com>
50 * loop.c (scan_loop): Update reg info if move_movables created new
53 2002-02-23 David Edelsohn <edelsohn@gnu.org>
55 * gcc.c (init_gcc_spec): Revert last change.
57 2002-02-23 David Edelsohn <edelsohn@gnu.org>
59 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
60 gpc_reg_operand constraint.
62 2002-02-23 Alan Modra <amodra@bigpond.net.au>
64 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
65 Simplify comparison of `low'.
66 (add_operand): Fix formatting.
67 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
68 (mask_operand): Disallow mask to wrap in 64-bit mode.
69 (rs6000_stack_info): Remove redundant test setting push_p.
70 (output_toc): Fix formatting.
71 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
72 cc_reg_not_cr0_operand constraint.
73 (booldi3, boolcdi3 splitters): Same.
75 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
77 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
79 2002-02-22 David Edelsohn <edelsohn@gnu.org>
81 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
82 gcc invoked with -shared-libgcc.
84 2002-02-22 Jakub Jelinek <jakub@redhat.com>
87 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
88 decl if any of elements was TREE_USED.
90 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
92 * config/sparc/sol2.h: Don't include sys/mman.h.
93 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
94 (arith_4096_operand): Don't throw high bits away.
95 (const64_operand): Take sign extension of CONST_INTs into account.
96 (const64_high_operand, sparc_emit_set_const32): Likewise.
97 (GEN_HIGHINT64): Likewise.
98 (sparc_emit_set_const64_quick1): Likewise.
99 (const64_is_2insns): Likewise.
100 (print_operand): Use trunc_int_for_mode for sign extension.
101 * config/sparc/sparc.h (SMALL_INT32): Likewise.
102 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
103 chars. Assume CONST_INT is already properly sign-extended.
104 (movdi split): Sign-extend each SImode part.
105 (andsi3 split): Don't mask high bits off, so that result
106 remains properly sign-extend.
107 (iorsi3 split): Likewise.
108 (xorsi3 split): Likewise.
110 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
112 * fold-const.c (fold): Fix typo in comments.
114 2002-02-21 Diego Novillo <dnovillo@redhat.com>
116 * Makefile.in (langhooks.o): Update dependencies.
118 2002-02-21 Diego Novillo <dnovillo@redhat.com>
120 * langhooks.c: Include flags.h.
122 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
124 * testsuite/gcc.dg/attr-alwaysinline.c: New.
126 * c-common.c (c_common_post_options): Set inline trees by
129 * doc/extend.texi (Function Attributes): Document always_inline
131 Update documentation about inlining when not optimizing.
133 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
135 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
136 unless DECL_ALWAYS_INLINE.
138 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
139 unless DECL_ALWAYS_INLINE.
140 (c_disregard_inline_limits): Disregard if always_inline set.
142 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
143 Disregard if always_inline set.
144 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
145 unless DECL_ALWAYS_INLINE.
147 * attribs.c (handle_always_inline_attribute): New.
148 (c_common_attribute_table): Add always_inline.
150 * config/rs6000/altivec.h: Add prototypes for builtins
151 requiring the always_inline attribute.
153 2002-02-21 Eric Christopher <echristo@redhat.com>
155 * expmed.c (store_bit_field): Try to simplify the subreg
156 before generating a new one when when the mode size of
157 value is less than maxmode.
159 2002-02-21 Richard Henderson <rth@redhat.com>
161 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
162 than gen_rtx_PLUS to form the sum.
163 * explow.c (force_reg): Rearrange to not allocate new pseudo
164 when force_operand returns a register.
165 * expr.c (expand_assignment): Allow offset_rtx expansion to
166 return a sum. Do not force addresses into registers.
167 (expand_expr): Likewise.
168 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
169 to canonicalize arithmetic that didn't simpify.
170 (simplify_plus_minus): New argument force; update
171 all callers. Don't split CONST unless we can do something with it,
172 and wouldn't lose the constness of the operands.
174 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
175 that we generated earlier.
177 2002-02-21 Tom Tromey <tromey@redhat.com>
179 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
180 (output_line_info): Use constant `1', with a long explanatory
182 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
184 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
186 * jump.c (redirect_jump): If old label has no UID, don't try to
189 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
191 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
192 If input is constant, do shifts at compile time.
194 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
196 * doc/extend.texi: Fix some more overfull hboxes.
198 2002-02-21 Jakub Jelinek <jakub@redhat.com>
201 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
204 2002-02-21 Jakub Jelinek <jakub@redhat.com>
207 * expr.h (expand_and): Add mode argument.
208 * expmed.c (expand_and): Add mode argument.
209 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
210 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
211 * except.c (expand_builtin_extract_return_addr): Likewise.
212 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
213 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
214 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
215 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
216 * config/c4x/c4x.md: Use GEN_INT (x) instead of
217 gen_rtx (CONST_INT, VOIDmode, x).
219 2002-02-21 Jakub Jelinek <jakub@redhat.com>
222 * stmt.c (warn_if_unused_value): Move side effects test once more.
224 2002-02-20 Torbjorn Granlund <tege@swox.com>
226 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
227 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
229 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
231 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
232 SUBREG or ZERO_EXTEND.
234 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
236 * sh.h (current_function_anonymous_args): Remove.
237 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
238 of current_function_varargs and current_function_stdarg is set.
239 * sh.c (sh_expand_prologue): Check current_function_varargs /
240 current_function_stdarg / TARGET_SH5 instead of
241 current_function_anonymous_args.
243 * sh64.h (TARGET_VERSION): Define.
245 2002-02-20 David Edelsohn <edelsohn@gnu.org>
247 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
248 VRSAVE_REGNO on TARGET_ALTIVEC.
250 2002-02-20 Alan Modra <amodra@bigpond.net.au>
252 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
253 bits of SImode const_int.
254 (includes_rshift_p): Likewise.
255 (print_operand): Call mask_operand and mask64_operand with correct
257 (rs6000_output_function_epilogue): Pad traceback table to word.
258 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
259 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
260 mask64_operand with correct mode.
261 (FUNCTION_ARG_REGNO_P): Correct parentheses.
263 2002-02-20 Jakub Jelinek <jakub@redhat.com>
266 * varasm.c (get_pool_constant_mark): New.
267 * rtl.h (get_pool_constant_mark): Add prototype.
268 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
269 be represented if it has not been output.
271 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
273 * combine.c (do_SUBST): Sanity check substitutions of
274 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
275 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
276 CONST_INT into its operand.
277 (known_cond): Likewise, for ZERO_EXTEND.
278 * simplify-rtx.c (simplify_unary_operation): Fix condition to
279 allow for simplification of wide modes. Reject CONST_INTs in
280 ZERO_EXTEND when their actual mode is not given.
282 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
284 * c-decl.c (pushdecl): If no global declaration is found for an
285 extern declaration in block scope, try a limbo one.
287 2002-02-20 Jakub Jelinek <jakub@redhat.com>
290 * c-common.c (pointer_int_sum): Moved from...
291 * c-typeck.c (pointer_int_sum): ...here.
292 * c-common.h (pointer_int_sum): Add prototype.
294 2002-02-20 Jakub Jelinek <jakub@redhat.com>
297 * c-decl.c (duplicate_decls): Return 0 if issued error about
300 2002-02-20 Roger Sayle <roger@eyesopen.com>
301 Jakub Jelinek <jakub@redhat.com>
304 * tree.c (host_integerp): Ensure that the constant integer is
305 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
306 when pos is zero or non-zero respectively. Clarify comment.
307 * c-format.c (check_format_info_recurse): Fix host_integerp
308 usage; the pos argument should be zero when assigning to a
309 signed HOST_WIDE_INT.
311 2002-02-20 Richard Henderson <rth@redhat.com>
313 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
314 of the operand, rather than assuming TImode.
315 (ix86_expand_binop_builtin): Cope with commutative patterns
316 using nonimmediate_operand for both operands.
317 (ix86_expand_timode_binop_builtin): Likewise.
318 (ix86_expand_store_builtin): Validate operand 1.
319 (ix86_expand_unop1_builtin): Likewise.
321 2002-02-20 Philip Blundell <philb@gnu.org>
324 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
326 2002-02-20 Richard Henderson <rth@redhat.com>
329 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
331 2002-02-20 Tom Tromey <tromey@redhat.com>
333 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
334 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
335 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
336 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
337 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
340 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
342 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
343 for (const_int 0) in X not just INTVAL.
345 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
347 * doc/extend.texi: Avoid or reduce overfull hboxes.
349 2002-02-20 Diego Novillo <dnovillo@redhat.com>
351 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
352 operations if the field does not start at a mode boundary.
354 2001-02-20 Joel Sherrill <joel@OARcorp.com>
356 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
357 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
358 Also done for -Acpu and -Amachine.
360 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
362 * cppinit.c (init_dependency_output): Take deps output file
363 from -o if none given with -MF. Suppress normal output.
364 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
365 * doc/cpp.texi, doc/invoke.texi: Update.
367 2002-02-19 Zack Weinberg <zack@codesourcery.com>
369 * toplev.c (output_quoted_string): Write unprintable
370 characters with octal escapes.
372 2002-02-19 David Edelsohn <edelsohn@gnu.org>
374 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
375 really_call_used[VRSAVE_REGNO] if not Altivec.
377 2002-02-19 Alan Modra <amodra@bigpond.net.au>
379 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
381 (constant_pool_expr_1): Fix formatting.
382 (rs6000_legitimize_reload_address): Likewise.
384 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
386 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
387 now that we have one.
389 2002-02-19 Zack Weinberg <zack@codesourcery.com>
391 * tree.h (struct tree_common): Remove aux. Add unused_0 at
392 end of first block of bitfields (which was only seven bits);
393 rename dummy to unused_1; remove comment which is no longer true.
395 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
397 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
399 2002-02-19 Philip Blundell <pb@nexus.co.uk>
402 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
406 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
407 arm_is_longcall_p rather than inspecting call-type cookie
409 (call_value_insn) [TARGET_THUMB]: Likewise.
411 2002-02-19 Graham Stott <grahams@redhat.com>
413 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
415 2002-02-19 David Edelsohn <edelsohn@gnu.org>
417 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
418 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
419 (FP_SAVE_INLINE): Delete.
421 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
422 * config/rs6000/eabi.asm: Remove ABI save restore routines.
423 * config/rs6000/t-ppccomm: Build crtsavres.o.
424 * config/rs6000/crtsavres.asm: New file.
426 2002-02-19 Philip Blundell <philb@gnu.org>
428 * config/arm/arm.c (use_return_insn): Don't reject interrupt
430 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
431 (output_return_instruction): Allow interrupt functions to return with
432 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
433 (arm_expand_prologue): Subtract 4 before stacking LR in an
436 2002-02-19 Philip Blundell <pb@nexus.co.uk>
438 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
439 decl, not just FUNCTION_DECL.
440 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
441 (arm_assemble_integer): Likewise.
442 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
445 2002-02-19 matthew green <mrg@eterna.com.au>
447 * config.gcc (sparc-*-netbsdelf*): Enable target.
448 (sparc64-*-netbsd*): New target.
449 * config/sparc/netbsd-elf.h: New file.
450 * config/sparc/t-netbsd64: New file.
452 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
454 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
456 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
458 * doc/invoke.texi: explicitly list the style guidelines that
461 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
463 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
465 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
468 * gcc.c (cpp_unique_options): Treat -o as indicating object file
469 only if not -E. If -E, pass -o through to the preprocessor.
471 2002-02-19 Kazu Hirata <kazu@hxi.com>
473 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
474 register number with an appropriate macro.
476 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
478 * doc/rtl.texi (Constants): Close @code tag.
480 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
482 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
483 ("mmx_uavgv4hi3"): Same.
484 ("pmulhrwv4hi3"): Same.
486 * tree-inline.c (walk_tree): Handle vectors.
488 * c-common.c (constant_expression_warning): Handle vectors.
489 (overflow_warning): Same.
491 * sched-deps.c (sched_analyze_2): Handle vectors.
493 * rtlanal.c (rtx_unstable_p): Handle vectors.
494 (rtx_varies_p): Same.
495 (count_occurrences): Same.
496 (regs_set_between_p): Same.
497 (modified_between_p): Same.
498 (modified_in_p): Same.
499 (volatile_insn_p): Same.
500 (volatile_refs_p): Same.
501 (side_effects_p): Same.
503 (inequality_comparisons_p): Same.
504 (replace_regs): Same.
505 (computed_jump_p_1): Same.
507 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
509 (inner_mode_array): New.
510 (copy_rtx): Handle vectors.
511 (copy_most_rtx): Same.
513 (get_mode_alignment): Adjust for vectors.
515 * resource.c (mark_referenced_resources): Handle vectors.
516 (mark_set_resources): Same.
518 * reload1.c (eliminate_regs): Handle vectors.
519 (elimination_effects): Same.
520 (scan_paradoxical_subregs): Same.
522 * reload.c (subst_reg_equivs): Handle vectors.
524 * regrename.c (scan_rtx): Handle vectors.
526 * regclass.c (reg_scan_mark_refs): Handle vectors.
528 * recog.c (find_single_use_1): Handle vectors.
530 * local-alloc.c (equiv_init_varies_p): Handle vectors.
531 (contains_replace_regs): Same.
532 (memref_referenced_p): Same.
534 * integrate.c (copy_rtx_and_substitute): Handle vectors.
535 (subst_constants): Same.
537 * genattrtab.c (attr_copy_rtx): Handle vectors.
538 (encode_units_mask): Same.
539 (clear_struct_flag): Same.
540 (count_sub_rtxs): Same.
542 * gcse.c (want_to_gcse_p): Handle vectors.
543 (oprs_unchanged_p): Same.
545 (oprs_not_set_p): Same.
546 (expr_killed_p): Same.
547 (compute_transp): Same.
548 (store_ops_ok): Same.
550 * function.c (purge_addressof_1): Do not allow paradoxical subregs
552 (fixup_var_refs_1): Same.
553 (instantiate_virtual_regs_1): Same.
555 * fold-const.c (operand_equal_p): Handle vectors.
557 (rtl_expr_nonnegative_p): Same.
559 * flow.c (mark_used_regs): Handle vectors.
561 * df.c (df_uses_record): Handle vectors.
563 * cselib.c (cselib_subst_to_values): Handle vectors.
564 (cselib_mem_conflict_p): Same.
567 * cse.c (canon_reg): Handle vectors.
569 (cse_process_notes): Same.
570 (count_reg_usage): Same.
573 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
575 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
577 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
578 (gen_rtx): Handle CONST_VECTOR.
579 (gen_const_vector_0): New.
580 (copy_rtx_if_shared): CONST_VECTORs can be shared.
581 (reset_used_flags): Same.
583 (initializer_constant_valid_p): Handle VECTOR_CST.
585 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
587 * doc/rtl.texi (Constants): Document const_vector.
588 (CONST0_RTX): Update for vectors.
591 * print-tree.c (print_node): Add case for VECTOR_CST.
593 * tree.h (TREE_VECTOR_CST_ELTS): New.
594 (struct tree_vector): New.
595 (union tree_node): Add vector node.
596 (build_vector): Add prototype.
598 * tree.def (VECTOR_CST): New.
600 * tree.c (build_vector): New.
602 * expmed.c (make_tree): Handle CONST_VECTOR.
604 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
605 (CONST_VECTOR_ELT): New.
606 (CONST_VECTOR_NUNITS): New.
608 * machmode.h (GET_MODE_INNER): New.
609 (DEF_MACHMODE): Accept 8th arg.
611 * machmode.def: Add 8th argument for vector inner mode.
612 Add inner vector modes for vectors.
614 * rtl.def (VEC_CONST): Remove.
617 * expr.c (clear_storage): Allow vectors.
618 (is_zeros_p): Handle VECTOR_CST.
620 * varasm.c (output_constant_pool): Handle vectors.
621 (rtx_const): Add veclo and vechi fields.
622 (kind): Add RTX_VECTOR.
623 (decode_rtx_const): Add case for vector.
625 * config/rs6000/rs6000-protos.h: Add zero_constant.
627 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
628 constants. Force easy vector constants into memory.
629 (easy_vector_constant): New.
630 (emit_easy_vector_constant): New.
631 (rs6000_legitimize_reload_address): Do not generate bad reloads on
634 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
636 ("altivec_lvxl"): Same.
637 (altivec_lvebx): Same.
638 (altivec_lvehx): Same.
639 (altivec_lvewx): Same.
640 ("*movv4si_const0"): New.
641 ("*movv4sf_const0"): New.
642 ("*movv8hi_const0"): New.
643 ("*movv16qi_const0"): New.
645 2002-02-18 Kazu Hirata <kazu@hxi.com>
647 * config/h8300/h8300.c (notice_update_cc): Use
650 2002-02-18 Kazu Hirata <kazu@hxi.com>
652 * config/h8300/h8300.md (divmod patterns): Change the
653 constraints for operands[1] to register_operand.
655 2002-02-18 Kazu Hirata <kazu@hxi.com>
657 * config/h8300/h8300-protos.h: Remove the prototype for
659 * config/h8300/h8300.c (p_operand): Remove.
660 * config/h8300/h8300.md: Replace p_operand with
663 2002-02-18 Philip Blundell <pb@nexus.co.uk>
665 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
667 (output_return_instruction): Allow use of LDR to unstack
668 return addresss even for interrupt handlers or when
669 interworking. If compiling for ARMv5, use interworking-safe
670 return instructions by default. Remove duplicated code and
671 lengthy "strcat" sequences.
673 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
675 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
676 (LINK_EH_SPEC): Define.
677 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
679 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
681 * config/s390/s390.c (s390_emit_prologue): Do not set the
682 frame_related flag for call-clobbered registers.
684 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
686 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
687 (construct_container): Fix handling of SSE operands.
688 (ix86_expand_builtin): Fix handling of 64bit pointers.
689 (mmx_maskmovq_rex): New pattern.
691 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
693 * regrename.c (kill_set_value): Handle subregs properly.
695 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
697 * objc/objc-act.c (handle_impent): Remove leading '*'
698 from objc_class_name.
700 2002-02-17 Richard Henderson <rth@redhat.com>
702 * config/alpha/alpha.c (some_small_symbolic_operand,
703 some_small_symbolic_operand_1, split_small_symbolic_operand,
704 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
705 Handle small SYMBOL_REFs anywhere, not just inside memories.
706 * config/alpha/alpha-protos.h: Update.
707 * config/alpha/alpha.h (PREDICATE_CODES): Update.
708 * config/alpha/alpha.md (small symbolic operand splitter): Update.
710 2002-02-17 Roland McGrath <roland@frob.com>
712 * config.gcc (powerpc-*-gnu-gnualtivec*,
713 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
714 * config/rs6000/gnu.h: New file.
715 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
716 Grok "gnu" in rs6000_abi_name.
717 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
718 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
719 Grok -mcall-gnu analogous to -mcall-linux et al.
720 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
721 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
722 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
724 2002-02-17 Jakub Jelinek <jakub@redhat.com>
727 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
730 2002-02-17 Philipp Thomas <pthomas@suse.de>
732 * config/cris/cris.h: Undefine STARTFILE_SPEC and
733 ENDFILE_SPEC before (re)defining them.
735 2002-02-17 Kazu Hirata <kazu@hxi.com>
737 * config/h8300/h8300.c: Fix formatting.
738 * config/h8300/h8300.h: Likewise.
740 2002-02-17 Philipp Thomas <pthomas@suse.de>
742 * doc/tm.texi: Explain why empty strings should not be
743 marked for translation.
745 2002-02-17 Philipp Thomas <pthomas@suse.de>
747 * final.c (output_operand_lossage): Changed to accept
748 printf style arguments. Change calls where necessary.
749 * output.h (output_operand_lossage): Change declaration
750 accordingly. Update copyright.
751 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
752 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
753 Update copyright date where necessary.
755 * config/i386/i386.c (print_operand): Likewise. Remove use of
758 * config/cris/cris.c (cris_operand_lossage): Likewise.
759 Rename parameter so that exgettext recognizes it as
760 translatable message.
761 (LOSE_AND_RETURN): Rename parameter to msgid.
763 2002-02-17 Kazu Hirata <kazu@hxi.com>
765 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
766 hard coded register number with an appropriate macro.
767 (HARD_REGNO_MODE_OK): Likewise.
768 (ARG_POINTER_REGNUM): Likewise.
769 (STATIC_CHAIN_REGNUM): Likewise.
770 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
771 * config/h8300/h8300.md (define_constants): Define more
774 2002-02-17 Philipp Thomas <pthomas@suse.de>
776 * config/i386/i386.h: Don't mark empty strings for translation.
778 2002-02-16 H.J. Lu <hjl@gnu.org>
780 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
782 2002-02-16 Zack Weinberg <zack@codesourcery.com>
784 * cppinit.c (merge_include_chains): Check for brack being
785 NULL before attempting to merge it with qtail.
787 2002-02-16 Andrew Cagney <ac131313@redhat.com>
789 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
792 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
794 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
796 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
798 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
799 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
800 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
802 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
804 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
805 now only if !TARGET_FIX.
806 (*movsi_nt_vms_fix): New pattern.
808 2002-02-16 Douglas B Rupp <rupp@gnat.com>
810 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
811 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
812 (alpha_sa_mask, alpha_sa_size): Reflect above change.
813 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
814 (alpha_start_function, alpha_expand_epilogue): Likewise.
815 (unicosmk_gen_dsib): Likewise.
817 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
819 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
821 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
823 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
824 check_and_change_labels, s390_final_chunkify): Delete.
825 (s390_split_branches, s390_chunkify_pool): New functions.
826 (s390_function_prologue): Call them.
828 * config/s390/s390.h (S390_REL_MAX): Delete.
829 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
831 * config/s390/s390.md (cjump, icjump, jump): Fix length
832 attribute calculation.
835 2002-02-15 David Edelsohn <edelsohn@gnu.org>
837 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
838 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
840 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
842 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
843 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
844 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
846 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
848 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
850 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
852 * reload.c (find_dummy_reload): Check that an output register
853 is valid for its mode.
855 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
857 * combine.c (known_cond): After replacing the REG of a SUBREG, try
860 * function.c (assign_parms): Demote promoted argument passed by
861 transparent reference.
863 2001-02-14 Joel Sherrill <joel@OARcorp.com>
865 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
866 -Acpu() and -Amachine() to eliminate warnings.
868 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
870 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
872 2002-02-14 Kazu Hirata <kazu@hxi.com>
874 * config/h8300/h8300-protos.h: Update the prototype for
876 * config/h8300/h8300.c (const_costs): Treat SET as a little
877 more expensive operation.
878 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
879 reference to const_costs.
881 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
883 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
885 2002-02-14 Jakub Jelinek <jakub@redhat.com>
888 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
889 use arguments from newtype.
891 2002-02-13 Eric Christopher <echristo@redhat.com>
893 * config/mips/mips.c (override_options): Add check for march/mipsX
894 on the same command line. Fix error message in cpu processing.
895 Remove architecture and ISA checks.
897 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
899 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
901 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
903 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
905 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
907 ("*movv8hi_internal1"): Same.
908 ("*movv16qi_internal1"): Same.
909 ("*movv4sf_internal1"): Same.
911 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
912 not push_reload for altivec modes.
914 2002-02-13 Joel Sherrill <joel@OARcorp.com>
916 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
917 all RTEMS targets including removal of #includes from config/*/rtems*.h
918 file and adding them to tm_file setting. Added xm_defines=POSIX to
920 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
921 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
922 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
923 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
924 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
925 config/m68k/rtemself.h: Ditto.
926 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
927 config/mips/rtems64.h: Ditto.
928 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
929 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
931 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
932 config/sparc/rtemself.h: Ditto.
933 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
934 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
935 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
937 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
938 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
939 target made more similar to i386-elf.
940 * config/i386/t-rtems-i386: Added soft float support and multilibs.
941 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
942 be similar to config/m68k/t-m68kelf.
943 * gthr-rtems.h: Encapsulate with extern "C" for C++.
945 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
947 * regmove.c (kill_value): Handle subregs.
949 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
951 * i386.md (mul patterns): Allow memory operand to be first;
952 add expanders where needed; fix constraints.
953 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
954 Allow memory operand to be the first.
956 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
959 2002-02-13 Jakub Jelinek <jakub@redhat.com>
962 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
965 2002-02-13 Jakub Jelinek <jakub@redhat.com>
967 PR optimization/5547:
968 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
969 all valid IA-32 address modes involving non-scaled %ebx and
970 GOT/GOTOFF as displacement.
972 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
974 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
975 after emitting ltorg insns.
977 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
978 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
979 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
980 *abssf2): Fix "op_type" attribute.
982 2002-02-13 Douglas B Rupp <rupp@gnat.com>
984 * mkconfig.sh: Avoid using a subshell redirect.
985 ($output.T): Change to $(output)T.
986 (ENABLE_NLS): Remove unneeded undef.
988 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
989 * config/alpha/x-vms (libsubdir): Define.
991 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
992 register frame procedures. Optimize retrieving context.
994 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
995 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
996 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
998 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1000 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
1001 Make same change as for find_base_value.
1003 2002-02-13 Kazu Hirata <kazu@hxi.com>
1005 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
1006 of QImode and SImode.
1008 2002-02-13 Kazu Hirata <kazu@hxi.com>
1010 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
1011 length computation of movsi.
1012 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
1014 2002-02-13 Kazu Hirata <kazu@hxi.com>
1016 * config/h8300/h8300.md (subqi3): Tighten the predicate for
1017 operands[2] to register_operand.
1019 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
1021 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
1023 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
1025 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
1026 for altivec_lvx* and altivec_stvx*.
1027 ("*movv4si_internal"): Add constraint for loading from GPRs.
1028 ("*movv8hi_internal1"): Same.
1029 ("*movv16qi_internal1"): Same.
1030 ("*movv4sf_internal1"): Same.
1032 * config/rs6000/rs6000.c (altivec_register_operand): New.
1034 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
1035 altivec_register_operand.
1037 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
1039 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
1042 2002-02-13 Stan Shebs <shebs@apple.com>
1044 * c-typeck.c (digest_init): Handle vectors.
1045 (really_start_incremental_init): Same.
1046 (pop_init_level): Same.
1047 (process_init_element): Same.
1049 * varasm.c (output_constant): Same.
1051 * expr.c (clear_storage): Same.
1052 (store_constructor): Same.
1054 2002-02-12 Eric Christopher <echristo@redhat.com>
1056 * explow.c (hard_function_value): Add comment explaining
1057 signed/unsigned comparison.
1059 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1061 * jump.c (never_reached_warning): Add finish argument.
1062 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
1063 real insn after end.
1064 * rtl.h (never_reached_warning): Adjust prototype.
1065 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
1066 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
1067 never_reached_warning.
1069 2002-02-12 Graham Stott <grahams@redhat.com>
1071 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
1073 2002-02-12 Kazu Hirata <kazu@hxi.com>
1075 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
1076 logical shifts on H8/300.
1077 (shift_alg_si): Improve several shifts on H8/300.
1078 (get_shift_alg): Likewise.
1080 2002-02-12 Graham Stott <grahams@redhat.com>
1082 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
1084 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1086 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
1087 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
1089 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
1091 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
1092 non-CONST_INT through default_assemble_integer.
1093 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
1094 <case 8>: Abort for CONST_DOUBLE.
1096 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1098 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
1100 * config/pa/pa-linux.h (LIB_SPEC): Delete.
1101 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
1103 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
1105 * config/stormy16/stormy16.md (zero_extendqihi2): New.
1107 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
1109 * regrename.c (regrename_optimize): Don't accept a
1110 part-clobbered register if the replaced register is not part
1113 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
1114 take padding into account when computing the argument value.
1116 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
1118 * combine.c (try_combine): Apply substitutions in
1119 CALL_INSN_FUNCTION_USAGE too.
1121 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
1123 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
1124 __builtin_altivec_abs*.
1127 * config/rs6000/rs6000.h (rs6000_builtins): Add
1128 ALTIVEC_BUILTIN_ABS*.
1130 * config/rs6000/altivec.h: Use const char for builtins expecting
1132 (vec_abs): New versions for C and C++.
1135 2002-02-10 Kazu Hirata <kazu@hxi.com>
1137 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
1140 2002-02-10 Kazu Hirata <kazu@hxi.com>
1142 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
1143 constant definition from h8300.md.
1144 (FRAME_POINTER_REGNUM): Likewise.
1145 * config/h8300/h8300.md (define_constants): Add FP_REG.
1147 2002-02-10 Kazu Hirata <kazu@hxi.com>
1149 * config/h8300/h8300.c (print_operand): Remove redundant code.
1151 2002-02-10 Kazu Hirata <kazu@hxi.com>
1153 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
1154 * config/h8300/h8300.c (byte_reg): Make it static.
1156 2002-02-10 Richard Henderson <rth@redhat.com>
1159 * c-typeck.c (incomplete_type_error): Handle flexible array members.
1161 2002-02-10 Richard Henderson <rth@redhat.com>
1164 * tree.c (append_random_chars): Don't abort if main_input_filename
1167 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
1169 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
1171 2002-02-10 Kazu Hirata <kazu@hxi.com>
1173 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
1174 (pushhi1): Likewise.
1176 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
1178 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
1179 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
1181 2002-02-09 David O'Brien <obrien@FreeBSD.org>
1183 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
1185 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
1187 2002-02-09 Kazu Hirata <kazu@hxi.com>
1189 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
1190 a half of an SImode register on H8/300.
1192 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
1194 * i386.md (movdi_2): Add missing '!'.
1196 2002-02-09 Kazu Hirata <kazu@hxi.com>
1198 * config/h8300/h8300.h: Fix formatting. Remove commented-out
1201 2002-02-09 Kazu Hirata <kazu@hxi.com>
1203 * config/h8300/h8300.md (length): Correct the distance valid
1204 for the short branch.
1206 2002-02-09 Kazu Hirata <kazu@hxi.com>
1208 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
1210 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
1212 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
1213 registers in SImode.
1214 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
1217 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
1220 Contribute sh64-elf.
1221 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
1222 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
1223 (sh_cannot_modify_jumps_p): New function.
1224 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
1225 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
1226 (sh_ms_bitfield_layout_p): New function.
1227 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
1228 Zack Weinberg <zack@codesourcery.com>
1229 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
1230 expand_simple_binop instead of expand_binop.
1231 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
1232 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
1233 use of .quad and .uaquad.
1234 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
1235 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
1236 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1237 * config/sh/sh.md (movdi_const, movdi_const_32bit,
1238 movdi_const_16bit): Make sure all CONSTs have modes.
1239 (sym2PIC): Ditto, but by adjusting all callers.
1240 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
1241 if the prologue calls the SHmedia argument decoder or register
1243 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1244 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
1245 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
1246 (sh_expand_epilogue): Don't emit USE of return target register.
1247 (prepare_move_operands): Legitimize DImode PIC addresses.
1248 (sh_media_register_for_return): Skip tr0, used to initialize the
1250 (sh_expand_prologue): Remove explicit USE of return register.
1251 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
1252 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
1253 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
1254 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
1255 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
1257 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
1258 (MOVI_SHORI_BASE_OPERAND_P): New.
1259 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
1260 (EXTRA_CONSTRAINT_T): Define in terms of them.
1261 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
1262 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
1263 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
1264 alternatives supporting TARGET_REGS.
1265 (UNSPEC_GOTPLT): New constant.
1266 (movdi split): Move incrementing of LABEL_NUSES...
1267 (movdi_const, movdi_const_32bit): Here. Use
1268 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
1269 (movdi_const_16bit): New.
1270 (call, call_value) [flag_pic]: Use GOTPLT.
1271 (call_pop, call_value_pop): New expands.
1272 (call_pop_compact, call_pop_rettramp): New insns.
1273 (call_value_pop_compact, call_value_pop_rettramp): New insns.
1274 (sibcall) [flag_pic]: Use GOT.
1275 (builtint_setjmp_receiver): Remove bogus, unused expand.
1276 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
1277 (*pt, *ptb, ptrel): New insns.
1278 (sym2GOT): Handle DImode GOT.
1279 (sym2GOTPLT, symGOTPLT2reg): New expands.
1280 (sym2PIC): New expand.
1281 (shcompact_return_tramp): Use GOTPLT to return trampoline.
1282 (shcompact_return_tramp_i): Use return register explicitly.
1283 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
1284 disable flag_reorder_blocks.
1285 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
1286 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
1287 clobbers, for clarity.
1288 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
1289 restoring of r0 in macl as MAYBE_DEAD.
1290 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1291 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
1292 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
1293 alter_subreg all over.
1294 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
1295 reload, instead of emitting instructions that would require
1297 (casesi_load_media): Add missing modes.
1298 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
1299 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
1300 as used if the argument decoder is called.
1301 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
1302 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
1303 Pmode, then extend it to DImode if necessary.
1304 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
1305 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
1306 constants in FPU-enabled SHmedia, let them be loaded from memory.
1307 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
1308 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
1309 Adjust whitespace in assembly output templates.
1310 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
1311 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
1312 mode of if_then_else.
1313 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
1314 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
1316 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
1317 Joern Rennecke <amylaar@redhat.com>
1318 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
1319 (SUBTARGET_CPP_PTR_SPEC): New.
1320 (SUBTARGET_CPP_SPEC): Remove.
1321 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
1322 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
1323 Fix typo in previous checkin.
1324 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
1325 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
1326 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
1327 Alexandre Oliva <aoliva@redhat.com>
1328 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
1329 what single FP register can hold for SHmedia target.
1330 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
1331 Alexandre Oliva <aoliva@redhat.com>
1332 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
1333 Do not split into SUBREG.
1334 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
1335 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
1336 and added new functions as specified in SH5 ABI r9.
1337 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
1338 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
1340 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
1341 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
1342 gen_consttable_4 and gen_consttable_8. Emit multiple labels
1343 and consttable_window_ends.
1344 2001-06-03 Graham Stott <grahams@redhat,com>
1345 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
1346 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
1347 * config/sh/sh.c (print_operand): Handle floating-point pair,
1348 vector and matrix registers.
1349 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
1350 vector modes into account.
1351 * config/sh/sh.md (movv2sf): Split move between registers into
1353 (movv4sf, movv16sf): Introduce insns that get split only after
1355 * config/sh/shmedia.h: Fix Copyright dates.
1356 * config/sh/ushmedia.h: Likewise. Move loop counter
1357 declarations into conditionals that uses them.
1358 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
1360 * config/sh/sshmedia.h: Fix Copyright dates.
1361 (sh_media_PUTCFG): Fix constraints.
1362 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
1363 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
1364 ptrmemfunc_vbit_in_delta for SH5.
1365 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
1366 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
1367 * invoke.texi: Likewise.
1368 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
1369 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
1370 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
1371 GCC_pop_shmedia_regs_nofpu): New global symbols.
1372 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
1373 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
1374 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
1375 compact function with nonlocal labels.
1376 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
1377 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
1378 (initial_elimination_offset): Account for their stack space.
1379 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
1380 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
1381 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
1382 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
1383 least one of the operands to be a register.
1384 (movv2sf): Likewise. Renamed to movv2sf_i.
1385 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
1386 prepare_move_operands() before emitting SHmedia insns.
1387 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
1388 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
1389 Don't save nor initialize r12. Don't mis-align the stack.
1390 Pad the code with a nop.
1391 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
1393 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
1394 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
1395 [__SHMEDIA__]: Implement.
1396 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
1397 * config/sh/sh.md: Set latency of `pt' closer to reality.
1398 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
1399 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
1400 Set move, load and store type attributes.
1401 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
1402 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
1404 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
1405 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
1406 * config/sh/sh.c (sh_media_register_for_return): New function.
1407 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
1408 branch-target register.
1409 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
1410 * config/sh/sh.md (return_media_i): Use any call-clobbered
1411 branch-target register.
1412 (return_media): If r18 wasn't copied in the prologue, copy it
1414 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
1415 Clear class FP0_REGS.
1416 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
1418 2001-03-08 DJ Delorie <dj@redhat.com>
1419 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
1420 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
1421 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
1422 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
1423 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
1424 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
1425 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
1426 return value correctly for call_cookie.
1427 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
1428 * config/sh/crt1.asm (start): Modified so as to call
1429 ___setup_argv_and_call_main.
1430 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
1431 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
1433 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
1434 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
1435 (STRIP_NAME_ENCODING): Use it.
1436 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
1437 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
1438 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
1439 prepare_scc_operands().
1440 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
1441 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
1442 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
1443 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
1444 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
1445 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
1446 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
1447 used in shcompact_incoming_args.
1448 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
1450 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
1452 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
1454 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
1455 Simplify. Adjust. Add sanity check.
1456 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
1458 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
1460 (udivsi3, divsi3): Use them.
1461 (force_mode_for_call): New insn.
1462 (call, call_value, sibcall_value): Emit it before SHcompact
1464 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
1465 * config/sh/sh.md (call, call_value, sibcall): Make sure the
1466 call cookie is non-NULL before taking its value.
1467 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
1468 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
1469 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
1470 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
1472 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
1473 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
1474 temporary for stack adjusts. Use MACL and MACH to pass
1475 arguments to shcompact_incoming_args.
1476 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
1478 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
1479 (nested_trampoline): Load static chain address into r1.
1480 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
1481 2001-01-07 Alexandre Oliva <aoliva@redhat.com
1482 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
1483 fp_arith_reg_operand().
1484 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
1485 * config/sh/sh.md (casesi): Sign-extend the first two operands,
1486 and use signed compares for them.
1487 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
1488 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
1489 ones properly aligned.
1490 (find_barrier): Account for extra alignment needed for 8-byte wide
1492 (machine_dependent_reorg): Require a label for the second 4-byte
1493 constant after an 8-byte one.
1494 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
1496 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
1497 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
1498 last_float when switching float modes.
1499 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
1500 auto-increment for general-purpose registers.
1501 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
1503 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
1505 * config/sh/sh.c (sh_builtin_saveregs): Support using all
1506 registers for varargs.
1507 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
1508 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
1509 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
1510 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
1511 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
1512 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
1513 call_cookie accordingly.
1514 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
1515 (SHCOMPACT_BYREF): Likewise.
1516 (SHCOMPACT_FORCE_ON_STACK): New macro.
1517 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
1518 (sh_builtin_saveregs): Likewise.
1519 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
1520 shcompact_incoming_args): Use new shift values. Support
1521 sequences of consecutive and non-consecutive pushes/pops.
1522 * config/sh/sh.md (return): Don't explicitly use PR_REG.
1523 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
1524 * config/sh/sh.h (TEXT_SECTION): Define.
1525 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
1526 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
1527 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
1528 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
1529 return values on FPU-enabled SHmedia.
1530 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
1531 FPU-enabled SHmedia.
1532 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
1533 value is returned in a non-FP reg and is not returned by
1535 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
1537 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
1538 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
1539 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
1540 quad-aligned to be passed by callee-copy reference.
1541 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
1542 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
1543 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
1544 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
1545 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
1546 copying low-numbered FP regs to r7 and r8.
1547 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
1548 FP regs to general-purpose regs only if the copy was passed on the
1550 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
1551 copying FP reg to r9.
1552 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
1553 copy FP regs to general-purpose regs only in outgoing calls.
1554 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
1555 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
1557 * config/sh/sh.h (struct sh_args): Document all fields.
1558 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
1559 passed partially on the stack should not consider making
1561 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
1562 stack_regs only for incoming calls. When passing FP args,
1563 make sure there are FP regs available before modifying
1565 (SHCOMPACT_BYREF): Pass double args in general-purpose
1566 registers by reference.
1567 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
1568 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
1569 attempt to generate sibcalls if the caller got any arguments
1571 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
1572 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
1573 to 8-byte boundaries.
1574 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
1575 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
1576 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
1577 stored in the stack.
1578 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
1579 for the offsets to have the ISA bit set.
1580 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
1581 invocation. Use beq instead of bgt to mark end of sequence of
1583 (shcompact_incoming_args): Fix store of r2. Use beq instead of
1584 bgt to mark end of sequence of stores.
1585 * config/sh/sh.c (arith_operand): Don't check whether
1586 CONST_OK_FOR_J for now.
1587 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
1588 instead of long for conversion.
1589 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
1590 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
1591 before passing it to fprintf.
1592 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
1593 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
1594 Call set_fpscr before reading/writing SR.
1595 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
1597 * config/sh/lib1funcs.asm: Add `.align 2' directives before
1599 (FMOVD_WORKS): Define on SH5 with FPU.
1600 (set_fpscr): Define on SH5. Remove separate _fpscr_values
1602 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
1604 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
1605 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
1607 (ia_main_table): Ditto.
1608 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
1609 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
1610 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
1611 the definitions from sh.h.
1612 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
1614 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
1615 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
1616 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
1617 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
1618 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
1619 Increment LABEL_NUSES.
1621 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
1623 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
1625 * config/sh/elf.h (SIZE_TYPE): Likewise.
1626 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
1627 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
1628 shcompact_incoming_args): Load switch table addresses using
1630 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
1631 (NO_BUILTIN_SIZE_TYPE): Define.
1632 (SIZE_TYPE): Don't define.
1633 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
1634 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
1635 definition of __SH5__=32 for -m5-compact-nofpu.
1636 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
1638 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
1639 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
1640 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
1641 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
1642 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
1643 (INSN_LENGTH_ALIGNMENT): Likewise.
1644 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1645 * config/sh/sh.md (call, call_value, sibcall): Simplify
1646 copying of non-branch-target register.
1647 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1648 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
1649 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
1650 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1651 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
1652 floating-point values as structs.
1653 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
1654 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
1655 general-purpose register.
1656 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
1657 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
1658 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
1659 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
1660 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
1661 (ENCODE_SECTION_INFO): Enclose variables and constants in
1663 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
1664 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
1665 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
1666 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
1667 only for LABEL_REFs. For SYMBOL_REFs, prepend
1668 SH_DATALABEL_ENCODING to the symbol name.
1669 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
1671 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
1672 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
1674 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
1675 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
1676 (DATALABEL_REF_P): Don't require CONST.
1677 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
1679 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
1680 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
1682 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
1683 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
1684 Use shallow_copy_rtx and PUT_MODE to change the mode of
1685 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
1686 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
1687 on SHmedia using GENERAL_REGs.
1688 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
1689 bltu_media_i): Fix reversion of conditions.
1690 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
1691 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
1692 * config/sh/sh.c (output_far_jump): Save r13 in macl.
1693 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
1694 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
1695 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
1696 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
1697 (GCC_nested_trampoline): Likewise.
1698 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
1699 * config/sh/sh.c (gen_datalabel_ref): Define.
1700 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
1701 (INITIALIZE_TRAMPOLINE): Likewise.
1702 (TRAMPOLINE_ADJUST_ADDRESS): Define.
1703 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
1704 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
1705 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
1706 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
1707 (ic_invalidate): Adjust for SH5.
1708 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
1709 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
1711 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
1712 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
1713 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
1714 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
1715 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
1716 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
1717 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
1718 * config/sh/sh.c (target_reg_operand): Match only target-branch
1719 registers and pseudos that aren't virtual registers.
1720 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
1721 Copy operands that don't match target_reg_operand to pseudos.
1722 (call_media, call_value_media, sibcall_media): Use
1723 target_reg_operand instead of target_operand.
1724 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
1725 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
1726 * config/sh/sh.c (target_reg_operand): Match hardware registers
1727 other than branch-target registers.
1728 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
1729 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
1730 (fpscr_values) [SH5 == 32]: Define.
1731 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
1732 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
1733 Handle function addresses coming in SUBREGs.
1734 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
1735 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
1736 shcompact_return_trampoline): Use datalabel where appropriate.
1737 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
1738 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
1739 general-purpose register to copy one branch-target register to
1741 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
1742 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
1743 SYMBOL_REFs with VOIDmode.
1744 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
1745 bltu_media_i): New insns.
1746 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
1747 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
1748 (INIT_CUMULATIVE_ARGS): Likewise.
1749 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
1750 * machmode.def (V16SFmode): New mode.
1751 * c-common.c (type_for_mode): Support V2SF and V16SF.
1752 * tree.c (build_common_tree_nodes_2): Likewise.
1753 * tree.h (tree_index): Likewise.
1754 * calls.c (emit_call_1): Take args_so_far. Adjust all
1755 callers. Introduce CALL_POPS_ARGS.
1756 * tm.texi (CALL_POPS_ARGS): Document.
1757 * config/sh/crt1.asm: Implement in SHmedia mode.
1758 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
1759 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
1760 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
1761 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
1762 Implement divsi and udivsi in SHmedia mode. Introduce
1763 SHcompact trampolines.
1764 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
1766 (regno_reg_class): Rewrite.
1767 (fp_reg_names): Remove.
1768 (sh_register_names, sh_additional_register_names): New.
1769 (print_operand): Added `u'. Support SUBREGs in addresses.
1770 Add parentheses around shifted CONSTs.
1771 (output_file_start): Output .mode and .abi directives.
1772 (shiftcosts, addsubcosts, multcosts): Adjust.
1773 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
1774 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
1775 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
1776 bytes, not registers. Take into account the need for the
1777 SHcompact incoming args trampoline. Adjust all callers.
1778 (sh_expand_prologue): Take stack_regs into account. Call
1779 incoming args trampoline. Keep stack aligned as per SH5 ABI.
1780 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
1781 stack aligned as per SH5 ABI.
1782 (sh_builtin_saveregs): Support SH5 ABI.
1783 (sh_build_va_list, sh_va_start): Likewise.
1784 (initial_elimination_offset): Take alignment into account.
1785 Compute location of PR according to the SH5 stack frame.
1786 (arith_reg_operand): Reject branch-target registers.
1787 (shmedia_6bit_operand): New.
1788 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
1789 (target_reg_operand): Match DImode only. Accept SUBREGs.
1790 (target_operand): New.
1791 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
1792 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
1793 SIBCALL_REGS for SHmedia.
1794 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
1795 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
1796 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
1797 (TARGET_SWITCHES): New SH5 flags.
1798 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
1799 VALID_REGISTER_P to disable unsupported registers.
1800 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
1801 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
1802 (FUNCTION_ARG_PADDING): Define.
1803 (FASTEST_ALIGNMENT): Adjust.
1804 (SH_REGISTER_NAMES_INITIALIZER): New.
1805 (sh_register_names): Declare.
1806 (DEBUG_REGISTER_NAMES): Define.
1807 (REGISTER_NAMES): Define based on sh_register_names.
1808 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
1809 (sh_additional_register_names): Declare.
1810 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
1811 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
1812 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
1813 (REGISTER_NATURAL_MODE): Define.
1814 (FIRST_PSEUDO_REGISTER): Adjust.
1815 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
1816 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
1817 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
1818 (VECTOR_MODE_SUPPORTED_P): Define.
1819 (REG_CLASS_CONTENTS): Adjust.
1820 (SMALL_REGISTER_CLASSES): Adjust.
1821 (REG_ALLOC_ORDER): Adjust.
1822 (INDEX_REG_CLASS): Adjust.
1823 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
1824 (CONST_OK_FOR_LETTER_P): Adjust.
1825 (PREFERRED_RELOAD_CLASS): Adjust.
1826 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
1827 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
1828 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
1829 (FIRST_FP_PARM_REG): Adjust.
1830 (CALL_POPS_ARGS): Define.
1831 (FUNCTION_ARG_REGNO_P): Adjust.
1832 (struct sh_args): New fields.
1833 (GET_SH_ARG_CLASS): Adjust.
1834 (INIT_CUMULATIVE_ARGS): Adjust.
1835 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
1836 (FUNCTION_ARG_ADVANCE): Adjust.
1837 (FUNCTION_ARG): Adjust.
1838 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
1839 (FUNCTION_ARG_CALLEE_COPIES): Define.
1840 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
1841 (STRICT_ARGUMENT_NAMING): Define.
1842 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
1843 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
1844 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
1845 (SETUP_INCOMING_VARARGS): Adjust.
1846 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
1847 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
1848 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
1849 (SUBREG_OK_FOR_INDEX_P): Adjust.
1850 (EXTRA_CONSTRAINT_S): Update.
1851 (EXTRA_CONSTRAINT_T): New.
1852 (EXTRA_CONSTRAINT): Adjust.
1853 (GO_IF_LEGITIMATE_INDEX): Adjust.
1854 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
1855 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
1857 (MAX_MOVE_MAX): Define.
1859 (CONST_COSTS): Adjust.
1860 (REGISTER_MOVE_COST): Adjust.
1861 (BRANCH_COST): Adjust.
1862 (TEXT_SECTION_ASM_OP): Adjust.
1863 (DBX_REGISTER_NUMBER): Adjust.
1864 (ASM_OUTPUT_DOUBLE_INT): New.
1865 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
1866 (PREDICATE_CODES): Adjust.
1867 (PROMOTE_MODE): Adjust.
1868 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
1869 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
1870 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
1871 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
1872 (DR0_REG, DR2_REG, DR4_REG): Renumber.
1873 (TR0_REG, TR1_REG, TR2_REG): New.
1874 (XD0_REG): Renumber.
1875 (UNSPEC_COMPACT_ARGS): New.
1876 (type): Added pt and ptabs.
1877 (length): Default to 4 on SHmedia. Default pt length to 12
1878 and 20 on SHmedia32 and SHmedia64, respectively.
1879 (pt): New function unit.
1880 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
1881 Add whitespace between operands of SHmedia instructions.
1883 (adddi3_media, addsi3_media): Adjust constraints.
1884 (subsi3) [SHmedia]: Force operand 1 into a register.
1885 (udivsi3_i1_media, udivsi3_i4_media): New.
1886 (udivsi3): Support SHmedia.
1887 (divsi3_i1_media, divsi3_i4_media): New.
1888 (divsi3): Support SHmedia.
1889 (anddi3, iordi3, xordi3): Adjust constraints.
1890 (zero_extendhidi2, zero_extendqidi2): New.
1891 (extendsidi2, extendhidi2, extendqidi2): New.
1892 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
1893 (pop_e, pop_fpul, pop_4): Likewise.
1894 (movsi_media): Support FP and BT registers.
1895 (movsi_media_nofpu): New. Adjust splits to DImode.
1896 (lduw, ldub): Renamed to zero_extend* above.
1897 (movqi_media): Fix typo.
1898 (movdi_media): Support FP and BT registers.
1899 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
1900 (movdi_const_32bit): New.
1901 (shori_media): Require immediate operand. Use `u' for output.
1902 (movdf_media, movsf_media): Simplified.
1903 (movdf_media_nofpu, movsf_media_nofpu): New.
1904 (movdf, movsf): Adjust
1905 (movv2sf, movv2sf, movv16sf): New.
1906 (beq_media, beq_media_i): Adjust constraints. Don't use
1907 scratch BT register.
1908 (bne_media, bne_media_i): Likewise.
1909 (bgt_media, bgt_media_i): Likewise.
1910 (bge_media, bge_media_i): Likewise.
1911 (bgtu_media, bgtu_media_i): Likewise.
1912 (bgeu_media, bgeu_media_i): Likewise.
1913 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
1914 bunordered): Emit jump insn. Force operands to registers when
1916 (jump_media, jump): Simplify.
1917 (call_compact, call_compact_rettramp): New.
1918 (call_value_compact, call_value_compact_rettramp): New.
1919 (call_media, call_value_media): Simplify.
1920 (sibcall_compact, sibcall_media): New.
1921 (call, call_value): Adjust for SHmedia and SHcompact.
1922 (sibcall, sibcall_value, untyped_call): Likewise.
1923 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
1924 (indirect_jump): Adjust for SHmedia.
1925 (casesi_jump_media): New.
1926 (nop): Re-enable for SHmedia.
1927 (call_site): Restrict to SH1.
1928 (casesi): Adjust for SHmedia.
1929 (casesi_shift_media, casesi_load_media): New.
1930 (return): Explicitly use PR register. Call return trampoline
1932 (return_i): Explicitly use PR register.
1933 (shcompact_return_tramp, shcompact_return_tramp_i): New.
1934 (return_media): Adjust.
1935 (shcompact_incoming_args): New.
1937 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
1938 (movstrsi): Disable on SH5.
1939 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
1940 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
1941 (subsf3, subsf3_media): Likewise.
1942 (mulsf3, mulsf3_media, mac_media): Likewise.
1943 (divsf3, divsf3_media): Likewise.
1944 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
1945 (floatsisf2, fux_truncsfsi2): Likewise.
1946 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
1948 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
1949 (cmpunsf_media, cmpsf): Likewise.
1950 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
1951 (abssf2, abssf2_media): Likewise.
1952 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
1953 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
1954 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
1955 (floatsidf2, fix_truncdfsi2): Likewise.
1956 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
1958 (cmpeqdf_media, cmpgtdf_media): Likewise.
1959 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
1960 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
1961 (absdf2, absdf2_media): Likewise.
1962 (extendsfdf2, extendsfdf2_media): Likewise.
1963 (truncsfdf2, truncsfdf2_media): Likewise.
1964 * config/sh/sh64.h: New file.
1965 * config/sh/t-sh64: New file.
1966 * config/sh/shmedia.h: New file.
1967 * config/sh/ushmedia.h: New file.
1968 * config/sh/sshmedia.h: New file.
1969 * configure.in: Added sh64-*-elf.
1970 * configure: Rebuilt.
1971 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
1972 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
1973 (reg_class_from_letter): Use `b' for TARGET_REGS.
1974 (print_operand): Support `%M', `%m', `AND' and
1975 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
1976 (andcosts): Adjust for SHmedia.
1977 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
1979 (target_reg_operand): New function.
1980 * config/sh/sh-protos.h (target_reg_operand): Declare.
1981 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
1982 FP registers on SH5.
1983 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
1985 (TARGET_REGISTER_P): New macro.
1986 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
1987 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
1988 (EXTRA_CONSTRAINT_S): New macro.
1989 (EXTRA_CONSTRAINT): Adjust.
1990 (FLOAT_TYPE_SIZE): Define to 32.
1991 (Pmode): DImode on SHmedia.
1992 (CONST_COSTS): Adjust for SHmedia literals.
1993 (PREDICATE_CODES): Added target_reg_operand.
1994 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
1995 * config/sh/sh.md: Remove all attrs from SHmedia insns.
1996 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
1997 (cmpdi): Accept SHmedia.
1998 (movdicc_false, movdicc_true): New insns.
1999 (movdicc): New expand.
2000 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
2002 (addsi3_media): Match `S' constraint.
2003 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
2004 (negdi2): Expand for SHmedia.
2005 (one_cmpldi2): New expand.
2006 (zero_extendsidi2): Change from expand to insn.
2007 (extendsidi2): Add constraints.
2008 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
2009 LD/ST address. Fix SI immediate loading split.
2010 (movhi_media, movqi_media, lduw, ldub): New insns.
2011 (movhi, movqi): Accept SHmedia.
2012 (shori_media, movdi_media): Relax input constraints. Split
2014 (movdf_media, movsf_media): New insn. New split to movdi.
2015 (movdf, movsf): Match on SHmedia.
2016 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
2017 bgeu_media): New insns and splits. New insns with `_i' suffix.
2018 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
2019 (bunordered): New expand.
2020 (jump_compact): Renamed from `jump'.
2021 (jump_media): New insn.
2023 (call_media, call_value_media): New insns.
2024 (call, call_value): Adjust.
2025 (indirect_jump_compact): Renamed from `indirect_jump'.
2026 (indirect_jump_media): New insn.
2027 (indirect_jump): New expand.
2028 (untyped_call, return): Accept SHmedia.
2029 (return_media): New insn.
2030 (prologue, epilogue, blockage): Accept SHmedia.
2031 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
2032 (sunordered): New expand.
2033 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
2034 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
2035 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
2036 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
2037 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
2038 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
2039 abssf2_media): New insns.
2040 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
2041 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
2042 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
2043 floatdidf2, floatsidf2_media, fix_truncdfdi2,
2044 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
2045 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
2046 absdf2_media): New insns.
2047 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
2048 (extendsfdf2_media, truncdfsf2_media): New insns.
2049 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2050 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
2051 * config/sh/sh.h (CONST_OK_FOR_J): Document.
2052 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
2053 * config/sh/sh.md (adddi3): New expand.
2054 (adddi3_media, adddi3z_media): New insns.
2055 (adddi3_compact): Renamed from adddi3.
2056 (addsi3_media): Use add.l r63 to add constant zero.
2057 (subdi3): New expand.
2058 (subdi3_media): New insn.
2059 (subdi3_compact): Renamed from subdi3.
2060 (mulsidi3): New expand.
2061 (mulsidi3_media): New insn.
2062 (mulsidi3_compact): Renamed from mulsidi3.
2063 (umulsidi3): New expand.
2064 (umulsidi3_media): New insn.
2065 (umulsidi3_compact): Renamed from umulsidi3.
2066 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
2067 (ashlsi3, ashrsi3, lshrsi3): Use them.
2068 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
2069 (ashldi3, ashrdi3, lshrdi3): Use them.
2070 (zero_extendsidi2): New expand.
2071 (extendsidi2): New insn.
2072 (movsi_media): New insn. Split to movdi to load constants.
2073 (movsi): Enable for shmedia.
2074 (movdi_media): New insn. Use shori_media to load wide constants.
2075 (short_media): New insn.
2076 (movdi): Enable for shmedia.
2077 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
2078 * config/sh/sh.h (CPP_SPEC): Added `m5'.
2079 (SUBTARGET_CPP_SPEC): Added `!m5'.
2080 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
2081 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
2082 to all other SH variants.
2083 (TARGET_DEFAULT): Set to SH1_BIT.
2084 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
2085 (BITS_PER_WORD): Raise to 64 on shmedia.
2086 (MAX_BITS_PER_WORD): Change to 64.
2087 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
2088 (INT_TYPE_SIZE): Keep as 32.
2089 (UNITS_PER_WORD): Raise to 8 on shmedia.
2090 (MIN_UNITS_PER_WORD): Keep as 4.
2091 (POINTER_SIZE): Raise to 64 on shmedia.
2092 (CONST_OK_FOR_J): New macro.
2093 (CONST_OK_FOR_LETTER_P): Use it.
2094 (processor_type): Add PROCESSOR_SH5.
2095 * config/sh/sh.md: Conditionalize all expands, insns and
2096 splits to TARGET_SH1.
2098 (addsi3_compact): Renamed from...
2099 (addsi3): Now an expand.
2100 (addsi3_media, subsi3_media): New insns.
2101 (subsi3): Don't negate constants with SHmedia.
2103 * hooks.c: New file.
2104 * hooks.h: New file.
2105 * Makefile.in (HOOKS_H): New.
2106 (TARGET_DEF_H): Added $(HOOKS_H).
2107 (OBJS): Added hooks.o.
2108 (cfgcleanup.o, bb-reorder.o): Added target.h.
2109 (hooks.o): Added dependencies.
2110 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
2111 (TARGET_INITIALIZER): this.
2112 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
2113 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
2114 * bb-reorder.c: Include target.h.
2115 (reorder_basic_blocks): Skip if cannot modify jumps.
2116 * cfgcleanup.c: Include target.h.
2117 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
2119 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2121 * config/mips/mips.md (casesi_internal, casesi_internal_di):
2122 Protect jump delay slot instructions with .set noreorder and
2125 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2127 * config/mips/mips.md (casesi_internal_di): Calculate
2128 the index into the target offset table correctly.
2130 2002-02-08 Richard Henderson <rth@redhat.com>
2132 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
2133 * final.c (output_addr_const): Accept and discard SUBREG.
2134 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
2135 mark them unknown instead.
2136 (simplify_subtraction): Handle RTX_UNKNOWN.
2137 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
2139 2002-02-08 David Edelsohn <edelsohn@gnu.org>
2141 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
2143 2002-02-08 Richard Henderson <rth@redhat.com>
2145 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
2147 2002-02-08 Andreas Jaeger <aj@suse.de>
2149 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
2150 * config/i386/t-linux64: New file.
2152 2002-02-08 Jakub Jelinek <jakub@redhat.com>
2154 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
2155 * c-parse.in (compstmt): Clear last_expr_type.
2157 2002-02-07 Richard Henderson <rth@redhat.com>
2159 * loop.c (strength_reduce): Sink final_value when not
2162 2002-02-07 David O'Brien <obrien@FreeBSD.org>
2164 * config/sparc/freebsd.h: Fix mismatched spec {.
2166 2002-02-07 Richard Henderson <rth@redhat.com>
2168 * cfgrtl.c: Include recog.h and insn-config.h.
2169 (keep_with_call_p): Fix general_operand invocation.
2170 * Makefile.in (cfgrtl.o): Update dependencies.
2172 2002-02-07 Kazu Hirata <kazu@hxi.com>
2174 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
2175 comment. Accept HImode only if TARGET_H8300.
2177 2002-02-07 Eric Christopher <echristo@redhat.com>
2179 * config/mips/crtn.asm: Cleanup #ifdefs.
2181 2002-02-07 Eric Christopher <echristo@redhat.com>
2183 * config/mips/crti.asm: Add changes for mips16. mips16 uses
2184 register 7 as RA instead of $31.
2185 * config/mips/crtn.asm: Ditto.
2186 * config/mips/mips.c (mips_move_2words): Add case for
2187 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
2188 (compute_frame_size): Fix typo.
2189 (save_restore_insns): Ditto. Make documentation about using
2190 register $7 as return register more precise.
2191 (mips_expand_epilogue): Fix comment. Add code to work around not
2192 being able to add to the stack pointer directly.
2193 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
2194 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
2197 2002-02-07 Tom Rix <trix@redhat.com>
2199 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
2200 immediates in ldu and stdu DS opcode field.
2201 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
2202 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
2203 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
2205 2002-02-07 Jeff Sturm <jsturm@one-point.com>
2207 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
2208 offset for stack bias.
2210 2002-02-07 H.J. Lu <hjl@gnu.org>
2212 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
2214 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
2216 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
2218 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
2220 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
2221 * i386.c (x86_order_regs_for_local_alloc): New global function.
2222 * i386.h (REG_ALLOC_ORDER): CLeanup.
2223 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
2225 2002-02-07 Richard Henderson <rth@redhat.com>
2227 PR optimization/2463
2228 * alias.c (find_base_value): Recall base values for fixed hard regs.
2229 * loop.c (loop_regs_update): Don't use single_set on non-insns.
2231 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
2233 * config/mips/mips.md (define_delay) [mips16]: Adjust required
2236 2002-02-06 Richard Henderson <rth@redhat.com>
2239 * stmt.c (resolve_operand_name_1): Take more care with mixed
2240 named and unnamed operands.
2242 2002-02-06 Janis Johnson <janis187@us.ibm.com>
2243 Jan Hubicka <jh@suse.cz>
2245 * loop.c (remove_constant_addition): Avoid clobbering a shared
2248 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
2250 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
2251 * config/s390/t-linux64: New file.
2252 * config/s390/libgcc-glibc.ver: New file.
2254 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
2256 * config/s390/linux64.h: Delete file.
2257 * config/s390/s390x.h: New file.
2258 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
2259 as target header file.
2260 * config/s390/linux.h (TARGET_VERSION): Define depending on
2261 DEFAULT_TARGET_64BIT.
2262 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
2263 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
2264 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
2265 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
2266 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
2267 (EXTRA_SPEC): New define.
2268 * config/s390/s390.h (TARGET_VERSION): Define depending on
2269 DEFAULT_TARGET_64BIT.
2270 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
2272 2002-02-06 Jason Merrill <jason@redhat.com>
2274 * c-decl.c (finish_function): Warn about a non-void function with
2275 no return statement and no abnormal exit.
2276 (current_function_returns_abnormally): New variable.
2277 (start_function): Clear it.
2278 (struct c_language_function): Add returns_abnormally.
2279 (push_c_function_context): Save it.
2280 (pop_c_function_context): Restore it.
2281 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
2282 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
2283 an explicit return type.
2284 * c-tree.h: Declare current_function_returns_abnormally.
2285 (C_FUNCTION_IMPLICIT_INT): New macro.
2286 * c-typeck.c (build_function_call): Set it.
2287 (c_expand_return): Set current_function_returns_value even if the
2290 2002-02-06 Jakub Jelinek <jakub@redhat.com>
2293 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
2294 unsafe for reevaluation.
2296 2002-02-06 Jakub Jelinek <jakub@redhat.com>
2299 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
2300 EXPR_STMT, but COMPOUND_STMT, recurse into it.
2302 2002-02-06 Richard Henderson <rth@redhat.com>
2304 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
2305 be a general_operand. Dest for function value must be a pseudo.
2307 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
2309 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
2310 as SYMBOL_REFs from the constant pool.
2312 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
2314 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
2315 passed by invisible reference.
2317 2002-02-05 Richard Henderson <rth@redhat.com>
2319 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
2321 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
2323 Implement using "base addresses" in insn operands as default.
2324 * config/mmix/mmix.c (mmix_conditional_register_usage): if
2325 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
2326 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
2327 used to read the rtx value.
2328 (mmix_target_asm_function_epilogue): Fix spacing.
2329 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
2330 (mmix_legitimate_address): Ditto.
2331 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
2332 should be loaded with a GETA insn. Don't allocate needless extra
2333 char for nul termination and fix misleading comment.
2334 (mmix_print_operand_address): Handle constants if
2335 TARGET_BASE_ADDRESSES.
2336 (mmix_output_register_setting): Use base addressing if
2337 TARGET_BASE_ADDRESSES and the number of insns is 3.
2338 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
2339 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
2340 to use R as constraint, add LDA to match s.
2341 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
2342 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
2343 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
2344 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
2345 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
2346 order with other fixed registers.
2347 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
2348 other parameter/call-clobbered registers.
2349 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
2350 -mbase-addresses, -mno-base-addresses.
2351 (MMIX Options): Ditto.
2353 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
2355 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
2357 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
2359 * config/rs6000/altivec.h: Change elem to _S_elem.
2361 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
2363 * config/netbsd.h (WCHAR_TYPE): Define.
2364 (WCHAR_TYPE_SIZE): Ditto.
2366 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
2367 (WCHAR_UNSIGNED): Ditto.
2368 (WCHAR_TYPE_SIZE): Ditto.
2370 * config/arm/netbsd.h: Likewise.
2371 * config/i386/netbsd-elf.h: Likewise.
2372 * config/i386/netbsd.h: Likewise.
2373 * config/m68k/netbsd-elf.h: Likewise.
2374 * config/m68k/netbsd.h: Likewise.
2375 * config/ns32k/netbsd.h: Likewise.
2376 * config/sparc/netbsd.h: Likewise.
2377 * config/vax/netbsd.: Likewise.
2379 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
2381 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
2382 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
2383 (TARGET_INITIALIZER): this.
2384 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
2385 (BITFIELD_NBYTES_LIMITED): Markup fix.
2386 * tree.h (default_ms_bitfield_layout_p): Declare.
2387 (record_layout_info): Added prev_field.
2388 * tree.c (default_ms_bitfield_layout_p): New fn.
2389 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
2390 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
2391 * stor-layout.c: Include target.h.
2392 (start_record_layout): Initialize prev_field.
2393 (place_field): Handle MS bit-field layout, and disregard
2394 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
2395 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
2396 * Makefile.in (stor-layout.o): Adjust dependencies.
2398 2002-02-05 Jason Merrill <jason@redhat.com>
2400 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
2402 2002-02-05 Andreas Jaeger <aj@suse.de>
2404 * crtstuff.c: Fix comments.
2406 2002-02-05 Richard Henderson <rth@redhat.com>
2409 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
2410 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
2413 * config/mips/mips.c (function_arg): Handle TImode.
2414 (function_arg_advance): Likewise.
2416 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2418 * config/rs6000/altivec.h (vec_step_help): Rename to
2421 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2423 * config/rs6000/altivec.h: Fix typos.
2425 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
2427 * config/arm/netbsd.h: Correct a comment.
2429 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2431 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
2432 building void typed builtins.
2434 * config/rs6000/altivec.h (vec_ld*): Fix typos.
2435 (vec_step): Implement for C++.
2437 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2439 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
2441 2002-02-04 Richard Henderson <rth@redhat.com>
2443 * combine.c (nonzero_bits): Re-introduce special case for
2444 sp/fp/ap wrt REGNO_POINTER_ALIGN.
2446 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2448 * doc/extend.texi: Warn about unsupported usage of altivec
2451 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
2452 (altivec_predicate_*): New.
2454 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
2455 Add C++ version of vec_*() functions.
2457 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
2458 (bdesc_2arg): Remove altivec predicates.
2459 (altivec_expand_builtin): Handle predicates.
2460 (altivec_init_builtins): Handle predicates.
2461 (altivec_expand_predicate_builtin): New.
2463 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2465 * pa.c (DO_FRAME_NOTES): Move forward.
2466 (store_reg): Revise handling of frame notes.
2467 (load_reg): Likewise.
2468 (set_reg_plus_d): Likewise.
2469 (hppa_expand_prologue): Likewise.
2470 (hppa_expand_epilogue): Likewise.
2472 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2474 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
2476 2002-02-04 Jakub Jelinek <jakub@redhat.com>
2478 PR c/4475, c++/3780:
2479 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
2480 * c-common.h (SWITCH_TYPE): Define.
2481 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
2482 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
2483 Rename spareness variable to sparseness.
2484 (expand_end_case_type): Renamed from expand_end_case, use orig_type
2485 if non-NULL instead of TREE_TYPE (orig_index).
2486 * tree.h (expand_end_case_type): Renamed from expand_end_case.
2487 (expand_end_case): Define using expand_end_case_type.
2488 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
2489 to expand_end_case_type.
2490 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
2492 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2494 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
2495 (BIGGEST_ALIGNMENT): Change to 128.
2497 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2499 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
2501 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2503 * pa.md (call_internal_reg_64bit): Remove unused variable.
2505 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
2507 * config/arm/arm.h (machine_function): Add uses_anonymous_args
2509 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
2510 * config/arm/arm.c (current_function_anonymous_args): Delete,
2511 replace uses with cfun->machine->uses_anonymous_args.
2512 (arm_reorg): Do not reset uses_anonymous_args.
2514 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
2515 any geenral register.
2517 2001-02-04 Bernd Schmidt <bernds@redhat.com>
2519 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
2522 2002-02-04 Richard Henderson <rth@redhat.com>
2524 * combine.c (force_to_mode): Remove STACK_BIAS code.
2525 (nonzero_bits): Likewise. Replace sp/fp special case with
2526 REGNO_POINTER_ALIGN.
2528 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
2529 (HARD_FRAME_POINTER_REGNUM): New.
2530 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
2531 (FIXED_REGS, CALL_USED_REGS): Update.
2532 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
2533 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
2534 (HARD_REGNO_NREGS): Update for SFP.
2535 (STACK_POINTER_OFFSET): Include bias here ...
2536 (FIRST_PARM_OFFSET): ... not here.
2537 (STACK_BIAS): Remove.
2538 (INIT_EXPANDERS): New.
2539 (STARTING_FRAME_OFFSET): Do not include bias.
2540 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
2541 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
2542 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
2543 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
2544 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
2545 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
2546 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
2547 (MUST_SAVE_REGISTER): Likewise.
2548 (sparc_flat_function_prologue): Likewise.
2549 (sparc_flat_function_epilogue): Likewise.
2550 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
2551 (sparc_init_modes): SFP is GENERAL_REGS.
2552 (sparc_builtin_saveregs): SFP does not have bias applied.
2554 2002-02-04 Richard Henderson <rth@redhat.com>
2556 * config/alpha/alpha.c (current_function_is_thunk): Don't check
2557 current_function_is_thunk.
2558 (alpha_sa_mask): Distinguish between current_function_is_thunk
2559 called from ASM_OUTPUT_MI_THUNK and not.
2560 (alpha_does_function_need_gp): Thunks always need gp.
2561 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
2562 (alpha_output_mi_thunk_osf): New.
2563 * config/alpha/alpha-protos.h: Update.
2564 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
2566 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
2568 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
2569 function types, not when they're taken away.
2571 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
2573 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
2574 CODE_LABEL and jump table when replacing a table jump with a
2577 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2579 * config/s390/s390-protos.h (legitimize_la_operand,
2580 s390_secondary_input_reload_class, s390_plus_operand,
2581 s390_expand_plus_operand): Add prototypes.
2583 config/s390/s390.c (s390_secondary_input_reload_class,
2584 s390_plus_operand, s390_expand_plus_operand): New functions.
2586 (struct s390_address): New member 'pointer'.
2587 (s390_decompose_address): Compute it.
2588 (legitimate_la_operand_p): Use it.
2589 (legitimize_la_operand): New function.
2590 (movti, movdi, movdf splitters): Call it.
2592 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
2593 (PREDICATE_CODES): Add s390_plus_operand.
2595 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
2596 (la_ccclobber): Allow GENERAL_REGS as output operand.
2598 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
2599 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
2600 (*la_64, *la_31, reload_indi, reload_insi): ... these.
2602 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2604 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
2605 register names for regular asm () construct.
2607 2002-02-04 Jakub Jelinek <jakub@redhat.com>
2609 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
2612 2002-02-04 Jakub Jelinek <jakub@redhat.com>
2614 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
2617 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
2619 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
2620 constant pool to be identical by string address and index.
2622 2002-02-04 Anthony Green <green@redhat.com>
2624 * output.h (SECTION_OVERRIDE): Define.
2625 * varasm.c (named_section): Obey SECTION_OVERRIDE.
2627 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
2629 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
2630 by existing arm*-*-netbsd* (a.out) target.
2631 (ns32k-*-netbsdelf*): Likewise.
2632 (sparc-*-netbsdelf*): Likewise.
2633 (vax-*-netbsdelf*): Likewise.
2635 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
2637 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
2638 headers and libobjc headers.
2640 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
2642 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
2643 (_mingw.h): Remove duplicate include.
2645 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
2647 * config.gcc: Set cpu_type to m68k for 68010, as well.
2648 (m68010-*-netbsdelf*): New...
2649 (m68k*-*-netbsdelf*): ...targets.
2650 * config/m68k/netbsd-elf.h: New file.
2652 2002-02-02 Kazu Hirata <kazu@hxi.com>
2654 * config/h8300/h8300.c (hand_list): Move inside function_arg.
2656 2002-02-02 Kazu Hirata <kazu@hxi.com>
2658 * config/h8300/h8300.c (h8_push_ops): Move inside
2660 (h8_pop_ops): Likewise.
2661 (h8_move_ops): Likewise.
2663 2002-02-02 Kazu Hirata <kazu@hxi.com>
2665 * config/h8300/h8300.c (os_task): Make it static.
2666 (monitor): Likewise.
2667 (pragma_saveall): Likewise.
2669 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
2671 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
2672 constant is a valid sign-extension for Pmode.
2674 2002-02-02 Kazu Hirata <kazu@hxi.com>
2676 * config/h8300/h8300.c: Fix formatting.
2678 2002-02-02 Kazu Hirata <kazu@hxi.com>
2680 * config/h8300/h8300.md: Fix formatting.
2682 2002-02-02 Kazu Hirata <kazu@hxi.com>
2684 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
2685 predicates of operands[1]. Split the patterns for each
2688 2002-02-02 Kazu Hirata <kazu@hxi.com>
2690 * config/h8300/h8300.md (xor patterns): Tighten the predicates
2691 of operands[1] to register_operand.
2693 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
2695 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
2696 * cpphash.c (_cpp_init_hashtable): Similarly.
2697 * cppinit.c (cpp_create_reader): Default the signed_char flag.
2698 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
2699 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
2700 (cpp_handle_option): Handle the new options.
2701 * cpplex.c (cpp_interpret_charconst): Use new flag.
2702 * cpplib.h (struct cpp_options): New member signed_char.
2703 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
2704 (cpp_options): Handle -fsigned-char and -funsigned-char.
2705 (static_specs): Remove signed_char_spec.
2706 (do_spec1): Don't handle %c.
2707 * system.h: Poison SIGNED_CHAR_SPEC.
2708 * tradcif.y (yylex): Use flag_signed_char.
2709 * tradcpp.h (flag_signed_char): New.
2710 * tradcpp.c (flag_signed_char): New.
2711 (main): Handle new command-line options.
2712 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
2714 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
2715 * avr/avr.h: Remove old comments.
2716 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
2717 (CC1_SPEC): Pass -fsigned-char if -mic*.
2718 (SIGNED_CHAR_SPEC): Remove.
2720 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
2722 2002-02-01 Eric Christopher <echristo@redhat.com>
2724 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
2725 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
2726 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
2727 (ASM_OUTPUT_REG_POP): Ditto.
2729 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
2731 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
2734 2002-02-02 Jakub Jelinek <jakub@redhat.com>
2736 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
2738 2002-02-02 Jakub Jelinek <jakub@redhat.com>
2741 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
2744 2002-02-01 Janis Johnson <janis187@us.ibm.com>
2746 * cfganal.c: Include tm_p.h.
2747 (keep_with_call_p): Fix the test that determines if a register holds
2748 the return value of a call.
2750 2002-02-01 DJ Delorie <dj@redhat.com>
2752 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
2753 we are given conflicting registers, switch to the other one we
2754 had allocated for us.
2755 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
2756 as TImode so we know when the "other" register is available.
2758 2002-02-01 David O'Brien <obrien@FreeBSD.org>
2760 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
2763 2002-02-01 Janis Johnson <janis187@us.ibm.com>
2765 * cfganal.c (keep_with_call_p): New function.
2766 (flow_call_edges_add): Prevent splitting a block between a call and
2767 a single-set instruction that should be kept in the same block.
2769 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
2771 * doc/install.texi (avr): Update outdated URL.
2773 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
2775 * config/stormy16/stormy16.md (pushqi): New.
2779 (movhi): Remove stack operands.
2781 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
2782 nonimmediate_nonstack_operand.
2783 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
2785 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
2788 2002-01-31 Jason Merrill <jason@redhat.com>
2790 * Makefile.in (c-parse.c): Handle .output file.
2791 * objc/Make-lang.in (objc-parse.c): Likewise.
2793 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
2795 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
2796 the -me[lb] option is given. Don't output the default flag
2799 2002-01-31 Zack Weinberg <zack@codesourcery.com>
2801 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
2802 the primary source file; this has not been done yet.
2803 * c-decl.c (c_expand_body): Reset input_filename from
2804 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
2806 2002-01-31 Kazu Hirata <kazu@hxi.com>
2808 * rtlanal.c (subreg_regno_offset): Do not use
2809 SUBREG_REGNO_OFFSET.
2810 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
2811 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
2813 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
2815 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
2816 version rather than GNATS version in --version output.
2818 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
2820 * ifcvt.c (noce_process_if_block): Make a copy of the destination
2821 when copying back from a temporary.
2823 2002-01-30 Richard Henderson <rth@redhat.com>
2825 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
2826 and new_dest are the same.
2828 2002-01-30 Richard Henderson <rth@redhat.com>
2831 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
2832 * rtl.c (note_insn_name): Update.
2833 * emit-rtl.c (remove_unnecessary_notes): Kill it.
2834 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
2835 to perform loop rotation.
2836 (expand_exit_loop_top_cond): New.
2837 * tree.h (expand_exit_loop_top_cond): Declare it.
2838 * c-semantics.c (genrtl_while_stmt): Use it.
2839 (genrtl_for_stmt): Likewise.
2841 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
2843 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
2844 arguments to 64-bit boundaries on 64-bit ABIs.
2846 2002-01-30 Steve Ellcey <sje@cup.hp.com>
2848 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
2850 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
2852 * c-decl.c (grokdeclarator): Handle type being a typedef for an
2855 2002-01-30 David O'Brien <obrien@FreeBSD.org>
2857 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
2858 * config/sparc/sparc_bi.h: Remove file.
2859 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
2861 2002-01-30 Richard Henderson <rth@redhat.com>
2863 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
2865 2002-01-30 Zack Weinberg <zack@codesourcery.com>
2867 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
2869 2002-01-30 Jason Merrill <jason@redhat.com>
2871 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
2872 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
2873 (reg_save): Use DW_CFA_offset_extended_sf instead.
2875 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
2877 2002-01-29 Jakub Jelinek <jakub@redhat.com>
2879 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
2882 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
2884 * rs6000.md ("*call_value_local32"): Remove constraints.
2885 ("*call_value_local64"): Same.
2886 ("*call_value_indirect_nonlocal_aix32"): Same.
2887 ("*call_value_nonlocal_aix32"): Same.
2888 ("*call_value_indirect_nonlocal_aix64"): Same.
2889 ("*call_value_nonlocal_aix64"): Same.
2890 ("*call_value_nonlocal_sysv"): Same.
2892 2002-01-29 Richard Henderson <rth@redhat.com>
2894 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
2896 2002-01-29 Richard Henderson <rth@redhat.com>
2898 * expr.c (force_operand): Ignore flag_pic for detecting pic
2900 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
2901 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
2902 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
2903 instead of open-coded loop.
2904 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
2905 be fixed when in use.
2907 2002-01-29 Richard Henderson <rth@redhat.com>
2909 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
2910 * sched-rgn.c (propagate_deps): Update them.
2911 * sched-deps.c (sched_analyze_insn): Update them. Flush the
2912 clobbers list when either gets too long.
2914 2002-01-29 Jakub Jelinek <jakub@redhat.com>
2916 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
2917 and INDEX_REGS the same as GENERAL_REGS.
2918 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
2920 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
2922 * tree.c (build_nonstandard_integer_type): Correct prototype.
2924 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
2926 * config/s390/s390.md (movstrsico, movstrdix_64,
2927 movstrsix_31): Remove, replace by ...
2928 (movstrdi_short, movstrsi_short, movstrdi_long,
2929 movstrsi_long): ... these. New.
2930 (movstrdi, movstrsi): Adapt.
2932 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
2933 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
2934 Remove unnecessary CC clobber.
2935 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
2936 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
2938 (divmoddi4): Don't partially initialize TImode register.
2940 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
2942 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
2944 2002-01-29 Richard Henderson <rth@redhat.com>
2946 * flow.c (print_rtl_and_abort): Remove.
2947 (print_rtl_and_abort_fcn): Remove.
2948 (verify_local_live_at_start): Use dump_bb instead.
2949 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
2950 (verify_wide_reg_1): Return 2 on mode test failure.
2952 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
2954 PR c/3325, c/3326, c/2511, c/3347
2955 * c-decl.c (enum_decl_context): Remove BITFIELD.
2956 (grokdeclarator): Take bitfield width as an input.
2957 Ensure bitfields are given the correct type. Perform
2958 bitfield width validation with build_bitfield_integer_type
2959 rather than waiting for finish_struct.
2960 (grok_typename, grok_typename_in_parm_context, start_decl,
2961 push_parmdecl, grokfield, start_function): Update calls to
2963 (build_bitfield_integer_type): New function.
2964 (finish_struct): Move bitfield validation to grokdeclarator
2965 and build_bitfield_integer_type.
2966 * tree.c (build_nonstandard_integer_type): New function.
2967 * tree.h (build_nonstandard_integer_type): New prototype.
2969 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
2971 2002-01-29 Jakub Jelinek <jakub@redhat.com>
2974 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
2975 don't ignore unrecognized -W* options.
2976 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
2977 * cpplib.h (cpp_handle_option): Adjust prototype.
2978 * c-decl.c (c_decode_options): Pass 0 as last argument to
2982 * gcc.c (cpp_unique_options): Split from cpp_options.
2983 (cpp_options): Source cpp_unique_options.
2984 (default_compilers): Use cpp_unique_options instead of cpp_options
2985 when used together with cc1_options.
2986 (static_specs): Add cpp_unique_options.
2987 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
2988 when used together with cc1_options.
2990 2002-01-29 Kazu Hirata <kazu@hxi.com>
2992 * config/h8300/h8300-protos.h: Update the prototype of
2994 * config/h8300/h8300.c (output_a_shift): Remove an unused
2995 argument 'insn'. Remove redundant code.
2996 * config/h8300/h8300.md: Adust to the new prototype of
2999 2002-01-29 Kazu Hirata <kazu@hxi.com>
3001 * config/h8300/h8300-protos.h: Update the prototypes of
3002 emit_a_rotate and expand_a_rotate.
3003 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
3004 first argument to 'enum rtx_code'.
3005 (expand_a_rotate): Likewise.
3007 2002-01-28 Kazu Hirata <kazu@hxi.com>
3009 * config/h8300/h8300-protos.h: Update the prototype of
3011 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
3013 * config/h8300/h8300.md: Adjust to the new prototype.
3015 2002-01-28 Kazu Hirata <kazu@hxi.com>
3017 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
3020 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
3022 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
3023 is a fixed register before returning pic_offset_table_rtx.
3024 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
3025 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
3027 2002-01-28 Jason Merrill <jason@redhat.com>
3029 * dwarf2.h: Sync with src version.
3031 2002-01-28 Paul Koning <pkoning@equallogic.com>
3033 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
3035 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
3036 * doc/extend.texi (__builtin_prefetch): Update documentation:
3037 first argument is now const void ptr.
3039 2002-01-28 Kazu Hirata <kazu@hxi.com>
3041 * config/h8300/h8300-protos.h: Remove an unused prototype.
3043 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
3045 * toplev.c (lang_independent_init): Round up identifier size.
3047 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
3049 * config.gcc: Revert previous change.
3051 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
3053 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
3055 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
3057 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
3058 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
3059 other non-elf netbsd config frags.
3060 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
3061 collect2 will does that.
3062 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
3063 shared-lib frobbing will work.
3065 2002-01-28 Kazu Hirata <kazu@hxi.com>
3067 * config/h8300/h8300.h: Fix formatting.
3068 * config/h8300/h8300.md: Likewise.
3070 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
3072 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
3073 the old, removed AAA_standards fix.
3074 * fixinc/fixincl.x: Rebuilt.
3076 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
3078 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
3079 atexit call in crtbegin, hooked in after call to frame_dummy;
3080 register EH before registering __fini__start.
3082 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
3084 * config/rs6000/altivec.h: Remove spurious semicolons.
3086 2002-01-27 Kazu Hirata <kazu@hxi.com>
3088 * config/h8300/h8300.md: Replace dead bit extraction patterns
3089 with ones that work.
3091 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3093 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
3094 if not STRICT_ALIGNMENT.
3095 * rtl.h (MEM_ALIGN): Likewise.
3097 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
3099 * doc/invoke.texi (-fdump-translation-unit): Revert this
3100 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
3102 2002-01-27 Kazu Hirata <kazu@hxi.com>
3104 * config/h8300/h8300.md (define_constants): New.
3105 (anonymous patterns) Use defined constants appropriately.
3107 2002-01-27 Kazu Hirata <kazu@hxi.com>
3109 * config/h8300/h8300.c (function_arg): Remove redundant code.
3111 2002-01-26 Richard Henderson <rth@redhat.com>
3113 * sched-deps.c (reg_pending_uses_head): New.
3114 (reg_pending_barrier): Rename from reg_pending_sets_all.
3115 (find_insn_list): Don't mark inline.
3116 (find_insn_mem_list): Remove.
3117 (add_dependence_list, add_dependence_list_and_free): New.
3118 (flush_pending_lists): Replace only_write param with separate
3119 for_read and for_write parameters. Update all callers. Use
3120 add_dependence_list_and_free.
3121 (sched_analyze_1): Do not add reg dependencies here; just set
3122 the pending bits. Use add_dependence_list.
3123 (sched_analyze_2): Likewise.
3124 (sched_analyze_insn): Replace schedule_barrier_found with
3125 reg_pending_barrier. Add all dependencies for pending reg
3126 uses, sets, and clobbers.
3127 (sched_analyze): Don't add reg dependencies for calls, just
3128 set pending bits. Use regs_invalidated_by_call. Treat
3129 sched_before_next_call as a normal list, not a fake insn.
3130 (init_deps): No funny init for sched_before_next_call.
3131 (free_deps): Free pending mems lists. Don't zero reg_last.
3132 (init_deps_global): Init reg_pending_uses.
3133 (finish_deps_global): Free it.
3134 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
3135 (find_insn_mem_list): Remove.
3136 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
3137 (propagate_deps): Use them. Zero temp mem lists.
3139 2002-01-26 Richard Henderson <rth@redhat.com>
3141 * Makefile.in (CRTSTUFF_CFLAGS): New.
3142 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
3143 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
3144 crtstuff.c instead of alpha assembly version.
3145 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
3146 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
3147 not FORCE_{INIT,FINI}_SECTION_ALIGN.
3148 (__do_global_dtors_aux): Mark used.
3149 (frame_dummy, __do_global_ctors_aux): Mark used.
3150 (fini_dummy, init_dummy): Remove.
3152 * config/alpha/crtbegin.asm: Remove file.
3153 * config/alpha/crtend.asm: Remove file.
3154 * config/alpha/t-crtbe: Remove file.
3155 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
3156 (LINK_EH_SPEC): New.
3158 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
3159 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
3160 calling constructors.
3161 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
3163 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
3164 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
3165 CRT_END_INIT_DUMMY hack.
3166 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
3167 FORCE_{INIT,FINI}_SECTION_ALIGN.
3169 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
3170 FORCE_{INIT,FINI}_SECTION_ALIGN.
3172 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
3173 invocation sequence.
3174 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
3176 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
3177 (FORCE_CODE_SECTION_ALIGN): New.
3179 2002-01-26 Richard Henderson <rth@redhat.com>
3181 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
3183 2002-01-26 Richard Henderson <rth@redhat.com>
3185 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
3186 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
3188 2002-01-26 Kazu Hirata <kazu@hxi.com>
3190 * config/h8300/h8300.md: Remove bit extraction patterns that
3191 cannot be triggered.
3192 Restrict each bit extraction pattern to a variant on which the
3195 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
3197 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
3199 2002-01-26 Kazu Hirata <kazu@hxi.com>
3201 * config/h8300/h8300.md: Remove bit test patterns that cannot
3203 Restrict each bit test pattern to a variant on which the
3206 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3208 * builtins.c (expand_builtin_strncat): Remove redundant check for
3211 2002-01-25 David O'Brien <obrien@FreeBSD.org>
3213 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
3215 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
3218 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
3220 * dbxout.c (dbxout_init): Use assemble_name rather than just
3221 stripping off the first character.
3222 (dbxout_source_file): Likewise.
3224 2002-01-25 DJ Delorie <dj@redhat.com>
3226 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
3227 using rtx_equal_p, not by comparing pointers.
3229 2002-01-25 Steve Ellcey <sje@cup.hp.com>
3231 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
3232 for PIC_OFFSET_TABLE_REGNUM.
3233 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
3235 2002-01-25 David O'Brien <obrien@FreeBSD.org>
3237 * config.gcc (x86_64-*-freebsd*): New target.
3238 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
3240 (i[34567]86-*-freebsd*): Don't include svr4.h.
3241 * config/i386/freebsd64.h: New file.
3243 2002-01-25 Douglas B Rupp <rupp@gnat.com>
3245 * config/alpha/x-vms (version): Make static.
3247 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
3248 in previous checkin.
3250 * Makefile.in (install-headers-cp): New target.
3251 * config.gcc (alpha-dec-*vms*): Install headers with
3254 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
3256 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
3259 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3261 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
3262 of compare_tree_int.
3263 (expand_builtin_strncat): Likewise.
3264 * c-decl.c (finish_struct): Use tree_low_cst.
3265 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
3266 * tree.c (compare_tree_int): Likewise.
3268 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
3270 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
3271 adjustments even if they are implemented by more than two insns.
3273 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
3275 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
3276 * df.h (struct ref): Kill B.
3277 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
3279 * basic-block.h (PROP_EQUAL_NOTES): New flag.
3280 * flow.c (propagate_one_insn): Use it.
3281 (mark_used_regs): Handle NIL.
3283 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
3285 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
3288 2002-01-25 David Edelsohn <edelsohn@gnu.org>
3290 * rs6000.md (prefetch): Make address V4SI mode so that the address
3291 is restricted to legitimate form for instruction.
3293 2002-01-25 Bob Wilson <bob.wilson@acm.org>
3295 * doc/install.texi (xtensa-*-elf): New target.
3296 (xtensa-*-linux*): New target.
3297 * doc/contrib.texi: Add myself.
3299 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
3301 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
3302 purpose register to hold an SImode (or smaller) value.
3304 2002-01-25 Jakub Jelinek <jakub@redhat.com>
3306 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
3308 * crtstuff.c: Likewise.
3310 2002-01-25 Kazu Hirata <kazu@hxi.com>
3312 * config/h8300/h8300.md (negation patterns): Tighten
3313 predicates to register_operand.
3315 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
3317 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
3320 * builtins.c (expand_builtin_prefetch): Same.
3322 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3324 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
3327 2002-01-24 Kazu Hirata <kazu@hxi.com>
3329 * config/h8300/h8300.c (print_operand): Remove support for
3330 operand character 'A'.
3331 * config/h8300/h8300.md (three anonymous patterns): Replace
3332 operand character 'A' with either 'T' or 'S'.
3334 2002-01-24 Kazu Hirata <kazu@hxi.com>
3336 * config/h8300/h8300.c (print_operand): Remove support for
3337 operand character 'U'.
3339 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
3341 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
3343 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
3345 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
3346 values to be assigned to the stack pointer.
3348 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
3350 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
3351 to const_double needs to be done right for big-endian systems.
3353 2002-01-24 Jason Merrill <jason@redhat.com>
3356 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
3357 to can_throw_internal.
3359 2002-01-23 Richard Henderson <rth@redhat.com>
3361 * fold-const.c (fold): Change UINT_MAX test to check vs precision
3362 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
3364 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3366 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
3367 (symGOT2reg): Use them, then set as GOT value as unchanging.
3368 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
3369 as a temporary, if possible.
3370 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
3371 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
3373 2002-01-23 Kazu Hirata <kazu@hxi.com>
3375 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
3376 accept to accept 0x80 as operands[2].
3378 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3380 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
3382 2002-01-23 Richard Henderson <rth@redhat.com>
3384 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
3386 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
3388 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
3389 (parmlist_or_identifiers_1): Verify that only a parmlist follows
3392 2002-01-23 Richard Henderson <rth@redhat.com>
3394 * expr.c (move_by_pieces_1): Extend size before negation.
3396 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
3397 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
3398 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
3399 * config/m68k/t-m68kelf: Likewise.
3401 2002-01-23 Bob Wilson <bob.wilson@acm.org>
3403 * config/xtensa/elf.h: New file.
3404 * config/xtensa/lib1funcs.asm: New file.
3405 * config/xtensa/lib2funcs.S: New file.
3406 * config/xtensa/linux.h: New file.
3407 * config/xtensa/t-xtensa: New file.
3408 * config/xtensa/xtensa-config.h: New file.
3409 * config/xtensa/xtensa-protos.h: New file.
3410 * config/xtensa/xtensa.c: New file.
3411 * config/xtensa/xtensa.h: New file.
3412 * config/xtensa/xtensa.md: New file.
3413 * config.gcc (xtensa-*-elf*): New target.
3414 (xtensa-*-linux*): New target.
3415 * cse.c (canon_hash): Compare rtx pointers instead of register
3416 numbers. This is required for the Xtensa port.
3417 * integrate.c (copy_insn_list): Handle case where the static
3418 chain is in memory and the memory address has to be copied to
3420 * doc/invoke.texi (Option Summary): Add Xtensa options.
3421 (Xtensa Options): New node.
3422 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
3424 2002-01-23 Zack Weinberg <zack@codesourcery.com>
3426 * diagnostic.c (internal_error): Do ICE suppression only
3427 when ENABLE_CHECKING is not defined.
3429 * c-typeck.c (require_complete_type): Return error_mark_node
3430 if type is error_mark_node.
3432 2002-01-23 Janis Johnson <janis187@us.ibm.com>
3434 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
3435 -Os and issue a warning.
3437 2002-01-23 Zack Weinberg <zack@codesourcery.com>
3439 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
3440 current (lack of) need for host configuration by hand.
3442 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
3443 references. Documentation of some target macros moved from
3444 hostconfig.texi to tm.texi.
3446 2002-01-23 Will Cohen <wcohen@redhat.com>
3448 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
3451 2002-01-23 Kazu Hirata <kazu@hxi.com>
3453 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
3456 2002-01-23 Jason Merrill <jason@redhat.com>
3458 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
3460 * function.c (assign_parms): Don't put args of inline functions
3461 into registers when not optimizing.
3463 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
3465 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
3466 (prologue_use): New pattern.
3467 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
3468 preference to gen_rtx_USE.
3469 (thumb_expand_prologue): Use gen_prologue_use in preference to
3471 (thumb_expand_epilogue): Use gen_prologue_use in preference to
3474 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
3476 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
3478 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
3481 * doc/extend.texi: Correct documentation of __alignof__.
3483 2002-01-22 Zack Weinberg <zack@codesourcery.com>
3485 * params.h: Rename arguments of DEFPARAM so that it will be
3486 recognized as a translation keyword.
3488 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
3490 * extend.texi: Document altivec functions.
3491 Fix N-bit adjectives in X86 builtin documentation.
3493 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
3495 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
3496 auto_inc_dec values.
3498 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
3500 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
3502 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
3504 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
3506 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
3508 2002-01-22 Richard Henderson <rth@redhat.com>
3510 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
3511 copy_insn not copy_rtx.
3513 2002-01-23 Alan Modra <amodra@bigpond.net.au>
3515 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
3516 "nonzero" as that might add "1" bits. Ensure "constop" is
3517 properly sign extened.
3518 (force_to_mode): Tweak for sign extended constop.
3520 2002-01-22 Richard Henderson <rth@redhat.com>
3522 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
3523 for_each_rtx instead of assuming we're already looking at the MEM.
3524 (split_small_symbolic_mem_operand): Likewise.
3525 * config/alpha/alpha.h (PREDICATE_CODES): Update.
3526 * config/alpha/alpha.md (small symbolic memory splitters): Update.
3528 2002-01-22 Richard Henderson <rth@redhat.com>
3530 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
3531 sequence number for the literal.
3532 (divmoddi_internal_er): Likewise.
3534 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
3537 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
3538 in LIBICONV variable.
3539 * configure: Regenerated.
3541 2002-01-22 Krister Walfridsson <cato@df.lth.se>
3543 * dependence.c (build_def_use): Remove array_idx.
3545 * dwarfout.c (last_filename): Remove.
3546 (output_compile_unit_die): Remove last_filename.
3548 2002-01-22 Roger Sayle <roger@eyesopen.com>
3549 Richard Henderson <rth@redhat.com>
3552 * fold-const.c (fold): Optimize unsigned comparisons against
3553 UINT_MAX (and similar unsigned constants).
3555 2002-01-22 Janis Johnson <janis187@us.ibm.com>
3557 * Makefile.in (loop.o): Depend on OPTABS_H.
3558 * loop.c (emit_prefetch_instructions): Check the prefetch operand
3559 against the predicate.
3562 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
3563 for the address operand.
3565 2002-01-22 Richard Henderson <rth@redhat.com>
3567 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
3569 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
3572 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
3575 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
3577 * config.gcc (x86_64-*-netbsd*): New target.
3578 * config/i386/netbsd64.h: New file.
3580 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
3582 * regrename.c (kill_value): Fix typo.
3584 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
3586 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
3588 * config/rs6000/rs6000.h: Same.
3590 * function.c (instantiate_virtual_regs): Remove
3591 STARTING_FRAME_PHASE.
3592 (assign_stack_local_1): Same.
3593 Calculate frame phase.
3595 2002-01-22 Nick Clifton <nickc@redhat.com>
3597 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
3598 variable declaration to outer scope in order to simplify
3600 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
3601 arm_hard_regno_mode_ok.
3602 * config/arm/arm-protos.h: Add a prototype for
3603 arm_hard_regno_mode_ok.
3604 * config/arm/arm.c (soft_df_operand): Remove now redundant
3605 check for DImode values using IP_REGNUM.
3606 (nonimmediate_soft_df_operand): Remove now redundant check for
3607 DImode values using IP_REGNUM.
3608 (arm_hard_regno_mode_ok): New function. New check: make sure
3609 that DImode values are not stored in IP_REGNUM.
3611 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
3613 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
3615 2002-01-22 Jason Merrill <jason@redhat.com>
3617 * c-semantics.c (genrtl_compound_stmt): Only check nesting
3618 consistency if this COMPOUND_STMT is scoped.
3620 2002-01-22 Kazu Hirata <kazu@hxi.com>
3622 * predict.c: Fix formatting.
3623 * print-tree.c: Likewise.
3624 * protoize.c: Likewise.
3627 * sbitmap.h: Likewise.
3629 * sched-deps.c: Likewise.
3630 * sched-vis.c: Likewise.
3631 * sdbout.c: Likewise.
3632 * sibcall.c: Likewise.
3634 * ssa-ccp.c: Likewise.
3635 * ssa-dce.c: Likewise.
3637 * stor-layout.c: Likewise.
3638 * system.h: Likewise.
3640 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3642 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
3643 if fits in bounds of base type.
3645 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
3646 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
3647 (add_bound_info, default): If can't find a context, make a
3649 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
3651 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
3653 * c-typeck.c (parser_build_binary_op): If result from
3654 build_binary_op is ERROR_MARK just return error_mark_node without
3657 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
3659 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
3660 Split a.out-specific bits into...
3661 * config/netbsd-aout.h: ...this.
3662 * config/netbsd-elf.h: New file.
3663 * config/alpha/netbsd-elf.h: Remove.
3664 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
3665 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
3666 (STARTFILE_SPEC): Remove redundant definition.
3667 (ENDFILE_SPEC): Likewise.
3668 (LINK_SPEC): Likewise.
3669 (CPP_SPEC): Likewise.
3670 (ASM_SPEC): Likewise.
3671 (LIB_SPEC): Likewise.
3672 (SWITCH_TAKES_ARG): Likewise.
3673 (TARGET_MEM_FUNCTIONS): Likewise.
3674 (CPP_PREDEFINES): Redefine.
3675 (ASM_FINAL_SPEC): Remove redefinition.
3676 (ASM_COMMENT_START): Redefine.
3677 (FUNCTION_PROFILER): Define.
3678 (TARGET_VERSION): Redefine.
3679 Comment and formatting cleanup.
3680 * config/i386/netbsd.h: Include <netbsd-aout.h>.
3681 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
3682 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
3683 big- or little-endian.
3684 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
3685 * config.gcc (*-*-netbsd*): Add definitions common to all
3687 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
3688 gnu_ld definitions. Add netbsd-elf.h to and remove
3689 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
3690 tmake_file, and don't lose previous tmake_file contents.
3691 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
3692 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
3693 gnu_ld definitions. Add netbsd-elf.h to tm_file.
3694 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
3695 (mipsel-*-netbsd*): Rename this to...
3696 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
3697 mips/little.h to tm_file for mips*el-*.
3698 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
3699 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
3700 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
3702 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
3704 * pa-protos.h (reg_before_reload_operand): New function prototype.
3705 * pa.c (reg_before_reload_operand): New function implementation.
3706 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
3709 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3711 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
3713 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
3715 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
3716 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
3717 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
3718 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
3719 (ENDFILE_SPEC): Undefine.
3720 (STARTFILE_SPEC): Redefine for PA.
3722 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3724 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
3726 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
3728 * config.gcc: Add entries to supported PowerPC --with-cpu
3731 2002-01-21 Jakub Jelinek <jakub@redhat.com>
3733 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
3734 true for 64-bit mode only SSE registers in 32-bit mode.
3736 2002-01-21 Kazu Hirata <kazu@hxi.com>
3738 * unwind-dw2.c: Fix formatting.
3739 * unwind-dw2-fde.c: Likewise.
3740 * unwind-dw2-fde.h: Likewise.
3741 * unwind-pe.h: Likewise.
3742 * varasm.c: Likewise.
3743 * varray.h: Likewise.
3745 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
3747 Remove workaround for register stack overwrite bug in mmix.
3748 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
3749 support for TARGET_REG_STACK_FILL_BUG.
3750 * config/mmix/mmix.h: Remove member has_call_without_parameters.
3751 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
3753 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
3754 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
3755 -mno-reg-stack-fill-bug-workaround.
3756 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
3757 machine member has_call_without_parameters.
3758 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
3759 -mreg-stack-fill-bug-workaround and
3760 -mno-reg-stack-fill-bug-workaround.
3761 (MMIX Options): Ditto.
3763 2002-01-21 Kazu Hirata <kazu@hxi.com>
3765 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
3767 Remove redundant code.
3769 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
3771 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
3772 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
3773 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
3774 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
3775 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
3776 out target macro definitions and non-target-specific comments
3777 mostly taken from old versions of the manual.
3779 2002-01-20 Kazu Hirata <kazu@hxi.com>
3781 * config/h8300/h8300.h: Fix comment formatting.
3782 * config/ia64/aix.h: Likewise.
3783 * config/ia64/ia64-protos.h: Likewise.
3784 * config/ia64/ia64.c: Likewise.
3785 * config/ia64/ia64.h: Likewise.
3786 * config/ia64/ia64intrin.h: Likewise.
3787 * config/ia64/linux.h: Likewise.
3788 * config/ia64/unwind-aix.c: Likewise.
3789 * config/ia64/unwind-ia64.c: Likewise.
3791 2002-01-20 Kazu Hirata <kazu@hxi.com>
3793 * config/h8300/h8300.c: Revise comments about shift code.
3795 2002-01-20 Kazu Hirata <kazu@hxi.com>
3797 * config/h8300/h8300.c (function_arg): Update a comment.
3799 2002-01-20 Kazu Hirata <kazu@hxi.com>
3801 * config/h8300/h8300.md: Update the comments at the beginning
3804 2002-01-20 Kazu Hirata <kazu@hxi.com>
3806 * config/i370/i370.c: Fix comment formatting.
3807 * config/i370/i370.h: Likewise.
3808 * config/i370/i370.md: Likewise.
3809 * config/i370/linux.h: Likewise.
3811 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3813 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
3815 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
3816 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
3819 2002-01-20 Graham Stott <grahams@redhat.com>
3821 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
3823 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
3825 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
3827 2002-01-19 Tom Rix <trix@redhat.com>
3829 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
3831 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
3833 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
3835 * function.c (assign_stack_local_1): Adjust x_frame_offset with
3836 STARTING_FRAME_PHASE.
3837 (STARTING_FRAME_PHASE): New.
3838 (instantiate_virtual_regs): Check saneness of
3839 STARTING_FRAME_PHASE.
3841 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
3843 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
3845 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
3847 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
3849 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
3850 be used for bootstrapping GCC 3.0.
3852 2002-01-18 Kazu Hirata <kazu@hxi.com>
3854 * config/h8300/h8300.md: Fix an insn length.
3856 2002-01-18 Kazu Hirata <kazu@hxi.com>
3858 * bitmap.h: Fix comment formatting.
3859 * combine.c: Likewise.
3860 * cppfiles.c: Likewise.
3861 * c-pragma.h: Likewise.
3862 * c-typeck.c: Likewise.
3864 * dwarf2out.c: Likewise.
3865 * function.c: Likewise.
3867 * genattrtab.c: Likewise.
3868 * gthr-win32.h: Likewise.
3869 * haifa-sched.c: Likewise.
3870 * predict.c: Likewise.
3871 * rtlanal.c: Likewise.
3873 * unwind-dw2-fde.h: Likewise.
3874 * unwind-pe.h: Likewise.
3875 * vmsdbgout.c: Likewise.
3877 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3879 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
3880 if type_required and passed decl.
3882 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
3884 * config.gcc (cpu_type): Include altivec.h in powerpc
3888 * config/rs6000/altivec.h: New.
3890 2002-01-17 David Edelsohn <edelsohn@gnu.org>
3892 * doc/install.texi (*-ibm-aix*): Update assembler and exception
3893 handling information.
3894 * doc/trouble.texi (Interoperation): Add libstdc++ information
3896 (Misunderstandings): Add template instantiation and static template
3897 member information for AIX.
3899 2002-01-17 Jason Merrill <jason@redhat.com>
3901 * dbxout.c (dbxout_type): Support const and volatile.
3903 * except.c (add_partial_entry): Remove backwards compatibility code.
3904 (end_protect_partials): Likewise.
3906 2002-01-17 Jakub Jelinek <jakub@redhat.com>
3908 * config/ia64/ia64.md (prologue_use): New.
3909 * config/ia64/ia64.c (ia64_expand_prologue): Use
3910 gen_prologue_use instead of gen_rtx_USE.
3911 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
3912 as CODE_FOR_pred_rel_mutex.
3913 (ia64_sched_reorder2): Likewise.
3915 2002-01-16 Eric Christopher <echristo@redhat.com>
3917 * config/mips/r3900.h: Reformat.
3918 (SUBTARGET_CPP_SIZE_SPEC): Remove.
3919 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
3920 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
3921 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
3922 * config/mips/t-elf: Remove mips3 multilib.
3924 2002-01-16 H.J. Lu <hjl@gnu.org>
3926 * config/mips/linux.h: Include "mips/abi64.h".
3928 2002-01-16 H.J. Lu <hjl@gnu.org>
3930 * config/mips/t-linux: New.
3932 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
3934 * config/mips/linux.h: Don't include "gofast.h".
3935 (INIT_SUBTARGET_OPTABS): Removed.
3937 2002-01-16 Kazu Hirata <kazu@hxi.com>
3939 * config/h8300/h8300-protos.h: Replace emit_a_shift with
3941 * config/h8300/h8300.c: Likewise.
3942 * config/h8300/h8300.md: Likewise.
3944 2002-01-16 Kazu Hirata <kazu@hxi.com>
3946 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
3947 spaces after an opcode name.
3948 (pushqi1_h8300hs): Likewise.
3949 (pushhi1_h8300hs): Likewise.
3951 2002-01-16 Kazu Hirata <kazu@hxi.com>
3953 * doc/extend.texi: Replace "option" with "attribute"
3956 2002-01-16 Jakub Jelinek <jakub@redhat.com>
3958 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
3959 (and:DI () (const_int -8)).
3960 (split_small_symbolic_mem_operand): Split
3961 (mem (and:DI () (const_int -8)).
3963 2002-01-16 Jakub Jelinek <jakub@redhat.com>
3966 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
3967 same way as TYPE_IMUL.
3968 (ultrasparc_sched_reorder): Likewise.
3969 * config/sparc/sparc.md (type): Add comment to update
3970 ultrasparc_sched_reorder when making changes.
3972 2002-01-16 Kazu Hirata <kazu@hxi.com>
3974 * doc/invoke.texi: Change the dump file name of block
3975 reordering pass from 28.bbro to 29.bbro.
3978 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
3980 * i386.md (minsf splitter): Fix pasto.
3982 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
3984 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
3985 to frame pointer initialisation instruction.
3986 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
3987 initialisation instruction.
3988 (soft_df_operand): Do not accept the IP register.
3989 (nonimmediate_soft_df_operand): Do not accept the IP register.
3991 2002-01-16 Jakub Jelinek <jakub@redhat.com>
3994 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
3995 MASK_V8 being both set.
3997 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
3999 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
4000 insn for GOT register; add REG_MAYBE_DEAD notes instead.
4001 config/s390/s390.md (call, call_value): Add GOT register to
4002 CALL_INSN_FUNCTION_USAGE where needed.
4003 (call_exp, call_value_exp): New.
4005 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
4007 * config/arm/arm.c: General formatting tidy up.
4009 2002-01-16 Graham Stott <grahams@redhat.com>
4011 * calls.c (try_to_integrate): Use "(size_t)" intermediate
4012 cast and when casting an integer literal to "rtx" pointer.
4013 (expand_call): Likewise.
4014 * flow.c (try_pre_increment): Likewise.
4015 (find_use_as_address): Likewise.
4016 * integrate.c (expand_iline_function): Likewise.
4017 * regmove.c (try_auto_increment): Likewise.
4019 2002-01-16 Graham Stott <grahams@redhat.com>
4021 * sched-rgn.c (passed): Use sbitmap_free.
4024 (in_queue): Likewise.
4025 (in_stack): Likewise.
4027 2002-01-15 Eric Christopher <echristo@redhat.com>
4029 * flow.c (propagate_one_insn): Change to use fatal_insn.
4031 2002-01-15 Kazu Hirata <kazu@hxi.com>
4033 * expmed.c (extract_fixed_bit_field): Remove unused code.
4034 * system.h: Poison SLOW_ZERO_EXTEND.
4035 * doc/tm.texi: Remove.
4036 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
4037 * config/arm/arm.h: Likewise.
4038 * config/avr/avr.h: Likewise.
4039 * config/clipper/clipper.h: Likewise.
4040 * config/convex/convex.h: Likewise.
4041 * config/d30v/d30v.h: Likewise.
4042 * config/dsp16xx/dsp16xx.h: Likewise.
4043 * config/elxsi/elxsi.h: Likewise.
4044 * config/fr30/fr30.h: Likewise.
4045 * config/h8300/h8300.h: Likewise.
4046 * config/i370/i370.h: Likewise.
4047 * config/i386/i386.h: Likewise.
4048 * config/m68k/m68k.h: Likewise.
4049 * config/mips/mips.h: Likewise.
4050 * config/ns32k/ns32k.h: Likewise.
4051 * config/pdp11/pdp11.h: Likewise.
4052 * config/pj/pj.h: Likewise.
4053 * config/s390/s390.h: Likewise.
4054 * config/sh/sh.h: Likewise.
4055 * config/stormy16/stormy16.h: Likewise.
4056 * config/v850/v850.h: Likewise.
4057 * config/vax/vax.h: Likewise.
4058 * config/we32k/we32k.h: Likewise.
4060 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
4062 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
4063 (altivec_lvsl): Change constraint to b.
4064 (altivec_lvsr): Same.
4065 (altivec_lvebx): Same.
4066 (altivec_lvehx): Same.
4067 (altivec_lvewx): Same.
4068 (altivec_lvxl): Same.
4069 (altivec_lvx): Same.
4070 (altivec_stvx): Add parallel.
4071 (altivec_stvxl): Same.
4072 (altivec_stvehx): Same.
4073 (altivec_stvebx): Same.
4074 (altivec_stvebx): Same.
4076 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
4078 * config.gcc: Change altivec.h to altivec-defs.h.
4080 * config/rs6000/altivec.h: Delete.
4082 * config/rs6000/altivec-defs.h: Add.
4084 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
4086 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
4089 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
4090 less than or equal to eight bytes.
4092 * vax.md (andsi3): Remove constraints and change SET destination
4093 operand type to nonimmediate_operand.
4094 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
4095 when it is a CONST_INT.
4097 2002-01-15 Jason Merrill <jason@redhat.com>
4099 * c-common.def (FILE_STMT): New code.
4100 * c-common.c (statement_code_p): It's a statement.
4101 * c-common.h (stmt_tree_s): Add x_last_filename.
4102 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
4103 (last_expr_filename): New macro.
4104 * c-semantics.c (begin_stmt_tree): Initialize it.
4105 (add_stmt): If the filename changed, also insert a
4107 (expand_stmt): Handle seeing one.
4109 2002-01-15 Eric Christopher <echristo@redhat.com>
4111 * flow.c (propagate_one_insn): Add error message and print out
4114 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
4116 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
4117 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
4118 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
4119 TRAMPOLINE_ALIGNMENT.
4120 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
4122 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
4123 PCC_BITFIELD_TYPE_MATTERS.
4124 * config/interix.h (STDC_VALUE): Remove. Use
4125 STDC_0_IN_SYSTEM_HEADERS.
4126 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
4127 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
4128 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
4130 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
4132 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
4133 not work on this platform currently.
4135 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
4137 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
4138 readonly_warning in _().
4140 2002-01-15 Douglas B Rupp <rupp@gnat.com>
4142 * gcc.c (delete_if_ordinary): Backout previous change.
4144 2002-01-15 Kazu Hirata <kazu@hxi.com>
4146 * config/h8300/h8300.c (print_operand): Remove support for
4147 unused operand characters.
4149 * read-rtl.c: Fix formatting.
4151 * recog.c: Likewise.
4152 * regclass.c: Likewise.
4153 * regmove.c: Likewise.
4154 * reg-stack.c: Likewise.
4155 * reload1.c: Likewise.
4156 * rtlanal.c: Likewise.
4158 2002-01-15 Kazu Hirata <kazu@hxi.com>
4160 * config/i386/i386.c: Fix formatting.
4162 2002-01-15 Jakub Jelinek <jakub@redhat.com>
4164 * c-typeck.c (process_init_element): Don't save_expr
4165 COMPOUND_LITERAL_EXPR if just its initializer will be used.
4167 2002-01-15 David Edelsohn <edelsohn@gnu.org>
4169 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
4170 emit optional traceback table if optimize_size or TARGET_ELF.
4171 * config/rs6000/rs6000.md (prefetch): New.
4173 2002-01-15 Andreas Jaeger <aj@suse.de>
4175 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
4177 2002-01-15 Kazu Hirata <kazu@hxi.com>
4179 * mips-tfile.c: Fix formatting.
4181 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
4183 * unroll.c (final_reg_note_copy): Fix previous commit.
4185 2002-01-14 Kazu Hirata <kazu@hxi.com>
4187 * config/h8300/h8300-protos.h: Remove the prototype for
4189 * config/h8300/h8300.c (eq_operator): Remove.
4191 2002-01-14 Richard Henderson <rth@redhat.com>
4193 * config/i386/i386.md (prefetch): Tidy.
4194 (prefetch_3dnow): Fix locality operand.
4196 2002-01-14 Richard Henderson <rth@redhat.com>
4198 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
4199 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
4201 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
4203 * reload1.c (reload_combine): Pass reg_sum replacement through
4204 copy_rtx in loop performing multiple changes.
4206 2002-01-14 Jakub Jelinek <jakub@redhat.com>
4208 * except.c (remove_unreachable_regions): New.
4209 (free_eh_status): Clear exception_handler_labels.
4210 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
4211 (find_exception_handler_labels): Don't add the same label more than
4213 (remove_exception_handler_label): Don't die if
4214 find_exception_handler_labels hasn't been called for the current
4217 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
4219 * toplev.c (rest_of_compilation): Rebuild jump labels after
4222 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
4224 * doc/extend.texi: Move documentation of X86 built-in functions
4226 * doc/invoke.texi: From here.
4227 * doc/sourcebuild.texi: Document location of documentation for
4228 machine built-in functions.
4230 2002-01-13 Christopher Faylor <cgf@redhat.com>
4232 * cppfiles.c (TEST_THRESHOLD): New macro.
4233 (SHOULD_MMAP): Ditto.
4234 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
4237 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
4239 * unroll.c (final_reg_note_copy): Properly handle
4241 (unroll_loops): Fix LOOP_CONDITION heuristics.
4243 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
4245 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
4246 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
4248 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
4250 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
4253 2002-01-14 Tom Rix <trix@redhat.com>
4255 * config/rs6000/rs6000.md: Fix typo with sradi.
4257 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
4259 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
4260 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
4261 (clrstrdi, clrstrsi): Adapt callers.
4263 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
4265 (movti splitter): Never use register 0 as base register.
4267 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
4269 * combine.c (simplify_shift_const): Always generate new rtx
4270 for shift expression instead of reusing given expression.
4272 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4274 * config/alpha/alpha.c (alpha_expand_mov): Don't call
4275 alpha_legitimize_address unless mode is Pmode.
4277 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
4279 * doc/md.texi (Modifiers): Document the '*' constraint for the
4282 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
4283 * doc/extend.texi (Function Attributes): 'interrupt' is valid
4286 2002-01-13 Richard Henderson <rth@redhat.com>
4288 * reload.c (find_reloads): Use a hard reg destination as reload reg
4289 for an input reload of the source.
4291 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4293 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
4296 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
4298 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
4299 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
4301 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
4303 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4305 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
4307 2002-01-12 Tom Rix <trix@redhat.com>
4309 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
4312 2002-01-12 Richard Henderson <rth@redhat.com>
4314 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
4316 * doc/invoke.texi: Update Alpha options.
4318 * doc/invoke.texi: Update i386 built-in function lists.
4320 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
4322 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
4323 referencing outside.
4325 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4327 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
4328 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
4329 offsets, and change line folding.
4330 * optabs.c (expand_binop): Remove warnings.
4331 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
4333 2002-01-12 Graham Stott <grahams@redhat.com>
4335 * attribs.c (handle_deprecated_attribute): constify WHAT.
4336 * diagnostic.c (warn_deprecated_use): Add braces, fixes
4337 dangling else warning and constify WHAT.
4338 * except.h (struct function, struct inline_remap): Move
4339 struct tag forward defs before all prototypes.
4340 (duplicate_eh_regions): Whitespace.
4342 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
4344 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
4345 MODE_BASE_REG_CLASS.
4346 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
4348 2002-01-12 Richard Henderson <rth@redhat.com>
4350 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
4351 (ix86_expand_vector_move): New.
4352 (bdesc_2arg): Remove andps, andnps, orps, xorps.
4353 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
4354 Remove old prefetch builtins. Special case the logicals removed above.
4355 (ix86_expand_builtin): Likewise.
4356 (safe_vector_operand): Use V4SFmode, not TImode.
4357 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
4358 (ix86_expand_timode_binop_builtin): New.
4359 * config/i386/i386-protos.h: Update.
4360 * config/i386/i386.h (enum ix86_builtins): Update.
4361 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
4362 Use ix86_expand_vector_move in vector move expanders.
4363 (movti_internal, movti_rex64): Add xorps alternative.
4364 (sse_clrv4sf): Rename and adjust from sse_clrti.
4365 (prefetch): Don't work so hard.
4366 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
4367 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
4368 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
4370 2002-01-11 Richard Henderson <rth@redhat.com>
4372 * config/i386/mmintrin.h: New file.
4373 * config/i386/xmmintrin.h: New file.
4374 * config.gcc (i?86-*-*): Add extra_headers.
4375 * simplify-rtx.c (simplify_unary_operation): Handle saturating
4377 (simplify_binary_operation): Handle saturating arithmetic codes.
4378 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
4379 not the lowpart subreg.
4380 (ix86_expand_builtin): Return a TImode dummy register instead of 0
4382 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
4384 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4386 * conflict.c (conflict_graph_compute): Free regsets when finished.
4387 * ssa.c (compute_coalesced_reg_partition): Likewise.
4389 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4391 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
4392 every where we allocate a register.
4394 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4396 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
4397 * lcm.c (compute_earliest, compute_farthest): Likewise.
4399 2002-01-11 Janis Johnson <janis187@us.ibm.com>
4401 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
4403 2002-01-11 Janis Johnson <janis187@us.ibm.com>
4405 * doc/rtl.texi (Insns): Fix 2 typos.
4407 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
4409 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
4410 options. Use @table @gcctabopt for MMIX options. Add index
4411 entries for MMIX options. Start new paragraph with first
4412 heading of the machine-dependent options.
4414 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
4417 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
4418 * combine.c (force_to_mode): Same.
4419 * reload1.c (clear_reload_reg_in_use): Same.
4421 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
4423 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
4426 2002-01-11 Andreas Jaeger <aj@suse.de>,
4427 Brad Lucier <lucier@math.purdue.edu>
4429 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
4432 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
4434 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
4435 Protect with IN_LIBGCC.
4436 (LINK_EH_SPEC): Add required trailing space.
4438 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
4440 * c-tree.h: Move function declarations so that they are listed
4441 under the filename which contains them.
4442 (check_identifier, finish_decl_top_level,
4443 lookup_name_current_level_global, shadow_record_fields): Remove.
4445 2002-01-11 Andreas Jaeger <aj@suse.de>
4447 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
4450 2002-01-10 Richard Henderson <rth@redhat.com>
4452 * config/alpha/alpha.c (print_operand): Add 'J'.
4453 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
4454 new operand with the sequence number for the lituse. When splitting
4455 the insns, use gen_movdi_er_high_g and generate a sequence number.
4456 (gen_movdi_er_high_g): Print the sequence number if non-zero.
4458 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
4460 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
4461 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
4463 (altivec_expand_builtin): Same.
4464 (altivec_expand_stv_builtin): New.
4466 * config/rs6000/rs6000.h (rs6000_builtins): Same.
4468 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
4469 ("altivec_lvehx"): New.
4470 ("altivec_lvewx"): New.
4471 ("altivec_lvxl"): New.
4472 ("altivec_lvx"): New.
4473 ("altivec_stvx"): New.
4474 ("altivec_stvebx"): New.
4475 ("altivec_stvehx"): New.
4476 ("altivec_stvewx"): New.
4477 ("altivec_stvxl"): New.
4479 2002-01-10 Richard Henderson <rth@redhat.com>
4481 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
4482 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
4483 care not to delete instructions twice.
4485 2002-01-10 Zack Weinberg <zack@codesourcery.com>
4487 * toplev.c: Don't declare environ (it's not used anywhere).
4488 * configure.in: Don't check for declaration of environ.
4489 * config/i386/xm-mingw32.h: Don't #define environ.
4490 * config.in, configure: Regenerate.
4492 2002-01-10 Zack Weinberg <zack@codesourcery.com>
4494 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
4495 * configure: Regenerate.
4497 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
4498 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
4499 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
4501 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
4502 LIMITS_H_TEST here, not in m68k/x-next.
4503 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
4504 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
4506 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
4507 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
4508 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
4510 * config/i386/x-djgpp: Renamed i386/t-djgpp.
4511 * config/m88k/x-dolph: Renamed m88k/t-dolph.
4512 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
4513 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
4514 replacement of quadlib.asm with quadlib.c.
4516 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
4517 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
4518 config/rs6000/xm-beos.h: Delete file.
4520 * config.gcc: Update to match above changes.
4522 2002-01-10 Kazu Hirata <kazu@hxi.com>
4524 * config/h8300/h8300.h: Fix comment typos.
4525 * config/h8300/h8300.md: Likewise.
4526 * config/h8300/lib1funcs.asm: Likewise.
4528 2002-01-10 Dale Johannesen <dalej@apple.com>
4530 PR optimization/5269
4531 * unroll.c (precondition_loop_p): Make *increment be the correct
4532 sign when n_iterations known, to avoid confusing caller.
4534 2002-01-10 Kazu Hirata <kazu@hxi.com>
4536 * doc/extend.texi (deprecated): Fix a typo.
4538 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
4540 * basic-block.h (update_br_prob_note): Declare.
4541 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
4542 (try_forward_edges): Care negative frequencies and update note.
4543 (outgoing_edges_match): Tweek conditional merging heuristics.
4544 (try_crossjump_to_edge): use update_br_prob_note.
4545 * cfglayout.c (fixup_reorder_chain): Likewise.
4546 * cfrtl.c (update_br_prob_note): New.
4547 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
4549 * i386.c (ix86_decompose_address): Return -1 if address contains
4551 (legitimate_address_p): Require ix86_decompose_address to return 1.
4553 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
4554 (cprop_insn): Likewise.
4556 2002-01-10 Kazu Hirata <kazu@hxi.com>
4558 * toplev.c: Fix formatting.
4560 * tree-dump.c: Likewise.
4561 * unroll.c: Likewise.
4562 * unwind-dw2.c: Likewise.
4563 * unwind-dw2-fde.c: Likewise.
4564 * unwind-dw2-fde-glibc.c: Likewise.
4565 * unwind-sjlj.c: Likewise.
4567 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
4569 * doc/invoke.texi: Document PDP-11 options.
4571 2002-01-10 Kazu Hirata <kazu@hxi.com>
4573 * config/h8300/h8300.h: Fix formatting.
4575 2002-01-10 Ira Ruben <ira@apple.com>
4577 Add __attribute__ ((deprecated)).
4578 * extend.texi: Document __attribute__ ((deprecated)).
4579 * invoke.texi: Document -Wno-deprecated-declarations.
4580 * testsuite/g++.dg/other/deprecated.C: New C++ test.
4581 * testsuite/gcc.dg/deprecated.c: New C test.
4582 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
4583 (c_common_attribute_table): Add "deprecated" entry.
4584 (handle_deprecated_attribute): New function.
4585 * c-decl.c (deprecated_states): New enum.
4586 deprecated_state: State of "deprecated" handling.
4587 (start_decl): Set deprecated_state based on attributes.
4588 (grokdeclarator): Test for deprecated uses, propagate attribute.
4589 * c-typeck.c (build_component_ref): Test for deprecated fields.
4590 (build_external_ref): Test for deprecated primaries.
4591 * diagnostic.c (warn_deprecated_use) New function to issue
4592 warnings about __attribute__ ((depricated)) references.
4593 * flags.h (warn_deprecated_decl): Extern declared for
4594 -W[no-]deprecated-declarations option.
4595 * print-tree.c (print_node): Show deprecated flag status.
4596 * toplev.c (warn_deprecated_decl): Defined.
4597 (W_options): Added "deprecated-declaration".
4598 * toplev.h (warn_deprecated_use): Extern declared.
4599 * tree.h (struct tree_common): Define deprecated_flag.
4600 (TREE_DEPRECATED): New macro to access flag.
4601 * cp/call.c (build_call): Test for deprecated calls.
4602 * cp/class.c (add_implicitly_declared_members): Set global
4603 flag to tell grokdeclarator to not issue deprecated warnings.
4604 * cp/cp-tree.h: Add extern for adding_implicit_members.
4605 * cp/decl.c (deprecated_states): New enum.
4606 (start_decl): Set deprecated_state based on attributes.
4607 (grokdeclarator): Test for deprecated uses, propagate attribute.
4608 * cp/lex.c (do_identifier): Test for deprecated primaries.
4609 * cp/typeck.c (build_component_ref): Test for deprecated fields.
4611 2002-01-10 Ira Ruben <ira@apple.com>
4613 Fix to assign attributes to inline member functions.
4614 * cp/decl.c (start_method): Handle attrlist.
4616 2002-01-10 Kazu Hirata <kazu@hxi.com>
4618 * combine.c (expand_field_assignment): Use subreg_lsb().
4620 2002-01-10 David Edelsohn <edelsohn@gnu.org>
4622 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
4623 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
4624 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
4625 Recurse for any operand of AND as long as constant is non-zero.
4627 2002-01-10 Kazu Hirata <kazu@hxi.com>
4629 * config/h8300/h8300.md: Remove constraints from expanders.
4631 2002-01-10 Kazu Hirata <kazu@hxi.com>
4633 * varasm.c: Fix formatting.
4634 * varray.c: Likewise.
4635 * vmsdbgout.c: Likewise.
4636 * xcoffout.c: Likewise.
4638 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
4640 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
4641 update edge probabilities to match.
4643 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
4645 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
4647 * doc/languages.texi, doc/sourcebuild.texi: New files.
4648 * doc/configfiles.texi: Make a subsubsection. Update.
4649 * doc/configterms.texi: Add @node. Remove warning that this isn't
4650 instructions for building GCC.
4651 * doc/makefile.texi: Make a subsection.
4652 * doc/gccint.texi: Update.
4654 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
4656 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
4658 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
4660 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
4662 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
4664 * optabs.c (expand_fix): Look for wider integer modes first.
4666 * i386.md (mov?f): Avoid the fake const double trick for medium
4668 (min?f*/max?f*): Prohibit memory operands for i387 variant.
4669 (fop_df_4): Disable for SSE compilation.
4671 2002-01-10 Graham Stott <grahams@redhat.com>
4673 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
4674 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
4676 2002-01-10 Richard Henderson <rth@redhat.com>
4678 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
4680 2002-01-10 Richard Henderson <rth@redhat.com>
4682 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
4683 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
4685 2002-01-10 Kazu Hirata <kazu@hxi.com>
4687 * combine.c (can_combine_p): Fix a comment typo.
4689 2002-01-09 Zack Weinberg <zack@codesourcery.com>
4691 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
4692 empty list correctly. Change loop index $t to $f for
4693 consistency with rest of Makefile.
4695 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
4697 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
4698 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
4700 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
4701 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
4702 (altivec_init_builtins): Same.
4703 (altivec_expand_unop_builtin): Return NULL_RTX on error.
4704 (altivec_expand_binop_builtin): Same.
4705 (altivec_expand_ternop_builtin): Same.
4708 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
4709 ("altivec_vctuxs"): Fix typo.
4710 ("altivec_vnmsubfp"): Same.
4711 ("altivec_dssall"): New.
4712 ("altivec_mfvscr"): New.
4713 ("altivec_dss"): New.
4714 ("altivec_lvsl"): New.
4715 ("altivec_lvsr"): New.
4716 ("altivec_dstt"): New.
4717 ("altivec_dstst"): New.
4718 ("altivec_dststt"): New.
4719 ("altivec_dst"): New.
4721 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
4722 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
4724 2002-01-09 Richard Henderson <rth@redhat.com>
4726 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
4728 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
4730 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
4732 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
4734 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
4736 2002-01-09 Kazu Hirata <kazu@hxi.com>
4738 * read-rtl.c: Fix formatting.
4740 * regclass.c: Likewise.
4741 * regrename.c: Likewise.
4742 * reg-stack.c: Likewise.
4743 * reload1.c: Likewise.
4744 * reload.c: Likewise.
4747 2002-01-09 Kazu Hirata <kazu@hxi.com>
4749 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
4750 to extract items in the expr_list chain.
4752 2002-01-09 Richard Henderson <rth@redhat.com>
4754 * config/vax/vax.c (vax_rtx_cost): Never abort.
4756 * config/vax/vax.h (REAL_ARITHMETIC): Define.
4758 2002-01-09 Jan Hubicka <jh@suse.cz>
4760 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
4762 2002-01-09 Richard Henderson <rth@redhat.com>
4764 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
4765 Unify code from various alternatives.
4767 2002-01-09 Richard Henderson <rth@redhat.com>
4769 * regrename.c (copy_value): Ignore the copy if the source register
4770 is present in the value chain with a narrower mode.
4772 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4774 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
4775 for the c4x target. Also improve layout.
4777 2002-01-09 Richard Henderson <rth@redhat.com>
4779 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
4780 * config/m32r/m32r.md (and ior xor splitters): Swap operands
4781 to match insn patterns.
4783 2002-01-09 Richard Henderson <rth@redhat.com>
4785 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
4786 (copyprop_hardreg_forward_1): Likewise.
4788 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
4790 * pa.md (decrement_and_branch_until_zero): Change predicate for
4791 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
4793 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
4795 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
4796 gets undefined. For Darwin.
4798 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4800 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
4802 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4804 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
4806 2002-01-08 Richard Henderson <rth@redhat.com>
4808 * regrename.c (copy_value): Ignore overlapping copies.
4810 2002-01-08 Richard Henderson <rth@redhat.com>
4812 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
4813 as needed to avoid shared structure.
4815 2002-01-08 Kazu Hirata <kazu@hxi.com>
4817 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
4820 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
4822 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
4823 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
4824 documentation of obsolete macros.
4825 * system.h: Poison these macros.
4826 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
4827 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
4828 config/c4x/c4x.h, config/clipper/clipper.h,
4829 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
4830 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
4831 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
4832 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
4833 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
4834 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
4835 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4836 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
4837 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
4838 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
4839 config/sparc/sparc.h, config/stormy16/stormy16.h,
4840 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
4841 definitions and commented out definitions of obsolete macros.
4842 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
4843 of MAX_INT_TYPE_SIZE.
4845 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
4847 * config/s390/s390.c (s390_preferred_reload_class): Never
4848 return ADDR_REGS if it isn't a subset of the given class.
4849 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
4850 FP_REGS, but all superclasses as well.
4852 * config/s390/s390.c (s390_function_profiler): Fix thinko.
4854 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
4855 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
4856 must not be a const_int.
4858 2002-01-08 Richard Henderson <rth@redhat.com>
4860 * Makefile.in (toplev.o): Depend on options.h.
4861 (gcc.o): Depend on specs.h.
4863 2002-01-08 Jakub Jelinek <jakub@redhat.com>
4865 * expr.c (store_expr): Convert VOIDmode constants back to target's
4868 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4870 * doc/invoke.texi: Markup gcc as @command. Refer to
4871 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
4872 of http://gcc.gnu.org/thanks.html.
4874 2002-01-08 Dale Johannesen <dalej@apple.com>
4876 * config/rs6000/rs6000.md: Add missing int register
4877 target case to movdf_low.
4879 2002-01-08 Zack Weinberg <zack@codesourcery.com>
4881 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
4882 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
4883 (cppinit.o): Depend on except.h.
4884 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
4885 s-specs): New rules.
4887 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
4888 Don't create specs.h/options.h/gencheck.h here. Remove
4889 unnecessary variable settings from last argument of AC_OUTPUT.
4890 * config.in, configure: Regenerate.
4891 * intl.c: Hardcode package name as "gcc".
4893 * cppinit.c: Include except.h.
4894 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
4896 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
4897 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
4898 (!)USING_SJLJ_EXCEPTIONS.
4899 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
4901 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
4903 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
4904 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
4905 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
4906 documentation of obsolete macros.
4907 * system.h: Poison these macros.
4908 * config/d30v/d30v.h, config/ns32k/encore.h,
4909 config/stormy16/stormy16.h: Remove definitions and commented out
4910 definitions of obsolete macros.
4912 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
4914 * objc/objc-act.c (handle_class_ref): Mark the declaration of
4915 %sobjc_class_ref_%s as used - to prevent unwanted compiler
4918 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
4920 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
4921 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
4922 to insn adjusting stack/frame pointer.
4923 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
4924 accept operands that cause the insn to be non-splittable.
4926 2002-01-08 Graham Stott <grahams@redhat.com>
4928 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
4929 (C_TYPE_FIELDS_VOLATILE): Likewise.
4930 (C_TYPE_BEING_DEFINED): Likewise.
4931 (C_IS_RESERVED_WORD): Likewise.
4932 (C_TYPE_VARIABLE_SIZE): Likewise.
4933 (C_DECL_VARIABLE_SIZE): Likewise.
4934 (C_MISSING_PROTOTYPE_WARNED): Likewise.
4935 (C_SET_EXP_ORIGINAL_CODE): Likewise.
4936 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
4938 (C_DECL_ANTICIPATED): Likewise.
4939 (c_build_type_variant): Add parenthesis.
4941 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
4943 * gcc.c (option_map): Remove --version.
4944 (process_command): Handle -fversion following the GNU Coding
4945 Standards. Partially addresses PR other/704.
4947 2002-01-08 Graham Stott <grahams@redhat.com>
4949 * combine.c (combine_instructions): Fix typo.
4951 2002-01-08 Graham Stott <grahams@redhat.com>
4953 * debug.h: Use "tree" and "rtx" throughout.
4955 * debug.c: Likewise.
4957 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
4959 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
4960 constant pool, use the pool's version of the symbol instead.
4962 2002-01-07 Richard Henderson <rth@redhat.com>
4964 * regrename.c (find_oldest_value_reg): Ignore the value chain if
4965 the original register was copied in a mode with a fewer number of
4966 hard registers than the desired mode.
4967 (copyprop_hardreg_forward_1): Likewise.
4968 (debug_value_data): Fix loop test.
4969 * toplev.c (parse_options_and_default_flags): Reenable
4970 -fcprop-registers at -O1.
4972 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
4974 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
4975 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
4977 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
4980 * config/rs6000/rs6000.md: Add altivec predicate patterns.
4982 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
4984 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
4985 (pa_output_function_prologue): Output local label at the beginning of
4986 the prologue when profiling.
4987 (hppa_profile_hook): Use the local label rather than the function label.
4988 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
4990 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
4992 * config/rs6000/rs6000.c (print_operand): Remove extra space.
4993 (altivec_expand_unop_builtin): Fix thinko.
4994 (altivec_expand_binop_builtin): Same.
4995 (altivec_expand_ternop_builtin): Same.
4996 (altivec_expand_builtin): Same.
4998 2002-01-07 Richard Henderson <rth@redhat.com>
5000 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
5002 2002-01-07 Jason Merrill <jason@redhat.com>
5004 * unwind-dw2.c (execute_cfa_program): Use < again.
5006 2002-01-07 Jakub Jelinek <jakub@redhat.com>
5008 * predict.c (combine_predictions_for_insn): Avoid division by zero.
5010 2002-01-07 Jakub Jelinek <jakub@redhat.com>
5012 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
5013 Don't allow -1 - x -> ~x simplifications in the first pass.
5015 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
5017 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
5019 (altivec_expand_binop_builtin): Same.
5020 (altivec_expand_unop_builtin): Same.
5021 (print_operand): Fix typo.
5022 (bdesc_1arg): Add vupk* variants.
5024 * rs6000.h (rs6000_builtins): Add vupk* enums.
5026 * rs6000.md: Add altivec_vupk* variants.
5028 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
5030 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
5031 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
5032 and last update dates.
5034 2002-01-07 Janis Johnson <janis187@us.ibm.com>
5036 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
5038 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
5040 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
5041 * config/avr/avr.h (CPP_SPEC): Likewise.
5042 (LINK_SPEC): Likewise.
5043 (CRT_BINUTILS_SPECS): Likewise.
5044 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5045 * doc/invoke.texi (AVR Options): Document them.
5047 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
5049 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
5052 2002-01-07 Graham Stott <grahams@redhat.com>
5054 * config/i386/i386.h: Update copyright date.
5055 (HALF_PIC_PTR): Add parenthesis.
5056 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
5057 (CONSTANT_ALIGNMENT): Add parenthesis.
5058 (DATA_ALIGNMENT): Likewise.
5059 (LOCAL_ALIGNMENT): Likewise.
5060 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
5061 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
5062 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
5063 (HARD_REGNO_NREGS): Add paranethesis.
5064 (VALID_SSE_REG_MODE): Whitespace.
5065 (VALID_MMX_REG_MODE): Whitespace.
5066 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
5067 (ix86_hard_regno_mode_ok): Add parenthesis.
5068 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
5069 (RETURN_IN_MEMORY): Whitespace.
5070 (N_REG_CLASSES): Add parenthesis.
5071 (INTEGER_CLASS_P): Add parenthesis and wrap.
5072 (FLOAT_CLASS_P): Likewise.
5073 (SSE_CLASS_P): Likewise.
5074 (MMX_CLASS_P): Likewise.
5075 (MAYBE_INTEGER_CLASS_P): Likewise.
5076 (MAYBE_FLOAT_CLASS_P): Likewise.
5077 (MAYBE_SSE_CLASS_P): Likewise.
5078 (MAYBE_MMX_CLASS_P): Likewise.
5079 (Q_CLASS_P): Likewise.
5080 (GENERAL_REGNO_P): Uppercase macro parameter.
5081 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
5082 (FP_REGNO_P): Likewise.
5083 (ANY_FP_REGNO_P): Uppercase macro parameter.
5084 (SSE_REGNO_P): Likewise.
5085 (SSE_REGNO): Likewise.
5086 (SSE_REG_P): Likewise.
5087 (SSE_FLOAT_MODE_P): Likewise.
5088 (MMX_REGNO_P): Likewise.
5089 (MMX_REG_P):Likewise.
5090 (STACK_REG_P): Likewise.
5091 (NON_STACK_REG_P): Likewise.
5092 (STACK_TOP_P): Likewise.
5093 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
5094 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
5095 (SECONDARY_MEMORY_NEEDED): Likewise.
5096 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
5097 (MD_ASM_CLOBBERS): Whitespace and wrap.
5098 (MUST_PASS_IN_STACK): Whitespace and wrap.
5099 (RETURN_POPS_ARGS): Add parenthesis.
5100 (INIT_CUMULATIVE_ARGS): Likewise.
5101 (FUNCTION_ARG): Likewise.
5102 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
5103 (SETUP_INCOMING_VARARGS): Likewise.
5104 (BUILD_VA_LIST_TYPE): Add parenthesis.
5105 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
5107 (EXPAND_BUILTIN_VA_ARG): Likewise.
5108 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
5109 (INITIALIZE_TRAMPOLINE): Add parenthesis.
5110 (INITIAL_ELIMINATION_OFFSET): Likewise.
5111 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
5112 (REGNO_OK_FOR_BASE_P): Likewise.
5113 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
5114 (REGNO_OK_FOR_DIREG_P): Likewise.
5115 (REG_OK_FOR_INDEX_P): Whitespace.
5116 (REG_OK_FOR_BASE_P): Whitespace.
5117 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
5119 (FIND_BASE_TERM): Fix typo.
5120 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
5121 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
5122 (SYMBOLIC_CONST; Whitespace.
5123 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
5124 (ENCODE_SECTION_INFO): Whitespace.
5125 (FINALIZE_PIC): Remove do { ... } while (0).
5126 (PROMOTE_MODE): Wrap in do { ... } while (0).
5127 (CONST_COSTS): Whitespace.
5128 (RTX_COSTS): Add paramethesis, whitespace and wrap.
5129 (REGISTER_MOVE_COST): Add parenthesis.
5130 (MEMORY_MOVE_COST): Likewise.
5131 (EXTRA_CC_MODES): Whitespace.
5132 (SELECT_CC_MODE): Add parenthesis and whitespace.
5133 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
5134 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
5135 (ASM_OUTPUT_LABEL): Add paramethesis.
5136 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
5137 (ASM_OUTPUT_REG_POP): Likewise.
5138 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
5139 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5141 * config/i386/i386.c: Update copyright.
5142 (CHECK_STACK_LIMIT): Add parenthesis.
5143 (AT_BP): Uppercase macro parameter.
5144 (x86_64_int_parameter_registers): Constify.
5145 (x86_64_int_return_registers): Likewise.
5146 (ix86_compare_op0): Use rtx.
5147 (construct_container): Constify INTREG parameter.
5148 (function_arg): Use rtx.
5150 * diagnostic.h: Update copyright date.
5151 (output_buffer_state): Add parenthesis.
5152 (output_buffer_format_args): Likewise.
5154 * combine.c (combine_instructions): Replace XEXP (links, 0)
5157 2002-01-06 H.J. Lu <hjl@gnu.org>
5159 * cfgcleanup.c (thread_jump): Fix 2 typos.
5161 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
5163 * config.gcc: Add support for --enable-altivec.
5165 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
5167 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
5169 2002-01-06 Jakub Jelinek <jakub@redhat.com>
5171 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
5172 __objc_class_name_*.
5174 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
5176 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
5178 2002-01-06 Richard Henderson <rth@redhat.com>
5180 * reorg.c (emit_delay_sequence): Remove death notes, not merely
5181 nop them out. Increment label reference count for REG_LABEL.
5182 (fill_slots_from_thread): Frob label reference count around
5183 delete_related_insns.
5185 2002-01-05 Richard Henderson <rth@redhat.com>
5187 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
5190 2002-01-05 Richard Henderson <rth@redhat.com>
5192 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
5193 * integrate.c (output_inline_function): Likewise.
5194 * toplev.c (rest_of_compilation): Do it here instead. Move call
5195 to remove_unnecessary_notes after emitting abstract instance.
5196 Force an emitted nested function to have its parent emited as well.
5197 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
5199 (rtl_for_decl_location): Do not look at reload data structures
5200 before reload has run.
5202 2002-01-05 Kazu Hirata <kazu@hxi.com>
5204 * cse.c: Fix formatting.
5205 * dwarf2asm.c: Likewise.
5206 * dwarf2out.c: Likewise.
5207 * explow.c: Likewise.
5208 * expmed.c: Likewise.
5209 * function.c: Likewise.
5211 * gencheck.c: Likewise.
5212 * genrecog.c: Likewise.
5213 * ggc-common.c: Likewise.
5214 * ggc-page.c: Likewise.
5215 * global.c: Likewise.
5217 2002-01-05 Kazu Hirata <kazu@hxi.com>
5219 * combine.c: Fix formatting.
5221 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
5224 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
5226 2002-01-05 David Edelsohn <edelsohn@gnu.org>
5228 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
5229 as 1 for __powerpc64__ as well.
5231 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
5233 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
5236 2002-01-05 Daniel Berlin <dan@dberlin.org>
5238 * lcm.c: Revert change, due to performance regression it causes on
5239 SPEC because it's slightly more conservative (sigh, I hate
5242 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
5244 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
5246 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
5248 * doc/cppinternals.texi: Update.
5250 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
5252 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
5253 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
5255 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
5256 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
5257 kludge for pre-october-14th mmix versions to handle new-found bug
5258 with PUSHJ/PUSHGO and the register stack.
5259 * config/mmix/mmix.h (struct machine_function): Rename member
5260 has_call_value_without_parameters to has_call_without_parameters.
5261 All referers changed.
5262 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
5263 TARGET_MASK_BRANCH_PREDICT): New macros.
5264 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
5265 -mno-reg-stack-fill-bug-workaround.
5266 * config/mmix/mmix.md ("call"): Set struct machine member
5267 has_call_without_parameters.
5269 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
5271 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
5273 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
5275 * cfgcleanup.c: Include tm_p.h
5276 (mark_effect): Fix handling of hard register; fix handling of SET
5278 2002-01-04 Kazu Hirata <kazu@hxi.com>
5280 * config/h8300/h8300.md (anonymous patterns): Check that
5281 operands are registers before using REGNO on them.
5283 2002-01-03 Roland McGrath <roland@frob.com>
5285 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
5287 2002-01-04 Jakub Jelinek <jakub@redhat.com>
5289 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
5290 * c-common.h (genrtl_expr_stmt_value): Likewise.
5291 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
5292 (expand_expr_stmt_value): Add maybe_last argument.
5293 Don't warn about statement with no effect if it is the last statement
5294 in expression statement.
5295 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
5296 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
5297 expand_expr_stmt_value.
5298 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
5299 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
5300 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
5301 as maybe_last to expand_expr_stmt_value.
5303 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
5305 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
5306 be passed in, do not build it.
5307 (c_begin_if_stmt): New function.
5308 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
5309 * c-common.h (c_expand_start_cond): Update prototype.
5310 (c_begin_if_stmt): Prototype new function.
5311 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
5312 * c-parse.in (if_prefix): Use c_begin_if_stmt,
5313 c_begin_while_stmt and c_finish_while_stmt_cond.
5315 2002-01-04 William Cohen <wcohen@redhat.com>
5317 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
5318 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
5319 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
5320 * config/pa/som.h (ASM_FILE_START): Likewise.
5322 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
5324 * lcm.c: Include df.h.
5325 Add available_transfer_function prototype.
5326 (compute_available): Rework to use iterative dataflow framework.
5327 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
5328 with bb_info in df.h
5329 (available_transfer_function): New function.
5331 * Makefile.in (lcm.o): add df.h to dependencies.
5333 2002-01-04 Richard Henderson <rth@redhat.com>
5335 * config/alpha/alpha.c (some_operand): Accept HIGH.
5336 (input_operand): Likewise; accept simple references to globals.
5337 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
5338 (alpha_const_double_ok_for_letter_p): Likewise.
5339 (alpha_extra_constraint): Likewise.
5340 (alpha_preferred_reload_class): Likewise. Do not force
5341 symbolic constants to memory.
5342 (alpha_legitimate_address_p): Accept simple references
5343 to small_symbolic_operand.
5344 (alpha_legitimize_address): New arg scratch. Be prepared to be
5345 called when no_new_pseudos. Emit simple symbolic references.
5346 Split integers into low, high, and rest.
5347 (alpha_expand_mov): Use alpha_legitimize_address.
5348 (some_small_symbolic_mem_operand): New.
5349 (split_small_symbolic_mem_operand): New.
5350 * config/alpha/alpha-protos.h: Update.
5351 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
5352 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
5353 (EXTRA_CONSTRAINT): Likewise.
5354 (PREFERRED_RELOAD_CLASS): Likewise.
5355 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
5356 (PREDICATE_CODES): Update.
5357 * config/alpha/alpha.md: New post-reload splitters to convert
5358 simplfied symbolic operands to the form that references $29.
5359 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
5360 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
5362 2002-01-03 Richard Henderson <rth@redhat.com>
5364 * local-alloc.c (function_invariant_p): Update commentary.
5366 2002-01-04 H.J. Lu <hjl@gnu.org>
5368 * toplev.c (rest_of_compilation): Fix a typo when calling
5371 2002-01-03 Kazu Hirata <kazu@hxi.com>
5373 * c-common.c: Fix formatting.
5374 * diagnostic.c: Likewise.
5375 * doloop.c: Likewise.
5376 * dwarf2out.c: Likewise.
5378 2002-01-03 Kazu Hirata <kazu@hxi.com>
5380 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
5381 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
5383 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
5385 * cpperror.c: Update comments and copyright.
5386 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
5387 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
5389 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
5391 * collect2.c (main): Use strcmp when testing for "-shared".
5393 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
5395 * cppmacro.c: Don't include intl.h. Update comments.
5396 (new_number_token): Allocate enough buffer for 64-bit unsigned
5397 integers; update prototype.
5398 * cppmain.c: Update comments.
5400 2002-01-03 William Cohen <wcohen@redhat.com>
5402 * function.h (struct function): Add profile.
5403 (current_function_profile): New.
5404 doc/extend.texi: Update documentation.
5405 * final.c (final_start_function): Use current_function_profile
5406 instead of profile_flag.
5407 (profile_after_prologue): Likewise.
5408 * function.c (expand_function_start): Likewise.
5409 (expand_function_start): Likewise.
5410 * config/alpha/alpha.c (direct_call_operand):
5411 (alpha_does_function_need_gp): Likewise.
5412 (alpha_expand_prologue): Likewise.
5413 * config/arm/arm.c (arm_expand_prologue): Likewise.
5414 thumb_expand_prologue: Likewise.
5415 * config/d30v/d30v.c (d30v_stack_info): Likewise.
5416 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
5417 (fr30_expand_prologue): Likewise.
5418 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
5419 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
5420 * config/i386/i386.h (FINALIZE_PIC): Likewise.
5421 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
5422 * config/i960/i960.c (i960_output_function_prologue): Likewise.
5423 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5424 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
5425 (m32r_expand_prologue): Likewise.
5426 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
5427 (m88k_expand_prologue): Likewise.
5428 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
5429 * config/mips/mips.c (compute_frame_size): Likewise.
5430 (mips_expand_prologue): Likewise.
5431 (mips_can_use_return_insn): Likewise.
5432 * config/pa/elf.h (ASM_FILE_START): Likewise.
5433 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
5434 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
5435 * config/pa/som.h (ASM_FILE_START): Likewise.
5436 * config/romp/romp.c (romp_using_r14): Likewise.
5437 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
5438 (rs6000_stack_info): Likewise.
5439 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5440 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
5441 * config/v850/v850.c (compute_register_save_size): Likewise.
5443 2002-01-03 Jakub Jelinek <jakub@redhat.com>
5445 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
5446 gen_lowpart_common fails, use gen_lowpart_SUBREG.
5448 2002-01-03 Turly O'Connor <turly@apple.com>
5450 * darwin.c (machopic_output_possible_stub_label): Don't generate
5451 stub routines for pseudo-stubs which we've just defined.
5453 2002-01-03 Kazu Hirata <kazu@hxi.com>
5455 * builtins.c: Fix formatting.
5456 * c-typeck.c: Likewise.
5457 * combine.c: Likewise.
5461 2002-01-03 Andreas Schwab <schwab@suse.de>
5463 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
5464 and return true if _cpp_push_next_buffer pushed a new include
5466 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
5467 _cpp_pop_file_buffer did not push a new file.
5468 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
5470 2002-01-02 Eric Christopher <echristo@redhat.com>
5472 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
5473 FIND_REG_INC_NOTE call. Update copyright.
5474 * loop.c (canonicalize_condition): Ditto.
5475 * reorg.c (delete_scheduled_jump): Ditto.
5477 2002-01-03 Kazu Hirata <kazu@hxi.com>
5479 * gcse.c: Fix formatting.
5481 2002-01-03 Graham Stott <grahams@redhat.com>
5483 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
5484 forward defs for struct tags rtx_def, union_tree, rtvec_def
5485 also output corresponding typedefs for rtx, tree, and rtvec.
5487 * system.h: Move forward defs for struct tags rtx_def, union_tree,
5488 rtvec_def along with corresponding typedefs for rtx, tree, and
5489 rtvec to config.h, hconfig.h, tconfig.h.
5491 2002-01-03 Graham Stott <grahams@redhat.com>
5493 * tree.h: Update copyright date.
5494 (IS_EXPR_CODE_CLASS): Add parenthesis.
5495 (TREE_SET_CODE): Add whitespace.
5496 (TREE_CHECK): Add parenthesis.
5497 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
5498 (CST_OR_CONSTRUCTOR_CHECK):
5499 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
5500 (TREE_SYMBOL_REFERENCED): Whitespace.
5501 (INT_CST_LT): Likewise.
5502 (INT_CST_LT_UNSIGNED): Likewise.
5503 (tree_real_cst): Unwrap comment.
5504 (tree_string): Likewise.
5505 (tree_complex): Likewise.
5506 (IDENTIFIER_POINTER): correct cast.
5507 (SAVE_EXPR_CONTEXT): Whitespace.
5508 (EXPR_WFL_FILENAME_NODE): Likewise.
5509 (EXPR_WFL_FILENAME): Remove parenthesis.
5510 (DECL_ORIGIN): Add parenthesis.
5511 (DECL_FROM_INLINE): Use NULL_TREE.
5512 (build_int_2): Whitespace.
5513 (build_type_variant): Add parenthesis.
5515 * gcc/jcf-parse.c: Update copyright date.
5516 (yyparse): Constify resource_filename.
5518 2002-01-03 Graham Stott <grahams@redhat.com>
5520 * rtl.h: Update copyright date.
5521 (RTL_CHECK1): Wrap long line.
5522 (RTL_CHECK2): Likewise.
5523 (RTL_CHECKC1): Wrap long line and whitespace.
5524 (RTL_CHECKC2): Likewise.
5525 (XWINT): Whitespace.
5531 (XBITMAP): Likewise.
5542 (X0BITMAP): Likewise.
5544 (X0BBDEF): Likewise.
5545 (X0ADVFLAGS): Likewise.
5546 (X0CSELIB): Likewise.
5547 (X0MEMATTR): Likewise.
5555 (XCBITMAP): Likewise.
5557 (XCBBDEF): Likewise.
5558 (XCADVFLAGS): Likewise.
5559 (XCCSELIB): Likewise.
5561 (INSN_UID): Likewise.
5562 (PREV_INSN): Likewise.
5563 (PATTERN): Likewise.
5564 (INSN_CODE): Likewise.
5565 (PUT_REG_NOTE_KIND): Likewise.
5566 (CODE_LABEL_NUMBER): Likewise.
5567 (NOTE_SOURCE_FILE): Likewise.
5568 (NOTE_BLOCK): Likewise.
5569 (NOTE_EH_HANDLER): Likewise.
5570 (NOTE_RANGE_INFO): Likewise.
5571 (NOTE_LIVE_INFO): Likewise.
5572 (NOTE_BASIC_BLOCK): Likewise.
5573 (NOTE_EXPECTED_VALUE): Likewise.
5574 (NOTE_LINE_NUMBER): Likewise.
5575 (LABEL_NAME): Likewise.
5576 (LABEL_NUSES): Likewise.
5577 (LABEL_ALTERNATE_NAME): Likewise.
5578 (ADDRESSOF_DECL): Likewise.
5579 (JUMP_LABEL): Likewise.
5580 (LABEL_NEXTREF): Likewise.
5582 (ORIGINAL_REGNO: Likewise.
5583 (HARD_REGISTER_NUM_P): Add parenthesis.
5584 (SUBREG_REG): Whitespace.
5585 (SUBREG_BYTE): Likewise.
5586 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
5587 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
5588 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
5589 (ASM_OPERANDS_INPUT_VEC): Likewise.
5590 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
5591 (ASM_OPERANDS_INPUT): Likewise.
5592 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
5593 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
5594 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
5595 (ASM_OPERANDS_INPUT_MODE): Likewise.
5596 (ASM_OPERANDS_SOURCE_FILE): Likewise.
5597 (ASM_OPERANDS_SOURCE_LINE): Likewise.
5598 (MEM_SET_IN_STRUCT_P): Minor reformat.
5599 (TRAP_CONDITION): Whitespace.
5600 (TRAP_CODE): Likewise.
5601 (COND_EXEC_TEST): Likewise.
5602 (COND_EXEC_CODE): Likewise.
5603 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
5604 (PHI_NODE_P): Add parenthesis.
5605 (plus_constant): Whitespace and add parenthesis.
5607 2002-01-03 Kazu Hirata <kazu@hxi.com>
5609 * config/avr/avr.c: Fix comment typos.
5610 * config/c4x/c4x.md: Likewise.
5611 * config/dsp16xx/dsp16xx.h: Likewise.
5612 * config/dsp16xx/dsp16xx.md: Likewise.
5613 * config/i386/i386.md: Likewise.
5614 * config/ia64/ia64.c: Likewise.
5615 * config/m32r/m32r.h: Likewise.
5616 * config/m68hc11/m68hc11.md: Likewise.
5617 * config/mmix/mmix.c: Likewise.
5618 * config/mn10200/mn10200.c: Likewise.
5619 * config/romp/romp.c: Likewise.
5620 * config/sh/sh.c: Likewise.
5621 * config/stormy16/stormy16.c: Likewise.
5622 * config/stormy16/stormy16.h: Likewise.
5623 * config/stormy16/stormy16.md: Likewise.
5625 2002-01-03 Graham Stott <grahams@redhat.com>
5627 * loop.h: Update copyright date.
5628 (LOOP_MOVABLES): Fix typo.
5629 (LOOP_REGS): Likewise.
5630 (LOOP_IVS): Likewise.
5632 2002-01-03 Graham Stott <grahams@redhat.com>
5634 * cppinit.c: Update copyright date.
5635 Don't include output.h
5636 * Makefile.in: Update copyright date.
5639 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
5642 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
5643 (-pthread) Add to RS/6000 options.
5645 2002-01-02 Kazu Hirata <kazu@hxi.com>
5647 * except.c: Fix comment typos.
5649 * varasm.c: Likewise.
5650 * doc/tm.texi: Fix a typo.
5652 2002-01-02 Jakub Jelinek <jakub@redhat.com>
5654 * c-typeck.c (output_init_element): Allow initializing static storage
5655 duration objects with compound literals.
5657 2002-01-02 Richard Henderson <rth@redhat.com>
5659 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
5662 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5664 * gcc.c (default_compilers): Const-ify.
5665 * mips-tdump.c (stab_names): Likewise.
5666 * mips-tfile.c (map_coff_types, map_coff_storage,
5667 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
5668 pseudo_ops_t, pseudo_ops): Likewise.
5669 * protoize.c (default_include): Likewise
5671 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
5672 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
5673 Add array size in declaration.
5674 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
5675 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
5676 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
5677 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
5678 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
5679 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
5680 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
5681 emtens, make_nan): Const-ify.
5682 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
5683 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
5685 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
5687 * config.gcc (ia64-*-*): Set extra_headers.
5688 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
5689 * config/alpha/t-osf: Remove.
5690 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
5692 2002-01-02 David Edelsohn <edelsohn@gnu.org>
5694 * config/rs6000/t-aix43: Revert previous change.
5696 2002-01-02 Jason Merrill <jason@redhat.com>
5698 * c-decl.c (c_expand_body): Call outlining_inline_function when
5699 emitting an inline function out of line.
5701 2002-01-02 Richard Henderson <rth@redhat.com>
5703 * dwarf2out.c (limbo_die_node): Add created_for member.
5704 (new_die): New argument created_for. Update all callers.
5705 (mark_limbo_die_list): New.
5706 (dwarf2out_init): Register limbo_die_list as a root.
5707 (dwarf2out_finish): Force insert limbo dies into their function
5710 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5713 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
5715 2002-01-02 Kazu Hirata <kazu@hxi.com>
5717 * config/h8300/fixunssfsi.c: Update copyright.
5720 * config/h8300/h8300.c: Update copyright.
5723 2002-01-02 Kazu Hirata <kazu@hxi.com>
5725 * config/romp/romp.c: Fix comment formatting.
5726 * config/romp/romp.h: Likewise.
5727 * config/romp/romp.md: Likewise.
5728 * config/s390/s390.c: Likewise.
5729 * config/stormy16/stormy16.c: Likewise.
5730 * config/stormy16/stormy16.h: Likewise.
5732 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
5734 * c-common.h (genrtl_expr_stmt_value): Declare.
5735 * c-semantics.c (genrtl_goto_stmt): Redirect to...
5736 (genrtl_goto_stmt_value): ... this new function. Pass new
5737 argument down to expand_expr_stmt_value, taking
5738 TREE_ADDRESSABLE into account.
5739 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
5740 STMT_EXPR as addressable, i.e., one whose result we want.
5741 * expr.c (expand_expr): Don't save expression statement value
5742 of labeled_blocks or loop_exprs.
5743 * stmt.c (expand_expr_stmt): Redirect to...
5744 (expand_expr_stmt_value): ... this new function. Use new
5745 argument to tell whether to save expression value.
5746 (expand_end_stmt_expr): Reset last_expr_type and
5747 last_expr_value if we don't have either.
5748 * tree-inline.c (declare_return_variable): Mark its use
5749 statement as addressable.
5750 * tree.h: Document new use of TREE_ADDRESSABLE.
5751 (expand_expr_stmt_value): Declare.
5753 2002-01-01 Tom Rix <trix@redhat.com>
5755 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
5756 rs6000_emit_allocate_stack.
5758 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
5760 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
5761 ${srcdir}/ginclude/ to every entry in extra_headers.
5762 * configure: Regenerate.
5763 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
5764 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
5765 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
5766 * ginclude/proto.h: Rename to config/convex/proto.h.
5768 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5770 * attribs.c (handle_vector_size_attribute): Use host_integerp
5771 and tree_int_cst; remove warnings.
5772 * caller-save.c (insert_restore): Add cast to get rid of warning.
5773 (insert_save): Likewise.
5774 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
5775 * regmove.c (find_matches): Add temporary var to kill a warning.
5777 2002-01-01 Douglas B Rupp <rupp@gnat.com>
5779 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
5780 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
5781 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
5782 (vms-dwarf2eh.o): Add Makefile rule.
5783 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
5784 * config/alpha/vms-dwarf2eh.asm: New file.
5786 * gcc.c (delete_if_ordinary): Delete all versions.
5788 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
5790 * config/mmix/mmix.md: Update FIXME to not mention
5792 (MMIX_rJ_REGNUM): New define_constants constant.
5793 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
5794 "*movdicc_real"): Adjust contraints formatting.
5795 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
5796 for branch prediction.
5797 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
5799 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
5800 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
5801 number. Delete related FIXMEs.
5802 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
5803 from number to MMIX_rJ_REGNUM.
5804 (TARGET_MASK_BRANCH_PREDICT): New.
5805 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
5806 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
5807 value. Add -mbranch-predict and -mno-branch-predict.
5808 (TARGET_VERSION): Drop date.
5809 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
5810 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
5811 for finding out global symbols.
5812 (mmix_asm_output_labelref): Revert condition for global symbol.
5813 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
5814 (mmix_print_operand_punct_valid_p): A '+' is valid.
5816 See ChangeLog.6 for earlier changes.