1 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
3 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
4 POST_DEC, and POST_MODIFY.
6 2002-02-27 Zack Weinberg <zack@codesourcery.com>
8 * c-typeck.c (digest_init): Remove unused parameter; all
11 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
13 * expmed.c (expand_shift): Correctly test for low part of a
16 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
19 insn UIDs with insn addresses.
21 2002-02-27 Zack Weinberg <zack@codesourcery.com>
23 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
24 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
25 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
26 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
27 gcc.c, toplev.c: Delete code implementing -traditional mode.
29 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
30 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
31 Document removal of -traditional mode for compilation, and
32 remove documentation only relevant to that mode.
34 * config/nextstep.h, config/ptx4.h, config/svr4.h,
35 config/convex/convex.h, config/d30v/d30v.h,
36 config/i386/dgux.h, config/i386/osf1elf.h,
37 config/i386/osfelf.h, config/i386/osfrose.h,
38 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
39 config/m68k/hp310.h, config/m88k/dgux.h,
40 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
41 config/m88k/m88k.h, config/m88k/openbsd.h,
42 config/mips/abi64.h, config/mips/osfrose.h,
43 config/mips/svr4-5.h, config/mips/svr4-t.h,
44 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
45 config/stormy16/stormy16.h: Remove all references to
46 -traditional from target specs. Delete all mention of the
47 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
48 delete a couple of commented-out definitions of
49 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
52 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
53 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
55 2002-02-27 Zack Weinberg <zack@codesourcery.com>
57 * mklibgcc.in: Don't use \n in a line subject to
58 interpretation by echo.
60 2002-02-27 Graham Stott <grahams@redhat.com>
62 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
65 * loop.c (prescan_loop): Handle PARALLEL.
67 * unroll.c (loop_iterations): Return 0 if the add_val for
70 * final.c (output_operand_lossage): Constify PFX_STR.
72 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
74 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
76 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
77 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
79 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
81 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
83 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
85 * cpplex.c (_cpp_lex_token): Handle directives in macro
87 * cpplib.c (_cpp_handle_directive): Save and restore state
88 if parsing macro args when entering a directive.
89 * cppmacro.c (collect_args): No need to handle directives
91 (enter_macro_context, replace_args): Use the original macro
92 definition in case it was redefined whilst collecting arguments.
96 2002-02-26 David Edelsohn <edelsohn@gnu.org>
98 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
99 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
100 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
102 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
103 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
104 (load_toc_v4_PIC_2): Same.
106 2002-02-26 Alan Modra <amodra@bigpond.net.au>
108 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
110 2002-02-26 Richard Henderson <rth@redhat.com>
112 * config/alpha/alpha.md (ashldi_se): Re-enable.
114 2002-02-26 Richard Henderson <rth@redhat.com>
116 * config/alpha/alpha.c (alpha_encode_section_info): Examine
117 MODULE_LOCAL_P; improve commentary.
119 2002-02-26 Zack Weinberg <zack@codesourcery.com>
121 * doc/cpp.texi: Clarify documentation of relationship between
124 2002-02-26 Kazu Hirata <kazu@hxi.com>
126 * config/h8300/h8300-protos.h: Update the prototype for
127 compute_logical_op_length. Add the prototype for
128 compute_logical_op_cc.
129 * config/h8300/h8300.c (compute_logical_op_length): Figure out
131 (compute_logical_op_cc): New.
132 * config/h8300/h8300.md: Combine all the logical op patterns
133 in HImode and SImode. Use compute_logical_op_cc.
135 2002-02-26 Kelley Cook <kelleycook@comcast.net>
137 * config/i386/i386.c (print_operand): Don't append ATT-style
138 length suffixs to x87 opcodes when in Intel mode.
140 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
142 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
143 (init_emit_once): Update calls.
144 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
145 (init_syntax_once): Prototype.
147 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
149 * pa-linux.h (LIB_SPEC): Update definition.
150 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
152 2002-02-26 Richard Henderson <rth@redhat.com>
154 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
155 if we emitted a stop bit.
157 2002-02-26 Jakub Jelinek <jakub@redhat.com>
159 * configure.in (libgcc_visibility): Substitute.
160 * configure: Rebuilt.
161 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
162 defined symbols .hidden.
164 2002-02-26 Jakub Jelinek <jakub@redhat.com>
166 * attribs.c (c_common_attribute_table): Add visibility.
167 (handle_visibility_attribute): New function.
168 * varasm.c (assemble_visibility): New function.
169 * output.h (assemble_visibility): Add prototype.
170 * tree.h (MODULE_LOCAL_P): Define.
171 * crtstuff.c (__dso_handle): Use visibility attribute.
172 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
173 for MODULE_LOCAL_P symbols too.
174 * config/ia64/ia64.c (ia64_encode_section_info): Handle
175 MODULE_LOCAL_P symbols the same way as local symbols.
176 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
177 into .sdata/.sbss by the user.
178 * doc/extend.texi (Function Attributes): Document visibility
181 2002-02-26 Jakub Jelinek <jakub@redhat.com>
184 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
185 STRING_CST initializer spanning the whole variable without
187 If expand_expr returned MEM, don't use it.
189 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
191 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
192 generate a die for the lexical block.
194 2002-02-26 Kazu Hirata <kazu@hxi.com>
196 * config/h8300/h8300-protos.h: Add a prototype for
197 compute_logical_op_length.
198 * config/h8300/h8300.c (compute_logical_op_length): New.
199 * config/h8300/h8300.md (anonymous logical patterns): Use
200 compute_logical_op_length for length.
202 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
204 * dwarf2out.c (modified_type_die): Do not call type_main_variant
206 (gen_type_die): Same.
208 * attribs.c (handle_vector_size_attribute): Set debug information.
210 2002-02-26 Daniel Egger <degger@fhm.edu>
212 * config/rs6000/rs6000.md: Swap define_insn attributes to
213 fix incorrect generation of merge high instructions instead
216 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
218 * c-typeck.c (really_start_incremental_init): Use
219 bitsize_zero_node for vectors.
221 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
223 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
224 ("*set_vrsave_internal"): Same.
226 2002-02-25 Richard Henderson <rth@redhat.com>
228 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
229 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
231 2002-02-25 Jakub Jelinek <jakub@redhat.com>
234 * config/i386/i386.c (ix86_return_pops_args): Only pop
235 fake structure return argument if it was passed on the stack.
237 2002-02-25 Jason Merrill <jason@redhat.com>
239 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
242 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
244 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
245 link with shared_name only.
246 * doc/invoke.texi (Link Options): Document new behavior.
248 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
250 * c-typeck.c (push_init_level): Handle vectors.
252 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
254 * config/sparc/sparc.c (const64_high_operand): Zero-extend
255 operands of SPARC_SETHI_P.
256 (input_operand): Likewise.
257 (sparc_emit_set_const32): Likewise.
258 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
259 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
260 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
261 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
262 (movdi_insn_sp64_vis): Likewise.
263 (movdi split, movdf split): Use SETHI32.
264 * doc/md.texi: Document SPARC constraints L, M and N.
266 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
268 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
269 ("*set_vrsave_internal"): use mfspr for Darwin.
271 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
272 gen_get_vrsave_internal.
274 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
276 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
278 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
280 * cpplex.c (cpp_interpret_charconst): Get signedness or
281 otherwise of wide character constants correct.
282 * cppexp.c (lex): Get signedness of wide charconsts correct.
284 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
286 * optabs.c (widen_operand): Only call convert_modes for
287 promoted SUBREG if signedness matches.
288 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
290 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
292 * cpplib.c (glue_header_name): Use local buffer to build up
295 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
297 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
299 2002-02-23 Kazu Hirata <kazu@hxi.com>
301 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
302 H8/300[HS] separately.
303 * config/h8300/h8300.md: Remove the early clobber constraint
304 from bit field patterns.
306 2002-02-23 Kazu Hirata <kazu@hxi.com>
308 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
310 (mulhisi3): Likewise.
311 (umulqisi3): Likewise.
312 (umulhisi3): Likewise.
314 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
316 * cppinit.c (output_deps): Correct test for stdout output.
317 (init_dependency_output): Cure warning.
319 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
321 * expr.c (store_expr): When converting expression to promoted
322 equivalent type, allow using SUBREG_REG of TARGET as the target
323 of the expansion of EXP.
324 * loop.c (basic_induction_var, case SUBREG): Always look inside.
325 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
326 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
327 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
328 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
330 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
332 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
333 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
334 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
336 2002-02-23 Jakub Jelinek <jakub@redhat.com>
339 * loop.c (scan_loop): Update reg info if move_movables created new
342 2002-02-23 David Edelsohn <edelsohn@gnu.org>
344 * gcc.c (init_gcc_spec): Revert last change.
346 2002-02-23 David Edelsohn <edelsohn@gnu.org>
348 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
349 gpc_reg_operand constraint.
351 2002-02-23 Alan Modra <amodra@bigpond.net.au>
353 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
354 Simplify comparison of `low'.
355 (add_operand): Fix formatting.
356 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
357 (mask_operand): Disallow mask to wrap in 64-bit mode.
358 (rs6000_stack_info): Remove redundant test setting push_p.
359 (output_toc): Fix formatting.
360 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
361 cc_reg_not_cr0_operand constraint.
362 (booldi3, boolcdi3 splitters): Same.
364 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
366 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
368 2002-02-22 David Edelsohn <edelsohn@gnu.org>
370 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
371 gcc invoked with -shared-libgcc.
373 2002-02-22 Jakub Jelinek <jakub@redhat.com>
376 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
377 decl if any of elements was TREE_USED.
379 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
381 * config/sparc/sol2.h: Don't include sys/mman.h.
382 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
383 (arith_4096_operand): Don't throw high bits away.
384 (const64_operand): Take sign extension of CONST_INTs into account.
385 (const64_high_operand, sparc_emit_set_const32): Likewise.
386 (GEN_HIGHINT64): Likewise.
387 (sparc_emit_set_const64_quick1): Likewise.
388 (const64_is_2insns): Likewise.
389 (print_operand): Use trunc_int_for_mode for sign extension.
390 * config/sparc/sparc.h (SMALL_INT32): Likewise.
391 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
392 chars. Assume CONST_INT is already properly sign-extended.
393 (movdi split): Sign-extend each SImode part.
394 (andsi3 split): Don't mask high bits off, so that result
395 remains properly sign-extend.
396 (iorsi3 split): Likewise.
397 (xorsi3 split): Likewise.
399 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
401 * fold-const.c (fold): Fix typo in comments.
403 2002-02-21 Diego Novillo <dnovillo@redhat.com>
405 * Makefile.in (langhooks.o): Update dependencies.
407 2002-02-21 Diego Novillo <dnovillo@redhat.com>
409 * langhooks.c: Include flags.h.
411 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
413 * testsuite/gcc.dg/attr-alwaysinline.c: New.
415 * c-common.c (c_common_post_options): Set inline trees by
418 * doc/extend.texi (Function Attributes): Document always_inline
420 Update documentation about inlining when not optimizing.
422 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
424 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
425 unless DECL_ALWAYS_INLINE.
427 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
428 unless DECL_ALWAYS_INLINE.
429 (c_disregard_inline_limits): Disregard if always_inline set.
431 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
432 Disregard if always_inline set.
433 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
434 unless DECL_ALWAYS_INLINE.
436 * attribs.c (handle_always_inline_attribute): New.
437 (c_common_attribute_table): Add always_inline.
439 * config/rs6000/altivec.h: Add prototypes for builtins
440 requiring the always_inline attribute.
442 2002-02-21 Eric Christopher <echristo@redhat.com>
444 * expmed.c (store_bit_field): Try to simplify the subreg
445 before generating a new one when when the mode size of
446 value is less than maxmode.
448 2002-02-21 Richard Henderson <rth@redhat.com>
450 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
451 than gen_rtx_PLUS to form the sum.
452 * explow.c (force_reg): Rearrange to not allocate new pseudo
453 when force_operand returns a register.
454 * expr.c (expand_assignment): Allow offset_rtx expansion to
455 return a sum. Do not force addresses into registers.
456 (expand_expr): Likewise.
457 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
458 to canonicalize arithmetic that didn't simpify.
459 (simplify_plus_minus): New argument force; update
460 all callers. Don't split CONST unless we can do something with it,
461 and wouldn't lose the constness of the operands.
463 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
464 that we generated earlier.
466 2002-02-21 Tom Tromey <tromey@redhat.com>
468 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
469 (output_line_info): Use constant `1', with a long explanatory
471 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
473 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
475 * jump.c (redirect_jump): If old label has no UID, don't try to
478 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
480 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
481 If input is constant, do shifts at compile time.
483 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
485 * doc/extend.texi: Fix some more overfull hboxes.
487 2002-02-21 Jakub Jelinek <jakub@redhat.com>
490 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
493 2002-02-21 Jakub Jelinek <jakub@redhat.com>
496 * expr.h (expand_and): Add mode argument.
497 * expmed.c (expand_and): Add mode argument.
498 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
499 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
500 * except.c (expand_builtin_extract_return_addr): Likewise.
501 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
502 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
503 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
504 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
505 * config/c4x/c4x.md: Use GEN_INT (x) instead of
506 gen_rtx (CONST_INT, VOIDmode, x).
508 2002-02-21 Jakub Jelinek <jakub@redhat.com>
511 * stmt.c (warn_if_unused_value): Move side effects test once more.
513 2002-02-20 Torbjorn Granlund <tege@swox.com>
515 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
516 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
518 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
520 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
521 SUBREG or ZERO_EXTEND.
523 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
525 * sh.h (current_function_anonymous_args): Remove.
526 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
527 of current_function_varargs and current_function_stdarg is set.
528 * sh.c (sh_expand_prologue): Check current_function_varargs /
529 current_function_stdarg / TARGET_SH5 instead of
530 current_function_anonymous_args.
532 * sh64.h (TARGET_VERSION): Define.
534 2002-02-20 David Edelsohn <edelsohn@gnu.org>
536 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
537 VRSAVE_REGNO on TARGET_ALTIVEC.
539 2002-02-20 Alan Modra <amodra@bigpond.net.au>
541 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
542 bits of SImode const_int.
543 (includes_rshift_p): Likewise.
544 (print_operand): Call mask_operand and mask64_operand with correct
546 (rs6000_output_function_epilogue): Pad traceback table to word.
547 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
548 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
549 mask64_operand with correct mode.
550 (FUNCTION_ARG_REGNO_P): Correct parentheses.
552 2002-02-20 Jakub Jelinek <jakub@redhat.com>
555 * varasm.c (get_pool_constant_mark): New.
556 * rtl.h (get_pool_constant_mark): Add prototype.
557 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
558 be represented if it has not been output.
560 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
562 * combine.c (do_SUBST): Sanity check substitutions of
563 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
564 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
565 CONST_INT into its operand.
566 (known_cond): Likewise, for ZERO_EXTEND.
567 * simplify-rtx.c (simplify_unary_operation): Fix condition to
568 allow for simplification of wide modes. Reject CONST_INTs in
569 ZERO_EXTEND when their actual mode is not given.
571 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
573 * c-decl.c (pushdecl): If no global declaration is found for an
574 extern declaration in block scope, try a limbo one.
576 2002-02-20 Jakub Jelinek <jakub@redhat.com>
579 * c-common.c (pointer_int_sum): Moved from...
580 * c-typeck.c (pointer_int_sum): ...here.
581 * c-common.h (pointer_int_sum): Add prototype.
583 2002-02-20 Jakub Jelinek <jakub@redhat.com>
586 * c-decl.c (duplicate_decls): Return 0 if issued error about
589 2002-02-20 Roger Sayle <roger@eyesopen.com>
590 Jakub Jelinek <jakub@redhat.com>
593 * tree.c (host_integerp): Ensure that the constant integer is
594 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
595 when pos is zero or non-zero respectively. Clarify comment.
596 * c-format.c (check_format_info_recurse): Fix host_integerp
597 usage; the pos argument should be zero when assigning to a
598 signed HOST_WIDE_INT.
600 2002-02-20 Richard Henderson <rth@redhat.com>
602 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
603 of the operand, rather than assuming TImode.
604 (ix86_expand_binop_builtin): Cope with commutative patterns
605 using nonimmediate_operand for both operands.
606 (ix86_expand_timode_binop_builtin): Likewise.
607 (ix86_expand_store_builtin): Validate operand 1.
608 (ix86_expand_unop1_builtin): Likewise.
610 2002-02-20 Philip Blundell <philb@gnu.org>
613 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
615 2002-02-20 Richard Henderson <rth@redhat.com>
618 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
620 2002-02-20 Tom Tromey <tromey@redhat.com>
622 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
623 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
624 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
625 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
626 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
629 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
631 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
632 for (const_int 0) in X not just INTVAL.
634 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
636 * doc/extend.texi: Avoid or reduce overfull hboxes.
638 2002-02-20 Diego Novillo <dnovillo@redhat.com>
640 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
641 operations if the field does not start at a mode boundary.
643 2001-02-20 Joel Sherrill <joel@OARcorp.com>
645 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
646 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
647 Also done for -Acpu and -Amachine.
649 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
651 * cppinit.c (init_dependency_output): Take deps output file
652 from -o if none given with -MF. Suppress normal output.
653 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
654 * doc/cpp.texi, doc/invoke.texi: Update.
656 2002-02-19 Zack Weinberg <zack@codesourcery.com>
658 * toplev.c (output_quoted_string): Write unprintable
659 characters with octal escapes.
661 2002-02-19 David Edelsohn <edelsohn@gnu.org>
663 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
664 really_call_used[VRSAVE_REGNO] if not Altivec.
666 2002-02-19 Alan Modra <amodra@bigpond.net.au>
668 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
670 (constant_pool_expr_1): Fix formatting.
671 (rs6000_legitimize_reload_address): Likewise.
673 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
675 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
676 now that we have one.
678 2002-02-19 Zack Weinberg <zack@codesourcery.com>
680 * tree.h (struct tree_common): Remove aux. Add unused_0 at
681 end of first block of bitfields (which was only seven bits);
682 rename dummy to unused_1; remove comment which is no longer true.
684 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
686 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
688 2002-02-19 Philip Blundell <pb@nexus.co.uk>
691 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
695 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
696 arm_is_longcall_p rather than inspecting call-type cookie
698 (call_value_insn) [TARGET_THUMB]: Likewise.
700 2002-02-19 Graham Stott <grahams@redhat.com>
702 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
704 2002-02-19 David Edelsohn <edelsohn@gnu.org>
706 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
707 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
708 (FP_SAVE_INLINE): Delete.
710 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
711 * config/rs6000/eabi.asm: Remove ABI save restore routines.
712 * config/rs6000/t-ppccomm: Build crtsavres.o.
713 * config/rs6000/crtsavres.asm: New file.
715 2002-02-19 Philip Blundell <philb@gnu.org>
717 * config/arm/arm.c (use_return_insn): Don't reject interrupt
719 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
720 (output_return_instruction): Allow interrupt functions to return with
721 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
722 (arm_expand_prologue): Subtract 4 before stacking LR in an
725 2002-02-19 Philip Blundell <pb@nexus.co.uk>
727 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
728 decl, not just FUNCTION_DECL.
729 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
730 (arm_assemble_integer): Likewise.
731 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
734 2002-02-19 matthew green <mrg@eterna.com.au>
736 * config.gcc (sparc-*-netbsdelf*): Enable target.
737 (sparc64-*-netbsd*): New target.
738 * config/sparc/netbsd-elf.h: New file.
739 * config/sparc/t-netbsd64: New file.
741 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
743 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
745 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
747 * doc/invoke.texi: explicitly list the style guidelines that
750 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
752 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
754 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
757 * gcc.c (cpp_unique_options): Treat -o as indicating object file
758 only if not -E. If -E, pass -o through to the preprocessor.
760 2002-02-19 Kazu Hirata <kazu@hxi.com>
762 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
763 register number with an appropriate macro.
765 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
767 * doc/rtl.texi (Constants): Close @code tag.
769 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
771 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
772 ("mmx_uavgv4hi3"): Same.
773 ("pmulhrwv4hi3"): Same.
775 * tree-inline.c (walk_tree): Handle vectors.
777 * c-common.c (constant_expression_warning): Handle vectors.
778 (overflow_warning): Same.
780 * sched-deps.c (sched_analyze_2): Handle vectors.
782 * rtlanal.c (rtx_unstable_p): Handle vectors.
783 (rtx_varies_p): Same.
784 (count_occurrences): Same.
785 (regs_set_between_p): Same.
786 (modified_between_p): Same.
787 (modified_in_p): Same.
788 (volatile_insn_p): Same.
789 (volatile_refs_p): Same.
790 (side_effects_p): Same.
792 (inequality_comparisons_p): Same.
793 (replace_regs): Same.
794 (computed_jump_p_1): Same.
796 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
798 (inner_mode_array): New.
799 (copy_rtx): Handle vectors.
800 (copy_most_rtx): Same.
802 (get_mode_alignment): Adjust for vectors.
804 * resource.c (mark_referenced_resources): Handle vectors.
805 (mark_set_resources): Same.
807 * reload1.c (eliminate_regs): Handle vectors.
808 (elimination_effects): Same.
809 (scan_paradoxical_subregs): Same.
811 * reload.c (subst_reg_equivs): Handle vectors.
813 * regrename.c (scan_rtx): Handle vectors.
815 * regclass.c (reg_scan_mark_refs): Handle vectors.
817 * recog.c (find_single_use_1): Handle vectors.
819 * local-alloc.c (equiv_init_varies_p): Handle vectors.
820 (contains_replace_regs): Same.
821 (memref_referenced_p): Same.
823 * integrate.c (copy_rtx_and_substitute): Handle vectors.
824 (subst_constants): Same.
826 * genattrtab.c (attr_copy_rtx): Handle vectors.
827 (encode_units_mask): Same.
828 (clear_struct_flag): Same.
829 (count_sub_rtxs): Same.
831 * gcse.c (want_to_gcse_p): Handle vectors.
832 (oprs_unchanged_p): Same.
834 (oprs_not_set_p): Same.
835 (expr_killed_p): Same.
836 (compute_transp): Same.
837 (store_ops_ok): Same.
839 * function.c (purge_addressof_1): Do not allow paradoxical subregs
841 (fixup_var_refs_1): Same.
842 (instantiate_virtual_regs_1): Same.
844 * fold-const.c (operand_equal_p): Handle vectors.
846 (rtl_expr_nonnegative_p): Same.
848 * flow.c (mark_used_regs): Handle vectors.
850 * df.c (df_uses_record): Handle vectors.
852 * cselib.c (cselib_subst_to_values): Handle vectors.
853 (cselib_mem_conflict_p): Same.
856 * cse.c (canon_reg): Handle vectors.
858 (cse_process_notes): Same.
859 (count_reg_usage): Same.
862 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
864 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
866 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
867 (gen_rtx): Handle CONST_VECTOR.
868 (gen_const_vector_0): New.
869 (copy_rtx_if_shared): CONST_VECTORs can be shared.
870 (reset_used_flags): Same.
872 (initializer_constant_valid_p): Handle VECTOR_CST.
874 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
876 * doc/rtl.texi (Constants): Document const_vector.
877 (CONST0_RTX): Update for vectors.
880 * print-tree.c (print_node): Add case for VECTOR_CST.
882 * tree.h (TREE_VECTOR_CST_ELTS): New.
883 (struct tree_vector): New.
884 (union tree_node): Add vector node.
885 (build_vector): Add prototype.
887 * tree.def (VECTOR_CST): New.
889 * tree.c (build_vector): New.
891 * expmed.c (make_tree): Handle CONST_VECTOR.
893 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
894 (CONST_VECTOR_ELT): New.
895 (CONST_VECTOR_NUNITS): New.
897 * machmode.h (GET_MODE_INNER): New.
898 (DEF_MACHMODE): Accept 8th arg.
900 * machmode.def: Add 8th argument for vector inner mode.
901 Add inner vector modes for vectors.
903 * rtl.def (VEC_CONST): Remove.
906 * expr.c (clear_storage): Allow vectors.
907 (is_zeros_p): Handle VECTOR_CST.
909 * varasm.c (output_constant_pool): Handle vectors.
910 (rtx_const): Add veclo and vechi fields.
911 (kind): Add RTX_VECTOR.
912 (decode_rtx_const): Add case for vector.
914 * config/rs6000/rs6000-protos.h: Add zero_constant.
916 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
917 constants. Force easy vector constants into memory.
918 (easy_vector_constant): New.
919 (emit_easy_vector_constant): New.
920 (rs6000_legitimize_reload_address): Do not generate bad reloads on
923 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
925 ("altivec_lvxl"): Same.
926 (altivec_lvebx): Same.
927 (altivec_lvehx): Same.
928 (altivec_lvewx): Same.
929 ("*movv4si_const0"): New.
930 ("*movv4sf_const0"): New.
931 ("*movv8hi_const0"): New.
932 ("*movv16qi_const0"): New.
934 2002-02-18 Kazu Hirata <kazu@hxi.com>
936 * config/h8300/h8300.c (notice_update_cc): Use
939 2002-02-18 Kazu Hirata <kazu@hxi.com>
941 * config/h8300/h8300.md (divmod patterns): Change the
942 constraints for operands[1] to register_operand.
944 2002-02-18 Kazu Hirata <kazu@hxi.com>
946 * config/h8300/h8300-protos.h: Remove the prototype for
948 * config/h8300/h8300.c (p_operand): Remove.
949 * config/h8300/h8300.md: Replace p_operand with
952 2002-02-18 Philip Blundell <pb@nexus.co.uk>
954 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
956 (output_return_instruction): Allow use of LDR to unstack
957 return addresss even for interrupt handlers or when
958 interworking. If compiling for ARMv5, use interworking-safe
959 return instructions by default. Remove duplicated code and
960 lengthy "strcat" sequences.
962 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
964 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
965 (LINK_EH_SPEC): Define.
966 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
968 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
970 * config/s390/s390.c (s390_emit_prologue): Do not set the
971 frame_related flag for call-clobbered registers.
973 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
975 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
976 (construct_container): Fix handling of SSE operands.
977 (ix86_expand_builtin): Fix handling of 64bit pointers.
978 (mmx_maskmovq_rex): New pattern.
980 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
982 * regrename.c (kill_set_value): Handle subregs properly.
984 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
986 * objc/objc-act.c (handle_impent): Remove leading '*'
987 from objc_class_name.
989 2002-02-17 Richard Henderson <rth@redhat.com>
991 * config/alpha/alpha.c (some_small_symbolic_operand,
992 some_small_symbolic_operand_1, split_small_symbolic_operand,
993 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
994 Handle small SYMBOL_REFs anywhere, not just inside memories.
995 * config/alpha/alpha-protos.h: Update.
996 * config/alpha/alpha.h (PREDICATE_CODES): Update.
997 * config/alpha/alpha.md (small symbolic operand splitter): Update.
999 2002-02-17 Roland McGrath <roland@frob.com>
1001 * config.gcc (powerpc-*-gnu-gnualtivec*,
1002 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
1003 * config/rs6000/gnu.h: New file.
1004 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
1005 Grok "gnu" in rs6000_abi_name.
1006 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
1007 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
1008 Grok -mcall-gnu analogous to -mcall-linux et al.
1009 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
1010 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
1011 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
1013 2002-02-17 Jakub Jelinek <jakub@redhat.com>
1016 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
1019 2002-02-17 Philipp Thomas <pthomas@suse.de>
1021 * config/cris/cris.h: Undefine STARTFILE_SPEC and
1022 ENDFILE_SPEC before (re)defining them.
1024 2002-02-17 Kazu Hirata <kazu@hxi.com>
1026 * config/h8300/h8300.c: Fix formatting.
1027 * config/h8300/h8300.h: Likewise.
1029 2002-02-17 Philipp Thomas <pthomas@suse.de>
1031 * doc/tm.texi: Explain why empty strings should not be
1032 marked for translation.
1034 2002-02-17 Philipp Thomas <pthomas@suse.de>
1036 * final.c (output_operand_lossage): Changed to accept
1037 printf style arguments. Change calls where necessary.
1038 * output.h (output_operand_lossage): Change declaration
1039 accordingly. Update copyright.
1040 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
1041 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
1042 Update copyright date where necessary.
1044 * config/i386/i386.c (print_operand): Likewise. Remove use of
1047 * config/cris/cris.c (cris_operand_lossage): Likewise.
1048 Rename parameter so that exgettext recognizes it as
1049 translatable message.
1050 (LOSE_AND_RETURN): Rename parameter to msgid.
1052 2002-02-17 Kazu Hirata <kazu@hxi.com>
1054 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
1055 hard coded register number with an appropriate macro.
1056 (HARD_REGNO_MODE_OK): Likewise.
1057 (ARG_POINTER_REGNUM): Likewise.
1058 (STATIC_CHAIN_REGNUM): Likewise.
1059 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
1060 * config/h8300/h8300.md (define_constants): Define more
1063 2002-02-17 Philipp Thomas <pthomas@suse.de>
1065 * config/i386/i386.h: Don't mark empty strings for translation.
1067 2002-02-16 H.J. Lu <hjl@gnu.org>
1069 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
1071 2002-02-16 Zack Weinberg <zack@codesourcery.com>
1073 * cppinit.c (merge_include_chains): Check for brack being
1074 NULL before attempting to merge it with qtail.
1076 2002-02-16 Andrew Cagney <ac131313@redhat.com>
1078 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
1081 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
1083 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
1085 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
1087 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
1088 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
1089 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
1091 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1093 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
1094 now only if !TARGET_FIX.
1095 (*movsi_nt_vms_fix): New pattern.
1097 2002-02-16 Douglas B Rupp <rupp@gnat.com>
1099 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
1100 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
1101 (alpha_sa_mask, alpha_sa_size): Reflect above change.
1102 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
1103 (alpha_start_function, alpha_expand_epilogue): Likewise.
1104 (unicosmk_gen_dsib): Likewise.
1106 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1108 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
1110 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
1112 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
1113 check_and_change_labels, s390_final_chunkify): Delete.
1114 (s390_split_branches, s390_chunkify_pool): New functions.
1115 (s390_function_prologue): Call them.
1117 * config/s390/s390.h (S390_REL_MAX): Delete.
1118 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
1120 * config/s390/s390.md (cjump, icjump, jump): Fix length
1121 attribute calculation.
1124 2002-02-15 David Edelsohn <edelsohn@gnu.org>
1126 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
1127 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
1129 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
1131 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
1132 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
1133 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
1135 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
1137 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
1139 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
1141 * reload.c (find_dummy_reload): Check that an output register
1142 is valid for its mode.
1144 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
1146 * combine.c (known_cond): After replacing the REG of a SUBREG, try
1149 * function.c (assign_parms): Demote promoted argument passed by
1150 transparent reference.
1152 2001-02-14 Joel Sherrill <joel@OARcorp.com>
1154 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
1155 -Acpu() and -Amachine() to eliminate warnings.
1157 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
1159 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
1161 2002-02-14 Kazu Hirata <kazu@hxi.com>
1163 * config/h8300/h8300-protos.h: Update the prototype for
1165 * config/h8300/h8300.c (const_costs): Treat SET as a little
1166 more expensive operation.
1167 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
1168 reference to const_costs.
1170 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
1172 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
1174 2002-02-14 Jakub Jelinek <jakub@redhat.com>
1177 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
1178 use arguments from newtype.
1180 2002-02-13 Eric Christopher <echristo@redhat.com>
1182 * config/mips/mips.c (override_options): Add check for march/mipsX
1183 on the same command line. Fix error message in cpu processing.
1184 Remove architecture and ISA checks.
1186 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
1188 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
1190 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
1192 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
1194 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
1196 ("*movv8hi_internal1"): Same.
1197 ("*movv16qi_internal1"): Same.
1198 ("*movv4sf_internal1"): Same.
1200 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
1201 not push_reload for altivec modes.
1203 2002-02-13 Joel Sherrill <joel@OARcorp.com>
1205 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
1206 all RTEMS targets including removal of #includes from config/*/rtems*.h
1207 file and adding them to tm_file setting. Added xm_defines=POSIX to
1209 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
1210 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
1211 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
1212 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
1213 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
1214 config/m68k/rtemself.h: Ditto.
1215 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
1216 config/mips/rtems64.h: Ditto.
1217 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
1218 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
1220 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
1221 config/sparc/rtemself.h: Ditto.
1222 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
1223 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
1224 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
1226 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
1227 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
1228 target made more similar to i386-elf.
1229 * config/i386/t-rtems-i386: Added soft float support and multilibs.
1230 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
1231 be similar to config/m68k/t-m68kelf.
1232 * gthr-rtems.h: Encapsulate with extern "C" for C++.
1234 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
1236 * regmove.c (kill_value): Handle subregs.
1238 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
1240 * i386.md (mul patterns): Allow memory operand to be first;
1241 add expanders where needed; fix constraints.
1242 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
1243 Allow memory operand to be the first.
1245 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
1248 2002-02-13 Jakub Jelinek <jakub@redhat.com>
1251 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
1254 2002-02-13 Jakub Jelinek <jakub@redhat.com>
1256 PR optimization/5547:
1257 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
1258 all valid IA-32 address modes involving non-scaled %ebx and
1259 GOT/GOTOFF as displacement.
1261 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
1263 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
1264 after emitting ltorg insns.
1266 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
1267 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
1268 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
1269 *abssf2): Fix "op_type" attribute.
1271 2002-02-13 Douglas B Rupp <rupp@gnat.com>
1273 * mkconfig.sh: Avoid using a subshell redirect.
1274 ($output.T): Change to $(output)T.
1275 (ENABLE_NLS): Remove unneeded undef.
1277 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
1278 * config/alpha/x-vms (libsubdir): Define.
1280 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
1281 register frame procedures. Optimize retrieving context.
1283 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
1284 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
1285 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
1287 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1289 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
1290 Make same change as for find_base_value.
1292 2002-02-13 Kazu Hirata <kazu@hxi.com>
1294 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
1295 of QImode and SImode.
1297 2002-02-13 Kazu Hirata <kazu@hxi.com>
1299 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
1300 length computation of movsi.
1301 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
1303 2002-02-13 Kazu Hirata <kazu@hxi.com>
1305 * config/h8300/h8300.md (subqi3): Tighten the predicate for
1306 operands[2] to register_operand.
1308 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
1310 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
1312 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
1314 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
1315 for altivec_lvx* and altivec_stvx*.
1316 ("*movv4si_internal"): Add constraint for loading from GPRs.
1317 ("*movv8hi_internal1"): Same.
1318 ("*movv16qi_internal1"): Same.
1319 ("*movv4sf_internal1"): Same.
1321 * config/rs6000/rs6000.c (altivec_register_operand): New.
1323 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
1324 altivec_register_operand.
1326 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
1328 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
1331 2002-02-13 Stan Shebs <shebs@apple.com>
1333 * c-typeck.c (digest_init): Handle vectors.
1334 (really_start_incremental_init): Same.
1335 (pop_init_level): Same.
1336 (process_init_element): Same.
1338 * varasm.c (output_constant): Same.
1340 * expr.c (clear_storage): Same.
1341 (store_constructor): Same.
1343 2002-02-12 Eric Christopher <echristo@redhat.com>
1345 * explow.c (hard_function_value): Add comment explaining
1346 signed/unsigned comparison.
1348 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1350 * jump.c (never_reached_warning): Add finish argument.
1351 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
1352 real insn after end.
1353 * rtl.h (never_reached_warning): Adjust prototype.
1354 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
1355 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
1356 never_reached_warning.
1358 2002-02-12 Graham Stott <grahams@redhat.com>
1360 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
1362 2002-02-12 Kazu Hirata <kazu@hxi.com>
1364 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
1365 logical shifts on H8/300.
1366 (shift_alg_si): Improve several shifts on H8/300.
1367 (get_shift_alg): Likewise.
1369 2002-02-12 Graham Stott <grahams@redhat.com>
1371 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
1373 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1375 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
1376 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
1378 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
1380 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
1381 non-CONST_INT through default_assemble_integer.
1382 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
1383 <case 8>: Abort for CONST_DOUBLE.
1385 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1387 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
1389 * config/pa/pa-linux.h (LIB_SPEC): Delete.
1390 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
1392 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
1394 * config/stormy16/stormy16.md (zero_extendqihi2): New.
1396 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
1398 * regrename.c (regrename_optimize): Don't accept a
1399 part-clobbered register if the replaced register is not part
1402 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
1403 take padding into account when computing the argument value.
1405 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
1407 * combine.c (try_combine): Apply substitutions in
1408 CALL_INSN_FUNCTION_USAGE too.
1410 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
1412 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
1413 __builtin_altivec_abs*.
1416 * config/rs6000/rs6000.h (rs6000_builtins): Add
1417 ALTIVEC_BUILTIN_ABS*.
1419 * config/rs6000/altivec.h: Use const char for builtins expecting
1421 (vec_abs): New versions for C and C++.
1424 2002-02-10 Kazu Hirata <kazu@hxi.com>
1426 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
1429 2002-02-10 Kazu Hirata <kazu@hxi.com>
1431 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
1432 constant definition from h8300.md.
1433 (FRAME_POINTER_REGNUM): Likewise.
1434 * config/h8300/h8300.md (define_constants): Add FP_REG.
1436 2002-02-10 Kazu Hirata <kazu@hxi.com>
1438 * config/h8300/h8300.c (print_operand): Remove redundant code.
1440 2002-02-10 Kazu Hirata <kazu@hxi.com>
1442 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
1443 * config/h8300/h8300.c (byte_reg): Make it static.
1445 2002-02-10 Richard Henderson <rth@redhat.com>
1448 * c-typeck.c (incomplete_type_error): Handle flexible array members.
1450 2002-02-10 Richard Henderson <rth@redhat.com>
1453 * tree.c (append_random_chars): Don't abort if main_input_filename
1456 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
1458 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
1460 2002-02-10 Kazu Hirata <kazu@hxi.com>
1462 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
1463 (pushhi1): Likewise.
1465 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
1467 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
1468 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
1470 2002-02-09 David O'Brien <obrien@FreeBSD.org>
1472 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
1474 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
1476 2002-02-09 Kazu Hirata <kazu@hxi.com>
1478 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
1479 a half of an SImode register on H8/300.
1481 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
1483 * i386.md (movdi_2): Add missing '!'.
1485 2002-02-09 Kazu Hirata <kazu@hxi.com>
1487 * config/h8300/h8300.h: Fix formatting. Remove commented-out
1490 2002-02-09 Kazu Hirata <kazu@hxi.com>
1492 * config/h8300/h8300.md (length): Correct the distance valid
1493 for the short branch.
1495 2002-02-09 Kazu Hirata <kazu@hxi.com>
1497 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
1499 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
1501 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
1502 registers in SImode.
1503 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
1506 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
1509 Contribute sh64-elf.
1510 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
1511 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
1512 (sh_cannot_modify_jumps_p): New function.
1513 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
1514 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
1515 (sh_ms_bitfield_layout_p): New function.
1516 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
1517 Zack Weinberg <zack@codesourcery.com>
1518 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
1519 expand_simple_binop instead of expand_binop.
1520 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
1521 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
1522 use of .quad and .uaquad.
1523 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
1524 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
1525 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1526 * config/sh/sh.md (movdi_const, movdi_const_32bit,
1527 movdi_const_16bit): Make sure all CONSTs have modes.
1528 (sym2PIC): Ditto, but by adjusting all callers.
1529 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
1530 if the prologue calls the SHmedia argument decoder or register
1532 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1533 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
1534 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
1535 (sh_expand_epilogue): Don't emit USE of return target register.
1536 (prepare_move_operands): Legitimize DImode PIC addresses.
1537 (sh_media_register_for_return): Skip tr0, used to initialize the
1539 (sh_expand_prologue): Remove explicit USE of return register.
1540 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
1541 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
1542 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
1543 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
1544 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
1546 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
1547 (MOVI_SHORI_BASE_OPERAND_P): New.
1548 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
1549 (EXTRA_CONSTRAINT_T): Define in terms of them.
1550 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
1551 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
1552 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
1553 alternatives supporting TARGET_REGS.
1554 (UNSPEC_GOTPLT): New constant.
1555 (movdi split): Move incrementing of LABEL_NUSES...
1556 (movdi_const, movdi_const_32bit): Here. Use
1557 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
1558 (movdi_const_16bit): New.
1559 (call, call_value) [flag_pic]: Use GOTPLT.
1560 (call_pop, call_value_pop): New expands.
1561 (call_pop_compact, call_pop_rettramp): New insns.
1562 (call_value_pop_compact, call_value_pop_rettramp): New insns.
1563 (sibcall) [flag_pic]: Use GOT.
1564 (builtint_setjmp_receiver): Remove bogus, unused expand.
1565 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
1566 (*pt, *ptb, ptrel): New insns.
1567 (sym2GOT): Handle DImode GOT.
1568 (sym2GOTPLT, symGOTPLT2reg): New expands.
1569 (sym2PIC): New expand.
1570 (shcompact_return_tramp): Use GOTPLT to return trampoline.
1571 (shcompact_return_tramp_i): Use return register explicitly.
1572 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
1573 disable flag_reorder_blocks.
1574 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
1575 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
1576 clobbers, for clarity.
1577 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
1578 restoring of r0 in macl as MAYBE_DEAD.
1579 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1580 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
1581 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
1582 alter_subreg all over.
1583 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
1584 reload, instead of emitting instructions that would require
1586 (casesi_load_media): Add missing modes.
1587 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
1588 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
1589 as used if the argument decoder is called.
1590 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
1591 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
1592 Pmode, then extend it to DImode if necessary.
1593 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
1594 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
1595 constants in FPU-enabled SHmedia, let them be loaded from memory.
1596 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
1597 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
1598 Adjust whitespace in assembly output templates.
1599 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
1600 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
1601 mode of if_then_else.
1602 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
1603 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
1605 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
1606 Joern Rennecke <amylaar@redhat.com>
1607 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
1608 (SUBTARGET_CPP_PTR_SPEC): New.
1609 (SUBTARGET_CPP_SPEC): Remove.
1610 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
1611 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
1612 Fix typo in previous checkin.
1613 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
1614 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
1615 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
1616 Alexandre Oliva <aoliva@redhat.com>
1617 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
1618 what single FP register can hold for SHmedia target.
1619 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
1620 Alexandre Oliva <aoliva@redhat.com>
1621 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
1622 Do not split into SUBREG.
1623 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
1624 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
1625 and added new functions as specified in SH5 ABI r9.
1626 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
1627 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
1629 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
1630 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
1631 gen_consttable_4 and gen_consttable_8. Emit multiple labels
1632 and consttable_window_ends.
1633 2001-06-03 Graham Stott <grahams@redhat,com>
1634 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
1635 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
1636 * config/sh/sh.c (print_operand): Handle floating-point pair,
1637 vector and matrix registers.
1638 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
1639 vector modes into account.
1640 * config/sh/sh.md (movv2sf): Split move between registers into
1642 (movv4sf, movv16sf): Introduce insns that get split only after
1644 * config/sh/shmedia.h: Fix Copyright dates.
1645 * config/sh/ushmedia.h: Likewise. Move loop counter
1646 declarations into conditionals that uses them.
1647 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
1649 * config/sh/sshmedia.h: Fix Copyright dates.
1650 (sh_media_PUTCFG): Fix constraints.
1651 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
1652 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
1653 ptrmemfunc_vbit_in_delta for SH5.
1654 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
1655 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
1656 * invoke.texi: Likewise.
1657 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
1658 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
1659 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
1660 GCC_pop_shmedia_regs_nofpu): New global symbols.
1661 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
1662 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
1663 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
1664 compact function with nonlocal labels.
1665 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
1666 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
1667 (initial_elimination_offset): Account for their stack space.
1668 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
1669 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
1670 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
1671 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
1672 least one of the operands to be a register.
1673 (movv2sf): Likewise. Renamed to movv2sf_i.
1674 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
1675 prepare_move_operands() before emitting SHmedia insns.
1676 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
1677 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
1678 Don't save nor initialize r12. Don't mis-align the stack.
1679 Pad the code with a nop.
1680 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
1682 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
1683 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
1684 [__SHMEDIA__]: Implement.
1685 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
1686 * config/sh/sh.md: Set latency of `pt' closer to reality.
1687 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
1688 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
1689 Set move, load and store type attributes.
1690 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
1691 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
1693 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
1694 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
1695 * config/sh/sh.c (sh_media_register_for_return): New function.
1696 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
1697 branch-target register.
1698 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
1699 * config/sh/sh.md (return_media_i): Use any call-clobbered
1700 branch-target register.
1701 (return_media): If r18 wasn't copied in the prologue, copy it
1703 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
1704 Clear class FP0_REGS.
1705 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
1707 2001-03-08 DJ Delorie <dj@redhat.com>
1708 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
1709 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
1710 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
1711 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
1712 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
1713 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
1714 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
1715 return value correctly for call_cookie.
1716 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
1717 * config/sh/crt1.asm (start): Modified so as to call
1718 ___setup_argv_and_call_main.
1719 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
1720 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
1722 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
1723 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
1724 (STRIP_NAME_ENCODING): Use it.
1725 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
1726 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
1727 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
1728 prepare_scc_operands().
1729 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
1730 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
1731 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
1732 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
1733 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
1734 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
1735 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
1736 used in shcompact_incoming_args.
1737 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
1739 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
1741 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
1743 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
1744 Simplify. Adjust. Add sanity check.
1745 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
1747 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
1749 (udivsi3, divsi3): Use them.
1750 (force_mode_for_call): New insn.
1751 (call, call_value, sibcall_value): Emit it before SHcompact
1753 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
1754 * config/sh/sh.md (call, call_value, sibcall): Make sure the
1755 call cookie is non-NULL before taking its value.
1756 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
1757 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
1758 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
1759 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
1761 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
1762 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
1763 temporary for stack adjusts. Use MACL and MACH to pass
1764 arguments to shcompact_incoming_args.
1765 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
1767 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
1768 (nested_trampoline): Load static chain address into r1.
1769 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
1770 2001-01-07 Alexandre Oliva <aoliva@redhat.com
1771 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
1772 fp_arith_reg_operand().
1773 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
1774 * config/sh/sh.md (casesi): Sign-extend the first two operands,
1775 and use signed compares for them.
1776 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
1777 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
1778 ones properly aligned.
1779 (find_barrier): Account for extra alignment needed for 8-byte wide
1781 (machine_dependent_reorg): Require a label for the second 4-byte
1782 constant after an 8-byte one.
1783 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
1785 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
1786 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
1787 last_float when switching float modes.
1788 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
1789 auto-increment for general-purpose registers.
1790 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
1792 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
1794 * config/sh/sh.c (sh_builtin_saveregs): Support using all
1795 registers for varargs.
1796 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
1797 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
1798 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
1799 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
1800 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
1801 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
1802 call_cookie accordingly.
1803 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
1804 (SHCOMPACT_BYREF): Likewise.
1805 (SHCOMPACT_FORCE_ON_STACK): New macro.
1806 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
1807 (sh_builtin_saveregs): Likewise.
1808 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
1809 shcompact_incoming_args): Use new shift values. Support
1810 sequences of consecutive and non-consecutive pushes/pops.
1811 * config/sh/sh.md (return): Don't explicitly use PR_REG.
1812 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
1813 * config/sh/sh.h (TEXT_SECTION): Define.
1814 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
1815 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
1816 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
1817 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
1818 return values on FPU-enabled SHmedia.
1819 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
1820 FPU-enabled SHmedia.
1821 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
1822 value is returned in a non-FP reg and is not returned by
1824 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
1826 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
1827 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
1828 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
1829 quad-aligned to be passed by callee-copy reference.
1830 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
1831 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
1832 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
1833 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
1834 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
1835 copying low-numbered FP regs to r7 and r8.
1836 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
1837 FP regs to general-purpose regs only if the copy was passed on the
1839 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
1840 copying FP reg to r9.
1841 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
1842 copy FP regs to general-purpose regs only in outgoing calls.
1843 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
1844 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
1846 * config/sh/sh.h (struct sh_args): Document all fields.
1847 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
1848 passed partially on the stack should not consider making
1850 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
1851 stack_regs only for incoming calls. When passing FP args,
1852 make sure there are FP regs available before modifying
1854 (SHCOMPACT_BYREF): Pass double args in general-purpose
1855 registers by reference.
1856 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
1857 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
1858 attempt to generate sibcalls if the caller got any arguments
1860 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
1861 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
1862 to 8-byte boundaries.
1863 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
1864 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
1865 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
1866 stored in the stack.
1867 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
1868 for the offsets to have the ISA bit set.
1869 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
1870 invocation. Use beq instead of bgt to mark end of sequence of
1872 (shcompact_incoming_args): Fix store of r2. Use beq instead of
1873 bgt to mark end of sequence of stores.
1874 * config/sh/sh.c (arith_operand): Don't check whether
1875 CONST_OK_FOR_J for now.
1876 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
1877 instead of long for conversion.
1878 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
1879 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
1880 before passing it to fprintf.
1881 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
1882 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
1883 Call set_fpscr before reading/writing SR.
1884 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
1886 * config/sh/lib1funcs.asm: Add `.align 2' directives before
1888 (FMOVD_WORKS): Define on SH5 with FPU.
1889 (set_fpscr): Define on SH5. Remove separate _fpscr_values
1891 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
1893 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
1894 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
1896 (ia_main_table): Ditto.
1897 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
1898 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
1899 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
1900 the definitions from sh.h.
1901 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
1903 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
1904 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
1905 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
1906 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
1907 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
1908 Increment LABEL_NUSES.
1910 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
1912 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
1914 * config/sh/elf.h (SIZE_TYPE): Likewise.
1915 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
1916 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
1917 shcompact_incoming_args): Load switch table addresses using
1919 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
1920 (NO_BUILTIN_SIZE_TYPE): Define.
1921 (SIZE_TYPE): Don't define.
1922 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
1923 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
1924 definition of __SH5__=32 for -m5-compact-nofpu.
1925 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
1927 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
1928 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
1929 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
1930 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
1931 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
1932 (INSN_LENGTH_ALIGNMENT): Likewise.
1933 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1934 * config/sh/sh.md (call, call_value, sibcall): Simplify
1935 copying of non-branch-target register.
1936 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1937 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
1938 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
1939 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
1940 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
1941 floating-point values as structs.
1942 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
1943 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
1944 general-purpose register.
1945 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
1946 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
1947 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
1948 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
1949 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
1950 (ENCODE_SECTION_INFO): Enclose variables and constants in
1952 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
1953 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
1954 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
1955 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
1956 only for LABEL_REFs. For SYMBOL_REFs, prepend
1957 SH_DATALABEL_ENCODING to the symbol name.
1958 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
1960 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
1961 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
1963 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
1964 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
1965 (DATALABEL_REF_P): Don't require CONST.
1966 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
1968 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
1969 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
1971 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
1972 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
1973 Use shallow_copy_rtx and PUT_MODE to change the mode of
1974 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
1975 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
1976 on SHmedia using GENERAL_REGs.
1977 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
1978 bltu_media_i): Fix reversion of conditions.
1979 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
1980 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
1981 * config/sh/sh.c (output_far_jump): Save r13 in macl.
1982 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
1983 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
1984 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
1985 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
1986 (GCC_nested_trampoline): Likewise.
1987 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
1988 * config/sh/sh.c (gen_datalabel_ref): Define.
1989 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
1990 (INITIALIZE_TRAMPOLINE): Likewise.
1991 (TRAMPOLINE_ADJUST_ADDRESS): Define.
1992 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
1993 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
1994 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
1995 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
1996 (ic_invalidate): Adjust for SH5.
1997 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
1998 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
2000 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
2001 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
2002 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
2003 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
2004 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
2005 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
2006 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
2007 * config/sh/sh.c (target_reg_operand): Match only target-branch
2008 registers and pseudos that aren't virtual registers.
2009 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
2010 Copy operands that don't match target_reg_operand to pseudos.
2011 (call_media, call_value_media, sibcall_media): Use
2012 target_reg_operand instead of target_operand.
2013 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
2014 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
2015 * config/sh/sh.c (target_reg_operand): Match hardware registers
2016 other than branch-target registers.
2017 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
2018 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
2019 (fpscr_values) [SH5 == 32]: Define.
2020 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
2021 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
2022 Handle function addresses coming in SUBREGs.
2023 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
2024 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
2025 shcompact_return_trampoline): Use datalabel where appropriate.
2026 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
2027 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
2028 general-purpose register to copy one branch-target register to
2030 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
2031 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
2032 SYMBOL_REFs with VOIDmode.
2033 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
2034 bltu_media_i): New insns.
2035 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
2036 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
2037 (INIT_CUMULATIVE_ARGS): Likewise.
2038 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
2039 * machmode.def (V16SFmode): New mode.
2040 * c-common.c (type_for_mode): Support V2SF and V16SF.
2041 * tree.c (build_common_tree_nodes_2): Likewise.
2042 * tree.h (tree_index): Likewise.
2043 * calls.c (emit_call_1): Take args_so_far. Adjust all
2044 callers. Introduce CALL_POPS_ARGS.
2045 * tm.texi (CALL_POPS_ARGS): Document.
2046 * config/sh/crt1.asm: Implement in SHmedia mode.
2047 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
2048 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
2049 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
2050 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
2051 Implement divsi and udivsi in SHmedia mode. Introduce
2052 SHcompact trampolines.
2053 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
2055 (regno_reg_class): Rewrite.
2056 (fp_reg_names): Remove.
2057 (sh_register_names, sh_additional_register_names): New.
2058 (print_operand): Added `u'. Support SUBREGs in addresses.
2059 Add parentheses around shifted CONSTs.
2060 (output_file_start): Output .mode and .abi directives.
2061 (shiftcosts, addsubcosts, multcosts): Adjust.
2062 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
2063 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
2064 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
2065 bytes, not registers. Take into account the need for the
2066 SHcompact incoming args trampoline. Adjust all callers.
2067 (sh_expand_prologue): Take stack_regs into account. Call
2068 incoming args trampoline. Keep stack aligned as per SH5 ABI.
2069 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
2070 stack aligned as per SH5 ABI.
2071 (sh_builtin_saveregs): Support SH5 ABI.
2072 (sh_build_va_list, sh_va_start): Likewise.
2073 (initial_elimination_offset): Take alignment into account.
2074 Compute location of PR according to the SH5 stack frame.
2075 (arith_reg_operand): Reject branch-target registers.
2076 (shmedia_6bit_operand): New.
2077 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
2078 (target_reg_operand): Match DImode only. Accept SUBREGs.
2079 (target_operand): New.
2080 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
2081 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
2082 SIBCALL_REGS for SHmedia.
2083 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
2084 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
2085 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
2086 (TARGET_SWITCHES): New SH5 flags.
2087 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
2088 VALID_REGISTER_P to disable unsupported registers.
2089 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
2090 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
2091 (FUNCTION_ARG_PADDING): Define.
2092 (FASTEST_ALIGNMENT): Adjust.
2093 (SH_REGISTER_NAMES_INITIALIZER): New.
2094 (sh_register_names): Declare.
2095 (DEBUG_REGISTER_NAMES): Define.
2096 (REGISTER_NAMES): Define based on sh_register_names.
2097 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
2098 (sh_additional_register_names): Declare.
2099 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
2100 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
2101 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
2102 (REGISTER_NATURAL_MODE): Define.
2103 (FIRST_PSEUDO_REGISTER): Adjust.
2104 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
2105 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
2106 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
2107 (VECTOR_MODE_SUPPORTED_P): Define.
2108 (REG_CLASS_CONTENTS): Adjust.
2109 (SMALL_REGISTER_CLASSES): Adjust.
2110 (REG_ALLOC_ORDER): Adjust.
2111 (INDEX_REG_CLASS): Adjust.
2112 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
2113 (CONST_OK_FOR_LETTER_P): Adjust.
2114 (PREFERRED_RELOAD_CLASS): Adjust.
2115 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
2116 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
2117 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
2118 (FIRST_FP_PARM_REG): Adjust.
2119 (CALL_POPS_ARGS): Define.
2120 (FUNCTION_ARG_REGNO_P): Adjust.
2121 (struct sh_args): New fields.
2122 (GET_SH_ARG_CLASS): Adjust.
2123 (INIT_CUMULATIVE_ARGS): Adjust.
2124 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
2125 (FUNCTION_ARG_ADVANCE): Adjust.
2126 (FUNCTION_ARG): Adjust.
2127 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
2128 (FUNCTION_ARG_CALLEE_COPIES): Define.
2129 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
2130 (STRICT_ARGUMENT_NAMING): Define.
2131 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
2132 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
2133 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
2134 (SETUP_INCOMING_VARARGS): Adjust.
2135 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
2136 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
2137 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
2138 (SUBREG_OK_FOR_INDEX_P): Adjust.
2139 (EXTRA_CONSTRAINT_S): Update.
2140 (EXTRA_CONSTRAINT_T): New.
2141 (EXTRA_CONSTRAINT): Adjust.
2142 (GO_IF_LEGITIMATE_INDEX): Adjust.
2143 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
2144 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
2146 (MAX_MOVE_MAX): Define.
2148 (CONST_COSTS): Adjust.
2149 (REGISTER_MOVE_COST): Adjust.
2150 (BRANCH_COST): Adjust.
2151 (TEXT_SECTION_ASM_OP): Adjust.
2152 (DBX_REGISTER_NUMBER): Adjust.
2153 (ASM_OUTPUT_DOUBLE_INT): New.
2154 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
2155 (PREDICATE_CODES): Adjust.
2156 (PROMOTE_MODE): Adjust.
2157 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
2158 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
2159 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
2160 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
2161 (DR0_REG, DR2_REG, DR4_REG): Renumber.
2162 (TR0_REG, TR1_REG, TR2_REG): New.
2163 (XD0_REG): Renumber.
2164 (UNSPEC_COMPACT_ARGS): New.
2165 (type): Added pt and ptabs.
2166 (length): Default to 4 on SHmedia. Default pt length to 12
2167 and 20 on SHmedia32 and SHmedia64, respectively.
2168 (pt): New function unit.
2169 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
2170 Add whitespace between operands of SHmedia instructions.
2172 (adddi3_media, addsi3_media): Adjust constraints.
2173 (subsi3) [SHmedia]: Force operand 1 into a register.
2174 (udivsi3_i1_media, udivsi3_i4_media): New.
2175 (udivsi3): Support SHmedia.
2176 (divsi3_i1_media, divsi3_i4_media): New.
2177 (divsi3): Support SHmedia.
2178 (anddi3, iordi3, xordi3): Adjust constraints.
2179 (zero_extendhidi2, zero_extendqidi2): New.
2180 (extendsidi2, extendhidi2, extendqidi2): New.
2181 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
2182 (pop_e, pop_fpul, pop_4): Likewise.
2183 (movsi_media): Support FP and BT registers.
2184 (movsi_media_nofpu): New. Adjust splits to DImode.
2185 (lduw, ldub): Renamed to zero_extend* above.
2186 (movqi_media): Fix typo.
2187 (movdi_media): Support FP and BT registers.
2188 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
2189 (movdi_const_32bit): New.
2190 (shori_media): Require immediate operand. Use `u' for output.
2191 (movdf_media, movsf_media): Simplified.
2192 (movdf_media_nofpu, movsf_media_nofpu): New.
2193 (movdf, movsf): Adjust
2194 (movv2sf, movv2sf, movv16sf): New.
2195 (beq_media, beq_media_i): Adjust constraints. Don't use
2196 scratch BT register.
2197 (bne_media, bne_media_i): Likewise.
2198 (bgt_media, bgt_media_i): Likewise.
2199 (bge_media, bge_media_i): Likewise.
2200 (bgtu_media, bgtu_media_i): Likewise.
2201 (bgeu_media, bgeu_media_i): Likewise.
2202 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
2203 bunordered): Emit jump insn. Force operands to registers when
2205 (jump_media, jump): Simplify.
2206 (call_compact, call_compact_rettramp): New.
2207 (call_value_compact, call_value_compact_rettramp): New.
2208 (call_media, call_value_media): Simplify.
2209 (sibcall_compact, sibcall_media): New.
2210 (call, call_value): Adjust for SHmedia and SHcompact.
2211 (sibcall, sibcall_value, untyped_call): Likewise.
2212 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
2213 (indirect_jump): Adjust for SHmedia.
2214 (casesi_jump_media): New.
2215 (nop): Re-enable for SHmedia.
2216 (call_site): Restrict to SH1.
2217 (casesi): Adjust for SHmedia.
2218 (casesi_shift_media, casesi_load_media): New.
2219 (return): Explicitly use PR register. Call return trampoline
2221 (return_i): Explicitly use PR register.
2222 (shcompact_return_tramp, shcompact_return_tramp_i): New.
2223 (return_media): Adjust.
2224 (shcompact_incoming_args): New.
2226 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
2227 (movstrsi): Disable on SH5.
2228 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
2229 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
2230 (subsf3, subsf3_media): Likewise.
2231 (mulsf3, mulsf3_media, mac_media): Likewise.
2232 (divsf3, divsf3_media): Likewise.
2233 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
2234 (floatsisf2, fux_truncsfsi2): Likewise.
2235 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
2237 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
2238 (cmpunsf_media, cmpsf): Likewise.
2239 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
2240 (abssf2, abssf2_media): Likewise.
2241 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
2242 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
2243 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
2244 (floatsidf2, fix_truncdfsi2): Likewise.
2245 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
2247 (cmpeqdf_media, cmpgtdf_media): Likewise.
2248 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
2249 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
2250 (absdf2, absdf2_media): Likewise.
2251 (extendsfdf2, extendsfdf2_media): Likewise.
2252 (truncsfdf2, truncsfdf2_media): Likewise.
2253 * config/sh/sh64.h: New file.
2254 * config/sh/t-sh64: New file.
2255 * config/sh/shmedia.h: New file.
2256 * config/sh/ushmedia.h: New file.
2257 * config/sh/sshmedia.h: New file.
2258 * configure.in: Added sh64-*-elf.
2259 * configure: Rebuilt.
2260 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
2261 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
2262 (reg_class_from_letter): Use `b' for TARGET_REGS.
2263 (print_operand): Support `%M', `%m', `AND' and
2264 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
2265 (andcosts): Adjust for SHmedia.
2266 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
2268 (target_reg_operand): New function.
2269 * config/sh/sh-protos.h (target_reg_operand): Declare.
2270 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
2271 FP registers on SH5.
2272 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
2274 (TARGET_REGISTER_P): New macro.
2275 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
2276 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
2277 (EXTRA_CONSTRAINT_S): New macro.
2278 (EXTRA_CONSTRAINT): Adjust.
2279 (FLOAT_TYPE_SIZE): Define to 32.
2280 (Pmode): DImode on SHmedia.
2281 (CONST_COSTS): Adjust for SHmedia literals.
2282 (PREDICATE_CODES): Added target_reg_operand.
2283 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
2284 * config/sh/sh.md: Remove all attrs from SHmedia insns.
2285 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
2286 (cmpdi): Accept SHmedia.
2287 (movdicc_false, movdicc_true): New insns.
2288 (movdicc): New expand.
2289 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
2291 (addsi3_media): Match `S' constraint.
2292 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
2293 (negdi2): Expand for SHmedia.
2294 (one_cmpldi2): New expand.
2295 (zero_extendsidi2): Change from expand to insn.
2296 (extendsidi2): Add constraints.
2297 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
2298 LD/ST address. Fix SI immediate loading split.
2299 (movhi_media, movqi_media, lduw, ldub): New insns.
2300 (movhi, movqi): Accept SHmedia.
2301 (shori_media, movdi_media): Relax input constraints. Split
2303 (movdf_media, movsf_media): New insn. New split to movdi.
2304 (movdf, movsf): Match on SHmedia.
2305 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
2306 bgeu_media): New insns and splits. New insns with `_i' suffix.
2307 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
2308 (bunordered): New expand.
2309 (jump_compact): Renamed from `jump'.
2310 (jump_media): New insn.
2312 (call_media, call_value_media): New insns.
2313 (call, call_value): Adjust.
2314 (indirect_jump_compact): Renamed from `indirect_jump'.
2315 (indirect_jump_media): New insn.
2316 (indirect_jump): New expand.
2317 (untyped_call, return): Accept SHmedia.
2318 (return_media): New insn.
2319 (prologue, epilogue, blockage): Accept SHmedia.
2320 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
2321 (sunordered): New expand.
2322 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
2323 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
2324 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
2325 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
2326 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
2327 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
2328 abssf2_media): New insns.
2329 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
2330 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
2331 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
2332 floatdidf2, floatsidf2_media, fix_truncdfdi2,
2333 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
2334 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
2335 absdf2_media): New insns.
2336 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
2337 (extendsfdf2_media, truncdfsf2_media): New insns.
2338 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2339 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
2340 * config/sh/sh.h (CONST_OK_FOR_J): Document.
2341 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
2342 * config/sh/sh.md (adddi3): New expand.
2343 (adddi3_media, adddi3z_media): New insns.
2344 (adddi3_compact): Renamed from adddi3.
2345 (addsi3_media): Use add.l r63 to add constant zero.
2346 (subdi3): New expand.
2347 (subdi3_media): New insn.
2348 (subdi3_compact): Renamed from subdi3.
2349 (mulsidi3): New expand.
2350 (mulsidi3_media): New insn.
2351 (mulsidi3_compact): Renamed from mulsidi3.
2352 (umulsidi3): New expand.
2353 (umulsidi3_media): New insn.
2354 (umulsidi3_compact): Renamed from umulsidi3.
2355 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
2356 (ashlsi3, ashrsi3, lshrsi3): Use them.
2357 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
2358 (ashldi3, ashrdi3, lshrdi3): Use them.
2359 (zero_extendsidi2): New expand.
2360 (extendsidi2): New insn.
2361 (movsi_media): New insn. Split to movdi to load constants.
2362 (movsi): Enable for shmedia.
2363 (movdi_media): New insn. Use shori_media to load wide constants.
2364 (short_media): New insn.
2365 (movdi): Enable for shmedia.
2366 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
2367 * config/sh/sh.h (CPP_SPEC): Added `m5'.
2368 (SUBTARGET_CPP_SPEC): Added `!m5'.
2369 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
2370 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
2371 to all other SH variants.
2372 (TARGET_DEFAULT): Set to SH1_BIT.
2373 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
2374 (BITS_PER_WORD): Raise to 64 on shmedia.
2375 (MAX_BITS_PER_WORD): Change to 64.
2376 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
2377 (INT_TYPE_SIZE): Keep as 32.
2378 (UNITS_PER_WORD): Raise to 8 on shmedia.
2379 (MIN_UNITS_PER_WORD): Keep as 4.
2380 (POINTER_SIZE): Raise to 64 on shmedia.
2381 (CONST_OK_FOR_J): New macro.
2382 (CONST_OK_FOR_LETTER_P): Use it.
2383 (processor_type): Add PROCESSOR_SH5.
2384 * config/sh/sh.md: Conditionalize all expands, insns and
2385 splits to TARGET_SH1.
2387 (addsi3_compact): Renamed from...
2388 (addsi3): Now an expand.
2389 (addsi3_media, subsi3_media): New insns.
2390 (subsi3): Don't negate constants with SHmedia.
2392 * hooks.c: New file.
2393 * hooks.h: New file.
2394 * Makefile.in (HOOKS_H): New.
2395 (TARGET_DEF_H): Added $(HOOKS_H).
2396 (OBJS): Added hooks.o.
2397 (cfgcleanup.o, bb-reorder.o): Added target.h.
2398 (hooks.o): Added dependencies.
2399 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
2400 (TARGET_INITIALIZER): this.
2401 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
2402 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
2403 * bb-reorder.c: Include target.h.
2404 (reorder_basic_blocks): Skip if cannot modify jumps.
2405 * cfgcleanup.c: Include target.h.
2406 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
2408 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2410 * config/mips/mips.md (casesi_internal, casesi_internal_di):
2411 Protect jump delay slot instructions with .set noreorder and
2414 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2416 * config/mips/mips.md (casesi_internal_di): Calculate
2417 the index into the target offset table correctly.
2419 2002-02-08 Richard Henderson <rth@redhat.com>
2421 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
2422 * final.c (output_addr_const): Accept and discard SUBREG.
2423 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
2424 mark them unknown instead.
2425 (simplify_subtraction): Handle RTX_UNKNOWN.
2426 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
2428 2002-02-08 David Edelsohn <edelsohn@gnu.org>
2430 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
2432 2002-02-08 Richard Henderson <rth@redhat.com>
2434 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
2436 2002-02-08 Andreas Jaeger <aj@suse.de>
2438 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
2439 * config/i386/t-linux64: New file.
2441 2002-02-08 Jakub Jelinek <jakub@redhat.com>
2443 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
2444 * c-parse.in (compstmt): Clear last_expr_type.
2446 2002-02-07 Richard Henderson <rth@redhat.com>
2448 * loop.c (strength_reduce): Sink final_value when not
2451 2002-02-07 David O'Brien <obrien@FreeBSD.org>
2453 * config/sparc/freebsd.h: Fix mismatched spec {.
2455 2002-02-07 Richard Henderson <rth@redhat.com>
2457 * cfgrtl.c: Include recog.h and insn-config.h.
2458 (keep_with_call_p): Fix general_operand invocation.
2459 * Makefile.in (cfgrtl.o): Update dependencies.
2461 2002-02-07 Kazu Hirata <kazu@hxi.com>
2463 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
2464 comment. Accept HImode only if TARGET_H8300.
2466 2002-02-07 Eric Christopher <echristo@redhat.com>
2468 * config/mips/crtn.asm: Cleanup #ifdefs.
2470 2002-02-07 Eric Christopher <echristo@redhat.com>
2472 * config/mips/crti.asm: Add changes for mips16. mips16 uses
2473 register 7 as RA instead of $31.
2474 * config/mips/crtn.asm: Ditto.
2475 * config/mips/mips.c (mips_move_2words): Add case for
2476 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
2477 (compute_frame_size): Fix typo.
2478 (save_restore_insns): Ditto. Make documentation about using
2479 register $7 as return register more precise.
2480 (mips_expand_epilogue): Fix comment. Add code to work around not
2481 being able to add to the stack pointer directly.
2482 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
2483 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
2486 2002-02-07 Tom Rix <trix@redhat.com>
2488 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
2489 immediates in ldu and stdu DS opcode field.
2490 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
2491 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
2492 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
2494 2002-02-07 Jeff Sturm <jsturm@one-point.com>
2496 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
2497 offset for stack bias.
2499 2002-02-07 H.J. Lu <hjl@gnu.org>
2501 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
2503 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
2505 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
2507 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
2509 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
2510 * i386.c (x86_order_regs_for_local_alloc): New global function.
2511 * i386.h (REG_ALLOC_ORDER): CLeanup.
2512 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
2514 2002-02-07 Richard Henderson <rth@redhat.com>
2516 PR optimization/2463
2517 * alias.c (find_base_value): Recall base values for fixed hard regs.
2518 * loop.c (loop_regs_update): Don't use single_set on non-insns.
2520 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
2522 * config/mips/mips.md (define_delay) [mips16]: Adjust required
2525 2002-02-06 Richard Henderson <rth@redhat.com>
2528 * stmt.c (resolve_operand_name_1): Take more care with mixed
2529 named and unnamed operands.
2531 2002-02-06 Janis Johnson <janis187@us.ibm.com>
2532 Jan Hubicka <jh@suse.cz>
2534 * loop.c (remove_constant_addition): Avoid clobbering a shared
2537 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
2539 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
2540 * config/s390/t-linux64: New file.
2541 * config/s390/libgcc-glibc.ver: New file.
2543 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
2545 * config/s390/linux64.h: Delete file.
2546 * config/s390/s390x.h: New file.
2547 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
2548 as target header file.
2549 * config/s390/linux.h (TARGET_VERSION): Define depending on
2550 DEFAULT_TARGET_64BIT.
2551 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
2552 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
2553 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
2554 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
2555 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
2556 (EXTRA_SPEC): New define.
2557 * config/s390/s390.h (TARGET_VERSION): Define depending on
2558 DEFAULT_TARGET_64BIT.
2559 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
2561 2002-02-06 Jason Merrill <jason@redhat.com>
2563 * c-decl.c (finish_function): Warn about a non-void function with
2564 no return statement and no abnormal exit.
2565 (current_function_returns_abnormally): New variable.
2566 (start_function): Clear it.
2567 (struct c_language_function): Add returns_abnormally.
2568 (push_c_function_context): Save it.
2569 (pop_c_function_context): Restore it.
2570 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
2571 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
2572 an explicit return type.
2573 * c-tree.h: Declare current_function_returns_abnormally.
2574 (C_FUNCTION_IMPLICIT_INT): New macro.
2575 * c-typeck.c (build_function_call): Set it.
2576 (c_expand_return): Set current_function_returns_value even if the
2579 2002-02-06 Jakub Jelinek <jakub@redhat.com>
2582 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
2583 unsafe for reevaluation.
2585 2002-02-06 Jakub Jelinek <jakub@redhat.com>
2588 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
2589 EXPR_STMT, but COMPOUND_STMT, recurse into it.
2591 2002-02-06 Richard Henderson <rth@redhat.com>
2593 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
2594 be a general_operand. Dest for function value must be a pseudo.
2596 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
2598 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
2599 as SYMBOL_REFs from the constant pool.
2601 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
2603 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
2604 passed by invisible reference.
2606 2002-02-05 Richard Henderson <rth@redhat.com>
2608 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
2610 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
2612 Implement using "base addresses" in insn operands as default.
2613 * config/mmix/mmix.c (mmix_conditional_register_usage): if
2614 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
2615 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
2616 used to read the rtx value.
2617 (mmix_target_asm_function_epilogue): Fix spacing.
2618 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
2619 (mmix_legitimate_address): Ditto.
2620 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
2621 should be loaded with a GETA insn. Don't allocate needless extra
2622 char for nul termination and fix misleading comment.
2623 (mmix_print_operand_address): Handle constants if
2624 TARGET_BASE_ADDRESSES.
2625 (mmix_output_register_setting): Use base addressing if
2626 TARGET_BASE_ADDRESSES and the number of insns is 3.
2627 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
2628 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
2629 to use R as constraint, add LDA to match s.
2630 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
2631 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
2632 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
2633 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
2634 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
2635 order with other fixed registers.
2636 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
2637 other parameter/call-clobbered registers.
2638 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
2639 -mbase-addresses, -mno-base-addresses.
2640 (MMIX Options): Ditto.
2642 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
2644 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
2646 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
2648 * config/rs6000/altivec.h: Change elem to _S_elem.
2650 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
2652 * config/netbsd.h (WCHAR_TYPE): Define.
2653 (WCHAR_TYPE_SIZE): Ditto.
2655 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
2656 (WCHAR_UNSIGNED): Ditto.
2657 (WCHAR_TYPE_SIZE): Ditto.
2659 * config/arm/netbsd.h: Likewise.
2660 * config/i386/netbsd-elf.h: Likewise.
2661 * config/i386/netbsd.h: Likewise.
2662 * config/m68k/netbsd-elf.h: Likewise.
2663 * config/m68k/netbsd.h: Likewise.
2664 * config/ns32k/netbsd.h: Likewise.
2665 * config/sparc/netbsd.h: Likewise.
2666 * config/vax/netbsd.: Likewise.
2668 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
2670 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
2671 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
2672 (TARGET_INITIALIZER): this.
2673 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
2674 (BITFIELD_NBYTES_LIMITED): Markup fix.
2675 * tree.h (default_ms_bitfield_layout_p): Declare.
2676 (record_layout_info): Added prev_field.
2677 * tree.c (default_ms_bitfield_layout_p): New fn.
2678 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
2679 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
2680 * stor-layout.c: Include target.h.
2681 (start_record_layout): Initialize prev_field.
2682 (place_field): Handle MS bit-field layout, and disregard
2683 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
2684 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
2685 * Makefile.in (stor-layout.o): Adjust dependencies.
2687 2002-02-05 Jason Merrill <jason@redhat.com>
2689 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
2691 2002-02-05 Andreas Jaeger <aj@suse.de>
2693 * crtstuff.c: Fix comments.
2695 2002-02-05 Richard Henderson <rth@redhat.com>
2698 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
2699 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
2702 * config/mips/mips.c (function_arg): Handle TImode.
2703 (function_arg_advance): Likewise.
2705 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2707 * config/rs6000/altivec.h (vec_step_help): Rename to
2710 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2712 * config/rs6000/altivec.h: Fix typos.
2714 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
2716 * config/arm/netbsd.h: Correct a comment.
2718 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2720 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
2721 building void typed builtins.
2723 * config/rs6000/altivec.h (vec_ld*): Fix typos.
2724 (vec_step): Implement for C++.
2726 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2728 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
2730 2002-02-04 Richard Henderson <rth@redhat.com>
2732 * combine.c (nonzero_bits): Re-introduce special case for
2733 sp/fp/ap wrt REGNO_POINTER_ALIGN.
2735 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2737 * doc/extend.texi: Warn about unsupported usage of altivec
2740 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
2741 (altivec_predicate_*): New.
2743 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
2744 Add C++ version of vec_*() functions.
2746 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
2747 (bdesc_2arg): Remove altivec predicates.
2748 (altivec_expand_builtin): Handle predicates.
2749 (altivec_init_builtins): Handle predicates.
2750 (altivec_expand_predicate_builtin): New.
2752 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2754 * pa.c (DO_FRAME_NOTES): Move forward.
2755 (store_reg): Revise handling of frame notes.
2756 (load_reg): Likewise.
2757 (set_reg_plus_d): Likewise.
2758 (hppa_expand_prologue): Likewise.
2759 (hppa_expand_epilogue): Likewise.
2761 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2763 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
2765 2002-02-04 Jakub Jelinek <jakub@redhat.com>
2767 PR c/4475, c++/3780:
2768 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
2769 * c-common.h (SWITCH_TYPE): Define.
2770 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
2771 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
2772 Rename spareness variable to sparseness.
2773 (expand_end_case_type): Renamed from expand_end_case, use orig_type
2774 if non-NULL instead of TREE_TYPE (orig_index).
2775 * tree.h (expand_end_case_type): Renamed from expand_end_case.
2776 (expand_end_case): Define using expand_end_case_type.
2777 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
2778 to expand_end_case_type.
2779 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
2781 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2783 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
2784 (BIGGEST_ALIGNMENT): Change to 128.
2786 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2788 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
2790 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2792 * pa.md (call_internal_reg_64bit): Remove unused variable.
2794 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
2796 * config/arm/arm.h (machine_function): Add uses_anonymous_args
2798 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
2799 * config/arm/arm.c (current_function_anonymous_args): Delete,
2800 replace uses with cfun->machine->uses_anonymous_args.
2801 (arm_reorg): Do not reset uses_anonymous_args.
2803 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
2804 any geenral register.
2806 2001-02-04 Bernd Schmidt <bernds@redhat.com>
2808 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
2811 2002-02-04 Richard Henderson <rth@redhat.com>
2813 * combine.c (force_to_mode): Remove STACK_BIAS code.
2814 (nonzero_bits): Likewise. Replace sp/fp special case with
2815 REGNO_POINTER_ALIGN.
2817 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
2818 (HARD_FRAME_POINTER_REGNUM): New.
2819 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
2820 (FIXED_REGS, CALL_USED_REGS): Update.
2821 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
2822 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
2823 (HARD_REGNO_NREGS): Update for SFP.
2824 (STACK_POINTER_OFFSET): Include bias here ...
2825 (FIRST_PARM_OFFSET): ... not here.
2826 (STACK_BIAS): Remove.
2827 (INIT_EXPANDERS): New.
2828 (STARTING_FRAME_OFFSET): Do not include bias.
2829 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
2830 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
2831 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
2832 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
2833 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
2834 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
2835 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
2836 (MUST_SAVE_REGISTER): Likewise.
2837 (sparc_flat_function_prologue): Likewise.
2838 (sparc_flat_function_epilogue): Likewise.
2839 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
2840 (sparc_init_modes): SFP is GENERAL_REGS.
2841 (sparc_builtin_saveregs): SFP does not have bias applied.
2843 2002-02-04 Richard Henderson <rth@redhat.com>
2845 * config/alpha/alpha.c (current_function_is_thunk): Don't check
2846 current_function_is_thunk.
2847 (alpha_sa_mask): Distinguish between current_function_is_thunk
2848 called from ASM_OUTPUT_MI_THUNK and not.
2849 (alpha_does_function_need_gp): Thunks always need gp.
2850 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
2851 (alpha_output_mi_thunk_osf): New.
2852 * config/alpha/alpha-protos.h: Update.
2853 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
2855 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
2857 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
2858 function types, not when they're taken away.
2860 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
2862 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
2863 CODE_LABEL and jump table when replacing a table jump with a
2866 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2868 * config/s390/s390-protos.h (legitimize_la_operand,
2869 s390_secondary_input_reload_class, s390_plus_operand,
2870 s390_expand_plus_operand): Add prototypes.
2872 config/s390/s390.c (s390_secondary_input_reload_class,
2873 s390_plus_operand, s390_expand_plus_operand): New functions.
2875 (struct s390_address): New member 'pointer'.
2876 (s390_decompose_address): Compute it.
2877 (legitimate_la_operand_p): Use it.
2878 (legitimize_la_operand): New function.
2879 (movti, movdi, movdf splitters): Call it.
2881 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
2882 (PREDICATE_CODES): Add s390_plus_operand.
2884 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
2885 (la_ccclobber): Allow GENERAL_REGS as output operand.
2887 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
2888 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
2889 (*la_64, *la_31, reload_indi, reload_insi): ... these.
2891 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2893 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
2894 register names for regular asm () construct.
2896 2002-02-04 Jakub Jelinek <jakub@redhat.com>
2898 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
2901 2002-02-04 Jakub Jelinek <jakub@redhat.com>
2903 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
2906 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
2908 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
2909 constant pool to be identical by string address and index.
2911 2002-02-04 Anthony Green <green@redhat.com>
2913 * output.h (SECTION_OVERRIDE): Define.
2914 * varasm.c (named_section): Obey SECTION_OVERRIDE.
2916 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
2918 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
2919 by existing arm*-*-netbsd* (a.out) target.
2920 (ns32k-*-netbsdelf*): Likewise.
2921 (sparc-*-netbsdelf*): Likewise.
2922 (vax-*-netbsdelf*): Likewise.
2924 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
2926 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
2927 headers and libobjc headers.
2929 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
2931 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
2932 (_mingw.h): Remove duplicate include.
2934 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
2936 * config.gcc: Set cpu_type to m68k for 68010, as well.
2937 (m68010-*-netbsdelf*): New...
2938 (m68k*-*-netbsdelf*): ...targets.
2939 * config/m68k/netbsd-elf.h: New file.
2941 2002-02-02 Kazu Hirata <kazu@hxi.com>
2943 * config/h8300/h8300.c (hand_list): Move inside function_arg.
2945 2002-02-02 Kazu Hirata <kazu@hxi.com>
2947 * config/h8300/h8300.c (h8_push_ops): Move inside
2949 (h8_pop_ops): Likewise.
2950 (h8_move_ops): Likewise.
2952 2002-02-02 Kazu Hirata <kazu@hxi.com>
2954 * config/h8300/h8300.c (os_task): Make it static.
2955 (monitor): Likewise.
2956 (pragma_saveall): Likewise.
2958 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
2960 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
2961 constant is a valid sign-extension for Pmode.
2963 2002-02-02 Kazu Hirata <kazu@hxi.com>
2965 * config/h8300/h8300.c: Fix formatting.
2967 2002-02-02 Kazu Hirata <kazu@hxi.com>
2969 * config/h8300/h8300.md: Fix formatting.
2971 2002-02-02 Kazu Hirata <kazu@hxi.com>
2973 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
2974 predicates of operands[1]. Split the patterns for each
2977 2002-02-02 Kazu Hirata <kazu@hxi.com>
2979 * config/h8300/h8300.md (xor patterns): Tighten the predicates
2980 of operands[1] to register_operand.
2982 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
2984 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
2985 * cpphash.c (_cpp_init_hashtable): Similarly.
2986 * cppinit.c (cpp_create_reader): Default the signed_char flag.
2987 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
2988 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
2989 (cpp_handle_option): Handle the new options.
2990 * cpplex.c (cpp_interpret_charconst): Use new flag.
2991 * cpplib.h (struct cpp_options): New member signed_char.
2992 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
2993 (cpp_options): Handle -fsigned-char and -funsigned-char.
2994 (static_specs): Remove signed_char_spec.
2995 (do_spec1): Don't handle %c.
2996 * system.h: Poison SIGNED_CHAR_SPEC.
2997 * tradcif.y (yylex): Use flag_signed_char.
2998 * tradcpp.h (flag_signed_char): New.
2999 * tradcpp.c (flag_signed_char): New.
3000 (main): Handle new command-line options.
3001 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
3003 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
3004 * avr/avr.h: Remove old comments.
3005 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
3006 (CC1_SPEC): Pass -fsigned-char if -mic*.
3007 (SIGNED_CHAR_SPEC): Remove.
3009 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
3011 2002-02-01 Eric Christopher <echristo@redhat.com>
3013 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
3014 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
3015 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
3016 (ASM_OUTPUT_REG_POP): Ditto.
3018 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
3020 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
3023 2002-02-02 Jakub Jelinek <jakub@redhat.com>
3025 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
3027 2002-02-02 Jakub Jelinek <jakub@redhat.com>
3030 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
3033 2002-02-01 Janis Johnson <janis187@us.ibm.com>
3035 * cfganal.c: Include tm_p.h.
3036 (keep_with_call_p): Fix the test that determines if a register holds
3037 the return value of a call.
3039 2002-02-01 DJ Delorie <dj@redhat.com>
3041 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
3042 we are given conflicting registers, switch to the other one we
3043 had allocated for us.
3044 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
3045 as TImode so we know when the "other" register is available.
3047 2002-02-01 David O'Brien <obrien@FreeBSD.org>
3049 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
3052 2002-02-01 Janis Johnson <janis187@us.ibm.com>
3054 * cfganal.c (keep_with_call_p): New function.
3055 (flow_call_edges_add): Prevent splitting a block between a call and
3056 a single-set instruction that should be kept in the same block.
3058 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
3060 * doc/install.texi (avr): Update outdated URL.
3062 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
3064 * config/stormy16/stormy16.md (pushqi): New.
3068 (movhi): Remove stack operands.
3070 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
3071 nonimmediate_nonstack_operand.
3072 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
3074 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
3077 2002-01-31 Jason Merrill <jason@redhat.com>
3079 * Makefile.in (c-parse.c): Handle .output file.
3080 * objc/Make-lang.in (objc-parse.c): Likewise.
3082 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
3084 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
3085 the -me[lb] option is given. Don't output the default flag
3088 2002-01-31 Zack Weinberg <zack@codesourcery.com>
3090 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
3091 the primary source file; this has not been done yet.
3092 * c-decl.c (c_expand_body): Reset input_filename from
3093 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
3095 2002-01-31 Kazu Hirata <kazu@hxi.com>
3097 * rtlanal.c (subreg_regno_offset): Do not use
3098 SUBREG_REGNO_OFFSET.
3099 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
3100 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
3102 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
3104 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
3105 version rather than GNATS version in --version output.
3107 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
3109 * ifcvt.c (noce_process_if_block): Make a copy of the destination
3110 when copying back from a temporary.
3112 2002-01-30 Richard Henderson <rth@redhat.com>
3114 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
3115 and new_dest are the same.
3117 2002-01-30 Richard Henderson <rth@redhat.com>
3120 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
3121 * rtl.c (note_insn_name): Update.
3122 * emit-rtl.c (remove_unnecessary_notes): Kill it.
3123 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
3124 to perform loop rotation.
3125 (expand_exit_loop_top_cond): New.
3126 * tree.h (expand_exit_loop_top_cond): Declare it.
3127 * c-semantics.c (genrtl_while_stmt): Use it.
3128 (genrtl_for_stmt): Likewise.
3130 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
3132 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
3133 arguments to 64-bit boundaries on 64-bit ABIs.
3135 2002-01-30 Steve Ellcey <sje@cup.hp.com>
3137 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
3139 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
3141 * c-decl.c (grokdeclarator): Handle type being a typedef for an
3144 2002-01-30 David O'Brien <obrien@FreeBSD.org>
3146 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
3147 * config/sparc/sparc_bi.h: Remove file.
3148 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
3150 2002-01-30 Richard Henderson <rth@redhat.com>
3152 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
3154 2002-01-30 Zack Weinberg <zack@codesourcery.com>
3156 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
3158 2002-01-30 Jason Merrill <jason@redhat.com>
3160 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
3161 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
3162 (reg_save): Use DW_CFA_offset_extended_sf instead.
3164 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
3166 2002-01-29 Jakub Jelinek <jakub@redhat.com>
3168 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
3171 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
3173 * rs6000.md ("*call_value_local32"): Remove constraints.
3174 ("*call_value_local64"): Same.
3175 ("*call_value_indirect_nonlocal_aix32"): Same.
3176 ("*call_value_nonlocal_aix32"): Same.
3177 ("*call_value_indirect_nonlocal_aix64"): Same.
3178 ("*call_value_nonlocal_aix64"): Same.
3179 ("*call_value_nonlocal_sysv"): Same.
3181 2002-01-29 Richard Henderson <rth@redhat.com>
3183 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
3185 2002-01-29 Richard Henderson <rth@redhat.com>
3187 * expr.c (force_operand): Ignore flag_pic for detecting pic
3189 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
3190 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
3191 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
3192 instead of open-coded loop.
3193 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
3194 be fixed when in use.
3196 2002-01-29 Richard Henderson <rth@redhat.com>
3198 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
3199 * sched-rgn.c (propagate_deps): Update them.
3200 * sched-deps.c (sched_analyze_insn): Update them. Flush the
3201 clobbers list when either gets too long.
3203 2002-01-29 Jakub Jelinek <jakub@redhat.com>
3205 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
3206 and INDEX_REGS the same as GENERAL_REGS.
3207 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
3209 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
3211 * tree.c (build_nonstandard_integer_type): Correct prototype.
3213 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
3215 * config/s390/s390.md (movstrsico, movstrdix_64,
3216 movstrsix_31): Remove, replace by ...
3217 (movstrdi_short, movstrsi_short, movstrdi_long,
3218 movstrsi_long): ... these. New.
3219 (movstrdi, movstrsi): Adapt.
3221 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
3222 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
3223 Remove unnecessary CC clobber.
3224 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
3225 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
3227 (divmoddi4): Don't partially initialize TImode register.
3229 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
3231 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
3233 2002-01-29 Richard Henderson <rth@redhat.com>
3235 * flow.c (print_rtl_and_abort): Remove.
3236 (print_rtl_and_abort_fcn): Remove.
3237 (verify_local_live_at_start): Use dump_bb instead.
3238 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
3239 (verify_wide_reg_1): Return 2 on mode test failure.
3241 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
3243 PR c/3325, c/3326, c/2511, c/3347
3244 * c-decl.c (enum_decl_context): Remove BITFIELD.
3245 (grokdeclarator): Take bitfield width as an input.
3246 Ensure bitfields are given the correct type. Perform
3247 bitfield width validation with build_bitfield_integer_type
3248 rather than waiting for finish_struct.
3249 (grok_typename, grok_typename_in_parm_context, start_decl,
3250 push_parmdecl, grokfield, start_function): Update calls to
3252 (build_bitfield_integer_type): New function.
3253 (finish_struct): Move bitfield validation to grokdeclarator
3254 and build_bitfield_integer_type.
3255 * tree.c (build_nonstandard_integer_type): New function.
3256 * tree.h (build_nonstandard_integer_type): New prototype.
3258 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
3260 2002-01-29 Jakub Jelinek <jakub@redhat.com>
3263 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
3264 don't ignore unrecognized -W* options.
3265 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
3266 * cpplib.h (cpp_handle_option): Adjust prototype.
3267 * c-decl.c (c_decode_options): Pass 0 as last argument to
3271 * gcc.c (cpp_unique_options): Split from cpp_options.
3272 (cpp_options): Source cpp_unique_options.
3273 (default_compilers): Use cpp_unique_options instead of cpp_options
3274 when used together with cc1_options.
3275 (static_specs): Add cpp_unique_options.
3276 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
3277 when used together with cc1_options.
3279 2002-01-29 Kazu Hirata <kazu@hxi.com>
3281 * config/h8300/h8300-protos.h: Update the prototype of
3283 * config/h8300/h8300.c (output_a_shift): Remove an unused
3284 argument 'insn'. Remove redundant code.
3285 * config/h8300/h8300.md: Adust to the new prototype of
3288 2002-01-29 Kazu Hirata <kazu@hxi.com>
3290 * config/h8300/h8300-protos.h: Update the prototypes of
3291 emit_a_rotate and expand_a_rotate.
3292 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
3293 first argument to 'enum rtx_code'.
3294 (expand_a_rotate): Likewise.
3296 2002-01-28 Kazu Hirata <kazu@hxi.com>
3298 * config/h8300/h8300-protos.h: Update the prototype of
3300 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
3302 * config/h8300/h8300.md: Adjust to the new prototype.
3304 2002-01-28 Kazu Hirata <kazu@hxi.com>
3306 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
3309 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
3311 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
3312 is a fixed register before returning pic_offset_table_rtx.
3313 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
3314 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
3316 2002-01-28 Jason Merrill <jason@redhat.com>
3318 * dwarf2.h: Sync with src version.
3320 2002-01-28 Paul Koning <pkoning@equallogic.com>
3322 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
3324 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
3325 * doc/extend.texi (__builtin_prefetch): Update documentation:
3326 first argument is now const void ptr.
3328 2002-01-28 Kazu Hirata <kazu@hxi.com>
3330 * config/h8300/h8300-protos.h: Remove an unused prototype.
3332 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
3334 * toplev.c (lang_independent_init): Round up identifier size.
3336 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
3338 * config.gcc: Revert previous change.
3340 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
3342 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
3344 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
3346 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
3347 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
3348 other non-elf netbsd config frags.
3349 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
3350 collect2 will does that.
3351 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
3352 shared-lib frobbing will work.
3354 2002-01-28 Kazu Hirata <kazu@hxi.com>
3356 * config/h8300/h8300.h: Fix formatting.
3357 * config/h8300/h8300.md: Likewise.
3359 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
3361 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
3362 the old, removed AAA_standards fix.
3363 * fixinc/fixincl.x: Rebuilt.
3365 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
3367 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
3368 atexit call in crtbegin, hooked in after call to frame_dummy;
3369 register EH before registering __fini__start.
3371 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
3373 * config/rs6000/altivec.h: Remove spurious semicolons.
3375 2002-01-27 Kazu Hirata <kazu@hxi.com>
3377 * config/h8300/h8300.md: Replace dead bit extraction patterns
3378 with ones that work.
3380 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3382 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
3383 if not STRICT_ALIGNMENT.
3384 * rtl.h (MEM_ALIGN): Likewise.
3386 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
3388 * doc/invoke.texi (-fdump-translation-unit): Revert this
3389 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
3391 2002-01-27 Kazu Hirata <kazu@hxi.com>
3393 * config/h8300/h8300.md (define_constants): New.
3394 (anonymous patterns) Use defined constants appropriately.
3396 2002-01-27 Kazu Hirata <kazu@hxi.com>
3398 * config/h8300/h8300.c (function_arg): Remove redundant code.
3400 2002-01-26 Richard Henderson <rth@redhat.com>
3402 * sched-deps.c (reg_pending_uses_head): New.
3403 (reg_pending_barrier): Rename from reg_pending_sets_all.
3404 (find_insn_list): Don't mark inline.
3405 (find_insn_mem_list): Remove.
3406 (add_dependence_list, add_dependence_list_and_free): New.
3407 (flush_pending_lists): Replace only_write param with separate
3408 for_read and for_write parameters. Update all callers. Use
3409 add_dependence_list_and_free.
3410 (sched_analyze_1): Do not add reg dependencies here; just set
3411 the pending bits. Use add_dependence_list.
3412 (sched_analyze_2): Likewise.
3413 (sched_analyze_insn): Replace schedule_barrier_found with
3414 reg_pending_barrier. Add all dependencies for pending reg
3415 uses, sets, and clobbers.
3416 (sched_analyze): Don't add reg dependencies for calls, just
3417 set pending bits. Use regs_invalidated_by_call. Treat
3418 sched_before_next_call as a normal list, not a fake insn.
3419 (init_deps): No funny init for sched_before_next_call.
3420 (free_deps): Free pending mems lists. Don't zero reg_last.
3421 (init_deps_global): Init reg_pending_uses.
3422 (finish_deps_global): Free it.
3423 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
3424 (find_insn_mem_list): Remove.
3425 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
3426 (propagate_deps): Use them. Zero temp mem lists.
3428 2002-01-26 Richard Henderson <rth@redhat.com>
3430 * Makefile.in (CRTSTUFF_CFLAGS): New.
3431 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
3432 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
3433 crtstuff.c instead of alpha assembly version.
3434 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
3435 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
3436 not FORCE_{INIT,FINI}_SECTION_ALIGN.
3437 (__do_global_dtors_aux): Mark used.
3438 (frame_dummy, __do_global_ctors_aux): Mark used.
3439 (fini_dummy, init_dummy): Remove.
3441 * config/alpha/crtbegin.asm: Remove file.
3442 * config/alpha/crtend.asm: Remove file.
3443 * config/alpha/t-crtbe: Remove file.
3444 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
3445 (LINK_EH_SPEC): New.
3447 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
3448 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
3449 calling constructors.
3450 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
3452 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
3453 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
3454 CRT_END_INIT_DUMMY hack.
3455 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
3456 FORCE_{INIT,FINI}_SECTION_ALIGN.
3458 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
3459 FORCE_{INIT,FINI}_SECTION_ALIGN.
3461 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
3462 invocation sequence.
3463 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
3465 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
3466 (FORCE_CODE_SECTION_ALIGN): New.
3468 2002-01-26 Richard Henderson <rth@redhat.com>
3470 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
3472 2002-01-26 Richard Henderson <rth@redhat.com>
3474 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
3475 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
3477 2002-01-26 Kazu Hirata <kazu@hxi.com>
3479 * config/h8300/h8300.md: Remove bit extraction patterns that
3480 cannot be triggered.
3481 Restrict each bit extraction pattern to a variant on which the
3484 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
3486 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
3488 2002-01-26 Kazu Hirata <kazu@hxi.com>
3490 * config/h8300/h8300.md: Remove bit test patterns that cannot
3492 Restrict each bit test pattern to a variant on which the
3495 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3497 * builtins.c (expand_builtin_strncat): Remove redundant check for
3500 2002-01-25 David O'Brien <obrien@FreeBSD.org>
3502 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
3504 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
3507 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
3509 * dbxout.c (dbxout_init): Use assemble_name rather than just
3510 stripping off the first character.
3511 (dbxout_source_file): Likewise.
3513 2002-01-25 DJ Delorie <dj@redhat.com>
3515 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
3516 using rtx_equal_p, not by comparing pointers.
3518 2002-01-25 Steve Ellcey <sje@cup.hp.com>
3520 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
3521 for PIC_OFFSET_TABLE_REGNUM.
3522 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
3524 2002-01-25 David O'Brien <obrien@FreeBSD.org>
3526 * config.gcc (x86_64-*-freebsd*): New target.
3527 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
3529 (i[34567]86-*-freebsd*): Don't include svr4.h.
3530 * config/i386/freebsd64.h: New file.
3532 2002-01-25 Douglas B Rupp <rupp@gnat.com>
3534 * config/alpha/x-vms (version): Make static.
3536 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
3537 in previous checkin.
3539 * Makefile.in (install-headers-cp): New target.
3540 * config.gcc (alpha-dec-*vms*): Install headers with
3543 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
3545 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
3548 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3550 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
3551 of compare_tree_int.
3552 (expand_builtin_strncat): Likewise.
3553 * c-decl.c (finish_struct): Use tree_low_cst.
3554 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
3555 * tree.c (compare_tree_int): Likewise.
3557 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
3559 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
3560 adjustments even if they are implemented by more than two insns.
3562 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
3564 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
3565 * df.h (struct ref): Kill B.
3566 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
3568 * basic-block.h (PROP_EQUAL_NOTES): New flag.
3569 * flow.c (propagate_one_insn): Use it.
3570 (mark_used_regs): Handle NIL.
3572 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
3574 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
3577 2002-01-25 David Edelsohn <edelsohn@gnu.org>
3579 * rs6000.md (prefetch): Make address V4SI mode so that the address
3580 is restricted to legitimate form for instruction.
3582 2002-01-25 Bob Wilson <bob.wilson@acm.org>
3584 * doc/install.texi (xtensa-*-elf): New target.
3585 (xtensa-*-linux*): New target.
3586 * doc/contrib.texi: Add myself.
3588 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
3590 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
3591 purpose register to hold an SImode (or smaller) value.
3593 2002-01-25 Jakub Jelinek <jakub@redhat.com>
3595 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
3597 * crtstuff.c: Likewise.
3599 2002-01-25 Kazu Hirata <kazu@hxi.com>
3601 * config/h8300/h8300.md (negation patterns): Tighten
3602 predicates to register_operand.
3604 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
3606 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
3609 * builtins.c (expand_builtin_prefetch): Same.
3611 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3613 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
3616 2002-01-24 Kazu Hirata <kazu@hxi.com>
3618 * config/h8300/h8300.c (print_operand): Remove support for
3619 operand character 'A'.
3620 * config/h8300/h8300.md (three anonymous patterns): Replace
3621 operand character 'A' with either 'T' or 'S'.
3623 2002-01-24 Kazu Hirata <kazu@hxi.com>
3625 * config/h8300/h8300.c (print_operand): Remove support for
3626 operand character 'U'.
3628 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
3630 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
3632 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
3634 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
3635 values to be assigned to the stack pointer.
3637 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
3639 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
3640 to const_double needs to be done right for big-endian systems.
3642 2002-01-24 Jason Merrill <jason@redhat.com>
3645 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
3646 to can_throw_internal.
3648 2002-01-23 Richard Henderson <rth@redhat.com>
3650 * fold-const.c (fold): Change UINT_MAX test to check vs precision
3651 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
3653 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3655 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
3656 (symGOT2reg): Use them, then set as GOT value as unchanging.
3657 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
3658 as a temporary, if possible.
3659 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
3660 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
3662 2002-01-23 Kazu Hirata <kazu@hxi.com>
3664 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
3665 accept to accept 0x80 as operands[2].
3667 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3669 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
3671 2002-01-23 Richard Henderson <rth@redhat.com>
3673 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
3675 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
3677 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
3678 (parmlist_or_identifiers_1): Verify that only a parmlist follows
3681 2002-01-23 Richard Henderson <rth@redhat.com>
3683 * expr.c (move_by_pieces_1): Extend size before negation.
3685 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
3686 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
3687 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
3688 * config/m68k/t-m68kelf: Likewise.
3690 2002-01-23 Bob Wilson <bob.wilson@acm.org>
3692 * config/xtensa/elf.h: New file.
3693 * config/xtensa/lib1funcs.asm: New file.
3694 * config/xtensa/lib2funcs.S: New file.
3695 * config/xtensa/linux.h: New file.
3696 * config/xtensa/t-xtensa: New file.
3697 * config/xtensa/xtensa-config.h: New file.
3698 * config/xtensa/xtensa-protos.h: New file.
3699 * config/xtensa/xtensa.c: New file.
3700 * config/xtensa/xtensa.h: New file.
3701 * config/xtensa/xtensa.md: New file.
3702 * config.gcc (xtensa-*-elf*): New target.
3703 (xtensa-*-linux*): New target.
3704 * cse.c (canon_hash): Compare rtx pointers instead of register
3705 numbers. This is required for the Xtensa port.
3706 * integrate.c (copy_insn_list): Handle case where the static
3707 chain is in memory and the memory address has to be copied to
3709 * doc/invoke.texi (Option Summary): Add Xtensa options.
3710 (Xtensa Options): New node.
3711 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
3713 2002-01-23 Zack Weinberg <zack@codesourcery.com>
3715 * diagnostic.c (internal_error): Do ICE suppression only
3716 when ENABLE_CHECKING is not defined.
3718 * c-typeck.c (require_complete_type): Return error_mark_node
3719 if type is error_mark_node.
3721 2002-01-23 Janis Johnson <janis187@us.ibm.com>
3723 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
3724 -Os and issue a warning.
3726 2002-01-23 Zack Weinberg <zack@codesourcery.com>
3728 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
3729 current (lack of) need for host configuration by hand.
3731 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
3732 references. Documentation of some target macros moved from
3733 hostconfig.texi to tm.texi.
3735 2002-01-23 Will Cohen <wcohen@redhat.com>
3737 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
3740 2002-01-23 Kazu Hirata <kazu@hxi.com>
3742 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
3745 2002-01-23 Jason Merrill <jason@redhat.com>
3747 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
3749 * function.c (assign_parms): Don't put args of inline functions
3750 into registers when not optimizing.
3752 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
3754 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
3755 (prologue_use): New pattern.
3756 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
3757 preference to gen_rtx_USE.
3758 (thumb_expand_prologue): Use gen_prologue_use in preference to
3760 (thumb_expand_epilogue): Use gen_prologue_use in preference to
3763 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
3765 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
3767 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
3770 * doc/extend.texi: Correct documentation of __alignof__.
3772 2002-01-22 Zack Weinberg <zack@codesourcery.com>
3774 * params.h: Rename arguments of DEFPARAM so that it will be
3775 recognized as a translation keyword.
3777 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
3779 * extend.texi: Document altivec functions.
3780 Fix N-bit adjectives in X86 builtin documentation.
3782 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
3784 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
3785 auto_inc_dec values.
3787 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
3789 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
3791 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
3793 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
3795 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
3797 2002-01-22 Richard Henderson <rth@redhat.com>
3799 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
3800 copy_insn not copy_rtx.
3802 2002-01-23 Alan Modra <amodra@bigpond.net.au>
3804 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
3805 "nonzero" as that might add "1" bits. Ensure "constop" is
3806 properly sign extened.
3807 (force_to_mode): Tweak for sign extended constop.
3809 2002-01-22 Richard Henderson <rth@redhat.com>
3811 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
3812 for_each_rtx instead of assuming we're already looking at the MEM.
3813 (split_small_symbolic_mem_operand): Likewise.
3814 * config/alpha/alpha.h (PREDICATE_CODES): Update.
3815 * config/alpha/alpha.md (small symbolic memory splitters): Update.
3817 2002-01-22 Richard Henderson <rth@redhat.com>
3819 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
3820 sequence number for the literal.
3821 (divmoddi_internal_er): Likewise.
3823 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
3826 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
3827 in LIBICONV variable.
3828 * configure: Regenerated.
3830 2002-01-22 Krister Walfridsson <cato@df.lth.se>
3832 * dependence.c (build_def_use): Remove array_idx.
3834 * dwarfout.c (last_filename): Remove.
3835 (output_compile_unit_die): Remove last_filename.
3837 2002-01-22 Roger Sayle <roger@eyesopen.com>
3838 Richard Henderson <rth@redhat.com>
3841 * fold-const.c (fold): Optimize unsigned comparisons against
3842 UINT_MAX (and similar unsigned constants).
3844 2002-01-22 Janis Johnson <janis187@us.ibm.com>
3846 * Makefile.in (loop.o): Depend on OPTABS_H.
3847 * loop.c (emit_prefetch_instructions): Check the prefetch operand
3848 against the predicate.
3851 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
3852 for the address operand.
3854 2002-01-22 Richard Henderson <rth@redhat.com>
3856 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
3858 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
3861 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
3864 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
3866 * config.gcc (x86_64-*-netbsd*): New target.
3867 * config/i386/netbsd64.h: New file.
3869 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
3871 * regrename.c (kill_value): Fix typo.
3873 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
3875 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
3877 * config/rs6000/rs6000.h: Same.
3879 * function.c (instantiate_virtual_regs): Remove
3880 STARTING_FRAME_PHASE.
3881 (assign_stack_local_1): Same.
3882 Calculate frame phase.
3884 2002-01-22 Nick Clifton <nickc@redhat.com>
3886 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
3887 variable declaration to outer scope in order to simplify
3889 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
3890 arm_hard_regno_mode_ok.
3891 * config/arm/arm-protos.h: Add a prototype for
3892 arm_hard_regno_mode_ok.
3893 * config/arm/arm.c (soft_df_operand): Remove now redundant
3894 check for DImode values using IP_REGNUM.
3895 (nonimmediate_soft_df_operand): Remove now redundant check for
3896 DImode values using IP_REGNUM.
3897 (arm_hard_regno_mode_ok): New function. New check: make sure
3898 that DImode values are not stored in IP_REGNUM.
3900 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
3902 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
3904 2002-01-22 Jason Merrill <jason@redhat.com>
3906 * c-semantics.c (genrtl_compound_stmt): Only check nesting
3907 consistency if this COMPOUND_STMT is scoped.
3909 2002-01-22 Kazu Hirata <kazu@hxi.com>
3911 * predict.c: Fix formatting.
3912 * print-tree.c: Likewise.
3913 * protoize.c: Likewise.
3916 * sbitmap.h: Likewise.
3918 * sched-deps.c: Likewise.
3919 * sched-vis.c: Likewise.
3920 * sdbout.c: Likewise.
3921 * sibcall.c: Likewise.
3923 * ssa-ccp.c: Likewise.
3924 * ssa-dce.c: Likewise.
3926 * stor-layout.c: Likewise.
3927 * system.h: Likewise.
3929 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3931 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
3932 if fits in bounds of base type.
3934 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
3935 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
3936 (add_bound_info, default): If can't find a context, make a
3938 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
3940 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
3942 * c-typeck.c (parser_build_binary_op): If result from
3943 build_binary_op is ERROR_MARK just return error_mark_node without
3946 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
3948 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
3949 Split a.out-specific bits into...
3950 * config/netbsd-aout.h: ...this.
3951 * config/netbsd-elf.h: New file.
3952 * config/alpha/netbsd-elf.h: Remove.
3953 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
3954 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
3955 (STARTFILE_SPEC): Remove redundant definition.
3956 (ENDFILE_SPEC): Likewise.
3957 (LINK_SPEC): Likewise.
3958 (CPP_SPEC): Likewise.
3959 (ASM_SPEC): Likewise.
3960 (LIB_SPEC): Likewise.
3961 (SWITCH_TAKES_ARG): Likewise.
3962 (TARGET_MEM_FUNCTIONS): Likewise.
3963 (CPP_PREDEFINES): Redefine.
3964 (ASM_FINAL_SPEC): Remove redefinition.
3965 (ASM_COMMENT_START): Redefine.
3966 (FUNCTION_PROFILER): Define.
3967 (TARGET_VERSION): Redefine.
3968 Comment and formatting cleanup.
3969 * config/i386/netbsd.h: Include <netbsd-aout.h>.
3970 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
3971 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
3972 big- or little-endian.
3973 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
3974 * config.gcc (*-*-netbsd*): Add definitions common to all
3976 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
3977 gnu_ld definitions. Add netbsd-elf.h to and remove
3978 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
3979 tmake_file, and don't lose previous tmake_file contents.
3980 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
3981 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
3982 gnu_ld definitions. Add netbsd-elf.h to tm_file.
3983 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
3984 (mipsel-*-netbsd*): Rename this to...
3985 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
3986 mips/little.h to tm_file for mips*el-*.
3987 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
3988 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
3989 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
3991 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
3993 * pa-protos.h (reg_before_reload_operand): New function prototype.
3994 * pa.c (reg_before_reload_operand): New function implementation.
3995 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
3998 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4000 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
4002 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
4004 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
4005 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
4006 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
4007 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
4008 (ENDFILE_SPEC): Undefine.
4009 (STARTFILE_SPEC): Redefine for PA.
4011 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4013 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
4015 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
4017 * config.gcc: Add entries to supported PowerPC --with-cpu
4020 2002-01-21 Jakub Jelinek <jakub@redhat.com>
4022 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
4023 true for 64-bit mode only SSE registers in 32-bit mode.
4025 2002-01-21 Kazu Hirata <kazu@hxi.com>
4027 * unwind-dw2.c: Fix formatting.
4028 * unwind-dw2-fde.c: Likewise.
4029 * unwind-dw2-fde.h: Likewise.
4030 * unwind-pe.h: Likewise.
4031 * varasm.c: Likewise.
4032 * varray.h: Likewise.
4034 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
4036 Remove workaround for register stack overwrite bug in mmix.
4037 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
4038 support for TARGET_REG_STACK_FILL_BUG.
4039 * config/mmix/mmix.h: Remove member has_call_without_parameters.
4040 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
4042 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
4043 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
4044 -mno-reg-stack-fill-bug-workaround.
4045 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
4046 machine member has_call_without_parameters.
4047 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
4048 -mreg-stack-fill-bug-workaround and
4049 -mno-reg-stack-fill-bug-workaround.
4050 (MMIX Options): Ditto.
4052 2002-01-21 Kazu Hirata <kazu@hxi.com>
4054 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
4056 Remove redundant code.
4058 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
4060 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
4061 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
4062 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
4063 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
4064 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
4065 out target macro definitions and non-target-specific comments
4066 mostly taken from old versions of the manual.
4068 2002-01-20 Kazu Hirata <kazu@hxi.com>
4070 * config/h8300/h8300.h: Fix comment formatting.
4071 * config/ia64/aix.h: Likewise.
4072 * config/ia64/ia64-protos.h: Likewise.
4073 * config/ia64/ia64.c: Likewise.
4074 * config/ia64/ia64.h: Likewise.
4075 * config/ia64/ia64intrin.h: Likewise.
4076 * config/ia64/linux.h: Likewise.
4077 * config/ia64/unwind-aix.c: Likewise.
4078 * config/ia64/unwind-ia64.c: Likewise.
4080 2002-01-20 Kazu Hirata <kazu@hxi.com>
4082 * config/h8300/h8300.c: Revise comments about shift code.
4084 2002-01-20 Kazu Hirata <kazu@hxi.com>
4086 * config/h8300/h8300.c (function_arg): Update a comment.
4088 2002-01-20 Kazu Hirata <kazu@hxi.com>
4090 * config/h8300/h8300.md: Update the comments at the beginning
4093 2002-01-20 Kazu Hirata <kazu@hxi.com>
4095 * config/i370/i370.c: Fix comment formatting.
4096 * config/i370/i370.h: Likewise.
4097 * config/i370/i370.md: Likewise.
4098 * config/i370/linux.h: Likewise.
4100 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4102 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
4104 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
4105 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
4108 2002-01-20 Graham Stott <grahams@redhat.com>
4110 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
4112 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
4114 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
4116 2002-01-19 Tom Rix <trix@redhat.com>
4118 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
4120 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
4122 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
4124 * function.c (assign_stack_local_1): Adjust x_frame_offset with
4125 STARTING_FRAME_PHASE.
4126 (STARTING_FRAME_PHASE): New.
4127 (instantiate_virtual_regs): Check saneness of
4128 STARTING_FRAME_PHASE.
4130 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
4132 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
4134 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
4136 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
4138 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
4139 be used for bootstrapping GCC 3.0.
4141 2002-01-18 Kazu Hirata <kazu@hxi.com>
4143 * config/h8300/h8300.md: Fix an insn length.
4145 2002-01-18 Kazu Hirata <kazu@hxi.com>
4147 * bitmap.h: Fix comment formatting.
4148 * combine.c: Likewise.
4149 * cppfiles.c: Likewise.
4150 * c-pragma.h: Likewise.
4151 * c-typeck.c: Likewise.
4153 * dwarf2out.c: Likewise.
4154 * function.c: Likewise.
4156 * genattrtab.c: Likewise.
4157 * gthr-win32.h: Likewise.
4158 * haifa-sched.c: Likewise.
4159 * predict.c: Likewise.
4160 * rtlanal.c: Likewise.
4162 * unwind-dw2-fde.h: Likewise.
4163 * unwind-pe.h: Likewise.
4164 * vmsdbgout.c: Likewise.
4166 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4168 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
4169 if type_required and passed decl.
4171 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
4173 * config.gcc (cpu_type): Include altivec.h in powerpc
4177 * config/rs6000/altivec.h: New.
4179 2002-01-17 David Edelsohn <edelsohn@gnu.org>
4181 * doc/install.texi (*-ibm-aix*): Update assembler and exception
4182 handling information.
4183 * doc/trouble.texi (Interoperation): Add libstdc++ information
4185 (Misunderstandings): Add template instantiation and static template
4186 member information for AIX.
4188 2002-01-17 Jason Merrill <jason@redhat.com>
4190 * dbxout.c (dbxout_type): Support const and volatile.
4192 * except.c (add_partial_entry): Remove backwards compatibility code.
4193 (end_protect_partials): Likewise.
4195 2002-01-17 Jakub Jelinek <jakub@redhat.com>
4197 * config/ia64/ia64.md (prologue_use): New.
4198 * config/ia64/ia64.c (ia64_expand_prologue): Use
4199 gen_prologue_use instead of gen_rtx_USE.
4200 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
4201 as CODE_FOR_pred_rel_mutex.
4202 (ia64_sched_reorder2): Likewise.
4204 2002-01-16 Eric Christopher <echristo@redhat.com>
4206 * config/mips/r3900.h: Reformat.
4207 (SUBTARGET_CPP_SIZE_SPEC): Remove.
4208 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
4209 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
4210 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
4211 * config/mips/t-elf: Remove mips3 multilib.
4213 2002-01-16 H.J. Lu <hjl@gnu.org>
4215 * config/mips/linux.h: Include "mips/abi64.h".
4217 2002-01-16 H.J. Lu <hjl@gnu.org>
4219 * config/mips/t-linux: New.
4221 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
4223 * config/mips/linux.h: Don't include "gofast.h".
4224 (INIT_SUBTARGET_OPTABS): Removed.
4226 2002-01-16 Kazu Hirata <kazu@hxi.com>
4228 * config/h8300/h8300-protos.h: Replace emit_a_shift with
4230 * config/h8300/h8300.c: Likewise.
4231 * config/h8300/h8300.md: Likewise.
4233 2002-01-16 Kazu Hirata <kazu@hxi.com>
4235 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
4236 spaces after an opcode name.
4237 (pushqi1_h8300hs): Likewise.
4238 (pushhi1_h8300hs): Likewise.
4240 2002-01-16 Kazu Hirata <kazu@hxi.com>
4242 * doc/extend.texi: Replace "option" with "attribute"
4245 2002-01-16 Jakub Jelinek <jakub@redhat.com>
4247 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
4248 (and:DI () (const_int -8)).
4249 (split_small_symbolic_mem_operand): Split
4250 (mem (and:DI () (const_int -8)).
4252 2002-01-16 Jakub Jelinek <jakub@redhat.com>
4255 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
4256 same way as TYPE_IMUL.
4257 (ultrasparc_sched_reorder): Likewise.
4258 * config/sparc/sparc.md (type): Add comment to update
4259 ultrasparc_sched_reorder when making changes.
4261 2002-01-16 Kazu Hirata <kazu@hxi.com>
4263 * doc/invoke.texi: Change the dump file name of block
4264 reordering pass from 28.bbro to 29.bbro.
4267 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
4269 * i386.md (minsf splitter): Fix pasto.
4271 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
4273 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
4274 to frame pointer initialisation instruction.
4275 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
4276 initialisation instruction.
4277 (soft_df_operand): Do not accept the IP register.
4278 (nonimmediate_soft_df_operand): Do not accept the IP register.
4280 2002-01-16 Jakub Jelinek <jakub@redhat.com>
4283 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
4284 MASK_V8 being both set.
4286 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
4288 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
4289 insn for GOT register; add REG_MAYBE_DEAD notes instead.
4290 config/s390/s390.md (call, call_value): Add GOT register to
4291 CALL_INSN_FUNCTION_USAGE where needed.
4292 (call_exp, call_value_exp): New.
4294 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
4296 * config/arm/arm.c: General formatting tidy up.
4298 2002-01-16 Graham Stott <grahams@redhat.com>
4300 * calls.c (try_to_integrate): Use "(size_t)" intermediate
4301 cast and when casting an integer literal to "rtx" pointer.
4302 (expand_call): Likewise.
4303 * flow.c (try_pre_increment): Likewise.
4304 (find_use_as_address): Likewise.
4305 * integrate.c (expand_iline_function): Likewise.
4306 * regmove.c (try_auto_increment): Likewise.
4308 2002-01-16 Graham Stott <grahams@redhat.com>
4310 * sched-rgn.c (passed): Use sbitmap_free.
4313 (in_queue): Likewise.
4314 (in_stack): Likewise.
4316 2002-01-15 Eric Christopher <echristo@redhat.com>
4318 * flow.c (propagate_one_insn): Change to use fatal_insn.
4320 2002-01-15 Kazu Hirata <kazu@hxi.com>
4322 * expmed.c (extract_fixed_bit_field): Remove unused code.
4323 * system.h: Poison SLOW_ZERO_EXTEND.
4324 * doc/tm.texi: Remove.
4325 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
4326 * config/arm/arm.h: Likewise.
4327 * config/avr/avr.h: Likewise.
4328 * config/clipper/clipper.h: Likewise.
4329 * config/convex/convex.h: Likewise.
4330 * config/d30v/d30v.h: Likewise.
4331 * config/dsp16xx/dsp16xx.h: Likewise.
4332 * config/elxsi/elxsi.h: Likewise.
4333 * config/fr30/fr30.h: Likewise.
4334 * config/h8300/h8300.h: Likewise.
4335 * config/i370/i370.h: Likewise.
4336 * config/i386/i386.h: Likewise.
4337 * config/m68k/m68k.h: Likewise.
4338 * config/mips/mips.h: Likewise.
4339 * config/ns32k/ns32k.h: Likewise.
4340 * config/pdp11/pdp11.h: Likewise.
4341 * config/pj/pj.h: Likewise.
4342 * config/s390/s390.h: Likewise.
4343 * config/sh/sh.h: Likewise.
4344 * config/stormy16/stormy16.h: Likewise.
4345 * config/v850/v850.h: Likewise.
4346 * config/vax/vax.h: Likewise.
4347 * config/we32k/we32k.h: Likewise.
4349 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
4351 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
4352 (altivec_lvsl): Change constraint to b.
4353 (altivec_lvsr): Same.
4354 (altivec_lvebx): Same.
4355 (altivec_lvehx): Same.
4356 (altivec_lvewx): Same.
4357 (altivec_lvxl): Same.
4358 (altivec_lvx): Same.
4359 (altivec_stvx): Add parallel.
4360 (altivec_stvxl): Same.
4361 (altivec_stvehx): Same.
4362 (altivec_stvebx): Same.
4363 (altivec_stvebx): Same.
4365 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
4367 * config.gcc: Change altivec.h to altivec-defs.h.
4369 * config/rs6000/altivec.h: Delete.
4371 * config/rs6000/altivec-defs.h: Add.
4373 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
4375 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
4378 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
4379 less than or equal to eight bytes.
4381 * vax.md (andsi3): Remove constraints and change SET destination
4382 operand type to nonimmediate_operand.
4383 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
4384 when it is a CONST_INT.
4386 2002-01-15 Jason Merrill <jason@redhat.com>
4388 * c-common.def (FILE_STMT): New code.
4389 * c-common.c (statement_code_p): It's a statement.
4390 * c-common.h (stmt_tree_s): Add x_last_filename.
4391 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
4392 (last_expr_filename): New macro.
4393 * c-semantics.c (begin_stmt_tree): Initialize it.
4394 (add_stmt): If the filename changed, also insert a
4396 (expand_stmt): Handle seeing one.
4398 2002-01-15 Eric Christopher <echristo@redhat.com>
4400 * flow.c (propagate_one_insn): Add error message and print out
4403 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
4405 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
4406 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
4407 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
4408 TRAMPOLINE_ALIGNMENT.
4409 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
4411 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
4412 PCC_BITFIELD_TYPE_MATTERS.
4413 * config/interix.h (STDC_VALUE): Remove. Use
4414 STDC_0_IN_SYSTEM_HEADERS.
4415 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
4416 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
4417 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
4419 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
4421 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
4422 not work on this platform currently.
4424 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
4426 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
4427 readonly_warning in _().
4429 2002-01-15 Douglas B Rupp <rupp@gnat.com>
4431 * gcc.c (delete_if_ordinary): Backout previous change.
4433 2002-01-15 Kazu Hirata <kazu@hxi.com>
4435 * config/h8300/h8300.c (print_operand): Remove support for
4436 unused operand characters.
4438 * read-rtl.c: Fix formatting.
4440 * recog.c: Likewise.
4441 * regclass.c: Likewise.
4442 * regmove.c: Likewise.
4443 * reg-stack.c: Likewise.
4444 * reload1.c: Likewise.
4445 * rtlanal.c: Likewise.
4447 2002-01-15 Kazu Hirata <kazu@hxi.com>
4449 * config/i386/i386.c: Fix formatting.
4451 2002-01-15 Jakub Jelinek <jakub@redhat.com>
4453 * c-typeck.c (process_init_element): Don't save_expr
4454 COMPOUND_LITERAL_EXPR if just its initializer will be used.
4456 2002-01-15 David Edelsohn <edelsohn@gnu.org>
4458 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
4459 emit optional traceback table if optimize_size or TARGET_ELF.
4460 * config/rs6000/rs6000.md (prefetch): New.
4462 2002-01-15 Andreas Jaeger <aj@suse.de>
4464 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
4466 2002-01-15 Kazu Hirata <kazu@hxi.com>
4468 * mips-tfile.c: Fix formatting.
4470 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
4472 * unroll.c (final_reg_note_copy): Fix previous commit.
4474 2002-01-14 Kazu Hirata <kazu@hxi.com>
4476 * config/h8300/h8300-protos.h: Remove the prototype for
4478 * config/h8300/h8300.c (eq_operator): Remove.
4480 2002-01-14 Richard Henderson <rth@redhat.com>
4482 * config/i386/i386.md (prefetch): Tidy.
4483 (prefetch_3dnow): Fix locality operand.
4485 2002-01-14 Richard Henderson <rth@redhat.com>
4487 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
4488 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
4490 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
4492 * reload1.c (reload_combine): Pass reg_sum replacement through
4493 copy_rtx in loop performing multiple changes.
4495 2002-01-14 Jakub Jelinek <jakub@redhat.com>
4497 * except.c (remove_unreachable_regions): New.
4498 (free_eh_status): Clear exception_handler_labels.
4499 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
4500 (find_exception_handler_labels): Don't add the same label more than
4502 (remove_exception_handler_label): Don't die if
4503 find_exception_handler_labels hasn't been called for the current
4506 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
4508 * toplev.c (rest_of_compilation): Rebuild jump labels after
4511 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
4513 * doc/extend.texi: Move documentation of X86 built-in functions
4515 * doc/invoke.texi: From here.
4516 * doc/sourcebuild.texi: Document location of documentation for
4517 machine built-in functions.
4519 2002-01-13 Christopher Faylor <cgf@redhat.com>
4521 * cppfiles.c (TEST_THRESHOLD): New macro.
4522 (SHOULD_MMAP): Ditto.
4523 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
4526 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
4528 * unroll.c (final_reg_note_copy): Properly handle
4530 (unroll_loops): Fix LOOP_CONDITION heuristics.
4532 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
4534 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
4535 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
4537 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
4539 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
4542 2002-01-14 Tom Rix <trix@redhat.com>
4544 * config/rs6000/rs6000.md: Fix typo with sradi.
4546 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
4548 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
4549 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
4550 (clrstrdi, clrstrsi): Adapt callers.
4552 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
4554 (movti splitter): Never use register 0 as base register.
4556 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
4558 * combine.c (simplify_shift_const): Always generate new rtx
4559 for shift expression instead of reusing given expression.
4561 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4563 * config/alpha/alpha.c (alpha_expand_mov): Don't call
4564 alpha_legitimize_address unless mode is Pmode.
4566 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
4568 * doc/md.texi (Modifiers): Document the '*' constraint for the
4571 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
4572 * doc/extend.texi (Function Attributes): 'interrupt' is valid
4575 2002-01-13 Richard Henderson <rth@redhat.com>
4577 * reload.c (find_reloads): Use a hard reg destination as reload reg
4578 for an input reload of the source.
4580 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4582 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
4585 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
4587 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
4588 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
4590 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
4592 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4594 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
4596 2002-01-12 Tom Rix <trix@redhat.com>
4598 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
4601 2002-01-12 Richard Henderson <rth@redhat.com>
4603 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
4605 * doc/invoke.texi: Update Alpha options.
4607 * doc/invoke.texi: Update i386 built-in function lists.
4609 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
4611 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
4612 referencing outside.
4614 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4616 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
4617 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
4618 offsets, and change line folding.
4619 * optabs.c (expand_binop): Remove warnings.
4620 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
4622 2002-01-12 Graham Stott <grahams@redhat.com>
4624 * attribs.c (handle_deprecated_attribute): constify WHAT.
4625 * diagnostic.c (warn_deprecated_use): Add braces, fixes
4626 dangling else warning and constify WHAT.
4627 * except.h (struct function, struct inline_remap): Move
4628 struct tag forward defs before all prototypes.
4629 (duplicate_eh_regions): Whitespace.
4631 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
4633 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
4634 MODE_BASE_REG_CLASS.
4635 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
4637 2002-01-12 Richard Henderson <rth@redhat.com>
4639 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
4640 (ix86_expand_vector_move): New.
4641 (bdesc_2arg): Remove andps, andnps, orps, xorps.
4642 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
4643 Remove old prefetch builtins. Special case the logicals removed above.
4644 (ix86_expand_builtin): Likewise.
4645 (safe_vector_operand): Use V4SFmode, not TImode.
4646 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
4647 (ix86_expand_timode_binop_builtin): New.
4648 * config/i386/i386-protos.h: Update.
4649 * config/i386/i386.h (enum ix86_builtins): Update.
4650 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
4651 Use ix86_expand_vector_move in vector move expanders.
4652 (movti_internal, movti_rex64): Add xorps alternative.
4653 (sse_clrv4sf): Rename and adjust from sse_clrti.
4654 (prefetch): Don't work so hard.
4655 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
4656 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
4657 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
4659 2002-01-11 Richard Henderson <rth@redhat.com>
4661 * config/i386/mmintrin.h: New file.
4662 * config/i386/xmmintrin.h: New file.
4663 * config.gcc (i?86-*-*): Add extra_headers.
4664 * simplify-rtx.c (simplify_unary_operation): Handle saturating
4666 (simplify_binary_operation): Handle saturating arithmetic codes.
4667 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
4668 not the lowpart subreg.
4669 (ix86_expand_builtin): Return a TImode dummy register instead of 0
4671 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
4673 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4675 * conflict.c (conflict_graph_compute): Free regsets when finished.
4676 * ssa.c (compute_coalesced_reg_partition): Likewise.
4678 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4680 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
4681 every where we allocate a register.
4683 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4685 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
4686 * lcm.c (compute_earliest, compute_farthest): Likewise.
4688 2002-01-11 Janis Johnson <janis187@us.ibm.com>
4690 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
4692 2002-01-11 Janis Johnson <janis187@us.ibm.com>
4694 * doc/rtl.texi (Insns): Fix 2 typos.
4696 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
4698 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
4699 options. Use @table @gcctabopt for MMIX options. Add index
4700 entries for MMIX options. Start new paragraph with first
4701 heading of the machine-dependent options.
4703 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
4706 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
4707 * combine.c (force_to_mode): Same.
4708 * reload1.c (clear_reload_reg_in_use): Same.
4710 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
4712 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
4715 2002-01-11 Andreas Jaeger <aj@suse.de>,
4716 Brad Lucier <lucier@math.purdue.edu>
4718 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
4721 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
4723 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
4724 Protect with IN_LIBGCC.
4725 (LINK_EH_SPEC): Add required trailing space.
4727 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
4729 * c-tree.h: Move function declarations so that they are listed
4730 under the filename which contains them.
4731 (check_identifier, finish_decl_top_level,
4732 lookup_name_current_level_global, shadow_record_fields): Remove.
4734 2002-01-11 Andreas Jaeger <aj@suse.de>
4736 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
4739 2002-01-10 Richard Henderson <rth@redhat.com>
4741 * config/alpha/alpha.c (print_operand): Add 'J'.
4742 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
4743 new operand with the sequence number for the lituse. When splitting
4744 the insns, use gen_movdi_er_high_g and generate a sequence number.
4745 (gen_movdi_er_high_g): Print the sequence number if non-zero.
4747 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
4749 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
4750 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
4752 (altivec_expand_builtin): Same.
4753 (altivec_expand_stv_builtin): New.
4755 * config/rs6000/rs6000.h (rs6000_builtins): Same.
4757 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
4758 ("altivec_lvehx"): New.
4759 ("altivec_lvewx"): New.
4760 ("altivec_lvxl"): New.
4761 ("altivec_lvx"): New.
4762 ("altivec_stvx"): New.
4763 ("altivec_stvebx"): New.
4764 ("altivec_stvehx"): New.
4765 ("altivec_stvewx"): New.
4766 ("altivec_stvxl"): New.
4768 2002-01-10 Richard Henderson <rth@redhat.com>
4770 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
4771 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
4772 care not to delete instructions twice.
4774 2002-01-10 Zack Weinberg <zack@codesourcery.com>
4776 * toplev.c: Don't declare environ (it's not used anywhere).
4777 * configure.in: Don't check for declaration of environ.
4778 * config/i386/xm-mingw32.h: Don't #define environ.
4779 * config.in, configure: Regenerate.
4781 2002-01-10 Zack Weinberg <zack@codesourcery.com>
4783 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
4784 * configure: Regenerate.
4786 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
4787 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
4788 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
4790 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
4791 LIMITS_H_TEST here, not in m68k/x-next.
4792 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
4793 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
4795 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
4796 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
4797 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
4799 * config/i386/x-djgpp: Renamed i386/t-djgpp.
4800 * config/m88k/x-dolph: Renamed m88k/t-dolph.
4801 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
4802 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
4803 replacement of quadlib.asm with quadlib.c.
4805 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
4806 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
4807 config/rs6000/xm-beos.h: Delete file.
4809 * config.gcc: Update to match above changes.
4811 2002-01-10 Kazu Hirata <kazu@hxi.com>
4813 * config/h8300/h8300.h: Fix comment typos.
4814 * config/h8300/h8300.md: Likewise.
4815 * config/h8300/lib1funcs.asm: Likewise.
4817 2002-01-10 Dale Johannesen <dalej@apple.com>
4819 PR optimization/5269
4820 * unroll.c (precondition_loop_p): Make *increment be the correct
4821 sign when n_iterations known, to avoid confusing caller.
4823 2002-01-10 Kazu Hirata <kazu@hxi.com>
4825 * doc/extend.texi (deprecated): Fix a typo.
4827 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
4829 * basic-block.h (update_br_prob_note): Declare.
4830 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
4831 (try_forward_edges): Care negative frequencies and update note.
4832 (outgoing_edges_match): Tweek conditional merging heuristics.
4833 (try_crossjump_to_edge): use update_br_prob_note.
4834 * cfglayout.c (fixup_reorder_chain): Likewise.
4835 * cfrtl.c (update_br_prob_note): New.
4836 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
4838 * i386.c (ix86_decompose_address): Return -1 if address contains
4840 (legitimate_address_p): Require ix86_decompose_address to return 1.
4842 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
4843 (cprop_insn): Likewise.
4845 2002-01-10 Kazu Hirata <kazu@hxi.com>
4847 * toplev.c: Fix formatting.
4849 * tree-dump.c: Likewise.
4850 * unroll.c: Likewise.
4851 * unwind-dw2.c: Likewise.
4852 * unwind-dw2-fde.c: Likewise.
4853 * unwind-dw2-fde-glibc.c: Likewise.
4854 * unwind-sjlj.c: Likewise.
4856 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
4858 * doc/invoke.texi: Document PDP-11 options.
4860 2002-01-10 Kazu Hirata <kazu@hxi.com>
4862 * config/h8300/h8300.h: Fix formatting.
4864 2002-01-10 Ira Ruben <ira@apple.com>
4866 Add __attribute__ ((deprecated)).
4867 * extend.texi: Document __attribute__ ((deprecated)).
4868 * invoke.texi: Document -Wno-deprecated-declarations.
4869 * testsuite/g++.dg/other/deprecated.C: New C++ test.
4870 * testsuite/gcc.dg/deprecated.c: New C test.
4871 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
4872 (c_common_attribute_table): Add "deprecated" entry.
4873 (handle_deprecated_attribute): New function.
4874 * c-decl.c (deprecated_states): New enum.
4875 deprecated_state: State of "deprecated" handling.
4876 (start_decl): Set deprecated_state based on attributes.
4877 (grokdeclarator): Test for deprecated uses, propagate attribute.
4878 * c-typeck.c (build_component_ref): Test for deprecated fields.
4879 (build_external_ref): Test for deprecated primaries.
4880 * diagnostic.c (warn_deprecated_use) New function to issue
4881 warnings about __attribute__ ((depricated)) references.
4882 * flags.h (warn_deprecated_decl): Extern declared for
4883 -W[no-]deprecated-declarations option.
4884 * print-tree.c (print_node): Show deprecated flag status.
4885 * toplev.c (warn_deprecated_decl): Defined.
4886 (W_options): Added "deprecated-declaration".
4887 * toplev.h (warn_deprecated_use): Extern declared.
4888 * tree.h (struct tree_common): Define deprecated_flag.
4889 (TREE_DEPRECATED): New macro to access flag.
4890 * cp/call.c (build_call): Test for deprecated calls.
4891 * cp/class.c (add_implicitly_declared_members): Set global
4892 flag to tell grokdeclarator to not issue deprecated warnings.
4893 * cp/cp-tree.h: Add extern for adding_implicit_members.
4894 * cp/decl.c (deprecated_states): New enum.
4895 (start_decl): Set deprecated_state based on attributes.
4896 (grokdeclarator): Test for deprecated uses, propagate attribute.
4897 * cp/lex.c (do_identifier): Test for deprecated primaries.
4898 * cp/typeck.c (build_component_ref): Test for deprecated fields.
4900 2002-01-10 Ira Ruben <ira@apple.com>
4902 Fix to assign attributes to inline member functions.
4903 * cp/decl.c (start_method): Handle attrlist.
4905 2002-01-10 Kazu Hirata <kazu@hxi.com>
4907 * combine.c (expand_field_assignment): Use subreg_lsb().
4909 2002-01-10 David Edelsohn <edelsohn@gnu.org>
4911 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
4912 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
4913 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
4914 Recurse for any operand of AND as long as constant is non-zero.
4916 2002-01-10 Kazu Hirata <kazu@hxi.com>
4918 * config/h8300/h8300.md: Remove constraints from expanders.
4920 2002-01-10 Kazu Hirata <kazu@hxi.com>
4922 * varasm.c: Fix formatting.
4923 * varray.c: Likewise.
4924 * vmsdbgout.c: Likewise.
4925 * xcoffout.c: Likewise.
4927 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
4929 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
4930 update edge probabilities to match.
4932 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
4934 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
4936 * doc/languages.texi, doc/sourcebuild.texi: New files.
4937 * doc/configfiles.texi: Make a subsubsection. Update.
4938 * doc/configterms.texi: Add @node. Remove warning that this isn't
4939 instructions for building GCC.
4940 * doc/makefile.texi: Make a subsection.
4941 * doc/gccint.texi: Update.
4943 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
4945 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
4947 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
4949 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
4951 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
4953 * optabs.c (expand_fix): Look for wider integer modes first.
4955 * i386.md (mov?f): Avoid the fake const double trick for medium
4957 (min?f*/max?f*): Prohibit memory operands for i387 variant.
4958 (fop_df_4): Disable for SSE compilation.
4960 2002-01-10 Graham Stott <grahams@redhat.com>
4962 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
4963 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
4965 2002-01-10 Richard Henderson <rth@redhat.com>
4967 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
4969 2002-01-10 Richard Henderson <rth@redhat.com>
4971 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
4972 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
4974 2002-01-10 Kazu Hirata <kazu@hxi.com>
4976 * combine.c (can_combine_p): Fix a comment typo.
4978 2002-01-09 Zack Weinberg <zack@codesourcery.com>
4980 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
4981 empty list correctly. Change loop index $t to $f for
4982 consistency with rest of Makefile.
4984 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
4986 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
4987 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
4989 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
4990 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
4991 (altivec_init_builtins): Same.
4992 (altivec_expand_unop_builtin): Return NULL_RTX on error.
4993 (altivec_expand_binop_builtin): Same.
4994 (altivec_expand_ternop_builtin): Same.
4997 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
4998 ("altivec_vctuxs"): Fix typo.
4999 ("altivec_vnmsubfp"): Same.
5000 ("altivec_dssall"): New.
5001 ("altivec_mfvscr"): New.
5002 ("altivec_dss"): New.
5003 ("altivec_lvsl"): New.
5004 ("altivec_lvsr"): New.
5005 ("altivec_dstt"): New.
5006 ("altivec_dstst"): New.
5007 ("altivec_dststt"): New.
5008 ("altivec_dst"): New.
5010 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
5011 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
5013 2002-01-09 Richard Henderson <rth@redhat.com>
5015 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
5017 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
5019 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
5021 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
5023 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
5025 2002-01-09 Kazu Hirata <kazu@hxi.com>
5027 * read-rtl.c: Fix formatting.
5029 * regclass.c: Likewise.
5030 * regrename.c: Likewise.
5031 * reg-stack.c: Likewise.
5032 * reload1.c: Likewise.
5033 * reload.c: Likewise.
5036 2002-01-09 Kazu Hirata <kazu@hxi.com>
5038 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
5039 to extract items in the expr_list chain.
5041 2002-01-09 Richard Henderson <rth@redhat.com>
5043 * config/vax/vax.c (vax_rtx_cost): Never abort.
5045 * config/vax/vax.h (REAL_ARITHMETIC): Define.
5047 2002-01-09 Jan Hubicka <jh@suse.cz>
5049 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
5051 2002-01-09 Richard Henderson <rth@redhat.com>
5053 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
5054 Unify code from various alternatives.
5056 2002-01-09 Richard Henderson <rth@redhat.com>
5058 * regrename.c (copy_value): Ignore the copy if the source register
5059 is present in the value chain with a narrower mode.
5061 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5063 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
5064 for the c4x target. Also improve layout.
5066 2002-01-09 Richard Henderson <rth@redhat.com>
5068 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
5069 * config/m32r/m32r.md (and ior xor splitters): Swap operands
5070 to match insn patterns.
5072 2002-01-09 Richard Henderson <rth@redhat.com>
5074 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
5075 (copyprop_hardreg_forward_1): Likewise.
5077 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
5079 * pa.md (decrement_and_branch_until_zero): Change predicate for
5080 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
5082 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
5084 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
5085 gets undefined. For Darwin.
5087 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5089 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
5091 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5093 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
5095 2002-01-08 Richard Henderson <rth@redhat.com>
5097 * regrename.c (copy_value): Ignore overlapping copies.
5099 2002-01-08 Richard Henderson <rth@redhat.com>
5101 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
5102 as needed to avoid shared structure.
5104 2002-01-08 Kazu Hirata <kazu@hxi.com>
5106 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
5109 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
5111 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
5112 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
5113 documentation of obsolete macros.
5114 * system.h: Poison these macros.
5115 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
5116 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
5117 config/c4x/c4x.h, config/clipper/clipper.h,
5118 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
5119 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
5120 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
5121 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
5122 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
5123 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
5124 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
5125 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
5126 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
5127 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
5128 config/sparc/sparc.h, config/stormy16/stormy16.h,
5129 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
5130 definitions and commented out definitions of obsolete macros.
5131 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
5132 of MAX_INT_TYPE_SIZE.
5134 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
5136 * config/s390/s390.c (s390_preferred_reload_class): Never
5137 return ADDR_REGS if it isn't a subset of the given class.
5138 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
5139 FP_REGS, but all superclasses as well.
5141 * config/s390/s390.c (s390_function_profiler): Fix thinko.
5143 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
5144 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
5145 must not be a const_int.
5147 2002-01-08 Richard Henderson <rth@redhat.com>
5149 * Makefile.in (toplev.o): Depend on options.h.
5150 (gcc.o): Depend on specs.h.
5152 2002-01-08 Jakub Jelinek <jakub@redhat.com>
5154 * expr.c (store_expr): Convert VOIDmode constants back to target's
5157 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5159 * doc/invoke.texi: Markup gcc as @command. Refer to
5160 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
5161 of http://gcc.gnu.org/thanks.html.
5163 2002-01-08 Dale Johannesen <dalej@apple.com>
5165 * config/rs6000/rs6000.md: Add missing int register
5166 target case to movdf_low.
5168 2002-01-08 Zack Weinberg <zack@codesourcery.com>
5170 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
5171 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
5172 (cppinit.o): Depend on except.h.
5173 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
5174 s-specs): New rules.
5176 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
5177 Don't create specs.h/options.h/gencheck.h here. Remove
5178 unnecessary variable settings from last argument of AC_OUTPUT.
5179 * config.in, configure: Regenerate.
5180 * intl.c: Hardcode package name as "gcc".
5182 * cppinit.c: Include except.h.
5183 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
5185 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
5186 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
5187 (!)USING_SJLJ_EXCEPTIONS.
5188 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
5190 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
5192 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
5193 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
5194 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
5195 documentation of obsolete macros.
5196 * system.h: Poison these macros.
5197 * config/d30v/d30v.h, config/ns32k/encore.h,
5198 config/stormy16/stormy16.h: Remove definitions and commented out
5199 definitions of obsolete macros.
5201 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
5203 * objc/objc-act.c (handle_class_ref): Mark the declaration of
5204 %sobjc_class_ref_%s as used - to prevent unwanted compiler
5207 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
5209 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
5210 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
5211 to insn adjusting stack/frame pointer.
5212 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
5213 accept operands that cause the insn to be non-splittable.
5215 2002-01-08 Graham Stott <grahams@redhat.com>
5217 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
5218 (C_TYPE_FIELDS_VOLATILE): Likewise.
5219 (C_TYPE_BEING_DEFINED): Likewise.
5220 (C_IS_RESERVED_WORD): Likewise.
5221 (C_TYPE_VARIABLE_SIZE): Likewise.
5222 (C_DECL_VARIABLE_SIZE): Likewise.
5223 (C_MISSING_PROTOTYPE_WARNED): Likewise.
5224 (C_SET_EXP_ORIGINAL_CODE): Likewise.
5225 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
5227 (C_DECL_ANTICIPATED): Likewise.
5228 (c_build_type_variant): Add parenthesis.
5230 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
5232 * gcc.c (option_map): Remove --version.
5233 (process_command): Handle -fversion following the GNU Coding
5234 Standards. Partially addresses PR other/704.
5236 2002-01-08 Graham Stott <grahams@redhat.com>
5238 * combine.c (combine_instructions): Fix typo.
5240 2002-01-08 Graham Stott <grahams@redhat.com>
5242 * debug.h: Use "tree" and "rtx" throughout.
5244 * debug.c: Likewise.
5246 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
5248 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
5249 constant pool, use the pool's version of the symbol instead.
5251 2002-01-07 Richard Henderson <rth@redhat.com>
5253 * regrename.c (find_oldest_value_reg): Ignore the value chain if
5254 the original register was copied in a mode with a fewer number of
5255 hard registers than the desired mode.
5256 (copyprop_hardreg_forward_1): Likewise.
5257 (debug_value_data): Fix loop test.
5258 * toplev.c (parse_options_and_default_flags): Reenable
5259 -fcprop-registers at -O1.
5261 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
5263 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
5264 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
5266 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
5269 * config/rs6000/rs6000.md: Add altivec predicate patterns.
5271 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
5273 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
5274 (pa_output_function_prologue): Output local label at the beginning of
5275 the prologue when profiling.
5276 (hppa_profile_hook): Use the local label rather than the function label.
5277 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
5279 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
5281 * config/rs6000/rs6000.c (print_operand): Remove extra space.
5282 (altivec_expand_unop_builtin): Fix thinko.
5283 (altivec_expand_binop_builtin): Same.
5284 (altivec_expand_ternop_builtin): Same.
5285 (altivec_expand_builtin): Same.
5287 2002-01-07 Richard Henderson <rth@redhat.com>
5289 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
5291 2002-01-07 Jason Merrill <jason@redhat.com>
5293 * unwind-dw2.c (execute_cfa_program): Use < again.
5295 2002-01-07 Jakub Jelinek <jakub@redhat.com>
5297 * predict.c (combine_predictions_for_insn): Avoid division by zero.
5299 2002-01-07 Jakub Jelinek <jakub@redhat.com>
5301 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
5302 Don't allow -1 - x -> ~x simplifications in the first pass.
5304 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
5306 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
5308 (altivec_expand_binop_builtin): Same.
5309 (altivec_expand_unop_builtin): Same.
5310 (print_operand): Fix typo.
5311 (bdesc_1arg): Add vupk* variants.
5313 * rs6000.h (rs6000_builtins): Add vupk* enums.
5315 * rs6000.md: Add altivec_vupk* variants.
5317 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
5319 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
5320 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
5321 and last update dates.
5323 2002-01-07 Janis Johnson <janis187@us.ibm.com>
5325 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
5327 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
5329 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
5330 * config/avr/avr.h (CPP_SPEC): Likewise.
5331 (LINK_SPEC): Likewise.
5332 (CRT_BINUTILS_SPECS): Likewise.
5333 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5334 * doc/invoke.texi (AVR Options): Document them.
5336 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
5338 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
5341 2002-01-07 Graham Stott <grahams@redhat.com>
5343 * config/i386/i386.h: Update copyright date.
5344 (HALF_PIC_PTR): Add parenthesis.
5345 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
5346 (CONSTANT_ALIGNMENT): Add parenthesis.
5347 (DATA_ALIGNMENT): Likewise.
5348 (LOCAL_ALIGNMENT): Likewise.
5349 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
5350 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
5351 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
5352 (HARD_REGNO_NREGS): Add paranethesis.
5353 (VALID_SSE_REG_MODE): Whitespace.
5354 (VALID_MMX_REG_MODE): Whitespace.
5355 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
5356 (ix86_hard_regno_mode_ok): Add parenthesis.
5357 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
5358 (RETURN_IN_MEMORY): Whitespace.
5359 (N_REG_CLASSES): Add parenthesis.
5360 (INTEGER_CLASS_P): Add parenthesis and wrap.
5361 (FLOAT_CLASS_P): Likewise.
5362 (SSE_CLASS_P): Likewise.
5363 (MMX_CLASS_P): Likewise.
5364 (MAYBE_INTEGER_CLASS_P): Likewise.
5365 (MAYBE_FLOAT_CLASS_P): Likewise.
5366 (MAYBE_SSE_CLASS_P): Likewise.
5367 (MAYBE_MMX_CLASS_P): Likewise.
5368 (Q_CLASS_P): Likewise.
5369 (GENERAL_REGNO_P): Uppercase macro parameter.
5370 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
5371 (FP_REGNO_P): Likewise.
5372 (ANY_FP_REGNO_P): Uppercase macro parameter.
5373 (SSE_REGNO_P): Likewise.
5374 (SSE_REGNO): Likewise.
5375 (SSE_REG_P): Likewise.
5376 (SSE_FLOAT_MODE_P): Likewise.
5377 (MMX_REGNO_P): Likewise.
5378 (MMX_REG_P):Likewise.
5379 (STACK_REG_P): Likewise.
5380 (NON_STACK_REG_P): Likewise.
5381 (STACK_TOP_P): Likewise.
5382 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
5383 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
5384 (SECONDARY_MEMORY_NEEDED): Likewise.
5385 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
5386 (MD_ASM_CLOBBERS): Whitespace and wrap.
5387 (MUST_PASS_IN_STACK): Whitespace and wrap.
5388 (RETURN_POPS_ARGS): Add parenthesis.
5389 (INIT_CUMULATIVE_ARGS): Likewise.
5390 (FUNCTION_ARG): Likewise.
5391 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
5392 (SETUP_INCOMING_VARARGS): Likewise.
5393 (BUILD_VA_LIST_TYPE): Add parenthesis.
5394 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
5396 (EXPAND_BUILTIN_VA_ARG): Likewise.
5397 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
5398 (INITIALIZE_TRAMPOLINE): Add parenthesis.
5399 (INITIAL_ELIMINATION_OFFSET): Likewise.
5400 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
5401 (REGNO_OK_FOR_BASE_P): Likewise.
5402 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
5403 (REGNO_OK_FOR_DIREG_P): Likewise.
5404 (REG_OK_FOR_INDEX_P): Whitespace.
5405 (REG_OK_FOR_BASE_P): Whitespace.
5406 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
5408 (FIND_BASE_TERM): Fix typo.
5409 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
5410 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
5411 (SYMBOLIC_CONST; Whitespace.
5412 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
5413 (ENCODE_SECTION_INFO): Whitespace.
5414 (FINALIZE_PIC): Remove do { ... } while (0).
5415 (PROMOTE_MODE): Wrap in do { ... } while (0).
5416 (CONST_COSTS): Whitespace.
5417 (RTX_COSTS): Add paramethesis, whitespace and wrap.
5418 (REGISTER_MOVE_COST): Add parenthesis.
5419 (MEMORY_MOVE_COST): Likewise.
5420 (EXTRA_CC_MODES): Whitespace.
5421 (SELECT_CC_MODE): Add parenthesis and whitespace.
5422 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
5423 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
5424 (ASM_OUTPUT_LABEL): Add paramethesis.
5425 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
5426 (ASM_OUTPUT_REG_POP): Likewise.
5427 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
5428 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5430 * config/i386/i386.c: Update copyright.
5431 (CHECK_STACK_LIMIT): Add parenthesis.
5432 (AT_BP): Uppercase macro parameter.
5433 (x86_64_int_parameter_registers): Constify.
5434 (x86_64_int_return_registers): Likewise.
5435 (ix86_compare_op0): Use rtx.
5436 (construct_container): Constify INTREG parameter.
5437 (function_arg): Use rtx.
5439 * diagnostic.h: Update copyright date.
5440 (output_buffer_state): Add parenthesis.
5441 (output_buffer_format_args): Likewise.
5443 * combine.c (combine_instructions): Replace XEXP (links, 0)
5446 2002-01-06 H.J. Lu <hjl@gnu.org>
5448 * cfgcleanup.c (thread_jump): Fix 2 typos.
5450 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
5452 * config.gcc: Add support for --enable-altivec.
5454 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
5456 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
5458 2002-01-06 Jakub Jelinek <jakub@redhat.com>
5460 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
5461 __objc_class_name_*.
5463 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
5465 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
5467 2002-01-06 Richard Henderson <rth@redhat.com>
5469 * reorg.c (emit_delay_sequence): Remove death notes, not merely
5470 nop them out. Increment label reference count for REG_LABEL.
5471 (fill_slots_from_thread): Frob label reference count around
5472 delete_related_insns.
5474 2002-01-05 Richard Henderson <rth@redhat.com>
5476 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
5479 2002-01-05 Richard Henderson <rth@redhat.com>
5481 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
5482 * integrate.c (output_inline_function): Likewise.
5483 * toplev.c (rest_of_compilation): Do it here instead. Move call
5484 to remove_unnecessary_notes after emitting abstract instance.
5485 Force an emitted nested function to have its parent emited as well.
5486 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
5488 (rtl_for_decl_location): Do not look at reload data structures
5489 before reload has run.
5491 2002-01-05 Kazu Hirata <kazu@hxi.com>
5493 * cse.c: Fix formatting.
5494 * dwarf2asm.c: Likewise.
5495 * dwarf2out.c: Likewise.
5496 * explow.c: Likewise.
5497 * expmed.c: Likewise.
5498 * function.c: Likewise.
5500 * gencheck.c: Likewise.
5501 * genrecog.c: Likewise.
5502 * ggc-common.c: Likewise.
5503 * ggc-page.c: Likewise.
5504 * global.c: Likewise.
5506 2002-01-05 Kazu Hirata <kazu@hxi.com>
5508 * combine.c: Fix formatting.
5510 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
5513 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
5515 2002-01-05 David Edelsohn <edelsohn@gnu.org>
5517 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
5518 as 1 for __powerpc64__ as well.
5520 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
5522 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
5525 2002-01-05 Daniel Berlin <dan@dberlin.org>
5527 * lcm.c: Revert change, due to performance regression it causes on
5528 SPEC because it's slightly more conservative (sigh, I hate
5531 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
5533 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
5535 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
5537 * doc/cppinternals.texi: Update.
5539 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
5541 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
5542 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
5544 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
5545 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
5546 kludge for pre-october-14th mmix versions to handle new-found bug
5547 with PUSHJ/PUSHGO and the register stack.
5548 * config/mmix/mmix.h (struct machine_function): Rename member
5549 has_call_value_without_parameters to has_call_without_parameters.
5550 All referers changed.
5551 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
5552 TARGET_MASK_BRANCH_PREDICT): New macros.
5553 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
5554 -mno-reg-stack-fill-bug-workaround.
5555 * config/mmix/mmix.md ("call"): Set struct machine member
5556 has_call_without_parameters.
5558 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
5560 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
5562 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
5564 * cfgcleanup.c: Include tm_p.h
5565 (mark_effect): Fix handling of hard register; fix handling of SET
5567 2002-01-04 Kazu Hirata <kazu@hxi.com>
5569 * config/h8300/h8300.md (anonymous patterns): Check that
5570 operands are registers before using REGNO on them.
5572 2002-01-03 Roland McGrath <roland@frob.com>
5574 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
5576 2002-01-04 Jakub Jelinek <jakub@redhat.com>
5578 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
5579 * c-common.h (genrtl_expr_stmt_value): Likewise.
5580 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
5581 (expand_expr_stmt_value): Add maybe_last argument.
5582 Don't warn about statement with no effect if it is the last statement
5583 in expression statement.
5584 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
5585 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
5586 expand_expr_stmt_value.
5587 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
5588 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
5589 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
5590 as maybe_last to expand_expr_stmt_value.
5592 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
5594 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
5595 be passed in, do not build it.
5596 (c_begin_if_stmt): New function.
5597 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
5598 * c-common.h (c_expand_start_cond): Update prototype.
5599 (c_begin_if_stmt): Prototype new function.
5600 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
5601 * c-parse.in (if_prefix): Use c_begin_if_stmt,
5602 c_begin_while_stmt and c_finish_while_stmt_cond.
5604 2002-01-04 William Cohen <wcohen@redhat.com>
5606 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
5607 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
5608 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
5609 * config/pa/som.h (ASM_FILE_START): Likewise.
5611 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
5613 * lcm.c: Include df.h.
5614 Add available_transfer_function prototype.
5615 (compute_available): Rework to use iterative dataflow framework.
5616 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
5617 with bb_info in df.h
5618 (available_transfer_function): New function.
5620 * Makefile.in (lcm.o): add df.h to dependencies.
5622 2002-01-04 Richard Henderson <rth@redhat.com>
5624 * config/alpha/alpha.c (some_operand): Accept HIGH.
5625 (input_operand): Likewise; accept simple references to globals.
5626 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
5627 (alpha_const_double_ok_for_letter_p): Likewise.
5628 (alpha_extra_constraint): Likewise.
5629 (alpha_preferred_reload_class): Likewise. Do not force
5630 symbolic constants to memory.
5631 (alpha_legitimate_address_p): Accept simple references
5632 to small_symbolic_operand.
5633 (alpha_legitimize_address): New arg scratch. Be prepared to be
5634 called when no_new_pseudos. Emit simple symbolic references.
5635 Split integers into low, high, and rest.
5636 (alpha_expand_mov): Use alpha_legitimize_address.
5637 (some_small_symbolic_mem_operand): New.
5638 (split_small_symbolic_mem_operand): New.
5639 * config/alpha/alpha-protos.h: Update.
5640 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
5641 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
5642 (EXTRA_CONSTRAINT): Likewise.
5643 (PREFERRED_RELOAD_CLASS): Likewise.
5644 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
5645 (PREDICATE_CODES): Update.
5646 * config/alpha/alpha.md: New post-reload splitters to convert
5647 simplfied symbolic operands to the form that references $29.
5648 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
5649 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
5651 2002-01-03 Richard Henderson <rth@redhat.com>
5653 * local-alloc.c (function_invariant_p): Update commentary.
5655 2002-01-04 H.J. Lu <hjl@gnu.org>
5657 * toplev.c (rest_of_compilation): Fix a typo when calling
5660 2002-01-03 Kazu Hirata <kazu@hxi.com>
5662 * c-common.c: Fix formatting.
5663 * diagnostic.c: Likewise.
5664 * doloop.c: Likewise.
5665 * dwarf2out.c: Likewise.
5667 2002-01-03 Kazu Hirata <kazu@hxi.com>
5669 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
5670 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
5672 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
5674 * cpperror.c: Update comments and copyright.
5675 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
5676 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
5678 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
5680 * collect2.c (main): Use strcmp when testing for "-shared".
5682 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
5684 * cppmacro.c: Don't include intl.h. Update comments.
5685 (new_number_token): Allocate enough buffer for 64-bit unsigned
5686 integers; update prototype.
5687 * cppmain.c: Update comments.
5689 2002-01-03 William Cohen <wcohen@redhat.com>
5691 * function.h (struct function): Add profile.
5692 (current_function_profile): New.
5693 doc/extend.texi: Update documentation.
5694 * final.c (final_start_function): Use current_function_profile
5695 instead of profile_flag.
5696 (profile_after_prologue): Likewise.
5697 * function.c (expand_function_start): Likewise.
5698 (expand_function_start): Likewise.
5699 * config/alpha/alpha.c (direct_call_operand):
5700 (alpha_does_function_need_gp): Likewise.
5701 (alpha_expand_prologue): Likewise.
5702 * config/arm/arm.c (arm_expand_prologue): Likewise.
5703 thumb_expand_prologue: Likewise.
5704 * config/d30v/d30v.c (d30v_stack_info): Likewise.
5705 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
5706 (fr30_expand_prologue): Likewise.
5707 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
5708 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
5709 * config/i386/i386.h (FINALIZE_PIC): Likewise.
5710 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
5711 * config/i960/i960.c (i960_output_function_prologue): Likewise.
5712 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5713 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
5714 (m32r_expand_prologue): Likewise.
5715 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
5716 (m88k_expand_prologue): Likewise.
5717 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
5718 * config/mips/mips.c (compute_frame_size): Likewise.
5719 (mips_expand_prologue): Likewise.
5720 (mips_can_use_return_insn): Likewise.
5721 * config/pa/elf.h (ASM_FILE_START): Likewise.
5722 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
5723 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
5724 * config/pa/som.h (ASM_FILE_START): Likewise.
5725 * config/romp/romp.c (romp_using_r14): Likewise.
5726 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
5727 (rs6000_stack_info): Likewise.
5728 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5729 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
5730 * config/v850/v850.c (compute_register_save_size): Likewise.
5732 2002-01-03 Jakub Jelinek <jakub@redhat.com>
5734 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
5735 gen_lowpart_common fails, use gen_lowpart_SUBREG.
5737 2002-01-03 Turly O'Connor <turly@apple.com>
5739 * darwin.c (machopic_output_possible_stub_label): Don't generate
5740 stub routines for pseudo-stubs which we've just defined.
5742 2002-01-03 Kazu Hirata <kazu@hxi.com>
5744 * builtins.c: Fix formatting.
5745 * c-typeck.c: Likewise.
5746 * combine.c: Likewise.
5750 2002-01-03 Andreas Schwab <schwab@suse.de>
5752 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
5753 and return true if _cpp_push_next_buffer pushed a new include
5755 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
5756 _cpp_pop_file_buffer did not push a new file.
5757 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
5759 2002-01-02 Eric Christopher <echristo@redhat.com>
5761 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
5762 FIND_REG_INC_NOTE call. Update copyright.
5763 * loop.c (canonicalize_condition): Ditto.
5764 * reorg.c (delete_scheduled_jump): Ditto.
5766 2002-01-03 Kazu Hirata <kazu@hxi.com>
5768 * gcse.c: Fix formatting.
5770 2002-01-03 Graham Stott <grahams@redhat.com>
5772 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
5773 forward defs for struct tags rtx_def, union_tree, rtvec_def
5774 also output corresponding typedefs for rtx, tree, and rtvec.
5776 * system.h: Move forward defs for struct tags rtx_def, union_tree,
5777 rtvec_def along with corresponding typedefs for rtx, tree, and
5778 rtvec to config.h, hconfig.h, tconfig.h.
5780 2002-01-03 Graham Stott <grahams@redhat.com>
5782 * tree.h: Update copyright date.
5783 (IS_EXPR_CODE_CLASS): Add parenthesis.
5784 (TREE_SET_CODE): Add whitespace.
5785 (TREE_CHECK): Add parenthesis.
5786 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
5787 (CST_OR_CONSTRUCTOR_CHECK):
5788 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
5789 (TREE_SYMBOL_REFERENCED): Whitespace.
5790 (INT_CST_LT): Likewise.
5791 (INT_CST_LT_UNSIGNED): Likewise.
5792 (tree_real_cst): Unwrap comment.
5793 (tree_string): Likewise.
5794 (tree_complex): Likewise.
5795 (IDENTIFIER_POINTER): correct cast.
5796 (SAVE_EXPR_CONTEXT): Whitespace.
5797 (EXPR_WFL_FILENAME_NODE): Likewise.
5798 (EXPR_WFL_FILENAME): Remove parenthesis.
5799 (DECL_ORIGIN): Add parenthesis.
5800 (DECL_FROM_INLINE): Use NULL_TREE.
5801 (build_int_2): Whitespace.
5802 (build_type_variant): Add parenthesis.
5804 * gcc/jcf-parse.c: Update copyright date.
5805 (yyparse): Constify resource_filename.
5807 2002-01-03 Graham Stott <grahams@redhat.com>
5809 * rtl.h: Update copyright date.
5810 (RTL_CHECK1): Wrap long line.
5811 (RTL_CHECK2): Likewise.
5812 (RTL_CHECKC1): Wrap long line and whitespace.
5813 (RTL_CHECKC2): Likewise.
5814 (XWINT): Whitespace.
5820 (XBITMAP): Likewise.
5831 (X0BITMAP): Likewise.
5833 (X0BBDEF): Likewise.
5834 (X0ADVFLAGS): Likewise.
5835 (X0CSELIB): Likewise.
5836 (X0MEMATTR): Likewise.
5844 (XCBITMAP): Likewise.
5846 (XCBBDEF): Likewise.
5847 (XCADVFLAGS): Likewise.
5848 (XCCSELIB): Likewise.
5850 (INSN_UID): Likewise.
5851 (PREV_INSN): Likewise.
5852 (PATTERN): Likewise.
5853 (INSN_CODE): Likewise.
5854 (PUT_REG_NOTE_KIND): Likewise.
5855 (CODE_LABEL_NUMBER): Likewise.
5856 (NOTE_SOURCE_FILE): Likewise.
5857 (NOTE_BLOCK): Likewise.
5858 (NOTE_EH_HANDLER): Likewise.
5859 (NOTE_RANGE_INFO): Likewise.
5860 (NOTE_LIVE_INFO): Likewise.
5861 (NOTE_BASIC_BLOCK): Likewise.
5862 (NOTE_EXPECTED_VALUE): Likewise.
5863 (NOTE_LINE_NUMBER): Likewise.
5864 (LABEL_NAME): Likewise.
5865 (LABEL_NUSES): Likewise.
5866 (LABEL_ALTERNATE_NAME): Likewise.
5867 (ADDRESSOF_DECL): Likewise.
5868 (JUMP_LABEL): Likewise.
5869 (LABEL_NEXTREF): Likewise.
5871 (ORIGINAL_REGNO: Likewise.
5872 (HARD_REGISTER_NUM_P): Add parenthesis.
5873 (SUBREG_REG): Whitespace.
5874 (SUBREG_BYTE): Likewise.
5875 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
5876 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
5877 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
5878 (ASM_OPERANDS_INPUT_VEC): Likewise.
5879 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
5880 (ASM_OPERANDS_INPUT): Likewise.
5881 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
5882 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
5883 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
5884 (ASM_OPERANDS_INPUT_MODE): Likewise.
5885 (ASM_OPERANDS_SOURCE_FILE): Likewise.
5886 (ASM_OPERANDS_SOURCE_LINE): Likewise.
5887 (MEM_SET_IN_STRUCT_P): Minor reformat.
5888 (TRAP_CONDITION): Whitespace.
5889 (TRAP_CODE): Likewise.
5890 (COND_EXEC_TEST): Likewise.
5891 (COND_EXEC_CODE): Likewise.
5892 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
5893 (PHI_NODE_P): Add parenthesis.
5894 (plus_constant): Whitespace and add parenthesis.
5896 2002-01-03 Kazu Hirata <kazu@hxi.com>
5898 * config/avr/avr.c: Fix comment typos.
5899 * config/c4x/c4x.md: Likewise.
5900 * config/dsp16xx/dsp16xx.h: Likewise.
5901 * config/dsp16xx/dsp16xx.md: Likewise.
5902 * config/i386/i386.md: Likewise.
5903 * config/ia64/ia64.c: Likewise.
5904 * config/m32r/m32r.h: Likewise.
5905 * config/m68hc11/m68hc11.md: Likewise.
5906 * config/mmix/mmix.c: Likewise.
5907 * config/mn10200/mn10200.c: Likewise.
5908 * config/romp/romp.c: Likewise.
5909 * config/sh/sh.c: Likewise.
5910 * config/stormy16/stormy16.c: Likewise.
5911 * config/stormy16/stormy16.h: Likewise.
5912 * config/stormy16/stormy16.md: Likewise.
5914 2002-01-03 Graham Stott <grahams@redhat.com>
5916 * loop.h: Update copyright date.
5917 (LOOP_MOVABLES): Fix typo.
5918 (LOOP_REGS): Likewise.
5919 (LOOP_IVS): Likewise.
5921 2002-01-03 Graham Stott <grahams@redhat.com>
5923 * cppinit.c: Update copyright date.
5924 Don't include output.h
5925 * Makefile.in: Update copyright date.
5928 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
5931 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
5932 (-pthread) Add to RS/6000 options.
5934 2002-01-02 Kazu Hirata <kazu@hxi.com>
5936 * except.c: Fix comment typos.
5938 * varasm.c: Likewise.
5939 * doc/tm.texi: Fix a typo.
5941 2002-01-02 Jakub Jelinek <jakub@redhat.com>
5943 * c-typeck.c (output_init_element): Allow initializing static storage
5944 duration objects with compound literals.
5946 2002-01-02 Richard Henderson <rth@redhat.com>
5948 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
5951 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5953 * gcc.c (default_compilers): Const-ify.
5954 * mips-tdump.c (stab_names): Likewise.
5955 * mips-tfile.c (map_coff_types, map_coff_storage,
5956 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
5957 pseudo_ops_t, pseudo_ops): Likewise.
5958 * protoize.c (default_include): Likewise
5960 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
5961 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
5962 Add array size in declaration.
5963 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
5964 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
5965 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
5966 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
5967 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
5968 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
5969 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
5970 emtens, make_nan): Const-ify.
5971 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
5972 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
5974 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
5976 * config.gcc (ia64-*-*): Set extra_headers.
5977 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
5978 * config/alpha/t-osf: Remove.
5979 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
5981 2002-01-02 David Edelsohn <edelsohn@gnu.org>
5983 * config/rs6000/t-aix43: Revert previous change.
5985 2002-01-02 Jason Merrill <jason@redhat.com>
5987 * c-decl.c (c_expand_body): Call outlining_inline_function when
5988 emitting an inline function out of line.
5990 2002-01-02 Richard Henderson <rth@redhat.com>
5992 * dwarf2out.c (limbo_die_node): Add created_for member.
5993 (new_die): New argument created_for. Update all callers.
5994 (mark_limbo_die_list): New.
5995 (dwarf2out_init): Register limbo_die_list as a root.
5996 (dwarf2out_finish): Force insert limbo dies into their function
5999 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
6002 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
6004 2002-01-02 Kazu Hirata <kazu@hxi.com>
6006 * config/h8300/fixunssfsi.c: Update copyright.
6009 * config/h8300/h8300.c: Update copyright.
6012 2002-01-02 Kazu Hirata <kazu@hxi.com>
6014 * config/romp/romp.c: Fix comment formatting.
6015 * config/romp/romp.h: Likewise.
6016 * config/romp/romp.md: Likewise.
6017 * config/s390/s390.c: Likewise.
6018 * config/stormy16/stormy16.c: Likewise.
6019 * config/stormy16/stormy16.h: Likewise.
6021 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
6023 * c-common.h (genrtl_expr_stmt_value): Declare.
6024 * c-semantics.c (genrtl_goto_stmt): Redirect to...
6025 (genrtl_goto_stmt_value): ... this new function. Pass new
6026 argument down to expand_expr_stmt_value, taking
6027 TREE_ADDRESSABLE into account.
6028 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
6029 STMT_EXPR as addressable, i.e., one whose result we want.
6030 * expr.c (expand_expr): Don't save expression statement value
6031 of labeled_blocks or loop_exprs.
6032 * stmt.c (expand_expr_stmt): Redirect to...
6033 (expand_expr_stmt_value): ... this new function. Use new
6034 argument to tell whether to save expression value.
6035 (expand_end_stmt_expr): Reset last_expr_type and
6036 last_expr_value if we don't have either.
6037 * tree-inline.c (declare_return_variable): Mark its use
6038 statement as addressable.
6039 * tree.h: Document new use of TREE_ADDRESSABLE.
6040 (expand_expr_stmt_value): Declare.
6042 2002-01-01 Tom Rix <trix@redhat.com>
6044 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
6045 rs6000_emit_allocate_stack.
6047 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
6049 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
6050 ${srcdir}/ginclude/ to every entry in extra_headers.
6051 * configure: Regenerate.
6052 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
6053 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
6054 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
6055 * ginclude/proto.h: Rename to config/convex/proto.h.
6057 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6059 * attribs.c (handle_vector_size_attribute): Use host_integerp
6060 and tree_int_cst; remove warnings.
6061 * caller-save.c (insert_restore): Add cast to get rid of warning.
6062 (insert_save): Likewise.
6063 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
6064 * regmove.c (find_matches): Add temporary var to kill a warning.
6066 2002-01-01 Douglas B Rupp <rupp@gnat.com>
6068 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
6069 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
6070 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
6071 (vms-dwarf2eh.o): Add Makefile rule.
6072 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
6073 * config/alpha/vms-dwarf2eh.asm: New file.
6075 * gcc.c (delete_if_ordinary): Delete all versions.
6077 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
6079 * config/mmix/mmix.md: Update FIXME to not mention
6081 (MMIX_rJ_REGNUM): New define_constants constant.
6082 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
6083 "*movdicc_real"): Adjust contraints formatting.
6084 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
6085 for branch prediction.
6086 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
6088 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
6089 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
6090 number. Delete related FIXMEs.
6091 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
6092 from number to MMIX_rJ_REGNUM.
6093 (TARGET_MASK_BRANCH_PREDICT): New.
6094 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
6095 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
6096 value. Add -mbranch-predict and -mno-branch-predict.
6097 (TARGET_VERSION): Drop date.
6098 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
6099 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
6100 for finding out global symbols.
6101 (mmix_asm_output_labelref): Revert condition for global symbol.
6102 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
6103 (mmix_print_operand_punct_valid_p): A '+' is valid.
6105 See ChangeLog.6 for earlier changes.