1 2002-02-26 Kazu Hirata <kazu@hxi.com>
3 * config/h8300/h8300-protos.h: Add a prototype for
4 compute_logical_op_length.
5 * config/h8300/h8300.c (compute_logical_op_length): New.
6 * config/h8300/h8300.md (anonymous logical patterns): Use
7 compute_logical_op_length for length.
9 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
11 * dwarf2out.c (modified_type_die): Do not call type_main_variant
15 * attribs.c (handle_vector_size_attribute): Set debug information.
17 2002-02-26 Daniel Egger <degger@fhm.edu>
19 * config/rs6000/rs6000.md: Swap define_insn attributes to
20 fix incorrect generation of merge high instructions instead
23 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
25 * c-typeck.c (really_start_incremental_init): Use
26 bitsize_zero_node for vectors.
28 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
30 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
31 ("*set_vrsave_internal"): Same.
33 2002-02-25 Richard Henderson <rth@redhat.com>
35 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
36 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
38 2002-02-25 Jakub Jelinek <jakub@redhat.com>
41 * config/i386/i386.c (ix86_return_pops_args): Only pop
42 fake structure return argument if it was passed on the stack.
44 2002-02-25 Jason Merrill <jason@redhat.com>
46 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
49 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
51 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
52 link with shared_name only.
53 * doc/invoke.texi (Link Options): Document new behavior.
55 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
57 * c-typeck.c (push_init_level): Handle vectors.
59 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
61 * config/sparc/sparc.c (const64_high_operand): Zero-extend
62 operands of SPARC_SETHI_P.
63 (input_operand): Likewise.
64 (sparc_emit_set_const32): Likewise.
65 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
66 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
67 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
68 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
69 (movdi_insn_sp64_vis): Likewise.
70 (movdi split, movdf split): Use SETHI32.
71 * doc/md.texi: Document SPARC constraints L, M and N.
73 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
75 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
76 ("*set_vrsave_internal"): use mfspr for Darwin.
78 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
79 gen_get_vrsave_internal.
81 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
83 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
85 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
87 * cpplex.c (cpp_interpret_charconst): Get signedness or
88 otherwise of wide character constants correct.
89 * cppexp.c (lex): Get signedness of wide charconsts correct.
91 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
93 * optabs.c (widen_operand): Only call convert_modes for
94 promoted SUBREG if signedness matches.
95 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
97 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
99 * cpplib.c (glue_header_name): Use local buffer to build up
102 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
104 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
106 2002-02-23 Kazu Hirata <kazu@hxi.com>
108 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
109 H8/300[HS] separately.
110 * config/h8300/h8300.md: Remove the early clobber constraint
111 from bit field patterns.
113 2002-02-23 Kazu Hirata <kazu@hxi.com>
115 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
117 (mulhisi3): Likewise.
118 (umulqisi3): Likewise.
119 (umulhisi3): Likewise.
121 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
123 * cppinit.c (output_deps): Correct test for stdout output.
124 (init_dependency_output): Cure warning.
126 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
128 * expr.c (store_expr): When converting expression to promoted
129 equivalent type, allow using SUBREG_REG of TARGET as the target
130 of the expansion of EXP.
131 * loop.c (basic_induction_var, case SUBREG): Always look inside.
132 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
133 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
134 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
135 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
137 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
139 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
140 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
141 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
143 2002-02-23 Jakub Jelinek <jakub@redhat.com>
146 * loop.c (scan_loop): Update reg info if move_movables created new
149 2002-02-23 David Edelsohn <edelsohn@gnu.org>
151 * gcc.c (init_gcc_spec): Revert last change.
153 2002-02-23 David Edelsohn <edelsohn@gnu.org>
155 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
156 gpc_reg_operand constraint.
158 2002-02-23 Alan Modra <amodra@bigpond.net.au>
160 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
161 Simplify comparison of `low'.
162 (add_operand): Fix formatting.
163 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
164 (mask_operand): Disallow mask to wrap in 64-bit mode.
165 (rs6000_stack_info): Remove redundant test setting push_p.
166 (output_toc): Fix formatting.
167 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
168 cc_reg_not_cr0_operand constraint.
169 (booldi3, boolcdi3 splitters): Same.
171 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
173 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
175 2002-02-22 David Edelsohn <edelsohn@gnu.org>
177 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
178 gcc invoked with -shared-libgcc.
180 2002-02-22 Jakub Jelinek <jakub@redhat.com>
183 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
184 decl if any of elements was TREE_USED.
186 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
188 * config/sparc/sol2.h: Don't include sys/mman.h.
189 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
190 (arith_4096_operand): Don't throw high bits away.
191 (const64_operand): Take sign extension of CONST_INTs into account.
192 (const64_high_operand, sparc_emit_set_const32): Likewise.
193 (GEN_HIGHINT64): Likewise.
194 (sparc_emit_set_const64_quick1): Likewise.
195 (const64_is_2insns): Likewise.
196 (print_operand): Use trunc_int_for_mode for sign extension.
197 * config/sparc/sparc.h (SMALL_INT32): Likewise.
198 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
199 chars. Assume CONST_INT is already properly sign-extended.
200 (movdi split): Sign-extend each SImode part.
201 (andsi3 split): Don't mask high bits off, so that result
202 remains properly sign-extend.
203 (iorsi3 split): Likewise.
204 (xorsi3 split): Likewise.
206 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
208 * fold-const.c (fold): Fix typo in comments.
210 2002-02-21 Diego Novillo <dnovillo@redhat.com>
212 * Makefile.in (langhooks.o): Update dependencies.
214 2002-02-21 Diego Novillo <dnovillo@redhat.com>
216 * langhooks.c: Include flags.h.
218 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
220 * testsuite/gcc.dg/attr-alwaysinline.c: New.
222 * c-common.c (c_common_post_options): Set inline trees by
225 * doc/extend.texi (Function Attributes): Document always_inline
227 Update documentation about inlining when not optimizing.
229 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
231 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
232 unless DECL_ALWAYS_INLINE.
234 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
235 unless DECL_ALWAYS_INLINE.
236 (c_disregard_inline_limits): Disregard if always_inline set.
238 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
239 Disregard if always_inline set.
240 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
241 unless DECL_ALWAYS_INLINE.
243 * attribs.c (handle_always_inline_attribute): New.
244 (c_common_attribute_table): Add always_inline.
246 * config/rs6000/altivec.h: Add prototypes for builtins
247 requiring the always_inline attribute.
249 2002-02-21 Eric Christopher <echristo@redhat.com>
251 * expmed.c (store_bit_field): Try to simplify the subreg
252 before generating a new one when when the mode size of
253 value is less than maxmode.
255 2002-02-21 Richard Henderson <rth@redhat.com>
257 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
258 than gen_rtx_PLUS to form the sum.
259 * explow.c (force_reg): Rearrange to not allocate new pseudo
260 when force_operand returns a register.
261 * expr.c (expand_assignment): Allow offset_rtx expansion to
262 return a sum. Do not force addresses into registers.
263 (expand_expr): Likewise.
264 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
265 to canonicalize arithmetic that didn't simpify.
266 (simplify_plus_minus): New argument force; update
267 all callers. Don't split CONST unless we can do something with it,
268 and wouldn't lose the constness of the operands.
270 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
271 that we generated earlier.
273 2002-02-21 Tom Tromey <tromey@redhat.com>
275 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
276 (output_line_info): Use constant `1', with a long explanatory
278 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
280 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
282 * jump.c (redirect_jump): If old label has no UID, don't try to
285 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
287 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
288 If input is constant, do shifts at compile time.
290 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
292 * doc/extend.texi: Fix some more overfull hboxes.
294 2002-02-21 Jakub Jelinek <jakub@redhat.com>
297 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
300 2002-02-21 Jakub Jelinek <jakub@redhat.com>
303 * expr.h (expand_and): Add mode argument.
304 * expmed.c (expand_and): Add mode argument.
305 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
306 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
307 * except.c (expand_builtin_extract_return_addr): Likewise.
308 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
309 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
310 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
311 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
312 * config/c4x/c4x.md: Use GEN_INT (x) instead of
313 gen_rtx (CONST_INT, VOIDmode, x).
315 2002-02-21 Jakub Jelinek <jakub@redhat.com>
318 * stmt.c (warn_if_unused_value): Move side effects test once more.
320 2002-02-20 Torbjorn Granlund <tege@swox.com>
322 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
323 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
325 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
327 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
328 SUBREG or ZERO_EXTEND.
330 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
332 * sh.h (current_function_anonymous_args): Remove.
333 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
334 of current_function_varargs and current_function_stdarg is set.
335 * sh.c (sh_expand_prologue): Check current_function_varargs /
336 current_function_stdarg / TARGET_SH5 instead of
337 current_function_anonymous_args.
339 * sh64.h (TARGET_VERSION): Define.
341 2002-02-20 David Edelsohn <edelsohn@gnu.org>
343 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
344 VRSAVE_REGNO on TARGET_ALTIVEC.
346 2002-02-20 Alan Modra <amodra@bigpond.net.au>
348 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
349 bits of SImode const_int.
350 (includes_rshift_p): Likewise.
351 (print_operand): Call mask_operand and mask64_operand with correct
353 (rs6000_output_function_epilogue): Pad traceback table to word.
354 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
355 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
356 mask64_operand with correct mode.
357 (FUNCTION_ARG_REGNO_P): Correct parentheses.
359 2002-02-20 Jakub Jelinek <jakub@redhat.com>
362 * varasm.c (get_pool_constant_mark): New.
363 * rtl.h (get_pool_constant_mark): Add prototype.
364 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
365 be represented if it has not been output.
367 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
369 * combine.c (do_SUBST): Sanity check substitutions of
370 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
371 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
372 CONST_INT into its operand.
373 (known_cond): Likewise, for ZERO_EXTEND.
374 * simplify-rtx.c (simplify_unary_operation): Fix condition to
375 allow for simplification of wide modes. Reject CONST_INTs in
376 ZERO_EXTEND when their actual mode is not given.
378 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
380 * c-decl.c (pushdecl): If no global declaration is found for an
381 extern declaration in block scope, try a limbo one.
383 2002-02-20 Jakub Jelinek <jakub@redhat.com>
386 * c-common.c (pointer_int_sum): Moved from...
387 * c-typeck.c (pointer_int_sum): ...here.
388 * c-common.h (pointer_int_sum): Add prototype.
390 2002-02-20 Jakub Jelinek <jakub@redhat.com>
393 * c-decl.c (duplicate_decls): Return 0 if issued error about
396 2002-02-20 Roger Sayle <roger@eyesopen.com>
397 Jakub Jelinek <jakub@redhat.com>
400 * tree.c (host_integerp): Ensure that the constant integer is
401 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
402 when pos is zero or non-zero respectively. Clarify comment.
403 * c-format.c (check_format_info_recurse): Fix host_integerp
404 usage; the pos argument should be zero when assigning to a
405 signed HOST_WIDE_INT.
407 2002-02-20 Richard Henderson <rth@redhat.com>
409 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
410 of the operand, rather than assuming TImode.
411 (ix86_expand_binop_builtin): Cope with commutative patterns
412 using nonimmediate_operand for both operands.
413 (ix86_expand_timode_binop_builtin): Likewise.
414 (ix86_expand_store_builtin): Validate operand 1.
415 (ix86_expand_unop1_builtin): Likewise.
417 2002-02-20 Philip Blundell <philb@gnu.org>
420 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
422 2002-02-20 Richard Henderson <rth@redhat.com>
425 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
427 2002-02-20 Tom Tromey <tromey@redhat.com>
429 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
430 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
431 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
432 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
433 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
436 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
438 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
439 for (const_int 0) in X not just INTVAL.
441 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
443 * doc/extend.texi: Avoid or reduce overfull hboxes.
445 2002-02-20 Diego Novillo <dnovillo@redhat.com>
447 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
448 operations if the field does not start at a mode boundary.
450 2001-02-20 Joel Sherrill <joel@OARcorp.com>
452 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
453 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
454 Also done for -Acpu and -Amachine.
456 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
458 * cppinit.c (init_dependency_output): Take deps output file
459 from -o if none given with -MF. Suppress normal output.
460 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
461 * doc/cpp.texi, doc/invoke.texi: Update.
463 2002-02-19 Zack Weinberg <zack@codesourcery.com>
465 * toplev.c (output_quoted_string): Write unprintable
466 characters with octal escapes.
468 2002-02-19 David Edelsohn <edelsohn@gnu.org>
470 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
471 really_call_used[VRSAVE_REGNO] if not Altivec.
473 2002-02-19 Alan Modra <amodra@bigpond.net.au>
475 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
477 (constant_pool_expr_1): Fix formatting.
478 (rs6000_legitimize_reload_address): Likewise.
480 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
482 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
483 now that we have one.
485 2002-02-19 Zack Weinberg <zack@codesourcery.com>
487 * tree.h (struct tree_common): Remove aux. Add unused_0 at
488 end of first block of bitfields (which was only seven bits);
489 rename dummy to unused_1; remove comment which is no longer true.
491 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
493 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
495 2002-02-19 Philip Blundell <pb@nexus.co.uk>
498 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
502 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
503 arm_is_longcall_p rather than inspecting call-type cookie
505 (call_value_insn) [TARGET_THUMB]: Likewise.
507 2002-02-19 Graham Stott <grahams@redhat.com>
509 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
511 2002-02-19 David Edelsohn <edelsohn@gnu.org>
513 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
514 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
515 (FP_SAVE_INLINE): Delete.
517 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
518 * config/rs6000/eabi.asm: Remove ABI save restore routines.
519 * config/rs6000/t-ppccomm: Build crtsavres.o.
520 * config/rs6000/crtsavres.asm: New file.
522 2002-02-19 Philip Blundell <philb@gnu.org>
524 * config/arm/arm.c (use_return_insn): Don't reject interrupt
526 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
527 (output_return_instruction): Allow interrupt functions to return with
528 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
529 (arm_expand_prologue): Subtract 4 before stacking LR in an
532 2002-02-19 Philip Blundell <pb@nexus.co.uk>
534 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
535 decl, not just FUNCTION_DECL.
536 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
537 (arm_assemble_integer): Likewise.
538 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
541 2002-02-19 matthew green <mrg@eterna.com.au>
543 * config.gcc (sparc-*-netbsdelf*): Enable target.
544 (sparc64-*-netbsd*): New target.
545 * config/sparc/netbsd-elf.h: New file.
546 * config/sparc/t-netbsd64: New file.
548 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
550 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
552 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
554 * doc/invoke.texi: explicitly list the style guidelines that
557 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
559 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
561 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
564 * gcc.c (cpp_unique_options): Treat -o as indicating object file
565 only if not -E. If -E, pass -o through to the preprocessor.
567 2002-02-19 Kazu Hirata <kazu@hxi.com>
569 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
570 register number with an appropriate macro.
572 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
574 * doc/rtl.texi (Constants): Close @code tag.
576 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
578 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
579 ("mmx_uavgv4hi3"): Same.
580 ("pmulhrwv4hi3"): Same.
582 * tree-inline.c (walk_tree): Handle vectors.
584 * c-common.c (constant_expression_warning): Handle vectors.
585 (overflow_warning): Same.
587 * sched-deps.c (sched_analyze_2): Handle vectors.
589 * rtlanal.c (rtx_unstable_p): Handle vectors.
590 (rtx_varies_p): Same.
591 (count_occurrences): Same.
592 (regs_set_between_p): Same.
593 (modified_between_p): Same.
594 (modified_in_p): Same.
595 (volatile_insn_p): Same.
596 (volatile_refs_p): Same.
597 (side_effects_p): Same.
599 (inequality_comparisons_p): Same.
600 (replace_regs): Same.
601 (computed_jump_p_1): Same.
603 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
605 (inner_mode_array): New.
606 (copy_rtx): Handle vectors.
607 (copy_most_rtx): Same.
609 (get_mode_alignment): Adjust for vectors.
611 * resource.c (mark_referenced_resources): Handle vectors.
612 (mark_set_resources): Same.
614 * reload1.c (eliminate_regs): Handle vectors.
615 (elimination_effects): Same.
616 (scan_paradoxical_subregs): Same.
618 * reload.c (subst_reg_equivs): Handle vectors.
620 * regrename.c (scan_rtx): Handle vectors.
622 * regclass.c (reg_scan_mark_refs): Handle vectors.
624 * recog.c (find_single_use_1): Handle vectors.
626 * local-alloc.c (equiv_init_varies_p): Handle vectors.
627 (contains_replace_regs): Same.
628 (memref_referenced_p): Same.
630 * integrate.c (copy_rtx_and_substitute): Handle vectors.
631 (subst_constants): Same.
633 * genattrtab.c (attr_copy_rtx): Handle vectors.
634 (encode_units_mask): Same.
635 (clear_struct_flag): Same.
636 (count_sub_rtxs): Same.
638 * gcse.c (want_to_gcse_p): Handle vectors.
639 (oprs_unchanged_p): Same.
641 (oprs_not_set_p): Same.
642 (expr_killed_p): Same.
643 (compute_transp): Same.
644 (store_ops_ok): Same.
646 * function.c (purge_addressof_1): Do not allow paradoxical subregs
648 (fixup_var_refs_1): Same.
649 (instantiate_virtual_regs_1): Same.
651 * fold-const.c (operand_equal_p): Handle vectors.
653 (rtl_expr_nonnegative_p): Same.
655 * flow.c (mark_used_regs): Handle vectors.
657 * df.c (df_uses_record): Handle vectors.
659 * cselib.c (cselib_subst_to_values): Handle vectors.
660 (cselib_mem_conflict_p): Same.
663 * cse.c (canon_reg): Handle vectors.
665 (cse_process_notes): Same.
666 (count_reg_usage): Same.
669 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
671 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
673 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
674 (gen_rtx): Handle CONST_VECTOR.
675 (gen_const_vector_0): New.
676 (copy_rtx_if_shared): CONST_VECTORs can be shared.
677 (reset_used_flags): Same.
679 (initializer_constant_valid_p): Handle VECTOR_CST.
681 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
683 * doc/rtl.texi (Constants): Document const_vector.
684 (CONST0_RTX): Update for vectors.
687 * print-tree.c (print_node): Add case for VECTOR_CST.
689 * tree.h (TREE_VECTOR_CST_ELTS): New.
690 (struct tree_vector): New.
691 (union tree_node): Add vector node.
692 (build_vector): Add prototype.
694 * tree.def (VECTOR_CST): New.
696 * tree.c (build_vector): New.
698 * expmed.c (make_tree): Handle CONST_VECTOR.
700 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
701 (CONST_VECTOR_ELT): New.
702 (CONST_VECTOR_NUNITS): New.
704 * machmode.h (GET_MODE_INNER): New.
705 (DEF_MACHMODE): Accept 8th arg.
707 * machmode.def: Add 8th argument for vector inner mode.
708 Add inner vector modes for vectors.
710 * rtl.def (VEC_CONST): Remove.
713 * expr.c (clear_storage): Allow vectors.
714 (is_zeros_p): Handle VECTOR_CST.
716 * varasm.c (output_constant_pool): Handle vectors.
717 (rtx_const): Add veclo and vechi fields.
718 (kind): Add RTX_VECTOR.
719 (decode_rtx_const): Add case for vector.
721 * config/rs6000/rs6000-protos.h: Add zero_constant.
723 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
724 constants. Force easy vector constants into memory.
725 (easy_vector_constant): New.
726 (emit_easy_vector_constant): New.
727 (rs6000_legitimize_reload_address): Do not generate bad reloads on
730 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
732 ("altivec_lvxl"): Same.
733 (altivec_lvebx): Same.
734 (altivec_lvehx): Same.
735 (altivec_lvewx): Same.
736 ("*movv4si_const0"): New.
737 ("*movv4sf_const0"): New.
738 ("*movv8hi_const0"): New.
739 ("*movv16qi_const0"): New.
741 2002-02-18 Kazu Hirata <kazu@hxi.com>
743 * config/h8300/h8300.c (notice_update_cc): Use
746 2002-02-18 Kazu Hirata <kazu@hxi.com>
748 * config/h8300/h8300.md (divmod patterns): Change the
749 constraints for operands[1] to register_operand.
751 2002-02-18 Kazu Hirata <kazu@hxi.com>
753 * config/h8300/h8300-protos.h: Remove the prototype for
755 * config/h8300/h8300.c (p_operand): Remove.
756 * config/h8300/h8300.md: Replace p_operand with
759 2002-02-18 Philip Blundell <pb@nexus.co.uk>
761 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
763 (output_return_instruction): Allow use of LDR to unstack
764 return addresss even for interrupt handlers or when
765 interworking. If compiling for ARMv5, use interworking-safe
766 return instructions by default. Remove duplicated code and
767 lengthy "strcat" sequences.
769 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
771 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
772 (LINK_EH_SPEC): Define.
773 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
775 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
777 * config/s390/s390.c (s390_emit_prologue): Do not set the
778 frame_related flag for call-clobbered registers.
780 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
782 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
783 (construct_container): Fix handling of SSE operands.
784 (ix86_expand_builtin): Fix handling of 64bit pointers.
785 (mmx_maskmovq_rex): New pattern.
787 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
789 * regrename.c (kill_set_value): Handle subregs properly.
791 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
793 * objc/objc-act.c (handle_impent): Remove leading '*'
794 from objc_class_name.
796 2002-02-17 Richard Henderson <rth@redhat.com>
798 * config/alpha/alpha.c (some_small_symbolic_operand,
799 some_small_symbolic_operand_1, split_small_symbolic_operand,
800 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
801 Handle small SYMBOL_REFs anywhere, not just inside memories.
802 * config/alpha/alpha-protos.h: Update.
803 * config/alpha/alpha.h (PREDICATE_CODES): Update.
804 * config/alpha/alpha.md (small symbolic operand splitter): Update.
806 2002-02-17 Roland McGrath <roland@frob.com>
808 * config.gcc (powerpc-*-gnu-gnualtivec*,
809 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
810 * config/rs6000/gnu.h: New file.
811 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
812 Grok "gnu" in rs6000_abi_name.
813 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
814 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
815 Grok -mcall-gnu analogous to -mcall-linux et al.
816 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
817 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
818 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
820 2002-02-17 Jakub Jelinek <jakub@redhat.com>
823 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
826 2002-02-17 Philipp Thomas <pthomas@suse.de>
828 * config/cris/cris.h: Undefine STARTFILE_SPEC and
829 ENDFILE_SPEC before (re)defining them.
831 2002-02-17 Kazu Hirata <kazu@hxi.com>
833 * config/h8300/h8300.c: Fix formatting.
834 * config/h8300/h8300.h: Likewise.
836 2002-02-17 Philipp Thomas <pthomas@suse.de>
838 * doc/tm.texi: Explain why empty strings should not be
839 marked for translation.
841 2002-02-17 Philipp Thomas <pthomas@suse.de>
843 * final.c (output_operand_lossage): Changed to accept
844 printf style arguments. Change calls where necessary.
845 * output.h (output_operand_lossage): Change declaration
846 accordingly. Update copyright.
847 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
848 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
849 Update copyright date where necessary.
851 * config/i386/i386.c (print_operand): Likewise. Remove use of
854 * config/cris/cris.c (cris_operand_lossage): Likewise.
855 Rename parameter so that exgettext recognizes it as
856 translatable message.
857 (LOSE_AND_RETURN): Rename parameter to msgid.
859 2002-02-17 Kazu Hirata <kazu@hxi.com>
861 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
862 hard coded register number with an appropriate macro.
863 (HARD_REGNO_MODE_OK): Likewise.
864 (ARG_POINTER_REGNUM): Likewise.
865 (STATIC_CHAIN_REGNUM): Likewise.
866 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
867 * config/h8300/h8300.md (define_constants): Define more
870 2002-02-17 Philipp Thomas <pthomas@suse.de>
872 * config/i386/i386.h: Don't mark empty strings for translation.
874 2002-02-16 H.J. Lu <hjl@gnu.org>
876 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
878 2002-02-16 Zack Weinberg <zack@codesourcery.com>
880 * cppinit.c (merge_include_chains): Check for brack being
881 NULL before attempting to merge it with qtail.
883 2002-02-16 Andrew Cagney <ac131313@redhat.com>
885 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
888 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
890 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
892 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
894 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
895 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
896 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
898 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
900 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
901 now only if !TARGET_FIX.
902 (*movsi_nt_vms_fix): New pattern.
904 2002-02-16 Douglas B Rupp <rupp@gnat.com>
906 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
907 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
908 (alpha_sa_mask, alpha_sa_size): Reflect above change.
909 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
910 (alpha_start_function, alpha_expand_epilogue): Likewise.
911 (unicosmk_gen_dsib): Likewise.
913 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
915 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
917 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
919 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
920 check_and_change_labels, s390_final_chunkify): Delete.
921 (s390_split_branches, s390_chunkify_pool): New functions.
922 (s390_function_prologue): Call them.
924 * config/s390/s390.h (S390_REL_MAX): Delete.
925 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
927 * config/s390/s390.md (cjump, icjump, jump): Fix length
928 attribute calculation.
931 2002-02-15 David Edelsohn <edelsohn@gnu.org>
933 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
934 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
936 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
938 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
939 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
940 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
942 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
944 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
946 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
948 * reload.c (find_dummy_reload): Check that an output register
949 is valid for its mode.
951 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
953 * combine.c (known_cond): After replacing the REG of a SUBREG, try
956 * function.c (assign_parms): Demote promoted argument passed by
957 transparent reference.
959 2001-02-14 Joel Sherrill <joel@OARcorp.com>
961 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
962 -Acpu() and -Amachine() to eliminate warnings.
964 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
966 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
968 2002-02-14 Kazu Hirata <kazu@hxi.com>
970 * config/h8300/h8300-protos.h: Update the prototype for
972 * config/h8300/h8300.c (const_costs): Treat SET as a little
973 more expensive operation.
974 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
975 reference to const_costs.
977 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
979 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
981 2002-02-14 Jakub Jelinek <jakub@redhat.com>
984 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
985 use arguments from newtype.
987 2002-02-13 Eric Christopher <echristo@redhat.com>
989 * config/mips/mips.c (override_options): Add check for march/mipsX
990 on the same command line. Fix error message in cpu processing.
991 Remove architecture and ISA checks.
993 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
995 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
997 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
999 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
1001 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
1003 ("*movv8hi_internal1"): Same.
1004 ("*movv16qi_internal1"): Same.
1005 ("*movv4sf_internal1"): Same.
1007 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
1008 not push_reload for altivec modes.
1010 2002-02-13 Joel Sherrill <joel@OARcorp.com>
1012 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
1013 all RTEMS targets including removal of #includes from config/*/rtems*.h
1014 file and adding them to tm_file setting. Added xm_defines=POSIX to
1016 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
1017 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
1018 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
1019 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
1020 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
1021 config/m68k/rtemself.h: Ditto.
1022 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
1023 config/mips/rtems64.h: Ditto.
1024 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
1025 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
1027 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
1028 config/sparc/rtemself.h: Ditto.
1029 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
1030 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
1031 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
1033 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
1034 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
1035 target made more similar to i386-elf.
1036 * config/i386/t-rtems-i386: Added soft float support and multilibs.
1037 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
1038 be similar to config/m68k/t-m68kelf.
1039 * gthr-rtems.h: Encapsulate with extern "C" for C++.
1041 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
1043 * regmove.c (kill_value): Handle subregs.
1045 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
1047 * i386.md (mul patterns): Allow memory operand to be first;
1048 add expanders where needed; fix constraints.
1049 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
1050 Allow memory operand to be the first.
1052 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
1055 2002-02-13 Jakub Jelinek <jakub@redhat.com>
1058 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
1061 2002-02-13 Jakub Jelinek <jakub@redhat.com>
1063 PR optimization/5547:
1064 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
1065 all valid IA-32 address modes involving non-scaled %ebx and
1066 GOT/GOTOFF as displacement.
1068 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
1070 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
1071 after emitting ltorg insns.
1073 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
1074 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
1075 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
1076 *abssf2): Fix "op_type" attribute.
1078 2002-02-13 Douglas B Rupp <rupp@gnat.com>
1080 * mkconfig.sh: Avoid using a subshell redirect.
1081 ($output.T): Change to $(output)T.
1082 (ENABLE_NLS): Remove unneeded undef.
1084 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
1085 * config/alpha/x-vms (libsubdir): Define.
1087 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
1088 register frame procedures. Optimize retrieving context.
1090 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
1091 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
1092 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
1094 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1096 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
1097 Make same change as for find_base_value.
1099 2002-02-13 Kazu Hirata <kazu@hxi.com>
1101 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
1102 of QImode and SImode.
1104 2002-02-13 Kazu Hirata <kazu@hxi.com>
1106 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
1107 length computation of movsi.
1108 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
1110 2002-02-13 Kazu Hirata <kazu@hxi.com>
1112 * config/h8300/h8300.md (subqi3): Tighten the predicate for
1113 operands[2] to register_operand.
1115 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
1117 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
1119 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
1121 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
1122 for altivec_lvx* and altivec_stvx*.
1123 ("*movv4si_internal"): Add constraint for loading from GPRs.
1124 ("*movv8hi_internal1"): Same.
1125 ("*movv16qi_internal1"): Same.
1126 ("*movv4sf_internal1"): Same.
1128 * config/rs6000/rs6000.c (altivec_register_operand): New.
1130 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
1131 altivec_register_operand.
1133 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
1135 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
1138 2002-02-13 Stan Shebs <shebs@apple.com>
1140 * c-typeck.c (digest_init): Handle vectors.
1141 (really_start_incremental_init): Same.
1142 (pop_init_level): Same.
1143 (process_init_element): Same.
1145 * varasm.c (output_constant): Same.
1147 * expr.c (clear_storage): Same.
1148 (store_constructor): Same.
1150 2002-02-12 Eric Christopher <echristo@redhat.com>
1152 * explow.c (hard_function_value): Add comment explaining
1153 signed/unsigned comparison.
1155 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1157 * jump.c (never_reached_warning): Add finish argument.
1158 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
1159 real insn after end.
1160 * rtl.h (never_reached_warning): Adjust prototype.
1161 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
1162 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
1163 never_reached_warning.
1165 2002-02-12 Graham Stott <grahams@redhat.com>
1167 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
1169 2002-02-12 Kazu Hirata <kazu@hxi.com>
1171 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
1172 logical shifts on H8/300.
1173 (shift_alg_si): Improve several shifts on H8/300.
1174 (get_shift_alg): Likewise.
1176 2002-02-12 Graham Stott <grahams@redhat.com>
1178 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
1180 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1182 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
1183 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
1185 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
1187 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
1188 non-CONST_INT through default_assemble_integer.
1189 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
1190 <case 8>: Abort for CONST_DOUBLE.
1192 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1194 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
1196 * config/pa/pa-linux.h (LIB_SPEC): Delete.
1197 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
1199 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
1201 * config/stormy16/stormy16.md (zero_extendqihi2): New.
1203 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
1205 * regrename.c (regrename_optimize): Don't accept a
1206 part-clobbered register if the replaced register is not part
1209 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
1210 take padding into account when computing the argument value.
1212 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
1214 * combine.c (try_combine): Apply substitutions in
1215 CALL_INSN_FUNCTION_USAGE too.
1217 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
1219 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
1220 __builtin_altivec_abs*.
1223 * config/rs6000/rs6000.h (rs6000_builtins): Add
1224 ALTIVEC_BUILTIN_ABS*.
1226 * config/rs6000/altivec.h: Use const char for builtins expecting
1228 (vec_abs): New versions for C and C++.
1231 2002-02-10 Kazu Hirata <kazu@hxi.com>
1233 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
1236 2002-02-10 Kazu Hirata <kazu@hxi.com>
1238 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
1239 constant definition from h8300.md.
1240 (FRAME_POINTER_REGNUM): Likewise.
1241 * config/h8300/h8300.md (define_constants): Add FP_REG.
1243 2002-02-10 Kazu Hirata <kazu@hxi.com>
1245 * config/h8300/h8300.c (print_operand): Remove redundant code.
1247 2002-02-10 Kazu Hirata <kazu@hxi.com>
1249 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
1250 * config/h8300/h8300.c (byte_reg): Make it static.
1252 2002-02-10 Richard Henderson <rth@redhat.com>
1255 * c-typeck.c (incomplete_type_error): Handle flexible array members.
1257 2002-02-10 Richard Henderson <rth@redhat.com>
1260 * tree.c (append_random_chars): Don't abort if main_input_filename
1263 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
1265 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
1267 2002-02-10 Kazu Hirata <kazu@hxi.com>
1269 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
1270 (pushhi1): Likewise.
1272 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
1274 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
1275 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
1277 2002-02-09 David O'Brien <obrien@FreeBSD.org>
1279 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
1281 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
1283 2002-02-09 Kazu Hirata <kazu@hxi.com>
1285 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
1286 a half of an SImode register on H8/300.
1288 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
1290 * i386.md (movdi_2): Add missing '!'.
1292 2002-02-09 Kazu Hirata <kazu@hxi.com>
1294 * config/h8300/h8300.h: Fix formatting. Remove commented-out
1297 2002-02-09 Kazu Hirata <kazu@hxi.com>
1299 * config/h8300/h8300.md (length): Correct the distance valid
1300 for the short branch.
1302 2002-02-09 Kazu Hirata <kazu@hxi.com>
1304 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
1306 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
1308 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
1309 registers in SImode.
1310 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
1313 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
1316 Contribute sh64-elf.
1317 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
1318 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
1319 (sh_cannot_modify_jumps_p): New function.
1320 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
1321 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
1322 (sh_ms_bitfield_layout_p): New function.
1323 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
1324 Zack Weinberg <zack@codesourcery.com>
1325 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
1326 expand_simple_binop instead of expand_binop.
1327 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
1328 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
1329 use of .quad and .uaquad.
1330 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
1331 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
1332 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1333 * config/sh/sh.md (movdi_const, movdi_const_32bit,
1334 movdi_const_16bit): Make sure all CONSTs have modes.
1335 (sym2PIC): Ditto, but by adjusting all callers.
1336 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
1337 if the prologue calls the SHmedia argument decoder or register
1339 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1340 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
1341 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
1342 (sh_expand_epilogue): Don't emit USE of return target register.
1343 (prepare_move_operands): Legitimize DImode PIC addresses.
1344 (sh_media_register_for_return): Skip tr0, used to initialize the
1346 (sh_expand_prologue): Remove explicit USE of return register.
1347 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
1348 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
1349 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
1350 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
1351 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
1353 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
1354 (MOVI_SHORI_BASE_OPERAND_P): New.
1355 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
1356 (EXTRA_CONSTRAINT_T): Define in terms of them.
1357 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
1358 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
1359 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
1360 alternatives supporting TARGET_REGS.
1361 (UNSPEC_GOTPLT): New constant.
1362 (movdi split): Move incrementing of LABEL_NUSES...
1363 (movdi_const, movdi_const_32bit): Here. Use
1364 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
1365 (movdi_const_16bit): New.
1366 (call, call_value) [flag_pic]: Use GOTPLT.
1367 (call_pop, call_value_pop): New expands.
1368 (call_pop_compact, call_pop_rettramp): New insns.
1369 (call_value_pop_compact, call_value_pop_rettramp): New insns.
1370 (sibcall) [flag_pic]: Use GOT.
1371 (builtint_setjmp_receiver): Remove bogus, unused expand.
1372 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
1373 (*pt, *ptb, ptrel): New insns.
1374 (sym2GOT): Handle DImode GOT.
1375 (sym2GOTPLT, symGOTPLT2reg): New expands.
1376 (sym2PIC): New expand.
1377 (shcompact_return_tramp): Use GOTPLT to return trampoline.
1378 (shcompact_return_tramp_i): Use return register explicitly.
1379 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
1380 disable flag_reorder_blocks.
1381 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
1382 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
1383 clobbers, for clarity.
1384 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
1385 restoring of r0 in macl as MAYBE_DEAD.
1386 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1387 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
1388 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
1389 alter_subreg all over.
1390 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
1391 reload, instead of emitting instructions that would require
1393 (casesi_load_media): Add missing modes.
1394 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
1395 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
1396 as used if the argument decoder is called.
1397 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
1398 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
1399 Pmode, then extend it to DImode if necessary.
1400 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
1401 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
1402 constants in FPU-enabled SHmedia, let them be loaded from memory.
1403 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
1404 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
1405 Adjust whitespace in assembly output templates.
1406 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
1407 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
1408 mode of if_then_else.
1409 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
1410 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
1412 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
1413 Joern Rennecke <amylaar@redhat.com>
1414 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
1415 (SUBTARGET_CPP_PTR_SPEC): New.
1416 (SUBTARGET_CPP_SPEC): Remove.
1417 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
1418 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
1419 Fix typo in previous checkin.
1420 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
1421 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
1422 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
1423 Alexandre Oliva <aoliva@redhat.com>
1424 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
1425 what single FP register can hold for SHmedia target.
1426 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
1427 Alexandre Oliva <aoliva@redhat.com>
1428 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
1429 Do not split into SUBREG.
1430 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
1431 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
1432 and added new functions as specified in SH5 ABI r9.
1433 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
1434 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
1436 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
1437 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
1438 gen_consttable_4 and gen_consttable_8. Emit multiple labels
1439 and consttable_window_ends.
1440 2001-06-03 Graham Stott <grahams@redhat,com>
1441 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
1442 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
1443 * config/sh/sh.c (print_operand): Handle floating-point pair,
1444 vector and matrix registers.
1445 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
1446 vector modes into account.
1447 * config/sh/sh.md (movv2sf): Split move between registers into
1449 (movv4sf, movv16sf): Introduce insns that get split only after
1451 * config/sh/shmedia.h: Fix Copyright dates.
1452 * config/sh/ushmedia.h: Likewise. Move loop counter
1453 declarations into conditionals that uses them.
1454 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
1456 * config/sh/sshmedia.h: Fix Copyright dates.
1457 (sh_media_PUTCFG): Fix constraints.
1458 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
1459 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
1460 ptrmemfunc_vbit_in_delta for SH5.
1461 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
1462 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
1463 * invoke.texi: Likewise.
1464 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
1465 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
1466 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
1467 GCC_pop_shmedia_regs_nofpu): New global symbols.
1468 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
1469 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
1470 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
1471 compact function with nonlocal labels.
1472 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
1473 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
1474 (initial_elimination_offset): Account for their stack space.
1475 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
1476 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
1477 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
1478 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
1479 least one of the operands to be a register.
1480 (movv2sf): Likewise. Renamed to movv2sf_i.
1481 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
1482 prepare_move_operands() before emitting SHmedia insns.
1483 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
1484 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
1485 Don't save nor initialize r12. Don't mis-align the stack.
1486 Pad the code with a nop.
1487 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
1489 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
1490 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
1491 [__SHMEDIA__]: Implement.
1492 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
1493 * config/sh/sh.md: Set latency of `pt' closer to reality.
1494 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
1495 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
1496 Set move, load and store type attributes.
1497 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
1498 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
1500 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
1501 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
1502 * config/sh/sh.c (sh_media_register_for_return): New function.
1503 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
1504 branch-target register.
1505 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
1506 * config/sh/sh.md (return_media_i): Use any call-clobbered
1507 branch-target register.
1508 (return_media): If r18 wasn't copied in the prologue, copy it
1510 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
1511 Clear class FP0_REGS.
1512 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
1514 2001-03-08 DJ Delorie <dj@redhat.com>
1515 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
1516 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
1517 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
1518 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
1519 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
1520 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
1521 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
1522 return value correctly for call_cookie.
1523 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
1524 * config/sh/crt1.asm (start): Modified so as to call
1525 ___setup_argv_and_call_main.
1526 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
1527 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
1529 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
1530 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
1531 (STRIP_NAME_ENCODING): Use it.
1532 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
1533 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
1534 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
1535 prepare_scc_operands().
1536 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
1537 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
1538 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
1539 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
1540 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
1541 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
1542 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
1543 used in shcompact_incoming_args.
1544 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
1546 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
1548 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
1550 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
1551 Simplify. Adjust. Add sanity check.
1552 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
1554 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
1556 (udivsi3, divsi3): Use them.
1557 (force_mode_for_call): New insn.
1558 (call, call_value, sibcall_value): Emit it before SHcompact
1560 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
1561 * config/sh/sh.md (call, call_value, sibcall): Make sure the
1562 call cookie is non-NULL before taking its value.
1563 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
1564 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
1565 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
1566 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
1568 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
1569 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
1570 temporary for stack adjusts. Use MACL and MACH to pass
1571 arguments to shcompact_incoming_args.
1572 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
1574 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
1575 (nested_trampoline): Load static chain address into r1.
1576 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
1577 2001-01-07 Alexandre Oliva <aoliva@redhat.com
1578 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
1579 fp_arith_reg_operand().
1580 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
1581 * config/sh/sh.md (casesi): Sign-extend the first two operands,
1582 and use signed compares for them.
1583 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
1584 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
1585 ones properly aligned.
1586 (find_barrier): Account for extra alignment needed for 8-byte wide
1588 (machine_dependent_reorg): Require a label for the second 4-byte
1589 constant after an 8-byte one.
1590 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
1592 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
1593 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
1594 last_float when switching float modes.
1595 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
1596 auto-increment for general-purpose registers.
1597 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
1599 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
1601 * config/sh/sh.c (sh_builtin_saveregs): Support using all
1602 registers for varargs.
1603 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
1604 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
1605 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
1606 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
1607 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
1608 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
1609 call_cookie accordingly.
1610 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
1611 (SHCOMPACT_BYREF): Likewise.
1612 (SHCOMPACT_FORCE_ON_STACK): New macro.
1613 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
1614 (sh_builtin_saveregs): Likewise.
1615 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
1616 shcompact_incoming_args): Use new shift values. Support
1617 sequences of consecutive and non-consecutive pushes/pops.
1618 * config/sh/sh.md (return): Don't explicitly use PR_REG.
1619 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
1620 * config/sh/sh.h (TEXT_SECTION): Define.
1621 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
1622 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
1623 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
1624 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
1625 return values on FPU-enabled SHmedia.
1626 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
1627 FPU-enabled SHmedia.
1628 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
1629 value is returned in a non-FP reg and is not returned by
1631 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
1633 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
1634 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
1635 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
1636 quad-aligned to be passed by callee-copy reference.
1637 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
1638 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
1639 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
1640 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
1641 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
1642 copying low-numbered FP regs to r7 and r8.
1643 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
1644 FP regs to general-purpose regs only if the copy was passed on the
1646 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
1647 copying FP reg to r9.
1648 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
1649 copy FP regs to general-purpose regs only in outgoing calls.
1650 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
1651 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
1653 * config/sh/sh.h (struct sh_args): Document all fields.
1654 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
1655 passed partially on the stack should not consider making
1657 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
1658 stack_regs only for incoming calls. When passing FP args,
1659 make sure there are FP regs available before modifying
1661 (SHCOMPACT_BYREF): Pass double args in general-purpose
1662 registers by reference.
1663 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
1664 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
1665 attempt to generate sibcalls if the caller got any arguments
1667 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
1668 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
1669 to 8-byte boundaries.
1670 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
1671 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
1672 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
1673 stored in the stack.
1674 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
1675 for the offsets to have the ISA bit set.
1676 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
1677 invocation. Use beq instead of bgt to mark end of sequence of
1679 (shcompact_incoming_args): Fix store of r2. Use beq instead of
1680 bgt to mark end of sequence of stores.
1681 * config/sh/sh.c (arith_operand): Don't check whether
1682 CONST_OK_FOR_J for now.
1683 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
1684 instead of long for conversion.
1685 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
1686 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
1687 before passing it to fprintf.
1688 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
1689 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
1690 Call set_fpscr before reading/writing SR.
1691 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
1693 * config/sh/lib1funcs.asm: Add `.align 2' directives before
1695 (FMOVD_WORKS): Define on SH5 with FPU.
1696 (set_fpscr): Define on SH5. Remove separate _fpscr_values
1698 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
1700 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
1701 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
1703 (ia_main_table): Ditto.
1704 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
1705 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
1706 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
1707 the definitions from sh.h.
1708 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
1710 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
1711 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
1712 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
1713 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
1714 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
1715 Increment LABEL_NUSES.
1717 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
1719 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
1721 * config/sh/elf.h (SIZE_TYPE): Likewise.
1722 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
1723 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
1724 shcompact_incoming_args): Load switch table addresses using
1726 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
1727 (NO_BUILTIN_SIZE_TYPE): Define.
1728 (SIZE_TYPE): Don't define.
1729 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
1730 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
1731 definition of __SH5__=32 for -m5-compact-nofpu.
1732 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
1734 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
1735 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
1736 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
1737 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
1738 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
1739 (INSN_LENGTH_ALIGNMENT): Likewise.
1740 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1741 * config/sh/sh.md (call, call_value, sibcall): Simplify
1742 copying of non-branch-target register.
1743 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1744 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
1745 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
1746 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1747 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
1748 floating-point values as structs.
1749 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
1750 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
1751 general-purpose register.
1752 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
1753 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
1754 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
1755 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
1756 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
1757 (ENCODE_SECTION_INFO): Enclose variables and constants in
1759 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
1760 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
1761 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
1762 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
1763 only for LABEL_REFs. For SYMBOL_REFs, prepend
1764 SH_DATALABEL_ENCODING to the symbol name.
1765 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
1767 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
1768 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
1770 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
1771 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
1772 (DATALABEL_REF_P): Don't require CONST.
1773 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
1775 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
1776 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
1778 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
1779 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
1780 Use shallow_copy_rtx and PUT_MODE to change the mode of
1781 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
1782 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
1783 on SHmedia using GENERAL_REGs.
1784 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
1785 bltu_media_i): Fix reversion of conditions.
1786 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
1787 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
1788 * config/sh/sh.c (output_far_jump): Save r13 in macl.
1789 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
1790 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
1791 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
1792 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
1793 (GCC_nested_trampoline): Likewise.
1794 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
1795 * config/sh/sh.c (gen_datalabel_ref): Define.
1796 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
1797 (INITIALIZE_TRAMPOLINE): Likewise.
1798 (TRAMPOLINE_ADJUST_ADDRESS): Define.
1799 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
1800 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
1801 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
1802 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
1803 (ic_invalidate): Adjust for SH5.
1804 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
1805 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
1807 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
1808 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
1809 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
1810 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
1811 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
1812 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
1813 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
1814 * config/sh/sh.c (target_reg_operand): Match only target-branch
1815 registers and pseudos that aren't virtual registers.
1816 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
1817 Copy operands that don't match target_reg_operand to pseudos.
1818 (call_media, call_value_media, sibcall_media): Use
1819 target_reg_operand instead of target_operand.
1820 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
1821 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
1822 * config/sh/sh.c (target_reg_operand): Match hardware registers
1823 other than branch-target registers.
1824 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
1825 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
1826 (fpscr_values) [SH5 == 32]: Define.
1827 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
1828 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
1829 Handle function addresses coming in SUBREGs.
1830 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
1831 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
1832 shcompact_return_trampoline): Use datalabel where appropriate.
1833 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
1834 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
1835 general-purpose register to copy one branch-target register to
1837 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
1838 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
1839 SYMBOL_REFs with VOIDmode.
1840 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
1841 bltu_media_i): New insns.
1842 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
1843 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
1844 (INIT_CUMULATIVE_ARGS): Likewise.
1845 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
1846 * machmode.def (V16SFmode): New mode.
1847 * c-common.c (type_for_mode): Support V2SF and V16SF.
1848 * tree.c (build_common_tree_nodes_2): Likewise.
1849 * tree.h (tree_index): Likewise.
1850 * calls.c (emit_call_1): Take args_so_far. Adjust all
1851 callers. Introduce CALL_POPS_ARGS.
1852 * tm.texi (CALL_POPS_ARGS): Document.
1853 * config/sh/crt1.asm: Implement in SHmedia mode.
1854 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
1855 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
1856 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
1857 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
1858 Implement divsi and udivsi in SHmedia mode. Introduce
1859 SHcompact trampolines.
1860 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
1862 (regno_reg_class): Rewrite.
1863 (fp_reg_names): Remove.
1864 (sh_register_names, sh_additional_register_names): New.
1865 (print_operand): Added `u'. Support SUBREGs in addresses.
1866 Add parentheses around shifted CONSTs.
1867 (output_file_start): Output .mode and .abi directives.
1868 (shiftcosts, addsubcosts, multcosts): Adjust.
1869 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
1870 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
1871 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
1872 bytes, not registers. Take into account the need for the
1873 SHcompact incoming args trampoline. Adjust all callers.
1874 (sh_expand_prologue): Take stack_regs into account. Call
1875 incoming args trampoline. Keep stack aligned as per SH5 ABI.
1876 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
1877 stack aligned as per SH5 ABI.
1878 (sh_builtin_saveregs): Support SH5 ABI.
1879 (sh_build_va_list, sh_va_start): Likewise.
1880 (initial_elimination_offset): Take alignment into account.
1881 Compute location of PR according to the SH5 stack frame.
1882 (arith_reg_operand): Reject branch-target registers.
1883 (shmedia_6bit_operand): New.
1884 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
1885 (target_reg_operand): Match DImode only. Accept SUBREGs.
1886 (target_operand): New.
1887 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
1888 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
1889 SIBCALL_REGS for SHmedia.
1890 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
1891 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
1892 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
1893 (TARGET_SWITCHES): New SH5 flags.
1894 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
1895 VALID_REGISTER_P to disable unsupported registers.
1896 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
1897 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
1898 (FUNCTION_ARG_PADDING): Define.
1899 (FASTEST_ALIGNMENT): Adjust.
1900 (SH_REGISTER_NAMES_INITIALIZER): New.
1901 (sh_register_names): Declare.
1902 (DEBUG_REGISTER_NAMES): Define.
1903 (REGISTER_NAMES): Define based on sh_register_names.
1904 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
1905 (sh_additional_register_names): Declare.
1906 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
1907 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
1908 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
1909 (REGISTER_NATURAL_MODE): Define.
1910 (FIRST_PSEUDO_REGISTER): Adjust.
1911 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
1912 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
1913 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
1914 (VECTOR_MODE_SUPPORTED_P): Define.
1915 (REG_CLASS_CONTENTS): Adjust.
1916 (SMALL_REGISTER_CLASSES): Adjust.
1917 (REG_ALLOC_ORDER): Adjust.
1918 (INDEX_REG_CLASS): Adjust.
1919 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
1920 (CONST_OK_FOR_LETTER_P): Adjust.
1921 (PREFERRED_RELOAD_CLASS): Adjust.
1922 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
1923 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
1924 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
1925 (FIRST_FP_PARM_REG): Adjust.
1926 (CALL_POPS_ARGS): Define.
1927 (FUNCTION_ARG_REGNO_P): Adjust.
1928 (struct sh_args): New fields.
1929 (GET_SH_ARG_CLASS): Adjust.
1930 (INIT_CUMULATIVE_ARGS): Adjust.
1931 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
1932 (FUNCTION_ARG_ADVANCE): Adjust.
1933 (FUNCTION_ARG): Adjust.
1934 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
1935 (FUNCTION_ARG_CALLEE_COPIES): Define.
1936 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
1937 (STRICT_ARGUMENT_NAMING): Define.
1938 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
1939 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
1940 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
1941 (SETUP_INCOMING_VARARGS): Adjust.
1942 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
1943 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
1944 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
1945 (SUBREG_OK_FOR_INDEX_P): Adjust.
1946 (EXTRA_CONSTRAINT_S): Update.
1947 (EXTRA_CONSTRAINT_T): New.
1948 (EXTRA_CONSTRAINT): Adjust.
1949 (GO_IF_LEGITIMATE_INDEX): Adjust.
1950 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
1951 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
1953 (MAX_MOVE_MAX): Define.
1955 (CONST_COSTS): Adjust.
1956 (REGISTER_MOVE_COST): Adjust.
1957 (BRANCH_COST): Adjust.
1958 (TEXT_SECTION_ASM_OP): Adjust.
1959 (DBX_REGISTER_NUMBER): Adjust.
1960 (ASM_OUTPUT_DOUBLE_INT): New.
1961 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
1962 (PREDICATE_CODES): Adjust.
1963 (PROMOTE_MODE): Adjust.
1964 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
1965 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
1966 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
1967 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
1968 (DR0_REG, DR2_REG, DR4_REG): Renumber.
1969 (TR0_REG, TR1_REG, TR2_REG): New.
1970 (XD0_REG): Renumber.
1971 (UNSPEC_COMPACT_ARGS): New.
1972 (type): Added pt and ptabs.
1973 (length): Default to 4 on SHmedia. Default pt length to 12
1974 and 20 on SHmedia32 and SHmedia64, respectively.
1975 (pt): New function unit.
1976 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
1977 Add whitespace between operands of SHmedia instructions.
1979 (adddi3_media, addsi3_media): Adjust constraints.
1980 (subsi3) [SHmedia]: Force operand 1 into a register.
1981 (udivsi3_i1_media, udivsi3_i4_media): New.
1982 (udivsi3): Support SHmedia.
1983 (divsi3_i1_media, divsi3_i4_media): New.
1984 (divsi3): Support SHmedia.
1985 (anddi3, iordi3, xordi3): Adjust constraints.
1986 (zero_extendhidi2, zero_extendqidi2): New.
1987 (extendsidi2, extendhidi2, extendqidi2): New.
1988 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
1989 (pop_e, pop_fpul, pop_4): Likewise.
1990 (movsi_media): Support FP and BT registers.
1991 (movsi_media_nofpu): New. Adjust splits to DImode.
1992 (lduw, ldub): Renamed to zero_extend* above.
1993 (movqi_media): Fix typo.
1994 (movdi_media): Support FP and BT registers.
1995 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
1996 (movdi_const_32bit): New.
1997 (shori_media): Require immediate operand. Use `u' for output.
1998 (movdf_media, movsf_media): Simplified.
1999 (movdf_media_nofpu, movsf_media_nofpu): New.
2000 (movdf, movsf): Adjust
2001 (movv2sf, movv2sf, movv16sf): New.
2002 (beq_media, beq_media_i): Adjust constraints. Don't use
2003 scratch BT register.
2004 (bne_media, bne_media_i): Likewise.
2005 (bgt_media, bgt_media_i): Likewise.
2006 (bge_media, bge_media_i): Likewise.
2007 (bgtu_media, bgtu_media_i): Likewise.
2008 (bgeu_media, bgeu_media_i): Likewise.
2009 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
2010 bunordered): Emit jump insn. Force operands to registers when
2012 (jump_media, jump): Simplify.
2013 (call_compact, call_compact_rettramp): New.
2014 (call_value_compact, call_value_compact_rettramp): New.
2015 (call_media, call_value_media): Simplify.
2016 (sibcall_compact, sibcall_media): New.
2017 (call, call_value): Adjust for SHmedia and SHcompact.
2018 (sibcall, sibcall_value, untyped_call): Likewise.
2019 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
2020 (indirect_jump): Adjust for SHmedia.
2021 (casesi_jump_media): New.
2022 (nop): Re-enable for SHmedia.
2023 (call_site): Restrict to SH1.
2024 (casesi): Adjust for SHmedia.
2025 (casesi_shift_media, casesi_load_media): New.
2026 (return): Explicitly use PR register. Call return trampoline
2028 (return_i): Explicitly use PR register.
2029 (shcompact_return_tramp, shcompact_return_tramp_i): New.
2030 (return_media): Adjust.
2031 (shcompact_incoming_args): New.
2033 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
2034 (movstrsi): Disable on SH5.
2035 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
2036 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
2037 (subsf3, subsf3_media): Likewise.
2038 (mulsf3, mulsf3_media, mac_media): Likewise.
2039 (divsf3, divsf3_media): Likewise.
2040 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
2041 (floatsisf2, fux_truncsfsi2): Likewise.
2042 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
2044 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
2045 (cmpunsf_media, cmpsf): Likewise.
2046 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
2047 (abssf2, abssf2_media): Likewise.
2048 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
2049 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
2050 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
2051 (floatsidf2, fix_truncdfsi2): Likewise.
2052 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
2054 (cmpeqdf_media, cmpgtdf_media): Likewise.
2055 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
2056 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
2057 (absdf2, absdf2_media): Likewise.
2058 (extendsfdf2, extendsfdf2_media): Likewise.
2059 (truncsfdf2, truncsfdf2_media): Likewise.
2060 * config/sh/sh64.h: New file.
2061 * config/sh/t-sh64: New file.
2062 * config/sh/shmedia.h: New file.
2063 * config/sh/ushmedia.h: New file.
2064 * config/sh/sshmedia.h: New file.
2065 * configure.in: Added sh64-*-elf.
2066 * configure: Rebuilt.
2067 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
2068 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
2069 (reg_class_from_letter): Use `b' for TARGET_REGS.
2070 (print_operand): Support `%M', `%m', `AND' and
2071 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
2072 (andcosts): Adjust for SHmedia.
2073 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
2075 (target_reg_operand): New function.
2076 * config/sh/sh-protos.h (target_reg_operand): Declare.
2077 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
2078 FP registers on SH5.
2079 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
2081 (TARGET_REGISTER_P): New macro.
2082 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
2083 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
2084 (EXTRA_CONSTRAINT_S): New macro.
2085 (EXTRA_CONSTRAINT): Adjust.
2086 (FLOAT_TYPE_SIZE): Define to 32.
2087 (Pmode): DImode on SHmedia.
2088 (CONST_COSTS): Adjust for SHmedia literals.
2089 (PREDICATE_CODES): Added target_reg_operand.
2090 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
2091 * config/sh/sh.md: Remove all attrs from SHmedia insns.
2092 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
2093 (cmpdi): Accept SHmedia.
2094 (movdicc_false, movdicc_true): New insns.
2095 (movdicc): New expand.
2096 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
2098 (addsi3_media): Match `S' constraint.
2099 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
2100 (negdi2): Expand for SHmedia.
2101 (one_cmpldi2): New expand.
2102 (zero_extendsidi2): Change from expand to insn.
2103 (extendsidi2): Add constraints.
2104 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
2105 LD/ST address. Fix SI immediate loading split.
2106 (movhi_media, movqi_media, lduw, ldub): New insns.
2107 (movhi, movqi): Accept SHmedia.
2108 (shori_media, movdi_media): Relax input constraints. Split
2110 (movdf_media, movsf_media): New insn. New split to movdi.
2111 (movdf, movsf): Match on SHmedia.
2112 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
2113 bgeu_media): New insns and splits. New insns with `_i' suffix.
2114 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
2115 (bunordered): New expand.
2116 (jump_compact): Renamed from `jump'.
2117 (jump_media): New insn.
2119 (call_media, call_value_media): New insns.
2120 (call, call_value): Adjust.
2121 (indirect_jump_compact): Renamed from `indirect_jump'.
2122 (indirect_jump_media): New insn.
2123 (indirect_jump): New expand.
2124 (untyped_call, return): Accept SHmedia.
2125 (return_media): New insn.
2126 (prologue, epilogue, blockage): Accept SHmedia.
2127 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
2128 (sunordered): New expand.
2129 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
2130 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
2131 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
2132 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
2133 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
2134 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
2135 abssf2_media): New insns.
2136 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
2137 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
2138 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
2139 floatdidf2, floatsidf2_media, fix_truncdfdi2,
2140 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
2141 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
2142 absdf2_media): New insns.
2143 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
2144 (extendsfdf2_media, truncdfsf2_media): New insns.
2145 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2146 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
2147 * config/sh/sh.h (CONST_OK_FOR_J): Document.
2148 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
2149 * config/sh/sh.md (adddi3): New expand.
2150 (adddi3_media, adddi3z_media): New insns.
2151 (adddi3_compact): Renamed from adddi3.
2152 (addsi3_media): Use add.l r63 to add constant zero.
2153 (subdi3): New expand.
2154 (subdi3_media): New insn.
2155 (subdi3_compact): Renamed from subdi3.
2156 (mulsidi3): New expand.
2157 (mulsidi3_media): New insn.
2158 (mulsidi3_compact): Renamed from mulsidi3.
2159 (umulsidi3): New expand.
2160 (umulsidi3_media): New insn.
2161 (umulsidi3_compact): Renamed from umulsidi3.
2162 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
2163 (ashlsi3, ashrsi3, lshrsi3): Use them.
2164 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
2165 (ashldi3, ashrdi3, lshrdi3): Use them.
2166 (zero_extendsidi2): New expand.
2167 (extendsidi2): New insn.
2168 (movsi_media): New insn. Split to movdi to load constants.
2169 (movsi): Enable for shmedia.
2170 (movdi_media): New insn. Use shori_media to load wide constants.
2171 (short_media): New insn.
2172 (movdi): Enable for shmedia.
2173 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
2174 * config/sh/sh.h (CPP_SPEC): Added `m5'.
2175 (SUBTARGET_CPP_SPEC): Added `!m5'.
2176 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
2177 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
2178 to all other SH variants.
2179 (TARGET_DEFAULT): Set to SH1_BIT.
2180 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
2181 (BITS_PER_WORD): Raise to 64 on shmedia.
2182 (MAX_BITS_PER_WORD): Change to 64.
2183 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
2184 (INT_TYPE_SIZE): Keep as 32.
2185 (UNITS_PER_WORD): Raise to 8 on shmedia.
2186 (MIN_UNITS_PER_WORD): Keep as 4.
2187 (POINTER_SIZE): Raise to 64 on shmedia.
2188 (CONST_OK_FOR_J): New macro.
2189 (CONST_OK_FOR_LETTER_P): Use it.
2190 (processor_type): Add PROCESSOR_SH5.
2191 * config/sh/sh.md: Conditionalize all expands, insns and
2192 splits to TARGET_SH1.
2194 (addsi3_compact): Renamed from...
2195 (addsi3): Now an expand.
2196 (addsi3_media, subsi3_media): New insns.
2197 (subsi3): Don't negate constants with SHmedia.
2199 * hooks.c: New file.
2200 * hooks.h: New file.
2201 * Makefile.in (HOOKS_H): New.
2202 (TARGET_DEF_H): Added $(HOOKS_H).
2203 (OBJS): Added hooks.o.
2204 (cfgcleanup.o, bb-reorder.o): Added target.h.
2205 (hooks.o): Added dependencies.
2206 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
2207 (TARGET_INITIALIZER): this.
2208 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
2209 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
2210 * bb-reorder.c: Include target.h.
2211 (reorder_basic_blocks): Skip if cannot modify jumps.
2212 * cfgcleanup.c: Include target.h.
2213 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
2215 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2217 * config/mips/mips.md (casesi_internal, casesi_internal_di):
2218 Protect jump delay slot instructions with .set noreorder and
2221 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2223 * config/mips/mips.md (casesi_internal_di): Calculate
2224 the index into the target offset table correctly.
2226 2002-02-08 Richard Henderson <rth@redhat.com>
2228 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
2229 * final.c (output_addr_const): Accept and discard SUBREG.
2230 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
2231 mark them unknown instead.
2232 (simplify_subtraction): Handle RTX_UNKNOWN.
2233 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
2235 2002-02-08 David Edelsohn <edelsohn@gnu.org>
2237 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
2239 2002-02-08 Richard Henderson <rth@redhat.com>
2241 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
2243 2002-02-08 Andreas Jaeger <aj@suse.de>
2245 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
2246 * config/i386/t-linux64: New file.
2248 2002-02-08 Jakub Jelinek <jakub@redhat.com>
2250 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
2251 * c-parse.in (compstmt): Clear last_expr_type.
2253 2002-02-07 Richard Henderson <rth@redhat.com>
2255 * loop.c (strength_reduce): Sink final_value when not
2258 2002-02-07 David O'Brien <obrien@FreeBSD.org>
2260 * config/sparc/freebsd.h: Fix mismatched spec {.
2262 2002-02-07 Richard Henderson <rth@redhat.com>
2264 * cfgrtl.c: Include recog.h and insn-config.h.
2265 (keep_with_call_p): Fix general_operand invocation.
2266 * Makefile.in (cfgrtl.o): Update dependencies.
2268 2002-02-07 Kazu Hirata <kazu@hxi.com>
2270 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
2271 comment. Accept HImode only if TARGET_H8300.
2273 2002-02-07 Eric Christopher <echristo@redhat.com>
2275 * config/mips/crtn.asm: Cleanup #ifdefs.
2277 2002-02-07 Eric Christopher <echristo@redhat.com>
2279 * config/mips/crti.asm: Add changes for mips16. mips16 uses
2280 register 7 as RA instead of $31.
2281 * config/mips/crtn.asm: Ditto.
2282 * config/mips/mips.c (mips_move_2words): Add case for
2283 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
2284 (compute_frame_size): Fix typo.
2285 (save_restore_insns): Ditto. Make documentation about using
2286 register $7 as return register more precise.
2287 (mips_expand_epilogue): Fix comment. Add code to work around not
2288 being able to add to the stack pointer directly.
2289 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
2290 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
2293 2002-02-07 Tom Rix <trix@redhat.com>
2295 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
2296 immediates in ldu and stdu DS opcode field.
2297 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
2298 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
2299 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
2301 2002-02-07 Jeff Sturm <jsturm@one-point.com>
2303 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
2304 offset for stack bias.
2306 2002-02-07 H.J. Lu <hjl@gnu.org>
2308 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
2310 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
2312 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
2314 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
2316 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
2317 * i386.c (x86_order_regs_for_local_alloc): New global function.
2318 * i386.h (REG_ALLOC_ORDER): CLeanup.
2319 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
2321 2002-02-07 Richard Henderson <rth@redhat.com>
2323 PR optimization/2463
2324 * alias.c (find_base_value): Recall base values for fixed hard regs.
2325 * loop.c (loop_regs_update): Don't use single_set on non-insns.
2327 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
2329 * config/mips/mips.md (define_delay) [mips16]: Adjust required
2332 2002-02-06 Richard Henderson <rth@redhat.com>
2335 * stmt.c (resolve_operand_name_1): Take more care with mixed
2336 named and unnamed operands.
2338 2002-02-06 Janis Johnson <janis187@us.ibm.com>
2339 Jan Hubicka <jh@suse.cz>
2341 * loop.c (remove_constant_addition): Avoid clobbering a shared
2344 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
2346 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
2347 * config/s390/t-linux64: New file.
2348 * config/s390/libgcc-glibc.ver: New file.
2350 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
2352 * config/s390/linux64.h: Delete file.
2353 * config/s390/s390x.h: New file.
2354 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
2355 as target header file.
2356 * config/s390/linux.h (TARGET_VERSION): Define depending on
2357 DEFAULT_TARGET_64BIT.
2358 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
2359 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
2360 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
2361 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
2362 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
2363 (EXTRA_SPEC): New define.
2364 * config/s390/s390.h (TARGET_VERSION): Define depending on
2365 DEFAULT_TARGET_64BIT.
2366 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
2368 2002-02-06 Jason Merrill <jason@redhat.com>
2370 * c-decl.c (finish_function): Warn about a non-void function with
2371 no return statement and no abnormal exit.
2372 (current_function_returns_abnormally): New variable.
2373 (start_function): Clear it.
2374 (struct c_language_function): Add returns_abnormally.
2375 (push_c_function_context): Save it.
2376 (pop_c_function_context): Restore it.
2377 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
2378 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
2379 an explicit return type.
2380 * c-tree.h: Declare current_function_returns_abnormally.
2381 (C_FUNCTION_IMPLICIT_INT): New macro.
2382 * c-typeck.c (build_function_call): Set it.
2383 (c_expand_return): Set current_function_returns_value even if the
2386 2002-02-06 Jakub Jelinek <jakub@redhat.com>
2389 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
2390 unsafe for reevaluation.
2392 2002-02-06 Jakub Jelinek <jakub@redhat.com>
2395 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
2396 EXPR_STMT, but COMPOUND_STMT, recurse into it.
2398 2002-02-06 Richard Henderson <rth@redhat.com>
2400 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
2401 be a general_operand. Dest for function value must be a pseudo.
2403 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
2405 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
2406 as SYMBOL_REFs from the constant pool.
2408 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
2410 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
2411 passed by invisible reference.
2413 2002-02-05 Richard Henderson <rth@redhat.com>
2415 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
2417 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
2419 Implement using "base addresses" in insn operands as default.
2420 * config/mmix/mmix.c (mmix_conditional_register_usage): if
2421 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
2422 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
2423 used to read the rtx value.
2424 (mmix_target_asm_function_epilogue): Fix spacing.
2425 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
2426 (mmix_legitimate_address): Ditto.
2427 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
2428 should be loaded with a GETA insn. Don't allocate needless extra
2429 char for nul termination and fix misleading comment.
2430 (mmix_print_operand_address): Handle constants if
2431 TARGET_BASE_ADDRESSES.
2432 (mmix_output_register_setting): Use base addressing if
2433 TARGET_BASE_ADDRESSES and the number of insns is 3.
2434 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
2435 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
2436 to use R as constraint, add LDA to match s.
2437 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
2438 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
2439 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
2440 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
2441 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
2442 order with other fixed registers.
2443 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
2444 other parameter/call-clobbered registers.
2445 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
2446 -mbase-addresses, -mno-base-addresses.
2447 (MMIX Options): Ditto.
2449 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
2451 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
2453 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
2455 * config/rs6000/altivec.h: Change elem to _S_elem.
2457 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
2459 * config/netbsd.h (WCHAR_TYPE): Define.
2460 (WCHAR_TYPE_SIZE): Ditto.
2462 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
2463 (WCHAR_UNSIGNED): Ditto.
2464 (WCHAR_TYPE_SIZE): Ditto.
2466 * config/arm/netbsd.h: Likewise.
2467 * config/i386/netbsd-elf.h: Likewise.
2468 * config/i386/netbsd.h: Likewise.
2469 * config/m68k/netbsd-elf.h: Likewise.
2470 * config/m68k/netbsd.h: Likewise.
2471 * config/ns32k/netbsd.h: Likewise.
2472 * config/sparc/netbsd.h: Likewise.
2473 * config/vax/netbsd.: Likewise.
2475 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
2477 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
2478 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
2479 (TARGET_INITIALIZER): this.
2480 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
2481 (BITFIELD_NBYTES_LIMITED): Markup fix.
2482 * tree.h (default_ms_bitfield_layout_p): Declare.
2483 (record_layout_info): Added prev_field.
2484 * tree.c (default_ms_bitfield_layout_p): New fn.
2485 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
2486 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
2487 * stor-layout.c: Include target.h.
2488 (start_record_layout): Initialize prev_field.
2489 (place_field): Handle MS bit-field layout, and disregard
2490 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
2491 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
2492 * Makefile.in (stor-layout.o): Adjust dependencies.
2494 2002-02-05 Jason Merrill <jason@redhat.com>
2496 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
2498 2002-02-05 Andreas Jaeger <aj@suse.de>
2500 * crtstuff.c: Fix comments.
2502 2002-02-05 Richard Henderson <rth@redhat.com>
2505 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
2506 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
2509 * config/mips/mips.c (function_arg): Handle TImode.
2510 (function_arg_advance): Likewise.
2512 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2514 * config/rs6000/altivec.h (vec_step_help): Rename to
2517 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2519 * config/rs6000/altivec.h: Fix typos.
2521 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
2523 * config/arm/netbsd.h: Correct a comment.
2525 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2527 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
2528 building void typed builtins.
2530 * config/rs6000/altivec.h (vec_ld*): Fix typos.
2531 (vec_step): Implement for C++.
2533 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2535 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
2537 2002-02-04 Richard Henderson <rth@redhat.com>
2539 * combine.c (nonzero_bits): Re-introduce special case for
2540 sp/fp/ap wrt REGNO_POINTER_ALIGN.
2542 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2544 * doc/extend.texi: Warn about unsupported usage of altivec
2547 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
2548 (altivec_predicate_*): New.
2550 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
2551 Add C++ version of vec_*() functions.
2553 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
2554 (bdesc_2arg): Remove altivec predicates.
2555 (altivec_expand_builtin): Handle predicates.
2556 (altivec_init_builtins): Handle predicates.
2557 (altivec_expand_predicate_builtin): New.
2559 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2561 * pa.c (DO_FRAME_NOTES): Move forward.
2562 (store_reg): Revise handling of frame notes.
2563 (load_reg): Likewise.
2564 (set_reg_plus_d): Likewise.
2565 (hppa_expand_prologue): Likewise.
2566 (hppa_expand_epilogue): Likewise.
2568 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2570 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
2572 2002-02-04 Jakub Jelinek <jakub@redhat.com>
2574 PR c/4475, c++/3780:
2575 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
2576 * c-common.h (SWITCH_TYPE): Define.
2577 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
2578 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
2579 Rename spareness variable to sparseness.
2580 (expand_end_case_type): Renamed from expand_end_case, use orig_type
2581 if non-NULL instead of TREE_TYPE (orig_index).
2582 * tree.h (expand_end_case_type): Renamed from expand_end_case.
2583 (expand_end_case): Define using expand_end_case_type.
2584 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
2585 to expand_end_case_type.
2586 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
2588 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2590 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
2591 (BIGGEST_ALIGNMENT): Change to 128.
2593 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2595 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
2597 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2599 * pa.md (call_internal_reg_64bit): Remove unused variable.
2601 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
2603 * config/arm/arm.h (machine_function): Add uses_anonymous_args
2605 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
2606 * config/arm/arm.c (current_function_anonymous_args): Delete,
2607 replace uses with cfun->machine->uses_anonymous_args.
2608 (arm_reorg): Do not reset uses_anonymous_args.
2610 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
2611 any geenral register.
2613 2001-02-04 Bernd Schmidt <bernds@redhat.com>
2615 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
2618 2002-02-04 Richard Henderson <rth@redhat.com>
2620 * combine.c (force_to_mode): Remove STACK_BIAS code.
2621 (nonzero_bits): Likewise. Replace sp/fp special case with
2622 REGNO_POINTER_ALIGN.
2624 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
2625 (HARD_FRAME_POINTER_REGNUM): New.
2626 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
2627 (FIXED_REGS, CALL_USED_REGS): Update.
2628 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
2629 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
2630 (HARD_REGNO_NREGS): Update for SFP.
2631 (STACK_POINTER_OFFSET): Include bias here ...
2632 (FIRST_PARM_OFFSET): ... not here.
2633 (STACK_BIAS): Remove.
2634 (INIT_EXPANDERS): New.
2635 (STARTING_FRAME_OFFSET): Do not include bias.
2636 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
2637 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
2638 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
2639 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
2640 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
2641 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
2642 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
2643 (MUST_SAVE_REGISTER): Likewise.
2644 (sparc_flat_function_prologue): Likewise.
2645 (sparc_flat_function_epilogue): Likewise.
2646 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
2647 (sparc_init_modes): SFP is GENERAL_REGS.
2648 (sparc_builtin_saveregs): SFP does not have bias applied.
2650 2002-02-04 Richard Henderson <rth@redhat.com>
2652 * config/alpha/alpha.c (current_function_is_thunk): Don't check
2653 current_function_is_thunk.
2654 (alpha_sa_mask): Distinguish between current_function_is_thunk
2655 called from ASM_OUTPUT_MI_THUNK and not.
2656 (alpha_does_function_need_gp): Thunks always need gp.
2657 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
2658 (alpha_output_mi_thunk_osf): New.
2659 * config/alpha/alpha-protos.h: Update.
2660 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
2662 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
2664 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
2665 function types, not when they're taken away.
2667 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
2669 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
2670 CODE_LABEL and jump table when replacing a table jump with a
2673 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2675 * config/s390/s390-protos.h (legitimize_la_operand,
2676 s390_secondary_input_reload_class, s390_plus_operand,
2677 s390_expand_plus_operand): Add prototypes.
2679 config/s390/s390.c (s390_secondary_input_reload_class,
2680 s390_plus_operand, s390_expand_plus_operand): New functions.
2682 (struct s390_address): New member 'pointer'.
2683 (s390_decompose_address): Compute it.
2684 (legitimate_la_operand_p): Use it.
2685 (legitimize_la_operand): New function.
2686 (movti, movdi, movdf splitters): Call it.
2688 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
2689 (PREDICATE_CODES): Add s390_plus_operand.
2691 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
2692 (la_ccclobber): Allow GENERAL_REGS as output operand.
2694 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
2695 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
2696 (*la_64, *la_31, reload_indi, reload_insi): ... these.
2698 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2700 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
2701 register names for regular asm () construct.
2703 2002-02-04 Jakub Jelinek <jakub@redhat.com>
2705 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
2708 2002-02-04 Jakub Jelinek <jakub@redhat.com>
2710 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
2713 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
2715 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
2716 constant pool to be identical by string address and index.
2718 2002-02-04 Anthony Green <green@redhat.com>
2720 * output.h (SECTION_OVERRIDE): Define.
2721 * varasm.c (named_section): Obey SECTION_OVERRIDE.
2723 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
2725 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
2726 by existing arm*-*-netbsd* (a.out) target.
2727 (ns32k-*-netbsdelf*): Likewise.
2728 (sparc-*-netbsdelf*): Likewise.
2729 (vax-*-netbsdelf*): Likewise.
2731 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
2733 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
2734 headers and libobjc headers.
2736 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
2738 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
2739 (_mingw.h): Remove duplicate include.
2741 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
2743 * config.gcc: Set cpu_type to m68k for 68010, as well.
2744 (m68010-*-netbsdelf*): New...
2745 (m68k*-*-netbsdelf*): ...targets.
2746 * config/m68k/netbsd-elf.h: New file.
2748 2002-02-02 Kazu Hirata <kazu@hxi.com>
2750 * config/h8300/h8300.c (hand_list): Move inside function_arg.
2752 2002-02-02 Kazu Hirata <kazu@hxi.com>
2754 * config/h8300/h8300.c (h8_push_ops): Move inside
2756 (h8_pop_ops): Likewise.
2757 (h8_move_ops): Likewise.
2759 2002-02-02 Kazu Hirata <kazu@hxi.com>
2761 * config/h8300/h8300.c (os_task): Make it static.
2762 (monitor): Likewise.
2763 (pragma_saveall): Likewise.
2765 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
2767 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
2768 constant is a valid sign-extension for Pmode.
2770 2002-02-02 Kazu Hirata <kazu@hxi.com>
2772 * config/h8300/h8300.c: Fix formatting.
2774 2002-02-02 Kazu Hirata <kazu@hxi.com>
2776 * config/h8300/h8300.md: Fix formatting.
2778 2002-02-02 Kazu Hirata <kazu@hxi.com>
2780 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
2781 predicates of operands[1]. Split the patterns for each
2784 2002-02-02 Kazu Hirata <kazu@hxi.com>
2786 * config/h8300/h8300.md (xor patterns): Tighten the predicates
2787 of operands[1] to register_operand.
2789 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
2791 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
2792 * cpphash.c (_cpp_init_hashtable): Similarly.
2793 * cppinit.c (cpp_create_reader): Default the signed_char flag.
2794 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
2795 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
2796 (cpp_handle_option): Handle the new options.
2797 * cpplex.c (cpp_interpret_charconst): Use new flag.
2798 * cpplib.h (struct cpp_options): New member signed_char.
2799 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
2800 (cpp_options): Handle -fsigned-char and -funsigned-char.
2801 (static_specs): Remove signed_char_spec.
2802 (do_spec1): Don't handle %c.
2803 * system.h: Poison SIGNED_CHAR_SPEC.
2804 * tradcif.y (yylex): Use flag_signed_char.
2805 * tradcpp.h (flag_signed_char): New.
2806 * tradcpp.c (flag_signed_char): New.
2807 (main): Handle new command-line options.
2808 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
2810 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
2811 * avr/avr.h: Remove old comments.
2812 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
2813 (CC1_SPEC): Pass -fsigned-char if -mic*.
2814 (SIGNED_CHAR_SPEC): Remove.
2816 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
2818 2002-02-01 Eric Christopher <echristo@redhat.com>
2820 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
2821 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
2822 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
2823 (ASM_OUTPUT_REG_POP): Ditto.
2825 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
2827 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
2830 2002-02-02 Jakub Jelinek <jakub@redhat.com>
2832 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
2834 2002-02-02 Jakub Jelinek <jakub@redhat.com>
2837 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
2840 2002-02-01 Janis Johnson <janis187@us.ibm.com>
2842 * cfganal.c: Include tm_p.h.
2843 (keep_with_call_p): Fix the test that determines if a register holds
2844 the return value of a call.
2846 2002-02-01 DJ Delorie <dj@redhat.com>
2848 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
2849 we are given conflicting registers, switch to the other one we
2850 had allocated for us.
2851 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
2852 as TImode so we know when the "other" register is available.
2854 2002-02-01 David O'Brien <obrien@FreeBSD.org>
2856 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
2859 2002-02-01 Janis Johnson <janis187@us.ibm.com>
2861 * cfganal.c (keep_with_call_p): New function.
2862 (flow_call_edges_add): Prevent splitting a block between a call and
2863 a single-set instruction that should be kept in the same block.
2865 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
2867 * doc/install.texi (avr): Update outdated URL.
2869 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
2871 * config/stormy16/stormy16.md (pushqi): New.
2875 (movhi): Remove stack operands.
2877 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
2878 nonimmediate_nonstack_operand.
2879 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
2881 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
2884 2002-01-31 Jason Merrill <jason@redhat.com>
2886 * Makefile.in (c-parse.c): Handle .output file.
2887 * objc/Make-lang.in (objc-parse.c): Likewise.
2889 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
2891 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
2892 the -me[lb] option is given. Don't output the default flag
2895 2002-01-31 Zack Weinberg <zack@codesourcery.com>
2897 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
2898 the primary source file; this has not been done yet.
2899 * c-decl.c (c_expand_body): Reset input_filename from
2900 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
2902 2002-01-31 Kazu Hirata <kazu@hxi.com>
2904 * rtlanal.c (subreg_regno_offset): Do not use
2905 SUBREG_REGNO_OFFSET.
2906 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
2907 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
2909 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
2911 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
2912 version rather than GNATS version in --version output.
2914 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
2916 * ifcvt.c (noce_process_if_block): Make a copy of the destination
2917 when copying back from a temporary.
2919 2002-01-30 Richard Henderson <rth@redhat.com>
2921 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
2922 and new_dest are the same.
2924 2002-01-30 Richard Henderson <rth@redhat.com>
2927 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
2928 * rtl.c (note_insn_name): Update.
2929 * emit-rtl.c (remove_unnecessary_notes): Kill it.
2930 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
2931 to perform loop rotation.
2932 (expand_exit_loop_top_cond): New.
2933 * tree.h (expand_exit_loop_top_cond): Declare it.
2934 * c-semantics.c (genrtl_while_stmt): Use it.
2935 (genrtl_for_stmt): Likewise.
2937 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
2939 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
2940 arguments to 64-bit boundaries on 64-bit ABIs.
2942 2002-01-30 Steve Ellcey <sje@cup.hp.com>
2944 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
2946 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
2948 * c-decl.c (grokdeclarator): Handle type being a typedef for an
2951 2002-01-30 David O'Brien <obrien@FreeBSD.org>
2953 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
2954 * config/sparc/sparc_bi.h: Remove file.
2955 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
2957 2002-01-30 Richard Henderson <rth@redhat.com>
2959 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
2961 2002-01-30 Zack Weinberg <zack@codesourcery.com>
2963 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
2965 2002-01-30 Jason Merrill <jason@redhat.com>
2967 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
2968 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
2969 (reg_save): Use DW_CFA_offset_extended_sf instead.
2971 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
2973 2002-01-29 Jakub Jelinek <jakub@redhat.com>
2975 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
2978 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
2980 * rs6000.md ("*call_value_local32"): Remove constraints.
2981 ("*call_value_local64"): Same.
2982 ("*call_value_indirect_nonlocal_aix32"): Same.
2983 ("*call_value_nonlocal_aix32"): Same.
2984 ("*call_value_indirect_nonlocal_aix64"): Same.
2985 ("*call_value_nonlocal_aix64"): Same.
2986 ("*call_value_nonlocal_sysv"): Same.
2988 2002-01-29 Richard Henderson <rth@redhat.com>
2990 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
2992 2002-01-29 Richard Henderson <rth@redhat.com>
2994 * expr.c (force_operand): Ignore flag_pic for detecting pic
2996 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
2997 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
2998 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
2999 instead of open-coded loop.
3000 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
3001 be fixed when in use.
3003 2002-01-29 Richard Henderson <rth@redhat.com>
3005 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
3006 * sched-rgn.c (propagate_deps): Update them.
3007 * sched-deps.c (sched_analyze_insn): Update them. Flush the
3008 clobbers list when either gets too long.
3010 2002-01-29 Jakub Jelinek <jakub@redhat.com>
3012 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
3013 and INDEX_REGS the same as GENERAL_REGS.
3014 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
3016 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
3018 * tree.c (build_nonstandard_integer_type): Correct prototype.
3020 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
3022 * config/s390/s390.md (movstrsico, movstrdix_64,
3023 movstrsix_31): Remove, replace by ...
3024 (movstrdi_short, movstrsi_short, movstrdi_long,
3025 movstrsi_long): ... these. New.
3026 (movstrdi, movstrsi): Adapt.
3028 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
3029 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
3030 Remove unnecessary CC clobber.
3031 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
3032 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
3034 (divmoddi4): Don't partially initialize TImode register.
3036 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
3038 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
3040 2002-01-29 Richard Henderson <rth@redhat.com>
3042 * flow.c (print_rtl_and_abort): Remove.
3043 (print_rtl_and_abort_fcn): Remove.
3044 (verify_local_live_at_start): Use dump_bb instead.
3045 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
3046 (verify_wide_reg_1): Return 2 on mode test failure.
3048 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
3050 PR c/3325, c/3326, c/2511, c/3347
3051 * c-decl.c (enum_decl_context): Remove BITFIELD.
3052 (grokdeclarator): Take bitfield width as an input.
3053 Ensure bitfields are given the correct type. Perform
3054 bitfield width validation with build_bitfield_integer_type
3055 rather than waiting for finish_struct.
3056 (grok_typename, grok_typename_in_parm_context, start_decl,
3057 push_parmdecl, grokfield, start_function): Update calls to
3059 (build_bitfield_integer_type): New function.
3060 (finish_struct): Move bitfield validation to grokdeclarator
3061 and build_bitfield_integer_type.
3062 * tree.c (build_nonstandard_integer_type): New function.
3063 * tree.h (build_nonstandard_integer_type): New prototype.
3065 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
3067 2002-01-29 Jakub Jelinek <jakub@redhat.com>
3070 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
3071 don't ignore unrecognized -W* options.
3072 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
3073 * cpplib.h (cpp_handle_option): Adjust prototype.
3074 * c-decl.c (c_decode_options): Pass 0 as last argument to
3078 * gcc.c (cpp_unique_options): Split from cpp_options.
3079 (cpp_options): Source cpp_unique_options.
3080 (default_compilers): Use cpp_unique_options instead of cpp_options
3081 when used together with cc1_options.
3082 (static_specs): Add cpp_unique_options.
3083 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
3084 when used together with cc1_options.
3086 2002-01-29 Kazu Hirata <kazu@hxi.com>
3088 * config/h8300/h8300-protos.h: Update the prototype of
3090 * config/h8300/h8300.c (output_a_shift): Remove an unused
3091 argument 'insn'. Remove redundant code.
3092 * config/h8300/h8300.md: Adust to the new prototype of
3095 2002-01-29 Kazu Hirata <kazu@hxi.com>
3097 * config/h8300/h8300-protos.h: Update the prototypes of
3098 emit_a_rotate and expand_a_rotate.
3099 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
3100 first argument to 'enum rtx_code'.
3101 (expand_a_rotate): Likewise.
3103 2002-01-28 Kazu Hirata <kazu@hxi.com>
3105 * config/h8300/h8300-protos.h: Update the prototype of
3107 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
3109 * config/h8300/h8300.md: Adjust to the new prototype.
3111 2002-01-28 Kazu Hirata <kazu@hxi.com>
3113 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
3116 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
3118 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
3119 is a fixed register before returning pic_offset_table_rtx.
3120 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
3121 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
3123 2002-01-28 Jason Merrill <jason@redhat.com>
3125 * dwarf2.h: Sync with src version.
3127 2002-01-28 Paul Koning <pkoning@equallogic.com>
3129 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
3131 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
3132 * doc/extend.texi (__builtin_prefetch): Update documentation:
3133 first argument is now const void ptr.
3135 2002-01-28 Kazu Hirata <kazu@hxi.com>
3137 * config/h8300/h8300-protos.h: Remove an unused prototype.
3139 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
3141 * toplev.c (lang_independent_init): Round up identifier size.
3143 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
3145 * config.gcc: Revert previous change.
3147 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
3149 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
3151 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
3153 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
3154 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
3155 other non-elf netbsd config frags.
3156 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
3157 collect2 will does that.
3158 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
3159 shared-lib frobbing will work.
3161 2002-01-28 Kazu Hirata <kazu@hxi.com>
3163 * config/h8300/h8300.h: Fix formatting.
3164 * config/h8300/h8300.md: Likewise.
3166 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
3168 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
3169 the old, removed AAA_standards fix.
3170 * fixinc/fixincl.x: Rebuilt.
3172 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
3174 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
3175 atexit call in crtbegin, hooked in after call to frame_dummy;
3176 register EH before registering __fini__start.
3178 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
3180 * config/rs6000/altivec.h: Remove spurious semicolons.
3182 2002-01-27 Kazu Hirata <kazu@hxi.com>
3184 * config/h8300/h8300.md: Replace dead bit extraction patterns
3185 with ones that work.
3187 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3189 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
3190 if not STRICT_ALIGNMENT.
3191 * rtl.h (MEM_ALIGN): Likewise.
3193 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
3195 * doc/invoke.texi (-fdump-translation-unit): Revert this
3196 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
3198 2002-01-27 Kazu Hirata <kazu@hxi.com>
3200 * config/h8300/h8300.md (define_constants): New.
3201 (anonymous patterns) Use defined constants appropriately.
3203 2002-01-27 Kazu Hirata <kazu@hxi.com>
3205 * config/h8300/h8300.c (function_arg): Remove redundant code.
3207 2002-01-26 Richard Henderson <rth@redhat.com>
3209 * sched-deps.c (reg_pending_uses_head): New.
3210 (reg_pending_barrier): Rename from reg_pending_sets_all.
3211 (find_insn_list): Don't mark inline.
3212 (find_insn_mem_list): Remove.
3213 (add_dependence_list, add_dependence_list_and_free): New.
3214 (flush_pending_lists): Replace only_write param with separate
3215 for_read and for_write parameters. Update all callers. Use
3216 add_dependence_list_and_free.
3217 (sched_analyze_1): Do not add reg dependencies here; just set
3218 the pending bits. Use add_dependence_list.
3219 (sched_analyze_2): Likewise.
3220 (sched_analyze_insn): Replace schedule_barrier_found with
3221 reg_pending_barrier. Add all dependencies for pending reg
3222 uses, sets, and clobbers.
3223 (sched_analyze): Don't add reg dependencies for calls, just
3224 set pending bits. Use regs_invalidated_by_call. Treat
3225 sched_before_next_call as a normal list, not a fake insn.
3226 (init_deps): No funny init for sched_before_next_call.
3227 (free_deps): Free pending mems lists. Don't zero reg_last.
3228 (init_deps_global): Init reg_pending_uses.
3229 (finish_deps_global): Free it.
3230 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
3231 (find_insn_mem_list): Remove.
3232 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
3233 (propagate_deps): Use them. Zero temp mem lists.
3235 2002-01-26 Richard Henderson <rth@redhat.com>
3237 * Makefile.in (CRTSTUFF_CFLAGS): New.
3238 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
3239 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
3240 crtstuff.c instead of alpha assembly version.
3241 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
3242 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
3243 not FORCE_{INIT,FINI}_SECTION_ALIGN.
3244 (__do_global_dtors_aux): Mark used.
3245 (frame_dummy, __do_global_ctors_aux): Mark used.
3246 (fini_dummy, init_dummy): Remove.
3248 * config/alpha/crtbegin.asm: Remove file.
3249 * config/alpha/crtend.asm: Remove file.
3250 * config/alpha/t-crtbe: Remove file.
3251 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
3252 (LINK_EH_SPEC): New.
3254 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
3255 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
3256 calling constructors.
3257 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
3259 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
3260 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
3261 CRT_END_INIT_DUMMY hack.
3262 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
3263 FORCE_{INIT,FINI}_SECTION_ALIGN.
3265 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
3266 FORCE_{INIT,FINI}_SECTION_ALIGN.
3268 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
3269 invocation sequence.
3270 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
3272 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
3273 (FORCE_CODE_SECTION_ALIGN): New.
3275 2002-01-26 Richard Henderson <rth@redhat.com>
3277 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
3279 2002-01-26 Richard Henderson <rth@redhat.com>
3281 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
3282 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
3284 2002-01-26 Kazu Hirata <kazu@hxi.com>
3286 * config/h8300/h8300.md: Remove bit extraction patterns that
3287 cannot be triggered.
3288 Restrict each bit extraction pattern to a variant on which the
3291 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
3293 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
3295 2002-01-26 Kazu Hirata <kazu@hxi.com>
3297 * config/h8300/h8300.md: Remove bit test patterns that cannot
3299 Restrict each bit test pattern to a variant on which the
3302 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3304 * builtins.c (expand_builtin_strncat): Remove redundant check for
3307 2002-01-25 David O'Brien <obrien@FreeBSD.org>
3309 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
3311 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
3314 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
3316 * dbxout.c (dbxout_init): Use assemble_name rather than just
3317 stripping off the first character.
3318 (dbxout_source_file): Likewise.
3320 2002-01-25 DJ Delorie <dj@redhat.com>
3322 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
3323 using rtx_equal_p, not by comparing pointers.
3325 2002-01-25 Steve Ellcey <sje@cup.hp.com>
3327 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
3328 for PIC_OFFSET_TABLE_REGNUM.
3329 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
3331 2002-01-25 David O'Brien <obrien@FreeBSD.org>
3333 * config.gcc (x86_64-*-freebsd*): New target.
3334 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
3336 (i[34567]86-*-freebsd*): Don't include svr4.h.
3337 * config/i386/freebsd64.h: New file.
3339 2002-01-25 Douglas B Rupp <rupp@gnat.com>
3341 * config/alpha/x-vms (version): Make static.
3343 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
3344 in previous checkin.
3346 * Makefile.in (install-headers-cp): New target.
3347 * config.gcc (alpha-dec-*vms*): Install headers with
3350 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
3352 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
3355 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3357 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
3358 of compare_tree_int.
3359 (expand_builtin_strncat): Likewise.
3360 * c-decl.c (finish_struct): Use tree_low_cst.
3361 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
3362 * tree.c (compare_tree_int): Likewise.
3364 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
3366 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
3367 adjustments even if they are implemented by more than two insns.
3369 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
3371 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
3372 * df.h (struct ref): Kill B.
3373 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
3375 * basic-block.h (PROP_EQUAL_NOTES): New flag.
3376 * flow.c (propagate_one_insn): Use it.
3377 (mark_used_regs): Handle NIL.
3379 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
3381 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
3384 2002-01-25 David Edelsohn <edelsohn@gnu.org>
3386 * rs6000.md (prefetch): Make address V4SI mode so that the address
3387 is restricted to legitimate form for instruction.
3389 2002-01-25 Bob Wilson <bob.wilson@acm.org>
3391 * doc/install.texi (xtensa-*-elf): New target.
3392 (xtensa-*-linux*): New target.
3393 * doc/contrib.texi: Add myself.
3395 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
3397 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
3398 purpose register to hold an SImode (or smaller) value.
3400 2002-01-25 Jakub Jelinek <jakub@redhat.com>
3402 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
3404 * crtstuff.c: Likewise.
3406 2002-01-25 Kazu Hirata <kazu@hxi.com>
3408 * config/h8300/h8300.md (negation patterns): Tighten
3409 predicates to register_operand.
3411 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
3413 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
3416 * builtins.c (expand_builtin_prefetch): Same.
3418 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3420 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
3423 2002-01-24 Kazu Hirata <kazu@hxi.com>
3425 * config/h8300/h8300.c (print_operand): Remove support for
3426 operand character 'A'.
3427 * config/h8300/h8300.md (three anonymous patterns): Replace
3428 operand character 'A' with either 'T' or 'S'.
3430 2002-01-24 Kazu Hirata <kazu@hxi.com>
3432 * config/h8300/h8300.c (print_operand): Remove support for
3433 operand character 'U'.
3435 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
3437 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
3439 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
3441 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
3442 values to be assigned to the stack pointer.
3444 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
3446 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
3447 to const_double needs to be done right for big-endian systems.
3449 2002-01-24 Jason Merrill <jason@redhat.com>
3452 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
3453 to can_throw_internal.
3455 2002-01-23 Richard Henderson <rth@redhat.com>
3457 * fold-const.c (fold): Change UINT_MAX test to check vs precision
3458 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
3460 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3462 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
3463 (symGOT2reg): Use them, then set as GOT value as unchanging.
3464 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
3465 as a temporary, if possible.
3466 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
3467 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
3469 2002-01-23 Kazu Hirata <kazu@hxi.com>
3471 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
3472 accept to accept 0x80 as operands[2].
3474 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3476 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
3478 2002-01-23 Richard Henderson <rth@redhat.com>
3480 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
3482 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
3484 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
3485 (parmlist_or_identifiers_1): Verify that only a parmlist follows
3488 2002-01-23 Richard Henderson <rth@redhat.com>
3490 * expr.c (move_by_pieces_1): Extend size before negation.
3492 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
3493 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
3494 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
3495 * config/m68k/t-m68kelf: Likewise.
3497 2002-01-23 Bob Wilson <bob.wilson@acm.org>
3499 * config/xtensa/elf.h: New file.
3500 * config/xtensa/lib1funcs.asm: New file.
3501 * config/xtensa/lib2funcs.S: New file.
3502 * config/xtensa/linux.h: New file.
3503 * config/xtensa/t-xtensa: New file.
3504 * config/xtensa/xtensa-config.h: New file.
3505 * config/xtensa/xtensa-protos.h: New file.
3506 * config/xtensa/xtensa.c: New file.
3507 * config/xtensa/xtensa.h: New file.
3508 * config/xtensa/xtensa.md: New file.
3509 * config.gcc (xtensa-*-elf*): New target.
3510 (xtensa-*-linux*): New target.
3511 * cse.c (canon_hash): Compare rtx pointers instead of register
3512 numbers. This is required for the Xtensa port.
3513 * integrate.c (copy_insn_list): Handle case where the static
3514 chain is in memory and the memory address has to be copied to
3516 * doc/invoke.texi (Option Summary): Add Xtensa options.
3517 (Xtensa Options): New node.
3518 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
3520 2002-01-23 Zack Weinberg <zack@codesourcery.com>
3522 * diagnostic.c (internal_error): Do ICE suppression only
3523 when ENABLE_CHECKING is not defined.
3525 * c-typeck.c (require_complete_type): Return error_mark_node
3526 if type is error_mark_node.
3528 2002-01-23 Janis Johnson <janis187@us.ibm.com>
3530 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
3531 -Os and issue a warning.
3533 2002-01-23 Zack Weinberg <zack@codesourcery.com>
3535 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
3536 current (lack of) need for host configuration by hand.
3538 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
3539 references. Documentation of some target macros moved from
3540 hostconfig.texi to tm.texi.
3542 2002-01-23 Will Cohen <wcohen@redhat.com>
3544 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
3547 2002-01-23 Kazu Hirata <kazu@hxi.com>
3549 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
3552 2002-01-23 Jason Merrill <jason@redhat.com>
3554 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
3556 * function.c (assign_parms): Don't put args of inline functions
3557 into registers when not optimizing.
3559 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
3561 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
3562 (prologue_use): New pattern.
3563 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
3564 preference to gen_rtx_USE.
3565 (thumb_expand_prologue): Use gen_prologue_use in preference to
3567 (thumb_expand_epilogue): Use gen_prologue_use in preference to
3570 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
3572 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
3574 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
3577 * doc/extend.texi: Correct documentation of __alignof__.
3579 2002-01-22 Zack Weinberg <zack@codesourcery.com>
3581 * params.h: Rename arguments of DEFPARAM so that it will be
3582 recognized as a translation keyword.
3584 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
3586 * extend.texi: Document altivec functions.
3587 Fix N-bit adjectives in X86 builtin documentation.
3589 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
3591 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
3592 auto_inc_dec values.
3594 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
3596 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
3598 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
3600 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
3602 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
3604 2002-01-22 Richard Henderson <rth@redhat.com>
3606 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
3607 copy_insn not copy_rtx.
3609 2002-01-23 Alan Modra <amodra@bigpond.net.au>
3611 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
3612 "nonzero" as that might add "1" bits. Ensure "constop" is
3613 properly sign extened.
3614 (force_to_mode): Tweak for sign extended constop.
3616 2002-01-22 Richard Henderson <rth@redhat.com>
3618 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
3619 for_each_rtx instead of assuming we're already looking at the MEM.
3620 (split_small_symbolic_mem_operand): Likewise.
3621 * config/alpha/alpha.h (PREDICATE_CODES): Update.
3622 * config/alpha/alpha.md (small symbolic memory splitters): Update.
3624 2002-01-22 Richard Henderson <rth@redhat.com>
3626 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
3627 sequence number for the literal.
3628 (divmoddi_internal_er): Likewise.
3630 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
3633 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
3634 in LIBICONV variable.
3635 * configure: Regenerated.
3637 2002-01-22 Krister Walfridsson <cato@df.lth.se>
3639 * dependence.c (build_def_use): Remove array_idx.
3641 * dwarfout.c (last_filename): Remove.
3642 (output_compile_unit_die): Remove last_filename.
3644 2002-01-22 Roger Sayle <roger@eyesopen.com>
3645 Richard Henderson <rth@redhat.com>
3648 * fold-const.c (fold): Optimize unsigned comparisons against
3649 UINT_MAX (and similar unsigned constants).
3651 2002-01-22 Janis Johnson <janis187@us.ibm.com>
3653 * Makefile.in (loop.o): Depend on OPTABS_H.
3654 * loop.c (emit_prefetch_instructions): Check the prefetch operand
3655 against the predicate.
3658 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
3659 for the address operand.
3661 2002-01-22 Richard Henderson <rth@redhat.com>
3663 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
3665 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
3668 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
3671 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
3673 * config.gcc (x86_64-*-netbsd*): New target.
3674 * config/i386/netbsd64.h: New file.
3676 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
3678 * regrename.c (kill_value): Fix typo.
3680 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
3682 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
3684 * config/rs6000/rs6000.h: Same.
3686 * function.c (instantiate_virtual_regs): Remove
3687 STARTING_FRAME_PHASE.
3688 (assign_stack_local_1): Same.
3689 Calculate frame phase.
3691 2002-01-22 Nick Clifton <nickc@redhat.com>
3693 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
3694 variable declaration to outer scope in order to simplify
3696 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
3697 arm_hard_regno_mode_ok.
3698 * config/arm/arm-protos.h: Add a prototype for
3699 arm_hard_regno_mode_ok.
3700 * config/arm/arm.c (soft_df_operand): Remove now redundant
3701 check for DImode values using IP_REGNUM.
3702 (nonimmediate_soft_df_operand): Remove now redundant check for
3703 DImode values using IP_REGNUM.
3704 (arm_hard_regno_mode_ok): New function. New check: make sure
3705 that DImode values are not stored in IP_REGNUM.
3707 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
3709 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
3711 2002-01-22 Jason Merrill <jason@redhat.com>
3713 * c-semantics.c (genrtl_compound_stmt): Only check nesting
3714 consistency if this COMPOUND_STMT is scoped.
3716 2002-01-22 Kazu Hirata <kazu@hxi.com>
3718 * predict.c: Fix formatting.
3719 * print-tree.c: Likewise.
3720 * protoize.c: Likewise.
3723 * sbitmap.h: Likewise.
3725 * sched-deps.c: Likewise.
3726 * sched-vis.c: Likewise.
3727 * sdbout.c: Likewise.
3728 * sibcall.c: Likewise.
3730 * ssa-ccp.c: Likewise.
3731 * ssa-dce.c: Likewise.
3733 * stor-layout.c: Likewise.
3734 * system.h: Likewise.
3736 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3738 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
3739 if fits in bounds of base type.
3741 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
3742 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
3743 (add_bound_info, default): If can't find a context, make a
3745 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
3747 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
3749 * c-typeck.c (parser_build_binary_op): If result from
3750 build_binary_op is ERROR_MARK just return error_mark_node without
3753 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
3755 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
3756 Split a.out-specific bits into...
3757 * config/netbsd-aout.h: ...this.
3758 * config/netbsd-elf.h: New file.
3759 * config/alpha/netbsd-elf.h: Remove.
3760 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
3761 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
3762 (STARTFILE_SPEC): Remove redundant definition.
3763 (ENDFILE_SPEC): Likewise.
3764 (LINK_SPEC): Likewise.
3765 (CPP_SPEC): Likewise.
3766 (ASM_SPEC): Likewise.
3767 (LIB_SPEC): Likewise.
3768 (SWITCH_TAKES_ARG): Likewise.
3769 (TARGET_MEM_FUNCTIONS): Likewise.
3770 (CPP_PREDEFINES): Redefine.
3771 (ASM_FINAL_SPEC): Remove redefinition.
3772 (ASM_COMMENT_START): Redefine.
3773 (FUNCTION_PROFILER): Define.
3774 (TARGET_VERSION): Redefine.
3775 Comment and formatting cleanup.
3776 * config/i386/netbsd.h: Include <netbsd-aout.h>.
3777 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
3778 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
3779 big- or little-endian.
3780 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
3781 * config.gcc (*-*-netbsd*): Add definitions common to all
3783 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
3784 gnu_ld definitions. Add netbsd-elf.h to and remove
3785 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
3786 tmake_file, and don't lose previous tmake_file contents.
3787 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
3788 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
3789 gnu_ld definitions. Add netbsd-elf.h to tm_file.
3790 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
3791 (mipsel-*-netbsd*): Rename this to...
3792 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
3793 mips/little.h to tm_file for mips*el-*.
3794 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
3795 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
3796 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
3798 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
3800 * pa-protos.h (reg_before_reload_operand): New function prototype.
3801 * pa.c (reg_before_reload_operand): New function implementation.
3802 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
3805 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3807 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
3809 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
3811 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
3812 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
3813 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
3814 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
3815 (ENDFILE_SPEC): Undefine.
3816 (STARTFILE_SPEC): Redefine for PA.
3818 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3820 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
3822 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
3824 * config.gcc: Add entries to supported PowerPC --with-cpu
3827 2002-01-21 Jakub Jelinek <jakub@redhat.com>
3829 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
3830 true for 64-bit mode only SSE registers in 32-bit mode.
3832 2002-01-21 Kazu Hirata <kazu@hxi.com>
3834 * unwind-dw2.c: Fix formatting.
3835 * unwind-dw2-fde.c: Likewise.
3836 * unwind-dw2-fde.h: Likewise.
3837 * unwind-pe.h: Likewise.
3838 * varasm.c: Likewise.
3839 * varray.h: Likewise.
3841 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
3843 Remove workaround for register stack overwrite bug in mmix.
3844 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
3845 support for TARGET_REG_STACK_FILL_BUG.
3846 * config/mmix/mmix.h: Remove member has_call_without_parameters.
3847 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
3849 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
3850 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
3851 -mno-reg-stack-fill-bug-workaround.
3852 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
3853 machine member has_call_without_parameters.
3854 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
3855 -mreg-stack-fill-bug-workaround and
3856 -mno-reg-stack-fill-bug-workaround.
3857 (MMIX Options): Ditto.
3859 2002-01-21 Kazu Hirata <kazu@hxi.com>
3861 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
3863 Remove redundant code.
3865 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
3867 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
3868 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
3869 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
3870 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
3871 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
3872 out target macro definitions and non-target-specific comments
3873 mostly taken from old versions of the manual.
3875 2002-01-20 Kazu Hirata <kazu@hxi.com>
3877 * config/h8300/h8300.h: Fix comment formatting.
3878 * config/ia64/aix.h: Likewise.
3879 * config/ia64/ia64-protos.h: Likewise.
3880 * config/ia64/ia64.c: Likewise.
3881 * config/ia64/ia64.h: Likewise.
3882 * config/ia64/ia64intrin.h: Likewise.
3883 * config/ia64/linux.h: Likewise.
3884 * config/ia64/unwind-aix.c: Likewise.
3885 * config/ia64/unwind-ia64.c: Likewise.
3887 2002-01-20 Kazu Hirata <kazu@hxi.com>
3889 * config/h8300/h8300.c: Revise comments about shift code.
3891 2002-01-20 Kazu Hirata <kazu@hxi.com>
3893 * config/h8300/h8300.c (function_arg): Update a comment.
3895 2002-01-20 Kazu Hirata <kazu@hxi.com>
3897 * config/h8300/h8300.md: Update the comments at the beginning
3900 2002-01-20 Kazu Hirata <kazu@hxi.com>
3902 * config/i370/i370.c: Fix comment formatting.
3903 * config/i370/i370.h: Likewise.
3904 * config/i370/i370.md: Likewise.
3905 * config/i370/linux.h: Likewise.
3907 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3909 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
3911 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
3912 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
3915 2002-01-20 Graham Stott <grahams@redhat.com>
3917 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
3919 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
3921 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
3923 2002-01-19 Tom Rix <trix@redhat.com>
3925 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
3927 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
3929 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
3931 * function.c (assign_stack_local_1): Adjust x_frame_offset with
3932 STARTING_FRAME_PHASE.
3933 (STARTING_FRAME_PHASE): New.
3934 (instantiate_virtual_regs): Check saneness of
3935 STARTING_FRAME_PHASE.
3937 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
3939 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
3941 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
3943 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
3945 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
3946 be used for bootstrapping GCC 3.0.
3948 2002-01-18 Kazu Hirata <kazu@hxi.com>
3950 * config/h8300/h8300.md: Fix an insn length.
3952 2002-01-18 Kazu Hirata <kazu@hxi.com>
3954 * bitmap.h: Fix comment formatting.
3955 * combine.c: Likewise.
3956 * cppfiles.c: Likewise.
3957 * c-pragma.h: Likewise.
3958 * c-typeck.c: Likewise.
3960 * dwarf2out.c: Likewise.
3961 * function.c: Likewise.
3963 * genattrtab.c: Likewise.
3964 * gthr-win32.h: Likewise.
3965 * haifa-sched.c: Likewise.
3966 * predict.c: Likewise.
3967 * rtlanal.c: Likewise.
3969 * unwind-dw2-fde.h: Likewise.
3970 * unwind-pe.h: Likewise.
3971 * vmsdbgout.c: Likewise.
3973 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3975 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
3976 if type_required and passed decl.
3978 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
3980 * config.gcc (cpu_type): Include altivec.h in powerpc
3984 * config/rs6000/altivec.h: New.
3986 2002-01-17 David Edelsohn <edelsohn@gnu.org>
3988 * doc/install.texi (*-ibm-aix*): Update assembler and exception
3989 handling information.
3990 * doc/trouble.texi (Interoperation): Add libstdc++ information
3992 (Misunderstandings): Add template instantiation and static template
3993 member information for AIX.
3995 2002-01-17 Jason Merrill <jason@redhat.com>
3997 * dbxout.c (dbxout_type): Support const and volatile.
3999 * except.c (add_partial_entry): Remove backwards compatibility code.
4000 (end_protect_partials): Likewise.
4002 2002-01-17 Jakub Jelinek <jakub@redhat.com>
4004 * config/ia64/ia64.md (prologue_use): New.
4005 * config/ia64/ia64.c (ia64_expand_prologue): Use
4006 gen_prologue_use instead of gen_rtx_USE.
4007 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
4008 as CODE_FOR_pred_rel_mutex.
4009 (ia64_sched_reorder2): Likewise.
4011 2002-01-16 Eric Christopher <echristo@redhat.com>
4013 * config/mips/r3900.h: Reformat.
4014 (SUBTARGET_CPP_SIZE_SPEC): Remove.
4015 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
4016 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
4017 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
4018 * config/mips/t-elf: Remove mips3 multilib.
4020 2002-01-16 H.J. Lu <hjl@gnu.org>
4022 * config/mips/linux.h: Include "mips/abi64.h".
4024 2002-01-16 H.J. Lu <hjl@gnu.org>
4026 * config/mips/t-linux: New.
4028 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
4030 * config/mips/linux.h: Don't include "gofast.h".
4031 (INIT_SUBTARGET_OPTABS): Removed.
4033 2002-01-16 Kazu Hirata <kazu@hxi.com>
4035 * config/h8300/h8300-protos.h: Replace emit_a_shift with
4037 * config/h8300/h8300.c: Likewise.
4038 * config/h8300/h8300.md: Likewise.
4040 2002-01-16 Kazu Hirata <kazu@hxi.com>
4042 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
4043 spaces after an opcode name.
4044 (pushqi1_h8300hs): Likewise.
4045 (pushhi1_h8300hs): Likewise.
4047 2002-01-16 Kazu Hirata <kazu@hxi.com>
4049 * doc/extend.texi: Replace "option" with "attribute"
4052 2002-01-16 Jakub Jelinek <jakub@redhat.com>
4054 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
4055 (and:DI () (const_int -8)).
4056 (split_small_symbolic_mem_operand): Split
4057 (mem (and:DI () (const_int -8)).
4059 2002-01-16 Jakub Jelinek <jakub@redhat.com>
4062 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
4063 same way as TYPE_IMUL.
4064 (ultrasparc_sched_reorder): Likewise.
4065 * config/sparc/sparc.md (type): Add comment to update
4066 ultrasparc_sched_reorder when making changes.
4068 2002-01-16 Kazu Hirata <kazu@hxi.com>
4070 * doc/invoke.texi: Change the dump file name of block
4071 reordering pass from 28.bbro to 29.bbro.
4074 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
4076 * i386.md (minsf splitter): Fix pasto.
4078 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
4080 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
4081 to frame pointer initialisation instruction.
4082 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
4083 initialisation instruction.
4084 (soft_df_operand): Do not accept the IP register.
4085 (nonimmediate_soft_df_operand): Do not accept the IP register.
4087 2002-01-16 Jakub Jelinek <jakub@redhat.com>
4090 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
4091 MASK_V8 being both set.
4093 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
4095 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
4096 insn for GOT register; add REG_MAYBE_DEAD notes instead.
4097 config/s390/s390.md (call, call_value): Add GOT register to
4098 CALL_INSN_FUNCTION_USAGE where needed.
4099 (call_exp, call_value_exp): New.
4101 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
4103 * config/arm/arm.c: General formatting tidy up.
4105 2002-01-16 Graham Stott <grahams@redhat.com>
4107 * calls.c (try_to_integrate): Use "(size_t)" intermediate
4108 cast and when casting an integer literal to "rtx" pointer.
4109 (expand_call): Likewise.
4110 * flow.c (try_pre_increment): Likewise.
4111 (find_use_as_address): Likewise.
4112 * integrate.c (expand_iline_function): Likewise.
4113 * regmove.c (try_auto_increment): Likewise.
4115 2002-01-16 Graham Stott <grahams@redhat.com>
4117 * sched-rgn.c (passed): Use sbitmap_free.
4120 (in_queue): Likewise.
4121 (in_stack): Likewise.
4123 2002-01-15 Eric Christopher <echristo@redhat.com>
4125 * flow.c (propagate_one_insn): Change to use fatal_insn.
4127 2002-01-15 Kazu Hirata <kazu@hxi.com>
4129 * expmed.c (extract_fixed_bit_field): Remove unused code.
4130 * system.h: Poison SLOW_ZERO_EXTEND.
4131 * doc/tm.texi: Remove.
4132 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
4133 * config/arm/arm.h: Likewise.
4134 * config/avr/avr.h: Likewise.
4135 * config/clipper/clipper.h: Likewise.
4136 * config/convex/convex.h: Likewise.
4137 * config/d30v/d30v.h: Likewise.
4138 * config/dsp16xx/dsp16xx.h: Likewise.
4139 * config/elxsi/elxsi.h: Likewise.
4140 * config/fr30/fr30.h: Likewise.
4141 * config/h8300/h8300.h: Likewise.
4142 * config/i370/i370.h: Likewise.
4143 * config/i386/i386.h: Likewise.
4144 * config/m68k/m68k.h: Likewise.
4145 * config/mips/mips.h: Likewise.
4146 * config/ns32k/ns32k.h: Likewise.
4147 * config/pdp11/pdp11.h: Likewise.
4148 * config/pj/pj.h: Likewise.
4149 * config/s390/s390.h: Likewise.
4150 * config/sh/sh.h: Likewise.
4151 * config/stormy16/stormy16.h: Likewise.
4152 * config/v850/v850.h: Likewise.
4153 * config/vax/vax.h: Likewise.
4154 * config/we32k/we32k.h: Likewise.
4156 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
4158 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
4159 (altivec_lvsl): Change constraint to b.
4160 (altivec_lvsr): Same.
4161 (altivec_lvebx): Same.
4162 (altivec_lvehx): Same.
4163 (altivec_lvewx): Same.
4164 (altivec_lvxl): Same.
4165 (altivec_lvx): Same.
4166 (altivec_stvx): Add parallel.
4167 (altivec_stvxl): Same.
4168 (altivec_stvehx): Same.
4169 (altivec_stvebx): Same.
4170 (altivec_stvebx): Same.
4172 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
4174 * config.gcc: Change altivec.h to altivec-defs.h.
4176 * config/rs6000/altivec.h: Delete.
4178 * config/rs6000/altivec-defs.h: Add.
4180 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
4182 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
4185 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
4186 less than or equal to eight bytes.
4188 * vax.md (andsi3): Remove constraints and change SET destination
4189 operand type to nonimmediate_operand.
4190 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
4191 when it is a CONST_INT.
4193 2002-01-15 Jason Merrill <jason@redhat.com>
4195 * c-common.def (FILE_STMT): New code.
4196 * c-common.c (statement_code_p): It's a statement.
4197 * c-common.h (stmt_tree_s): Add x_last_filename.
4198 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
4199 (last_expr_filename): New macro.
4200 * c-semantics.c (begin_stmt_tree): Initialize it.
4201 (add_stmt): If the filename changed, also insert a
4203 (expand_stmt): Handle seeing one.
4205 2002-01-15 Eric Christopher <echristo@redhat.com>
4207 * flow.c (propagate_one_insn): Add error message and print out
4210 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
4212 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
4213 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
4214 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
4215 TRAMPOLINE_ALIGNMENT.
4216 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
4218 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
4219 PCC_BITFIELD_TYPE_MATTERS.
4220 * config/interix.h (STDC_VALUE): Remove. Use
4221 STDC_0_IN_SYSTEM_HEADERS.
4222 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
4223 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
4224 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
4226 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
4228 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
4229 not work on this platform currently.
4231 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
4233 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
4234 readonly_warning in _().
4236 2002-01-15 Douglas B Rupp <rupp@gnat.com>
4238 * gcc.c (delete_if_ordinary): Backout previous change.
4240 2002-01-15 Kazu Hirata <kazu@hxi.com>
4242 * config/h8300/h8300.c (print_operand): Remove support for
4243 unused operand characters.
4245 * read-rtl.c: Fix formatting.
4247 * recog.c: Likewise.
4248 * regclass.c: Likewise.
4249 * regmove.c: Likewise.
4250 * reg-stack.c: Likewise.
4251 * reload1.c: Likewise.
4252 * rtlanal.c: Likewise.
4254 2002-01-15 Kazu Hirata <kazu@hxi.com>
4256 * config/i386/i386.c: Fix formatting.
4258 2002-01-15 Jakub Jelinek <jakub@redhat.com>
4260 * c-typeck.c (process_init_element): Don't save_expr
4261 COMPOUND_LITERAL_EXPR if just its initializer will be used.
4263 2002-01-15 David Edelsohn <edelsohn@gnu.org>
4265 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
4266 emit optional traceback table if optimize_size or TARGET_ELF.
4267 * config/rs6000/rs6000.md (prefetch): New.
4269 2002-01-15 Andreas Jaeger <aj@suse.de>
4271 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
4273 2002-01-15 Kazu Hirata <kazu@hxi.com>
4275 * mips-tfile.c: Fix formatting.
4277 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
4279 * unroll.c (final_reg_note_copy): Fix previous commit.
4281 2002-01-14 Kazu Hirata <kazu@hxi.com>
4283 * config/h8300/h8300-protos.h: Remove the prototype for
4285 * config/h8300/h8300.c (eq_operator): Remove.
4287 2002-01-14 Richard Henderson <rth@redhat.com>
4289 * config/i386/i386.md (prefetch): Tidy.
4290 (prefetch_3dnow): Fix locality operand.
4292 2002-01-14 Richard Henderson <rth@redhat.com>
4294 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
4295 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
4297 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
4299 * reload1.c (reload_combine): Pass reg_sum replacement through
4300 copy_rtx in loop performing multiple changes.
4302 2002-01-14 Jakub Jelinek <jakub@redhat.com>
4304 * except.c (remove_unreachable_regions): New.
4305 (free_eh_status): Clear exception_handler_labels.
4306 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
4307 (find_exception_handler_labels): Don't add the same label more than
4309 (remove_exception_handler_label): Don't die if
4310 find_exception_handler_labels hasn't been called for the current
4313 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
4315 * toplev.c (rest_of_compilation): Rebuild jump labels after
4318 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
4320 * doc/extend.texi: Move documentation of X86 built-in functions
4322 * doc/invoke.texi: From here.
4323 * doc/sourcebuild.texi: Document location of documentation for
4324 machine built-in functions.
4326 2002-01-13 Christopher Faylor <cgf@redhat.com>
4328 * cppfiles.c (TEST_THRESHOLD): New macro.
4329 (SHOULD_MMAP): Ditto.
4330 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
4333 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
4335 * unroll.c (final_reg_note_copy): Properly handle
4337 (unroll_loops): Fix LOOP_CONDITION heuristics.
4339 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
4341 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
4342 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
4344 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
4346 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
4349 2002-01-14 Tom Rix <trix@redhat.com>
4351 * config/rs6000/rs6000.md: Fix typo with sradi.
4353 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
4355 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
4356 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
4357 (clrstrdi, clrstrsi): Adapt callers.
4359 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
4361 (movti splitter): Never use register 0 as base register.
4363 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
4365 * combine.c (simplify_shift_const): Always generate new rtx
4366 for shift expression instead of reusing given expression.
4368 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4370 * config/alpha/alpha.c (alpha_expand_mov): Don't call
4371 alpha_legitimize_address unless mode is Pmode.
4373 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
4375 * doc/md.texi (Modifiers): Document the '*' constraint for the
4378 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
4379 * doc/extend.texi (Function Attributes): 'interrupt' is valid
4382 2002-01-13 Richard Henderson <rth@redhat.com>
4384 * reload.c (find_reloads): Use a hard reg destination as reload reg
4385 for an input reload of the source.
4387 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4389 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
4392 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
4394 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
4395 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
4397 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
4399 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4401 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
4403 2002-01-12 Tom Rix <trix@redhat.com>
4405 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
4408 2002-01-12 Richard Henderson <rth@redhat.com>
4410 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
4412 * doc/invoke.texi: Update Alpha options.
4414 * doc/invoke.texi: Update i386 built-in function lists.
4416 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
4418 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
4419 referencing outside.
4421 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4423 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
4424 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
4425 offsets, and change line folding.
4426 * optabs.c (expand_binop): Remove warnings.
4427 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
4429 2002-01-12 Graham Stott <grahams@redhat.com>
4431 * attribs.c (handle_deprecated_attribute): constify WHAT.
4432 * diagnostic.c (warn_deprecated_use): Add braces, fixes
4433 dangling else warning and constify WHAT.
4434 * except.h (struct function, struct inline_remap): Move
4435 struct tag forward defs before all prototypes.
4436 (duplicate_eh_regions): Whitespace.
4438 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
4440 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
4441 MODE_BASE_REG_CLASS.
4442 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
4444 2002-01-12 Richard Henderson <rth@redhat.com>
4446 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
4447 (ix86_expand_vector_move): New.
4448 (bdesc_2arg): Remove andps, andnps, orps, xorps.
4449 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
4450 Remove old prefetch builtins. Special case the logicals removed above.
4451 (ix86_expand_builtin): Likewise.
4452 (safe_vector_operand): Use V4SFmode, not TImode.
4453 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
4454 (ix86_expand_timode_binop_builtin): New.
4455 * config/i386/i386-protos.h: Update.
4456 * config/i386/i386.h (enum ix86_builtins): Update.
4457 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
4458 Use ix86_expand_vector_move in vector move expanders.
4459 (movti_internal, movti_rex64): Add xorps alternative.
4460 (sse_clrv4sf): Rename and adjust from sse_clrti.
4461 (prefetch): Don't work so hard.
4462 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
4463 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
4464 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
4466 2002-01-11 Richard Henderson <rth@redhat.com>
4468 * config/i386/mmintrin.h: New file.
4469 * config/i386/xmmintrin.h: New file.
4470 * config.gcc (i?86-*-*): Add extra_headers.
4471 * simplify-rtx.c (simplify_unary_operation): Handle saturating
4473 (simplify_binary_operation): Handle saturating arithmetic codes.
4474 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
4475 not the lowpart subreg.
4476 (ix86_expand_builtin): Return a TImode dummy register instead of 0
4478 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
4480 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4482 * conflict.c (conflict_graph_compute): Free regsets when finished.
4483 * ssa.c (compute_coalesced_reg_partition): Likewise.
4485 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4487 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
4488 every where we allocate a register.
4490 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4492 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
4493 * lcm.c (compute_earliest, compute_farthest): Likewise.
4495 2002-01-11 Janis Johnson <janis187@us.ibm.com>
4497 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
4499 2002-01-11 Janis Johnson <janis187@us.ibm.com>
4501 * doc/rtl.texi (Insns): Fix 2 typos.
4503 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
4505 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
4506 options. Use @table @gcctabopt for MMIX options. Add index
4507 entries for MMIX options. Start new paragraph with first
4508 heading of the machine-dependent options.
4510 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
4513 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
4514 * combine.c (force_to_mode): Same.
4515 * reload1.c (clear_reload_reg_in_use): Same.
4517 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
4519 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
4522 2002-01-11 Andreas Jaeger <aj@suse.de>,
4523 Brad Lucier <lucier@math.purdue.edu>
4525 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
4528 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
4530 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
4531 Protect with IN_LIBGCC.
4532 (LINK_EH_SPEC): Add required trailing space.
4534 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
4536 * c-tree.h: Move function declarations so that they are listed
4537 under the filename which contains them.
4538 (check_identifier, finish_decl_top_level,
4539 lookup_name_current_level_global, shadow_record_fields): Remove.
4541 2002-01-11 Andreas Jaeger <aj@suse.de>
4543 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
4546 2002-01-10 Richard Henderson <rth@redhat.com>
4548 * config/alpha/alpha.c (print_operand): Add 'J'.
4549 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
4550 new operand with the sequence number for the lituse. When splitting
4551 the insns, use gen_movdi_er_high_g and generate a sequence number.
4552 (gen_movdi_er_high_g): Print the sequence number if non-zero.
4554 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
4556 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
4557 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
4559 (altivec_expand_builtin): Same.
4560 (altivec_expand_stv_builtin): New.
4562 * config/rs6000/rs6000.h (rs6000_builtins): Same.
4564 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
4565 ("altivec_lvehx"): New.
4566 ("altivec_lvewx"): New.
4567 ("altivec_lvxl"): New.
4568 ("altivec_lvx"): New.
4569 ("altivec_stvx"): New.
4570 ("altivec_stvebx"): New.
4571 ("altivec_stvehx"): New.
4572 ("altivec_stvewx"): New.
4573 ("altivec_stvxl"): New.
4575 2002-01-10 Richard Henderson <rth@redhat.com>
4577 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
4578 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
4579 care not to delete instructions twice.
4581 2002-01-10 Zack Weinberg <zack@codesourcery.com>
4583 * toplev.c: Don't declare environ (it's not used anywhere).
4584 * configure.in: Don't check for declaration of environ.
4585 * config/i386/xm-mingw32.h: Don't #define environ.
4586 * config.in, configure: Regenerate.
4588 2002-01-10 Zack Weinberg <zack@codesourcery.com>
4590 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
4591 * configure: Regenerate.
4593 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
4594 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
4595 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
4597 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
4598 LIMITS_H_TEST here, not in m68k/x-next.
4599 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
4600 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
4602 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
4603 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
4604 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
4606 * config/i386/x-djgpp: Renamed i386/t-djgpp.
4607 * config/m88k/x-dolph: Renamed m88k/t-dolph.
4608 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
4609 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
4610 replacement of quadlib.asm with quadlib.c.
4612 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
4613 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
4614 config/rs6000/xm-beos.h: Delete file.
4616 * config.gcc: Update to match above changes.
4618 2002-01-10 Kazu Hirata <kazu@hxi.com>
4620 * config/h8300/h8300.h: Fix comment typos.
4621 * config/h8300/h8300.md: Likewise.
4622 * config/h8300/lib1funcs.asm: Likewise.
4624 2002-01-10 Dale Johannesen <dalej@apple.com>
4626 PR optimization/5269
4627 * unroll.c (precondition_loop_p): Make *increment be the correct
4628 sign when n_iterations known, to avoid confusing caller.
4630 2002-01-10 Kazu Hirata <kazu@hxi.com>
4632 * doc/extend.texi (deprecated): Fix a typo.
4634 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
4636 * basic-block.h (update_br_prob_note): Declare.
4637 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
4638 (try_forward_edges): Care negative frequencies and update note.
4639 (outgoing_edges_match): Tweek conditional merging heuristics.
4640 (try_crossjump_to_edge): use update_br_prob_note.
4641 * cfglayout.c (fixup_reorder_chain): Likewise.
4642 * cfrtl.c (update_br_prob_note): New.
4643 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
4645 * i386.c (ix86_decompose_address): Return -1 if address contains
4647 (legitimate_address_p): Require ix86_decompose_address to return 1.
4649 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
4650 (cprop_insn): Likewise.
4652 2002-01-10 Kazu Hirata <kazu@hxi.com>
4654 * toplev.c: Fix formatting.
4656 * tree-dump.c: Likewise.
4657 * unroll.c: Likewise.
4658 * unwind-dw2.c: Likewise.
4659 * unwind-dw2-fde.c: Likewise.
4660 * unwind-dw2-fde-glibc.c: Likewise.
4661 * unwind-sjlj.c: Likewise.
4663 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
4665 * doc/invoke.texi: Document PDP-11 options.
4667 2002-01-10 Kazu Hirata <kazu@hxi.com>
4669 * config/h8300/h8300.h: Fix formatting.
4671 2002-01-10 Ira Ruben <ira@apple.com>
4673 Add __attribute__ ((deprecated)).
4674 * extend.texi: Document __attribute__ ((deprecated)).
4675 * invoke.texi: Document -Wno-deprecated-declarations.
4676 * testsuite/g++.dg/other/deprecated.C: New C++ test.
4677 * testsuite/gcc.dg/deprecated.c: New C test.
4678 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
4679 (c_common_attribute_table): Add "deprecated" entry.
4680 (handle_deprecated_attribute): New function.
4681 * c-decl.c (deprecated_states): New enum.
4682 deprecated_state: State of "deprecated" handling.
4683 (start_decl): Set deprecated_state based on attributes.
4684 (grokdeclarator): Test for deprecated uses, propagate attribute.
4685 * c-typeck.c (build_component_ref): Test for deprecated fields.
4686 (build_external_ref): Test for deprecated primaries.
4687 * diagnostic.c (warn_deprecated_use) New function to issue
4688 warnings about __attribute__ ((depricated)) references.
4689 * flags.h (warn_deprecated_decl): Extern declared for
4690 -W[no-]deprecated-declarations option.
4691 * print-tree.c (print_node): Show deprecated flag status.
4692 * toplev.c (warn_deprecated_decl): Defined.
4693 (W_options): Added "deprecated-declaration".
4694 * toplev.h (warn_deprecated_use): Extern declared.
4695 * tree.h (struct tree_common): Define deprecated_flag.
4696 (TREE_DEPRECATED): New macro to access flag.
4697 * cp/call.c (build_call): Test for deprecated calls.
4698 * cp/class.c (add_implicitly_declared_members): Set global
4699 flag to tell grokdeclarator to not issue deprecated warnings.
4700 * cp/cp-tree.h: Add extern for adding_implicit_members.
4701 * cp/decl.c (deprecated_states): New enum.
4702 (start_decl): Set deprecated_state based on attributes.
4703 (grokdeclarator): Test for deprecated uses, propagate attribute.
4704 * cp/lex.c (do_identifier): Test for deprecated primaries.
4705 * cp/typeck.c (build_component_ref): Test for deprecated fields.
4707 2002-01-10 Ira Ruben <ira@apple.com>
4709 Fix to assign attributes to inline member functions.
4710 * cp/decl.c (start_method): Handle attrlist.
4712 2002-01-10 Kazu Hirata <kazu@hxi.com>
4714 * combine.c (expand_field_assignment): Use subreg_lsb().
4716 2002-01-10 David Edelsohn <edelsohn@gnu.org>
4718 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
4719 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
4720 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
4721 Recurse for any operand of AND as long as constant is non-zero.
4723 2002-01-10 Kazu Hirata <kazu@hxi.com>
4725 * config/h8300/h8300.md: Remove constraints from expanders.
4727 2002-01-10 Kazu Hirata <kazu@hxi.com>
4729 * varasm.c: Fix formatting.
4730 * varray.c: Likewise.
4731 * vmsdbgout.c: Likewise.
4732 * xcoffout.c: Likewise.
4734 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
4736 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
4737 update edge probabilities to match.
4739 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
4741 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
4743 * doc/languages.texi, doc/sourcebuild.texi: New files.
4744 * doc/configfiles.texi: Make a subsubsection. Update.
4745 * doc/configterms.texi: Add @node. Remove warning that this isn't
4746 instructions for building GCC.
4747 * doc/makefile.texi: Make a subsection.
4748 * doc/gccint.texi: Update.
4750 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
4752 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
4754 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
4756 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
4758 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
4760 * optabs.c (expand_fix): Look for wider integer modes first.
4762 * i386.md (mov?f): Avoid the fake const double trick for medium
4764 (min?f*/max?f*): Prohibit memory operands for i387 variant.
4765 (fop_df_4): Disable for SSE compilation.
4767 2002-01-10 Graham Stott <grahams@redhat.com>
4769 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
4770 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
4772 2002-01-10 Richard Henderson <rth@redhat.com>
4774 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
4776 2002-01-10 Richard Henderson <rth@redhat.com>
4778 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
4779 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
4781 2002-01-10 Kazu Hirata <kazu@hxi.com>
4783 * combine.c (can_combine_p): Fix a comment typo.
4785 2002-01-09 Zack Weinberg <zack@codesourcery.com>
4787 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
4788 empty list correctly. Change loop index $t to $f for
4789 consistency with rest of Makefile.
4791 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
4793 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
4794 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
4796 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
4797 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
4798 (altivec_init_builtins): Same.
4799 (altivec_expand_unop_builtin): Return NULL_RTX on error.
4800 (altivec_expand_binop_builtin): Same.
4801 (altivec_expand_ternop_builtin): Same.
4804 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
4805 ("altivec_vctuxs"): Fix typo.
4806 ("altivec_vnmsubfp"): Same.
4807 ("altivec_dssall"): New.
4808 ("altivec_mfvscr"): New.
4809 ("altivec_dss"): New.
4810 ("altivec_lvsl"): New.
4811 ("altivec_lvsr"): New.
4812 ("altivec_dstt"): New.
4813 ("altivec_dstst"): New.
4814 ("altivec_dststt"): New.
4815 ("altivec_dst"): New.
4817 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
4818 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
4820 2002-01-09 Richard Henderson <rth@redhat.com>
4822 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
4824 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
4826 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
4828 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
4830 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
4832 2002-01-09 Kazu Hirata <kazu@hxi.com>
4834 * read-rtl.c: Fix formatting.
4836 * regclass.c: Likewise.
4837 * regrename.c: Likewise.
4838 * reg-stack.c: Likewise.
4839 * reload1.c: Likewise.
4840 * reload.c: Likewise.
4843 2002-01-09 Kazu Hirata <kazu@hxi.com>
4845 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
4846 to extract items in the expr_list chain.
4848 2002-01-09 Richard Henderson <rth@redhat.com>
4850 * config/vax/vax.c (vax_rtx_cost): Never abort.
4852 * config/vax/vax.h (REAL_ARITHMETIC): Define.
4854 2002-01-09 Jan Hubicka <jh@suse.cz>
4856 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
4858 2002-01-09 Richard Henderson <rth@redhat.com>
4860 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
4861 Unify code from various alternatives.
4863 2002-01-09 Richard Henderson <rth@redhat.com>
4865 * regrename.c (copy_value): Ignore the copy if the source register
4866 is present in the value chain with a narrower mode.
4868 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4870 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
4871 for the c4x target. Also improve layout.
4873 2002-01-09 Richard Henderson <rth@redhat.com>
4875 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
4876 * config/m32r/m32r.md (and ior xor splitters): Swap operands
4877 to match insn patterns.
4879 2002-01-09 Richard Henderson <rth@redhat.com>
4881 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
4882 (copyprop_hardreg_forward_1): Likewise.
4884 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
4886 * pa.md (decrement_and_branch_until_zero): Change predicate for
4887 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
4889 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
4891 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
4892 gets undefined. For Darwin.
4894 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4896 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
4898 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4900 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
4902 2002-01-08 Richard Henderson <rth@redhat.com>
4904 * regrename.c (copy_value): Ignore overlapping copies.
4906 2002-01-08 Richard Henderson <rth@redhat.com>
4908 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
4909 as needed to avoid shared structure.
4911 2002-01-08 Kazu Hirata <kazu@hxi.com>
4913 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
4916 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
4918 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
4919 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
4920 documentation of obsolete macros.
4921 * system.h: Poison these macros.
4922 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
4923 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
4924 config/c4x/c4x.h, config/clipper/clipper.h,
4925 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
4926 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
4927 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
4928 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
4929 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
4930 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
4931 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4932 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
4933 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
4934 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
4935 config/sparc/sparc.h, config/stormy16/stormy16.h,
4936 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
4937 definitions and commented out definitions of obsolete macros.
4938 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
4939 of MAX_INT_TYPE_SIZE.
4941 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
4943 * config/s390/s390.c (s390_preferred_reload_class): Never
4944 return ADDR_REGS if it isn't a subset of the given class.
4945 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
4946 FP_REGS, but all superclasses as well.
4948 * config/s390/s390.c (s390_function_profiler): Fix thinko.
4950 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
4951 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
4952 must not be a const_int.
4954 2002-01-08 Richard Henderson <rth@redhat.com>
4956 * Makefile.in (toplev.o): Depend on options.h.
4957 (gcc.o): Depend on specs.h.
4959 2002-01-08 Jakub Jelinek <jakub@redhat.com>
4961 * expr.c (store_expr): Convert VOIDmode constants back to target's
4964 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4966 * doc/invoke.texi: Markup gcc as @command. Refer to
4967 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
4968 of http://gcc.gnu.org/thanks.html.
4970 2002-01-08 Dale Johannesen <dalej@apple.com>
4972 * config/rs6000/rs6000.md: Add missing int register
4973 target case to movdf_low.
4975 2002-01-08 Zack Weinberg <zack@codesourcery.com>
4977 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
4978 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
4979 (cppinit.o): Depend on except.h.
4980 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
4981 s-specs): New rules.
4983 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
4984 Don't create specs.h/options.h/gencheck.h here. Remove
4985 unnecessary variable settings from last argument of AC_OUTPUT.
4986 * config.in, configure: Regenerate.
4987 * intl.c: Hardcode package name as "gcc".
4989 * cppinit.c: Include except.h.
4990 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
4992 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
4993 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
4994 (!)USING_SJLJ_EXCEPTIONS.
4995 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
4997 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
4999 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
5000 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
5001 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
5002 documentation of obsolete macros.
5003 * system.h: Poison these macros.
5004 * config/d30v/d30v.h, config/ns32k/encore.h,
5005 config/stormy16/stormy16.h: Remove definitions and commented out
5006 definitions of obsolete macros.
5008 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
5010 * objc/objc-act.c (handle_class_ref): Mark the declaration of
5011 %sobjc_class_ref_%s as used - to prevent unwanted compiler
5014 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
5016 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
5017 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
5018 to insn adjusting stack/frame pointer.
5019 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
5020 accept operands that cause the insn to be non-splittable.
5022 2002-01-08 Graham Stott <grahams@redhat.com>
5024 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
5025 (C_TYPE_FIELDS_VOLATILE): Likewise.
5026 (C_TYPE_BEING_DEFINED): Likewise.
5027 (C_IS_RESERVED_WORD): Likewise.
5028 (C_TYPE_VARIABLE_SIZE): Likewise.
5029 (C_DECL_VARIABLE_SIZE): Likewise.
5030 (C_MISSING_PROTOTYPE_WARNED): Likewise.
5031 (C_SET_EXP_ORIGINAL_CODE): Likewise.
5032 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
5034 (C_DECL_ANTICIPATED): Likewise.
5035 (c_build_type_variant): Add parenthesis.
5037 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
5039 * gcc.c (option_map): Remove --version.
5040 (process_command): Handle -fversion following the GNU Coding
5041 Standards. Partially addresses PR other/704.
5043 2002-01-08 Graham Stott <grahams@redhat.com>
5045 * combine.c (combine_instructions): Fix typo.
5047 2002-01-08 Graham Stott <grahams@redhat.com>
5049 * debug.h: Use "tree" and "rtx" throughout.
5051 * debug.c: Likewise.
5053 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
5055 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
5056 constant pool, use the pool's version of the symbol instead.
5058 2002-01-07 Richard Henderson <rth@redhat.com>
5060 * regrename.c (find_oldest_value_reg): Ignore the value chain if
5061 the original register was copied in a mode with a fewer number of
5062 hard registers than the desired mode.
5063 (copyprop_hardreg_forward_1): Likewise.
5064 (debug_value_data): Fix loop test.
5065 * toplev.c (parse_options_and_default_flags): Reenable
5066 -fcprop-registers at -O1.
5068 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
5070 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
5071 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
5073 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
5076 * config/rs6000/rs6000.md: Add altivec predicate patterns.
5078 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
5080 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
5081 (pa_output_function_prologue): Output local label at the beginning of
5082 the prologue when profiling.
5083 (hppa_profile_hook): Use the local label rather than the function label.
5084 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
5086 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
5088 * config/rs6000/rs6000.c (print_operand): Remove extra space.
5089 (altivec_expand_unop_builtin): Fix thinko.
5090 (altivec_expand_binop_builtin): Same.
5091 (altivec_expand_ternop_builtin): Same.
5092 (altivec_expand_builtin): Same.
5094 2002-01-07 Richard Henderson <rth@redhat.com>
5096 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
5098 2002-01-07 Jason Merrill <jason@redhat.com>
5100 * unwind-dw2.c (execute_cfa_program): Use < again.
5102 2002-01-07 Jakub Jelinek <jakub@redhat.com>
5104 * predict.c (combine_predictions_for_insn): Avoid division by zero.
5106 2002-01-07 Jakub Jelinek <jakub@redhat.com>
5108 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
5109 Don't allow -1 - x -> ~x simplifications in the first pass.
5111 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
5113 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
5115 (altivec_expand_binop_builtin): Same.
5116 (altivec_expand_unop_builtin): Same.
5117 (print_operand): Fix typo.
5118 (bdesc_1arg): Add vupk* variants.
5120 * rs6000.h (rs6000_builtins): Add vupk* enums.
5122 * rs6000.md: Add altivec_vupk* variants.
5124 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
5126 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
5127 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
5128 and last update dates.
5130 2002-01-07 Janis Johnson <janis187@us.ibm.com>
5132 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
5134 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
5136 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
5137 * config/avr/avr.h (CPP_SPEC): Likewise.
5138 (LINK_SPEC): Likewise.
5139 (CRT_BINUTILS_SPECS): Likewise.
5140 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5141 * doc/invoke.texi (AVR Options): Document them.
5143 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
5145 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
5148 2002-01-07 Graham Stott <grahams@redhat.com>
5150 * config/i386/i386.h: Update copyright date.
5151 (HALF_PIC_PTR): Add parenthesis.
5152 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
5153 (CONSTANT_ALIGNMENT): Add parenthesis.
5154 (DATA_ALIGNMENT): Likewise.
5155 (LOCAL_ALIGNMENT): Likewise.
5156 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
5157 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
5158 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
5159 (HARD_REGNO_NREGS): Add paranethesis.
5160 (VALID_SSE_REG_MODE): Whitespace.
5161 (VALID_MMX_REG_MODE): Whitespace.
5162 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
5163 (ix86_hard_regno_mode_ok): Add parenthesis.
5164 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
5165 (RETURN_IN_MEMORY): Whitespace.
5166 (N_REG_CLASSES): Add parenthesis.
5167 (INTEGER_CLASS_P): Add parenthesis and wrap.
5168 (FLOAT_CLASS_P): Likewise.
5169 (SSE_CLASS_P): Likewise.
5170 (MMX_CLASS_P): Likewise.
5171 (MAYBE_INTEGER_CLASS_P): Likewise.
5172 (MAYBE_FLOAT_CLASS_P): Likewise.
5173 (MAYBE_SSE_CLASS_P): Likewise.
5174 (MAYBE_MMX_CLASS_P): Likewise.
5175 (Q_CLASS_P): Likewise.
5176 (GENERAL_REGNO_P): Uppercase macro parameter.
5177 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
5178 (FP_REGNO_P): Likewise.
5179 (ANY_FP_REGNO_P): Uppercase macro parameter.
5180 (SSE_REGNO_P): Likewise.
5181 (SSE_REGNO): Likewise.
5182 (SSE_REG_P): Likewise.
5183 (SSE_FLOAT_MODE_P): Likewise.
5184 (MMX_REGNO_P): Likewise.
5185 (MMX_REG_P):Likewise.
5186 (STACK_REG_P): Likewise.
5187 (NON_STACK_REG_P): Likewise.
5188 (STACK_TOP_P): Likewise.
5189 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
5190 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
5191 (SECONDARY_MEMORY_NEEDED): Likewise.
5192 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
5193 (MD_ASM_CLOBBERS): Whitespace and wrap.
5194 (MUST_PASS_IN_STACK): Whitespace and wrap.
5195 (RETURN_POPS_ARGS): Add parenthesis.
5196 (INIT_CUMULATIVE_ARGS): Likewise.
5197 (FUNCTION_ARG): Likewise.
5198 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
5199 (SETUP_INCOMING_VARARGS): Likewise.
5200 (BUILD_VA_LIST_TYPE): Add parenthesis.
5201 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
5203 (EXPAND_BUILTIN_VA_ARG): Likewise.
5204 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
5205 (INITIALIZE_TRAMPOLINE): Add parenthesis.
5206 (INITIAL_ELIMINATION_OFFSET): Likewise.
5207 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
5208 (REGNO_OK_FOR_BASE_P): Likewise.
5209 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
5210 (REGNO_OK_FOR_DIREG_P): Likewise.
5211 (REG_OK_FOR_INDEX_P): Whitespace.
5212 (REG_OK_FOR_BASE_P): Whitespace.
5213 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
5215 (FIND_BASE_TERM): Fix typo.
5216 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
5217 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
5218 (SYMBOLIC_CONST; Whitespace.
5219 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
5220 (ENCODE_SECTION_INFO): Whitespace.
5221 (FINALIZE_PIC): Remove do { ... } while (0).
5222 (PROMOTE_MODE): Wrap in do { ... } while (0).
5223 (CONST_COSTS): Whitespace.
5224 (RTX_COSTS): Add paramethesis, whitespace and wrap.
5225 (REGISTER_MOVE_COST): Add parenthesis.
5226 (MEMORY_MOVE_COST): Likewise.
5227 (EXTRA_CC_MODES): Whitespace.
5228 (SELECT_CC_MODE): Add parenthesis and whitespace.
5229 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
5230 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
5231 (ASM_OUTPUT_LABEL): Add paramethesis.
5232 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
5233 (ASM_OUTPUT_REG_POP): Likewise.
5234 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
5235 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5237 * config/i386/i386.c: Update copyright.
5238 (CHECK_STACK_LIMIT): Add parenthesis.
5239 (AT_BP): Uppercase macro parameter.
5240 (x86_64_int_parameter_registers): Constify.
5241 (x86_64_int_return_registers): Likewise.
5242 (ix86_compare_op0): Use rtx.
5243 (construct_container): Constify INTREG parameter.
5244 (function_arg): Use rtx.
5246 * diagnostic.h: Update copyright date.
5247 (output_buffer_state): Add parenthesis.
5248 (output_buffer_format_args): Likewise.
5250 * combine.c (combine_instructions): Replace XEXP (links, 0)
5253 2002-01-06 H.J. Lu <hjl@gnu.org>
5255 * cfgcleanup.c (thread_jump): Fix 2 typos.
5257 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
5259 * config.gcc: Add support for --enable-altivec.
5261 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
5263 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
5265 2002-01-06 Jakub Jelinek <jakub@redhat.com>
5267 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
5268 __objc_class_name_*.
5270 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
5272 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
5274 2002-01-06 Richard Henderson <rth@redhat.com>
5276 * reorg.c (emit_delay_sequence): Remove death notes, not merely
5277 nop them out. Increment label reference count for REG_LABEL.
5278 (fill_slots_from_thread): Frob label reference count around
5279 delete_related_insns.
5281 2002-01-05 Richard Henderson <rth@redhat.com>
5283 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
5286 2002-01-05 Richard Henderson <rth@redhat.com>
5288 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
5289 * integrate.c (output_inline_function): Likewise.
5290 * toplev.c (rest_of_compilation): Do it here instead. Move call
5291 to remove_unnecessary_notes after emitting abstract instance.
5292 Force an emitted nested function to have its parent emited as well.
5293 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
5295 (rtl_for_decl_location): Do not look at reload data structures
5296 before reload has run.
5298 2002-01-05 Kazu Hirata <kazu@hxi.com>
5300 * cse.c: Fix formatting.
5301 * dwarf2asm.c: Likewise.
5302 * dwarf2out.c: Likewise.
5303 * explow.c: Likewise.
5304 * expmed.c: Likewise.
5305 * function.c: Likewise.
5307 * gencheck.c: Likewise.
5308 * genrecog.c: Likewise.
5309 * ggc-common.c: Likewise.
5310 * ggc-page.c: Likewise.
5311 * global.c: Likewise.
5313 2002-01-05 Kazu Hirata <kazu@hxi.com>
5315 * combine.c: Fix formatting.
5317 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
5320 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
5322 2002-01-05 David Edelsohn <edelsohn@gnu.org>
5324 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
5325 as 1 for __powerpc64__ as well.
5327 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
5329 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
5332 2002-01-05 Daniel Berlin <dan@dberlin.org>
5334 * lcm.c: Revert change, due to performance regression it causes on
5335 SPEC because it's slightly more conservative (sigh, I hate
5338 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
5340 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
5342 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
5344 * doc/cppinternals.texi: Update.
5346 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
5348 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
5349 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
5351 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
5352 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
5353 kludge for pre-october-14th mmix versions to handle new-found bug
5354 with PUSHJ/PUSHGO and the register stack.
5355 * config/mmix/mmix.h (struct machine_function): Rename member
5356 has_call_value_without_parameters to has_call_without_parameters.
5357 All referers changed.
5358 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
5359 TARGET_MASK_BRANCH_PREDICT): New macros.
5360 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
5361 -mno-reg-stack-fill-bug-workaround.
5362 * config/mmix/mmix.md ("call"): Set struct machine member
5363 has_call_without_parameters.
5365 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
5367 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
5369 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
5371 * cfgcleanup.c: Include tm_p.h
5372 (mark_effect): Fix handling of hard register; fix handling of SET
5374 2002-01-04 Kazu Hirata <kazu@hxi.com>
5376 * config/h8300/h8300.md (anonymous patterns): Check that
5377 operands are registers before using REGNO on them.
5379 2002-01-03 Roland McGrath <roland@frob.com>
5381 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
5383 2002-01-04 Jakub Jelinek <jakub@redhat.com>
5385 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
5386 * c-common.h (genrtl_expr_stmt_value): Likewise.
5387 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
5388 (expand_expr_stmt_value): Add maybe_last argument.
5389 Don't warn about statement with no effect if it is the last statement
5390 in expression statement.
5391 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
5392 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
5393 expand_expr_stmt_value.
5394 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
5395 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
5396 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
5397 as maybe_last to expand_expr_stmt_value.
5399 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
5401 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
5402 be passed in, do not build it.
5403 (c_begin_if_stmt): New function.
5404 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
5405 * c-common.h (c_expand_start_cond): Update prototype.
5406 (c_begin_if_stmt): Prototype new function.
5407 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
5408 * c-parse.in (if_prefix): Use c_begin_if_stmt,
5409 c_begin_while_stmt and c_finish_while_stmt_cond.
5411 2002-01-04 William Cohen <wcohen@redhat.com>
5413 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
5414 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
5415 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
5416 * config/pa/som.h (ASM_FILE_START): Likewise.
5418 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
5420 * lcm.c: Include df.h.
5421 Add available_transfer_function prototype.
5422 (compute_available): Rework to use iterative dataflow framework.
5423 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
5424 with bb_info in df.h
5425 (available_transfer_function): New function.
5427 * Makefile.in (lcm.o): add df.h to dependencies.
5429 2002-01-04 Richard Henderson <rth@redhat.com>
5431 * config/alpha/alpha.c (some_operand): Accept HIGH.
5432 (input_operand): Likewise; accept simple references to globals.
5433 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
5434 (alpha_const_double_ok_for_letter_p): Likewise.
5435 (alpha_extra_constraint): Likewise.
5436 (alpha_preferred_reload_class): Likewise. Do not force
5437 symbolic constants to memory.
5438 (alpha_legitimate_address_p): Accept simple references
5439 to small_symbolic_operand.
5440 (alpha_legitimize_address): New arg scratch. Be prepared to be
5441 called when no_new_pseudos. Emit simple symbolic references.
5442 Split integers into low, high, and rest.
5443 (alpha_expand_mov): Use alpha_legitimize_address.
5444 (some_small_symbolic_mem_operand): New.
5445 (split_small_symbolic_mem_operand): New.
5446 * config/alpha/alpha-protos.h: Update.
5447 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
5448 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
5449 (EXTRA_CONSTRAINT): Likewise.
5450 (PREFERRED_RELOAD_CLASS): Likewise.
5451 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
5452 (PREDICATE_CODES): Update.
5453 * config/alpha/alpha.md: New post-reload splitters to convert
5454 simplfied symbolic operands to the form that references $29.
5455 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
5456 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
5458 2002-01-03 Richard Henderson <rth@redhat.com>
5460 * local-alloc.c (function_invariant_p): Update commentary.
5462 2002-01-04 H.J. Lu <hjl@gnu.org>
5464 * toplev.c (rest_of_compilation): Fix a typo when calling
5467 2002-01-03 Kazu Hirata <kazu@hxi.com>
5469 * c-common.c: Fix formatting.
5470 * diagnostic.c: Likewise.
5471 * doloop.c: Likewise.
5472 * dwarf2out.c: Likewise.
5474 2002-01-03 Kazu Hirata <kazu@hxi.com>
5476 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
5477 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
5479 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
5481 * cpperror.c: Update comments and copyright.
5482 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
5483 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
5485 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
5487 * collect2.c (main): Use strcmp when testing for "-shared".
5489 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
5491 * cppmacro.c: Don't include intl.h. Update comments.
5492 (new_number_token): Allocate enough buffer for 64-bit unsigned
5493 integers; update prototype.
5494 * cppmain.c: Update comments.
5496 2002-01-03 William Cohen <wcohen@redhat.com>
5498 * function.h (struct function): Add profile.
5499 (current_function_profile): New.
5500 doc/extend.texi: Update documentation.
5501 * final.c (final_start_function): Use current_function_profile
5502 instead of profile_flag.
5503 (profile_after_prologue): Likewise.
5504 * function.c (expand_function_start): Likewise.
5505 (expand_function_start): Likewise.
5506 * config/alpha/alpha.c (direct_call_operand):
5507 (alpha_does_function_need_gp): Likewise.
5508 (alpha_expand_prologue): Likewise.
5509 * config/arm/arm.c (arm_expand_prologue): Likewise.
5510 thumb_expand_prologue: Likewise.
5511 * config/d30v/d30v.c (d30v_stack_info): Likewise.
5512 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
5513 (fr30_expand_prologue): Likewise.
5514 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
5515 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
5516 * config/i386/i386.h (FINALIZE_PIC): Likewise.
5517 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
5518 * config/i960/i960.c (i960_output_function_prologue): Likewise.
5519 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5520 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
5521 (m32r_expand_prologue): Likewise.
5522 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
5523 (m88k_expand_prologue): Likewise.
5524 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
5525 * config/mips/mips.c (compute_frame_size): Likewise.
5526 (mips_expand_prologue): Likewise.
5527 (mips_can_use_return_insn): Likewise.
5528 * config/pa/elf.h (ASM_FILE_START): Likewise.
5529 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
5530 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
5531 * config/pa/som.h (ASM_FILE_START): Likewise.
5532 * config/romp/romp.c (romp_using_r14): Likewise.
5533 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
5534 (rs6000_stack_info): Likewise.
5535 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5536 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
5537 * config/v850/v850.c (compute_register_save_size): Likewise.
5539 2002-01-03 Jakub Jelinek <jakub@redhat.com>
5541 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
5542 gen_lowpart_common fails, use gen_lowpart_SUBREG.
5544 2002-01-03 Turly O'Connor <turly@apple.com>
5546 * darwin.c (machopic_output_possible_stub_label): Don't generate
5547 stub routines for pseudo-stubs which we've just defined.
5549 2002-01-03 Kazu Hirata <kazu@hxi.com>
5551 * builtins.c: Fix formatting.
5552 * c-typeck.c: Likewise.
5553 * combine.c: Likewise.
5557 2002-01-03 Andreas Schwab <schwab@suse.de>
5559 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
5560 and return true if _cpp_push_next_buffer pushed a new include
5562 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
5563 _cpp_pop_file_buffer did not push a new file.
5564 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
5566 2002-01-02 Eric Christopher <echristo@redhat.com>
5568 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
5569 FIND_REG_INC_NOTE call. Update copyright.
5570 * loop.c (canonicalize_condition): Ditto.
5571 * reorg.c (delete_scheduled_jump): Ditto.
5573 2002-01-03 Kazu Hirata <kazu@hxi.com>
5575 * gcse.c: Fix formatting.
5577 2002-01-03 Graham Stott <grahams@redhat.com>
5579 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
5580 forward defs for struct tags rtx_def, union_tree, rtvec_def
5581 also output corresponding typedefs for rtx, tree, and rtvec.
5583 * system.h: Move forward defs for struct tags rtx_def, union_tree,
5584 rtvec_def along with corresponding typedefs for rtx, tree, and
5585 rtvec to config.h, hconfig.h, tconfig.h.
5587 2002-01-03 Graham Stott <grahams@redhat.com>
5589 * tree.h: Update copyright date.
5590 (IS_EXPR_CODE_CLASS): Add parenthesis.
5591 (TREE_SET_CODE): Add whitespace.
5592 (TREE_CHECK): Add parenthesis.
5593 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
5594 (CST_OR_CONSTRUCTOR_CHECK):
5595 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
5596 (TREE_SYMBOL_REFERENCED): Whitespace.
5597 (INT_CST_LT): Likewise.
5598 (INT_CST_LT_UNSIGNED): Likewise.
5599 (tree_real_cst): Unwrap comment.
5600 (tree_string): Likewise.
5601 (tree_complex): Likewise.
5602 (IDENTIFIER_POINTER): correct cast.
5603 (SAVE_EXPR_CONTEXT): Whitespace.
5604 (EXPR_WFL_FILENAME_NODE): Likewise.
5605 (EXPR_WFL_FILENAME): Remove parenthesis.
5606 (DECL_ORIGIN): Add parenthesis.
5607 (DECL_FROM_INLINE): Use NULL_TREE.
5608 (build_int_2): Whitespace.
5609 (build_type_variant): Add parenthesis.
5611 * gcc/jcf-parse.c: Update copyright date.
5612 (yyparse): Constify resource_filename.
5614 2002-01-03 Graham Stott <grahams@redhat.com>
5616 * rtl.h: Update copyright date.
5617 (RTL_CHECK1): Wrap long line.
5618 (RTL_CHECK2): Likewise.
5619 (RTL_CHECKC1): Wrap long line and whitespace.
5620 (RTL_CHECKC2): Likewise.
5621 (XWINT): Whitespace.
5627 (XBITMAP): Likewise.
5638 (X0BITMAP): Likewise.
5640 (X0BBDEF): Likewise.
5641 (X0ADVFLAGS): Likewise.
5642 (X0CSELIB): Likewise.
5643 (X0MEMATTR): Likewise.
5651 (XCBITMAP): Likewise.
5653 (XCBBDEF): Likewise.
5654 (XCADVFLAGS): Likewise.
5655 (XCCSELIB): Likewise.
5657 (INSN_UID): Likewise.
5658 (PREV_INSN): Likewise.
5659 (PATTERN): Likewise.
5660 (INSN_CODE): Likewise.
5661 (PUT_REG_NOTE_KIND): Likewise.
5662 (CODE_LABEL_NUMBER): Likewise.
5663 (NOTE_SOURCE_FILE): Likewise.
5664 (NOTE_BLOCK): Likewise.
5665 (NOTE_EH_HANDLER): Likewise.
5666 (NOTE_RANGE_INFO): Likewise.
5667 (NOTE_LIVE_INFO): Likewise.
5668 (NOTE_BASIC_BLOCK): Likewise.
5669 (NOTE_EXPECTED_VALUE): Likewise.
5670 (NOTE_LINE_NUMBER): Likewise.
5671 (LABEL_NAME): Likewise.
5672 (LABEL_NUSES): Likewise.
5673 (LABEL_ALTERNATE_NAME): Likewise.
5674 (ADDRESSOF_DECL): Likewise.
5675 (JUMP_LABEL): Likewise.
5676 (LABEL_NEXTREF): Likewise.
5678 (ORIGINAL_REGNO: Likewise.
5679 (HARD_REGISTER_NUM_P): Add parenthesis.
5680 (SUBREG_REG): Whitespace.
5681 (SUBREG_BYTE): Likewise.
5682 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
5683 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
5684 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
5685 (ASM_OPERANDS_INPUT_VEC): Likewise.
5686 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
5687 (ASM_OPERANDS_INPUT): Likewise.
5688 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
5689 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
5690 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
5691 (ASM_OPERANDS_INPUT_MODE): Likewise.
5692 (ASM_OPERANDS_SOURCE_FILE): Likewise.
5693 (ASM_OPERANDS_SOURCE_LINE): Likewise.
5694 (MEM_SET_IN_STRUCT_P): Minor reformat.
5695 (TRAP_CONDITION): Whitespace.
5696 (TRAP_CODE): Likewise.
5697 (COND_EXEC_TEST): Likewise.
5698 (COND_EXEC_CODE): Likewise.
5699 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
5700 (PHI_NODE_P): Add parenthesis.
5701 (plus_constant): Whitespace and add parenthesis.
5703 2002-01-03 Kazu Hirata <kazu@hxi.com>
5705 * config/avr/avr.c: Fix comment typos.
5706 * config/c4x/c4x.md: Likewise.
5707 * config/dsp16xx/dsp16xx.h: Likewise.
5708 * config/dsp16xx/dsp16xx.md: Likewise.
5709 * config/i386/i386.md: Likewise.
5710 * config/ia64/ia64.c: Likewise.
5711 * config/m32r/m32r.h: Likewise.
5712 * config/m68hc11/m68hc11.md: Likewise.
5713 * config/mmix/mmix.c: Likewise.
5714 * config/mn10200/mn10200.c: Likewise.
5715 * config/romp/romp.c: Likewise.
5716 * config/sh/sh.c: Likewise.
5717 * config/stormy16/stormy16.c: Likewise.
5718 * config/stormy16/stormy16.h: Likewise.
5719 * config/stormy16/stormy16.md: Likewise.
5721 2002-01-03 Graham Stott <grahams@redhat.com>
5723 * loop.h: Update copyright date.
5724 (LOOP_MOVABLES): Fix typo.
5725 (LOOP_REGS): Likewise.
5726 (LOOP_IVS): Likewise.
5728 2002-01-03 Graham Stott <grahams@redhat.com>
5730 * cppinit.c: Update copyright date.
5731 Don't include output.h
5732 * Makefile.in: Update copyright date.
5735 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
5738 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
5739 (-pthread) Add to RS/6000 options.
5741 2002-01-02 Kazu Hirata <kazu@hxi.com>
5743 * except.c: Fix comment typos.
5745 * varasm.c: Likewise.
5746 * doc/tm.texi: Fix a typo.
5748 2002-01-02 Jakub Jelinek <jakub@redhat.com>
5750 * c-typeck.c (output_init_element): Allow initializing static storage
5751 duration objects with compound literals.
5753 2002-01-02 Richard Henderson <rth@redhat.com>
5755 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
5758 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5760 * gcc.c (default_compilers): Const-ify.
5761 * mips-tdump.c (stab_names): Likewise.
5762 * mips-tfile.c (map_coff_types, map_coff_storage,
5763 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
5764 pseudo_ops_t, pseudo_ops): Likewise.
5765 * protoize.c (default_include): Likewise
5767 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
5768 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
5769 Add array size in declaration.
5770 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
5771 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
5772 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
5773 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
5774 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
5775 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
5776 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
5777 emtens, make_nan): Const-ify.
5778 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
5779 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
5781 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
5783 * config.gcc (ia64-*-*): Set extra_headers.
5784 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
5785 * config/alpha/t-osf: Remove.
5786 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
5788 2002-01-02 David Edelsohn <edelsohn@gnu.org>
5790 * config/rs6000/t-aix43: Revert previous change.
5792 2002-01-02 Jason Merrill <jason@redhat.com>
5794 * c-decl.c (c_expand_body): Call outlining_inline_function when
5795 emitting an inline function out of line.
5797 2002-01-02 Richard Henderson <rth@redhat.com>
5799 * dwarf2out.c (limbo_die_node): Add created_for member.
5800 (new_die): New argument created_for. Update all callers.
5801 (mark_limbo_die_list): New.
5802 (dwarf2out_init): Register limbo_die_list as a root.
5803 (dwarf2out_finish): Force insert limbo dies into their function
5806 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5809 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
5811 2002-01-02 Kazu Hirata <kazu@hxi.com>
5813 * config/h8300/fixunssfsi.c: Update copyright.
5816 * config/h8300/h8300.c: Update copyright.
5819 2002-01-02 Kazu Hirata <kazu@hxi.com>
5821 * config/romp/romp.c: Fix comment formatting.
5822 * config/romp/romp.h: Likewise.
5823 * config/romp/romp.md: Likewise.
5824 * config/s390/s390.c: Likewise.
5825 * config/stormy16/stormy16.c: Likewise.
5826 * config/stormy16/stormy16.h: Likewise.
5828 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
5830 * c-common.h (genrtl_expr_stmt_value): Declare.
5831 * c-semantics.c (genrtl_goto_stmt): Redirect to...
5832 (genrtl_goto_stmt_value): ... this new function. Pass new
5833 argument down to expand_expr_stmt_value, taking
5834 TREE_ADDRESSABLE into account.
5835 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
5836 STMT_EXPR as addressable, i.e., one whose result we want.
5837 * expr.c (expand_expr): Don't save expression statement value
5838 of labeled_blocks or loop_exprs.
5839 * stmt.c (expand_expr_stmt): Redirect to...
5840 (expand_expr_stmt_value): ... this new function. Use new
5841 argument to tell whether to save expression value.
5842 (expand_end_stmt_expr): Reset last_expr_type and
5843 last_expr_value if we don't have either.
5844 * tree-inline.c (declare_return_variable): Mark its use
5845 statement as addressable.
5846 * tree.h: Document new use of TREE_ADDRESSABLE.
5847 (expand_expr_stmt_value): Declare.
5849 2002-01-01 Tom Rix <trix@redhat.com>
5851 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
5852 rs6000_emit_allocate_stack.
5854 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
5856 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
5857 ${srcdir}/ginclude/ to every entry in extra_headers.
5858 * configure: Regenerate.
5859 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
5860 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
5861 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
5862 * ginclude/proto.h: Rename to config/convex/proto.h.
5864 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5866 * attribs.c (handle_vector_size_attribute): Use host_integerp
5867 and tree_int_cst; remove warnings.
5868 * caller-save.c (insert_restore): Add cast to get rid of warning.
5869 (insert_save): Likewise.
5870 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
5871 * regmove.c (find_matches): Add temporary var to kill a warning.
5873 2002-01-01 Douglas B Rupp <rupp@gnat.com>
5875 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
5876 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
5877 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
5878 (vms-dwarf2eh.o): Add Makefile rule.
5879 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
5880 * config/alpha/vms-dwarf2eh.asm: New file.
5882 * gcc.c (delete_if_ordinary): Delete all versions.
5884 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
5886 * config/mmix/mmix.md: Update FIXME to not mention
5888 (MMIX_rJ_REGNUM): New define_constants constant.
5889 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
5890 "*movdicc_real"): Adjust contraints formatting.
5891 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
5892 for branch prediction.
5893 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
5895 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
5896 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
5897 number. Delete related FIXMEs.
5898 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
5899 from number to MMIX_rJ_REGNUM.
5900 (TARGET_MASK_BRANCH_PREDICT): New.
5901 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
5902 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
5903 value. Add -mbranch-predict and -mno-branch-predict.
5904 (TARGET_VERSION): Drop date.
5905 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
5906 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
5907 for finding out global symbols.
5908 (mmix_asm_output_labelref): Revert condition for global symbol.
5909 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
5910 (mmix_print_operand_punct_valid_p): A '+' is valid.
5912 See ChangeLog.6 for earlier changes.