1 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
3 * pa-linux.h (LIB_SPEC): Update definition.
4 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6 2002-02-26 Richard Henderson <rth@redhat.com>
8 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
9 if we emitted a stop bit.
11 2002-02-26 Jakub Jelinek <jakub@redhat.com>
13 * configure.in (libgcc_visibility): Substitute.
15 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
16 defined symbols .hidden.
18 2002-02-26 Jakub Jelinek <jakub@redhat.com>
20 * attribs.c (c_common_attribute_table): Add visibility.
21 (handle_visibility_attribute): New function.
22 * varasm.c (assemble_visibility): New function.
23 * output.h (assemble_visibility): Add prototype.
24 * tree.h (MODULE_LOCAL_P): Define.
25 * crtstuff.c (__dso_handle): Use visibility attribute.
26 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
27 for MODULE_LOCAL_P symbols too.
28 * config/ia64/ia64.c (ia64_encode_section_info): Handle
29 MODULE_LOCAL_P symbols the same way as local symbols.
30 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
31 into .sdata/.sbss by the user.
32 * doc/extend.texi (Function Attributes): Document visibility
35 2002-02-26 Jakub Jelinek <jakub@redhat.com>
38 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
39 STRING_CST initializer spanning the whole variable without
41 If expand_expr returned MEM, don't use it.
43 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
45 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
46 generate a die for the lexical block.
48 2002-02-26 Kazu Hirata <kazu@hxi.com>
50 * config/h8300/h8300-protos.h: Add a prototype for
51 compute_logical_op_length.
52 * config/h8300/h8300.c (compute_logical_op_length): New.
53 * config/h8300/h8300.md (anonymous logical patterns): Use
54 compute_logical_op_length for length.
56 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
58 * dwarf2out.c (modified_type_die): Do not call type_main_variant
62 * attribs.c (handle_vector_size_attribute): Set debug information.
64 2002-02-26 Daniel Egger <degger@fhm.edu>
66 * config/rs6000/rs6000.md: Swap define_insn attributes to
67 fix incorrect generation of merge high instructions instead
70 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
72 * c-typeck.c (really_start_incremental_init): Use
73 bitsize_zero_node for vectors.
75 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
77 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
78 ("*set_vrsave_internal"): Same.
80 2002-02-25 Richard Henderson <rth@redhat.com>
82 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
83 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
85 2002-02-25 Jakub Jelinek <jakub@redhat.com>
88 * config/i386/i386.c (ix86_return_pops_args): Only pop
89 fake structure return argument if it was passed on the stack.
91 2002-02-25 Jason Merrill <jason@redhat.com>
93 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
96 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
98 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
99 link with shared_name only.
100 * doc/invoke.texi (Link Options): Document new behavior.
102 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
104 * c-typeck.c (push_init_level): Handle vectors.
106 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
108 * config/sparc/sparc.c (const64_high_operand): Zero-extend
109 operands of SPARC_SETHI_P.
110 (input_operand): Likewise.
111 (sparc_emit_set_const32): Likewise.
112 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
113 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
114 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
115 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
116 (movdi_insn_sp64_vis): Likewise.
117 (movdi split, movdf split): Use SETHI32.
118 * doc/md.texi: Document SPARC constraints L, M and N.
120 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
122 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
123 ("*set_vrsave_internal"): use mfspr for Darwin.
125 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
126 gen_get_vrsave_internal.
128 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
130 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
132 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
134 * cpplex.c (cpp_interpret_charconst): Get signedness or
135 otherwise of wide character constants correct.
136 * cppexp.c (lex): Get signedness of wide charconsts correct.
138 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
140 * optabs.c (widen_operand): Only call convert_modes for
141 promoted SUBREG if signedness matches.
142 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
144 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
146 * cpplib.c (glue_header_name): Use local buffer to build up
149 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
151 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
153 2002-02-23 Kazu Hirata <kazu@hxi.com>
155 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
156 H8/300[HS] separately.
157 * config/h8300/h8300.md: Remove the early clobber constraint
158 from bit field patterns.
160 2002-02-23 Kazu Hirata <kazu@hxi.com>
162 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
164 (mulhisi3): Likewise.
165 (umulqisi3): Likewise.
166 (umulhisi3): Likewise.
168 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
170 * cppinit.c (output_deps): Correct test for stdout output.
171 (init_dependency_output): Cure warning.
173 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
175 * expr.c (store_expr): When converting expression to promoted
176 equivalent type, allow using SUBREG_REG of TARGET as the target
177 of the expansion of EXP.
178 * loop.c (basic_induction_var, case SUBREG): Always look inside.
179 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
180 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
181 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
182 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
184 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
186 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
187 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
188 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
190 2002-02-23 Jakub Jelinek <jakub@redhat.com>
193 * loop.c (scan_loop): Update reg info if move_movables created new
196 2002-02-23 David Edelsohn <edelsohn@gnu.org>
198 * gcc.c (init_gcc_spec): Revert last change.
200 2002-02-23 David Edelsohn <edelsohn@gnu.org>
202 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
203 gpc_reg_operand constraint.
205 2002-02-23 Alan Modra <amodra@bigpond.net.au>
207 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
208 Simplify comparison of `low'.
209 (add_operand): Fix formatting.
210 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
211 (mask_operand): Disallow mask to wrap in 64-bit mode.
212 (rs6000_stack_info): Remove redundant test setting push_p.
213 (output_toc): Fix formatting.
214 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
215 cc_reg_not_cr0_operand constraint.
216 (booldi3, boolcdi3 splitters): Same.
218 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
220 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
222 2002-02-22 David Edelsohn <edelsohn@gnu.org>
224 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
225 gcc invoked with -shared-libgcc.
227 2002-02-22 Jakub Jelinek <jakub@redhat.com>
230 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
231 decl if any of elements was TREE_USED.
233 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
235 * config/sparc/sol2.h: Don't include sys/mman.h.
236 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
237 (arith_4096_operand): Don't throw high bits away.
238 (const64_operand): Take sign extension of CONST_INTs into account.
239 (const64_high_operand, sparc_emit_set_const32): Likewise.
240 (GEN_HIGHINT64): Likewise.
241 (sparc_emit_set_const64_quick1): Likewise.
242 (const64_is_2insns): Likewise.
243 (print_operand): Use trunc_int_for_mode for sign extension.
244 * config/sparc/sparc.h (SMALL_INT32): Likewise.
245 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
246 chars. Assume CONST_INT is already properly sign-extended.
247 (movdi split): Sign-extend each SImode part.
248 (andsi3 split): Don't mask high bits off, so that result
249 remains properly sign-extend.
250 (iorsi3 split): Likewise.
251 (xorsi3 split): Likewise.
253 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
255 * fold-const.c (fold): Fix typo in comments.
257 2002-02-21 Diego Novillo <dnovillo@redhat.com>
259 * Makefile.in (langhooks.o): Update dependencies.
261 2002-02-21 Diego Novillo <dnovillo@redhat.com>
263 * langhooks.c: Include flags.h.
265 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
267 * testsuite/gcc.dg/attr-alwaysinline.c: New.
269 * c-common.c (c_common_post_options): Set inline trees by
272 * doc/extend.texi (Function Attributes): Document always_inline
274 Update documentation about inlining when not optimizing.
276 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
278 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
279 unless DECL_ALWAYS_INLINE.
281 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
282 unless DECL_ALWAYS_INLINE.
283 (c_disregard_inline_limits): Disregard if always_inline set.
285 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
286 Disregard if always_inline set.
287 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
288 unless DECL_ALWAYS_INLINE.
290 * attribs.c (handle_always_inline_attribute): New.
291 (c_common_attribute_table): Add always_inline.
293 * config/rs6000/altivec.h: Add prototypes for builtins
294 requiring the always_inline attribute.
296 2002-02-21 Eric Christopher <echristo@redhat.com>
298 * expmed.c (store_bit_field): Try to simplify the subreg
299 before generating a new one when when the mode size of
300 value is less than maxmode.
302 2002-02-21 Richard Henderson <rth@redhat.com>
304 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
305 than gen_rtx_PLUS to form the sum.
306 * explow.c (force_reg): Rearrange to not allocate new pseudo
307 when force_operand returns a register.
308 * expr.c (expand_assignment): Allow offset_rtx expansion to
309 return a sum. Do not force addresses into registers.
310 (expand_expr): Likewise.
311 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
312 to canonicalize arithmetic that didn't simpify.
313 (simplify_plus_minus): New argument force; update
314 all callers. Don't split CONST unless we can do something with it,
315 and wouldn't lose the constness of the operands.
317 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
318 that we generated earlier.
320 2002-02-21 Tom Tromey <tromey@redhat.com>
322 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
323 (output_line_info): Use constant `1', with a long explanatory
325 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
327 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
329 * jump.c (redirect_jump): If old label has no UID, don't try to
332 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
334 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
335 If input is constant, do shifts at compile time.
337 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
339 * doc/extend.texi: Fix some more overfull hboxes.
341 2002-02-21 Jakub Jelinek <jakub@redhat.com>
344 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
347 2002-02-21 Jakub Jelinek <jakub@redhat.com>
350 * expr.h (expand_and): Add mode argument.
351 * expmed.c (expand_and): Add mode argument.
352 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
353 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
354 * except.c (expand_builtin_extract_return_addr): Likewise.
355 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
356 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
357 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
358 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
359 * config/c4x/c4x.md: Use GEN_INT (x) instead of
360 gen_rtx (CONST_INT, VOIDmode, x).
362 2002-02-21 Jakub Jelinek <jakub@redhat.com>
365 * stmt.c (warn_if_unused_value): Move side effects test once more.
367 2002-02-20 Torbjorn Granlund <tege@swox.com>
369 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
370 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
372 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
374 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
375 SUBREG or ZERO_EXTEND.
377 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
379 * sh.h (current_function_anonymous_args): Remove.
380 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
381 of current_function_varargs and current_function_stdarg is set.
382 * sh.c (sh_expand_prologue): Check current_function_varargs /
383 current_function_stdarg / TARGET_SH5 instead of
384 current_function_anonymous_args.
386 * sh64.h (TARGET_VERSION): Define.
388 2002-02-20 David Edelsohn <edelsohn@gnu.org>
390 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
391 VRSAVE_REGNO on TARGET_ALTIVEC.
393 2002-02-20 Alan Modra <amodra@bigpond.net.au>
395 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
396 bits of SImode const_int.
397 (includes_rshift_p): Likewise.
398 (print_operand): Call mask_operand and mask64_operand with correct
400 (rs6000_output_function_epilogue): Pad traceback table to word.
401 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
402 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
403 mask64_operand with correct mode.
404 (FUNCTION_ARG_REGNO_P): Correct parentheses.
406 2002-02-20 Jakub Jelinek <jakub@redhat.com>
409 * varasm.c (get_pool_constant_mark): New.
410 * rtl.h (get_pool_constant_mark): Add prototype.
411 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
412 be represented if it has not been output.
414 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
416 * combine.c (do_SUBST): Sanity check substitutions of
417 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
418 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
419 CONST_INT into its operand.
420 (known_cond): Likewise, for ZERO_EXTEND.
421 * simplify-rtx.c (simplify_unary_operation): Fix condition to
422 allow for simplification of wide modes. Reject CONST_INTs in
423 ZERO_EXTEND when their actual mode is not given.
425 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
427 * c-decl.c (pushdecl): If no global declaration is found for an
428 extern declaration in block scope, try a limbo one.
430 2002-02-20 Jakub Jelinek <jakub@redhat.com>
433 * c-common.c (pointer_int_sum): Moved from...
434 * c-typeck.c (pointer_int_sum): ...here.
435 * c-common.h (pointer_int_sum): Add prototype.
437 2002-02-20 Jakub Jelinek <jakub@redhat.com>
440 * c-decl.c (duplicate_decls): Return 0 if issued error about
443 2002-02-20 Roger Sayle <roger@eyesopen.com>
444 Jakub Jelinek <jakub@redhat.com>
447 * tree.c (host_integerp): Ensure that the constant integer is
448 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
449 when pos is zero or non-zero respectively. Clarify comment.
450 * c-format.c (check_format_info_recurse): Fix host_integerp
451 usage; the pos argument should be zero when assigning to a
452 signed HOST_WIDE_INT.
454 2002-02-20 Richard Henderson <rth@redhat.com>
456 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
457 of the operand, rather than assuming TImode.
458 (ix86_expand_binop_builtin): Cope with commutative patterns
459 using nonimmediate_operand for both operands.
460 (ix86_expand_timode_binop_builtin): Likewise.
461 (ix86_expand_store_builtin): Validate operand 1.
462 (ix86_expand_unop1_builtin): Likewise.
464 2002-02-20 Philip Blundell <philb@gnu.org>
467 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
469 2002-02-20 Richard Henderson <rth@redhat.com>
472 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
474 2002-02-20 Tom Tromey <tromey@redhat.com>
476 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
477 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
478 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
479 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
480 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
483 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
485 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
486 for (const_int 0) in X not just INTVAL.
488 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
490 * doc/extend.texi: Avoid or reduce overfull hboxes.
492 2002-02-20 Diego Novillo <dnovillo@redhat.com>
494 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
495 operations if the field does not start at a mode boundary.
497 2001-02-20 Joel Sherrill <joel@OARcorp.com>
499 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
500 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
501 Also done for -Acpu and -Amachine.
503 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
505 * cppinit.c (init_dependency_output): Take deps output file
506 from -o if none given with -MF. Suppress normal output.
507 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
508 * doc/cpp.texi, doc/invoke.texi: Update.
510 2002-02-19 Zack Weinberg <zack@codesourcery.com>
512 * toplev.c (output_quoted_string): Write unprintable
513 characters with octal escapes.
515 2002-02-19 David Edelsohn <edelsohn@gnu.org>
517 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
518 really_call_used[VRSAVE_REGNO] if not Altivec.
520 2002-02-19 Alan Modra <amodra@bigpond.net.au>
522 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
524 (constant_pool_expr_1): Fix formatting.
525 (rs6000_legitimize_reload_address): Likewise.
527 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
529 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
530 now that we have one.
532 2002-02-19 Zack Weinberg <zack@codesourcery.com>
534 * tree.h (struct tree_common): Remove aux. Add unused_0 at
535 end of first block of bitfields (which was only seven bits);
536 rename dummy to unused_1; remove comment which is no longer true.
538 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
540 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
542 2002-02-19 Philip Blundell <pb@nexus.co.uk>
545 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
549 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
550 arm_is_longcall_p rather than inspecting call-type cookie
552 (call_value_insn) [TARGET_THUMB]: Likewise.
554 2002-02-19 Graham Stott <grahams@redhat.com>
556 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
558 2002-02-19 David Edelsohn <edelsohn@gnu.org>
560 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
561 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
562 (FP_SAVE_INLINE): Delete.
564 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
565 * config/rs6000/eabi.asm: Remove ABI save restore routines.
566 * config/rs6000/t-ppccomm: Build crtsavres.o.
567 * config/rs6000/crtsavres.asm: New file.
569 2002-02-19 Philip Blundell <philb@gnu.org>
571 * config/arm/arm.c (use_return_insn): Don't reject interrupt
573 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
574 (output_return_instruction): Allow interrupt functions to return with
575 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
576 (arm_expand_prologue): Subtract 4 before stacking LR in an
579 2002-02-19 Philip Blundell <pb@nexus.co.uk>
581 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
582 decl, not just FUNCTION_DECL.
583 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
584 (arm_assemble_integer): Likewise.
585 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
588 2002-02-19 matthew green <mrg@eterna.com.au>
590 * config.gcc (sparc-*-netbsdelf*): Enable target.
591 (sparc64-*-netbsd*): New target.
592 * config/sparc/netbsd-elf.h: New file.
593 * config/sparc/t-netbsd64: New file.
595 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
597 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
599 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
601 * doc/invoke.texi: explicitly list the style guidelines that
604 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
606 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
608 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
611 * gcc.c (cpp_unique_options): Treat -o as indicating object file
612 only if not -E. If -E, pass -o through to the preprocessor.
614 2002-02-19 Kazu Hirata <kazu@hxi.com>
616 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
617 register number with an appropriate macro.
619 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
621 * doc/rtl.texi (Constants): Close @code tag.
623 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
625 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
626 ("mmx_uavgv4hi3"): Same.
627 ("pmulhrwv4hi3"): Same.
629 * tree-inline.c (walk_tree): Handle vectors.
631 * c-common.c (constant_expression_warning): Handle vectors.
632 (overflow_warning): Same.
634 * sched-deps.c (sched_analyze_2): Handle vectors.
636 * rtlanal.c (rtx_unstable_p): Handle vectors.
637 (rtx_varies_p): Same.
638 (count_occurrences): Same.
639 (regs_set_between_p): Same.
640 (modified_between_p): Same.
641 (modified_in_p): Same.
642 (volatile_insn_p): Same.
643 (volatile_refs_p): Same.
644 (side_effects_p): Same.
646 (inequality_comparisons_p): Same.
647 (replace_regs): Same.
648 (computed_jump_p_1): Same.
650 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
652 (inner_mode_array): New.
653 (copy_rtx): Handle vectors.
654 (copy_most_rtx): Same.
656 (get_mode_alignment): Adjust for vectors.
658 * resource.c (mark_referenced_resources): Handle vectors.
659 (mark_set_resources): Same.
661 * reload1.c (eliminate_regs): Handle vectors.
662 (elimination_effects): Same.
663 (scan_paradoxical_subregs): Same.
665 * reload.c (subst_reg_equivs): Handle vectors.
667 * regrename.c (scan_rtx): Handle vectors.
669 * regclass.c (reg_scan_mark_refs): Handle vectors.
671 * recog.c (find_single_use_1): Handle vectors.
673 * local-alloc.c (equiv_init_varies_p): Handle vectors.
674 (contains_replace_regs): Same.
675 (memref_referenced_p): Same.
677 * integrate.c (copy_rtx_and_substitute): Handle vectors.
678 (subst_constants): Same.
680 * genattrtab.c (attr_copy_rtx): Handle vectors.
681 (encode_units_mask): Same.
682 (clear_struct_flag): Same.
683 (count_sub_rtxs): Same.
685 * gcse.c (want_to_gcse_p): Handle vectors.
686 (oprs_unchanged_p): Same.
688 (oprs_not_set_p): Same.
689 (expr_killed_p): Same.
690 (compute_transp): Same.
691 (store_ops_ok): Same.
693 * function.c (purge_addressof_1): Do not allow paradoxical subregs
695 (fixup_var_refs_1): Same.
696 (instantiate_virtual_regs_1): Same.
698 * fold-const.c (operand_equal_p): Handle vectors.
700 (rtl_expr_nonnegative_p): Same.
702 * flow.c (mark_used_regs): Handle vectors.
704 * df.c (df_uses_record): Handle vectors.
706 * cselib.c (cselib_subst_to_values): Handle vectors.
707 (cselib_mem_conflict_p): Same.
710 * cse.c (canon_reg): Handle vectors.
712 (cse_process_notes): Same.
713 (count_reg_usage): Same.
716 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
718 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
720 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
721 (gen_rtx): Handle CONST_VECTOR.
722 (gen_const_vector_0): New.
723 (copy_rtx_if_shared): CONST_VECTORs can be shared.
724 (reset_used_flags): Same.
726 (initializer_constant_valid_p): Handle VECTOR_CST.
728 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
730 * doc/rtl.texi (Constants): Document const_vector.
731 (CONST0_RTX): Update for vectors.
734 * print-tree.c (print_node): Add case for VECTOR_CST.
736 * tree.h (TREE_VECTOR_CST_ELTS): New.
737 (struct tree_vector): New.
738 (union tree_node): Add vector node.
739 (build_vector): Add prototype.
741 * tree.def (VECTOR_CST): New.
743 * tree.c (build_vector): New.
745 * expmed.c (make_tree): Handle CONST_VECTOR.
747 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
748 (CONST_VECTOR_ELT): New.
749 (CONST_VECTOR_NUNITS): New.
751 * machmode.h (GET_MODE_INNER): New.
752 (DEF_MACHMODE): Accept 8th arg.
754 * machmode.def: Add 8th argument for vector inner mode.
755 Add inner vector modes for vectors.
757 * rtl.def (VEC_CONST): Remove.
760 * expr.c (clear_storage): Allow vectors.
761 (is_zeros_p): Handle VECTOR_CST.
763 * varasm.c (output_constant_pool): Handle vectors.
764 (rtx_const): Add veclo and vechi fields.
765 (kind): Add RTX_VECTOR.
766 (decode_rtx_const): Add case for vector.
768 * config/rs6000/rs6000-protos.h: Add zero_constant.
770 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
771 constants. Force easy vector constants into memory.
772 (easy_vector_constant): New.
773 (emit_easy_vector_constant): New.
774 (rs6000_legitimize_reload_address): Do not generate bad reloads on
777 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
779 ("altivec_lvxl"): Same.
780 (altivec_lvebx): Same.
781 (altivec_lvehx): Same.
782 (altivec_lvewx): Same.
783 ("*movv4si_const0"): New.
784 ("*movv4sf_const0"): New.
785 ("*movv8hi_const0"): New.
786 ("*movv16qi_const0"): New.
788 2002-02-18 Kazu Hirata <kazu@hxi.com>
790 * config/h8300/h8300.c (notice_update_cc): Use
793 2002-02-18 Kazu Hirata <kazu@hxi.com>
795 * config/h8300/h8300.md (divmod patterns): Change the
796 constraints for operands[1] to register_operand.
798 2002-02-18 Kazu Hirata <kazu@hxi.com>
800 * config/h8300/h8300-protos.h: Remove the prototype for
802 * config/h8300/h8300.c (p_operand): Remove.
803 * config/h8300/h8300.md: Replace p_operand with
806 2002-02-18 Philip Blundell <pb@nexus.co.uk>
808 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
810 (output_return_instruction): Allow use of LDR to unstack
811 return addresss even for interrupt handlers or when
812 interworking. If compiling for ARMv5, use interworking-safe
813 return instructions by default. Remove duplicated code and
814 lengthy "strcat" sequences.
816 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
818 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
819 (LINK_EH_SPEC): Define.
820 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
822 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
824 * config/s390/s390.c (s390_emit_prologue): Do not set the
825 frame_related flag for call-clobbered registers.
827 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
829 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
830 (construct_container): Fix handling of SSE operands.
831 (ix86_expand_builtin): Fix handling of 64bit pointers.
832 (mmx_maskmovq_rex): New pattern.
834 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
836 * regrename.c (kill_set_value): Handle subregs properly.
838 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
840 * objc/objc-act.c (handle_impent): Remove leading '*'
841 from objc_class_name.
843 2002-02-17 Richard Henderson <rth@redhat.com>
845 * config/alpha/alpha.c (some_small_symbolic_operand,
846 some_small_symbolic_operand_1, split_small_symbolic_operand,
847 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
848 Handle small SYMBOL_REFs anywhere, not just inside memories.
849 * config/alpha/alpha-protos.h: Update.
850 * config/alpha/alpha.h (PREDICATE_CODES): Update.
851 * config/alpha/alpha.md (small symbolic operand splitter): Update.
853 2002-02-17 Roland McGrath <roland@frob.com>
855 * config.gcc (powerpc-*-gnu-gnualtivec*,
856 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
857 * config/rs6000/gnu.h: New file.
858 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
859 Grok "gnu" in rs6000_abi_name.
860 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
861 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
862 Grok -mcall-gnu analogous to -mcall-linux et al.
863 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
864 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
865 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
867 2002-02-17 Jakub Jelinek <jakub@redhat.com>
870 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
873 2002-02-17 Philipp Thomas <pthomas@suse.de>
875 * config/cris/cris.h: Undefine STARTFILE_SPEC and
876 ENDFILE_SPEC before (re)defining them.
878 2002-02-17 Kazu Hirata <kazu@hxi.com>
880 * config/h8300/h8300.c: Fix formatting.
881 * config/h8300/h8300.h: Likewise.
883 2002-02-17 Philipp Thomas <pthomas@suse.de>
885 * doc/tm.texi: Explain why empty strings should not be
886 marked for translation.
888 2002-02-17 Philipp Thomas <pthomas@suse.de>
890 * final.c (output_operand_lossage): Changed to accept
891 printf style arguments. Change calls where necessary.
892 * output.h (output_operand_lossage): Change declaration
893 accordingly. Update copyright.
894 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
895 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
896 Update copyright date where necessary.
898 * config/i386/i386.c (print_operand): Likewise. Remove use of
901 * config/cris/cris.c (cris_operand_lossage): Likewise.
902 Rename parameter so that exgettext recognizes it as
903 translatable message.
904 (LOSE_AND_RETURN): Rename parameter to msgid.
906 2002-02-17 Kazu Hirata <kazu@hxi.com>
908 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
909 hard coded register number with an appropriate macro.
910 (HARD_REGNO_MODE_OK): Likewise.
911 (ARG_POINTER_REGNUM): Likewise.
912 (STATIC_CHAIN_REGNUM): Likewise.
913 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
914 * config/h8300/h8300.md (define_constants): Define more
917 2002-02-17 Philipp Thomas <pthomas@suse.de>
919 * config/i386/i386.h: Don't mark empty strings for translation.
921 2002-02-16 H.J. Lu <hjl@gnu.org>
923 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
925 2002-02-16 Zack Weinberg <zack@codesourcery.com>
927 * cppinit.c (merge_include_chains): Check for brack being
928 NULL before attempting to merge it with qtail.
930 2002-02-16 Andrew Cagney <ac131313@redhat.com>
932 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
935 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
937 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
939 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
941 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
942 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
943 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
945 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
947 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
948 now only if !TARGET_FIX.
949 (*movsi_nt_vms_fix): New pattern.
951 2002-02-16 Douglas B Rupp <rupp@gnat.com>
953 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
954 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
955 (alpha_sa_mask, alpha_sa_size): Reflect above change.
956 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
957 (alpha_start_function, alpha_expand_epilogue): Likewise.
958 (unicosmk_gen_dsib): Likewise.
960 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
962 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
964 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
966 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
967 check_and_change_labels, s390_final_chunkify): Delete.
968 (s390_split_branches, s390_chunkify_pool): New functions.
969 (s390_function_prologue): Call them.
971 * config/s390/s390.h (S390_REL_MAX): Delete.
972 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
974 * config/s390/s390.md (cjump, icjump, jump): Fix length
975 attribute calculation.
978 2002-02-15 David Edelsohn <edelsohn@gnu.org>
980 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
981 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
983 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
985 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
986 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
987 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
989 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
991 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
993 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
995 * reload.c (find_dummy_reload): Check that an output register
996 is valid for its mode.
998 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
1000 * combine.c (known_cond): After replacing the REG of a SUBREG, try
1003 * function.c (assign_parms): Demote promoted argument passed by
1004 transparent reference.
1006 2001-02-14 Joel Sherrill <joel@OARcorp.com>
1008 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
1009 -Acpu() and -Amachine() to eliminate warnings.
1011 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
1013 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
1015 2002-02-14 Kazu Hirata <kazu@hxi.com>
1017 * config/h8300/h8300-protos.h: Update the prototype for
1019 * config/h8300/h8300.c (const_costs): Treat SET as a little
1020 more expensive operation.
1021 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
1022 reference to const_costs.
1024 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
1026 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
1028 2002-02-14 Jakub Jelinek <jakub@redhat.com>
1031 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
1032 use arguments from newtype.
1034 2002-02-13 Eric Christopher <echristo@redhat.com>
1036 * config/mips/mips.c (override_options): Add check for march/mipsX
1037 on the same command line. Fix error message in cpu processing.
1038 Remove architecture and ISA checks.
1040 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
1042 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
1044 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
1046 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
1048 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
1050 ("*movv8hi_internal1"): Same.
1051 ("*movv16qi_internal1"): Same.
1052 ("*movv4sf_internal1"): Same.
1054 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
1055 not push_reload for altivec modes.
1057 2002-02-13 Joel Sherrill <joel@OARcorp.com>
1059 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
1060 all RTEMS targets including removal of #includes from config/*/rtems*.h
1061 file and adding them to tm_file setting. Added xm_defines=POSIX to
1063 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
1064 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
1065 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
1066 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
1067 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
1068 config/m68k/rtemself.h: Ditto.
1069 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
1070 config/mips/rtems64.h: Ditto.
1071 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
1072 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
1074 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
1075 config/sparc/rtemself.h: Ditto.
1076 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
1077 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
1078 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
1080 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
1081 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
1082 target made more similar to i386-elf.
1083 * config/i386/t-rtems-i386: Added soft float support and multilibs.
1084 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
1085 be similar to config/m68k/t-m68kelf.
1086 * gthr-rtems.h: Encapsulate with extern "C" for C++.
1088 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
1090 * regmove.c (kill_value): Handle subregs.
1092 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
1094 * i386.md (mul patterns): Allow memory operand to be first;
1095 add expanders where needed; fix constraints.
1096 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
1097 Allow memory operand to be the first.
1099 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
1102 2002-02-13 Jakub Jelinek <jakub@redhat.com>
1105 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
1108 2002-02-13 Jakub Jelinek <jakub@redhat.com>
1110 PR optimization/5547:
1111 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
1112 all valid IA-32 address modes involving non-scaled %ebx and
1113 GOT/GOTOFF as displacement.
1115 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
1117 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
1118 after emitting ltorg insns.
1120 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
1121 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
1122 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
1123 *abssf2): Fix "op_type" attribute.
1125 2002-02-13 Douglas B Rupp <rupp@gnat.com>
1127 * mkconfig.sh: Avoid using a subshell redirect.
1128 ($output.T): Change to $(output)T.
1129 (ENABLE_NLS): Remove unneeded undef.
1131 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
1132 * config/alpha/x-vms (libsubdir): Define.
1134 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
1135 register frame procedures. Optimize retrieving context.
1137 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
1138 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
1139 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
1141 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1143 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
1144 Make same change as for find_base_value.
1146 2002-02-13 Kazu Hirata <kazu@hxi.com>
1148 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
1149 of QImode and SImode.
1151 2002-02-13 Kazu Hirata <kazu@hxi.com>
1153 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
1154 length computation of movsi.
1155 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
1157 2002-02-13 Kazu Hirata <kazu@hxi.com>
1159 * config/h8300/h8300.md (subqi3): Tighten the predicate for
1160 operands[2] to register_operand.
1162 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
1164 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
1166 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
1168 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
1169 for altivec_lvx* and altivec_stvx*.
1170 ("*movv4si_internal"): Add constraint for loading from GPRs.
1171 ("*movv8hi_internal1"): Same.
1172 ("*movv16qi_internal1"): Same.
1173 ("*movv4sf_internal1"): Same.
1175 * config/rs6000/rs6000.c (altivec_register_operand): New.
1177 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
1178 altivec_register_operand.
1180 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
1182 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
1185 2002-02-13 Stan Shebs <shebs@apple.com>
1187 * c-typeck.c (digest_init): Handle vectors.
1188 (really_start_incremental_init): Same.
1189 (pop_init_level): Same.
1190 (process_init_element): Same.
1192 * varasm.c (output_constant): Same.
1194 * expr.c (clear_storage): Same.
1195 (store_constructor): Same.
1197 2002-02-12 Eric Christopher <echristo@redhat.com>
1199 * explow.c (hard_function_value): Add comment explaining
1200 signed/unsigned comparison.
1202 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1204 * jump.c (never_reached_warning): Add finish argument.
1205 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
1206 real insn after end.
1207 * rtl.h (never_reached_warning): Adjust prototype.
1208 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
1209 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
1210 never_reached_warning.
1212 2002-02-12 Graham Stott <grahams@redhat.com>
1214 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
1216 2002-02-12 Kazu Hirata <kazu@hxi.com>
1218 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
1219 logical shifts on H8/300.
1220 (shift_alg_si): Improve several shifts on H8/300.
1221 (get_shift_alg): Likewise.
1223 2002-02-12 Graham Stott <grahams@redhat.com>
1225 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
1227 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1229 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
1230 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
1232 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
1234 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
1235 non-CONST_INT through default_assemble_integer.
1236 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
1237 <case 8>: Abort for CONST_DOUBLE.
1239 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1241 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
1243 * config/pa/pa-linux.h (LIB_SPEC): Delete.
1244 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
1246 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
1248 * config/stormy16/stormy16.md (zero_extendqihi2): New.
1250 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
1252 * regrename.c (regrename_optimize): Don't accept a
1253 part-clobbered register if the replaced register is not part
1256 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
1257 take padding into account when computing the argument value.
1259 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
1261 * combine.c (try_combine): Apply substitutions in
1262 CALL_INSN_FUNCTION_USAGE too.
1264 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
1266 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
1267 __builtin_altivec_abs*.
1270 * config/rs6000/rs6000.h (rs6000_builtins): Add
1271 ALTIVEC_BUILTIN_ABS*.
1273 * config/rs6000/altivec.h: Use const char for builtins expecting
1275 (vec_abs): New versions for C and C++.
1278 2002-02-10 Kazu Hirata <kazu@hxi.com>
1280 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
1283 2002-02-10 Kazu Hirata <kazu@hxi.com>
1285 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
1286 constant definition from h8300.md.
1287 (FRAME_POINTER_REGNUM): Likewise.
1288 * config/h8300/h8300.md (define_constants): Add FP_REG.
1290 2002-02-10 Kazu Hirata <kazu@hxi.com>
1292 * config/h8300/h8300.c (print_operand): Remove redundant code.
1294 2002-02-10 Kazu Hirata <kazu@hxi.com>
1296 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
1297 * config/h8300/h8300.c (byte_reg): Make it static.
1299 2002-02-10 Richard Henderson <rth@redhat.com>
1302 * c-typeck.c (incomplete_type_error): Handle flexible array members.
1304 2002-02-10 Richard Henderson <rth@redhat.com>
1307 * tree.c (append_random_chars): Don't abort if main_input_filename
1310 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
1312 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
1314 2002-02-10 Kazu Hirata <kazu@hxi.com>
1316 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
1317 (pushhi1): Likewise.
1319 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
1321 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
1322 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
1324 2002-02-09 David O'Brien <obrien@FreeBSD.org>
1326 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
1328 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
1330 2002-02-09 Kazu Hirata <kazu@hxi.com>
1332 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
1333 a half of an SImode register on H8/300.
1335 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
1337 * i386.md (movdi_2): Add missing '!'.
1339 2002-02-09 Kazu Hirata <kazu@hxi.com>
1341 * config/h8300/h8300.h: Fix formatting. Remove commented-out
1344 2002-02-09 Kazu Hirata <kazu@hxi.com>
1346 * config/h8300/h8300.md (length): Correct the distance valid
1347 for the short branch.
1349 2002-02-09 Kazu Hirata <kazu@hxi.com>
1351 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
1353 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
1355 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
1356 registers in SImode.
1357 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
1360 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
1363 Contribute sh64-elf.
1364 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
1365 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
1366 (sh_cannot_modify_jumps_p): New function.
1367 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
1368 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
1369 (sh_ms_bitfield_layout_p): New function.
1370 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
1371 Zack Weinberg <zack@codesourcery.com>
1372 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
1373 expand_simple_binop instead of expand_binop.
1374 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
1375 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
1376 use of .quad and .uaquad.
1377 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
1378 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
1379 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1380 * config/sh/sh.md (movdi_const, movdi_const_32bit,
1381 movdi_const_16bit): Make sure all CONSTs have modes.
1382 (sym2PIC): Ditto, but by adjusting all callers.
1383 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
1384 if the prologue calls the SHmedia argument decoder or register
1386 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1387 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
1388 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
1389 (sh_expand_epilogue): Don't emit USE of return target register.
1390 (prepare_move_operands): Legitimize DImode PIC addresses.
1391 (sh_media_register_for_return): Skip tr0, used to initialize the
1393 (sh_expand_prologue): Remove explicit USE of return register.
1394 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
1395 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
1396 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
1397 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
1398 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
1400 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
1401 (MOVI_SHORI_BASE_OPERAND_P): New.
1402 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
1403 (EXTRA_CONSTRAINT_T): Define in terms of them.
1404 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
1405 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
1406 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
1407 alternatives supporting TARGET_REGS.
1408 (UNSPEC_GOTPLT): New constant.
1409 (movdi split): Move incrementing of LABEL_NUSES...
1410 (movdi_const, movdi_const_32bit): Here. Use
1411 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
1412 (movdi_const_16bit): New.
1413 (call, call_value) [flag_pic]: Use GOTPLT.
1414 (call_pop, call_value_pop): New expands.
1415 (call_pop_compact, call_pop_rettramp): New insns.
1416 (call_value_pop_compact, call_value_pop_rettramp): New insns.
1417 (sibcall) [flag_pic]: Use GOT.
1418 (builtint_setjmp_receiver): Remove bogus, unused expand.
1419 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
1420 (*pt, *ptb, ptrel): New insns.
1421 (sym2GOT): Handle DImode GOT.
1422 (sym2GOTPLT, symGOTPLT2reg): New expands.
1423 (sym2PIC): New expand.
1424 (shcompact_return_tramp): Use GOTPLT to return trampoline.
1425 (shcompact_return_tramp_i): Use return register explicitly.
1426 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
1427 disable flag_reorder_blocks.
1428 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
1429 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
1430 clobbers, for clarity.
1431 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
1432 restoring of r0 in macl as MAYBE_DEAD.
1433 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1434 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
1435 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
1436 alter_subreg all over.
1437 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
1438 reload, instead of emitting instructions that would require
1440 (casesi_load_media): Add missing modes.
1441 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
1442 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
1443 as used if the argument decoder is called.
1444 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
1445 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
1446 Pmode, then extend it to DImode if necessary.
1447 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
1448 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
1449 constants in FPU-enabled SHmedia, let them be loaded from memory.
1450 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
1451 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
1452 Adjust whitespace in assembly output templates.
1453 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
1454 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
1455 mode of if_then_else.
1456 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
1457 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
1459 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
1460 Joern Rennecke <amylaar@redhat.com>
1461 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
1462 (SUBTARGET_CPP_PTR_SPEC): New.
1463 (SUBTARGET_CPP_SPEC): Remove.
1464 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
1465 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
1466 Fix typo in previous checkin.
1467 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
1468 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
1469 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
1470 Alexandre Oliva <aoliva@redhat.com>
1471 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
1472 what single FP register can hold for SHmedia target.
1473 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
1474 Alexandre Oliva <aoliva@redhat.com>
1475 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
1476 Do not split into SUBREG.
1477 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
1478 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
1479 and added new functions as specified in SH5 ABI r9.
1480 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
1481 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
1483 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
1484 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
1485 gen_consttable_4 and gen_consttable_8. Emit multiple labels
1486 and consttable_window_ends.
1487 2001-06-03 Graham Stott <grahams@redhat,com>
1488 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
1489 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
1490 * config/sh/sh.c (print_operand): Handle floating-point pair,
1491 vector and matrix registers.
1492 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
1493 vector modes into account.
1494 * config/sh/sh.md (movv2sf): Split move between registers into
1496 (movv4sf, movv16sf): Introduce insns that get split only after
1498 * config/sh/shmedia.h: Fix Copyright dates.
1499 * config/sh/ushmedia.h: Likewise. Move loop counter
1500 declarations into conditionals that uses them.
1501 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
1503 * config/sh/sshmedia.h: Fix Copyright dates.
1504 (sh_media_PUTCFG): Fix constraints.
1505 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
1506 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
1507 ptrmemfunc_vbit_in_delta for SH5.
1508 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
1509 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
1510 * invoke.texi: Likewise.
1511 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
1512 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
1513 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
1514 GCC_pop_shmedia_regs_nofpu): New global symbols.
1515 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
1516 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
1517 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
1518 compact function with nonlocal labels.
1519 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
1520 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
1521 (initial_elimination_offset): Account for their stack space.
1522 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
1523 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
1524 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
1525 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
1526 least one of the operands to be a register.
1527 (movv2sf): Likewise. Renamed to movv2sf_i.
1528 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
1529 prepare_move_operands() before emitting SHmedia insns.
1530 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
1531 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
1532 Don't save nor initialize r12. Don't mis-align the stack.
1533 Pad the code with a nop.
1534 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
1536 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
1537 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
1538 [__SHMEDIA__]: Implement.
1539 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
1540 * config/sh/sh.md: Set latency of `pt' closer to reality.
1541 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
1542 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
1543 Set move, load and store type attributes.
1544 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
1545 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
1547 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
1548 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
1549 * config/sh/sh.c (sh_media_register_for_return): New function.
1550 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
1551 branch-target register.
1552 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
1553 * config/sh/sh.md (return_media_i): Use any call-clobbered
1554 branch-target register.
1555 (return_media): If r18 wasn't copied in the prologue, copy it
1557 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
1558 Clear class FP0_REGS.
1559 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
1561 2001-03-08 DJ Delorie <dj@redhat.com>
1562 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
1563 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
1564 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
1565 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
1566 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
1567 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
1568 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
1569 return value correctly for call_cookie.
1570 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
1571 * config/sh/crt1.asm (start): Modified so as to call
1572 ___setup_argv_and_call_main.
1573 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
1574 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
1576 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
1577 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
1578 (STRIP_NAME_ENCODING): Use it.
1579 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
1580 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
1581 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
1582 prepare_scc_operands().
1583 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
1584 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
1585 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
1586 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
1587 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
1588 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
1589 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
1590 used in shcompact_incoming_args.
1591 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
1593 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
1595 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
1597 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
1598 Simplify. Adjust. Add sanity check.
1599 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
1601 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
1603 (udivsi3, divsi3): Use them.
1604 (force_mode_for_call): New insn.
1605 (call, call_value, sibcall_value): Emit it before SHcompact
1607 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
1608 * config/sh/sh.md (call, call_value, sibcall): Make sure the
1609 call cookie is non-NULL before taking its value.
1610 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
1611 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
1612 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
1613 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
1615 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
1616 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
1617 temporary for stack adjusts. Use MACL and MACH to pass
1618 arguments to shcompact_incoming_args.
1619 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
1621 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
1622 (nested_trampoline): Load static chain address into r1.
1623 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
1624 2001-01-07 Alexandre Oliva <aoliva@redhat.com
1625 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
1626 fp_arith_reg_operand().
1627 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
1628 * config/sh/sh.md (casesi): Sign-extend the first two operands,
1629 and use signed compares for them.
1630 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
1631 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
1632 ones properly aligned.
1633 (find_barrier): Account for extra alignment needed for 8-byte wide
1635 (machine_dependent_reorg): Require a label for the second 4-byte
1636 constant after an 8-byte one.
1637 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
1639 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
1640 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
1641 last_float when switching float modes.
1642 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
1643 auto-increment for general-purpose registers.
1644 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
1646 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
1648 * config/sh/sh.c (sh_builtin_saveregs): Support using all
1649 registers for varargs.
1650 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
1651 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
1652 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
1653 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
1654 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
1655 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
1656 call_cookie accordingly.
1657 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
1658 (SHCOMPACT_BYREF): Likewise.
1659 (SHCOMPACT_FORCE_ON_STACK): New macro.
1660 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
1661 (sh_builtin_saveregs): Likewise.
1662 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
1663 shcompact_incoming_args): Use new shift values. Support
1664 sequences of consecutive and non-consecutive pushes/pops.
1665 * config/sh/sh.md (return): Don't explicitly use PR_REG.
1666 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
1667 * config/sh/sh.h (TEXT_SECTION): Define.
1668 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
1669 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
1670 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
1671 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
1672 return values on FPU-enabled SHmedia.
1673 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
1674 FPU-enabled SHmedia.
1675 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
1676 value is returned in a non-FP reg and is not returned by
1678 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
1680 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
1681 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
1682 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
1683 quad-aligned to be passed by callee-copy reference.
1684 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
1685 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
1686 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
1687 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
1688 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
1689 copying low-numbered FP regs to r7 and r8.
1690 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
1691 FP regs to general-purpose regs only if the copy was passed on the
1693 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
1694 copying FP reg to r9.
1695 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
1696 copy FP regs to general-purpose regs only in outgoing calls.
1697 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
1698 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
1700 * config/sh/sh.h (struct sh_args): Document all fields.
1701 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
1702 passed partially on the stack should not consider making
1704 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
1705 stack_regs only for incoming calls. When passing FP args,
1706 make sure there are FP regs available before modifying
1708 (SHCOMPACT_BYREF): Pass double args in general-purpose
1709 registers by reference.
1710 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
1711 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
1712 attempt to generate sibcalls if the caller got any arguments
1714 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
1715 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
1716 to 8-byte boundaries.
1717 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
1718 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
1719 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
1720 stored in the stack.
1721 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
1722 for the offsets to have the ISA bit set.
1723 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
1724 invocation. Use beq instead of bgt to mark end of sequence of
1726 (shcompact_incoming_args): Fix store of r2. Use beq instead of
1727 bgt to mark end of sequence of stores.
1728 * config/sh/sh.c (arith_operand): Don't check whether
1729 CONST_OK_FOR_J for now.
1730 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
1731 instead of long for conversion.
1732 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
1733 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
1734 before passing it to fprintf.
1735 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
1736 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
1737 Call set_fpscr before reading/writing SR.
1738 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
1740 * config/sh/lib1funcs.asm: Add `.align 2' directives before
1742 (FMOVD_WORKS): Define on SH5 with FPU.
1743 (set_fpscr): Define on SH5. Remove separate _fpscr_values
1745 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
1747 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
1748 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
1750 (ia_main_table): Ditto.
1751 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
1752 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
1753 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
1754 the definitions from sh.h.
1755 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
1757 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
1758 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
1759 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
1760 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
1761 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
1762 Increment LABEL_NUSES.
1764 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
1766 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
1768 * config/sh/elf.h (SIZE_TYPE): Likewise.
1769 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
1770 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
1771 shcompact_incoming_args): Load switch table addresses using
1773 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
1774 (NO_BUILTIN_SIZE_TYPE): Define.
1775 (SIZE_TYPE): Don't define.
1776 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
1777 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
1778 definition of __SH5__=32 for -m5-compact-nofpu.
1779 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
1781 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
1782 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
1783 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
1784 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
1785 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
1786 (INSN_LENGTH_ALIGNMENT): Likewise.
1787 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1788 * config/sh/sh.md (call, call_value, sibcall): Simplify
1789 copying of non-branch-target register.
1790 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1791 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
1792 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
1793 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1794 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
1795 floating-point values as structs.
1796 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
1797 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
1798 general-purpose register.
1799 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
1800 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
1801 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
1802 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
1803 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
1804 (ENCODE_SECTION_INFO): Enclose variables and constants in
1806 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
1807 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
1808 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
1809 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
1810 only for LABEL_REFs. For SYMBOL_REFs, prepend
1811 SH_DATALABEL_ENCODING to the symbol name.
1812 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
1814 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
1815 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
1817 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
1818 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
1819 (DATALABEL_REF_P): Don't require CONST.
1820 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
1822 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
1823 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
1825 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
1826 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
1827 Use shallow_copy_rtx and PUT_MODE to change the mode of
1828 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
1829 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
1830 on SHmedia using GENERAL_REGs.
1831 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
1832 bltu_media_i): Fix reversion of conditions.
1833 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
1834 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
1835 * config/sh/sh.c (output_far_jump): Save r13 in macl.
1836 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
1837 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
1838 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
1839 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
1840 (GCC_nested_trampoline): Likewise.
1841 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
1842 * config/sh/sh.c (gen_datalabel_ref): Define.
1843 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
1844 (INITIALIZE_TRAMPOLINE): Likewise.
1845 (TRAMPOLINE_ADJUST_ADDRESS): Define.
1846 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
1847 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
1848 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
1849 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
1850 (ic_invalidate): Adjust for SH5.
1851 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
1852 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
1854 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
1855 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
1856 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
1857 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
1858 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
1859 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
1860 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
1861 * config/sh/sh.c (target_reg_operand): Match only target-branch
1862 registers and pseudos that aren't virtual registers.
1863 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
1864 Copy operands that don't match target_reg_operand to pseudos.
1865 (call_media, call_value_media, sibcall_media): Use
1866 target_reg_operand instead of target_operand.
1867 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
1868 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
1869 * config/sh/sh.c (target_reg_operand): Match hardware registers
1870 other than branch-target registers.
1871 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
1872 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
1873 (fpscr_values) [SH5 == 32]: Define.
1874 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
1875 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
1876 Handle function addresses coming in SUBREGs.
1877 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
1878 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
1879 shcompact_return_trampoline): Use datalabel where appropriate.
1880 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
1881 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
1882 general-purpose register to copy one branch-target register to
1884 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
1885 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
1886 SYMBOL_REFs with VOIDmode.
1887 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
1888 bltu_media_i): New insns.
1889 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
1890 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
1891 (INIT_CUMULATIVE_ARGS): Likewise.
1892 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
1893 * machmode.def (V16SFmode): New mode.
1894 * c-common.c (type_for_mode): Support V2SF and V16SF.
1895 * tree.c (build_common_tree_nodes_2): Likewise.
1896 * tree.h (tree_index): Likewise.
1897 * calls.c (emit_call_1): Take args_so_far. Adjust all
1898 callers. Introduce CALL_POPS_ARGS.
1899 * tm.texi (CALL_POPS_ARGS): Document.
1900 * config/sh/crt1.asm: Implement in SHmedia mode.
1901 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
1902 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
1903 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
1904 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
1905 Implement divsi and udivsi in SHmedia mode. Introduce
1906 SHcompact trampolines.
1907 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
1909 (regno_reg_class): Rewrite.
1910 (fp_reg_names): Remove.
1911 (sh_register_names, sh_additional_register_names): New.
1912 (print_operand): Added `u'. Support SUBREGs in addresses.
1913 Add parentheses around shifted CONSTs.
1914 (output_file_start): Output .mode and .abi directives.
1915 (shiftcosts, addsubcosts, multcosts): Adjust.
1916 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
1917 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
1918 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
1919 bytes, not registers. Take into account the need for the
1920 SHcompact incoming args trampoline. Adjust all callers.
1921 (sh_expand_prologue): Take stack_regs into account. Call
1922 incoming args trampoline. Keep stack aligned as per SH5 ABI.
1923 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
1924 stack aligned as per SH5 ABI.
1925 (sh_builtin_saveregs): Support SH5 ABI.
1926 (sh_build_va_list, sh_va_start): Likewise.
1927 (initial_elimination_offset): Take alignment into account.
1928 Compute location of PR according to the SH5 stack frame.
1929 (arith_reg_operand): Reject branch-target registers.
1930 (shmedia_6bit_operand): New.
1931 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
1932 (target_reg_operand): Match DImode only. Accept SUBREGs.
1933 (target_operand): New.
1934 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
1935 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
1936 SIBCALL_REGS for SHmedia.
1937 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
1938 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
1939 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
1940 (TARGET_SWITCHES): New SH5 flags.
1941 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
1942 VALID_REGISTER_P to disable unsupported registers.
1943 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
1944 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
1945 (FUNCTION_ARG_PADDING): Define.
1946 (FASTEST_ALIGNMENT): Adjust.
1947 (SH_REGISTER_NAMES_INITIALIZER): New.
1948 (sh_register_names): Declare.
1949 (DEBUG_REGISTER_NAMES): Define.
1950 (REGISTER_NAMES): Define based on sh_register_names.
1951 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
1952 (sh_additional_register_names): Declare.
1953 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
1954 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
1955 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
1956 (REGISTER_NATURAL_MODE): Define.
1957 (FIRST_PSEUDO_REGISTER): Adjust.
1958 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
1959 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
1960 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
1961 (VECTOR_MODE_SUPPORTED_P): Define.
1962 (REG_CLASS_CONTENTS): Adjust.
1963 (SMALL_REGISTER_CLASSES): Adjust.
1964 (REG_ALLOC_ORDER): Adjust.
1965 (INDEX_REG_CLASS): Adjust.
1966 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
1967 (CONST_OK_FOR_LETTER_P): Adjust.
1968 (PREFERRED_RELOAD_CLASS): Adjust.
1969 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
1970 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
1971 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
1972 (FIRST_FP_PARM_REG): Adjust.
1973 (CALL_POPS_ARGS): Define.
1974 (FUNCTION_ARG_REGNO_P): Adjust.
1975 (struct sh_args): New fields.
1976 (GET_SH_ARG_CLASS): Adjust.
1977 (INIT_CUMULATIVE_ARGS): Adjust.
1978 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
1979 (FUNCTION_ARG_ADVANCE): Adjust.
1980 (FUNCTION_ARG): Adjust.
1981 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
1982 (FUNCTION_ARG_CALLEE_COPIES): Define.
1983 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
1984 (STRICT_ARGUMENT_NAMING): Define.
1985 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
1986 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
1987 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
1988 (SETUP_INCOMING_VARARGS): Adjust.
1989 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
1990 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
1991 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
1992 (SUBREG_OK_FOR_INDEX_P): Adjust.
1993 (EXTRA_CONSTRAINT_S): Update.
1994 (EXTRA_CONSTRAINT_T): New.
1995 (EXTRA_CONSTRAINT): Adjust.
1996 (GO_IF_LEGITIMATE_INDEX): Adjust.
1997 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
1998 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
2000 (MAX_MOVE_MAX): Define.
2002 (CONST_COSTS): Adjust.
2003 (REGISTER_MOVE_COST): Adjust.
2004 (BRANCH_COST): Adjust.
2005 (TEXT_SECTION_ASM_OP): Adjust.
2006 (DBX_REGISTER_NUMBER): Adjust.
2007 (ASM_OUTPUT_DOUBLE_INT): New.
2008 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
2009 (PREDICATE_CODES): Adjust.
2010 (PROMOTE_MODE): Adjust.
2011 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
2012 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
2013 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
2014 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
2015 (DR0_REG, DR2_REG, DR4_REG): Renumber.
2016 (TR0_REG, TR1_REG, TR2_REG): New.
2017 (XD0_REG): Renumber.
2018 (UNSPEC_COMPACT_ARGS): New.
2019 (type): Added pt and ptabs.
2020 (length): Default to 4 on SHmedia. Default pt length to 12
2021 and 20 on SHmedia32 and SHmedia64, respectively.
2022 (pt): New function unit.
2023 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
2024 Add whitespace between operands of SHmedia instructions.
2026 (adddi3_media, addsi3_media): Adjust constraints.
2027 (subsi3) [SHmedia]: Force operand 1 into a register.
2028 (udivsi3_i1_media, udivsi3_i4_media): New.
2029 (udivsi3): Support SHmedia.
2030 (divsi3_i1_media, divsi3_i4_media): New.
2031 (divsi3): Support SHmedia.
2032 (anddi3, iordi3, xordi3): Adjust constraints.
2033 (zero_extendhidi2, zero_extendqidi2): New.
2034 (extendsidi2, extendhidi2, extendqidi2): New.
2035 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
2036 (pop_e, pop_fpul, pop_4): Likewise.
2037 (movsi_media): Support FP and BT registers.
2038 (movsi_media_nofpu): New. Adjust splits to DImode.
2039 (lduw, ldub): Renamed to zero_extend* above.
2040 (movqi_media): Fix typo.
2041 (movdi_media): Support FP and BT registers.
2042 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
2043 (movdi_const_32bit): New.
2044 (shori_media): Require immediate operand. Use `u' for output.
2045 (movdf_media, movsf_media): Simplified.
2046 (movdf_media_nofpu, movsf_media_nofpu): New.
2047 (movdf, movsf): Adjust
2048 (movv2sf, movv2sf, movv16sf): New.
2049 (beq_media, beq_media_i): Adjust constraints. Don't use
2050 scratch BT register.
2051 (bne_media, bne_media_i): Likewise.
2052 (bgt_media, bgt_media_i): Likewise.
2053 (bge_media, bge_media_i): Likewise.
2054 (bgtu_media, bgtu_media_i): Likewise.
2055 (bgeu_media, bgeu_media_i): Likewise.
2056 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
2057 bunordered): Emit jump insn. Force operands to registers when
2059 (jump_media, jump): Simplify.
2060 (call_compact, call_compact_rettramp): New.
2061 (call_value_compact, call_value_compact_rettramp): New.
2062 (call_media, call_value_media): Simplify.
2063 (sibcall_compact, sibcall_media): New.
2064 (call, call_value): Adjust for SHmedia and SHcompact.
2065 (sibcall, sibcall_value, untyped_call): Likewise.
2066 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
2067 (indirect_jump): Adjust for SHmedia.
2068 (casesi_jump_media): New.
2069 (nop): Re-enable for SHmedia.
2070 (call_site): Restrict to SH1.
2071 (casesi): Adjust for SHmedia.
2072 (casesi_shift_media, casesi_load_media): New.
2073 (return): Explicitly use PR register. Call return trampoline
2075 (return_i): Explicitly use PR register.
2076 (shcompact_return_tramp, shcompact_return_tramp_i): New.
2077 (return_media): Adjust.
2078 (shcompact_incoming_args): New.
2080 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
2081 (movstrsi): Disable on SH5.
2082 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
2083 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
2084 (subsf3, subsf3_media): Likewise.
2085 (mulsf3, mulsf3_media, mac_media): Likewise.
2086 (divsf3, divsf3_media): Likewise.
2087 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
2088 (floatsisf2, fux_truncsfsi2): Likewise.
2089 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
2091 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
2092 (cmpunsf_media, cmpsf): Likewise.
2093 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
2094 (abssf2, abssf2_media): Likewise.
2095 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
2096 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
2097 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
2098 (floatsidf2, fix_truncdfsi2): Likewise.
2099 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
2101 (cmpeqdf_media, cmpgtdf_media): Likewise.
2102 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
2103 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
2104 (absdf2, absdf2_media): Likewise.
2105 (extendsfdf2, extendsfdf2_media): Likewise.
2106 (truncsfdf2, truncsfdf2_media): Likewise.
2107 * config/sh/sh64.h: New file.
2108 * config/sh/t-sh64: New file.
2109 * config/sh/shmedia.h: New file.
2110 * config/sh/ushmedia.h: New file.
2111 * config/sh/sshmedia.h: New file.
2112 * configure.in: Added sh64-*-elf.
2113 * configure: Rebuilt.
2114 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
2115 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
2116 (reg_class_from_letter): Use `b' for TARGET_REGS.
2117 (print_operand): Support `%M', `%m', `AND' and
2118 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
2119 (andcosts): Adjust for SHmedia.
2120 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
2122 (target_reg_operand): New function.
2123 * config/sh/sh-protos.h (target_reg_operand): Declare.
2124 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
2125 FP registers on SH5.
2126 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
2128 (TARGET_REGISTER_P): New macro.
2129 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
2130 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
2131 (EXTRA_CONSTRAINT_S): New macro.
2132 (EXTRA_CONSTRAINT): Adjust.
2133 (FLOAT_TYPE_SIZE): Define to 32.
2134 (Pmode): DImode on SHmedia.
2135 (CONST_COSTS): Adjust for SHmedia literals.
2136 (PREDICATE_CODES): Added target_reg_operand.
2137 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
2138 * config/sh/sh.md: Remove all attrs from SHmedia insns.
2139 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
2140 (cmpdi): Accept SHmedia.
2141 (movdicc_false, movdicc_true): New insns.
2142 (movdicc): New expand.
2143 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
2145 (addsi3_media): Match `S' constraint.
2146 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
2147 (negdi2): Expand for SHmedia.
2148 (one_cmpldi2): New expand.
2149 (zero_extendsidi2): Change from expand to insn.
2150 (extendsidi2): Add constraints.
2151 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
2152 LD/ST address. Fix SI immediate loading split.
2153 (movhi_media, movqi_media, lduw, ldub): New insns.
2154 (movhi, movqi): Accept SHmedia.
2155 (shori_media, movdi_media): Relax input constraints. Split
2157 (movdf_media, movsf_media): New insn. New split to movdi.
2158 (movdf, movsf): Match on SHmedia.
2159 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
2160 bgeu_media): New insns and splits. New insns with `_i' suffix.
2161 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
2162 (bunordered): New expand.
2163 (jump_compact): Renamed from `jump'.
2164 (jump_media): New insn.
2166 (call_media, call_value_media): New insns.
2167 (call, call_value): Adjust.
2168 (indirect_jump_compact): Renamed from `indirect_jump'.
2169 (indirect_jump_media): New insn.
2170 (indirect_jump): New expand.
2171 (untyped_call, return): Accept SHmedia.
2172 (return_media): New insn.
2173 (prologue, epilogue, blockage): Accept SHmedia.
2174 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
2175 (sunordered): New expand.
2176 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
2177 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
2178 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
2179 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
2180 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
2181 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
2182 abssf2_media): New insns.
2183 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
2184 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
2185 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
2186 floatdidf2, floatsidf2_media, fix_truncdfdi2,
2187 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
2188 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
2189 absdf2_media): New insns.
2190 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
2191 (extendsfdf2_media, truncdfsf2_media): New insns.
2192 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2193 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
2194 * config/sh/sh.h (CONST_OK_FOR_J): Document.
2195 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
2196 * config/sh/sh.md (adddi3): New expand.
2197 (adddi3_media, adddi3z_media): New insns.
2198 (adddi3_compact): Renamed from adddi3.
2199 (addsi3_media): Use add.l r63 to add constant zero.
2200 (subdi3): New expand.
2201 (subdi3_media): New insn.
2202 (subdi3_compact): Renamed from subdi3.
2203 (mulsidi3): New expand.
2204 (mulsidi3_media): New insn.
2205 (mulsidi3_compact): Renamed from mulsidi3.
2206 (umulsidi3): New expand.
2207 (umulsidi3_media): New insn.
2208 (umulsidi3_compact): Renamed from umulsidi3.
2209 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
2210 (ashlsi3, ashrsi3, lshrsi3): Use them.
2211 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
2212 (ashldi3, ashrdi3, lshrdi3): Use them.
2213 (zero_extendsidi2): New expand.
2214 (extendsidi2): New insn.
2215 (movsi_media): New insn. Split to movdi to load constants.
2216 (movsi): Enable for shmedia.
2217 (movdi_media): New insn. Use shori_media to load wide constants.
2218 (short_media): New insn.
2219 (movdi): Enable for shmedia.
2220 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
2221 * config/sh/sh.h (CPP_SPEC): Added `m5'.
2222 (SUBTARGET_CPP_SPEC): Added `!m5'.
2223 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
2224 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
2225 to all other SH variants.
2226 (TARGET_DEFAULT): Set to SH1_BIT.
2227 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
2228 (BITS_PER_WORD): Raise to 64 on shmedia.
2229 (MAX_BITS_PER_WORD): Change to 64.
2230 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
2231 (INT_TYPE_SIZE): Keep as 32.
2232 (UNITS_PER_WORD): Raise to 8 on shmedia.
2233 (MIN_UNITS_PER_WORD): Keep as 4.
2234 (POINTER_SIZE): Raise to 64 on shmedia.
2235 (CONST_OK_FOR_J): New macro.
2236 (CONST_OK_FOR_LETTER_P): Use it.
2237 (processor_type): Add PROCESSOR_SH5.
2238 * config/sh/sh.md: Conditionalize all expands, insns and
2239 splits to TARGET_SH1.
2241 (addsi3_compact): Renamed from...
2242 (addsi3): Now an expand.
2243 (addsi3_media, subsi3_media): New insns.
2244 (subsi3): Don't negate constants with SHmedia.
2246 * hooks.c: New file.
2247 * hooks.h: New file.
2248 * Makefile.in (HOOKS_H): New.
2249 (TARGET_DEF_H): Added $(HOOKS_H).
2250 (OBJS): Added hooks.o.
2251 (cfgcleanup.o, bb-reorder.o): Added target.h.
2252 (hooks.o): Added dependencies.
2253 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
2254 (TARGET_INITIALIZER): this.
2255 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
2256 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
2257 * bb-reorder.c: Include target.h.
2258 (reorder_basic_blocks): Skip if cannot modify jumps.
2259 * cfgcleanup.c: Include target.h.
2260 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
2262 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2264 * config/mips/mips.md (casesi_internal, casesi_internal_di):
2265 Protect jump delay slot instructions with .set noreorder and
2268 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2270 * config/mips/mips.md (casesi_internal_di): Calculate
2271 the index into the target offset table correctly.
2273 2002-02-08 Richard Henderson <rth@redhat.com>
2275 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
2276 * final.c (output_addr_const): Accept and discard SUBREG.
2277 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
2278 mark them unknown instead.
2279 (simplify_subtraction): Handle RTX_UNKNOWN.
2280 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
2282 2002-02-08 David Edelsohn <edelsohn@gnu.org>
2284 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
2286 2002-02-08 Richard Henderson <rth@redhat.com>
2288 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
2290 2002-02-08 Andreas Jaeger <aj@suse.de>
2292 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
2293 * config/i386/t-linux64: New file.
2295 2002-02-08 Jakub Jelinek <jakub@redhat.com>
2297 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
2298 * c-parse.in (compstmt): Clear last_expr_type.
2300 2002-02-07 Richard Henderson <rth@redhat.com>
2302 * loop.c (strength_reduce): Sink final_value when not
2305 2002-02-07 David O'Brien <obrien@FreeBSD.org>
2307 * config/sparc/freebsd.h: Fix mismatched spec {.
2309 2002-02-07 Richard Henderson <rth@redhat.com>
2311 * cfgrtl.c: Include recog.h and insn-config.h.
2312 (keep_with_call_p): Fix general_operand invocation.
2313 * Makefile.in (cfgrtl.o): Update dependencies.
2315 2002-02-07 Kazu Hirata <kazu@hxi.com>
2317 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
2318 comment. Accept HImode only if TARGET_H8300.
2320 2002-02-07 Eric Christopher <echristo@redhat.com>
2322 * config/mips/crtn.asm: Cleanup #ifdefs.
2324 2002-02-07 Eric Christopher <echristo@redhat.com>
2326 * config/mips/crti.asm: Add changes for mips16. mips16 uses
2327 register 7 as RA instead of $31.
2328 * config/mips/crtn.asm: Ditto.
2329 * config/mips/mips.c (mips_move_2words): Add case for
2330 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
2331 (compute_frame_size): Fix typo.
2332 (save_restore_insns): Ditto. Make documentation about using
2333 register $7 as return register more precise.
2334 (mips_expand_epilogue): Fix comment. Add code to work around not
2335 being able to add to the stack pointer directly.
2336 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
2337 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
2340 2002-02-07 Tom Rix <trix@redhat.com>
2342 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
2343 immediates in ldu and stdu DS opcode field.
2344 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
2345 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
2346 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
2348 2002-02-07 Jeff Sturm <jsturm@one-point.com>
2350 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
2351 offset for stack bias.
2353 2002-02-07 H.J. Lu <hjl@gnu.org>
2355 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
2357 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
2359 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
2361 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
2363 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
2364 * i386.c (x86_order_regs_for_local_alloc): New global function.
2365 * i386.h (REG_ALLOC_ORDER): CLeanup.
2366 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
2368 2002-02-07 Richard Henderson <rth@redhat.com>
2370 PR optimization/2463
2371 * alias.c (find_base_value): Recall base values for fixed hard regs.
2372 * loop.c (loop_regs_update): Don't use single_set on non-insns.
2374 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
2376 * config/mips/mips.md (define_delay) [mips16]: Adjust required
2379 2002-02-06 Richard Henderson <rth@redhat.com>
2382 * stmt.c (resolve_operand_name_1): Take more care with mixed
2383 named and unnamed operands.
2385 2002-02-06 Janis Johnson <janis187@us.ibm.com>
2386 Jan Hubicka <jh@suse.cz>
2388 * loop.c (remove_constant_addition): Avoid clobbering a shared
2391 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
2393 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
2394 * config/s390/t-linux64: New file.
2395 * config/s390/libgcc-glibc.ver: New file.
2397 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
2399 * config/s390/linux64.h: Delete file.
2400 * config/s390/s390x.h: New file.
2401 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
2402 as target header file.
2403 * config/s390/linux.h (TARGET_VERSION): Define depending on
2404 DEFAULT_TARGET_64BIT.
2405 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
2406 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
2407 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
2408 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
2409 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
2410 (EXTRA_SPEC): New define.
2411 * config/s390/s390.h (TARGET_VERSION): Define depending on
2412 DEFAULT_TARGET_64BIT.
2413 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
2415 2002-02-06 Jason Merrill <jason@redhat.com>
2417 * c-decl.c (finish_function): Warn about a non-void function with
2418 no return statement and no abnormal exit.
2419 (current_function_returns_abnormally): New variable.
2420 (start_function): Clear it.
2421 (struct c_language_function): Add returns_abnormally.
2422 (push_c_function_context): Save it.
2423 (pop_c_function_context): Restore it.
2424 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
2425 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
2426 an explicit return type.
2427 * c-tree.h: Declare current_function_returns_abnormally.
2428 (C_FUNCTION_IMPLICIT_INT): New macro.
2429 * c-typeck.c (build_function_call): Set it.
2430 (c_expand_return): Set current_function_returns_value even if the
2433 2002-02-06 Jakub Jelinek <jakub@redhat.com>
2436 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
2437 unsafe for reevaluation.
2439 2002-02-06 Jakub Jelinek <jakub@redhat.com>
2442 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
2443 EXPR_STMT, but COMPOUND_STMT, recurse into it.
2445 2002-02-06 Richard Henderson <rth@redhat.com>
2447 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
2448 be a general_operand. Dest for function value must be a pseudo.
2450 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
2452 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
2453 as SYMBOL_REFs from the constant pool.
2455 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
2457 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
2458 passed by invisible reference.
2460 2002-02-05 Richard Henderson <rth@redhat.com>
2462 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
2464 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
2466 Implement using "base addresses" in insn operands as default.
2467 * config/mmix/mmix.c (mmix_conditional_register_usage): if
2468 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
2469 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
2470 used to read the rtx value.
2471 (mmix_target_asm_function_epilogue): Fix spacing.
2472 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
2473 (mmix_legitimate_address): Ditto.
2474 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
2475 should be loaded with a GETA insn. Don't allocate needless extra
2476 char for nul termination and fix misleading comment.
2477 (mmix_print_operand_address): Handle constants if
2478 TARGET_BASE_ADDRESSES.
2479 (mmix_output_register_setting): Use base addressing if
2480 TARGET_BASE_ADDRESSES and the number of insns is 3.
2481 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
2482 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
2483 to use R as constraint, add LDA to match s.
2484 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
2485 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
2486 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
2487 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
2488 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
2489 order with other fixed registers.
2490 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
2491 other parameter/call-clobbered registers.
2492 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
2493 -mbase-addresses, -mno-base-addresses.
2494 (MMIX Options): Ditto.
2496 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
2498 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
2500 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
2502 * config/rs6000/altivec.h: Change elem to _S_elem.
2504 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
2506 * config/netbsd.h (WCHAR_TYPE): Define.
2507 (WCHAR_TYPE_SIZE): Ditto.
2509 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
2510 (WCHAR_UNSIGNED): Ditto.
2511 (WCHAR_TYPE_SIZE): Ditto.
2513 * config/arm/netbsd.h: Likewise.
2514 * config/i386/netbsd-elf.h: Likewise.
2515 * config/i386/netbsd.h: Likewise.
2516 * config/m68k/netbsd-elf.h: Likewise.
2517 * config/m68k/netbsd.h: Likewise.
2518 * config/ns32k/netbsd.h: Likewise.
2519 * config/sparc/netbsd.h: Likewise.
2520 * config/vax/netbsd.: Likewise.
2522 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
2524 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
2525 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
2526 (TARGET_INITIALIZER): this.
2527 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
2528 (BITFIELD_NBYTES_LIMITED): Markup fix.
2529 * tree.h (default_ms_bitfield_layout_p): Declare.
2530 (record_layout_info): Added prev_field.
2531 * tree.c (default_ms_bitfield_layout_p): New fn.
2532 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
2533 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
2534 * stor-layout.c: Include target.h.
2535 (start_record_layout): Initialize prev_field.
2536 (place_field): Handle MS bit-field layout, and disregard
2537 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
2538 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
2539 * Makefile.in (stor-layout.o): Adjust dependencies.
2541 2002-02-05 Jason Merrill <jason@redhat.com>
2543 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
2545 2002-02-05 Andreas Jaeger <aj@suse.de>
2547 * crtstuff.c: Fix comments.
2549 2002-02-05 Richard Henderson <rth@redhat.com>
2552 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
2553 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
2556 * config/mips/mips.c (function_arg): Handle TImode.
2557 (function_arg_advance): Likewise.
2559 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2561 * config/rs6000/altivec.h (vec_step_help): Rename to
2564 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2566 * config/rs6000/altivec.h: Fix typos.
2568 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
2570 * config/arm/netbsd.h: Correct a comment.
2572 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2574 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
2575 building void typed builtins.
2577 * config/rs6000/altivec.h (vec_ld*): Fix typos.
2578 (vec_step): Implement for C++.
2580 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2582 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
2584 2002-02-04 Richard Henderson <rth@redhat.com>
2586 * combine.c (nonzero_bits): Re-introduce special case for
2587 sp/fp/ap wrt REGNO_POINTER_ALIGN.
2589 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2591 * doc/extend.texi: Warn about unsupported usage of altivec
2594 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
2595 (altivec_predicate_*): New.
2597 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
2598 Add C++ version of vec_*() functions.
2600 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
2601 (bdesc_2arg): Remove altivec predicates.
2602 (altivec_expand_builtin): Handle predicates.
2603 (altivec_init_builtins): Handle predicates.
2604 (altivec_expand_predicate_builtin): New.
2606 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2608 * pa.c (DO_FRAME_NOTES): Move forward.
2609 (store_reg): Revise handling of frame notes.
2610 (load_reg): Likewise.
2611 (set_reg_plus_d): Likewise.
2612 (hppa_expand_prologue): Likewise.
2613 (hppa_expand_epilogue): Likewise.
2615 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2617 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
2619 2002-02-04 Jakub Jelinek <jakub@redhat.com>
2621 PR c/4475, c++/3780:
2622 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
2623 * c-common.h (SWITCH_TYPE): Define.
2624 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
2625 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
2626 Rename spareness variable to sparseness.
2627 (expand_end_case_type): Renamed from expand_end_case, use orig_type
2628 if non-NULL instead of TREE_TYPE (orig_index).
2629 * tree.h (expand_end_case_type): Renamed from expand_end_case.
2630 (expand_end_case): Define using expand_end_case_type.
2631 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
2632 to expand_end_case_type.
2633 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
2635 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2637 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
2638 (BIGGEST_ALIGNMENT): Change to 128.
2640 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2642 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
2644 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2646 * pa.md (call_internal_reg_64bit): Remove unused variable.
2648 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
2650 * config/arm/arm.h (machine_function): Add uses_anonymous_args
2652 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
2653 * config/arm/arm.c (current_function_anonymous_args): Delete,
2654 replace uses with cfun->machine->uses_anonymous_args.
2655 (arm_reorg): Do not reset uses_anonymous_args.
2657 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
2658 any geenral register.
2660 2001-02-04 Bernd Schmidt <bernds@redhat.com>
2662 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
2665 2002-02-04 Richard Henderson <rth@redhat.com>
2667 * combine.c (force_to_mode): Remove STACK_BIAS code.
2668 (nonzero_bits): Likewise. Replace sp/fp special case with
2669 REGNO_POINTER_ALIGN.
2671 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
2672 (HARD_FRAME_POINTER_REGNUM): New.
2673 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
2674 (FIXED_REGS, CALL_USED_REGS): Update.
2675 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
2676 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
2677 (HARD_REGNO_NREGS): Update for SFP.
2678 (STACK_POINTER_OFFSET): Include bias here ...
2679 (FIRST_PARM_OFFSET): ... not here.
2680 (STACK_BIAS): Remove.
2681 (INIT_EXPANDERS): New.
2682 (STARTING_FRAME_OFFSET): Do not include bias.
2683 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
2684 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
2685 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
2686 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
2687 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
2688 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
2689 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
2690 (MUST_SAVE_REGISTER): Likewise.
2691 (sparc_flat_function_prologue): Likewise.
2692 (sparc_flat_function_epilogue): Likewise.
2693 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
2694 (sparc_init_modes): SFP is GENERAL_REGS.
2695 (sparc_builtin_saveregs): SFP does not have bias applied.
2697 2002-02-04 Richard Henderson <rth@redhat.com>
2699 * config/alpha/alpha.c (current_function_is_thunk): Don't check
2700 current_function_is_thunk.
2701 (alpha_sa_mask): Distinguish between current_function_is_thunk
2702 called from ASM_OUTPUT_MI_THUNK and not.
2703 (alpha_does_function_need_gp): Thunks always need gp.
2704 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
2705 (alpha_output_mi_thunk_osf): New.
2706 * config/alpha/alpha-protos.h: Update.
2707 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
2709 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
2711 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
2712 function types, not when they're taken away.
2714 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
2716 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
2717 CODE_LABEL and jump table when replacing a table jump with a
2720 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2722 * config/s390/s390-protos.h (legitimize_la_operand,
2723 s390_secondary_input_reload_class, s390_plus_operand,
2724 s390_expand_plus_operand): Add prototypes.
2726 config/s390/s390.c (s390_secondary_input_reload_class,
2727 s390_plus_operand, s390_expand_plus_operand): New functions.
2729 (struct s390_address): New member 'pointer'.
2730 (s390_decompose_address): Compute it.
2731 (legitimate_la_operand_p): Use it.
2732 (legitimize_la_operand): New function.
2733 (movti, movdi, movdf splitters): Call it.
2735 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
2736 (PREDICATE_CODES): Add s390_plus_operand.
2738 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
2739 (la_ccclobber): Allow GENERAL_REGS as output operand.
2741 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
2742 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
2743 (*la_64, *la_31, reload_indi, reload_insi): ... these.
2745 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2747 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
2748 register names for regular asm () construct.
2750 2002-02-04 Jakub Jelinek <jakub@redhat.com>
2752 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
2755 2002-02-04 Jakub Jelinek <jakub@redhat.com>
2757 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
2760 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
2762 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
2763 constant pool to be identical by string address and index.
2765 2002-02-04 Anthony Green <green@redhat.com>
2767 * output.h (SECTION_OVERRIDE): Define.
2768 * varasm.c (named_section): Obey SECTION_OVERRIDE.
2770 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
2772 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
2773 by existing arm*-*-netbsd* (a.out) target.
2774 (ns32k-*-netbsdelf*): Likewise.
2775 (sparc-*-netbsdelf*): Likewise.
2776 (vax-*-netbsdelf*): Likewise.
2778 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
2780 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
2781 headers and libobjc headers.
2783 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
2785 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
2786 (_mingw.h): Remove duplicate include.
2788 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
2790 * config.gcc: Set cpu_type to m68k for 68010, as well.
2791 (m68010-*-netbsdelf*): New...
2792 (m68k*-*-netbsdelf*): ...targets.
2793 * config/m68k/netbsd-elf.h: New file.
2795 2002-02-02 Kazu Hirata <kazu@hxi.com>
2797 * config/h8300/h8300.c (hand_list): Move inside function_arg.
2799 2002-02-02 Kazu Hirata <kazu@hxi.com>
2801 * config/h8300/h8300.c (h8_push_ops): Move inside
2803 (h8_pop_ops): Likewise.
2804 (h8_move_ops): Likewise.
2806 2002-02-02 Kazu Hirata <kazu@hxi.com>
2808 * config/h8300/h8300.c (os_task): Make it static.
2809 (monitor): Likewise.
2810 (pragma_saveall): Likewise.
2812 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
2814 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
2815 constant is a valid sign-extension for Pmode.
2817 2002-02-02 Kazu Hirata <kazu@hxi.com>
2819 * config/h8300/h8300.c: Fix formatting.
2821 2002-02-02 Kazu Hirata <kazu@hxi.com>
2823 * config/h8300/h8300.md: Fix formatting.
2825 2002-02-02 Kazu Hirata <kazu@hxi.com>
2827 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
2828 predicates of operands[1]. Split the patterns for each
2831 2002-02-02 Kazu Hirata <kazu@hxi.com>
2833 * config/h8300/h8300.md (xor patterns): Tighten the predicates
2834 of operands[1] to register_operand.
2836 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
2838 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
2839 * cpphash.c (_cpp_init_hashtable): Similarly.
2840 * cppinit.c (cpp_create_reader): Default the signed_char flag.
2841 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
2842 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
2843 (cpp_handle_option): Handle the new options.
2844 * cpplex.c (cpp_interpret_charconst): Use new flag.
2845 * cpplib.h (struct cpp_options): New member signed_char.
2846 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
2847 (cpp_options): Handle -fsigned-char and -funsigned-char.
2848 (static_specs): Remove signed_char_spec.
2849 (do_spec1): Don't handle %c.
2850 * system.h: Poison SIGNED_CHAR_SPEC.
2851 * tradcif.y (yylex): Use flag_signed_char.
2852 * tradcpp.h (flag_signed_char): New.
2853 * tradcpp.c (flag_signed_char): New.
2854 (main): Handle new command-line options.
2855 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
2857 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
2858 * avr/avr.h: Remove old comments.
2859 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
2860 (CC1_SPEC): Pass -fsigned-char if -mic*.
2861 (SIGNED_CHAR_SPEC): Remove.
2863 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
2865 2002-02-01 Eric Christopher <echristo@redhat.com>
2867 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
2868 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
2869 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
2870 (ASM_OUTPUT_REG_POP): Ditto.
2872 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
2874 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
2877 2002-02-02 Jakub Jelinek <jakub@redhat.com>
2879 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
2881 2002-02-02 Jakub Jelinek <jakub@redhat.com>
2884 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
2887 2002-02-01 Janis Johnson <janis187@us.ibm.com>
2889 * cfganal.c: Include tm_p.h.
2890 (keep_with_call_p): Fix the test that determines if a register holds
2891 the return value of a call.
2893 2002-02-01 DJ Delorie <dj@redhat.com>
2895 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
2896 we are given conflicting registers, switch to the other one we
2897 had allocated for us.
2898 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
2899 as TImode so we know when the "other" register is available.
2901 2002-02-01 David O'Brien <obrien@FreeBSD.org>
2903 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
2906 2002-02-01 Janis Johnson <janis187@us.ibm.com>
2908 * cfganal.c (keep_with_call_p): New function.
2909 (flow_call_edges_add): Prevent splitting a block between a call and
2910 a single-set instruction that should be kept in the same block.
2912 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
2914 * doc/install.texi (avr): Update outdated URL.
2916 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
2918 * config/stormy16/stormy16.md (pushqi): New.
2922 (movhi): Remove stack operands.
2924 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
2925 nonimmediate_nonstack_operand.
2926 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
2928 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
2931 2002-01-31 Jason Merrill <jason@redhat.com>
2933 * Makefile.in (c-parse.c): Handle .output file.
2934 * objc/Make-lang.in (objc-parse.c): Likewise.
2936 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
2938 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
2939 the -me[lb] option is given. Don't output the default flag
2942 2002-01-31 Zack Weinberg <zack@codesourcery.com>
2944 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
2945 the primary source file; this has not been done yet.
2946 * c-decl.c (c_expand_body): Reset input_filename from
2947 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
2949 2002-01-31 Kazu Hirata <kazu@hxi.com>
2951 * rtlanal.c (subreg_regno_offset): Do not use
2952 SUBREG_REGNO_OFFSET.
2953 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
2954 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
2956 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
2958 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
2959 version rather than GNATS version in --version output.
2961 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
2963 * ifcvt.c (noce_process_if_block): Make a copy of the destination
2964 when copying back from a temporary.
2966 2002-01-30 Richard Henderson <rth@redhat.com>
2968 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
2969 and new_dest are the same.
2971 2002-01-30 Richard Henderson <rth@redhat.com>
2974 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
2975 * rtl.c (note_insn_name): Update.
2976 * emit-rtl.c (remove_unnecessary_notes): Kill it.
2977 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
2978 to perform loop rotation.
2979 (expand_exit_loop_top_cond): New.
2980 * tree.h (expand_exit_loop_top_cond): Declare it.
2981 * c-semantics.c (genrtl_while_stmt): Use it.
2982 (genrtl_for_stmt): Likewise.
2984 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
2986 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
2987 arguments to 64-bit boundaries on 64-bit ABIs.
2989 2002-01-30 Steve Ellcey <sje@cup.hp.com>
2991 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
2993 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
2995 * c-decl.c (grokdeclarator): Handle type being a typedef for an
2998 2002-01-30 David O'Brien <obrien@FreeBSD.org>
3000 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
3001 * config/sparc/sparc_bi.h: Remove file.
3002 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
3004 2002-01-30 Richard Henderson <rth@redhat.com>
3006 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
3008 2002-01-30 Zack Weinberg <zack@codesourcery.com>
3010 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
3012 2002-01-30 Jason Merrill <jason@redhat.com>
3014 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
3015 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
3016 (reg_save): Use DW_CFA_offset_extended_sf instead.
3018 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
3020 2002-01-29 Jakub Jelinek <jakub@redhat.com>
3022 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
3025 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
3027 * rs6000.md ("*call_value_local32"): Remove constraints.
3028 ("*call_value_local64"): Same.
3029 ("*call_value_indirect_nonlocal_aix32"): Same.
3030 ("*call_value_nonlocal_aix32"): Same.
3031 ("*call_value_indirect_nonlocal_aix64"): Same.
3032 ("*call_value_nonlocal_aix64"): Same.
3033 ("*call_value_nonlocal_sysv"): Same.
3035 2002-01-29 Richard Henderson <rth@redhat.com>
3037 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
3039 2002-01-29 Richard Henderson <rth@redhat.com>
3041 * expr.c (force_operand): Ignore flag_pic for detecting pic
3043 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
3044 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
3045 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
3046 instead of open-coded loop.
3047 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
3048 be fixed when in use.
3050 2002-01-29 Richard Henderson <rth@redhat.com>
3052 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
3053 * sched-rgn.c (propagate_deps): Update them.
3054 * sched-deps.c (sched_analyze_insn): Update them. Flush the
3055 clobbers list when either gets too long.
3057 2002-01-29 Jakub Jelinek <jakub@redhat.com>
3059 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
3060 and INDEX_REGS the same as GENERAL_REGS.
3061 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
3063 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
3065 * tree.c (build_nonstandard_integer_type): Correct prototype.
3067 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
3069 * config/s390/s390.md (movstrsico, movstrdix_64,
3070 movstrsix_31): Remove, replace by ...
3071 (movstrdi_short, movstrsi_short, movstrdi_long,
3072 movstrsi_long): ... these. New.
3073 (movstrdi, movstrsi): Adapt.
3075 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
3076 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
3077 Remove unnecessary CC clobber.
3078 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
3079 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
3081 (divmoddi4): Don't partially initialize TImode register.
3083 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
3085 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
3087 2002-01-29 Richard Henderson <rth@redhat.com>
3089 * flow.c (print_rtl_and_abort): Remove.
3090 (print_rtl_and_abort_fcn): Remove.
3091 (verify_local_live_at_start): Use dump_bb instead.
3092 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
3093 (verify_wide_reg_1): Return 2 on mode test failure.
3095 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
3097 PR c/3325, c/3326, c/2511, c/3347
3098 * c-decl.c (enum_decl_context): Remove BITFIELD.
3099 (grokdeclarator): Take bitfield width as an input.
3100 Ensure bitfields are given the correct type. Perform
3101 bitfield width validation with build_bitfield_integer_type
3102 rather than waiting for finish_struct.
3103 (grok_typename, grok_typename_in_parm_context, start_decl,
3104 push_parmdecl, grokfield, start_function): Update calls to
3106 (build_bitfield_integer_type): New function.
3107 (finish_struct): Move bitfield validation to grokdeclarator
3108 and build_bitfield_integer_type.
3109 * tree.c (build_nonstandard_integer_type): New function.
3110 * tree.h (build_nonstandard_integer_type): New prototype.
3112 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
3114 2002-01-29 Jakub Jelinek <jakub@redhat.com>
3117 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
3118 don't ignore unrecognized -W* options.
3119 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
3120 * cpplib.h (cpp_handle_option): Adjust prototype.
3121 * c-decl.c (c_decode_options): Pass 0 as last argument to
3125 * gcc.c (cpp_unique_options): Split from cpp_options.
3126 (cpp_options): Source cpp_unique_options.
3127 (default_compilers): Use cpp_unique_options instead of cpp_options
3128 when used together with cc1_options.
3129 (static_specs): Add cpp_unique_options.
3130 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
3131 when used together with cc1_options.
3133 2002-01-29 Kazu Hirata <kazu@hxi.com>
3135 * config/h8300/h8300-protos.h: Update the prototype of
3137 * config/h8300/h8300.c (output_a_shift): Remove an unused
3138 argument 'insn'. Remove redundant code.
3139 * config/h8300/h8300.md: Adust to the new prototype of
3142 2002-01-29 Kazu Hirata <kazu@hxi.com>
3144 * config/h8300/h8300-protos.h: Update the prototypes of
3145 emit_a_rotate and expand_a_rotate.
3146 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
3147 first argument to 'enum rtx_code'.
3148 (expand_a_rotate): Likewise.
3150 2002-01-28 Kazu Hirata <kazu@hxi.com>
3152 * config/h8300/h8300-protos.h: Update the prototype of
3154 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
3156 * config/h8300/h8300.md: Adjust to the new prototype.
3158 2002-01-28 Kazu Hirata <kazu@hxi.com>
3160 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
3163 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
3165 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
3166 is a fixed register before returning pic_offset_table_rtx.
3167 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
3168 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
3170 2002-01-28 Jason Merrill <jason@redhat.com>
3172 * dwarf2.h: Sync with src version.
3174 2002-01-28 Paul Koning <pkoning@equallogic.com>
3176 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
3178 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
3179 * doc/extend.texi (__builtin_prefetch): Update documentation:
3180 first argument is now const void ptr.
3182 2002-01-28 Kazu Hirata <kazu@hxi.com>
3184 * config/h8300/h8300-protos.h: Remove an unused prototype.
3186 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
3188 * toplev.c (lang_independent_init): Round up identifier size.
3190 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
3192 * config.gcc: Revert previous change.
3194 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
3196 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
3198 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
3200 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
3201 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
3202 other non-elf netbsd config frags.
3203 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
3204 collect2 will does that.
3205 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
3206 shared-lib frobbing will work.
3208 2002-01-28 Kazu Hirata <kazu@hxi.com>
3210 * config/h8300/h8300.h: Fix formatting.
3211 * config/h8300/h8300.md: Likewise.
3213 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
3215 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
3216 the old, removed AAA_standards fix.
3217 * fixinc/fixincl.x: Rebuilt.
3219 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
3221 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
3222 atexit call in crtbegin, hooked in after call to frame_dummy;
3223 register EH before registering __fini__start.
3225 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
3227 * config/rs6000/altivec.h: Remove spurious semicolons.
3229 2002-01-27 Kazu Hirata <kazu@hxi.com>
3231 * config/h8300/h8300.md: Replace dead bit extraction patterns
3232 with ones that work.
3234 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3236 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
3237 if not STRICT_ALIGNMENT.
3238 * rtl.h (MEM_ALIGN): Likewise.
3240 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
3242 * doc/invoke.texi (-fdump-translation-unit): Revert this
3243 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
3245 2002-01-27 Kazu Hirata <kazu@hxi.com>
3247 * config/h8300/h8300.md (define_constants): New.
3248 (anonymous patterns) Use defined constants appropriately.
3250 2002-01-27 Kazu Hirata <kazu@hxi.com>
3252 * config/h8300/h8300.c (function_arg): Remove redundant code.
3254 2002-01-26 Richard Henderson <rth@redhat.com>
3256 * sched-deps.c (reg_pending_uses_head): New.
3257 (reg_pending_barrier): Rename from reg_pending_sets_all.
3258 (find_insn_list): Don't mark inline.
3259 (find_insn_mem_list): Remove.
3260 (add_dependence_list, add_dependence_list_and_free): New.
3261 (flush_pending_lists): Replace only_write param with separate
3262 for_read and for_write parameters. Update all callers. Use
3263 add_dependence_list_and_free.
3264 (sched_analyze_1): Do not add reg dependencies here; just set
3265 the pending bits. Use add_dependence_list.
3266 (sched_analyze_2): Likewise.
3267 (sched_analyze_insn): Replace schedule_barrier_found with
3268 reg_pending_barrier. Add all dependencies for pending reg
3269 uses, sets, and clobbers.
3270 (sched_analyze): Don't add reg dependencies for calls, just
3271 set pending bits. Use regs_invalidated_by_call. Treat
3272 sched_before_next_call as a normal list, not a fake insn.
3273 (init_deps): No funny init for sched_before_next_call.
3274 (free_deps): Free pending mems lists. Don't zero reg_last.
3275 (init_deps_global): Init reg_pending_uses.
3276 (finish_deps_global): Free it.
3277 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
3278 (find_insn_mem_list): Remove.
3279 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
3280 (propagate_deps): Use them. Zero temp mem lists.
3282 2002-01-26 Richard Henderson <rth@redhat.com>
3284 * Makefile.in (CRTSTUFF_CFLAGS): New.
3285 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
3286 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
3287 crtstuff.c instead of alpha assembly version.
3288 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
3289 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
3290 not FORCE_{INIT,FINI}_SECTION_ALIGN.
3291 (__do_global_dtors_aux): Mark used.
3292 (frame_dummy, __do_global_ctors_aux): Mark used.
3293 (fini_dummy, init_dummy): Remove.
3295 * config/alpha/crtbegin.asm: Remove file.
3296 * config/alpha/crtend.asm: Remove file.
3297 * config/alpha/t-crtbe: Remove file.
3298 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
3299 (LINK_EH_SPEC): New.
3301 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
3302 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
3303 calling constructors.
3304 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
3306 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
3307 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
3308 CRT_END_INIT_DUMMY hack.
3309 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
3310 FORCE_{INIT,FINI}_SECTION_ALIGN.
3312 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
3313 FORCE_{INIT,FINI}_SECTION_ALIGN.
3315 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
3316 invocation sequence.
3317 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
3319 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
3320 (FORCE_CODE_SECTION_ALIGN): New.
3322 2002-01-26 Richard Henderson <rth@redhat.com>
3324 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
3326 2002-01-26 Richard Henderson <rth@redhat.com>
3328 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
3329 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
3331 2002-01-26 Kazu Hirata <kazu@hxi.com>
3333 * config/h8300/h8300.md: Remove bit extraction patterns that
3334 cannot be triggered.
3335 Restrict each bit extraction pattern to a variant on which the
3338 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
3340 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
3342 2002-01-26 Kazu Hirata <kazu@hxi.com>
3344 * config/h8300/h8300.md: Remove bit test patterns that cannot
3346 Restrict each bit test pattern to a variant on which the
3349 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3351 * builtins.c (expand_builtin_strncat): Remove redundant check for
3354 2002-01-25 David O'Brien <obrien@FreeBSD.org>
3356 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
3358 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
3361 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
3363 * dbxout.c (dbxout_init): Use assemble_name rather than just
3364 stripping off the first character.
3365 (dbxout_source_file): Likewise.
3367 2002-01-25 DJ Delorie <dj@redhat.com>
3369 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
3370 using rtx_equal_p, not by comparing pointers.
3372 2002-01-25 Steve Ellcey <sje@cup.hp.com>
3374 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
3375 for PIC_OFFSET_TABLE_REGNUM.
3376 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
3378 2002-01-25 David O'Brien <obrien@FreeBSD.org>
3380 * config.gcc (x86_64-*-freebsd*): New target.
3381 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
3383 (i[34567]86-*-freebsd*): Don't include svr4.h.
3384 * config/i386/freebsd64.h: New file.
3386 2002-01-25 Douglas B Rupp <rupp@gnat.com>
3388 * config/alpha/x-vms (version): Make static.
3390 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
3391 in previous checkin.
3393 * Makefile.in (install-headers-cp): New target.
3394 * config.gcc (alpha-dec-*vms*): Install headers with
3397 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
3399 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
3402 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3404 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
3405 of compare_tree_int.
3406 (expand_builtin_strncat): Likewise.
3407 * c-decl.c (finish_struct): Use tree_low_cst.
3408 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
3409 * tree.c (compare_tree_int): Likewise.
3411 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
3413 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
3414 adjustments even if they are implemented by more than two insns.
3416 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
3418 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
3419 * df.h (struct ref): Kill B.
3420 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
3422 * basic-block.h (PROP_EQUAL_NOTES): New flag.
3423 * flow.c (propagate_one_insn): Use it.
3424 (mark_used_regs): Handle NIL.
3426 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
3428 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
3431 2002-01-25 David Edelsohn <edelsohn@gnu.org>
3433 * rs6000.md (prefetch): Make address V4SI mode so that the address
3434 is restricted to legitimate form for instruction.
3436 2002-01-25 Bob Wilson <bob.wilson@acm.org>
3438 * doc/install.texi (xtensa-*-elf): New target.
3439 (xtensa-*-linux*): New target.
3440 * doc/contrib.texi: Add myself.
3442 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
3444 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
3445 purpose register to hold an SImode (or smaller) value.
3447 2002-01-25 Jakub Jelinek <jakub@redhat.com>
3449 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
3451 * crtstuff.c: Likewise.
3453 2002-01-25 Kazu Hirata <kazu@hxi.com>
3455 * config/h8300/h8300.md (negation patterns): Tighten
3456 predicates to register_operand.
3458 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
3460 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
3463 * builtins.c (expand_builtin_prefetch): Same.
3465 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3467 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
3470 2002-01-24 Kazu Hirata <kazu@hxi.com>
3472 * config/h8300/h8300.c (print_operand): Remove support for
3473 operand character 'A'.
3474 * config/h8300/h8300.md (three anonymous patterns): Replace
3475 operand character 'A' with either 'T' or 'S'.
3477 2002-01-24 Kazu Hirata <kazu@hxi.com>
3479 * config/h8300/h8300.c (print_operand): Remove support for
3480 operand character 'U'.
3482 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
3484 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
3486 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
3488 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
3489 values to be assigned to the stack pointer.
3491 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
3493 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
3494 to const_double needs to be done right for big-endian systems.
3496 2002-01-24 Jason Merrill <jason@redhat.com>
3499 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
3500 to can_throw_internal.
3502 2002-01-23 Richard Henderson <rth@redhat.com>
3504 * fold-const.c (fold): Change UINT_MAX test to check vs precision
3505 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
3507 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3509 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
3510 (symGOT2reg): Use them, then set as GOT value as unchanging.
3511 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
3512 as a temporary, if possible.
3513 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
3514 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
3516 2002-01-23 Kazu Hirata <kazu@hxi.com>
3518 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
3519 accept to accept 0x80 as operands[2].
3521 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3523 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
3525 2002-01-23 Richard Henderson <rth@redhat.com>
3527 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
3529 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
3531 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
3532 (parmlist_or_identifiers_1): Verify that only a parmlist follows
3535 2002-01-23 Richard Henderson <rth@redhat.com>
3537 * expr.c (move_by_pieces_1): Extend size before negation.
3539 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
3540 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
3541 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
3542 * config/m68k/t-m68kelf: Likewise.
3544 2002-01-23 Bob Wilson <bob.wilson@acm.org>
3546 * config/xtensa/elf.h: New file.
3547 * config/xtensa/lib1funcs.asm: New file.
3548 * config/xtensa/lib2funcs.S: New file.
3549 * config/xtensa/linux.h: New file.
3550 * config/xtensa/t-xtensa: New file.
3551 * config/xtensa/xtensa-config.h: New file.
3552 * config/xtensa/xtensa-protos.h: New file.
3553 * config/xtensa/xtensa.c: New file.
3554 * config/xtensa/xtensa.h: New file.
3555 * config/xtensa/xtensa.md: New file.
3556 * config.gcc (xtensa-*-elf*): New target.
3557 (xtensa-*-linux*): New target.
3558 * cse.c (canon_hash): Compare rtx pointers instead of register
3559 numbers. This is required for the Xtensa port.
3560 * integrate.c (copy_insn_list): Handle case where the static
3561 chain is in memory and the memory address has to be copied to
3563 * doc/invoke.texi (Option Summary): Add Xtensa options.
3564 (Xtensa Options): New node.
3565 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
3567 2002-01-23 Zack Weinberg <zack@codesourcery.com>
3569 * diagnostic.c (internal_error): Do ICE suppression only
3570 when ENABLE_CHECKING is not defined.
3572 * c-typeck.c (require_complete_type): Return error_mark_node
3573 if type is error_mark_node.
3575 2002-01-23 Janis Johnson <janis187@us.ibm.com>
3577 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
3578 -Os and issue a warning.
3580 2002-01-23 Zack Weinberg <zack@codesourcery.com>
3582 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
3583 current (lack of) need for host configuration by hand.
3585 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
3586 references. Documentation of some target macros moved from
3587 hostconfig.texi to tm.texi.
3589 2002-01-23 Will Cohen <wcohen@redhat.com>
3591 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
3594 2002-01-23 Kazu Hirata <kazu@hxi.com>
3596 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
3599 2002-01-23 Jason Merrill <jason@redhat.com>
3601 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
3603 * function.c (assign_parms): Don't put args of inline functions
3604 into registers when not optimizing.
3606 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
3608 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
3609 (prologue_use): New pattern.
3610 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
3611 preference to gen_rtx_USE.
3612 (thumb_expand_prologue): Use gen_prologue_use in preference to
3614 (thumb_expand_epilogue): Use gen_prologue_use in preference to
3617 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
3619 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
3621 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
3624 * doc/extend.texi: Correct documentation of __alignof__.
3626 2002-01-22 Zack Weinberg <zack@codesourcery.com>
3628 * params.h: Rename arguments of DEFPARAM so that it will be
3629 recognized as a translation keyword.
3631 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
3633 * extend.texi: Document altivec functions.
3634 Fix N-bit adjectives in X86 builtin documentation.
3636 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
3638 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
3639 auto_inc_dec values.
3641 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
3643 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
3645 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
3647 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
3649 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
3651 2002-01-22 Richard Henderson <rth@redhat.com>
3653 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
3654 copy_insn not copy_rtx.
3656 2002-01-23 Alan Modra <amodra@bigpond.net.au>
3658 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
3659 "nonzero" as that might add "1" bits. Ensure "constop" is
3660 properly sign extened.
3661 (force_to_mode): Tweak for sign extended constop.
3663 2002-01-22 Richard Henderson <rth@redhat.com>
3665 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
3666 for_each_rtx instead of assuming we're already looking at the MEM.
3667 (split_small_symbolic_mem_operand): Likewise.
3668 * config/alpha/alpha.h (PREDICATE_CODES): Update.
3669 * config/alpha/alpha.md (small symbolic memory splitters): Update.
3671 2002-01-22 Richard Henderson <rth@redhat.com>
3673 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
3674 sequence number for the literal.
3675 (divmoddi_internal_er): Likewise.
3677 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
3680 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
3681 in LIBICONV variable.
3682 * configure: Regenerated.
3684 2002-01-22 Krister Walfridsson <cato@df.lth.se>
3686 * dependence.c (build_def_use): Remove array_idx.
3688 * dwarfout.c (last_filename): Remove.
3689 (output_compile_unit_die): Remove last_filename.
3691 2002-01-22 Roger Sayle <roger@eyesopen.com>
3692 Richard Henderson <rth@redhat.com>
3695 * fold-const.c (fold): Optimize unsigned comparisons against
3696 UINT_MAX (and similar unsigned constants).
3698 2002-01-22 Janis Johnson <janis187@us.ibm.com>
3700 * Makefile.in (loop.o): Depend on OPTABS_H.
3701 * loop.c (emit_prefetch_instructions): Check the prefetch operand
3702 against the predicate.
3705 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
3706 for the address operand.
3708 2002-01-22 Richard Henderson <rth@redhat.com>
3710 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
3712 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
3715 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
3718 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
3720 * config.gcc (x86_64-*-netbsd*): New target.
3721 * config/i386/netbsd64.h: New file.
3723 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
3725 * regrename.c (kill_value): Fix typo.
3727 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
3729 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
3731 * config/rs6000/rs6000.h: Same.
3733 * function.c (instantiate_virtual_regs): Remove
3734 STARTING_FRAME_PHASE.
3735 (assign_stack_local_1): Same.
3736 Calculate frame phase.
3738 2002-01-22 Nick Clifton <nickc@redhat.com>
3740 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
3741 variable declaration to outer scope in order to simplify
3743 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
3744 arm_hard_regno_mode_ok.
3745 * config/arm/arm-protos.h: Add a prototype for
3746 arm_hard_regno_mode_ok.
3747 * config/arm/arm.c (soft_df_operand): Remove now redundant
3748 check for DImode values using IP_REGNUM.
3749 (nonimmediate_soft_df_operand): Remove now redundant check for
3750 DImode values using IP_REGNUM.
3751 (arm_hard_regno_mode_ok): New function. New check: make sure
3752 that DImode values are not stored in IP_REGNUM.
3754 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
3756 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
3758 2002-01-22 Jason Merrill <jason@redhat.com>
3760 * c-semantics.c (genrtl_compound_stmt): Only check nesting
3761 consistency if this COMPOUND_STMT is scoped.
3763 2002-01-22 Kazu Hirata <kazu@hxi.com>
3765 * predict.c: Fix formatting.
3766 * print-tree.c: Likewise.
3767 * protoize.c: Likewise.
3770 * sbitmap.h: Likewise.
3772 * sched-deps.c: Likewise.
3773 * sched-vis.c: Likewise.
3774 * sdbout.c: Likewise.
3775 * sibcall.c: Likewise.
3777 * ssa-ccp.c: Likewise.
3778 * ssa-dce.c: Likewise.
3780 * stor-layout.c: Likewise.
3781 * system.h: Likewise.
3783 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3785 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
3786 if fits in bounds of base type.
3788 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
3789 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
3790 (add_bound_info, default): If can't find a context, make a
3792 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
3794 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
3796 * c-typeck.c (parser_build_binary_op): If result from
3797 build_binary_op is ERROR_MARK just return error_mark_node without
3800 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
3802 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
3803 Split a.out-specific bits into...
3804 * config/netbsd-aout.h: ...this.
3805 * config/netbsd-elf.h: New file.
3806 * config/alpha/netbsd-elf.h: Remove.
3807 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
3808 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
3809 (STARTFILE_SPEC): Remove redundant definition.
3810 (ENDFILE_SPEC): Likewise.
3811 (LINK_SPEC): Likewise.
3812 (CPP_SPEC): Likewise.
3813 (ASM_SPEC): Likewise.
3814 (LIB_SPEC): Likewise.
3815 (SWITCH_TAKES_ARG): Likewise.
3816 (TARGET_MEM_FUNCTIONS): Likewise.
3817 (CPP_PREDEFINES): Redefine.
3818 (ASM_FINAL_SPEC): Remove redefinition.
3819 (ASM_COMMENT_START): Redefine.
3820 (FUNCTION_PROFILER): Define.
3821 (TARGET_VERSION): Redefine.
3822 Comment and formatting cleanup.
3823 * config/i386/netbsd.h: Include <netbsd-aout.h>.
3824 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
3825 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
3826 big- or little-endian.
3827 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
3828 * config.gcc (*-*-netbsd*): Add definitions common to all
3830 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
3831 gnu_ld definitions. Add netbsd-elf.h to and remove
3832 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
3833 tmake_file, and don't lose previous tmake_file contents.
3834 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
3835 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
3836 gnu_ld definitions. Add netbsd-elf.h to tm_file.
3837 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
3838 (mipsel-*-netbsd*): Rename this to...
3839 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
3840 mips/little.h to tm_file for mips*el-*.
3841 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
3842 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
3843 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
3845 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
3847 * pa-protos.h (reg_before_reload_operand): New function prototype.
3848 * pa.c (reg_before_reload_operand): New function implementation.
3849 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
3852 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3854 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
3856 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
3858 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
3859 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
3860 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
3861 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
3862 (ENDFILE_SPEC): Undefine.
3863 (STARTFILE_SPEC): Redefine for PA.
3865 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3867 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
3869 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
3871 * config.gcc: Add entries to supported PowerPC --with-cpu
3874 2002-01-21 Jakub Jelinek <jakub@redhat.com>
3876 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
3877 true for 64-bit mode only SSE registers in 32-bit mode.
3879 2002-01-21 Kazu Hirata <kazu@hxi.com>
3881 * unwind-dw2.c: Fix formatting.
3882 * unwind-dw2-fde.c: Likewise.
3883 * unwind-dw2-fde.h: Likewise.
3884 * unwind-pe.h: Likewise.
3885 * varasm.c: Likewise.
3886 * varray.h: Likewise.
3888 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
3890 Remove workaround for register stack overwrite bug in mmix.
3891 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
3892 support for TARGET_REG_STACK_FILL_BUG.
3893 * config/mmix/mmix.h: Remove member has_call_without_parameters.
3894 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
3896 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
3897 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
3898 -mno-reg-stack-fill-bug-workaround.
3899 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
3900 machine member has_call_without_parameters.
3901 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
3902 -mreg-stack-fill-bug-workaround and
3903 -mno-reg-stack-fill-bug-workaround.
3904 (MMIX Options): Ditto.
3906 2002-01-21 Kazu Hirata <kazu@hxi.com>
3908 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
3910 Remove redundant code.
3912 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
3914 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
3915 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
3916 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
3917 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
3918 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
3919 out target macro definitions and non-target-specific comments
3920 mostly taken from old versions of the manual.
3922 2002-01-20 Kazu Hirata <kazu@hxi.com>
3924 * config/h8300/h8300.h: Fix comment formatting.
3925 * config/ia64/aix.h: Likewise.
3926 * config/ia64/ia64-protos.h: Likewise.
3927 * config/ia64/ia64.c: Likewise.
3928 * config/ia64/ia64.h: Likewise.
3929 * config/ia64/ia64intrin.h: Likewise.
3930 * config/ia64/linux.h: Likewise.
3931 * config/ia64/unwind-aix.c: Likewise.
3932 * config/ia64/unwind-ia64.c: Likewise.
3934 2002-01-20 Kazu Hirata <kazu@hxi.com>
3936 * config/h8300/h8300.c: Revise comments about shift code.
3938 2002-01-20 Kazu Hirata <kazu@hxi.com>
3940 * config/h8300/h8300.c (function_arg): Update a comment.
3942 2002-01-20 Kazu Hirata <kazu@hxi.com>
3944 * config/h8300/h8300.md: Update the comments at the beginning
3947 2002-01-20 Kazu Hirata <kazu@hxi.com>
3949 * config/i370/i370.c: Fix comment formatting.
3950 * config/i370/i370.h: Likewise.
3951 * config/i370/i370.md: Likewise.
3952 * config/i370/linux.h: Likewise.
3954 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3956 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
3958 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
3959 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
3962 2002-01-20 Graham Stott <grahams@redhat.com>
3964 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
3966 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
3968 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
3970 2002-01-19 Tom Rix <trix@redhat.com>
3972 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
3974 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
3976 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
3978 * function.c (assign_stack_local_1): Adjust x_frame_offset with
3979 STARTING_FRAME_PHASE.
3980 (STARTING_FRAME_PHASE): New.
3981 (instantiate_virtual_regs): Check saneness of
3982 STARTING_FRAME_PHASE.
3984 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
3986 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
3988 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
3990 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
3992 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
3993 be used for bootstrapping GCC 3.0.
3995 2002-01-18 Kazu Hirata <kazu@hxi.com>
3997 * config/h8300/h8300.md: Fix an insn length.
3999 2002-01-18 Kazu Hirata <kazu@hxi.com>
4001 * bitmap.h: Fix comment formatting.
4002 * combine.c: Likewise.
4003 * cppfiles.c: Likewise.
4004 * c-pragma.h: Likewise.
4005 * c-typeck.c: Likewise.
4007 * dwarf2out.c: Likewise.
4008 * function.c: Likewise.
4010 * genattrtab.c: Likewise.
4011 * gthr-win32.h: Likewise.
4012 * haifa-sched.c: Likewise.
4013 * predict.c: Likewise.
4014 * rtlanal.c: Likewise.
4016 * unwind-dw2-fde.h: Likewise.
4017 * unwind-pe.h: Likewise.
4018 * vmsdbgout.c: Likewise.
4020 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4022 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
4023 if type_required and passed decl.
4025 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
4027 * config.gcc (cpu_type): Include altivec.h in powerpc
4031 * config/rs6000/altivec.h: New.
4033 2002-01-17 David Edelsohn <edelsohn@gnu.org>
4035 * doc/install.texi (*-ibm-aix*): Update assembler and exception
4036 handling information.
4037 * doc/trouble.texi (Interoperation): Add libstdc++ information
4039 (Misunderstandings): Add template instantiation and static template
4040 member information for AIX.
4042 2002-01-17 Jason Merrill <jason@redhat.com>
4044 * dbxout.c (dbxout_type): Support const and volatile.
4046 * except.c (add_partial_entry): Remove backwards compatibility code.
4047 (end_protect_partials): Likewise.
4049 2002-01-17 Jakub Jelinek <jakub@redhat.com>
4051 * config/ia64/ia64.md (prologue_use): New.
4052 * config/ia64/ia64.c (ia64_expand_prologue): Use
4053 gen_prologue_use instead of gen_rtx_USE.
4054 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
4055 as CODE_FOR_pred_rel_mutex.
4056 (ia64_sched_reorder2): Likewise.
4058 2002-01-16 Eric Christopher <echristo@redhat.com>
4060 * config/mips/r3900.h: Reformat.
4061 (SUBTARGET_CPP_SIZE_SPEC): Remove.
4062 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
4063 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
4064 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
4065 * config/mips/t-elf: Remove mips3 multilib.
4067 2002-01-16 H.J. Lu <hjl@gnu.org>
4069 * config/mips/linux.h: Include "mips/abi64.h".
4071 2002-01-16 H.J. Lu <hjl@gnu.org>
4073 * config/mips/t-linux: New.
4075 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
4077 * config/mips/linux.h: Don't include "gofast.h".
4078 (INIT_SUBTARGET_OPTABS): Removed.
4080 2002-01-16 Kazu Hirata <kazu@hxi.com>
4082 * config/h8300/h8300-protos.h: Replace emit_a_shift with
4084 * config/h8300/h8300.c: Likewise.
4085 * config/h8300/h8300.md: Likewise.
4087 2002-01-16 Kazu Hirata <kazu@hxi.com>
4089 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
4090 spaces after an opcode name.
4091 (pushqi1_h8300hs): Likewise.
4092 (pushhi1_h8300hs): Likewise.
4094 2002-01-16 Kazu Hirata <kazu@hxi.com>
4096 * doc/extend.texi: Replace "option" with "attribute"
4099 2002-01-16 Jakub Jelinek <jakub@redhat.com>
4101 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
4102 (and:DI () (const_int -8)).
4103 (split_small_symbolic_mem_operand): Split
4104 (mem (and:DI () (const_int -8)).
4106 2002-01-16 Jakub Jelinek <jakub@redhat.com>
4109 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
4110 same way as TYPE_IMUL.
4111 (ultrasparc_sched_reorder): Likewise.
4112 * config/sparc/sparc.md (type): Add comment to update
4113 ultrasparc_sched_reorder when making changes.
4115 2002-01-16 Kazu Hirata <kazu@hxi.com>
4117 * doc/invoke.texi: Change the dump file name of block
4118 reordering pass from 28.bbro to 29.bbro.
4121 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
4123 * i386.md (minsf splitter): Fix pasto.
4125 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
4127 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
4128 to frame pointer initialisation instruction.
4129 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
4130 initialisation instruction.
4131 (soft_df_operand): Do not accept the IP register.
4132 (nonimmediate_soft_df_operand): Do not accept the IP register.
4134 2002-01-16 Jakub Jelinek <jakub@redhat.com>
4137 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
4138 MASK_V8 being both set.
4140 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
4142 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
4143 insn for GOT register; add REG_MAYBE_DEAD notes instead.
4144 config/s390/s390.md (call, call_value): Add GOT register to
4145 CALL_INSN_FUNCTION_USAGE where needed.
4146 (call_exp, call_value_exp): New.
4148 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
4150 * config/arm/arm.c: General formatting tidy up.
4152 2002-01-16 Graham Stott <grahams@redhat.com>
4154 * calls.c (try_to_integrate): Use "(size_t)" intermediate
4155 cast and when casting an integer literal to "rtx" pointer.
4156 (expand_call): Likewise.
4157 * flow.c (try_pre_increment): Likewise.
4158 (find_use_as_address): Likewise.
4159 * integrate.c (expand_iline_function): Likewise.
4160 * regmove.c (try_auto_increment): Likewise.
4162 2002-01-16 Graham Stott <grahams@redhat.com>
4164 * sched-rgn.c (passed): Use sbitmap_free.
4167 (in_queue): Likewise.
4168 (in_stack): Likewise.
4170 2002-01-15 Eric Christopher <echristo@redhat.com>
4172 * flow.c (propagate_one_insn): Change to use fatal_insn.
4174 2002-01-15 Kazu Hirata <kazu@hxi.com>
4176 * expmed.c (extract_fixed_bit_field): Remove unused code.
4177 * system.h: Poison SLOW_ZERO_EXTEND.
4178 * doc/tm.texi: Remove.
4179 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
4180 * config/arm/arm.h: Likewise.
4181 * config/avr/avr.h: Likewise.
4182 * config/clipper/clipper.h: Likewise.
4183 * config/convex/convex.h: Likewise.
4184 * config/d30v/d30v.h: Likewise.
4185 * config/dsp16xx/dsp16xx.h: Likewise.
4186 * config/elxsi/elxsi.h: Likewise.
4187 * config/fr30/fr30.h: Likewise.
4188 * config/h8300/h8300.h: Likewise.
4189 * config/i370/i370.h: Likewise.
4190 * config/i386/i386.h: Likewise.
4191 * config/m68k/m68k.h: Likewise.
4192 * config/mips/mips.h: Likewise.
4193 * config/ns32k/ns32k.h: Likewise.
4194 * config/pdp11/pdp11.h: Likewise.
4195 * config/pj/pj.h: Likewise.
4196 * config/s390/s390.h: Likewise.
4197 * config/sh/sh.h: Likewise.
4198 * config/stormy16/stormy16.h: Likewise.
4199 * config/v850/v850.h: Likewise.
4200 * config/vax/vax.h: Likewise.
4201 * config/we32k/we32k.h: Likewise.
4203 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
4205 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
4206 (altivec_lvsl): Change constraint to b.
4207 (altivec_lvsr): Same.
4208 (altivec_lvebx): Same.
4209 (altivec_lvehx): Same.
4210 (altivec_lvewx): Same.
4211 (altivec_lvxl): Same.
4212 (altivec_lvx): Same.
4213 (altivec_stvx): Add parallel.
4214 (altivec_stvxl): Same.
4215 (altivec_stvehx): Same.
4216 (altivec_stvebx): Same.
4217 (altivec_stvebx): Same.
4219 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
4221 * config.gcc: Change altivec.h to altivec-defs.h.
4223 * config/rs6000/altivec.h: Delete.
4225 * config/rs6000/altivec-defs.h: Add.
4227 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
4229 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
4232 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
4233 less than or equal to eight bytes.
4235 * vax.md (andsi3): Remove constraints and change SET destination
4236 operand type to nonimmediate_operand.
4237 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
4238 when it is a CONST_INT.
4240 2002-01-15 Jason Merrill <jason@redhat.com>
4242 * c-common.def (FILE_STMT): New code.
4243 * c-common.c (statement_code_p): It's a statement.
4244 * c-common.h (stmt_tree_s): Add x_last_filename.
4245 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
4246 (last_expr_filename): New macro.
4247 * c-semantics.c (begin_stmt_tree): Initialize it.
4248 (add_stmt): If the filename changed, also insert a
4250 (expand_stmt): Handle seeing one.
4252 2002-01-15 Eric Christopher <echristo@redhat.com>
4254 * flow.c (propagate_one_insn): Add error message and print out
4257 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
4259 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
4260 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
4261 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
4262 TRAMPOLINE_ALIGNMENT.
4263 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
4265 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
4266 PCC_BITFIELD_TYPE_MATTERS.
4267 * config/interix.h (STDC_VALUE): Remove. Use
4268 STDC_0_IN_SYSTEM_HEADERS.
4269 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
4270 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
4271 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
4273 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
4275 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
4276 not work on this platform currently.
4278 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
4280 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
4281 readonly_warning in _().
4283 2002-01-15 Douglas B Rupp <rupp@gnat.com>
4285 * gcc.c (delete_if_ordinary): Backout previous change.
4287 2002-01-15 Kazu Hirata <kazu@hxi.com>
4289 * config/h8300/h8300.c (print_operand): Remove support for
4290 unused operand characters.
4292 * read-rtl.c: Fix formatting.
4294 * recog.c: Likewise.
4295 * regclass.c: Likewise.
4296 * regmove.c: Likewise.
4297 * reg-stack.c: Likewise.
4298 * reload1.c: Likewise.
4299 * rtlanal.c: Likewise.
4301 2002-01-15 Kazu Hirata <kazu@hxi.com>
4303 * config/i386/i386.c: Fix formatting.
4305 2002-01-15 Jakub Jelinek <jakub@redhat.com>
4307 * c-typeck.c (process_init_element): Don't save_expr
4308 COMPOUND_LITERAL_EXPR if just its initializer will be used.
4310 2002-01-15 David Edelsohn <edelsohn@gnu.org>
4312 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
4313 emit optional traceback table if optimize_size or TARGET_ELF.
4314 * config/rs6000/rs6000.md (prefetch): New.
4316 2002-01-15 Andreas Jaeger <aj@suse.de>
4318 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
4320 2002-01-15 Kazu Hirata <kazu@hxi.com>
4322 * mips-tfile.c: Fix formatting.
4324 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
4326 * unroll.c (final_reg_note_copy): Fix previous commit.
4328 2002-01-14 Kazu Hirata <kazu@hxi.com>
4330 * config/h8300/h8300-protos.h: Remove the prototype for
4332 * config/h8300/h8300.c (eq_operator): Remove.
4334 2002-01-14 Richard Henderson <rth@redhat.com>
4336 * config/i386/i386.md (prefetch): Tidy.
4337 (prefetch_3dnow): Fix locality operand.
4339 2002-01-14 Richard Henderson <rth@redhat.com>
4341 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
4342 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
4344 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
4346 * reload1.c (reload_combine): Pass reg_sum replacement through
4347 copy_rtx in loop performing multiple changes.
4349 2002-01-14 Jakub Jelinek <jakub@redhat.com>
4351 * except.c (remove_unreachable_regions): New.
4352 (free_eh_status): Clear exception_handler_labels.
4353 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
4354 (find_exception_handler_labels): Don't add the same label more than
4356 (remove_exception_handler_label): Don't die if
4357 find_exception_handler_labels hasn't been called for the current
4360 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
4362 * toplev.c (rest_of_compilation): Rebuild jump labels after
4365 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
4367 * doc/extend.texi: Move documentation of X86 built-in functions
4369 * doc/invoke.texi: From here.
4370 * doc/sourcebuild.texi: Document location of documentation for
4371 machine built-in functions.
4373 2002-01-13 Christopher Faylor <cgf@redhat.com>
4375 * cppfiles.c (TEST_THRESHOLD): New macro.
4376 (SHOULD_MMAP): Ditto.
4377 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
4380 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
4382 * unroll.c (final_reg_note_copy): Properly handle
4384 (unroll_loops): Fix LOOP_CONDITION heuristics.
4386 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
4388 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
4389 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
4391 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
4393 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
4396 2002-01-14 Tom Rix <trix@redhat.com>
4398 * config/rs6000/rs6000.md: Fix typo with sradi.
4400 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
4402 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
4403 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
4404 (clrstrdi, clrstrsi): Adapt callers.
4406 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
4408 (movti splitter): Never use register 0 as base register.
4410 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
4412 * combine.c (simplify_shift_const): Always generate new rtx
4413 for shift expression instead of reusing given expression.
4415 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4417 * config/alpha/alpha.c (alpha_expand_mov): Don't call
4418 alpha_legitimize_address unless mode is Pmode.
4420 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
4422 * doc/md.texi (Modifiers): Document the '*' constraint for the
4425 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
4426 * doc/extend.texi (Function Attributes): 'interrupt' is valid
4429 2002-01-13 Richard Henderson <rth@redhat.com>
4431 * reload.c (find_reloads): Use a hard reg destination as reload reg
4432 for an input reload of the source.
4434 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4436 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
4439 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
4441 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
4442 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
4444 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
4446 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4448 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
4450 2002-01-12 Tom Rix <trix@redhat.com>
4452 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
4455 2002-01-12 Richard Henderson <rth@redhat.com>
4457 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
4459 * doc/invoke.texi: Update Alpha options.
4461 * doc/invoke.texi: Update i386 built-in function lists.
4463 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
4465 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
4466 referencing outside.
4468 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4470 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
4471 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
4472 offsets, and change line folding.
4473 * optabs.c (expand_binop): Remove warnings.
4474 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
4476 2002-01-12 Graham Stott <grahams@redhat.com>
4478 * attribs.c (handle_deprecated_attribute): constify WHAT.
4479 * diagnostic.c (warn_deprecated_use): Add braces, fixes
4480 dangling else warning and constify WHAT.
4481 * except.h (struct function, struct inline_remap): Move
4482 struct tag forward defs before all prototypes.
4483 (duplicate_eh_regions): Whitespace.
4485 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
4487 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
4488 MODE_BASE_REG_CLASS.
4489 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
4491 2002-01-12 Richard Henderson <rth@redhat.com>
4493 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
4494 (ix86_expand_vector_move): New.
4495 (bdesc_2arg): Remove andps, andnps, orps, xorps.
4496 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
4497 Remove old prefetch builtins. Special case the logicals removed above.
4498 (ix86_expand_builtin): Likewise.
4499 (safe_vector_operand): Use V4SFmode, not TImode.
4500 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
4501 (ix86_expand_timode_binop_builtin): New.
4502 * config/i386/i386-protos.h: Update.
4503 * config/i386/i386.h (enum ix86_builtins): Update.
4504 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
4505 Use ix86_expand_vector_move in vector move expanders.
4506 (movti_internal, movti_rex64): Add xorps alternative.
4507 (sse_clrv4sf): Rename and adjust from sse_clrti.
4508 (prefetch): Don't work so hard.
4509 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
4510 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
4511 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
4513 2002-01-11 Richard Henderson <rth@redhat.com>
4515 * config/i386/mmintrin.h: New file.
4516 * config/i386/xmmintrin.h: New file.
4517 * config.gcc (i?86-*-*): Add extra_headers.
4518 * simplify-rtx.c (simplify_unary_operation): Handle saturating
4520 (simplify_binary_operation): Handle saturating arithmetic codes.
4521 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
4522 not the lowpart subreg.
4523 (ix86_expand_builtin): Return a TImode dummy register instead of 0
4525 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
4527 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4529 * conflict.c (conflict_graph_compute): Free regsets when finished.
4530 * ssa.c (compute_coalesced_reg_partition): Likewise.
4532 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4534 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
4535 every where we allocate a register.
4537 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4539 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
4540 * lcm.c (compute_earliest, compute_farthest): Likewise.
4542 2002-01-11 Janis Johnson <janis187@us.ibm.com>
4544 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
4546 2002-01-11 Janis Johnson <janis187@us.ibm.com>
4548 * doc/rtl.texi (Insns): Fix 2 typos.
4550 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
4552 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
4553 options. Use @table @gcctabopt for MMIX options. Add index
4554 entries for MMIX options. Start new paragraph with first
4555 heading of the machine-dependent options.
4557 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
4560 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
4561 * combine.c (force_to_mode): Same.
4562 * reload1.c (clear_reload_reg_in_use): Same.
4564 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
4566 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
4569 2002-01-11 Andreas Jaeger <aj@suse.de>,
4570 Brad Lucier <lucier@math.purdue.edu>
4572 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
4575 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
4577 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
4578 Protect with IN_LIBGCC.
4579 (LINK_EH_SPEC): Add required trailing space.
4581 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
4583 * c-tree.h: Move function declarations so that they are listed
4584 under the filename which contains them.
4585 (check_identifier, finish_decl_top_level,
4586 lookup_name_current_level_global, shadow_record_fields): Remove.
4588 2002-01-11 Andreas Jaeger <aj@suse.de>
4590 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
4593 2002-01-10 Richard Henderson <rth@redhat.com>
4595 * config/alpha/alpha.c (print_operand): Add 'J'.
4596 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
4597 new operand with the sequence number for the lituse. When splitting
4598 the insns, use gen_movdi_er_high_g and generate a sequence number.
4599 (gen_movdi_er_high_g): Print the sequence number if non-zero.
4601 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
4603 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
4604 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
4606 (altivec_expand_builtin): Same.
4607 (altivec_expand_stv_builtin): New.
4609 * config/rs6000/rs6000.h (rs6000_builtins): Same.
4611 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
4612 ("altivec_lvehx"): New.
4613 ("altivec_lvewx"): New.
4614 ("altivec_lvxl"): New.
4615 ("altivec_lvx"): New.
4616 ("altivec_stvx"): New.
4617 ("altivec_stvebx"): New.
4618 ("altivec_stvehx"): New.
4619 ("altivec_stvewx"): New.
4620 ("altivec_stvxl"): New.
4622 2002-01-10 Richard Henderson <rth@redhat.com>
4624 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
4625 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
4626 care not to delete instructions twice.
4628 2002-01-10 Zack Weinberg <zack@codesourcery.com>
4630 * toplev.c: Don't declare environ (it's not used anywhere).
4631 * configure.in: Don't check for declaration of environ.
4632 * config/i386/xm-mingw32.h: Don't #define environ.
4633 * config.in, configure: Regenerate.
4635 2002-01-10 Zack Weinberg <zack@codesourcery.com>
4637 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
4638 * configure: Regenerate.
4640 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
4641 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
4642 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
4644 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
4645 LIMITS_H_TEST here, not in m68k/x-next.
4646 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
4647 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
4649 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
4650 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
4651 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
4653 * config/i386/x-djgpp: Renamed i386/t-djgpp.
4654 * config/m88k/x-dolph: Renamed m88k/t-dolph.
4655 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
4656 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
4657 replacement of quadlib.asm with quadlib.c.
4659 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
4660 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
4661 config/rs6000/xm-beos.h: Delete file.
4663 * config.gcc: Update to match above changes.
4665 2002-01-10 Kazu Hirata <kazu@hxi.com>
4667 * config/h8300/h8300.h: Fix comment typos.
4668 * config/h8300/h8300.md: Likewise.
4669 * config/h8300/lib1funcs.asm: Likewise.
4671 2002-01-10 Dale Johannesen <dalej@apple.com>
4673 PR optimization/5269
4674 * unroll.c (precondition_loop_p): Make *increment be the correct
4675 sign when n_iterations known, to avoid confusing caller.
4677 2002-01-10 Kazu Hirata <kazu@hxi.com>
4679 * doc/extend.texi (deprecated): Fix a typo.
4681 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
4683 * basic-block.h (update_br_prob_note): Declare.
4684 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
4685 (try_forward_edges): Care negative frequencies and update note.
4686 (outgoing_edges_match): Tweek conditional merging heuristics.
4687 (try_crossjump_to_edge): use update_br_prob_note.
4688 * cfglayout.c (fixup_reorder_chain): Likewise.
4689 * cfrtl.c (update_br_prob_note): New.
4690 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
4692 * i386.c (ix86_decompose_address): Return -1 if address contains
4694 (legitimate_address_p): Require ix86_decompose_address to return 1.
4696 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
4697 (cprop_insn): Likewise.
4699 2002-01-10 Kazu Hirata <kazu@hxi.com>
4701 * toplev.c: Fix formatting.
4703 * tree-dump.c: Likewise.
4704 * unroll.c: Likewise.
4705 * unwind-dw2.c: Likewise.
4706 * unwind-dw2-fde.c: Likewise.
4707 * unwind-dw2-fde-glibc.c: Likewise.
4708 * unwind-sjlj.c: Likewise.
4710 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
4712 * doc/invoke.texi: Document PDP-11 options.
4714 2002-01-10 Kazu Hirata <kazu@hxi.com>
4716 * config/h8300/h8300.h: Fix formatting.
4718 2002-01-10 Ira Ruben <ira@apple.com>
4720 Add __attribute__ ((deprecated)).
4721 * extend.texi: Document __attribute__ ((deprecated)).
4722 * invoke.texi: Document -Wno-deprecated-declarations.
4723 * testsuite/g++.dg/other/deprecated.C: New C++ test.
4724 * testsuite/gcc.dg/deprecated.c: New C test.
4725 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
4726 (c_common_attribute_table): Add "deprecated" entry.
4727 (handle_deprecated_attribute): New function.
4728 * c-decl.c (deprecated_states): New enum.
4729 deprecated_state: State of "deprecated" handling.
4730 (start_decl): Set deprecated_state based on attributes.
4731 (grokdeclarator): Test for deprecated uses, propagate attribute.
4732 * c-typeck.c (build_component_ref): Test for deprecated fields.
4733 (build_external_ref): Test for deprecated primaries.
4734 * diagnostic.c (warn_deprecated_use) New function to issue
4735 warnings about __attribute__ ((depricated)) references.
4736 * flags.h (warn_deprecated_decl): Extern declared for
4737 -W[no-]deprecated-declarations option.
4738 * print-tree.c (print_node): Show deprecated flag status.
4739 * toplev.c (warn_deprecated_decl): Defined.
4740 (W_options): Added "deprecated-declaration".
4741 * toplev.h (warn_deprecated_use): Extern declared.
4742 * tree.h (struct tree_common): Define deprecated_flag.
4743 (TREE_DEPRECATED): New macro to access flag.
4744 * cp/call.c (build_call): Test for deprecated calls.
4745 * cp/class.c (add_implicitly_declared_members): Set global
4746 flag to tell grokdeclarator to not issue deprecated warnings.
4747 * cp/cp-tree.h: Add extern for adding_implicit_members.
4748 * cp/decl.c (deprecated_states): New enum.
4749 (start_decl): Set deprecated_state based on attributes.
4750 (grokdeclarator): Test for deprecated uses, propagate attribute.
4751 * cp/lex.c (do_identifier): Test for deprecated primaries.
4752 * cp/typeck.c (build_component_ref): Test for deprecated fields.
4754 2002-01-10 Ira Ruben <ira@apple.com>
4756 Fix to assign attributes to inline member functions.
4757 * cp/decl.c (start_method): Handle attrlist.
4759 2002-01-10 Kazu Hirata <kazu@hxi.com>
4761 * combine.c (expand_field_assignment): Use subreg_lsb().
4763 2002-01-10 David Edelsohn <edelsohn@gnu.org>
4765 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
4766 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
4767 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
4768 Recurse for any operand of AND as long as constant is non-zero.
4770 2002-01-10 Kazu Hirata <kazu@hxi.com>
4772 * config/h8300/h8300.md: Remove constraints from expanders.
4774 2002-01-10 Kazu Hirata <kazu@hxi.com>
4776 * varasm.c: Fix formatting.
4777 * varray.c: Likewise.
4778 * vmsdbgout.c: Likewise.
4779 * xcoffout.c: Likewise.
4781 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
4783 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
4784 update edge probabilities to match.
4786 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
4788 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
4790 * doc/languages.texi, doc/sourcebuild.texi: New files.
4791 * doc/configfiles.texi: Make a subsubsection. Update.
4792 * doc/configterms.texi: Add @node. Remove warning that this isn't
4793 instructions for building GCC.
4794 * doc/makefile.texi: Make a subsection.
4795 * doc/gccint.texi: Update.
4797 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
4799 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
4801 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
4803 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
4805 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
4807 * optabs.c (expand_fix): Look for wider integer modes first.
4809 * i386.md (mov?f): Avoid the fake const double trick for medium
4811 (min?f*/max?f*): Prohibit memory operands for i387 variant.
4812 (fop_df_4): Disable for SSE compilation.
4814 2002-01-10 Graham Stott <grahams@redhat.com>
4816 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
4817 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
4819 2002-01-10 Richard Henderson <rth@redhat.com>
4821 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
4823 2002-01-10 Richard Henderson <rth@redhat.com>
4825 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
4826 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
4828 2002-01-10 Kazu Hirata <kazu@hxi.com>
4830 * combine.c (can_combine_p): Fix a comment typo.
4832 2002-01-09 Zack Weinberg <zack@codesourcery.com>
4834 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
4835 empty list correctly. Change loop index $t to $f for
4836 consistency with rest of Makefile.
4838 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
4840 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
4841 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
4843 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
4844 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
4845 (altivec_init_builtins): Same.
4846 (altivec_expand_unop_builtin): Return NULL_RTX on error.
4847 (altivec_expand_binop_builtin): Same.
4848 (altivec_expand_ternop_builtin): Same.
4851 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
4852 ("altivec_vctuxs"): Fix typo.
4853 ("altivec_vnmsubfp"): Same.
4854 ("altivec_dssall"): New.
4855 ("altivec_mfvscr"): New.
4856 ("altivec_dss"): New.
4857 ("altivec_lvsl"): New.
4858 ("altivec_lvsr"): New.
4859 ("altivec_dstt"): New.
4860 ("altivec_dstst"): New.
4861 ("altivec_dststt"): New.
4862 ("altivec_dst"): New.
4864 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
4865 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
4867 2002-01-09 Richard Henderson <rth@redhat.com>
4869 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
4871 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
4873 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
4875 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
4877 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
4879 2002-01-09 Kazu Hirata <kazu@hxi.com>
4881 * read-rtl.c: Fix formatting.
4883 * regclass.c: Likewise.
4884 * regrename.c: Likewise.
4885 * reg-stack.c: Likewise.
4886 * reload1.c: Likewise.
4887 * reload.c: Likewise.
4890 2002-01-09 Kazu Hirata <kazu@hxi.com>
4892 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
4893 to extract items in the expr_list chain.
4895 2002-01-09 Richard Henderson <rth@redhat.com>
4897 * config/vax/vax.c (vax_rtx_cost): Never abort.
4899 * config/vax/vax.h (REAL_ARITHMETIC): Define.
4901 2002-01-09 Jan Hubicka <jh@suse.cz>
4903 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
4905 2002-01-09 Richard Henderson <rth@redhat.com>
4907 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
4908 Unify code from various alternatives.
4910 2002-01-09 Richard Henderson <rth@redhat.com>
4912 * regrename.c (copy_value): Ignore the copy if the source register
4913 is present in the value chain with a narrower mode.
4915 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4917 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
4918 for the c4x target. Also improve layout.
4920 2002-01-09 Richard Henderson <rth@redhat.com>
4922 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
4923 * config/m32r/m32r.md (and ior xor splitters): Swap operands
4924 to match insn patterns.
4926 2002-01-09 Richard Henderson <rth@redhat.com>
4928 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
4929 (copyprop_hardreg_forward_1): Likewise.
4931 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
4933 * pa.md (decrement_and_branch_until_zero): Change predicate for
4934 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
4936 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
4938 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
4939 gets undefined. For Darwin.
4941 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4943 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
4945 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4947 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
4949 2002-01-08 Richard Henderson <rth@redhat.com>
4951 * regrename.c (copy_value): Ignore overlapping copies.
4953 2002-01-08 Richard Henderson <rth@redhat.com>
4955 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
4956 as needed to avoid shared structure.
4958 2002-01-08 Kazu Hirata <kazu@hxi.com>
4960 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
4963 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
4965 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
4966 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
4967 documentation of obsolete macros.
4968 * system.h: Poison these macros.
4969 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
4970 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
4971 config/c4x/c4x.h, config/clipper/clipper.h,
4972 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
4973 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
4974 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
4975 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
4976 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
4977 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
4978 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4979 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
4980 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
4981 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
4982 config/sparc/sparc.h, config/stormy16/stormy16.h,
4983 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
4984 definitions and commented out definitions of obsolete macros.
4985 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
4986 of MAX_INT_TYPE_SIZE.
4988 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
4990 * config/s390/s390.c (s390_preferred_reload_class): Never
4991 return ADDR_REGS if it isn't a subset of the given class.
4992 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
4993 FP_REGS, but all superclasses as well.
4995 * config/s390/s390.c (s390_function_profiler): Fix thinko.
4997 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
4998 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
4999 must not be a const_int.
5001 2002-01-08 Richard Henderson <rth@redhat.com>
5003 * Makefile.in (toplev.o): Depend on options.h.
5004 (gcc.o): Depend on specs.h.
5006 2002-01-08 Jakub Jelinek <jakub@redhat.com>
5008 * expr.c (store_expr): Convert VOIDmode constants back to target's
5011 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5013 * doc/invoke.texi: Markup gcc as @command. Refer to
5014 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
5015 of http://gcc.gnu.org/thanks.html.
5017 2002-01-08 Dale Johannesen <dalej@apple.com>
5019 * config/rs6000/rs6000.md: Add missing int register
5020 target case to movdf_low.
5022 2002-01-08 Zack Weinberg <zack@codesourcery.com>
5024 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
5025 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
5026 (cppinit.o): Depend on except.h.
5027 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
5028 s-specs): New rules.
5030 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
5031 Don't create specs.h/options.h/gencheck.h here. Remove
5032 unnecessary variable settings from last argument of AC_OUTPUT.
5033 * config.in, configure: Regenerate.
5034 * intl.c: Hardcode package name as "gcc".
5036 * cppinit.c: Include except.h.
5037 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
5039 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
5040 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
5041 (!)USING_SJLJ_EXCEPTIONS.
5042 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
5044 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
5046 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
5047 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
5048 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
5049 documentation of obsolete macros.
5050 * system.h: Poison these macros.
5051 * config/d30v/d30v.h, config/ns32k/encore.h,
5052 config/stormy16/stormy16.h: Remove definitions and commented out
5053 definitions of obsolete macros.
5055 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
5057 * objc/objc-act.c (handle_class_ref): Mark the declaration of
5058 %sobjc_class_ref_%s as used - to prevent unwanted compiler
5061 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
5063 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
5064 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
5065 to insn adjusting stack/frame pointer.
5066 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
5067 accept operands that cause the insn to be non-splittable.
5069 2002-01-08 Graham Stott <grahams@redhat.com>
5071 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
5072 (C_TYPE_FIELDS_VOLATILE): Likewise.
5073 (C_TYPE_BEING_DEFINED): Likewise.
5074 (C_IS_RESERVED_WORD): Likewise.
5075 (C_TYPE_VARIABLE_SIZE): Likewise.
5076 (C_DECL_VARIABLE_SIZE): Likewise.
5077 (C_MISSING_PROTOTYPE_WARNED): Likewise.
5078 (C_SET_EXP_ORIGINAL_CODE): Likewise.
5079 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
5081 (C_DECL_ANTICIPATED): Likewise.
5082 (c_build_type_variant): Add parenthesis.
5084 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
5086 * gcc.c (option_map): Remove --version.
5087 (process_command): Handle -fversion following the GNU Coding
5088 Standards. Partially addresses PR other/704.
5090 2002-01-08 Graham Stott <grahams@redhat.com>
5092 * combine.c (combine_instructions): Fix typo.
5094 2002-01-08 Graham Stott <grahams@redhat.com>
5096 * debug.h: Use "tree" and "rtx" throughout.
5098 * debug.c: Likewise.
5100 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
5102 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
5103 constant pool, use the pool's version of the symbol instead.
5105 2002-01-07 Richard Henderson <rth@redhat.com>
5107 * regrename.c (find_oldest_value_reg): Ignore the value chain if
5108 the original register was copied in a mode with a fewer number of
5109 hard registers than the desired mode.
5110 (copyprop_hardreg_forward_1): Likewise.
5111 (debug_value_data): Fix loop test.
5112 * toplev.c (parse_options_and_default_flags): Reenable
5113 -fcprop-registers at -O1.
5115 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
5117 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
5118 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
5120 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
5123 * config/rs6000/rs6000.md: Add altivec predicate patterns.
5125 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
5127 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
5128 (pa_output_function_prologue): Output local label at the beginning of
5129 the prologue when profiling.
5130 (hppa_profile_hook): Use the local label rather than the function label.
5131 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
5133 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
5135 * config/rs6000/rs6000.c (print_operand): Remove extra space.
5136 (altivec_expand_unop_builtin): Fix thinko.
5137 (altivec_expand_binop_builtin): Same.
5138 (altivec_expand_ternop_builtin): Same.
5139 (altivec_expand_builtin): Same.
5141 2002-01-07 Richard Henderson <rth@redhat.com>
5143 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
5145 2002-01-07 Jason Merrill <jason@redhat.com>
5147 * unwind-dw2.c (execute_cfa_program): Use < again.
5149 2002-01-07 Jakub Jelinek <jakub@redhat.com>
5151 * predict.c (combine_predictions_for_insn): Avoid division by zero.
5153 2002-01-07 Jakub Jelinek <jakub@redhat.com>
5155 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
5156 Don't allow -1 - x -> ~x simplifications in the first pass.
5158 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
5160 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
5162 (altivec_expand_binop_builtin): Same.
5163 (altivec_expand_unop_builtin): Same.
5164 (print_operand): Fix typo.
5165 (bdesc_1arg): Add vupk* variants.
5167 * rs6000.h (rs6000_builtins): Add vupk* enums.
5169 * rs6000.md: Add altivec_vupk* variants.
5171 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
5173 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
5174 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
5175 and last update dates.
5177 2002-01-07 Janis Johnson <janis187@us.ibm.com>
5179 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
5181 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
5183 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
5184 * config/avr/avr.h (CPP_SPEC): Likewise.
5185 (LINK_SPEC): Likewise.
5186 (CRT_BINUTILS_SPECS): Likewise.
5187 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5188 * doc/invoke.texi (AVR Options): Document them.
5190 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
5192 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
5195 2002-01-07 Graham Stott <grahams@redhat.com>
5197 * config/i386/i386.h: Update copyright date.
5198 (HALF_PIC_PTR): Add parenthesis.
5199 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
5200 (CONSTANT_ALIGNMENT): Add parenthesis.
5201 (DATA_ALIGNMENT): Likewise.
5202 (LOCAL_ALIGNMENT): Likewise.
5203 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
5204 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
5205 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
5206 (HARD_REGNO_NREGS): Add paranethesis.
5207 (VALID_SSE_REG_MODE): Whitespace.
5208 (VALID_MMX_REG_MODE): Whitespace.
5209 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
5210 (ix86_hard_regno_mode_ok): Add parenthesis.
5211 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
5212 (RETURN_IN_MEMORY): Whitespace.
5213 (N_REG_CLASSES): Add parenthesis.
5214 (INTEGER_CLASS_P): Add parenthesis and wrap.
5215 (FLOAT_CLASS_P): Likewise.
5216 (SSE_CLASS_P): Likewise.
5217 (MMX_CLASS_P): Likewise.
5218 (MAYBE_INTEGER_CLASS_P): Likewise.
5219 (MAYBE_FLOAT_CLASS_P): Likewise.
5220 (MAYBE_SSE_CLASS_P): Likewise.
5221 (MAYBE_MMX_CLASS_P): Likewise.
5222 (Q_CLASS_P): Likewise.
5223 (GENERAL_REGNO_P): Uppercase macro parameter.
5224 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
5225 (FP_REGNO_P): Likewise.
5226 (ANY_FP_REGNO_P): Uppercase macro parameter.
5227 (SSE_REGNO_P): Likewise.
5228 (SSE_REGNO): Likewise.
5229 (SSE_REG_P): Likewise.
5230 (SSE_FLOAT_MODE_P): Likewise.
5231 (MMX_REGNO_P): Likewise.
5232 (MMX_REG_P):Likewise.
5233 (STACK_REG_P): Likewise.
5234 (NON_STACK_REG_P): Likewise.
5235 (STACK_TOP_P): Likewise.
5236 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
5237 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
5238 (SECONDARY_MEMORY_NEEDED): Likewise.
5239 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
5240 (MD_ASM_CLOBBERS): Whitespace and wrap.
5241 (MUST_PASS_IN_STACK): Whitespace and wrap.
5242 (RETURN_POPS_ARGS): Add parenthesis.
5243 (INIT_CUMULATIVE_ARGS): Likewise.
5244 (FUNCTION_ARG): Likewise.
5245 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
5246 (SETUP_INCOMING_VARARGS): Likewise.
5247 (BUILD_VA_LIST_TYPE): Add parenthesis.
5248 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
5250 (EXPAND_BUILTIN_VA_ARG): Likewise.
5251 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
5252 (INITIALIZE_TRAMPOLINE): Add parenthesis.
5253 (INITIAL_ELIMINATION_OFFSET): Likewise.
5254 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
5255 (REGNO_OK_FOR_BASE_P): Likewise.
5256 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
5257 (REGNO_OK_FOR_DIREG_P): Likewise.
5258 (REG_OK_FOR_INDEX_P): Whitespace.
5259 (REG_OK_FOR_BASE_P): Whitespace.
5260 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
5262 (FIND_BASE_TERM): Fix typo.
5263 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
5264 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
5265 (SYMBOLIC_CONST; Whitespace.
5266 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
5267 (ENCODE_SECTION_INFO): Whitespace.
5268 (FINALIZE_PIC): Remove do { ... } while (0).
5269 (PROMOTE_MODE): Wrap in do { ... } while (0).
5270 (CONST_COSTS): Whitespace.
5271 (RTX_COSTS): Add paramethesis, whitespace and wrap.
5272 (REGISTER_MOVE_COST): Add parenthesis.
5273 (MEMORY_MOVE_COST): Likewise.
5274 (EXTRA_CC_MODES): Whitespace.
5275 (SELECT_CC_MODE): Add parenthesis and whitespace.
5276 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
5277 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
5278 (ASM_OUTPUT_LABEL): Add paramethesis.
5279 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
5280 (ASM_OUTPUT_REG_POP): Likewise.
5281 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
5282 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5284 * config/i386/i386.c: Update copyright.
5285 (CHECK_STACK_LIMIT): Add parenthesis.
5286 (AT_BP): Uppercase macro parameter.
5287 (x86_64_int_parameter_registers): Constify.
5288 (x86_64_int_return_registers): Likewise.
5289 (ix86_compare_op0): Use rtx.
5290 (construct_container): Constify INTREG parameter.
5291 (function_arg): Use rtx.
5293 * diagnostic.h: Update copyright date.
5294 (output_buffer_state): Add parenthesis.
5295 (output_buffer_format_args): Likewise.
5297 * combine.c (combine_instructions): Replace XEXP (links, 0)
5300 2002-01-06 H.J. Lu <hjl@gnu.org>
5302 * cfgcleanup.c (thread_jump): Fix 2 typos.
5304 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
5306 * config.gcc: Add support for --enable-altivec.
5308 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
5310 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
5312 2002-01-06 Jakub Jelinek <jakub@redhat.com>
5314 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
5315 __objc_class_name_*.
5317 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
5319 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
5321 2002-01-06 Richard Henderson <rth@redhat.com>
5323 * reorg.c (emit_delay_sequence): Remove death notes, not merely
5324 nop them out. Increment label reference count for REG_LABEL.
5325 (fill_slots_from_thread): Frob label reference count around
5326 delete_related_insns.
5328 2002-01-05 Richard Henderson <rth@redhat.com>
5330 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
5333 2002-01-05 Richard Henderson <rth@redhat.com>
5335 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
5336 * integrate.c (output_inline_function): Likewise.
5337 * toplev.c (rest_of_compilation): Do it here instead. Move call
5338 to remove_unnecessary_notes after emitting abstract instance.
5339 Force an emitted nested function to have its parent emited as well.
5340 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
5342 (rtl_for_decl_location): Do not look at reload data structures
5343 before reload has run.
5345 2002-01-05 Kazu Hirata <kazu@hxi.com>
5347 * cse.c: Fix formatting.
5348 * dwarf2asm.c: Likewise.
5349 * dwarf2out.c: Likewise.
5350 * explow.c: Likewise.
5351 * expmed.c: Likewise.
5352 * function.c: Likewise.
5354 * gencheck.c: Likewise.
5355 * genrecog.c: Likewise.
5356 * ggc-common.c: Likewise.
5357 * ggc-page.c: Likewise.
5358 * global.c: Likewise.
5360 2002-01-05 Kazu Hirata <kazu@hxi.com>
5362 * combine.c: Fix formatting.
5364 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
5367 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
5369 2002-01-05 David Edelsohn <edelsohn@gnu.org>
5371 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
5372 as 1 for __powerpc64__ as well.
5374 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
5376 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
5379 2002-01-05 Daniel Berlin <dan@dberlin.org>
5381 * lcm.c: Revert change, due to performance regression it causes on
5382 SPEC because it's slightly more conservative (sigh, I hate
5385 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
5387 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
5389 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
5391 * doc/cppinternals.texi: Update.
5393 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
5395 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
5396 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
5398 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
5399 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
5400 kludge for pre-october-14th mmix versions to handle new-found bug
5401 with PUSHJ/PUSHGO and the register stack.
5402 * config/mmix/mmix.h (struct machine_function): Rename member
5403 has_call_value_without_parameters to has_call_without_parameters.
5404 All referers changed.
5405 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
5406 TARGET_MASK_BRANCH_PREDICT): New macros.
5407 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
5408 -mno-reg-stack-fill-bug-workaround.
5409 * config/mmix/mmix.md ("call"): Set struct machine member
5410 has_call_without_parameters.
5412 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
5414 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
5416 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
5418 * cfgcleanup.c: Include tm_p.h
5419 (mark_effect): Fix handling of hard register; fix handling of SET
5421 2002-01-04 Kazu Hirata <kazu@hxi.com>
5423 * config/h8300/h8300.md (anonymous patterns): Check that
5424 operands are registers before using REGNO on them.
5426 2002-01-03 Roland McGrath <roland@frob.com>
5428 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
5430 2002-01-04 Jakub Jelinek <jakub@redhat.com>
5432 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
5433 * c-common.h (genrtl_expr_stmt_value): Likewise.
5434 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
5435 (expand_expr_stmt_value): Add maybe_last argument.
5436 Don't warn about statement with no effect if it is the last statement
5437 in expression statement.
5438 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
5439 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
5440 expand_expr_stmt_value.
5441 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
5442 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
5443 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
5444 as maybe_last to expand_expr_stmt_value.
5446 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
5448 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
5449 be passed in, do not build it.
5450 (c_begin_if_stmt): New function.
5451 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
5452 * c-common.h (c_expand_start_cond): Update prototype.
5453 (c_begin_if_stmt): Prototype new function.
5454 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
5455 * c-parse.in (if_prefix): Use c_begin_if_stmt,
5456 c_begin_while_stmt and c_finish_while_stmt_cond.
5458 2002-01-04 William Cohen <wcohen@redhat.com>
5460 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
5461 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
5462 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
5463 * config/pa/som.h (ASM_FILE_START): Likewise.
5465 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
5467 * lcm.c: Include df.h.
5468 Add available_transfer_function prototype.
5469 (compute_available): Rework to use iterative dataflow framework.
5470 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
5471 with bb_info in df.h
5472 (available_transfer_function): New function.
5474 * Makefile.in (lcm.o): add df.h to dependencies.
5476 2002-01-04 Richard Henderson <rth@redhat.com>
5478 * config/alpha/alpha.c (some_operand): Accept HIGH.
5479 (input_operand): Likewise; accept simple references to globals.
5480 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
5481 (alpha_const_double_ok_for_letter_p): Likewise.
5482 (alpha_extra_constraint): Likewise.
5483 (alpha_preferred_reload_class): Likewise. Do not force
5484 symbolic constants to memory.
5485 (alpha_legitimate_address_p): Accept simple references
5486 to small_symbolic_operand.
5487 (alpha_legitimize_address): New arg scratch. Be prepared to be
5488 called when no_new_pseudos. Emit simple symbolic references.
5489 Split integers into low, high, and rest.
5490 (alpha_expand_mov): Use alpha_legitimize_address.
5491 (some_small_symbolic_mem_operand): New.
5492 (split_small_symbolic_mem_operand): New.
5493 * config/alpha/alpha-protos.h: Update.
5494 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
5495 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
5496 (EXTRA_CONSTRAINT): Likewise.
5497 (PREFERRED_RELOAD_CLASS): Likewise.
5498 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
5499 (PREDICATE_CODES): Update.
5500 * config/alpha/alpha.md: New post-reload splitters to convert
5501 simplfied symbolic operands to the form that references $29.
5502 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
5503 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
5505 2002-01-03 Richard Henderson <rth@redhat.com>
5507 * local-alloc.c (function_invariant_p): Update commentary.
5509 2002-01-04 H.J. Lu <hjl@gnu.org>
5511 * toplev.c (rest_of_compilation): Fix a typo when calling
5514 2002-01-03 Kazu Hirata <kazu@hxi.com>
5516 * c-common.c: Fix formatting.
5517 * diagnostic.c: Likewise.
5518 * doloop.c: Likewise.
5519 * dwarf2out.c: Likewise.
5521 2002-01-03 Kazu Hirata <kazu@hxi.com>
5523 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
5524 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
5526 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
5528 * cpperror.c: Update comments and copyright.
5529 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
5530 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
5532 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
5534 * collect2.c (main): Use strcmp when testing for "-shared".
5536 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
5538 * cppmacro.c: Don't include intl.h. Update comments.
5539 (new_number_token): Allocate enough buffer for 64-bit unsigned
5540 integers; update prototype.
5541 * cppmain.c: Update comments.
5543 2002-01-03 William Cohen <wcohen@redhat.com>
5545 * function.h (struct function): Add profile.
5546 (current_function_profile): New.
5547 doc/extend.texi: Update documentation.
5548 * final.c (final_start_function): Use current_function_profile
5549 instead of profile_flag.
5550 (profile_after_prologue): Likewise.
5551 * function.c (expand_function_start): Likewise.
5552 (expand_function_start): Likewise.
5553 * config/alpha/alpha.c (direct_call_operand):
5554 (alpha_does_function_need_gp): Likewise.
5555 (alpha_expand_prologue): Likewise.
5556 * config/arm/arm.c (arm_expand_prologue): Likewise.
5557 thumb_expand_prologue: Likewise.
5558 * config/d30v/d30v.c (d30v_stack_info): Likewise.
5559 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
5560 (fr30_expand_prologue): Likewise.
5561 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
5562 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
5563 * config/i386/i386.h (FINALIZE_PIC): Likewise.
5564 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
5565 * config/i960/i960.c (i960_output_function_prologue): Likewise.
5566 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5567 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
5568 (m32r_expand_prologue): Likewise.
5569 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
5570 (m88k_expand_prologue): Likewise.
5571 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
5572 * config/mips/mips.c (compute_frame_size): Likewise.
5573 (mips_expand_prologue): Likewise.
5574 (mips_can_use_return_insn): Likewise.
5575 * config/pa/elf.h (ASM_FILE_START): Likewise.
5576 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
5577 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
5578 * config/pa/som.h (ASM_FILE_START): Likewise.
5579 * config/romp/romp.c (romp_using_r14): Likewise.
5580 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
5581 (rs6000_stack_info): Likewise.
5582 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5583 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
5584 * config/v850/v850.c (compute_register_save_size): Likewise.
5586 2002-01-03 Jakub Jelinek <jakub@redhat.com>
5588 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
5589 gen_lowpart_common fails, use gen_lowpart_SUBREG.
5591 2002-01-03 Turly O'Connor <turly@apple.com>
5593 * darwin.c (machopic_output_possible_stub_label): Don't generate
5594 stub routines for pseudo-stubs which we've just defined.
5596 2002-01-03 Kazu Hirata <kazu@hxi.com>
5598 * builtins.c: Fix formatting.
5599 * c-typeck.c: Likewise.
5600 * combine.c: Likewise.
5604 2002-01-03 Andreas Schwab <schwab@suse.de>
5606 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
5607 and return true if _cpp_push_next_buffer pushed a new include
5609 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
5610 _cpp_pop_file_buffer did not push a new file.
5611 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
5613 2002-01-02 Eric Christopher <echristo@redhat.com>
5615 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
5616 FIND_REG_INC_NOTE call. Update copyright.
5617 * loop.c (canonicalize_condition): Ditto.
5618 * reorg.c (delete_scheduled_jump): Ditto.
5620 2002-01-03 Kazu Hirata <kazu@hxi.com>
5622 * gcse.c: Fix formatting.
5624 2002-01-03 Graham Stott <grahams@redhat.com>
5626 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
5627 forward defs for struct tags rtx_def, union_tree, rtvec_def
5628 also output corresponding typedefs for rtx, tree, and rtvec.
5630 * system.h: Move forward defs for struct tags rtx_def, union_tree,
5631 rtvec_def along with corresponding typedefs for rtx, tree, and
5632 rtvec to config.h, hconfig.h, tconfig.h.
5634 2002-01-03 Graham Stott <grahams@redhat.com>
5636 * tree.h: Update copyright date.
5637 (IS_EXPR_CODE_CLASS): Add parenthesis.
5638 (TREE_SET_CODE): Add whitespace.
5639 (TREE_CHECK): Add parenthesis.
5640 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
5641 (CST_OR_CONSTRUCTOR_CHECK):
5642 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
5643 (TREE_SYMBOL_REFERENCED): Whitespace.
5644 (INT_CST_LT): Likewise.
5645 (INT_CST_LT_UNSIGNED): Likewise.
5646 (tree_real_cst): Unwrap comment.
5647 (tree_string): Likewise.
5648 (tree_complex): Likewise.
5649 (IDENTIFIER_POINTER): correct cast.
5650 (SAVE_EXPR_CONTEXT): Whitespace.
5651 (EXPR_WFL_FILENAME_NODE): Likewise.
5652 (EXPR_WFL_FILENAME): Remove parenthesis.
5653 (DECL_ORIGIN): Add parenthesis.
5654 (DECL_FROM_INLINE): Use NULL_TREE.
5655 (build_int_2): Whitespace.
5656 (build_type_variant): Add parenthesis.
5658 * gcc/jcf-parse.c: Update copyright date.
5659 (yyparse): Constify resource_filename.
5661 2002-01-03 Graham Stott <grahams@redhat.com>
5663 * rtl.h: Update copyright date.
5664 (RTL_CHECK1): Wrap long line.
5665 (RTL_CHECK2): Likewise.
5666 (RTL_CHECKC1): Wrap long line and whitespace.
5667 (RTL_CHECKC2): Likewise.
5668 (XWINT): Whitespace.
5674 (XBITMAP): Likewise.
5685 (X0BITMAP): Likewise.
5687 (X0BBDEF): Likewise.
5688 (X0ADVFLAGS): Likewise.
5689 (X0CSELIB): Likewise.
5690 (X0MEMATTR): Likewise.
5698 (XCBITMAP): Likewise.
5700 (XCBBDEF): Likewise.
5701 (XCADVFLAGS): Likewise.
5702 (XCCSELIB): Likewise.
5704 (INSN_UID): Likewise.
5705 (PREV_INSN): Likewise.
5706 (PATTERN): Likewise.
5707 (INSN_CODE): Likewise.
5708 (PUT_REG_NOTE_KIND): Likewise.
5709 (CODE_LABEL_NUMBER): Likewise.
5710 (NOTE_SOURCE_FILE): Likewise.
5711 (NOTE_BLOCK): Likewise.
5712 (NOTE_EH_HANDLER): Likewise.
5713 (NOTE_RANGE_INFO): Likewise.
5714 (NOTE_LIVE_INFO): Likewise.
5715 (NOTE_BASIC_BLOCK): Likewise.
5716 (NOTE_EXPECTED_VALUE): Likewise.
5717 (NOTE_LINE_NUMBER): Likewise.
5718 (LABEL_NAME): Likewise.
5719 (LABEL_NUSES): Likewise.
5720 (LABEL_ALTERNATE_NAME): Likewise.
5721 (ADDRESSOF_DECL): Likewise.
5722 (JUMP_LABEL): Likewise.
5723 (LABEL_NEXTREF): Likewise.
5725 (ORIGINAL_REGNO: Likewise.
5726 (HARD_REGISTER_NUM_P): Add parenthesis.
5727 (SUBREG_REG): Whitespace.
5728 (SUBREG_BYTE): Likewise.
5729 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
5730 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
5731 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
5732 (ASM_OPERANDS_INPUT_VEC): Likewise.
5733 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
5734 (ASM_OPERANDS_INPUT): Likewise.
5735 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
5736 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
5737 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
5738 (ASM_OPERANDS_INPUT_MODE): Likewise.
5739 (ASM_OPERANDS_SOURCE_FILE): Likewise.
5740 (ASM_OPERANDS_SOURCE_LINE): Likewise.
5741 (MEM_SET_IN_STRUCT_P): Minor reformat.
5742 (TRAP_CONDITION): Whitespace.
5743 (TRAP_CODE): Likewise.
5744 (COND_EXEC_TEST): Likewise.
5745 (COND_EXEC_CODE): Likewise.
5746 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
5747 (PHI_NODE_P): Add parenthesis.
5748 (plus_constant): Whitespace and add parenthesis.
5750 2002-01-03 Kazu Hirata <kazu@hxi.com>
5752 * config/avr/avr.c: Fix comment typos.
5753 * config/c4x/c4x.md: Likewise.
5754 * config/dsp16xx/dsp16xx.h: Likewise.
5755 * config/dsp16xx/dsp16xx.md: Likewise.
5756 * config/i386/i386.md: Likewise.
5757 * config/ia64/ia64.c: Likewise.
5758 * config/m32r/m32r.h: Likewise.
5759 * config/m68hc11/m68hc11.md: Likewise.
5760 * config/mmix/mmix.c: Likewise.
5761 * config/mn10200/mn10200.c: Likewise.
5762 * config/romp/romp.c: Likewise.
5763 * config/sh/sh.c: Likewise.
5764 * config/stormy16/stormy16.c: Likewise.
5765 * config/stormy16/stormy16.h: Likewise.
5766 * config/stormy16/stormy16.md: Likewise.
5768 2002-01-03 Graham Stott <grahams@redhat.com>
5770 * loop.h: Update copyright date.
5771 (LOOP_MOVABLES): Fix typo.
5772 (LOOP_REGS): Likewise.
5773 (LOOP_IVS): Likewise.
5775 2002-01-03 Graham Stott <grahams@redhat.com>
5777 * cppinit.c: Update copyright date.
5778 Don't include output.h
5779 * Makefile.in: Update copyright date.
5782 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
5785 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
5786 (-pthread) Add to RS/6000 options.
5788 2002-01-02 Kazu Hirata <kazu@hxi.com>
5790 * except.c: Fix comment typos.
5792 * varasm.c: Likewise.
5793 * doc/tm.texi: Fix a typo.
5795 2002-01-02 Jakub Jelinek <jakub@redhat.com>
5797 * c-typeck.c (output_init_element): Allow initializing static storage
5798 duration objects with compound literals.
5800 2002-01-02 Richard Henderson <rth@redhat.com>
5802 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
5805 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5807 * gcc.c (default_compilers): Const-ify.
5808 * mips-tdump.c (stab_names): Likewise.
5809 * mips-tfile.c (map_coff_types, map_coff_storage,
5810 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
5811 pseudo_ops_t, pseudo_ops): Likewise.
5812 * protoize.c (default_include): Likewise
5814 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
5815 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
5816 Add array size in declaration.
5817 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
5818 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
5819 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
5820 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
5821 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
5822 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
5823 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
5824 emtens, make_nan): Const-ify.
5825 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
5826 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
5828 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
5830 * config.gcc (ia64-*-*): Set extra_headers.
5831 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
5832 * config/alpha/t-osf: Remove.
5833 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
5835 2002-01-02 David Edelsohn <edelsohn@gnu.org>
5837 * config/rs6000/t-aix43: Revert previous change.
5839 2002-01-02 Jason Merrill <jason@redhat.com>
5841 * c-decl.c (c_expand_body): Call outlining_inline_function when
5842 emitting an inline function out of line.
5844 2002-01-02 Richard Henderson <rth@redhat.com>
5846 * dwarf2out.c (limbo_die_node): Add created_for member.
5847 (new_die): New argument created_for. Update all callers.
5848 (mark_limbo_die_list): New.
5849 (dwarf2out_init): Register limbo_die_list as a root.
5850 (dwarf2out_finish): Force insert limbo dies into their function
5853 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
5856 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
5858 2002-01-02 Kazu Hirata <kazu@hxi.com>
5860 * config/h8300/fixunssfsi.c: Update copyright.
5863 * config/h8300/h8300.c: Update copyright.
5866 2002-01-02 Kazu Hirata <kazu@hxi.com>
5868 * config/romp/romp.c: Fix comment formatting.
5869 * config/romp/romp.h: Likewise.
5870 * config/romp/romp.md: Likewise.
5871 * config/s390/s390.c: Likewise.
5872 * config/stormy16/stormy16.c: Likewise.
5873 * config/stormy16/stormy16.h: Likewise.
5875 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
5877 * c-common.h (genrtl_expr_stmt_value): Declare.
5878 * c-semantics.c (genrtl_goto_stmt): Redirect to...
5879 (genrtl_goto_stmt_value): ... this new function. Pass new
5880 argument down to expand_expr_stmt_value, taking
5881 TREE_ADDRESSABLE into account.
5882 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
5883 STMT_EXPR as addressable, i.e., one whose result we want.
5884 * expr.c (expand_expr): Don't save expression statement value
5885 of labeled_blocks or loop_exprs.
5886 * stmt.c (expand_expr_stmt): Redirect to...
5887 (expand_expr_stmt_value): ... this new function. Use new
5888 argument to tell whether to save expression value.
5889 (expand_end_stmt_expr): Reset last_expr_type and
5890 last_expr_value if we don't have either.
5891 * tree-inline.c (declare_return_variable): Mark its use
5892 statement as addressable.
5893 * tree.h: Document new use of TREE_ADDRESSABLE.
5894 (expand_expr_stmt_value): Declare.
5896 2002-01-01 Tom Rix <trix@redhat.com>
5898 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
5899 rs6000_emit_allocate_stack.
5901 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
5903 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
5904 ${srcdir}/ginclude/ to every entry in extra_headers.
5905 * configure: Regenerate.
5906 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
5907 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
5908 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
5909 * ginclude/proto.h: Rename to config/convex/proto.h.
5911 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5913 * attribs.c (handle_vector_size_attribute): Use host_integerp
5914 and tree_int_cst; remove warnings.
5915 * caller-save.c (insert_restore): Add cast to get rid of warning.
5916 (insert_save): Likewise.
5917 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
5918 * regmove.c (find_matches): Add temporary var to kill a warning.
5920 2002-01-01 Douglas B Rupp <rupp@gnat.com>
5922 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
5923 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
5924 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
5925 (vms-dwarf2eh.o): Add Makefile rule.
5926 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
5927 * config/alpha/vms-dwarf2eh.asm: New file.
5929 * gcc.c (delete_if_ordinary): Delete all versions.
5931 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
5933 * config/mmix/mmix.md: Update FIXME to not mention
5935 (MMIX_rJ_REGNUM): New define_constants constant.
5936 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
5937 "*movdicc_real"): Adjust contraints formatting.
5938 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
5939 for branch prediction.
5940 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
5942 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
5943 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
5944 number. Delete related FIXMEs.
5945 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
5946 from number to MMIX_rJ_REGNUM.
5947 (TARGET_MASK_BRANCH_PREDICT): New.
5948 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
5949 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
5950 value. Add -mbranch-predict and -mno-branch-predict.
5951 (TARGET_VERSION): Drop date.
5952 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
5953 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
5954 for finding out global symbols.
5955 (mmix_asm_output_labelref): Revert condition for global symbol.
5956 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
5957 (mmix_print_operand_punct_valid_p): A '+' is valid.
5959 See ChangeLog.6 for earlier changes.