1 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
3 * config/sparc/sparc.c (const64_high_operand): Zero-extend
4 operands of SPARC_SETHI_P.
5 (input_operand): Likewise.
6 (sparc_emit_set_const32): Likewise.
7 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
8 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
9 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
10 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
11 (movdi_insn_sp64_vis): Likewise.
12 (movdi split, movdf split): Use SETHI32.
13 * doc/md.texi: Document SPARC constraints L, M and N.
15 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
17 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
18 ("*set_vrsave_internal"): use mfspr for Darwin.
20 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
21 gen_get_vrsave_internal.
23 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
27 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
29 * cpplex.c (cpp_interpret_charconst): Get signedness or
30 otherwise of wide character constants correct.
31 * cppexp.c (lex): Get signedness of wide charconsts correct.
33 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35 * optabs.c (widen_operand): Only call convert_modes for
36 promoted SUBREG if signedness matches.
37 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
39 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
41 * cpplib.c (glue_header_name): Use local buffer to build up
44 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
46 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
48 2002-02-23 Kazu Hirata <kazu@hxi.com>
50 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
51 H8/300[HS] separately.
52 * config/h8300/h8300.md: Remove the early clobber constraint
53 from bit field patterns.
55 2002-02-23 Kazu Hirata <kazu@hxi.com>
57 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
60 (umulqisi3): Likewise.
61 (umulhisi3): Likewise.
63 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
65 * cppinit.c (output_deps): Correct test for stdout output.
66 (init_dependency_output): Cure warning.
68 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
70 * expr.c (store_expr): When converting expression to promoted
71 equivalent type, allow using SUBREG_REG of TARGET as the target
72 of the expansion of EXP.
73 * loop.c (basic_induction_var, case SUBREG): Always look inside.
74 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
75 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
76 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
77 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
79 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
81 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
82 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
83 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
85 2002-02-23 Jakub Jelinek <jakub@redhat.com>
88 * loop.c (scan_loop): Update reg info if move_movables created new
91 2002-02-23 David Edelsohn <edelsohn@gnu.org>
93 * gcc.c (init_gcc_spec): Revert last change.
95 2002-02-23 David Edelsohn <edelsohn@gnu.org>
97 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
98 gpc_reg_operand constraint.
100 2002-02-23 Alan Modra <amodra@bigpond.net.au>
102 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
103 Simplify comparison of `low'.
104 (add_operand): Fix formatting.
105 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
106 (mask_operand): Disallow mask to wrap in 64-bit mode.
107 (rs6000_stack_info): Remove redundant test setting push_p.
108 (output_toc): Fix formatting.
109 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
110 cc_reg_not_cr0_operand constraint.
111 (booldi3, boolcdi3 splitters): Same.
113 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
115 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
117 2002-02-22 David Edelsohn <edelsohn@gnu.org>
119 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
120 gcc invoked with -shared-libgcc.
122 2002-02-22 Jakub Jelinek <jakub@redhat.com>
125 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
126 decl if any of elements was TREE_USED.
128 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
130 * config/sparc/sol2.h: Don't include sys/mman.h.
131 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
132 (arith_4096_operand): Don't throw high bits away.
133 (const64_operand): Take sign extension of CONST_INTs into account.
134 (const64_high_operand, sparc_emit_set_const32): Likewise.
135 (GEN_HIGHINT64): Likewise.
136 (sparc_emit_set_const64_quick1): Likewise.
137 (const64_is_2insns): Likewise.
138 (print_operand): Use trunc_int_for_mode for sign extension.
139 * config/sparc/sparc.h (SMALL_INT32): Likewise.
140 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
141 chars. Assume CONST_INT is already properly sign-extended.
142 (movdi split): Sign-extend each SImode part.
143 (andsi3 split): Don't mask high bits off, so that result
144 remains properly sign-extend.
145 (iorsi3 split): Likewise.
146 (xorsi3 split): Likewise.
148 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
150 * fold-const.c (fold): Fix typo in comments.
152 2002-02-21 Diego Novillo <dnovillo@redhat.com>
154 * Makefile.in (langhooks.o): Update dependencies.
156 2002-02-21 Diego Novillo <dnovillo@redhat.com>
158 * langhooks.c: Include flags.h.
160 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
162 * testsuite/gcc.dg/attr-alwaysinline.c: New.
164 * c-common.c (c_common_post_options): Set inline trees by
167 * doc/extend.texi (Function Attributes): Document always_inline
169 Update documentation about inlining when not optimizing.
171 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
173 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
174 unless DECL_ALWAYS_INLINE.
176 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
177 unless DECL_ALWAYS_INLINE.
178 (c_disregard_inline_limits): Disregard if always_inline set.
180 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
181 Disregard if always_inline set.
182 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
183 unless DECL_ALWAYS_INLINE.
185 * attribs.c (handle_always_inline_attribute): New.
186 (c_common_attribute_table): Add always_inline.
188 * config/rs6000/altivec.h: Add prototypes for builtins
189 requiring the always_inline attribute.
191 2002-02-21 Eric Christopher <echristo@redhat.com>
193 * expmed.c (store_bit_field): Try to simplify the subreg
194 before generating a new one when when the mode size of
195 value is less than maxmode.
197 2002-02-21 Richard Henderson <rth@redhat.com>
199 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
200 than gen_rtx_PLUS to form the sum.
201 * explow.c (force_reg): Rearrange to not allocate new pseudo
202 when force_operand returns a register.
203 * expr.c (expand_assignment): Allow offset_rtx expansion to
204 return a sum. Do not force addresses into registers.
205 (expand_expr): Likewise.
206 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
207 to canonicalize arithmetic that didn't simpify.
208 (simplify_plus_minus): New argument force; update
209 all callers. Don't split CONST unless we can do something with it,
210 and wouldn't lose the constness of the operands.
212 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
213 that we generated earlier.
215 2002-02-21 Tom Tromey <tromey@redhat.com>
217 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
218 (output_line_info): Use constant `1', with a long explanatory
220 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
222 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
224 * jump.c (redirect_jump): If old label has no UID, don't try to
227 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
229 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
230 If input is constant, do shifts at compile time.
232 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
234 * doc/extend.texi: Fix some more overfull hboxes.
236 2002-02-21 Jakub Jelinek <jakub@redhat.com>
239 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
242 2002-02-21 Jakub Jelinek <jakub@redhat.com>
245 * expr.h (expand_and): Add mode argument.
246 * expmed.c (expand_and): Add mode argument.
247 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
248 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
249 * except.c (expand_builtin_extract_return_addr): Likewise.
250 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
251 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
252 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
253 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
254 * config/c4x/c4x.md: Use GEN_INT (x) instead of
255 gen_rtx (CONST_INT, VOIDmode, x).
257 2002-02-21 Jakub Jelinek <jakub@redhat.com>
260 * stmt.c (warn_if_unused_value): Move side effects test once more.
262 2002-02-20 Torbjorn Granlund <tege@swox.com>
264 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
265 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
267 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
269 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
270 SUBREG or ZERO_EXTEND.
272 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
274 * sh.h (current_function_anonymous_args): Remove.
275 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
276 of current_function_varargs and current_function_stdarg is set.
277 * sh.c (sh_expand_prologue): Check current_function_varargs /
278 current_function_stdarg / TARGET_SH5 instead of
279 current_function_anonymous_args.
281 * sh64.h (TARGET_VERSION): Define.
283 2002-02-20 David Edelsohn <edelsohn@gnu.org>
285 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
286 VRSAVE_REGNO on TARGET_ALTIVEC.
288 2002-02-20 Alan Modra <amodra@bigpond.net.au>
290 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
291 bits of SImode const_int.
292 (includes_rshift_p): Likewise.
293 (print_operand): Call mask_operand and mask64_operand with correct
295 (rs6000_output_function_epilogue): Pad traceback table to word.
296 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
297 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
298 mask64_operand with correct mode.
299 (FUNCTION_ARG_REGNO_P): Correct parentheses.
301 2002-02-20 Jakub Jelinek <jakub@redhat.com>
304 * varasm.c (get_pool_constant_mark): New.
305 * rtl.h (get_pool_constant_mark): Add prototype.
306 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
307 be represented if it has not been output.
309 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
311 * combine.c (do_SUBST): Sanity check substitutions of
312 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
313 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
314 CONST_INT into its operand.
315 (known_cond): Likewise, for ZERO_EXTEND.
316 * simplify-rtx.c (simplify_unary_operation): Fix condition to
317 allow for simplification of wide modes. Reject CONST_INTs in
318 ZERO_EXTEND when their actual mode is not given.
320 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
322 * c-decl.c (pushdecl): If no global declaration is found for an
323 extern declaration in block scope, try a limbo one.
325 2002-02-20 Jakub Jelinek <jakub@redhat.com>
328 * c-common.c (pointer_int_sum): Moved from...
329 * c-typeck.c (pointer_int_sum): ...here.
330 * c-common.h (pointer_int_sum): Add prototype.
332 2002-02-20 Jakub Jelinek <jakub@redhat.com>
335 * c-decl.c (duplicate_decls): Return 0 if issued error about
338 2002-02-20 Roger Sayle <roger@eyesopen.com>
339 Jakub Jelinek <jakub@redhat.com>
342 * tree.c (host_integerp): Ensure that the constant integer is
343 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
344 when pos is zero or non-zero respectively. Clarify comment.
345 * c-format.c (check_format_info_recurse): Fix host_integerp
346 usage; the pos argument should be zero when assigning to a
347 signed HOST_WIDE_INT.
349 2002-02-20 Richard Henderson <rth@redhat.com>
351 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
352 of the operand, rather than assuming TImode.
353 (ix86_expand_binop_builtin): Cope with commutative patterns
354 using nonimmediate_operand for both operands.
355 (ix86_expand_timode_binop_builtin): Likewise.
356 (ix86_expand_store_builtin): Validate operand 1.
357 (ix86_expand_unop1_builtin): Likewise.
359 2002-02-20 Philip Blundell <philb@gnu.org>
362 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
364 2002-02-20 Richard Henderson <rth@redhat.com>
367 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
369 2002-02-20 Tom Tromey <tromey@redhat.com>
371 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
372 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
373 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
374 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
375 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
378 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
380 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
381 for (const_int 0) in X not just INTVAL.
383 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
385 * doc/extend.texi: Avoid or reduce overfull hboxes.
387 2002-02-20 Diego Novillo <dnovillo@redhat.com>
389 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
390 operations if the field does not start at a mode boundary.
392 2001-02-20 Joel Sherrill <joel@OARcorp.com>
394 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
395 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
396 Also done for -Acpu and -Amachine.
398 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
400 * cppinit.c (init_dependency_output): Take deps output file
401 from -o if none given with -MF. Suppress normal output.
402 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
403 * doc/cpp.texi, doc/invoke.texi: Update.
405 2002-02-19 Zack Weinberg <zack@codesourcery.com>
407 * toplev.c (output_quoted_string): Write unprintable
408 characters with octal escapes.
410 2002-02-19 David Edelsohn <edelsohn@gnu.org>
412 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
413 really_call_used[VRSAVE_REGNO] if not Altivec.
415 2002-02-19 Alan Modra <amodra@bigpond.net.au>
417 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
419 (constant_pool_expr_1): Fix formatting.
420 (rs6000_legitimize_reload_address): Likewise.
422 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
424 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
425 now that we have one.
427 2002-02-19 Zack Weinberg <zack@codesourcery.com>
429 * tree.h (struct tree_common): Remove aux. Add unused_0 at
430 end of first block of bitfields (which was only seven bits);
431 rename dummy to unused_1; remove comment which is no longer true.
433 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
435 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
437 2002-02-19 Philip Blundell <pb@nexus.co.uk>
440 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
444 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
445 arm_is_longcall_p rather than inspecting call-type cookie
447 (call_value_insn) [TARGET_THUMB]: Likewise.
449 2002-02-19 Graham Stott <grahams@redhat.com>
451 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
453 2002-02-19 David Edelsohn <edelsohn@gnu.org>
455 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
456 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
457 (FP_SAVE_INLINE): Delete.
459 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
460 * config/rs6000/eabi.asm: Remove ABI save restore routines.
461 * config/rs6000/t-ppccomm: Build crtsavres.o.
462 * config/rs6000/crtsavres.asm: New file.
464 2002-02-19 Philip Blundell <philb@gnu.org>
466 * config/arm/arm.c (use_return_insn): Don't reject interrupt
468 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
469 (output_return_instruction): Allow interrupt functions to return with
470 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
471 (arm_expand_prologue): Subtract 4 before stacking LR in an
474 2002-02-19 Philip Blundell <pb@nexus.co.uk>
476 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
477 decl, not just FUNCTION_DECL.
478 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
479 (arm_assemble_integer): Likewise.
480 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
483 2002-02-19 matthew green <mrg@eterna.com.au>
485 * config.gcc (sparc-*-netbsdelf*): Enable target.
486 (sparc64-*-netbsd*): New target.
487 * config/sparc/netbsd-elf.h: New file.
488 * config/sparc/t-netbsd64: New file.
490 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
492 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
494 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
496 * doc/invoke.texi: explicitly list the style guidelines that
499 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
501 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
503 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
506 * gcc.c (cpp_unique_options): Treat -o as indicating object file
507 only if not -E. If -E, pass -o through to the preprocessor.
509 2002-02-19 Kazu Hirata <kazu@hxi.com>
511 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
512 register number with an appropriate macro.
514 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
516 * doc/rtl.texi (Constants): Close @code tag.
518 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
520 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
521 ("mmx_uavgv4hi3"): Same.
522 ("pmulhrwv4hi3"): Same.
524 * tree-inline.c (walk_tree): Handle vectors.
526 * c-common.c (constant_expression_warning): Handle vectors.
527 (overflow_warning): Same.
529 * sched-deps.c (sched_analyze_2): Handle vectors.
531 * rtlanal.c (rtx_unstable_p): Handle vectors.
532 (rtx_varies_p): Same.
533 (count_occurrences): Same.
534 (regs_set_between_p): Same.
535 (modified_between_p): Same.
536 (modified_in_p): Same.
537 (volatile_insn_p): Same.
538 (volatile_refs_p): Same.
539 (side_effects_p): Same.
541 (inequality_comparisons_p): Same.
542 (replace_regs): Same.
543 (computed_jump_p_1): Same.
545 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
547 (inner_mode_array): New.
548 (copy_rtx): Handle vectors.
549 (copy_most_rtx): Same.
551 (get_mode_alignment): Adjust for vectors.
553 * resource.c (mark_referenced_resources): Handle vectors.
554 (mark_set_resources): Same.
556 * reload1.c (eliminate_regs): Handle vectors.
557 (elimination_effects): Same.
558 (scan_paradoxical_subregs): Same.
560 * reload.c (subst_reg_equivs): Handle vectors.
562 * regrename.c (scan_rtx): Handle vectors.
564 * regclass.c (reg_scan_mark_refs): Handle vectors.
566 * recog.c (find_single_use_1): Handle vectors.
568 * local-alloc.c (equiv_init_varies_p): Handle vectors.
569 (contains_replace_regs): Same.
570 (memref_referenced_p): Same.
572 * integrate.c (copy_rtx_and_substitute): Handle vectors.
573 (subst_constants): Same.
575 * genattrtab.c (attr_copy_rtx): Handle vectors.
576 (encode_units_mask): Same.
577 (clear_struct_flag): Same.
578 (count_sub_rtxs): Same.
580 * gcse.c (want_to_gcse_p): Handle vectors.
581 (oprs_unchanged_p): Same.
583 (oprs_not_set_p): Same.
584 (expr_killed_p): Same.
585 (compute_transp): Same.
586 (store_ops_ok): Same.
588 * function.c (purge_addressof_1): Do not allow paradoxical subregs
590 (fixup_var_refs_1): Same.
591 (instantiate_virtual_regs_1): Same.
593 * fold-const.c (operand_equal_p): Handle vectors.
595 (rtl_expr_nonnegative_p): Same.
597 * flow.c (mark_used_regs): Handle vectors.
599 * df.c (df_uses_record): Handle vectors.
601 * cselib.c (cselib_subst_to_values): Handle vectors.
602 (cselib_mem_conflict_p): Same.
605 * cse.c (canon_reg): Handle vectors.
607 (cse_process_notes): Same.
608 (count_reg_usage): Same.
611 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
613 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
615 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
616 (gen_rtx): Handle CONST_VECTOR.
617 (gen_const_vector_0): New.
618 (copy_rtx_if_shared): CONST_VECTORs can be shared.
619 (reset_used_flags): Same.
621 (initializer_constant_valid_p): Handle VECTOR_CST.
623 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
625 * doc/rtl.texi (Constants): Document const_vector.
626 (CONST0_RTX): Update for vectors.
629 * print-tree.c (print_node): Add case for VECTOR_CST.
631 * tree.h (TREE_VECTOR_CST_ELTS): New.
632 (struct tree_vector): New.
633 (union tree_node): Add vector node.
634 (build_vector): Add prototype.
636 * tree.def (VECTOR_CST): New.
638 * tree.c (build_vector): New.
640 * expmed.c (make_tree): Handle CONST_VECTOR.
642 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
643 (CONST_VECTOR_ELT): New.
644 (CONST_VECTOR_NUNITS): New.
646 * machmode.h (GET_MODE_INNER): New.
647 (DEF_MACHMODE): Accept 8th arg.
649 * machmode.def: Add 8th argument for vector inner mode.
650 Add inner vector modes for vectors.
652 * rtl.def (VEC_CONST): Remove.
655 * expr.c (clear_storage): Allow vectors.
656 (is_zeros_p): Handle VECTOR_CST.
658 * varasm.c (output_constant_pool): Handle vectors.
659 (rtx_const): Add veclo and vechi fields.
660 (kind): Add RTX_VECTOR.
661 (decode_rtx_const): Add case for vector.
663 * config/rs6000/rs6000-protos.h: Add zero_constant.
665 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
666 constants. Force easy vector constants into memory.
667 (easy_vector_constant): New.
668 (emit_easy_vector_constant): New.
669 (rs6000_legitimize_reload_address): Do not generate bad reloads on
672 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
674 ("altivec_lvxl"): Same.
675 (altivec_lvebx): Same.
676 (altivec_lvehx): Same.
677 (altivec_lvewx): Same.
678 ("*movv4si_const0"): New.
679 ("*movv4sf_const0"): New.
680 ("*movv8hi_const0"): New.
681 ("*movv16qi_const0"): New.
683 2002-02-18 Kazu Hirata <kazu@hxi.com>
685 * config/h8300/h8300.c (notice_update_cc): Use
688 2002-02-18 Kazu Hirata <kazu@hxi.com>
690 * config/h8300/h8300.md (divmod patterns): Change the
691 constraints for operands[1] to register_operand.
693 2002-02-18 Kazu Hirata <kazu@hxi.com>
695 * config/h8300/h8300-protos.h: Remove the prototype for
697 * config/h8300/h8300.c (p_operand): Remove.
698 * config/h8300/h8300.md: Replace p_operand with
701 2002-02-18 Philip Blundell <pb@nexus.co.uk>
703 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
705 (output_return_instruction): Allow use of LDR to unstack
706 return addresss even for interrupt handlers or when
707 interworking. If compiling for ARMv5, use interworking-safe
708 return instructions by default. Remove duplicated code and
709 lengthy "strcat" sequences.
711 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
713 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
714 (LINK_EH_SPEC): Define.
715 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
717 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
719 * config/s390/s390.c (s390_emit_prologue): Do not set the
720 frame_related flag for call-clobbered registers.
722 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
724 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
725 (construct_container): Fix handling of SSE operands.
726 (ix86_expand_builtin): Fix handling of 64bit pointers.
727 (mmx_maskmovq_rex): New pattern.
729 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
731 * regrename.c (kill_set_value): Handle subregs properly.
733 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
735 * objc/objc-act.c (handle_impent): Remove leading '*'
736 from objc_class_name.
738 2002-02-17 Richard Henderson <rth@redhat.com>
740 * config/alpha/alpha.c (some_small_symbolic_operand,
741 some_small_symbolic_operand_1, split_small_symbolic_operand,
742 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
743 Handle small SYMBOL_REFs anywhere, not just inside memories.
744 * config/alpha/alpha-protos.h: Update.
745 * config/alpha/alpha.h (PREDICATE_CODES): Update.
746 * config/alpha/alpha.md (small symbolic operand splitter): Update.
748 2002-02-17 Roland McGrath <roland@frob.com>
750 * config.gcc (powerpc-*-gnu-gnualtivec*,
751 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
752 * config/rs6000/gnu.h: New file.
753 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
754 Grok "gnu" in rs6000_abi_name.
755 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
756 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
757 Grok -mcall-gnu analogous to -mcall-linux et al.
758 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
759 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
760 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
762 2002-02-17 Jakub Jelinek <jakub@redhat.com>
765 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
768 2002-02-17 Philipp Thomas <pthomas@suse.de>
770 * config/cris/cris.h: Undefine STARTFILE_SPEC and
771 ENDFILE_SPEC before (re)defining them.
773 2002-02-17 Kazu Hirata <kazu@hxi.com>
775 * config/h8300/h8300.c: Fix formatting.
776 * config/h8300/h8300.h: Likewise.
778 2002-02-17 Philipp Thomas <pthomas@suse.de>
780 * doc/tm.texi: Explain why empty strings should not be
781 marked for translation.
783 2002-02-17 Philipp Thomas <pthomas@suse.de>
785 * final.c (output_operand_lossage): Changed to accept
786 printf style arguments. Change calls where necessary.
787 * output.h (output_operand_lossage): Change declaration
788 accordingly. Update copyright.
789 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
790 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
791 Update copyright date where necessary.
793 * config/i386/i386.c (print_operand): Likewise. Remove use of
796 * config/cris/cris.c (cris_operand_lossage): Likewise.
797 Rename parameter so that exgettext recognizes it as
798 translatable message.
799 (LOSE_AND_RETURN): Rename parameter to msgid.
801 2002-02-17 Kazu Hirata <kazu@hxi.com>
803 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
804 hard coded register number with an appropriate macro.
805 (HARD_REGNO_MODE_OK): Likewise.
806 (ARG_POINTER_REGNUM): Likewise.
807 (STATIC_CHAIN_REGNUM): Likewise.
808 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
809 * config/h8300/h8300.md (define_constants): Define more
812 2002-02-17 Philipp Thomas <pthomas@suse.de>
814 * config/i386/i386.h: Don't mark empty strings for translation.
816 2002-02-16 H.J. Lu <hjl@gnu.org>
818 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
820 2002-02-16 Zack Weinberg <zack@codesourcery.com>
822 * cppinit.c (merge_include_chains): Check for brack being
823 NULL before attempting to merge it with qtail.
825 2002-02-16 Andrew Cagney <ac131313@redhat.com>
827 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
830 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
832 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
834 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
836 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
837 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
838 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
840 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
842 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
843 now only if !TARGET_FIX.
844 (*movsi_nt_vms_fix): New pattern.
846 2002-02-16 Douglas B Rupp <rupp@gnat.com>
848 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
849 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
850 (alpha_sa_mask, alpha_sa_size): Reflect above change.
851 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
852 (alpha_start_function, alpha_expand_epilogue): Likewise.
853 (unicosmk_gen_dsib): Likewise.
855 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
857 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
859 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
861 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
862 check_and_change_labels, s390_final_chunkify): Delete.
863 (s390_split_branches, s390_chunkify_pool): New functions.
864 (s390_function_prologue): Call them.
866 * config/s390/s390.h (S390_REL_MAX): Delete.
867 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
869 * config/s390/s390.md (cjump, icjump, jump): Fix length
870 attribute calculation.
873 2002-02-15 David Edelsohn <edelsohn@gnu.org>
875 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
876 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
878 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
880 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
881 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
882 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
884 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
886 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
888 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
890 * reload.c (find_dummy_reload): Check that an output register
891 is valid for its mode.
893 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
895 * combine.c (known_cond): After replacing the REG of a SUBREG, try
898 * function.c (assign_parms): Demote promoted argument passed by
899 transparent reference.
901 2001-02-14 Joel Sherrill <joel@OARcorp.com>
903 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
904 -Acpu() and -Amachine() to eliminate warnings.
906 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
908 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
910 2002-02-14 Kazu Hirata <kazu@hxi.com>
912 * config/h8300/h8300-protos.h: Update the prototype for
914 * config/h8300/h8300.c (const_costs): Treat SET as a little
915 more expensive operation.
916 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
917 reference to const_costs.
919 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
921 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
923 2002-02-14 Jakub Jelinek <jakub@redhat.com>
926 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
927 use arguments from newtype.
929 2002-02-13 Eric Christopher <echristo@redhat.com>
931 * config/mips/mips.c (override_options): Add check for march/mipsX
932 on the same command line. Fix error message in cpu processing.
933 Remove architecture and ISA checks.
935 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
937 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
939 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
941 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
943 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
945 ("*movv8hi_internal1"): Same.
946 ("*movv16qi_internal1"): Same.
947 ("*movv4sf_internal1"): Same.
949 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
950 not push_reload for altivec modes.
952 2002-02-13 Joel Sherrill <joel@OARcorp.com>
954 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
955 all RTEMS targets including removal of #includes from config/*/rtems*.h
956 file and adding them to tm_file setting. Added xm_defines=POSIX to
958 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
959 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
960 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
961 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
962 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
963 config/m68k/rtemself.h: Ditto.
964 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
965 config/mips/rtems64.h: Ditto.
966 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
967 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
969 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
970 config/sparc/rtemself.h: Ditto.
971 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
972 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
973 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
975 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
976 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
977 target made more similar to i386-elf.
978 * config/i386/t-rtems-i386: Added soft float support and multilibs.
979 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
980 be similar to config/m68k/t-m68kelf.
981 * gthr-rtems.h: Encapsulate with extern "C" for C++.
983 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
985 * regmove.c (kill_value): Handle subregs.
987 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
989 * i386.md (mul patterns): Allow memory operand to be first;
990 add expanders where needed; fix constraints.
991 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
992 Allow memory operand to be the first.
994 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
997 2002-02-13 Jakub Jelinek <jakub@redhat.com>
1000 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
1003 2002-02-13 Jakub Jelinek <jakub@redhat.com>
1005 PR optimization/5547:
1006 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
1007 all valid IA-32 address modes involving non-scaled %ebx and
1008 GOT/GOTOFF as displacement.
1010 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
1012 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
1013 after emitting ltorg insns.
1015 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
1016 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
1017 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
1018 *abssf2): Fix "op_type" attribute.
1020 2002-02-13 Douglas B Rupp <rupp@gnat.com>
1022 * mkconfig.sh: Avoid using a subshell redirect.
1023 ($output.T): Change to $(output)T.
1024 (ENABLE_NLS): Remove unneeded undef.
1026 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
1027 * config/alpha/x-vms (libsubdir): Define.
1029 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
1030 register frame procedures. Optimize retrieving context.
1032 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
1033 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
1034 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
1036 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1038 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
1039 Make same change as for find_base_value.
1041 2002-02-13 Kazu Hirata <kazu@hxi.com>
1043 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
1044 of QImode and SImode.
1046 2002-02-13 Kazu Hirata <kazu@hxi.com>
1048 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
1049 length computation of movsi.
1050 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
1052 2002-02-13 Kazu Hirata <kazu@hxi.com>
1054 * config/h8300/h8300.md (subqi3): Tighten the predicate for
1055 operands[2] to register_operand.
1057 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
1059 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
1061 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
1063 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
1064 for altivec_lvx* and altivec_stvx*.
1065 ("*movv4si_internal"): Add constraint for loading from GPRs.
1066 ("*movv8hi_internal1"): Same.
1067 ("*movv16qi_internal1"): Same.
1068 ("*movv4sf_internal1"): Same.
1070 * config/rs6000/rs6000.c (altivec_register_operand): New.
1072 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
1073 altivec_register_operand.
1075 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
1077 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
1080 2002-02-13 Stan Shebs <shebs@apple.com>
1082 * c-typeck.c (digest_init): Handle vectors.
1083 (really_start_incremental_init): Same.
1084 (pop_init_level): Same.
1085 (process_init_element): Same.
1087 * varasm.c (output_constant): Same.
1089 * expr.c (clear_storage): Same.
1090 (store_constructor): Same.
1092 2002-02-12 Eric Christopher <echristo@redhat.com>
1094 * explow.c (hard_function_value): Add comment explaining
1095 signed/unsigned comparison.
1097 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1099 * jump.c (never_reached_warning): Add finish argument.
1100 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
1101 real insn after end.
1102 * rtl.h (never_reached_warning): Adjust prototype.
1103 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
1104 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
1105 never_reached_warning.
1107 2002-02-12 Graham Stott <grahams@redhat.com>
1109 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
1111 2002-02-12 Kazu Hirata <kazu@hxi.com>
1113 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
1114 logical shifts on H8/300.
1115 (shift_alg_si): Improve several shifts on H8/300.
1116 (get_shift_alg): Likewise.
1118 2002-02-12 Graham Stott <grahams@redhat.com>
1120 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
1122 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1124 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
1125 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
1127 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
1129 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
1130 non-CONST_INT through default_assemble_integer.
1131 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
1132 <case 8>: Abort for CONST_DOUBLE.
1134 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1136 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
1138 * config/pa/pa-linux.h (LIB_SPEC): Delete.
1139 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
1141 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
1143 * config/stormy16/stormy16.md (zero_extendqihi2): New.
1145 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
1147 * regrename.c (regrename_optimize): Don't accept a
1148 part-clobbered register if the replaced register is not part
1151 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
1152 take padding into account when computing the argument value.
1154 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
1156 * combine.c (try_combine): Apply substitutions in
1157 CALL_INSN_FUNCTION_USAGE too.
1159 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
1161 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
1162 __builtin_altivec_abs*.
1165 * config/rs6000/rs6000.h (rs6000_builtins): Add
1166 ALTIVEC_BUILTIN_ABS*.
1168 * config/rs6000/altivec.h: Use const char for builtins expecting
1170 (vec_abs): New versions for C and C++.
1173 2002-02-10 Kazu Hirata <kazu@hxi.com>
1175 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
1178 2002-02-10 Kazu Hirata <kazu@hxi.com>
1180 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
1181 constant definition from h8300.md.
1182 (FRAME_POINTER_REGNUM): Likewise.
1183 * config/h8300/h8300.md (define_constants): Add FP_REG.
1185 2002-02-10 Kazu Hirata <kazu@hxi.com>
1187 * config/h8300/h8300.c (print_operand): Remove redundant code.
1189 2002-02-10 Kazu Hirata <kazu@hxi.com>
1191 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
1192 * config/h8300/h8300.c (byte_reg): Make it static.
1194 2002-02-10 Richard Henderson <rth@redhat.com>
1197 * c-typeck.c (incomplete_type_error): Handle flexible array members.
1199 2002-02-10 Richard Henderson <rth@redhat.com>
1202 * tree.c (append_random_chars): Don't abort if main_input_filename
1205 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
1207 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
1209 2002-02-10 Kazu Hirata <kazu@hxi.com>
1211 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
1212 (pushhi1): Likewise.
1214 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
1216 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
1217 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
1219 2002-02-09 David O'Brien <obrien@FreeBSD.org>
1221 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
1223 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
1225 2002-02-09 Kazu Hirata <kazu@hxi.com>
1227 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
1228 a half of an SImode register on H8/300.
1230 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
1232 * i386.md (movdi_2): Add missing '!'.
1234 2002-02-09 Kazu Hirata <kazu@hxi.com>
1236 * config/h8300/h8300.h: Fix formatting. Remove commented-out
1239 2002-02-09 Kazu Hirata <kazu@hxi.com>
1241 * config/h8300/h8300.md (length): Correct the distance valid
1242 for the short branch.
1244 2002-02-09 Kazu Hirata <kazu@hxi.com>
1246 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
1248 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
1250 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
1251 registers in SImode.
1252 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
1255 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
1258 Contribute sh64-elf.
1259 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
1260 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
1261 (sh_cannot_modify_jumps_p): New function.
1262 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
1263 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
1264 (sh_ms_bitfield_layout_p): New function.
1265 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
1266 Zack Weinberg <zack@codesourcery.com>
1267 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
1268 expand_simple_binop instead of expand_binop.
1269 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
1270 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
1271 use of .quad and .uaquad.
1272 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
1273 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
1274 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1275 * config/sh/sh.md (movdi_const, movdi_const_32bit,
1276 movdi_const_16bit): Make sure all CONSTs have modes.
1277 (sym2PIC): Ditto, but by adjusting all callers.
1278 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
1279 if the prologue calls the SHmedia argument decoder or register
1281 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1282 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
1283 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
1284 (sh_expand_epilogue): Don't emit USE of return target register.
1285 (prepare_move_operands): Legitimize DImode PIC addresses.
1286 (sh_media_register_for_return): Skip tr0, used to initialize the
1288 (sh_expand_prologue): Remove explicit USE of return register.
1289 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
1290 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
1291 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
1292 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
1293 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
1295 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
1296 (MOVI_SHORI_BASE_OPERAND_P): New.
1297 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
1298 (EXTRA_CONSTRAINT_T): Define in terms of them.
1299 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
1300 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
1301 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
1302 alternatives supporting TARGET_REGS.
1303 (UNSPEC_GOTPLT): New constant.
1304 (movdi split): Move incrementing of LABEL_NUSES...
1305 (movdi_const, movdi_const_32bit): Here. Use
1306 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
1307 (movdi_const_16bit): New.
1308 (call, call_value) [flag_pic]: Use GOTPLT.
1309 (call_pop, call_value_pop): New expands.
1310 (call_pop_compact, call_pop_rettramp): New insns.
1311 (call_value_pop_compact, call_value_pop_rettramp): New insns.
1312 (sibcall) [flag_pic]: Use GOT.
1313 (builtint_setjmp_receiver): Remove bogus, unused expand.
1314 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
1315 (*pt, *ptb, ptrel): New insns.
1316 (sym2GOT): Handle DImode GOT.
1317 (sym2GOTPLT, symGOTPLT2reg): New expands.
1318 (sym2PIC): New expand.
1319 (shcompact_return_tramp): Use GOTPLT to return trampoline.
1320 (shcompact_return_tramp_i): Use return register explicitly.
1321 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
1322 disable flag_reorder_blocks.
1323 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
1324 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
1325 clobbers, for clarity.
1326 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
1327 restoring of r0 in macl as MAYBE_DEAD.
1328 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1329 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
1330 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
1331 alter_subreg all over.
1332 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
1333 reload, instead of emitting instructions that would require
1335 (casesi_load_media): Add missing modes.
1336 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
1337 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
1338 as used if the argument decoder is called.
1339 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
1340 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
1341 Pmode, then extend it to DImode if necessary.
1342 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
1343 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
1344 constants in FPU-enabled SHmedia, let them be loaded from memory.
1345 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
1346 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
1347 Adjust whitespace in assembly output templates.
1348 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
1349 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
1350 mode of if_then_else.
1351 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
1352 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
1354 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
1355 Joern Rennecke <amylaar@redhat.com>
1356 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
1357 (SUBTARGET_CPP_PTR_SPEC): New.
1358 (SUBTARGET_CPP_SPEC): Remove.
1359 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
1360 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
1361 Fix typo in previous checkin.
1362 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
1363 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
1364 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
1365 Alexandre Oliva <aoliva@redhat.com>
1366 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
1367 what single FP register can hold for SHmedia target.
1368 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
1369 Alexandre Oliva <aoliva@redhat.com>
1370 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
1371 Do not split into SUBREG.
1372 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
1373 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
1374 and added new functions as specified in SH5 ABI r9.
1375 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
1376 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
1378 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
1379 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
1380 gen_consttable_4 and gen_consttable_8. Emit multiple labels
1381 and consttable_window_ends.
1382 2001-06-03 Graham Stott <grahams@redhat,com>
1383 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
1384 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
1385 * config/sh/sh.c (print_operand): Handle floating-point pair,
1386 vector and matrix registers.
1387 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
1388 vector modes into account.
1389 * config/sh/sh.md (movv2sf): Split move between registers into
1391 (movv4sf, movv16sf): Introduce insns that get split only after
1393 * config/sh/shmedia.h: Fix Copyright dates.
1394 * config/sh/ushmedia.h: Likewise. Move loop counter
1395 declarations into conditionals that uses them.
1396 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
1398 * config/sh/sshmedia.h: Fix Copyright dates.
1399 (sh_media_PUTCFG): Fix constraints.
1400 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
1401 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
1402 ptrmemfunc_vbit_in_delta for SH5.
1403 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
1404 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
1405 * invoke.texi: Likewise.
1406 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
1407 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
1408 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
1409 GCC_pop_shmedia_regs_nofpu): New global symbols.
1410 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
1411 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
1412 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
1413 compact function with nonlocal labels.
1414 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
1415 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
1416 (initial_elimination_offset): Account for their stack space.
1417 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
1418 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
1419 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
1420 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
1421 least one of the operands to be a register.
1422 (movv2sf): Likewise. Renamed to movv2sf_i.
1423 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
1424 prepare_move_operands() before emitting SHmedia insns.
1425 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
1426 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
1427 Don't save nor initialize r12. Don't mis-align the stack.
1428 Pad the code with a nop.
1429 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
1431 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
1432 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
1433 [__SHMEDIA__]: Implement.
1434 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
1435 * config/sh/sh.md: Set latency of `pt' closer to reality.
1436 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
1437 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
1438 Set move, load and store type attributes.
1439 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
1440 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
1442 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
1443 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
1444 * config/sh/sh.c (sh_media_register_for_return): New function.
1445 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
1446 branch-target register.
1447 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
1448 * config/sh/sh.md (return_media_i): Use any call-clobbered
1449 branch-target register.
1450 (return_media): If r18 wasn't copied in the prologue, copy it
1452 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
1453 Clear class FP0_REGS.
1454 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
1456 2001-03-08 DJ Delorie <dj@redhat.com>
1457 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
1458 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
1459 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
1460 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
1461 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
1462 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
1463 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
1464 return value correctly for call_cookie.
1465 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
1466 * config/sh/crt1.asm (start): Modified so as to call
1467 ___setup_argv_and_call_main.
1468 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
1469 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
1471 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
1472 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
1473 (STRIP_NAME_ENCODING): Use it.
1474 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
1475 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
1476 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
1477 prepare_scc_operands().
1478 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
1479 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
1480 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
1481 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
1482 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
1483 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
1484 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
1485 used in shcompact_incoming_args.
1486 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
1488 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
1490 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
1492 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
1493 Simplify. Adjust. Add sanity check.
1494 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
1496 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
1498 (udivsi3, divsi3): Use them.
1499 (force_mode_for_call): New insn.
1500 (call, call_value, sibcall_value): Emit it before SHcompact
1502 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
1503 * config/sh/sh.md (call, call_value, sibcall): Make sure the
1504 call cookie is non-NULL before taking its value.
1505 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
1506 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
1507 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
1508 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
1510 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
1511 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
1512 temporary for stack adjusts. Use MACL and MACH to pass
1513 arguments to shcompact_incoming_args.
1514 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
1516 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
1517 (nested_trampoline): Load static chain address into r1.
1518 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
1519 2001-01-07 Alexandre Oliva <aoliva@redhat.com
1520 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
1521 fp_arith_reg_operand().
1522 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
1523 * config/sh/sh.md (casesi): Sign-extend the first two operands,
1524 and use signed compares for them.
1525 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
1526 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
1527 ones properly aligned.
1528 (find_barrier): Account for extra alignment needed for 8-byte wide
1530 (machine_dependent_reorg): Require a label for the second 4-byte
1531 constant after an 8-byte one.
1532 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
1534 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
1535 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
1536 last_float when switching float modes.
1537 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
1538 auto-increment for general-purpose registers.
1539 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
1541 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
1543 * config/sh/sh.c (sh_builtin_saveregs): Support using all
1544 registers for varargs.
1545 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
1546 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
1547 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
1548 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
1549 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
1550 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
1551 call_cookie accordingly.
1552 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
1553 (SHCOMPACT_BYREF): Likewise.
1554 (SHCOMPACT_FORCE_ON_STACK): New macro.
1555 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
1556 (sh_builtin_saveregs): Likewise.
1557 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
1558 shcompact_incoming_args): Use new shift values. Support
1559 sequences of consecutive and non-consecutive pushes/pops.
1560 * config/sh/sh.md (return): Don't explicitly use PR_REG.
1561 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
1562 * config/sh/sh.h (TEXT_SECTION): Define.
1563 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
1564 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
1565 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
1566 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
1567 return values on FPU-enabled SHmedia.
1568 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
1569 FPU-enabled SHmedia.
1570 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
1571 value is returned in a non-FP reg and is not returned by
1573 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
1575 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
1576 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
1577 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
1578 quad-aligned to be passed by callee-copy reference.
1579 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
1580 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
1581 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
1582 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
1583 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
1584 copying low-numbered FP regs to r7 and r8.
1585 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
1586 FP regs to general-purpose regs only if the copy was passed on the
1588 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
1589 copying FP reg to r9.
1590 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
1591 copy FP regs to general-purpose regs only in outgoing calls.
1592 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
1593 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
1595 * config/sh/sh.h (struct sh_args): Document all fields.
1596 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
1597 passed partially on the stack should not consider making
1599 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
1600 stack_regs only for incoming calls. When passing FP args,
1601 make sure there are FP regs available before modifying
1603 (SHCOMPACT_BYREF): Pass double args in general-purpose
1604 registers by reference.
1605 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
1606 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
1607 attempt to generate sibcalls if the caller got any arguments
1609 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
1610 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
1611 to 8-byte boundaries.
1612 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
1613 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
1614 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
1615 stored in the stack.
1616 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
1617 for the offsets to have the ISA bit set.
1618 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
1619 invocation. Use beq instead of bgt to mark end of sequence of
1621 (shcompact_incoming_args): Fix store of r2. Use beq instead of
1622 bgt to mark end of sequence of stores.
1623 * config/sh/sh.c (arith_operand): Don't check whether
1624 CONST_OK_FOR_J for now.
1625 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
1626 instead of long for conversion.
1627 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
1628 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
1629 before passing it to fprintf.
1630 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
1631 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
1632 Call set_fpscr before reading/writing SR.
1633 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
1635 * config/sh/lib1funcs.asm: Add `.align 2' directives before
1637 (FMOVD_WORKS): Define on SH5 with FPU.
1638 (set_fpscr): Define on SH5. Remove separate _fpscr_values
1640 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
1642 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
1643 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
1645 (ia_main_table): Ditto.
1646 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
1647 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
1648 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
1649 the definitions from sh.h.
1650 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
1652 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
1653 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
1654 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
1655 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
1656 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
1657 Increment LABEL_NUSES.
1659 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
1661 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
1663 * config/sh/elf.h (SIZE_TYPE): Likewise.
1664 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
1665 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
1666 shcompact_incoming_args): Load switch table addresses using
1668 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
1669 (NO_BUILTIN_SIZE_TYPE): Define.
1670 (SIZE_TYPE): Don't define.
1671 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
1672 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
1673 definition of __SH5__=32 for -m5-compact-nofpu.
1674 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
1676 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
1677 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
1678 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
1679 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
1680 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
1681 (INSN_LENGTH_ALIGNMENT): Likewise.
1682 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1683 * config/sh/sh.md (call, call_value, sibcall): Simplify
1684 copying of non-branch-target register.
1685 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1686 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
1687 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
1688 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1689 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
1690 floating-point values as structs.
1691 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
1692 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
1693 general-purpose register.
1694 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
1695 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
1696 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
1697 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
1698 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
1699 (ENCODE_SECTION_INFO): Enclose variables and constants in
1701 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
1702 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
1703 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
1704 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
1705 only for LABEL_REFs. For SYMBOL_REFs, prepend
1706 SH_DATALABEL_ENCODING to the symbol name.
1707 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
1709 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
1710 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
1712 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
1713 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
1714 (DATALABEL_REF_P): Don't require CONST.
1715 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
1717 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
1718 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
1720 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
1721 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
1722 Use shallow_copy_rtx and PUT_MODE to change the mode of
1723 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
1724 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
1725 on SHmedia using GENERAL_REGs.
1726 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
1727 bltu_media_i): Fix reversion of conditions.
1728 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
1729 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
1730 * config/sh/sh.c (output_far_jump): Save r13 in macl.
1731 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
1732 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
1733 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
1734 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
1735 (GCC_nested_trampoline): Likewise.
1736 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
1737 * config/sh/sh.c (gen_datalabel_ref): Define.
1738 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
1739 (INITIALIZE_TRAMPOLINE): Likewise.
1740 (TRAMPOLINE_ADJUST_ADDRESS): Define.
1741 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
1742 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
1743 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
1744 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
1745 (ic_invalidate): Adjust for SH5.
1746 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
1747 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
1749 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
1750 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
1751 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
1752 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
1753 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
1754 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
1755 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
1756 * config/sh/sh.c (target_reg_operand): Match only target-branch
1757 registers and pseudos that aren't virtual registers.
1758 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
1759 Copy operands that don't match target_reg_operand to pseudos.
1760 (call_media, call_value_media, sibcall_media): Use
1761 target_reg_operand instead of target_operand.
1762 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
1763 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
1764 * config/sh/sh.c (target_reg_operand): Match hardware registers
1765 other than branch-target registers.
1766 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
1767 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
1768 (fpscr_values) [SH5 == 32]: Define.
1769 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
1770 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
1771 Handle function addresses coming in SUBREGs.
1772 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
1773 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
1774 shcompact_return_trampoline): Use datalabel where appropriate.
1775 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
1776 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
1777 general-purpose register to copy one branch-target register to
1779 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
1780 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
1781 SYMBOL_REFs with VOIDmode.
1782 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
1783 bltu_media_i): New insns.
1784 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
1785 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
1786 (INIT_CUMULATIVE_ARGS): Likewise.
1787 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
1788 * machmode.def (V16SFmode): New mode.
1789 * c-common.c (type_for_mode): Support V2SF and V16SF.
1790 * tree.c (build_common_tree_nodes_2): Likewise.
1791 * tree.h (tree_index): Likewise.
1792 * calls.c (emit_call_1): Take args_so_far. Adjust all
1793 callers. Introduce CALL_POPS_ARGS.
1794 * tm.texi (CALL_POPS_ARGS): Document.
1795 * config/sh/crt1.asm: Implement in SHmedia mode.
1796 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
1797 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
1798 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
1799 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
1800 Implement divsi and udivsi in SHmedia mode. Introduce
1801 SHcompact trampolines.
1802 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
1804 (regno_reg_class): Rewrite.
1805 (fp_reg_names): Remove.
1806 (sh_register_names, sh_additional_register_names): New.
1807 (print_operand): Added `u'. Support SUBREGs in addresses.
1808 Add parentheses around shifted CONSTs.
1809 (output_file_start): Output .mode and .abi directives.
1810 (shiftcosts, addsubcosts, multcosts): Adjust.
1811 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
1812 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
1813 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
1814 bytes, not registers. Take into account the need for the
1815 SHcompact incoming args trampoline. Adjust all callers.
1816 (sh_expand_prologue): Take stack_regs into account. Call
1817 incoming args trampoline. Keep stack aligned as per SH5 ABI.
1818 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
1819 stack aligned as per SH5 ABI.
1820 (sh_builtin_saveregs): Support SH5 ABI.
1821 (sh_build_va_list, sh_va_start): Likewise.
1822 (initial_elimination_offset): Take alignment into account.
1823 Compute location of PR according to the SH5 stack frame.
1824 (arith_reg_operand): Reject branch-target registers.
1825 (shmedia_6bit_operand): New.
1826 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
1827 (target_reg_operand): Match DImode only. Accept SUBREGs.
1828 (target_operand): New.
1829 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
1830 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
1831 SIBCALL_REGS for SHmedia.
1832 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
1833 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
1834 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
1835 (TARGET_SWITCHES): New SH5 flags.
1836 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
1837 VALID_REGISTER_P to disable unsupported registers.
1838 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
1839 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
1840 (FUNCTION_ARG_PADDING): Define.
1841 (FASTEST_ALIGNMENT): Adjust.
1842 (SH_REGISTER_NAMES_INITIALIZER): New.
1843 (sh_register_names): Declare.
1844 (DEBUG_REGISTER_NAMES): Define.
1845 (REGISTER_NAMES): Define based on sh_register_names.
1846 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
1847 (sh_additional_register_names): Declare.
1848 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
1849 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
1850 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
1851 (REGISTER_NATURAL_MODE): Define.
1852 (FIRST_PSEUDO_REGISTER): Adjust.
1853 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
1854 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
1855 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
1856 (VECTOR_MODE_SUPPORTED_P): Define.
1857 (REG_CLASS_CONTENTS): Adjust.
1858 (SMALL_REGISTER_CLASSES): Adjust.
1859 (REG_ALLOC_ORDER): Adjust.
1860 (INDEX_REG_CLASS): Adjust.
1861 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
1862 (CONST_OK_FOR_LETTER_P): Adjust.
1863 (PREFERRED_RELOAD_CLASS): Adjust.
1864 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
1865 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
1866 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
1867 (FIRST_FP_PARM_REG): Adjust.
1868 (CALL_POPS_ARGS): Define.
1869 (FUNCTION_ARG_REGNO_P): Adjust.
1870 (struct sh_args): New fields.
1871 (GET_SH_ARG_CLASS): Adjust.
1872 (INIT_CUMULATIVE_ARGS): Adjust.
1873 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
1874 (FUNCTION_ARG_ADVANCE): Adjust.
1875 (FUNCTION_ARG): Adjust.
1876 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
1877 (FUNCTION_ARG_CALLEE_COPIES): Define.
1878 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
1879 (STRICT_ARGUMENT_NAMING): Define.
1880 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
1881 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
1882 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
1883 (SETUP_INCOMING_VARARGS): Adjust.
1884 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
1885 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
1886 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
1887 (SUBREG_OK_FOR_INDEX_P): Adjust.
1888 (EXTRA_CONSTRAINT_S): Update.
1889 (EXTRA_CONSTRAINT_T): New.
1890 (EXTRA_CONSTRAINT): Adjust.
1891 (GO_IF_LEGITIMATE_INDEX): Adjust.
1892 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
1893 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
1895 (MAX_MOVE_MAX): Define.
1897 (CONST_COSTS): Adjust.
1898 (REGISTER_MOVE_COST): Adjust.
1899 (BRANCH_COST): Adjust.
1900 (TEXT_SECTION_ASM_OP): Adjust.
1901 (DBX_REGISTER_NUMBER): Adjust.
1902 (ASM_OUTPUT_DOUBLE_INT): New.
1903 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
1904 (PREDICATE_CODES): Adjust.
1905 (PROMOTE_MODE): Adjust.
1906 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
1907 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
1908 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
1909 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
1910 (DR0_REG, DR2_REG, DR4_REG): Renumber.
1911 (TR0_REG, TR1_REG, TR2_REG): New.
1912 (XD0_REG): Renumber.
1913 (UNSPEC_COMPACT_ARGS): New.
1914 (type): Added pt and ptabs.
1915 (length): Default to 4 on SHmedia. Default pt length to 12
1916 and 20 on SHmedia32 and SHmedia64, respectively.
1917 (pt): New function unit.
1918 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
1919 Add whitespace between operands of SHmedia instructions.
1921 (adddi3_media, addsi3_media): Adjust constraints.
1922 (subsi3) [SHmedia]: Force operand 1 into a register.
1923 (udivsi3_i1_media, udivsi3_i4_media): New.
1924 (udivsi3): Support SHmedia.
1925 (divsi3_i1_media, divsi3_i4_media): New.
1926 (divsi3): Support SHmedia.
1927 (anddi3, iordi3, xordi3): Adjust constraints.
1928 (zero_extendhidi2, zero_extendqidi2): New.
1929 (extendsidi2, extendhidi2, extendqidi2): New.
1930 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
1931 (pop_e, pop_fpul, pop_4): Likewise.
1932 (movsi_media): Support FP and BT registers.
1933 (movsi_media_nofpu): New. Adjust splits to DImode.
1934 (lduw, ldub): Renamed to zero_extend* above.
1935 (movqi_media): Fix typo.
1936 (movdi_media): Support FP and BT registers.
1937 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
1938 (movdi_const_32bit): New.
1939 (shori_media): Require immediate operand. Use `u' for output.
1940 (movdf_media, movsf_media): Simplified.
1941 (movdf_media_nofpu, movsf_media_nofpu): New.
1942 (movdf, movsf): Adjust
1943 (movv2sf, movv2sf, movv16sf): New.
1944 (beq_media, beq_media_i): Adjust constraints. Don't use
1945 scratch BT register.
1946 (bne_media, bne_media_i): Likewise.
1947 (bgt_media, bgt_media_i): Likewise.
1948 (bge_media, bge_media_i): Likewise.
1949 (bgtu_media, bgtu_media_i): Likewise.
1950 (bgeu_media, bgeu_media_i): Likewise.
1951 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
1952 bunordered): Emit jump insn. Force operands to registers when
1954 (jump_media, jump): Simplify.
1955 (call_compact, call_compact_rettramp): New.
1956 (call_value_compact, call_value_compact_rettramp): New.
1957 (call_media, call_value_media): Simplify.
1958 (sibcall_compact, sibcall_media): New.
1959 (call, call_value): Adjust for SHmedia and SHcompact.
1960 (sibcall, sibcall_value, untyped_call): Likewise.
1961 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
1962 (indirect_jump): Adjust for SHmedia.
1963 (casesi_jump_media): New.
1964 (nop): Re-enable for SHmedia.
1965 (call_site): Restrict to SH1.
1966 (casesi): Adjust for SHmedia.
1967 (casesi_shift_media, casesi_load_media): New.
1968 (return): Explicitly use PR register. Call return trampoline
1970 (return_i): Explicitly use PR register.
1971 (shcompact_return_tramp, shcompact_return_tramp_i): New.
1972 (return_media): Adjust.
1973 (shcompact_incoming_args): New.
1975 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
1976 (movstrsi): Disable on SH5.
1977 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
1978 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
1979 (subsf3, subsf3_media): Likewise.
1980 (mulsf3, mulsf3_media, mac_media): Likewise.
1981 (divsf3, divsf3_media): Likewise.
1982 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
1983 (floatsisf2, fux_truncsfsi2): Likewise.
1984 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
1986 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
1987 (cmpunsf_media, cmpsf): Likewise.
1988 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
1989 (abssf2, abssf2_media): Likewise.
1990 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
1991 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
1992 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
1993 (floatsidf2, fix_truncdfsi2): Likewise.
1994 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
1996 (cmpeqdf_media, cmpgtdf_media): Likewise.
1997 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
1998 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
1999 (absdf2, absdf2_media): Likewise.
2000 (extendsfdf2, extendsfdf2_media): Likewise.
2001 (truncsfdf2, truncsfdf2_media): Likewise.
2002 * config/sh/sh64.h: New file.
2003 * config/sh/t-sh64: New file.
2004 * config/sh/shmedia.h: New file.
2005 * config/sh/ushmedia.h: New file.
2006 * config/sh/sshmedia.h: New file.
2007 * configure.in: Added sh64-*-elf.
2008 * configure: Rebuilt.
2009 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
2010 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
2011 (reg_class_from_letter): Use `b' for TARGET_REGS.
2012 (print_operand): Support `%M', `%m', `AND' and
2013 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
2014 (andcosts): Adjust for SHmedia.
2015 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
2017 (target_reg_operand): New function.
2018 * config/sh/sh-protos.h (target_reg_operand): Declare.
2019 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
2020 FP registers on SH5.
2021 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
2023 (TARGET_REGISTER_P): New macro.
2024 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
2025 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
2026 (EXTRA_CONSTRAINT_S): New macro.
2027 (EXTRA_CONSTRAINT): Adjust.
2028 (FLOAT_TYPE_SIZE): Define to 32.
2029 (Pmode): DImode on SHmedia.
2030 (CONST_COSTS): Adjust for SHmedia literals.
2031 (PREDICATE_CODES): Added target_reg_operand.
2032 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
2033 * config/sh/sh.md: Remove all attrs from SHmedia insns.
2034 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
2035 (cmpdi): Accept SHmedia.
2036 (movdicc_false, movdicc_true): New insns.
2037 (movdicc): New expand.
2038 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
2040 (addsi3_media): Match `S' constraint.
2041 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
2042 (negdi2): Expand for SHmedia.
2043 (one_cmpldi2): New expand.
2044 (zero_extendsidi2): Change from expand to insn.
2045 (extendsidi2): Add constraints.
2046 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
2047 LD/ST address. Fix SI immediate loading split.
2048 (movhi_media, movqi_media, lduw, ldub): New insns.
2049 (movhi, movqi): Accept SHmedia.
2050 (shori_media, movdi_media): Relax input constraints. Split
2052 (movdf_media, movsf_media): New insn. New split to movdi.
2053 (movdf, movsf): Match on SHmedia.
2054 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
2055 bgeu_media): New insns and splits. New insns with `_i' suffix.
2056 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
2057 (bunordered): New expand.
2058 (jump_compact): Renamed from `jump'.
2059 (jump_media): New insn.
2061 (call_media, call_value_media): New insns.
2062 (call, call_value): Adjust.
2063 (indirect_jump_compact): Renamed from `indirect_jump'.
2064 (indirect_jump_media): New insn.
2065 (indirect_jump): New expand.
2066 (untyped_call, return): Accept SHmedia.
2067 (return_media): New insn.
2068 (prologue, epilogue, blockage): Accept SHmedia.
2069 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
2070 (sunordered): New expand.
2071 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
2072 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
2073 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
2074 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
2075 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
2076 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
2077 abssf2_media): New insns.
2078 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
2079 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
2080 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
2081 floatdidf2, floatsidf2_media, fix_truncdfdi2,
2082 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
2083 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
2084 absdf2_media): New insns.
2085 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
2086 (extendsfdf2_media, truncdfsf2_media): New insns.
2087 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2088 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
2089 * config/sh/sh.h (CONST_OK_FOR_J): Document.
2090 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
2091 * config/sh/sh.md (adddi3): New expand.
2092 (adddi3_media, adddi3z_media): New insns.
2093 (adddi3_compact): Renamed from adddi3.
2094 (addsi3_media): Use add.l r63 to add constant zero.
2095 (subdi3): New expand.
2096 (subdi3_media): New insn.
2097 (subdi3_compact): Renamed from subdi3.
2098 (mulsidi3): New expand.
2099 (mulsidi3_media): New insn.
2100 (mulsidi3_compact): Renamed from mulsidi3.
2101 (umulsidi3): New expand.
2102 (umulsidi3_media): New insn.
2103 (umulsidi3_compact): Renamed from umulsidi3.
2104 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
2105 (ashlsi3, ashrsi3, lshrsi3): Use them.
2106 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
2107 (ashldi3, ashrdi3, lshrdi3): Use them.
2108 (zero_extendsidi2): New expand.
2109 (extendsidi2): New insn.
2110 (movsi_media): New insn. Split to movdi to load constants.
2111 (movsi): Enable for shmedia.
2112 (movdi_media): New insn. Use shori_media to load wide constants.
2113 (short_media): New insn.
2114 (movdi): Enable for shmedia.
2115 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
2116 * config/sh/sh.h (CPP_SPEC): Added `m5'.
2117 (SUBTARGET_CPP_SPEC): Added `!m5'.
2118 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
2119 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
2120 to all other SH variants.
2121 (TARGET_DEFAULT): Set to SH1_BIT.
2122 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
2123 (BITS_PER_WORD): Raise to 64 on shmedia.
2124 (MAX_BITS_PER_WORD): Change to 64.
2125 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
2126 (INT_TYPE_SIZE): Keep as 32.
2127 (UNITS_PER_WORD): Raise to 8 on shmedia.
2128 (MIN_UNITS_PER_WORD): Keep as 4.
2129 (POINTER_SIZE): Raise to 64 on shmedia.
2130 (CONST_OK_FOR_J): New macro.
2131 (CONST_OK_FOR_LETTER_P): Use it.
2132 (processor_type): Add PROCESSOR_SH5.
2133 * config/sh/sh.md: Conditionalize all expands, insns and
2134 splits to TARGET_SH1.
2136 (addsi3_compact): Renamed from...
2137 (addsi3): Now an expand.
2138 (addsi3_media, subsi3_media): New insns.
2139 (subsi3): Don't negate constants with SHmedia.
2141 * hooks.c: New file.
2142 * hooks.h: New file.
2143 * Makefile.in (HOOKS_H): New.
2144 (TARGET_DEF_H): Added $(HOOKS_H).
2145 (OBJS): Added hooks.o.
2146 (cfgcleanup.o, bb-reorder.o): Added target.h.
2147 (hooks.o): Added dependencies.
2148 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
2149 (TARGET_INITIALIZER): this.
2150 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
2151 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
2152 * bb-reorder.c: Include target.h.
2153 (reorder_basic_blocks): Skip if cannot modify jumps.
2154 * cfgcleanup.c: Include target.h.
2155 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
2157 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2159 * config/mips/mips.md (casesi_internal, casesi_internal_di):
2160 Protect jump delay slot instructions with .set noreorder and
2163 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2165 * config/mips/mips.md (casesi_internal_di): Calculate
2166 the index into the target offset table correctly.
2168 2002-02-08 Richard Henderson <rth@redhat.com>
2170 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
2171 * final.c (output_addr_const): Accept and discard SUBREG.
2172 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
2173 mark them unknown instead.
2174 (simplify_subtraction): Handle RTX_UNKNOWN.
2175 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
2177 2002-02-08 David Edelsohn <edelsohn@gnu.org>
2179 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
2181 2002-02-08 Richard Henderson <rth@redhat.com>
2183 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
2185 2002-02-08 Andreas Jaeger <aj@suse.de>
2187 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
2188 * config/i386/t-linux64: New file.
2190 2002-02-08 Jakub Jelinek <jakub@redhat.com>
2192 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
2193 * c-parse.in (compstmt): Clear last_expr_type.
2195 2002-02-07 Richard Henderson <rth@redhat.com>
2197 * loop.c (strength_reduce): Sink final_value when not
2200 2002-02-07 David O'Brien <obrien@FreeBSD.org>
2202 * config/sparc/freebsd.h: Fix mismatched spec {.
2204 2002-02-07 Richard Henderson <rth@redhat.com>
2206 * cfgrtl.c: Include recog.h and insn-config.h.
2207 (keep_with_call_p): Fix general_operand invocation.
2208 * Makefile.in (cfgrtl.o): Update dependencies.
2210 2002-02-07 Kazu Hirata <kazu@hxi.com>
2212 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
2213 comment. Accept HImode only if TARGET_H8300.
2215 2002-02-07 Eric Christopher <echristo@redhat.com>
2217 * config/mips/crtn.asm: Cleanup #ifdefs.
2219 2002-02-07 Eric Christopher <echristo@redhat.com>
2221 * config/mips/crti.asm: Add changes for mips16. mips16 uses
2222 register 7 as RA instead of $31.
2223 * config/mips/crtn.asm: Ditto.
2224 * config/mips/mips.c (mips_move_2words): Add case for
2225 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
2226 (compute_frame_size): Fix typo.
2227 (save_restore_insns): Ditto. Make documentation about using
2228 register $7 as return register more precise.
2229 (mips_expand_epilogue): Fix comment. Add code to work around not
2230 being able to add to the stack pointer directly.
2231 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
2232 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
2235 2002-02-07 Tom Rix <trix@redhat.com>
2237 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
2238 immediates in ldu and stdu DS opcode field.
2239 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
2240 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
2241 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
2243 2002-02-07 Jeff Sturm <jsturm@one-point.com>
2245 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
2246 offset for stack bias.
2248 2002-02-07 H.J. Lu <hjl@gnu.org>
2250 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
2252 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
2254 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
2256 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
2258 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
2259 * i386.c (x86_order_regs_for_local_alloc): New global function.
2260 * i386.h (REG_ALLOC_ORDER): CLeanup.
2261 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
2263 2002-02-07 Richard Henderson <rth@redhat.com>
2265 PR optimization/2463
2266 * alias.c (find_base_value): Recall base values for fixed hard regs.
2267 * loop.c (loop_regs_update): Don't use single_set on non-insns.
2269 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
2271 * config/mips/mips.md (define_delay) [mips16]: Adjust required
2274 2002-02-06 Richard Henderson <rth@redhat.com>
2277 * stmt.c (resolve_operand_name_1): Take more care with mixed
2278 named and unnamed operands.
2280 2002-02-06 Janis Johnson <janis187@us.ibm.com>
2281 Jan Hubicka <jh@suse.cz>
2283 * loop.c (remove_constant_addition): Avoid clobbering a shared
2286 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
2288 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
2289 * config/s390/t-linux64: New file.
2290 * config/s390/libgcc-glibc.ver: New file.
2292 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
2294 * config/s390/linux64.h: Delete file.
2295 * config/s390/s390x.h: New file.
2296 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
2297 as target header file.
2298 * config/s390/linux.h (TARGET_VERSION): Define depending on
2299 DEFAULT_TARGET_64BIT.
2300 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
2301 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
2302 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
2303 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
2304 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
2305 (EXTRA_SPEC): New define.
2306 * config/s390/s390.h (TARGET_VERSION): Define depending on
2307 DEFAULT_TARGET_64BIT.
2308 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
2310 2002-02-06 Jason Merrill <jason@redhat.com>
2312 * c-decl.c (finish_function): Warn about a non-void function with
2313 no return statement and no abnormal exit.
2314 (current_function_returns_abnormally): New variable.
2315 (start_function): Clear it.
2316 (struct c_language_function): Add returns_abnormally.
2317 (push_c_function_context): Save it.
2318 (pop_c_function_context): Restore it.
2319 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
2320 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
2321 an explicit return type.
2322 * c-tree.h: Declare current_function_returns_abnormally.
2323 (C_FUNCTION_IMPLICIT_INT): New macro.
2324 * c-typeck.c (build_function_call): Set it.
2325 (c_expand_return): Set current_function_returns_value even if the
2328 2002-02-06 Jakub Jelinek <jakub@redhat.com>
2331 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
2332 unsafe for reevaluation.
2334 2002-02-06 Jakub Jelinek <jakub@redhat.com>
2337 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
2338 EXPR_STMT, but COMPOUND_STMT, recurse into it.
2340 2002-02-06 Richard Henderson <rth@redhat.com>
2342 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
2343 be a general_operand. Dest for function value must be a pseudo.
2345 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
2347 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
2348 as SYMBOL_REFs from the constant pool.
2350 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
2352 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
2353 passed by invisible reference.
2355 2002-02-05 Richard Henderson <rth@redhat.com>
2357 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
2359 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
2361 Implement using "base addresses" in insn operands as default.
2362 * config/mmix/mmix.c (mmix_conditional_register_usage): if
2363 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
2364 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
2365 used to read the rtx value.
2366 (mmix_target_asm_function_epilogue): Fix spacing.
2367 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
2368 (mmix_legitimate_address): Ditto.
2369 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
2370 should be loaded with a GETA insn. Don't allocate needless extra
2371 char for nul termination and fix misleading comment.
2372 (mmix_print_operand_address): Handle constants if
2373 TARGET_BASE_ADDRESSES.
2374 (mmix_output_register_setting): Use base addressing if
2375 TARGET_BASE_ADDRESSES and the number of insns is 3.
2376 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
2377 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
2378 to use R as constraint, add LDA to match s.
2379 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
2380 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
2381 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
2382 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
2383 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
2384 order with other fixed registers.
2385 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
2386 other parameter/call-clobbered registers.
2387 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
2388 -mbase-addresses, -mno-base-addresses.
2389 (MMIX Options): Ditto.
2391 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
2393 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
2395 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
2397 * config/rs6000/altivec.h: Change elem to _S_elem.
2399 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
2401 * config/netbsd.h (WCHAR_TYPE): Define.
2402 (WCHAR_TYPE_SIZE): Ditto.
2404 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
2405 (WCHAR_UNSIGNED): Ditto.
2406 (WCHAR_TYPE_SIZE): Ditto.
2408 * config/arm/netbsd.h: Likewise.
2409 * config/i386/netbsd-elf.h: Likewise.
2410 * config/i386/netbsd.h: Likewise.
2411 * config/m68k/netbsd-elf.h: Likewise.
2412 * config/m68k/netbsd.h: Likewise.
2413 * config/ns32k/netbsd.h: Likewise.
2414 * config/sparc/netbsd.h: Likewise.
2415 * config/vax/netbsd.: Likewise.
2417 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
2419 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
2420 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
2421 (TARGET_INITIALIZER): this.
2422 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
2423 (BITFIELD_NBYTES_LIMITED): Markup fix.
2424 * tree.h (default_ms_bitfield_layout_p): Declare.
2425 (record_layout_info): Added prev_field.
2426 * tree.c (default_ms_bitfield_layout_p): New fn.
2427 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
2428 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
2429 * stor-layout.c: Include target.h.
2430 (start_record_layout): Initialize prev_field.
2431 (place_field): Handle MS bit-field layout, and disregard
2432 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
2433 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
2434 * Makefile.in (stor-layout.o): Adjust dependencies.
2436 2002-02-05 Jason Merrill <jason@redhat.com>
2438 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
2440 2002-02-05 Andreas Jaeger <aj@suse.de>
2442 * crtstuff.c: Fix comments.
2444 2002-02-05 Richard Henderson <rth@redhat.com>
2447 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
2448 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
2451 * config/mips/mips.c (function_arg): Handle TImode.
2452 (function_arg_advance): Likewise.
2454 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2456 * config/rs6000/altivec.h (vec_step_help): Rename to
2459 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2461 * config/rs6000/altivec.h: Fix typos.
2463 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
2465 * config/arm/netbsd.h: Correct a comment.
2467 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2469 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
2470 building void typed builtins.
2472 * config/rs6000/altivec.h (vec_ld*): Fix typos.
2473 (vec_step): Implement for C++.
2475 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2477 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
2479 2002-02-04 Richard Henderson <rth@redhat.com>
2481 * combine.c (nonzero_bits): Re-introduce special case for
2482 sp/fp/ap wrt REGNO_POINTER_ALIGN.
2484 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2486 * doc/extend.texi: Warn about unsupported usage of altivec
2489 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
2490 (altivec_predicate_*): New.
2492 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
2493 Add C++ version of vec_*() functions.
2495 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
2496 (bdesc_2arg): Remove altivec predicates.
2497 (altivec_expand_builtin): Handle predicates.
2498 (altivec_init_builtins): Handle predicates.
2499 (altivec_expand_predicate_builtin): New.
2501 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2503 * pa.c (DO_FRAME_NOTES): Move forward.
2504 (store_reg): Revise handling of frame notes.
2505 (load_reg): Likewise.
2506 (set_reg_plus_d): Likewise.
2507 (hppa_expand_prologue): Likewise.
2508 (hppa_expand_epilogue): Likewise.
2510 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2512 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
2514 2002-02-04 Jakub Jelinek <jakub@redhat.com>
2516 PR c/4475, c++/3780:
2517 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
2518 * c-common.h (SWITCH_TYPE): Define.
2519 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
2520 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
2521 Rename spareness variable to sparseness.
2522 (expand_end_case_type): Renamed from expand_end_case, use orig_type
2523 if non-NULL instead of TREE_TYPE (orig_index).
2524 * tree.h (expand_end_case_type): Renamed from expand_end_case.
2525 (expand_end_case): Define using expand_end_case_type.
2526 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
2527 to expand_end_case_type.
2528 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
2530 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2532 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
2533 (BIGGEST_ALIGNMENT): Change to 128.
2535 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2537 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
2539 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2541 * pa.md (call_internal_reg_64bit): Remove unused variable.
2543 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
2545 * config/arm/arm.h (machine_function): Add uses_anonymous_args
2547 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
2548 * config/arm/arm.c (current_function_anonymous_args): Delete,
2549 replace uses with cfun->machine->uses_anonymous_args.
2550 (arm_reorg): Do not reset uses_anonymous_args.
2552 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
2553 any geenral register.
2555 2001-02-04 Bernd Schmidt <bernds@redhat.com>
2557 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
2560 2002-02-04 Richard Henderson <rth@redhat.com>
2562 * combine.c (force_to_mode): Remove STACK_BIAS code.
2563 (nonzero_bits): Likewise. Replace sp/fp special case with
2564 REGNO_POINTER_ALIGN.
2566 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
2567 (HARD_FRAME_POINTER_REGNUM): New.
2568 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
2569 (FIXED_REGS, CALL_USED_REGS): Update.
2570 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
2571 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
2572 (HARD_REGNO_NREGS): Update for SFP.
2573 (STACK_POINTER_OFFSET): Include bias here ...
2574 (FIRST_PARM_OFFSET): ... not here.
2575 (STACK_BIAS): Remove.
2576 (INIT_EXPANDERS): New.
2577 (STARTING_FRAME_OFFSET): Do not include bias.
2578 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
2579 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
2580 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
2581 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
2582 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
2583 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
2584 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
2585 (MUST_SAVE_REGISTER): Likewise.
2586 (sparc_flat_function_prologue): Likewise.
2587 (sparc_flat_function_epilogue): Likewise.
2588 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
2589 (sparc_init_modes): SFP is GENERAL_REGS.
2590 (sparc_builtin_saveregs): SFP does not have bias applied.
2592 2002-02-04 Richard Henderson <rth@redhat.com>
2594 * config/alpha/alpha.c (current_function_is_thunk): Don't check
2595 current_function_is_thunk.
2596 (alpha_sa_mask): Distinguish between current_function_is_thunk
2597 called from ASM_OUTPUT_MI_THUNK and not.
2598 (alpha_does_function_need_gp): Thunks always need gp.
2599 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
2600 (alpha_output_mi_thunk_osf): New.
2601 * config/alpha/alpha-protos.h: Update.
2602 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
2604 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
2606 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
2607 function types, not when they're taken away.
2609 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
2611 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
2612 CODE_LABEL and jump table when replacing a table jump with a
2615 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2617 * config/s390/s390-protos.h (legitimize_la_operand,
2618 s390_secondary_input_reload_class, s390_plus_operand,
2619 s390_expand_plus_operand): Add prototypes.
2621 config/s390/s390.c (s390_secondary_input_reload_class,
2622 s390_plus_operand, s390_expand_plus_operand): New functions.
2624 (struct s390_address): New member 'pointer'.
2625 (s390_decompose_address): Compute it.
2626 (legitimate_la_operand_p): Use it.
2627 (legitimize_la_operand): New function.
2628 (movti, movdi, movdf splitters): Call it.
2630 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
2631 (PREDICATE_CODES): Add s390_plus_operand.
2633 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
2634 (la_ccclobber): Allow GENERAL_REGS as output operand.
2636 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
2637 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
2638 (*la_64, *la_31, reload_indi, reload_insi): ... these.
2640 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2642 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
2643 register names for regular asm () construct.
2645 2002-02-04 Jakub Jelinek <jakub@redhat.com>
2647 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
2650 2002-02-04 Jakub Jelinek <jakub@redhat.com>
2652 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
2655 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
2657 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
2658 constant pool to be identical by string address and index.
2660 2002-02-04 Anthony Green <green@redhat.com>
2662 * output.h (SECTION_OVERRIDE): Define.
2663 * varasm.c (named_section): Obey SECTION_OVERRIDE.
2665 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
2667 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
2668 by existing arm*-*-netbsd* (a.out) target.
2669 (ns32k-*-netbsdelf*): Likewise.
2670 (sparc-*-netbsdelf*): Likewise.
2671 (vax-*-netbsdelf*): Likewise.
2673 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
2675 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
2676 headers and libobjc headers.
2678 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
2680 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
2681 (_mingw.h): Remove duplicate include.
2683 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
2685 * config.gcc: Set cpu_type to m68k for 68010, as well.
2686 (m68010-*-netbsdelf*): New...
2687 (m68k*-*-netbsdelf*): ...targets.
2688 * config/m68k/netbsd-elf.h: New file.
2690 2002-02-02 Kazu Hirata <kazu@hxi.com>
2692 * config/h8300/h8300.c (hand_list): Move inside function_arg.
2694 2002-02-02 Kazu Hirata <kazu@hxi.com>
2696 * config/h8300/h8300.c (h8_push_ops): Move inside
2698 (h8_pop_ops): Likewise.
2699 (h8_move_ops): Likewise.
2701 2002-02-02 Kazu Hirata <kazu@hxi.com>
2703 * config/h8300/h8300.c (os_task): Make it static.
2704 (monitor): Likewise.
2705 (pragma_saveall): Likewise.
2707 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
2709 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
2710 constant is a valid sign-extension for Pmode.
2712 2002-02-02 Kazu Hirata <kazu@hxi.com>
2714 * config/h8300/h8300.c: Fix formatting.
2716 2002-02-02 Kazu Hirata <kazu@hxi.com>
2718 * config/h8300/h8300.md: Fix formatting.
2720 2002-02-02 Kazu Hirata <kazu@hxi.com>
2722 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
2723 predicates of operands[1]. Split the patterns for each
2726 2002-02-02 Kazu Hirata <kazu@hxi.com>
2728 * config/h8300/h8300.md (xor patterns): Tighten the predicates
2729 of operands[1] to register_operand.
2731 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
2733 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
2734 * cpphash.c (_cpp_init_hashtable): Similarly.
2735 * cppinit.c (cpp_create_reader): Default the signed_char flag.
2736 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
2737 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
2738 (cpp_handle_option): Handle the new options.
2739 * cpplex.c (cpp_interpret_charconst): Use new flag.
2740 * cpplib.h (struct cpp_options): New member signed_char.
2741 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
2742 (cpp_options): Handle -fsigned-char and -funsigned-char.
2743 (static_specs): Remove signed_char_spec.
2744 (do_spec1): Don't handle %c.
2745 * system.h: Poison SIGNED_CHAR_SPEC.
2746 * tradcif.y (yylex): Use flag_signed_char.
2747 * tradcpp.h (flag_signed_char): New.
2748 * tradcpp.c (flag_signed_char): New.
2749 (main): Handle new command-line options.
2750 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
2752 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
2753 * avr/avr.h: Remove old comments.
2754 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
2755 (CC1_SPEC): Pass -fsigned-char if -mic*.
2756 (SIGNED_CHAR_SPEC): Remove.
2758 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
2760 2002-02-01 Eric Christopher <echristo@redhat.com>
2762 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
2763 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
2764 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
2765 (ASM_OUTPUT_REG_POP): Ditto.
2767 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
2769 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
2772 2002-02-02 Jakub Jelinek <jakub@redhat.com>
2774 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
2776 2002-02-02 Jakub Jelinek <jakub@redhat.com>
2779 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
2782 2002-02-01 Janis Johnson <janis187@us.ibm.com>
2784 * cfganal.c: Include tm_p.h.
2785 (keep_with_call_p): Fix the test that determines if a register holds
2786 the return value of a call.
2788 2002-02-01 DJ Delorie <dj@redhat.com>
2790 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
2791 we are given conflicting registers, switch to the other one we
2792 had allocated for us.
2793 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
2794 as TImode so we know when the "other" register is available.
2796 2002-02-01 David O'Brien <obrien@FreeBSD.org>
2798 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
2801 2002-02-01 Janis Johnson <janis187@us.ibm.com>
2803 * cfganal.c (keep_with_call_p): New function.
2804 (flow_call_edges_add): Prevent splitting a block between a call and
2805 a single-set instruction that should be kept in the same block.
2807 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
2809 * doc/install.texi (avr): Update outdated URL.
2811 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
2813 * config/stormy16/stormy16.md (pushqi): New.
2817 (movhi): Remove stack operands.
2819 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
2820 nonimmediate_nonstack_operand.
2821 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
2823 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
2826 2002-01-31 Jason Merrill <jason@redhat.com>
2828 * Makefile.in (c-parse.c): Handle .output file.
2829 * objc/Make-lang.in (objc-parse.c): Likewise.
2831 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
2833 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
2834 the -me[lb] option is given. Don't output the default flag
2837 2002-01-31 Zack Weinberg <zack@codesourcery.com>
2839 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
2840 the primary source file; this has not been done yet.
2841 * c-decl.c (c_expand_body): Reset input_filename from
2842 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
2844 2002-01-31 Kazu Hirata <kazu@hxi.com>
2846 * rtlanal.c (subreg_regno_offset): Do not use
2847 SUBREG_REGNO_OFFSET.
2848 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
2849 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
2851 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
2853 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
2854 version rather than GNATS version in --version output.
2856 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
2858 * ifcvt.c (noce_process_if_block): Make a copy of the destination
2859 when copying back from a temporary.
2861 2002-01-30 Richard Henderson <rth@redhat.com>
2863 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
2864 and new_dest are the same.
2866 2002-01-30 Richard Henderson <rth@redhat.com>
2869 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
2870 * rtl.c (note_insn_name): Update.
2871 * emit-rtl.c (remove_unnecessary_notes): Kill it.
2872 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
2873 to perform loop rotation.
2874 (expand_exit_loop_top_cond): New.
2875 * tree.h (expand_exit_loop_top_cond): Declare it.
2876 * c-semantics.c (genrtl_while_stmt): Use it.
2877 (genrtl_for_stmt): Likewise.
2879 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
2881 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
2882 arguments to 64-bit boundaries on 64-bit ABIs.
2884 2002-01-30 Steve Ellcey <sje@cup.hp.com>
2886 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
2888 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
2890 * c-decl.c (grokdeclarator): Handle type being a typedef for an
2893 2002-01-30 David O'Brien <obrien@FreeBSD.org>
2895 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
2896 * config/sparc/sparc_bi.h: Remove file.
2897 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
2899 2002-01-30 Richard Henderson <rth@redhat.com>
2901 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
2903 2002-01-30 Zack Weinberg <zack@codesourcery.com>
2905 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
2907 2002-01-30 Jason Merrill <jason@redhat.com>
2909 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
2910 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
2911 (reg_save): Use DW_CFA_offset_extended_sf instead.
2913 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
2915 2002-01-29 Jakub Jelinek <jakub@redhat.com>
2917 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
2920 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
2922 * rs6000.md ("*call_value_local32"): Remove constraints.
2923 ("*call_value_local64"): Same.
2924 ("*call_value_indirect_nonlocal_aix32"): Same.
2925 ("*call_value_nonlocal_aix32"): Same.
2926 ("*call_value_indirect_nonlocal_aix64"): Same.
2927 ("*call_value_nonlocal_aix64"): Same.
2928 ("*call_value_nonlocal_sysv"): Same.
2930 2002-01-29 Richard Henderson <rth@redhat.com>
2932 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
2934 2002-01-29 Richard Henderson <rth@redhat.com>
2936 * expr.c (force_operand): Ignore flag_pic for detecting pic
2938 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
2939 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
2940 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
2941 instead of open-coded loop.
2942 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
2943 be fixed when in use.
2945 2002-01-29 Richard Henderson <rth@redhat.com>
2947 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
2948 * sched-rgn.c (propagate_deps): Update them.
2949 * sched-deps.c (sched_analyze_insn): Update them. Flush the
2950 clobbers list when either gets too long.
2952 2002-01-29 Jakub Jelinek <jakub@redhat.com>
2954 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
2955 and INDEX_REGS the same as GENERAL_REGS.
2956 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
2958 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
2960 * tree.c (build_nonstandard_integer_type): Correct prototype.
2962 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
2964 * config/s390/s390.md (movstrsico, movstrdix_64,
2965 movstrsix_31): Remove, replace by ...
2966 (movstrdi_short, movstrsi_short, movstrdi_long,
2967 movstrsi_long): ... these. New.
2968 (movstrdi, movstrsi): Adapt.
2970 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
2971 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
2972 Remove unnecessary CC clobber.
2973 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
2974 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
2976 (divmoddi4): Don't partially initialize TImode register.
2978 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
2980 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
2982 2002-01-29 Richard Henderson <rth@redhat.com>
2984 * flow.c (print_rtl_and_abort): Remove.
2985 (print_rtl_and_abort_fcn): Remove.
2986 (verify_local_live_at_start): Use dump_bb instead.
2987 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
2988 (verify_wide_reg_1): Return 2 on mode test failure.
2990 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
2992 PR c/3325, c/3326, c/2511, c/3347
2993 * c-decl.c (enum_decl_context): Remove BITFIELD.
2994 (grokdeclarator): Take bitfield width as an input.
2995 Ensure bitfields are given the correct type. Perform
2996 bitfield width validation with build_bitfield_integer_type
2997 rather than waiting for finish_struct.
2998 (grok_typename, grok_typename_in_parm_context, start_decl,
2999 push_parmdecl, grokfield, start_function): Update calls to
3001 (build_bitfield_integer_type): New function.
3002 (finish_struct): Move bitfield validation to grokdeclarator
3003 and build_bitfield_integer_type.
3004 * tree.c (build_nonstandard_integer_type): New function.
3005 * tree.h (build_nonstandard_integer_type): New prototype.
3007 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
3009 2002-01-29 Jakub Jelinek <jakub@redhat.com>
3012 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
3013 don't ignore unrecognized -W* options.
3014 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
3015 * cpplib.h (cpp_handle_option): Adjust prototype.
3016 * c-decl.c (c_decode_options): Pass 0 as last argument to
3020 * gcc.c (cpp_unique_options): Split from cpp_options.
3021 (cpp_options): Source cpp_unique_options.
3022 (default_compilers): Use cpp_unique_options instead of cpp_options
3023 when used together with cc1_options.
3024 (static_specs): Add cpp_unique_options.
3025 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
3026 when used together with cc1_options.
3028 2002-01-29 Kazu Hirata <kazu@hxi.com>
3030 * config/h8300/h8300-protos.h: Update the prototype of
3032 * config/h8300/h8300.c (output_a_shift): Remove an unused
3033 argument 'insn'. Remove redundant code.
3034 * config/h8300/h8300.md: Adust to the new prototype of
3037 2002-01-29 Kazu Hirata <kazu@hxi.com>
3039 * config/h8300/h8300-protos.h: Update the prototypes of
3040 emit_a_rotate and expand_a_rotate.
3041 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
3042 first argument to 'enum rtx_code'.
3043 (expand_a_rotate): Likewise.
3045 2002-01-28 Kazu Hirata <kazu@hxi.com>
3047 * config/h8300/h8300-protos.h: Update the prototype of
3049 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
3051 * config/h8300/h8300.md: Adjust to the new prototype.
3053 2002-01-28 Kazu Hirata <kazu@hxi.com>
3055 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
3058 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
3060 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
3061 is a fixed register before returning pic_offset_table_rtx.
3062 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
3063 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
3065 2002-01-28 Jason Merrill <jason@redhat.com>
3067 * dwarf2.h: Sync with src version.
3069 2002-01-28 Paul Koning <pkoning@equallogic.com>
3071 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
3073 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
3074 * doc/extend.texi (__builtin_prefetch): Update documentation:
3075 first argument is now const void ptr.
3077 2002-01-28 Kazu Hirata <kazu@hxi.com>
3079 * config/h8300/h8300-protos.h: Remove an unused prototype.
3081 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
3083 * toplev.c (lang_independent_init): Round up identifier size.
3085 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
3087 * config.gcc: Revert previous change.
3089 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
3091 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
3093 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
3095 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
3096 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
3097 other non-elf netbsd config frags.
3098 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
3099 collect2 will does that.
3100 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
3101 shared-lib frobbing will work.
3103 2002-01-28 Kazu Hirata <kazu@hxi.com>
3105 * config/h8300/h8300.h: Fix formatting.
3106 * config/h8300/h8300.md: Likewise.
3108 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
3110 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
3111 the old, removed AAA_standards fix.
3112 * fixinc/fixincl.x: Rebuilt.
3114 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
3116 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
3117 atexit call in crtbegin, hooked in after call to frame_dummy;
3118 register EH before registering __fini__start.
3120 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
3122 * config/rs6000/altivec.h: Remove spurious semicolons.
3124 2002-01-27 Kazu Hirata <kazu@hxi.com>
3126 * config/h8300/h8300.md: Replace dead bit extraction patterns
3127 with ones that work.
3129 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3131 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
3132 if not STRICT_ALIGNMENT.
3133 * rtl.h (MEM_ALIGN): Likewise.
3135 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
3137 * doc/invoke.texi (-fdump-translation-unit): Revert this
3138 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
3140 2002-01-27 Kazu Hirata <kazu@hxi.com>
3142 * config/h8300/h8300.md (define_constants): New.
3143 (anonymous patterns) Use defined constants appropriately.
3145 2002-01-27 Kazu Hirata <kazu@hxi.com>
3147 * config/h8300/h8300.c (function_arg): Remove redundant code.
3149 2002-01-26 Richard Henderson <rth@redhat.com>
3151 * sched-deps.c (reg_pending_uses_head): New.
3152 (reg_pending_barrier): Rename from reg_pending_sets_all.
3153 (find_insn_list): Don't mark inline.
3154 (find_insn_mem_list): Remove.
3155 (add_dependence_list, add_dependence_list_and_free): New.
3156 (flush_pending_lists): Replace only_write param with separate
3157 for_read and for_write parameters. Update all callers. Use
3158 add_dependence_list_and_free.
3159 (sched_analyze_1): Do not add reg dependencies here; just set
3160 the pending bits. Use add_dependence_list.
3161 (sched_analyze_2): Likewise.
3162 (sched_analyze_insn): Replace schedule_barrier_found with
3163 reg_pending_barrier. Add all dependencies for pending reg
3164 uses, sets, and clobbers.
3165 (sched_analyze): Don't add reg dependencies for calls, just
3166 set pending bits. Use regs_invalidated_by_call. Treat
3167 sched_before_next_call as a normal list, not a fake insn.
3168 (init_deps): No funny init for sched_before_next_call.
3169 (free_deps): Free pending mems lists. Don't zero reg_last.
3170 (init_deps_global): Init reg_pending_uses.
3171 (finish_deps_global): Free it.
3172 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
3173 (find_insn_mem_list): Remove.
3174 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
3175 (propagate_deps): Use them. Zero temp mem lists.
3177 2002-01-26 Richard Henderson <rth@redhat.com>
3179 * Makefile.in (CRTSTUFF_CFLAGS): New.
3180 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
3181 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
3182 crtstuff.c instead of alpha assembly version.
3183 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
3184 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
3185 not FORCE_{INIT,FINI}_SECTION_ALIGN.
3186 (__do_global_dtors_aux): Mark used.
3187 (frame_dummy, __do_global_ctors_aux): Mark used.
3188 (fini_dummy, init_dummy): Remove.
3190 * config/alpha/crtbegin.asm: Remove file.
3191 * config/alpha/crtend.asm: Remove file.
3192 * config/alpha/t-crtbe: Remove file.
3193 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
3194 (LINK_EH_SPEC): New.
3196 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
3197 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
3198 calling constructors.
3199 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
3201 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
3202 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
3203 CRT_END_INIT_DUMMY hack.
3204 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
3205 FORCE_{INIT,FINI}_SECTION_ALIGN.
3207 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
3208 FORCE_{INIT,FINI}_SECTION_ALIGN.
3210 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
3211 invocation sequence.
3212 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
3214 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
3215 (FORCE_CODE_SECTION_ALIGN): New.
3217 2002-01-26 Richard Henderson <rth@redhat.com>
3219 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
3221 2002-01-26 Richard Henderson <rth@redhat.com>
3223 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
3224 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
3226 2002-01-26 Kazu Hirata <kazu@hxi.com>
3228 * config/h8300/h8300.md: Remove bit extraction patterns that
3229 cannot be triggered.
3230 Restrict each bit extraction pattern to a variant on which the
3233 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
3235 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
3237 2002-01-26 Kazu Hirata <kazu@hxi.com>
3239 * config/h8300/h8300.md: Remove bit test patterns that cannot
3241 Restrict each bit test pattern to a variant on which the
3244 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3246 * builtins.c (expand_builtin_strncat): Remove redundant check for
3249 2002-01-25 David O'Brien <obrien@FreeBSD.org>
3251 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
3253 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
3256 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
3258 * dbxout.c (dbxout_init): Use assemble_name rather than just
3259 stripping off the first character.
3260 (dbxout_source_file): Likewise.
3262 2002-01-25 DJ Delorie <dj@redhat.com>
3264 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
3265 using rtx_equal_p, not by comparing pointers.
3267 2002-01-25 Steve Ellcey <sje@cup.hp.com>
3269 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
3270 for PIC_OFFSET_TABLE_REGNUM.
3271 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
3273 2002-01-25 David O'Brien <obrien@FreeBSD.org>
3275 * config.gcc (x86_64-*-freebsd*): New target.
3276 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
3278 (i[34567]86-*-freebsd*): Don't include svr4.h.
3279 * config/i386/freebsd64.h: New file.
3281 2002-01-25 Douglas B Rupp <rupp@gnat.com>
3283 * config/alpha/x-vms (version): Make static.
3285 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
3286 in previous checkin.
3288 * Makefile.in (install-headers-cp): New target.
3289 * config.gcc (alpha-dec-*vms*): Install headers with
3292 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
3294 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
3297 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3299 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
3300 of compare_tree_int.
3301 (expand_builtin_strncat): Likewise.
3302 * c-decl.c (finish_struct): Use tree_low_cst.
3303 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
3304 * tree.c (compare_tree_int): Likewise.
3306 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
3308 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
3309 adjustments even if they are implemented by more than two insns.
3311 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
3313 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
3314 * df.h (struct ref): Kill B.
3315 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
3317 * basic-block.h (PROP_EQUAL_NOTES): New flag.
3318 * flow.c (propagate_one_insn): Use it.
3319 (mark_used_regs): Handle NIL.
3321 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
3323 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
3326 2002-01-25 David Edelsohn <edelsohn@gnu.org>
3328 * rs6000.md (prefetch): Make address V4SI mode so that the address
3329 is restricted to legitimate form for instruction.
3331 2002-01-25 Bob Wilson <bob.wilson@acm.org>
3333 * doc/install.texi (xtensa-*-elf): New target.
3334 (xtensa-*-linux*): New target.
3335 * doc/contrib.texi: Add myself.
3337 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
3339 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
3340 purpose register to hold an SImode (or smaller) value.
3342 2002-01-25 Jakub Jelinek <jakub@redhat.com>
3344 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
3346 * crtstuff.c: Likewise.
3348 2002-01-25 Kazu Hirata <kazu@hxi.com>
3350 * config/h8300/h8300.md (negation patterns): Tighten
3351 predicates to register_operand.
3353 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
3355 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
3358 * builtins.c (expand_builtin_prefetch): Same.
3360 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3362 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
3365 2002-01-24 Kazu Hirata <kazu@hxi.com>
3367 * config/h8300/h8300.c (print_operand): Remove support for
3368 operand character 'A'.
3369 * config/h8300/h8300.md (three anonymous patterns): Replace
3370 operand character 'A' with either 'T' or 'S'.
3372 2002-01-24 Kazu Hirata <kazu@hxi.com>
3374 * config/h8300/h8300.c (print_operand): Remove support for
3375 operand character 'U'.
3377 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
3379 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
3381 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
3383 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
3384 values to be assigned to the stack pointer.
3386 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
3388 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
3389 to const_double needs to be done right for big-endian systems.
3391 2002-01-24 Jason Merrill <jason@redhat.com>
3394 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
3395 to can_throw_internal.
3397 2002-01-23 Richard Henderson <rth@redhat.com>
3399 * fold-const.c (fold): Change UINT_MAX test to check vs precision
3400 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
3402 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3404 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
3405 (symGOT2reg): Use them, then set as GOT value as unchanging.
3406 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
3407 as a temporary, if possible.
3408 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
3409 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
3411 2002-01-23 Kazu Hirata <kazu@hxi.com>
3413 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
3414 accept to accept 0x80 as operands[2].
3416 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3418 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
3420 2002-01-23 Richard Henderson <rth@redhat.com>
3422 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
3424 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
3426 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
3427 (parmlist_or_identifiers_1): Verify that only a parmlist follows
3430 2002-01-23 Richard Henderson <rth@redhat.com>
3432 * expr.c (move_by_pieces_1): Extend size before negation.
3434 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
3435 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
3436 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
3437 * config/m68k/t-m68kelf: Likewise.
3439 2002-01-23 Bob Wilson <bob.wilson@acm.org>
3441 * config/xtensa/elf.h: New file.
3442 * config/xtensa/lib1funcs.asm: New file.
3443 * config/xtensa/lib2funcs.S: New file.
3444 * config/xtensa/linux.h: New file.
3445 * config/xtensa/t-xtensa: New file.
3446 * config/xtensa/xtensa-config.h: New file.
3447 * config/xtensa/xtensa-protos.h: New file.
3448 * config/xtensa/xtensa.c: New file.
3449 * config/xtensa/xtensa.h: New file.
3450 * config/xtensa/xtensa.md: New file.
3451 * config.gcc (xtensa-*-elf*): New target.
3452 (xtensa-*-linux*): New target.
3453 * cse.c (canon_hash): Compare rtx pointers instead of register
3454 numbers. This is required for the Xtensa port.
3455 * integrate.c (copy_insn_list): Handle case where the static
3456 chain is in memory and the memory address has to be copied to
3458 * doc/invoke.texi (Option Summary): Add Xtensa options.
3459 (Xtensa Options): New node.
3460 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
3462 2002-01-23 Zack Weinberg <zack@codesourcery.com>
3464 * diagnostic.c (internal_error): Do ICE suppression only
3465 when ENABLE_CHECKING is not defined.
3467 * c-typeck.c (require_complete_type): Return error_mark_node
3468 if type is error_mark_node.
3470 2002-01-23 Janis Johnson <janis187@us.ibm.com>
3472 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
3473 -Os and issue a warning.
3475 2002-01-23 Zack Weinberg <zack@codesourcery.com>
3477 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
3478 current (lack of) need for host configuration by hand.
3480 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
3481 references. Documentation of some target macros moved from
3482 hostconfig.texi to tm.texi.
3484 2002-01-23 Will Cohen <wcohen@redhat.com>
3486 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
3489 2002-01-23 Kazu Hirata <kazu@hxi.com>
3491 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
3494 2002-01-23 Jason Merrill <jason@redhat.com>
3496 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
3498 * function.c (assign_parms): Don't put args of inline functions
3499 into registers when not optimizing.
3501 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
3503 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
3504 (prologue_use): New pattern.
3505 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
3506 preference to gen_rtx_USE.
3507 (thumb_expand_prologue): Use gen_prologue_use in preference to
3509 (thumb_expand_epilogue): Use gen_prologue_use in preference to
3512 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
3514 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
3516 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
3519 * doc/extend.texi: Correct documentation of __alignof__.
3521 2002-01-22 Zack Weinberg <zack@codesourcery.com>
3523 * params.h: Rename arguments of DEFPARAM so that it will be
3524 recognized as a translation keyword.
3526 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
3528 * extend.texi: Document altivec functions.
3529 Fix N-bit adjectives in X86 builtin documentation.
3531 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
3533 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
3534 auto_inc_dec values.
3536 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
3538 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
3540 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
3542 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
3544 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
3546 2002-01-22 Richard Henderson <rth@redhat.com>
3548 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
3549 copy_insn not copy_rtx.
3551 2002-01-23 Alan Modra <amodra@bigpond.net.au>
3553 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
3554 "nonzero" as that might add "1" bits. Ensure "constop" is
3555 properly sign extened.
3556 (force_to_mode): Tweak for sign extended constop.
3558 2002-01-22 Richard Henderson <rth@redhat.com>
3560 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
3561 for_each_rtx instead of assuming we're already looking at the MEM.
3562 (split_small_symbolic_mem_operand): Likewise.
3563 * config/alpha/alpha.h (PREDICATE_CODES): Update.
3564 * config/alpha/alpha.md (small symbolic memory splitters): Update.
3566 2002-01-22 Richard Henderson <rth@redhat.com>
3568 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
3569 sequence number for the literal.
3570 (divmoddi_internal_er): Likewise.
3572 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
3575 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
3576 in LIBICONV variable.
3577 * configure: Regenerated.
3579 2002-01-22 Krister Walfridsson <cato@df.lth.se>
3581 * dependence.c (build_def_use): Remove array_idx.
3583 * dwarfout.c (last_filename): Remove.
3584 (output_compile_unit_die): Remove last_filename.
3586 2002-01-22 Roger Sayle <roger@eyesopen.com>
3587 Richard Henderson <rth@redhat.com>
3590 * fold-const.c (fold): Optimize unsigned comparisons against
3591 UINT_MAX (and similar unsigned constants).
3593 2002-01-22 Janis Johnson <janis187@us.ibm.com>
3595 * Makefile.in (loop.o): Depend on OPTABS_H.
3596 * loop.c (emit_prefetch_instructions): Check the prefetch operand
3597 against the predicate.
3600 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
3601 for the address operand.
3603 2002-01-22 Richard Henderson <rth@redhat.com>
3605 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
3607 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
3610 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
3613 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
3615 * config.gcc (x86_64-*-netbsd*): New target.
3616 * config/i386/netbsd64.h: New file.
3618 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
3620 * regrename.c (kill_value): Fix typo.
3622 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
3624 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
3626 * config/rs6000/rs6000.h: Same.
3628 * function.c (instantiate_virtual_regs): Remove
3629 STARTING_FRAME_PHASE.
3630 (assign_stack_local_1): Same.
3631 Calculate frame phase.
3633 2002-01-22 Nick Clifton <nickc@redhat.com>
3635 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
3636 variable declaration to outer scope in order to simplify
3638 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
3639 arm_hard_regno_mode_ok.
3640 * config/arm/arm-protos.h: Add a prototype for
3641 arm_hard_regno_mode_ok.
3642 * config/arm/arm.c (soft_df_operand): Remove now redundant
3643 check for DImode values using IP_REGNUM.
3644 (nonimmediate_soft_df_operand): Remove now redundant check for
3645 DImode values using IP_REGNUM.
3646 (arm_hard_regno_mode_ok): New function. New check: make sure
3647 that DImode values are not stored in IP_REGNUM.
3649 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
3651 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
3653 2002-01-22 Jason Merrill <jason@redhat.com>
3655 * c-semantics.c (genrtl_compound_stmt): Only check nesting
3656 consistency if this COMPOUND_STMT is scoped.
3658 2002-01-22 Kazu Hirata <kazu@hxi.com>
3660 * predict.c: Fix formatting.
3661 * print-tree.c: Likewise.
3662 * protoize.c: Likewise.
3665 * sbitmap.h: Likewise.
3667 * sched-deps.c: Likewise.
3668 * sched-vis.c: Likewise.
3669 * sdbout.c: Likewise.
3670 * sibcall.c: Likewise.
3672 * ssa-ccp.c: Likewise.
3673 * ssa-dce.c: Likewise.
3675 * stor-layout.c: Likewise.
3676 * system.h: Likewise.
3678 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3680 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
3681 if fits in bounds of base type.
3683 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
3684 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
3685 (add_bound_info, default): If can't find a context, make a
3687 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
3689 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
3691 * c-typeck.c (parser_build_binary_op): If result from
3692 build_binary_op is ERROR_MARK just return error_mark_node without
3695 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
3697 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
3698 Split a.out-specific bits into...
3699 * config/netbsd-aout.h: ...this.
3700 * config/netbsd-elf.h: New file.
3701 * config/alpha/netbsd-elf.h: Remove.
3702 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
3703 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
3704 (STARTFILE_SPEC): Remove redundant definition.
3705 (ENDFILE_SPEC): Likewise.
3706 (LINK_SPEC): Likewise.
3707 (CPP_SPEC): Likewise.
3708 (ASM_SPEC): Likewise.
3709 (LIB_SPEC): Likewise.
3710 (SWITCH_TAKES_ARG): Likewise.
3711 (TARGET_MEM_FUNCTIONS): Likewise.
3712 (CPP_PREDEFINES): Redefine.
3713 (ASM_FINAL_SPEC): Remove redefinition.
3714 (ASM_COMMENT_START): Redefine.
3715 (FUNCTION_PROFILER): Define.
3716 (TARGET_VERSION): Redefine.
3717 Comment and formatting cleanup.
3718 * config/i386/netbsd.h: Include <netbsd-aout.h>.
3719 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
3720 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
3721 big- or little-endian.
3722 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
3723 * config.gcc (*-*-netbsd*): Add definitions common to all
3725 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
3726 gnu_ld definitions. Add netbsd-elf.h to and remove
3727 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
3728 tmake_file, and don't lose previous tmake_file contents.
3729 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
3730 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
3731 gnu_ld definitions. Add netbsd-elf.h to tm_file.
3732 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
3733 (mipsel-*-netbsd*): Rename this to...
3734 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
3735 mips/little.h to tm_file for mips*el-*.
3736 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
3737 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
3738 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
3740 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
3742 * pa-protos.h (reg_before_reload_operand): New function prototype.
3743 * pa.c (reg_before_reload_operand): New function implementation.
3744 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
3747 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3749 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
3751 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
3753 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
3754 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
3755 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
3756 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
3757 (ENDFILE_SPEC): Undefine.
3758 (STARTFILE_SPEC): Redefine for PA.
3760 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3762 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
3764 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
3766 * config.gcc: Add entries to supported PowerPC --with-cpu
3769 2002-01-21 Jakub Jelinek <jakub@redhat.com>
3771 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
3772 true for 64-bit mode only SSE registers in 32-bit mode.
3774 2002-01-21 Kazu Hirata <kazu@hxi.com>
3776 * unwind-dw2.c: Fix formatting.
3777 * unwind-dw2-fde.c: Likewise.
3778 * unwind-dw2-fde.h: Likewise.
3779 * unwind-pe.h: Likewise.
3780 * varasm.c: Likewise.
3781 * varray.h: Likewise.
3783 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
3785 Remove workaround for register stack overwrite bug in mmix.
3786 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
3787 support for TARGET_REG_STACK_FILL_BUG.
3788 * config/mmix/mmix.h: Remove member has_call_without_parameters.
3789 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
3791 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
3792 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
3793 -mno-reg-stack-fill-bug-workaround.
3794 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
3795 machine member has_call_without_parameters.
3796 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
3797 -mreg-stack-fill-bug-workaround and
3798 -mno-reg-stack-fill-bug-workaround.
3799 (MMIX Options): Ditto.
3801 2002-01-21 Kazu Hirata <kazu@hxi.com>
3803 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
3805 Remove redundant code.
3807 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
3809 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
3810 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
3811 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
3812 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
3813 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
3814 out target macro definitions and non-target-specific comments
3815 mostly taken from old versions of the manual.
3817 2002-01-20 Kazu Hirata <kazu@hxi.com>
3819 * config/h8300/h8300.h: Fix comment formatting.
3820 * config/ia64/aix.h: Likewise.
3821 * config/ia64/ia64-protos.h: Likewise.
3822 * config/ia64/ia64.c: Likewise.
3823 * config/ia64/ia64.h: Likewise.
3824 * config/ia64/ia64intrin.h: Likewise.
3825 * config/ia64/linux.h: Likewise.
3826 * config/ia64/unwind-aix.c: Likewise.
3827 * config/ia64/unwind-ia64.c: Likewise.
3829 2002-01-20 Kazu Hirata <kazu@hxi.com>
3831 * config/h8300/h8300.c: Revise comments about shift code.
3833 2002-01-20 Kazu Hirata <kazu@hxi.com>
3835 * config/h8300/h8300.c (function_arg): Update a comment.
3837 2002-01-20 Kazu Hirata <kazu@hxi.com>
3839 * config/h8300/h8300.md: Update the comments at the beginning
3842 2002-01-20 Kazu Hirata <kazu@hxi.com>
3844 * config/i370/i370.c: Fix comment formatting.
3845 * config/i370/i370.h: Likewise.
3846 * config/i370/i370.md: Likewise.
3847 * config/i370/linux.h: Likewise.
3849 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3851 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
3853 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
3854 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
3857 2002-01-20 Graham Stott <grahams@redhat.com>
3859 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
3861 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
3863 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
3865 2002-01-19 Tom Rix <trix@redhat.com>
3867 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
3869 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
3871 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
3873 * function.c (assign_stack_local_1): Adjust x_frame_offset with
3874 STARTING_FRAME_PHASE.
3875 (STARTING_FRAME_PHASE): New.
3876 (instantiate_virtual_regs): Check saneness of
3877 STARTING_FRAME_PHASE.
3879 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
3881 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
3883 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
3885 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
3887 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
3888 be used for bootstrapping GCC 3.0.
3890 2002-01-18 Kazu Hirata <kazu@hxi.com>
3892 * config/h8300/h8300.md: Fix an insn length.
3894 2002-01-18 Kazu Hirata <kazu@hxi.com>
3896 * bitmap.h: Fix comment formatting.
3897 * combine.c: Likewise.
3898 * cppfiles.c: Likewise.
3899 * c-pragma.h: Likewise.
3900 * c-typeck.c: Likewise.
3902 * dwarf2out.c: Likewise.
3903 * function.c: Likewise.
3905 * genattrtab.c: Likewise.
3906 * gthr-win32.h: Likewise.
3907 * haifa-sched.c: Likewise.
3908 * predict.c: Likewise.
3909 * rtlanal.c: Likewise.
3911 * unwind-dw2-fde.h: Likewise.
3912 * unwind-pe.h: Likewise.
3913 * vmsdbgout.c: Likewise.
3915 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3917 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
3918 if type_required and passed decl.
3920 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
3922 * config.gcc (cpu_type): Include altivec.h in powerpc
3926 * config/rs6000/altivec.h: New.
3928 2002-01-17 David Edelsohn <edelsohn@gnu.org>
3930 * doc/install.texi (*-ibm-aix*): Update assembler and exception
3931 handling information.
3932 * doc/trouble.texi (Interoperation): Add libstdc++ information
3934 (Misunderstandings): Add template instantiation and static template
3935 member information for AIX.
3937 2002-01-17 Jason Merrill <jason@redhat.com>
3939 * dbxout.c (dbxout_type): Support const and volatile.
3941 * except.c (add_partial_entry): Remove backwards compatibility code.
3942 (end_protect_partials): Likewise.
3944 2002-01-17 Jakub Jelinek <jakub@redhat.com>
3946 * config/ia64/ia64.md (prologue_use): New.
3947 * config/ia64/ia64.c (ia64_expand_prologue): Use
3948 gen_prologue_use instead of gen_rtx_USE.
3949 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
3950 as CODE_FOR_pred_rel_mutex.
3951 (ia64_sched_reorder2): Likewise.
3953 2002-01-16 Eric Christopher <echristo@redhat.com>
3955 * config/mips/r3900.h: Reformat.
3956 (SUBTARGET_CPP_SIZE_SPEC): Remove.
3957 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
3958 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
3959 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
3960 * config/mips/t-elf: Remove mips3 multilib.
3962 2002-01-16 H.J. Lu <hjl@gnu.org>
3964 * config/mips/linux.h: Include "mips/abi64.h".
3966 2002-01-16 H.J. Lu <hjl@gnu.org>
3968 * config/mips/t-linux: New.
3970 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
3972 * config/mips/linux.h: Don't include "gofast.h".
3973 (INIT_SUBTARGET_OPTABS): Removed.
3975 2002-01-16 Kazu Hirata <kazu@hxi.com>
3977 * config/h8300/h8300-protos.h: Replace emit_a_shift with
3979 * config/h8300/h8300.c: Likewise.
3980 * config/h8300/h8300.md: Likewise.
3982 2002-01-16 Kazu Hirata <kazu@hxi.com>
3984 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
3985 spaces after an opcode name.
3986 (pushqi1_h8300hs): Likewise.
3987 (pushhi1_h8300hs): Likewise.
3989 2002-01-16 Kazu Hirata <kazu@hxi.com>
3991 * doc/extend.texi: Replace "option" with "attribute"
3994 2002-01-16 Jakub Jelinek <jakub@redhat.com>
3996 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
3997 (and:DI () (const_int -8)).
3998 (split_small_symbolic_mem_operand): Split
3999 (mem (and:DI () (const_int -8)).
4001 2002-01-16 Jakub Jelinek <jakub@redhat.com>
4004 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
4005 same way as TYPE_IMUL.
4006 (ultrasparc_sched_reorder): Likewise.
4007 * config/sparc/sparc.md (type): Add comment to update
4008 ultrasparc_sched_reorder when making changes.
4010 2002-01-16 Kazu Hirata <kazu@hxi.com>
4012 * doc/invoke.texi: Change the dump file name of block
4013 reordering pass from 28.bbro to 29.bbro.
4016 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
4018 * i386.md (minsf splitter): Fix pasto.
4020 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
4022 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
4023 to frame pointer initialisation instruction.
4024 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
4025 initialisation instruction.
4026 (soft_df_operand): Do not accept the IP register.
4027 (nonimmediate_soft_df_operand): Do not accept the IP register.
4029 2002-01-16 Jakub Jelinek <jakub@redhat.com>
4032 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
4033 MASK_V8 being both set.
4035 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
4037 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
4038 insn for GOT register; add REG_MAYBE_DEAD notes instead.
4039 config/s390/s390.md (call, call_value): Add GOT register to
4040 CALL_INSN_FUNCTION_USAGE where needed.
4041 (call_exp, call_value_exp): New.
4043 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
4045 * config/arm/arm.c: General formatting tidy up.
4047 2002-01-16 Graham Stott <grahams@redhat.com>
4049 * calls.c (try_to_integrate): Use "(size_t)" intermediate
4050 cast and when casting an integer literal to "rtx" pointer.
4051 (expand_call): Likewise.
4052 * flow.c (try_pre_increment): Likewise.
4053 (find_use_as_address): Likewise.
4054 * integrate.c (expand_iline_function): Likewise.
4055 * regmove.c (try_auto_increment): Likewise.
4057 2002-01-16 Graham Stott <grahams@redhat.com>
4059 * sched-rgn.c (passed): Use sbitmap_free.
4062 (in_queue): Likewise.
4063 (in_stack): Likewise.
4065 2002-01-15 Eric Christopher <echristo@redhat.com>
4067 * flow.c (propagate_one_insn): Change to use fatal_insn.
4069 2002-01-15 Kazu Hirata <kazu@hxi.com>
4071 * expmed.c (extract_fixed_bit_field): Remove unused code.
4072 * system.h: Poison SLOW_ZERO_EXTEND.
4073 * doc/tm.texi: Remove.
4074 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
4075 * config/arm/arm.h: Likewise.
4076 * config/avr/avr.h: Likewise.
4077 * config/clipper/clipper.h: Likewise.
4078 * config/convex/convex.h: Likewise.
4079 * config/d30v/d30v.h: Likewise.
4080 * config/dsp16xx/dsp16xx.h: Likewise.
4081 * config/elxsi/elxsi.h: Likewise.
4082 * config/fr30/fr30.h: Likewise.
4083 * config/h8300/h8300.h: Likewise.
4084 * config/i370/i370.h: Likewise.
4085 * config/i386/i386.h: Likewise.
4086 * config/m68k/m68k.h: Likewise.
4087 * config/mips/mips.h: Likewise.
4088 * config/ns32k/ns32k.h: Likewise.
4089 * config/pdp11/pdp11.h: Likewise.
4090 * config/pj/pj.h: Likewise.
4091 * config/s390/s390.h: Likewise.
4092 * config/sh/sh.h: Likewise.
4093 * config/stormy16/stormy16.h: Likewise.
4094 * config/v850/v850.h: Likewise.
4095 * config/vax/vax.h: Likewise.
4096 * config/we32k/we32k.h: Likewise.
4098 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
4100 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
4101 (altivec_lvsl): Change constraint to b.
4102 (altivec_lvsr): Same.
4103 (altivec_lvebx): Same.
4104 (altivec_lvehx): Same.
4105 (altivec_lvewx): Same.
4106 (altivec_lvxl): Same.
4107 (altivec_lvx): Same.
4108 (altivec_stvx): Add parallel.
4109 (altivec_stvxl): Same.
4110 (altivec_stvehx): Same.
4111 (altivec_stvebx): Same.
4112 (altivec_stvebx): Same.
4114 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
4116 * config.gcc: Change altivec.h to altivec-defs.h.
4118 * config/rs6000/altivec.h: Delete.
4120 * config/rs6000/altivec-defs.h: Add.
4122 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
4124 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
4127 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
4128 less than or equal to eight bytes.
4130 * vax.md (andsi3): Remove constraints and change SET destination
4131 operand type to nonimmediate_operand.
4132 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
4133 when it is a CONST_INT.
4135 2002-01-15 Jason Merrill <jason@redhat.com>
4137 * c-common.def (FILE_STMT): New code.
4138 * c-common.c (statement_code_p): It's a statement.
4139 * c-common.h (stmt_tree_s): Add x_last_filename.
4140 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
4141 (last_expr_filename): New macro.
4142 * c-semantics.c (begin_stmt_tree): Initialize it.
4143 (add_stmt): If the filename changed, also insert a
4145 (expand_stmt): Handle seeing one.
4147 2002-01-15 Eric Christopher <echristo@redhat.com>
4149 * flow.c (propagate_one_insn): Add error message and print out
4152 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
4154 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
4155 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
4156 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
4157 TRAMPOLINE_ALIGNMENT.
4158 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
4160 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
4161 PCC_BITFIELD_TYPE_MATTERS.
4162 * config/interix.h (STDC_VALUE): Remove. Use
4163 STDC_0_IN_SYSTEM_HEADERS.
4164 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
4165 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
4166 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
4168 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
4170 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
4171 not work on this platform currently.
4173 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
4175 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
4176 readonly_warning in _().
4178 2002-01-15 Douglas B Rupp <rupp@gnat.com>
4180 * gcc.c (delete_if_ordinary): Backout previous change.
4182 2002-01-15 Kazu Hirata <kazu@hxi.com>
4184 * config/h8300/h8300.c (print_operand): Remove support for
4185 unused operand characters.
4187 * read-rtl.c: Fix formatting.
4189 * recog.c: Likewise.
4190 * regclass.c: Likewise.
4191 * regmove.c: Likewise.
4192 * reg-stack.c: Likewise.
4193 * reload1.c: Likewise.
4194 * rtlanal.c: Likewise.
4196 2002-01-15 Kazu Hirata <kazu@hxi.com>
4198 * config/i386/i386.c: Fix formatting.
4200 2002-01-15 Jakub Jelinek <jakub@redhat.com>
4202 * c-typeck.c (process_init_element): Don't save_expr
4203 COMPOUND_LITERAL_EXPR if just its initializer will be used.
4205 2002-01-15 David Edelsohn <edelsohn@gnu.org>
4207 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
4208 emit optional traceback table if optimize_size or TARGET_ELF.
4209 * config/rs6000/rs6000.md (prefetch): New.
4211 2002-01-15 Andreas Jaeger <aj@suse.de>
4213 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
4215 2002-01-15 Kazu Hirata <kazu@hxi.com>
4217 * mips-tfile.c: Fix formatting.
4219 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
4221 * unroll.c (final_reg_note_copy): Fix previous commit.
4223 2002-01-14 Kazu Hirata <kazu@hxi.com>
4225 * config/h8300/h8300-protos.h: Remove the prototype for
4227 * config/h8300/h8300.c (eq_operator): Remove.
4229 2002-01-14 Richard Henderson <rth@redhat.com>
4231 * config/i386/i386.md (prefetch): Tidy.
4232 (prefetch_3dnow): Fix locality operand.
4234 2002-01-14 Richard Henderson <rth@redhat.com>
4236 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
4237 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
4239 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
4241 * reload1.c (reload_combine): Pass reg_sum replacement through
4242 copy_rtx in loop performing multiple changes.
4244 2002-01-14 Jakub Jelinek <jakub@redhat.com>
4246 * except.c (remove_unreachable_regions): New.
4247 (free_eh_status): Clear exception_handler_labels.
4248 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
4249 (find_exception_handler_labels): Don't add the same label more than
4251 (remove_exception_handler_label): Don't die if
4252 find_exception_handler_labels hasn't been called for the current
4255 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
4257 * toplev.c (rest_of_compilation): Rebuild jump labels after
4260 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
4262 * doc/extend.texi: Move documentation of X86 built-in functions
4264 * doc/invoke.texi: From here.
4265 * doc/sourcebuild.texi: Document location of documentation for
4266 machine built-in functions.
4268 2002-01-13 Christopher Faylor <cgf@redhat.com>
4270 * cppfiles.c (TEST_THRESHOLD): New macro.
4271 (SHOULD_MMAP): Ditto.
4272 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
4275 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
4277 * unroll.c (final_reg_note_copy): Properly handle
4279 (unroll_loops): Fix LOOP_CONDITION heuristics.
4281 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
4283 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
4284 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
4286 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
4288 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
4291 2002-01-14 Tom Rix <trix@redhat.com>
4293 * config/rs6000/rs6000.md: Fix typo with sradi.
4295 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
4297 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
4298 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
4299 (clrstrdi, clrstrsi): Adapt callers.
4301 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
4303 (movti splitter): Never use register 0 as base register.
4305 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
4307 * combine.c (simplify_shift_const): Always generate new rtx
4308 for shift expression instead of reusing given expression.
4310 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4312 * config/alpha/alpha.c (alpha_expand_mov): Don't call
4313 alpha_legitimize_address unless mode is Pmode.
4315 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
4317 * doc/md.texi (Modifiers): Document the '*' constraint for the
4320 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
4321 * doc/extend.texi (Function Attributes): 'interrupt' is valid
4324 2002-01-13 Richard Henderson <rth@redhat.com>
4326 * reload.c (find_reloads): Use a hard reg destination as reload reg
4327 for an input reload of the source.
4329 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4331 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
4334 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
4336 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
4337 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
4339 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
4341 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4343 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
4345 2002-01-12 Tom Rix <trix@redhat.com>
4347 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
4350 2002-01-12 Richard Henderson <rth@redhat.com>
4352 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
4354 * doc/invoke.texi: Update Alpha options.
4356 * doc/invoke.texi: Update i386 built-in function lists.
4358 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
4360 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
4361 referencing outside.
4363 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4365 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
4366 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
4367 offsets, and change line folding.
4368 * optabs.c (expand_binop): Remove warnings.
4369 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
4371 2002-01-12 Graham Stott <grahams@redhat.com>
4373 * attribs.c (handle_deprecated_attribute): constify WHAT.
4374 * diagnostic.c (warn_deprecated_use): Add braces, fixes
4375 dangling else warning and constify WHAT.
4376 * except.h (struct function, struct inline_remap): Move
4377 struct tag forward defs before all prototypes.
4378 (duplicate_eh_regions): Whitespace.
4380 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
4382 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
4383 MODE_BASE_REG_CLASS.
4384 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
4386 2002-01-12 Richard Henderson <rth@redhat.com>
4388 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
4389 (ix86_expand_vector_move): New.
4390 (bdesc_2arg): Remove andps, andnps, orps, xorps.
4391 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
4392 Remove old prefetch builtins. Special case the logicals removed above.
4393 (ix86_expand_builtin): Likewise.
4394 (safe_vector_operand): Use V4SFmode, not TImode.
4395 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
4396 (ix86_expand_timode_binop_builtin): New.
4397 * config/i386/i386-protos.h: Update.
4398 * config/i386/i386.h (enum ix86_builtins): Update.
4399 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
4400 Use ix86_expand_vector_move in vector move expanders.
4401 (movti_internal, movti_rex64): Add xorps alternative.
4402 (sse_clrv4sf): Rename and adjust from sse_clrti.
4403 (prefetch): Don't work so hard.
4404 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
4405 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
4406 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
4408 2002-01-11 Richard Henderson <rth@redhat.com>
4410 * config/i386/mmintrin.h: New file.
4411 * config/i386/xmmintrin.h: New file.
4412 * config.gcc (i?86-*-*): Add extra_headers.
4413 * simplify-rtx.c (simplify_unary_operation): Handle saturating
4415 (simplify_binary_operation): Handle saturating arithmetic codes.
4416 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
4417 not the lowpart subreg.
4418 (ix86_expand_builtin): Return a TImode dummy register instead of 0
4420 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
4422 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4424 * conflict.c (conflict_graph_compute): Free regsets when finished.
4425 * ssa.c (compute_coalesced_reg_partition): Likewise.
4427 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4429 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
4430 every where we allocate a register.
4432 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4434 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
4435 * lcm.c (compute_earliest, compute_farthest): Likewise.
4437 2002-01-11 Janis Johnson <janis187@us.ibm.com>
4439 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
4441 2002-01-11 Janis Johnson <janis187@us.ibm.com>
4443 * doc/rtl.texi (Insns): Fix 2 typos.
4445 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
4447 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
4448 options. Use @table @gcctabopt for MMIX options. Add index
4449 entries for MMIX options. Start new paragraph with first
4450 heading of the machine-dependent options.
4452 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
4455 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
4456 * combine.c (force_to_mode): Same.
4457 * reload1.c (clear_reload_reg_in_use): Same.
4459 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
4461 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
4464 2002-01-11 Andreas Jaeger <aj@suse.de>,
4465 Brad Lucier <lucier@math.purdue.edu>
4467 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
4470 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
4472 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
4473 Protect with IN_LIBGCC.
4474 (LINK_EH_SPEC): Add required trailing space.
4476 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
4478 * c-tree.h: Move function declarations so that they are listed
4479 under the filename which contains them.
4480 (check_identifier, finish_decl_top_level,
4481 lookup_name_current_level_global, shadow_record_fields): Remove.
4483 2002-01-11 Andreas Jaeger <aj@suse.de>
4485 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
4488 2002-01-10 Richard Henderson <rth@redhat.com>
4490 * config/alpha/alpha.c (print_operand): Add 'J'.
4491 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
4492 new operand with the sequence number for the lituse. When splitting
4493 the insns, use gen_movdi_er_high_g and generate a sequence number.
4494 (gen_movdi_er_high_g): Print the sequence number if non-zero.
4496 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
4498 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
4499 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
4501 (altivec_expand_builtin): Same.
4502 (altivec_expand_stv_builtin): New.
4504 * config/rs6000/rs6000.h (rs6000_builtins): Same.
4506 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
4507 ("altivec_lvehx"): New.
4508 ("altivec_lvewx"): New.
4509 ("altivec_lvxl"): New.
4510 ("altivec_lvx"): New.
4511 ("altivec_stvx"): New.
4512 ("altivec_stvebx"): New.
4513 ("altivec_stvehx"): New.
4514 ("altivec_stvewx"): New.
4515 ("altivec_stvxl"): New.
4517 2002-01-10 Richard Henderson <rth@redhat.com>
4519 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
4520 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
4521 care not to delete instructions twice.
4523 2002-01-10 Zack Weinberg <zack@codesourcery.com>
4525 * toplev.c: Don't declare environ (it's not used anywhere).
4526 * configure.in: Don't check for declaration of environ.
4527 * config/i386/xm-mingw32.h: Don't #define environ.
4528 * config.in, configure: Regenerate.
4530 2002-01-10 Zack Weinberg <zack@codesourcery.com>
4532 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
4533 * configure: Regenerate.
4535 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
4536 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
4537 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
4539 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
4540 LIMITS_H_TEST here, not in m68k/x-next.
4541 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
4542 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
4544 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
4545 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
4546 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
4548 * config/i386/x-djgpp: Renamed i386/t-djgpp.
4549 * config/m88k/x-dolph: Renamed m88k/t-dolph.
4550 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
4551 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
4552 replacement of quadlib.asm with quadlib.c.
4554 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
4555 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
4556 config/rs6000/xm-beos.h: Delete file.
4558 * config.gcc: Update to match above changes.
4560 2002-01-10 Kazu Hirata <kazu@hxi.com>
4562 * config/h8300/h8300.h: Fix comment typos.
4563 * config/h8300/h8300.md: Likewise.
4564 * config/h8300/lib1funcs.asm: Likewise.
4566 2002-01-10 Dale Johannesen <dalej@apple.com>
4568 PR optimization/5269
4569 * unroll.c (precondition_loop_p): Make *increment be the correct
4570 sign when n_iterations known, to avoid confusing caller.
4572 2002-01-10 Kazu Hirata <kazu@hxi.com>
4574 * doc/extend.texi (deprecated): Fix a typo.
4576 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
4578 * basic-block.h (update_br_prob_note): Declare.
4579 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
4580 (try_forward_edges): Care negative frequencies and update note.
4581 (outgoing_edges_match): Tweek conditional merging heuristics.
4582 (try_crossjump_to_edge): use update_br_prob_note.
4583 * cfglayout.c (fixup_reorder_chain): Likewise.
4584 * cfrtl.c (update_br_prob_note): New.
4585 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
4587 * i386.c (ix86_decompose_address): Return -1 if address contains
4589 (legitimate_address_p): Require ix86_decompose_address to return 1.
4591 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
4592 (cprop_insn): Likewise.
4594 2002-01-10 Kazu Hirata <kazu@hxi.com>
4596 * toplev.c: Fix formatting.
4598 * tree-dump.c: Likewise.
4599 * unroll.c: Likewise.
4600 * unwind-dw2.c: Likewise.
4601 * unwind-dw2-fde.c: Likewise.
4602 * unwind-dw2-fde-glibc.c: Likewise.
4603 * unwind-sjlj.c: Likewise.
4605 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
4607 * doc/invoke.texi: Document PDP-11 options.
4609 2002-01-10 Kazu Hirata <kazu@hxi.com>
4611 * config/h8300/h8300.h: Fix formatting.
4613 2002-01-10 Ira Ruben <ira@apple.com>
4615 Add __attribute__ ((deprecated)).
4616 * extend.texi: Document __attribute__ ((deprecated)).
4617 * invoke.texi: Document -Wno-deprecated-declarations.
4618 * testsuite/g++.dg/other/deprecated.C: New C++ test.
4619 * testsuite/gcc.dg/deprecated.c: New C test.
4620 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
4621 (c_common_attribute_table): Add "deprecated" entry.
4622 (handle_deprecated_attribute): New function.
4623 * c-decl.c (deprecated_states): New enum.
4624 deprecated_state: State of "deprecated" handling.
4625 (start_decl): Set deprecated_state based on attributes.
4626 (grokdeclarator): Test for deprecated uses, propagate attribute.
4627 * c-typeck.c (build_component_ref): Test for deprecated fields.
4628 (build_external_ref): Test for deprecated primaries.
4629 * diagnostic.c (warn_deprecated_use) New function to issue
4630 warnings about __attribute__ ((depricated)) references.
4631 * flags.h (warn_deprecated_decl): Extern declared for
4632 -W[no-]deprecated-declarations option.
4633 * print-tree.c (print_node): Show deprecated flag status.
4634 * toplev.c (warn_deprecated_decl): Defined.
4635 (W_options): Added "deprecated-declaration".
4636 * toplev.h (warn_deprecated_use): Extern declared.
4637 * tree.h (struct tree_common): Define deprecated_flag.
4638 (TREE_DEPRECATED): New macro to access flag.
4639 * cp/call.c (build_call): Test for deprecated calls.
4640 * cp/class.c (add_implicitly_declared_members): Set global
4641 flag to tell grokdeclarator to not issue deprecated warnings.
4642 * cp/cp-tree.h: Add extern for adding_implicit_members.
4643 * cp/decl.c (deprecated_states): New enum.
4644 (start_decl): Set deprecated_state based on attributes.
4645 (grokdeclarator): Test for deprecated uses, propagate attribute.
4646 * cp/lex.c (do_identifier): Test for deprecated primaries.
4647 * cp/typeck.c (build_component_ref): Test for deprecated fields.
4649 2002-01-10 Ira Ruben <ira@apple.com>
4651 Fix to assign attributes to inline member functions.
4652 * cp/decl.c (start_method): Handle attrlist.
4654 2002-01-10 Kazu Hirata <kazu@hxi.com>
4656 * combine.c (expand_field_assignment): Use subreg_lsb().
4658 2002-01-10 David Edelsohn <edelsohn@gnu.org>
4660 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
4661 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
4662 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
4663 Recurse for any operand of AND as long as constant is non-zero.
4665 2002-01-10 Kazu Hirata <kazu@hxi.com>
4667 * config/h8300/h8300.md: Remove constraints from expanders.
4669 2002-01-10 Kazu Hirata <kazu@hxi.com>
4671 * varasm.c: Fix formatting.
4672 * varray.c: Likewise.
4673 * vmsdbgout.c: Likewise.
4674 * xcoffout.c: Likewise.
4676 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
4678 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
4679 update edge probabilities to match.
4681 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
4683 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
4685 * doc/languages.texi, doc/sourcebuild.texi: New files.
4686 * doc/configfiles.texi: Make a subsubsection. Update.
4687 * doc/configterms.texi: Add @node. Remove warning that this isn't
4688 instructions for building GCC.
4689 * doc/makefile.texi: Make a subsection.
4690 * doc/gccint.texi: Update.
4692 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
4694 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
4696 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
4698 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
4700 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
4702 * optabs.c (expand_fix): Look for wider integer modes first.
4704 * i386.md (mov?f): Avoid the fake const double trick for medium
4706 (min?f*/max?f*): Prohibit memory operands for i387 variant.
4707 (fop_df_4): Disable for SSE compilation.
4709 2002-01-10 Graham Stott <grahams@redhat.com>
4711 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
4712 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
4714 2002-01-10 Richard Henderson <rth@redhat.com>
4716 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
4718 2002-01-10 Richard Henderson <rth@redhat.com>
4720 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
4721 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
4723 2002-01-10 Kazu Hirata <kazu@hxi.com>
4725 * combine.c (can_combine_p): Fix a comment typo.
4727 2002-01-09 Zack Weinberg <zack@codesourcery.com>
4729 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
4730 empty list correctly. Change loop index $t to $f for
4731 consistency with rest of Makefile.
4733 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
4735 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
4736 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
4738 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
4739 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
4740 (altivec_init_builtins): Same.
4741 (altivec_expand_unop_builtin): Return NULL_RTX on error.
4742 (altivec_expand_binop_builtin): Same.
4743 (altivec_expand_ternop_builtin): Same.
4746 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
4747 ("altivec_vctuxs"): Fix typo.
4748 ("altivec_vnmsubfp"): Same.
4749 ("altivec_dssall"): New.
4750 ("altivec_mfvscr"): New.
4751 ("altivec_dss"): New.
4752 ("altivec_lvsl"): New.
4753 ("altivec_lvsr"): New.
4754 ("altivec_dstt"): New.
4755 ("altivec_dstst"): New.
4756 ("altivec_dststt"): New.
4757 ("altivec_dst"): New.
4759 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
4760 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
4762 2002-01-09 Richard Henderson <rth@redhat.com>
4764 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
4766 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
4768 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
4770 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
4772 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
4774 2002-01-09 Kazu Hirata <kazu@hxi.com>
4776 * read-rtl.c: Fix formatting.
4778 * regclass.c: Likewise.
4779 * regrename.c: Likewise.
4780 * reg-stack.c: Likewise.
4781 * reload1.c: Likewise.
4782 * reload.c: Likewise.
4785 2002-01-09 Kazu Hirata <kazu@hxi.com>
4787 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
4788 to extract items in the expr_list chain.
4790 2002-01-09 Richard Henderson <rth@redhat.com>
4792 * config/vax/vax.c (vax_rtx_cost): Never abort.
4794 * config/vax/vax.h (REAL_ARITHMETIC): Define.
4796 2002-01-09 Jan Hubicka <jh@suse.cz>
4798 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
4800 2002-01-09 Richard Henderson <rth@redhat.com>
4802 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
4803 Unify code from various alternatives.
4805 2002-01-09 Richard Henderson <rth@redhat.com>
4807 * regrename.c (copy_value): Ignore the copy if the source register
4808 is present in the value chain with a narrower mode.
4810 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4812 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
4813 for the c4x target. Also improve layout.
4815 2002-01-09 Richard Henderson <rth@redhat.com>
4817 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
4818 * config/m32r/m32r.md (and ior xor splitters): Swap operands
4819 to match insn patterns.
4821 2002-01-09 Richard Henderson <rth@redhat.com>
4823 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
4824 (copyprop_hardreg_forward_1): Likewise.
4826 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
4828 * pa.md (decrement_and_branch_until_zero): Change predicate for
4829 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
4831 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
4833 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
4834 gets undefined. For Darwin.
4836 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4838 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
4840 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4842 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
4844 2002-01-08 Richard Henderson <rth@redhat.com>
4846 * regrename.c (copy_value): Ignore overlapping copies.
4848 2002-01-08 Richard Henderson <rth@redhat.com>
4850 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
4851 as needed to avoid shared structure.
4853 2002-01-08 Kazu Hirata <kazu@hxi.com>
4855 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
4858 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
4860 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
4861 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
4862 documentation of obsolete macros.
4863 * system.h: Poison these macros.
4864 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
4865 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
4866 config/c4x/c4x.h, config/clipper/clipper.h,
4867 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
4868 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
4869 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
4870 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
4871 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
4872 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
4873 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4874 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
4875 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
4876 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
4877 config/sparc/sparc.h, config/stormy16/stormy16.h,
4878 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
4879 definitions and commented out definitions of obsolete macros.
4880 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
4881 of MAX_INT_TYPE_SIZE.
4883 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
4885 * config/s390/s390.c (s390_preferred_reload_class): Never
4886 return ADDR_REGS if it isn't a subset of the given class.
4887 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
4888 FP_REGS, but all superclasses as well.
4890 * config/s390/s390.c (s390_function_profiler): Fix thinko.
4892 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
4893 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
4894 must not be a const_int.
4896 2002-01-08 Richard Henderson <rth@redhat.com>
4898 * Makefile.in (toplev.o): Depend on options.h.
4899 (gcc.o): Depend on specs.h.
4901 2002-01-08 Jakub Jelinek <jakub@redhat.com>
4903 * expr.c (store_expr): Convert VOIDmode constants back to target's
4906 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4908 * doc/invoke.texi: Markup gcc as @command. Refer to
4909 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
4910 of http://gcc.gnu.org/thanks.html.
4912 2002-01-08 Dale Johannesen <dalej@apple.com>
4914 * config/rs6000/rs6000.md: Add missing int register
4915 target case to movdf_low.
4917 2002-01-08 Zack Weinberg <zack@codesourcery.com>
4919 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
4920 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
4921 (cppinit.o): Depend on except.h.
4922 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
4923 s-specs): New rules.
4925 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
4926 Don't create specs.h/options.h/gencheck.h here. Remove
4927 unnecessary variable settings from last argument of AC_OUTPUT.
4928 * config.in, configure: Regenerate.
4929 * intl.c: Hardcode package name as "gcc".
4931 * cppinit.c: Include except.h.
4932 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
4934 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
4935 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
4936 (!)USING_SJLJ_EXCEPTIONS.
4937 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
4939 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
4941 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
4942 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
4943 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
4944 documentation of obsolete macros.
4945 * system.h: Poison these macros.
4946 * config/d30v/d30v.h, config/ns32k/encore.h,
4947 config/stormy16/stormy16.h: Remove definitions and commented out
4948 definitions of obsolete macros.
4950 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
4952 * objc/objc-act.c (handle_class_ref): Mark the declaration of
4953 %sobjc_class_ref_%s as used - to prevent unwanted compiler
4956 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
4958 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
4959 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
4960 to insn adjusting stack/frame pointer.
4961 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
4962 accept operands that cause the insn to be non-splittable.
4964 2002-01-08 Graham Stott <grahams@redhat.com>
4966 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
4967 (C_TYPE_FIELDS_VOLATILE): Likewise.
4968 (C_TYPE_BEING_DEFINED): Likewise.
4969 (C_IS_RESERVED_WORD): Likewise.
4970 (C_TYPE_VARIABLE_SIZE): Likewise.
4971 (C_DECL_VARIABLE_SIZE): Likewise.
4972 (C_MISSING_PROTOTYPE_WARNED): Likewise.
4973 (C_SET_EXP_ORIGINAL_CODE): Likewise.
4974 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
4976 (C_DECL_ANTICIPATED): Likewise.
4977 (c_build_type_variant): Add parenthesis.
4979 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
4981 * gcc.c (option_map): Remove --version.
4982 (process_command): Handle -fversion following the GNU Coding
4983 Standards. Partially addresses PR other/704.
4985 2002-01-08 Graham Stott <grahams@redhat.com>
4987 * combine.c (combine_instructions): Fix typo.
4989 2002-01-08 Graham Stott <grahams@redhat.com>
4991 * debug.h: Use "tree" and "rtx" throughout.
4993 * debug.c: Likewise.
4995 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
4997 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
4998 constant pool, use the pool's version of the symbol instead.
5000 2002-01-07 Richard Henderson <rth@redhat.com>
5002 * regrename.c (find_oldest_value_reg): Ignore the value chain if
5003 the original register was copied in a mode with a fewer number of
5004 hard registers than the desired mode.
5005 (copyprop_hardreg_forward_1): Likewise.
5006 (debug_value_data): Fix loop test.
5007 * toplev.c (parse_options_and_default_flags): Reenable
5008 -fcprop-registers at -O1.
5010 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
5012 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
5013 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
5015 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
5018 * config/rs6000/rs6000.md: Add altivec predicate patterns.
5020 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
5022 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
5023 (pa_output_function_prologue): Output local label at the beginning of
5024 the prologue when profiling.
5025 (hppa_profile_hook): Use the local label rather than the function label.
5026 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
5028 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
5030 * config/rs6000/rs6000.c (print_operand): Remove extra space.
5031 (altivec_expand_unop_builtin): Fix thinko.
5032 (altivec_expand_binop_builtin): Same.
5033 (altivec_expand_ternop_builtin): Same.
5034 (altivec_expand_builtin): Same.
5036 2002-01-07 Richard Henderson <rth@redhat.com>
5038 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
5040 2002-01-07 Jason Merrill <jason@redhat.com>
5042 * unwind-dw2.c (execute_cfa_program): Use < again.
5044 2002-01-07 Jakub Jelinek <jakub@redhat.com>
5046 * predict.c (combine_predictions_for_insn): Avoid division by zero.
5048 2002-01-07 Jakub Jelinek <jakub@redhat.com>
5050 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
5051 Don't allow -1 - x -> ~x simplifications in the first pass.
5053 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
5055 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
5057 (altivec_expand_binop_builtin): Same.
5058 (altivec_expand_unop_builtin): Same.
5059 (print_operand): Fix typo.
5060 (bdesc_1arg): Add vupk* variants.
5062 * rs6000.h (rs6000_builtins): Add vupk* enums.
5064 * rs6000.md: Add altivec_vupk* variants.
5066 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
5068 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
5069 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
5070 and last update dates.
5072 2002-01-07 Janis Johnson <janis187@us.ibm.com>
5074 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
5076 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
5078 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
5079 * config/avr/avr.h (CPP_SPEC): Likewise.
5080 (LINK_SPEC): Likewise.
5081 (CRT_BINUTILS_SPECS): Likewise.
5082 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5083 * doc/invoke.texi (AVR Options): Document them.
5085 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
5087 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
5090 2002-01-07 Graham Stott <grahams@redhat.com>
5092 * config/i386/i386.h: Update copyright date.
5093 (HALF_PIC_PTR): Add parenthesis.
5094 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
5095 (CONSTANT_ALIGNMENT): Add parenthesis.
5096 (DATA_ALIGNMENT): Likewise.
5097 (LOCAL_ALIGNMENT): Likewise.
5098 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
5099 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
5100 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
5101 (HARD_REGNO_NREGS): Add paranethesis.
5102 (VALID_SSE_REG_MODE): Whitespace.
5103 (VALID_MMX_REG_MODE): Whitespace.
5104 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
5105 (ix86_hard_regno_mode_ok): Add parenthesis.
5106 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
5107 (RETURN_IN_MEMORY): Whitespace.
5108 (N_REG_CLASSES): Add parenthesis.
5109 (INTEGER_CLASS_P): Add parenthesis and wrap.
5110 (FLOAT_CLASS_P): Likewise.
5111 (SSE_CLASS_P): Likewise.
5112 (MMX_CLASS_P): Likewise.
5113 (MAYBE_INTEGER_CLASS_P): Likewise.
5114 (MAYBE_FLOAT_CLASS_P): Likewise.
5115 (MAYBE_SSE_CLASS_P): Likewise.
5116 (MAYBE_MMX_CLASS_P): Likewise.
5117 (Q_CLASS_P): Likewise.
5118 (GENERAL_REGNO_P): Uppercase macro parameter.
5119 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
5120 (FP_REGNO_P): Likewise.
5121 (ANY_FP_REGNO_P): Uppercase macro parameter.
5122 (SSE_REGNO_P): Likewise.
5123 (SSE_REGNO): Likewise.
5124 (SSE_REG_P): Likewise.
5125 (SSE_FLOAT_MODE_P): Likewise.
5126 (MMX_REGNO_P): Likewise.
5127 (MMX_REG_P):Likewise.
5128 (STACK_REG_P): Likewise.
5129 (NON_STACK_REG_P): Likewise.
5130 (STACK_TOP_P): Likewise.
5131 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
5132 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
5133 (SECONDARY_MEMORY_NEEDED): Likewise.
5134 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
5135 (MD_ASM_CLOBBERS): Whitespace and wrap.
5136 (MUST_PASS_IN_STACK): Whitespace and wrap.
5137 (RETURN_POPS_ARGS): Add parenthesis.
5138 (INIT_CUMULATIVE_ARGS): Likewise.
5139 (FUNCTION_ARG): Likewise.
5140 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
5141 (SETUP_INCOMING_VARARGS): Likewise.
5142 (BUILD_VA_LIST_TYPE): Add parenthesis.
5143 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
5145 (EXPAND_BUILTIN_VA_ARG): Likewise.
5146 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
5147 (INITIALIZE_TRAMPOLINE): Add parenthesis.
5148 (INITIAL_ELIMINATION_OFFSET): Likewise.
5149 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
5150 (REGNO_OK_FOR_BASE_P): Likewise.
5151 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
5152 (REGNO_OK_FOR_DIREG_P): Likewise.
5153 (REG_OK_FOR_INDEX_P): Whitespace.
5154 (REG_OK_FOR_BASE_P): Whitespace.
5155 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
5157 (FIND_BASE_TERM): Fix typo.
5158 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
5159 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
5160 (SYMBOLIC_CONST; Whitespace.
5161 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
5162 (ENCODE_SECTION_INFO): Whitespace.
5163 (FINALIZE_PIC): Remove do { ... } while (0).
5164 (PROMOTE_MODE): Wrap in do { ... } while (0).
5165 (CONST_COSTS): Whitespace.
5166 (RTX_COSTS): Add paramethesis, whitespace and wrap.
5167 (REGISTER_MOVE_COST): Add parenthesis.
5168 (MEMORY_MOVE_COST): Likewise.
5169 (EXTRA_CC_MODES): Whitespace.
5170 (SELECT_CC_MODE): Add parenthesis and whitespace.
5171 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
5172 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
5173 (ASM_OUTPUT_LABEL): Add paramethesis.
5174 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
5175 (ASM_OUTPUT_REG_POP): Likewise.
5176 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
5177 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5179 * config/i386/i386.c: Update copyright.
5180 (CHECK_STACK_LIMIT): Add parenthesis.
5181 (AT_BP): Uppercase macro parameter.
5182 (x86_64_int_parameter_registers): Constify.
5183 (x86_64_int_return_registers): Likewise.
5184 (ix86_compare_op0): Use rtx.
5185 (construct_container): Constify INTREG parameter.
5186 (function_arg): Use rtx.
5188 * diagnostic.h: Update copyright date.
5189 (output_buffer_state): Add parenthesis.
5190 (output_buffer_format_args): Likewise.
5192 * combine.c (combine_instructions): Replace XEXP (links, 0)
5195 2002-01-06 H.J. Lu <hjl@gnu.org>
5197 * cfgcleanup.c (thread_jump): Fix 2 typos.
5199 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
5201 * config.gcc: Add support for --enable-altivec.
5203 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
5205 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
5207 2002-01-06 Jakub Jelinek <jakub@redhat.com>
5209 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
5210 __objc_class_name_*.
5212 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
5214 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
5216 2002-01-06 Richard Henderson <rth@redhat.com>
5218 * reorg.c (emit_delay_sequence): Remove death notes, not merely
5219 nop them out. Increment label reference count for REG_LABEL.
5220 (fill_slots_from_thread): Frob label reference count around
5221 delete_related_insns.
5223 2002-01-05 Richard Henderson <rth@redhat.com>
5225 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
5228 2002-01-05 Richard Henderson <rth@redhat.com>
5230 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
5231 * integrate.c (output_inline_function): Likewise.
5232 * toplev.c (rest_of_compilation): Do it here instead. Move call
5233 to remove_unnecessary_notes after emitting abstract instance.
5234 Force an emitted nested function to have its parent emited as well.
5235 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
5237 (rtl_for_decl_location): Do not look at reload data structures
5238 before reload has run.
5240 2002-01-05 Kazu Hirata <kazu@hxi.com>
5242 * cse.c: Fix formatting.
5243 * dwarf2asm.c: Likewise.
5244 * dwarf2out.c: Likewise.
5245 * explow.c: Likewise.
5246 * expmed.c: Likewise.
5247 * function.c: Likewise.
5249 * gencheck.c: Likewise.
5250 * genrecog.c: Likewise.
5251 * ggc-common.c: Likewise.
5252 * ggc-page.c: Likewise.
5253 * global.c: Likewise.
5255 2002-01-05 Kazu Hirata <kazu@hxi.com>
5257 * combine.c: Fix formatting.
5259 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
5262 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
5264 2002-01-05 David Edelsohn <edelsohn@gnu.org>
5266 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
5267 as 1 for __powerpc64__ as well.
5269 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
5271 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
5274 2002-01-05 Daniel Berlin <dan@dberlin.org>
5276 * lcm.c: Revert change, due to performance regression it causes on
5277 SPEC because it's slightly more conservative (sigh, I hate
5280 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
5282 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
5284 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
5286 * doc/cppinternals.texi: Update.
5288 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
5290 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
5291 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
5293 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
5294 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
5295 kludge for pre-october-14th mmix versions to handle new-found bug
5296 with PUSHJ/PUSHGO and the register stack.
5297 * config/mmix/mmix.h (struct machine_function): Rename member
5298 has_call_value_without_parameters to has_call_without_parameters.
5299 All referers changed.
5300 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
5301 TARGET_MASK_BRANCH_PREDICT): New macros.
5302 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
5303 -mno-reg-stack-fill-bug-workaround.
5304 * config/mmix/mmix.md ("call"): Set struct machine member
5305 has_call_without_parameters.
5307 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
5309 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
5311 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
5313 * cfgcleanup.c: Include tm_p.h
5314 (mark_effect): Fix handling of hard register; fix handling of SET
5316 2002-01-04 Kazu Hirata <kazu@hxi.com>
5318 * config/h8300/h8300.md (anonymous patterns): Check that
5319 operands are registers before using REGNO on them.
5321 2002-01-03 Roland McGrath <roland@frob.com>
5323 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
5325 2002-01-04 Jakub Jelinek <jakub@redhat.com>
5327 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
5328 * c-common.h (genrtl_expr_stmt_value): Likewise.
5329 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
5330 (expand_expr_stmt_value): Add maybe_last argument.
5331 Don't warn about statement with no effect if it is the last statement
5332 in expression statement.
5333 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
5334 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
5335 expand_expr_stmt_value.
5336 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
5337 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
5338 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
5339 as maybe_last to expand_expr_stmt_value.
5341 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
5343 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
5344 be passed in, do not build it.
5345 (c_begin_if_stmt): New function.
5346 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
5347 * c-common.h (c_expand_start_cond): Update prototype.
5348 (c_begin_if_stmt): Prototype new function.
5349 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
5350 * c-parse.in (if_prefix): Use c_begin_if_stmt,
5351 c_begin_while_stmt and c_finish_while_stmt_cond.
5353 2002-01-04 William Cohen <wcohen@redhat.com>
5355 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
5356 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
5357 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
5358 * config/pa/som.h (ASM_FILE_START): Likewise.
5360 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
5362 * lcm.c: Include df.h.
5363 Add available_transfer_function prototype.
5364 (compute_available): Rework to use iterative dataflow framework.
5365 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
5366 with bb_info in df.h
5367 (available_transfer_function): New function.
5369 * Makefile.in (lcm.o): add df.h to dependencies.
5371 2002-01-04 Richard Henderson <rth@redhat.com>
5373 * config/alpha/alpha.c (some_operand): Accept HIGH.
5374 (input_operand): Likewise; accept simple references to globals.
5375 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
5376 (alpha_const_double_ok_for_letter_p): Likewise.
5377 (alpha_extra_constraint): Likewise.
5378 (alpha_preferred_reload_class): Likewise. Do not force
5379 symbolic constants to memory.
5380 (alpha_legitimate_address_p): Accept simple references
5381 to small_symbolic_operand.
5382 (alpha_legitimize_address): New arg scratch. Be prepared to be
5383 called when no_new_pseudos. Emit simple symbolic references.
5384 Split integers into low, high, and rest.
5385 (alpha_expand_mov): Use alpha_legitimize_address.
5386 (some_small_symbolic_mem_operand): New.
5387 (split_small_symbolic_mem_operand): New.
5388 * config/alpha/alpha-protos.h: Update.
5389 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
5390 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
5391 (EXTRA_CONSTRAINT): Likewise.
5392 (PREFERRED_RELOAD_CLASS): Likewise.
5393 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
5394 (PREDICATE_CODES): Update.
5395 * config/alpha/alpha.md: New post-reload splitters to convert
5396 simplfied symbolic operands to the form that references $29.
5397 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
5398 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
5400 2002-01-03 Richard Henderson <rth@redhat.com>
5402 * local-alloc.c (function_invariant_p): Update commentary.
5404 2002-01-04 H.J. Lu <hjl@gnu.org>
5406 * toplev.c (rest_of_compilation): Fix a typo when calling
5409 2002-01-03 Kazu Hirata <kazu@hxi.com>
5411 * c-common.c: Fix formatting.
5412 * diagnostic.c: Likewise.
5413 * doloop.c: Likewise.
5414 * dwarf2out.c: Likewise.
5416 2002-01-03 Kazu Hirata <kazu@hxi.com>
5418 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
5419 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
5421 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
5423 * cpperror.c: Update comments and copyright.
5424 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
5425 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
5427 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
5429 * collect2.c (main): Use strcmp when testing for "-shared".
5431 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
5433 * cppmacro.c: Don't include intl.h. Update comments.
5434 (new_number_token): Allocate enough buffer for 64-bit unsigned
5435 integers; update prototype.
5436 * cppmain.c: Update comments.
5438 2002-01-03 William Cohen <wcohen@redhat.com>
5440 * function.h (struct function): Add profile.
5441 (current_function_profile): New.
5442 doc/extend.texi: Update documentation.
5443 * final.c (final_start_function): Use current_function_profile
5444 instead of profile_flag.
5445 (profile_after_prologue): Likewise.
5446 * function.c (expand_function_start): Likewise.
5447 (expand_function_start): Likewise.
5448 * config/alpha/alpha.c (direct_call_operand):
5449 (alpha_does_function_need_gp): Likewise.
5450 (alpha_expand_prologue): Likewise.
5451 * config/arm/arm.c (arm_expand_prologue): Likewise.
5452 thumb_expand_prologue: Likewise.
5453 * config/d30v/d30v.c (d30v_stack_info): Likewise.
5454 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
5455 (fr30_expand_prologue): Likewise.
5456 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
5457 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
5458 * config/i386/i386.h (FINALIZE_PIC): Likewise.
5459 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
5460 * config/i960/i960.c (i960_output_function_prologue): Likewise.
5461 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5462 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
5463 (m32r_expand_prologue): Likewise.
5464 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
5465 (m88k_expand_prologue): Likewise.
5466 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
5467 * config/mips/mips.c (compute_frame_size): Likewise.
5468 (mips_expand_prologue): Likewise.
5469 (mips_can_use_return_insn): Likewise.
5470 * config/pa/elf.h (ASM_FILE_START): Likewise.
5471 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
5472 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
5473 * config/pa/som.h (ASM_FILE_START): Likewise.
5474 * config/romp/romp.c (romp_using_r14): Likewise.
5475 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
5476 (rs6000_stack_info): Likewise.
5477 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5478 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
5479 * config/v850/v850.c (compute_register_save_size): Likewise.
5481 2002-01-03 Jakub Jelinek <jakub@redhat.com>
5483 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
5484 gen_lowpart_common fails, use gen_lowpart_SUBREG.
5486 2002-01-03 Turly O'Connor <turly@apple.com>
5488 * darwin.c (machopic_output_possible_stub_label): Don't generate
5489 stub routines for pseudo-stubs which we've just defined.
5491 2002-01-03 Kazu Hirata <kazu@hxi.com>
5493 * builtins.c: Fix formatting.
5494 * c-typeck.c: Likewise.
5495 * combine.c: Likewise.
5499 2002-01-03 Andreas Schwab <schwab@suse.de>
5501 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
5502 and return true if _cpp_push_next_buffer pushed a new include
5504 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
5505 _cpp_pop_file_buffer did not push a new file.
5506 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
5508 2002-01-02 Eric Christopher <echristo@redhat.com>
5510 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
5511 FIND_REG_INC_NOTE call. Update copyright.
5512 * loop.c (canonicalize_condition): Ditto.
5513 * reorg.c (delete_scheduled_jump): Ditto.
5515 2002-01-03 Kazu Hirata <kazu@hxi.com>
5517 * gcse.c: Fix formatting.
5519 2002-01-03 Graham Stott <grahams@redhat.com>
5521 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
5522 forward defs for struct tags rtx_def, union_tree, rtvec_def
5523 also output corresponding typedefs for rtx, tree, and rtvec.
5525 * system.h: Move forward defs for struct tags rtx_def, union_tree,
5526 rtvec_def along with corresponding typedefs for rtx, tree, and
5527 rtvec to config.h, hconfig.h, tconfig.h.
5529 2002-01-03 Graham Stott <grahams@redhat.com>
5531 * tree.h: Update copyright date.
5532 (IS_EXPR_CODE_CLASS): Add parenthesis.
5533 (TREE_SET_CODE): Add whitespace.
5534 (TREE_CHECK): Add parenthesis.
5535 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
5536 (CST_OR_CONSTRUCTOR_CHECK):
5537 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
5538 (TREE_SYMBOL_REFERENCED): Whitespace.
5539 (INT_CST_LT): Likewise.
5540 (INT_CST_LT_UNSIGNED): Likewise.
5541 (tree_real_cst): Unwrap comment.
5542 (tree_string): Likewise.
5543 (tree_complex): Likewise.
5544 (IDENTIFIER_POINTER): correct cast.
5545 (SAVE_EXPR_CONTEXT): Whitespace.
5546 (EXPR_WFL_FILENAME_NODE): Likewise.
5547 (EXPR_WFL_FILENAME): Remove parenthesis.
5548 (DECL_ORIGIN): Add parenthesis.
5549 (DECL_FROM_INLINE): Use NULL_TREE.
5550 (build_int_2): Whitespace.
5551 (build_type_variant): Add parenthesis.
5553 * gcc/jcf-parse.c: Update copyright date.
5554 (yyparse): Constify resource_filename.
5556 2002-01-03 Graham Stott <grahams@redhat.com>
5558 * rtl.h: Update copyright date.
5559 (RTL_CHECK1): Wrap long line.
5560 (RTL_CHECK2): Likewise.
5561 (RTL_CHECKC1): Wrap long line and whitespace.
5562 (RTL_CHECKC2): Likewise.
5563 (XWINT): Whitespace.
5569 (XBITMAP): Likewise.
5580 (X0BITMAP): Likewise.
5582 (X0BBDEF): Likewise.
5583 (X0ADVFLAGS): Likewise.
5584 (X0CSELIB): Likewise.
5585 (X0MEMATTR): Likewise.
5593 (XCBITMAP): Likewise.
5595 (XCBBDEF): Likewise.
5596 (XCADVFLAGS): Likewise.
5597 (XCCSELIB): Likewise.
5599 (INSN_UID): Likewise.
5600 (PREV_INSN): Likewise.
5601 (PATTERN): Likewise.
5602 (INSN_CODE): Likewise.
5603 (PUT_REG_NOTE_KIND): Likewise.
5604 (CODE_LABEL_NUMBER): Likewise.
5605 (NOTE_SOURCE_FILE): Likewise.
5606 (NOTE_BLOCK): Likewise.
5607 (NOTE_EH_HANDLER): Likewise.
5608 (NOTE_RANGE_INFO): Likewise.
5609 (NOTE_LIVE_INFO): Likewise.
5610 (NOTE_BASIC_BLOCK): Likewise.
5611 (NOTE_EXPECTED_VALUE): Likewise.
5612 (NOTE_LINE_NUMBER): Likewise.
5613 (LABEL_NAME): Likewise.
5614 (LABEL_NUSES): Likewise.
5615 (LABEL_ALTERNATE_NAME): Likewise.
5616 (ADDRESSOF_DECL): Likewise.
5617 (JUMP_LABEL): Likewise.
5618 (LABEL_NEXTREF): Likewise.
5620 (ORIGINAL_REGNO: Likewise.
5621 (HARD_REGISTER_NUM_P): Add parenthesis.
5622 (SUBREG_REG): Whitespace.
5623 (SUBREG_BYTE): Likewise.
5624 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
5625 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
5626 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
5627 (ASM_OPERANDS_INPUT_VEC): Likewise.
5628 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
5629 (ASM_OPERANDS_INPUT): Likewise.
5630 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
5631 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
5632 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
5633 (ASM_OPERANDS_INPUT_MODE): Likewise.
5634 (ASM_OPERANDS_SOURCE_FILE): Likewise.
5635 (ASM_OPERANDS_SOURCE_LINE): Likewise.
5636 (MEM_SET_IN_STRUCT_P): Minor reformat.
5637 (TRAP_CONDITION): Whitespace.
5638 (TRAP_CODE): Likewise.
5639 (COND_EXEC_TEST): Likewise.
5640 (COND_EXEC_CODE): Likewise.
5641 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
5642 (PHI_NODE_P): Add parenthesis.
5643 (plus_constant): Whitespace and add parenthesis.
5645 2002-01-03 Kazu Hirata <kazu@hxi.com>
5647 * config/avr/avr.c: Fix comment typos.
5648 * config/c4x/c4x.md: Likewise.
5649 * config/dsp16xx/dsp16xx.h: Likewise.
5650 * config/dsp16xx/dsp16xx.md: Likewise.
5651 * config/i386/i386.md: Likewise.
5652 * config/ia64/ia64.c: Likewise.
5653 * config/m32r/m32r.h: Likewise.
5654 * config/m68hc11/m68hc11.md: Likewise.
5655 * config/mmix/mmix.c: Likewise.
5656 * config/mn10200/mn10200.c: Likewise.
5657 * config/romp/romp.c: Likewise.
5658 * config/sh/sh.c: Likewise.
5659 * config/stormy16/stormy16.c: Likewise.
5660 * config/stormy16/stormy16.h: Likewise.
5661 * config/stormy16/stormy16.md: Likewise.
5663 2002-01-03 Graham Stott <grahams@redhat.com>
5665 * loop.h: Update copyright date.
5666 (LOOP_MOVABLES): Fix typo.
5667 (LOOP_REGS): Likewise.
5668 (LOOP_IVS): Likewise.
5670 2002-01-03 Graham Stott <grahams@redhat.com>
5672 * cppinit.c: Update copyright date.
5673 Don't include output.h
5674 * Makefile.in: Update copyright date.
5677 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
5680 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
5681 (-pthread) Add to RS/6000 options.
5683 2002-01-02 Kazu Hirata <kazu@hxi.com>
5685 * except.c: Fix comment typos.
5687 * varasm.c: Likewise.
5688 * doc/tm.texi: Fix a typo.
5690 2002-01-02 Jakub Jelinek <jakub@redhat.com>
5692 * c-typeck.c (output_init_element): Allow initializing static storage
5693 duration objects with compound literals.
5695 2002-01-02 Richard Henderson <rth@redhat.com>
5697 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
5700 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5702 * gcc.c (default_compilers): Const-ify.
5703 * mips-tdump.c (stab_names): Likewise.
5704 * mips-tfile.c (map_coff_types, map_coff_storage,
5705 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
5706 pseudo_ops_t, pseudo_ops): Likewise.
5707 * protoize.c (default_include): Likewise
5709 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
5710 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
5711 Add array size in declaration.
5712 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
5713 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
5714 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
5715 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
5716 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
5717 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
5718 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
5719 emtens, make_nan): Const-ify.
5720 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
5721 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
5723 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
5725 * config.gcc (ia64-*-*): Set extra_headers.
5726 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
5727 * config/alpha/t-osf: Remove.
5728 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
5730 2002-01-02 David Edelsohn <edelsohn@gnu.org>
5732 * config/rs6000/t-aix43: Revert previous change.
5734 2002-01-02 Jason Merrill <jason@redhat.com>
5736 * c-decl.c (c_expand_body): Call outlining_inline_function when
5737 emitting an inline function out of line.
5739 2002-01-02 Richard Henderson <rth@redhat.com>
5741 * dwarf2out.c (limbo_die_node): Add created_for member.
5742 (new_die): New argument created_for. Update all callers.
5743 (mark_limbo_die_list): New.
5744 (dwarf2out_init): Register limbo_die_list as a root.
5745 (dwarf2out_finish): Force insert limbo dies into their function
5748 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5751 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
5753 2002-01-02 Kazu Hirata <kazu@hxi.com>
5755 * config/h8300/fixunssfsi.c: Update copyright.
5758 * config/h8300/h8300.c: Update copyright.
5761 2002-01-02 Kazu Hirata <kazu@hxi.com>
5763 * config/romp/romp.c: Fix comment formatting.
5764 * config/romp/romp.h: Likewise.
5765 * config/romp/romp.md: Likewise.
5766 * config/s390/s390.c: Likewise.
5767 * config/stormy16/stormy16.c: Likewise.
5768 * config/stormy16/stormy16.h: Likewise.
5770 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
5772 * c-common.h (genrtl_expr_stmt_value): Declare.
5773 * c-semantics.c (genrtl_goto_stmt): Redirect to...
5774 (genrtl_goto_stmt_value): ... this new function. Pass new
5775 argument down to expand_expr_stmt_value, taking
5776 TREE_ADDRESSABLE into account.
5777 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
5778 STMT_EXPR as addressable, i.e., one whose result we want.
5779 * expr.c (expand_expr): Don't save expression statement value
5780 of labeled_blocks or loop_exprs.
5781 * stmt.c (expand_expr_stmt): Redirect to...
5782 (expand_expr_stmt_value): ... this new function. Use new
5783 argument to tell whether to save expression value.
5784 (expand_end_stmt_expr): Reset last_expr_type and
5785 last_expr_value if we don't have either.
5786 * tree-inline.c (declare_return_variable): Mark its use
5787 statement as addressable.
5788 * tree.h: Document new use of TREE_ADDRESSABLE.
5789 (expand_expr_stmt_value): Declare.
5791 2002-01-01 Tom Rix <trix@redhat.com>
5793 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
5794 rs6000_emit_allocate_stack.
5796 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
5798 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
5799 ${srcdir}/ginclude/ to every entry in extra_headers.
5800 * configure: Regenerate.
5801 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
5802 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
5803 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
5804 * ginclude/proto.h: Rename to config/convex/proto.h.
5806 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5808 * attribs.c (handle_vector_size_attribute): Use host_integerp
5809 and tree_int_cst; remove warnings.
5810 * caller-save.c (insert_restore): Add cast to get rid of warning.
5811 (insert_save): Likewise.
5812 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
5813 * regmove.c (find_matches): Add temporary var to kill a warning.
5815 2002-01-01 Douglas B Rupp <rupp@gnat.com>
5817 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
5818 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
5819 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
5820 (vms-dwarf2eh.o): Add Makefile rule.
5821 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
5822 * config/alpha/vms-dwarf2eh.asm: New file.
5824 * gcc.c (delete_if_ordinary): Delete all versions.
5826 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
5828 * config/mmix/mmix.md: Update FIXME to not mention
5830 (MMIX_rJ_REGNUM): New define_constants constant.
5831 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
5832 "*movdicc_real"): Adjust contraints formatting.
5833 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
5834 for branch prediction.
5835 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
5837 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
5838 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
5839 number. Delete related FIXMEs.
5840 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
5841 from number to MMIX_rJ_REGNUM.
5842 (TARGET_MASK_BRANCH_PREDICT): New.
5843 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
5844 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
5845 value. Add -mbranch-predict and -mno-branch-predict.
5846 (TARGET_VERSION): Drop date.
5847 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
5848 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
5849 for finding out global symbols.
5850 (mmix_asm_output_labelref): Revert condition for global symbol.
5851 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
5852 (mmix_print_operand_punct_valid_p): A '+' is valid.
5854 See ChangeLog.6 for earlier changes.