1 2002-02-28 Kazu Hirata <kazu@hxi.com>
3 * config/h8300/h8300.c: Fix formatting.
4 * config/h8300/h8300.h: Likewise.
6 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
8 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
9 which may overwrite the high byte of the frame pointer.
11 2002-02-28 Bo Thorsen <bo@suse.de>
13 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
14 (STARTFILE_SPEC): Add 64 bit files.
15 (ENDFILE_SPEC): Likewise.
17 2002-02-25 Jason Merrill <jason@redhat.com>
19 * c-decl.c (finish_function): Only warn about missing return
20 statement with -Wreturn-type.
22 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
24 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
26 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
27 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
29 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
31 * basic-block.h (BB_REACHABLE): Renumber.
32 (BB_DIRTY, BB_NEW): New flags.
33 (clear_bb_flags): Declare.
34 (update_life_info_in_dirty_blocks): Declare.
35 * cfg.c (clear_bb_flags): New function.
36 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
37 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
38 reorder_insns, emit_insn_after): Mark block as dirty.
39 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
40 (update_life_info_in_dirty_blocks): New function.
41 * recog.c (apply_change_group): Dirtify block.
43 * cse.c (cse_insn): Reorder emitting of jump insn to keep
45 * gcse.c (delete_null_pointer_checks): Likewise.
47 * toplev.c (dump_file_index): Move cse2 after bp,
49 (dump_file_info): Similary.
50 (rest_of_compilation): Avoid most of CFG rebuilds;
51 do first if converision after null pointer checks, do cse2
52 after branch prediction; avoid full liveness rebuild after
54 * invoke.texi (-d options): Document -du, renumber.
56 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
57 (notice_new_block): Do not set BB_UPDATE_LIFE.
58 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
59 merge_blocks_move_successor_nojumps, merge_blocks,
60 try_crossjump_to_edge): Likewise.
61 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
62 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
63 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
64 (merge_of_block): Do not use life_data_ok.
65 (find_if_case_1): Do not use SET_UPDATE_LIFE.
66 (if_convert): Use BB_DIRTY mechanizm to update life.
67 * lcm.c (optimize_mode_switching): Update
68 update_life_info_in_dirty_blocks
70 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
72 * Makefile.in (integrate.o): Update.
73 * c-decl.c (copy_lang_decl): Rename.
74 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
75 * integrate.c: Include langhooks.h.
76 (copy_decl_for_inlining): Update to use langhook.
77 * langhooks-def.h (lhd_do_nothing_t,
78 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
79 (LANG_HOOKS_INITIALIZER): Update.
80 * langhooks.c (lhd_do_nothing_t): New.
81 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
82 * tree.h (copy_lang_decl): Remove.
84 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
86 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
88 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
89 POST_DEC, and POST_MODIFY.
91 2002-02-27 Zack Weinberg <zack@codesourcery.com>
93 * c-typeck.c (digest_init): Remove unused parameter; all
96 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
98 * expmed.c (expand_shift): Correctly test for low part of a
101 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
103 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
104 insn UIDs with insn addresses.
106 2002-02-27 Zack Weinberg <zack@codesourcery.com>
108 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
109 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
110 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
111 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
112 gcc.c, toplev.c: Delete code implementing -traditional mode.
114 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
115 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
116 Document removal of -traditional mode for compilation, and
117 remove documentation only relevant to that mode.
119 * config/nextstep.h, config/ptx4.h, config/svr4.h,
120 config/convex/convex.h, config/d30v/d30v.h,
121 config/i386/dgux.h, config/i386/osf1elf.h,
122 config/i386/osfelf.h, config/i386/osfrose.h,
123 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
124 config/m68k/hp310.h, config/m88k/dgux.h,
125 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
126 config/m88k/m88k.h, config/m88k/openbsd.h,
127 config/mips/abi64.h, config/mips/osfrose.h,
128 config/mips/svr4-5.h, config/mips/svr4-t.h,
129 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
130 config/stormy16/stormy16.h: Remove all references to
131 -traditional from target specs. Delete all mention of the
132 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
133 delete a couple of commented-out definitions of
134 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
137 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
138 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
140 2002-02-27 Zack Weinberg <zack@codesourcery.com>
142 * mklibgcc.in: Don't use \n in a line subject to
143 interpretation by echo.
145 2002-02-27 Graham Stott <grahams@redhat.com>
147 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
150 * loop.c (prescan_loop): Handle PARALLEL.
152 * unroll.c (loop_iterations): Return 0 if the add_val for
155 * final.c (output_operand_lossage): Constify PFX_STR.
157 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
159 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
161 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
162 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
164 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
166 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
168 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
170 * cpplex.c (_cpp_lex_token): Handle directives in macro
172 * cpplib.c (_cpp_handle_directive): Save and restore state
173 if parsing macro args when entering a directive.
174 * cppmacro.c (collect_args): No need to handle directives
176 (enter_macro_context, replace_args): Use the original macro
177 definition in case it was redefined whilst collecting arguments.
181 2002-02-26 David Edelsohn <edelsohn@gnu.org>
183 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
184 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
185 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
187 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
188 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
189 (load_toc_v4_PIC_2): Same.
191 2002-02-26 Alan Modra <amodra@bigpond.net.au>
193 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
195 2002-02-26 Richard Henderson <rth@redhat.com>
197 * config/alpha/alpha.md (ashldi_se): Re-enable.
199 2002-02-26 Richard Henderson <rth@redhat.com>
201 * config/alpha/alpha.c (alpha_encode_section_info): Examine
202 MODULE_LOCAL_P; improve commentary.
204 2002-02-26 Zack Weinberg <zack@codesourcery.com>
206 * doc/cpp.texi: Clarify documentation of relationship between
209 2002-02-26 Kazu Hirata <kazu@hxi.com>
211 * config/h8300/h8300-protos.h: Update the prototype for
212 compute_logical_op_length. Add the prototype for
213 compute_logical_op_cc.
214 * config/h8300/h8300.c (compute_logical_op_length): Figure out
216 (compute_logical_op_cc): New.
217 * config/h8300/h8300.md: Combine all the logical op patterns
218 in HImode and SImode. Use compute_logical_op_cc.
220 2002-02-26 Kelley Cook <kelleycook@comcast.net>
222 * config/i386/i386.c (print_operand): Don't append ATT-style
223 length suffixs to x87 opcodes when in Intel mode.
225 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
227 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
228 (init_emit_once): Update calls.
229 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
230 (init_syntax_once): Prototype.
232 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
234 * pa-linux.h (LIB_SPEC): Update definition.
235 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
237 2002-02-26 Richard Henderson <rth@redhat.com>
239 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
240 if we emitted a stop bit.
242 2002-02-26 Jakub Jelinek <jakub@redhat.com>
244 * configure.in (libgcc_visibility): Substitute.
245 * configure: Rebuilt.
246 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
247 defined symbols .hidden.
249 2002-02-26 Jakub Jelinek <jakub@redhat.com>
251 * attribs.c (c_common_attribute_table): Add visibility.
252 (handle_visibility_attribute): New function.
253 * varasm.c (assemble_visibility): New function.
254 * output.h (assemble_visibility): Add prototype.
255 * tree.h (MODULE_LOCAL_P): Define.
256 * crtstuff.c (__dso_handle): Use visibility attribute.
257 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
258 for MODULE_LOCAL_P symbols too.
259 * config/ia64/ia64.c (ia64_encode_section_info): Handle
260 MODULE_LOCAL_P symbols the same way as local symbols.
261 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
262 into .sdata/.sbss by the user.
263 * doc/extend.texi (Function Attributes): Document visibility
266 2002-02-26 Jakub Jelinek <jakub@redhat.com>
269 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
270 STRING_CST initializer spanning the whole variable without
272 If expand_expr returned MEM, don't use it.
274 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
276 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
277 generate a die for the lexical block.
279 2002-02-26 Kazu Hirata <kazu@hxi.com>
281 * config/h8300/h8300-protos.h: Add a prototype for
282 compute_logical_op_length.
283 * config/h8300/h8300.c (compute_logical_op_length): New.
284 * config/h8300/h8300.md (anonymous logical patterns): Use
285 compute_logical_op_length for length.
287 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
289 * dwarf2out.c (modified_type_die): Do not call type_main_variant
291 (gen_type_die): Same.
293 * attribs.c (handle_vector_size_attribute): Set debug information.
295 2002-02-26 Daniel Egger <degger@fhm.edu>
297 * config/rs6000/rs6000.md: Swap define_insn attributes to
298 fix incorrect generation of merge high instructions instead
301 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
303 * c-typeck.c (really_start_incremental_init): Use
304 bitsize_zero_node for vectors.
306 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
308 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
309 ("*set_vrsave_internal"): Same.
311 2002-02-25 Richard Henderson <rth@redhat.com>
313 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
314 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
316 2002-02-25 Jakub Jelinek <jakub@redhat.com>
319 * config/i386/i386.c (ix86_return_pops_args): Only pop
320 fake structure return argument if it was passed on the stack.
322 2002-02-25 Jason Merrill <jason@redhat.com>
324 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
327 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
329 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
330 link with shared_name only.
331 * doc/invoke.texi (Link Options): Document new behavior.
333 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
335 * c-typeck.c (push_init_level): Handle vectors.
337 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
339 * config/sparc/sparc.c (const64_high_operand): Zero-extend
340 operands of SPARC_SETHI_P.
341 (input_operand): Likewise.
342 (sparc_emit_set_const32): Likewise.
343 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
344 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
345 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
346 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
347 (movdi_insn_sp64_vis): Likewise.
348 (movdi split, movdf split): Use SETHI32.
349 * doc/md.texi: Document SPARC constraints L, M and N.
351 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
353 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
354 ("*set_vrsave_internal"): use mfspr for Darwin.
356 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
357 gen_get_vrsave_internal.
359 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
361 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
363 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
365 * cpplex.c (cpp_interpret_charconst): Get signedness or
366 otherwise of wide character constants correct.
367 * cppexp.c (lex): Get signedness of wide charconsts correct.
369 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
371 * optabs.c (widen_operand): Only call convert_modes for
372 promoted SUBREG if signedness matches.
373 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
375 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
377 * cpplib.c (glue_header_name): Use local buffer to build up
380 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
382 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
384 2002-02-23 Kazu Hirata <kazu@hxi.com>
386 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
387 H8/300[HS] separately.
388 * config/h8300/h8300.md: Remove the early clobber constraint
389 from bit field patterns.
391 2002-02-23 Kazu Hirata <kazu@hxi.com>
393 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
395 (mulhisi3): Likewise.
396 (umulqisi3): Likewise.
397 (umulhisi3): Likewise.
399 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
401 * cppinit.c (output_deps): Correct test for stdout output.
402 (init_dependency_output): Cure warning.
404 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
406 * expr.c (store_expr): When converting expression to promoted
407 equivalent type, allow using SUBREG_REG of TARGET as the target
408 of the expansion of EXP.
409 * loop.c (basic_induction_var, case SUBREG): Always look inside.
410 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
411 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
412 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
413 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
415 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
417 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
418 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
419 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
421 2002-02-23 Jakub Jelinek <jakub@redhat.com>
424 * loop.c (scan_loop): Update reg info if move_movables created new
427 2002-02-23 David Edelsohn <edelsohn@gnu.org>
429 * gcc.c (init_gcc_spec): Revert last change.
431 2002-02-23 David Edelsohn <edelsohn@gnu.org>
433 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
434 gpc_reg_operand constraint.
436 2002-02-23 Alan Modra <amodra@bigpond.net.au>
438 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
439 Simplify comparison of `low'.
440 (add_operand): Fix formatting.
441 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
442 (mask_operand): Disallow mask to wrap in 64-bit mode.
443 (rs6000_stack_info): Remove redundant test setting push_p.
444 (output_toc): Fix formatting.
445 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
446 cc_reg_not_cr0_operand constraint.
447 (booldi3, boolcdi3 splitters): Same.
449 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
451 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
453 2002-02-22 David Edelsohn <edelsohn@gnu.org>
455 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
456 gcc invoked with -shared-libgcc.
458 2002-02-22 Jakub Jelinek <jakub@redhat.com>
461 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
462 decl if any of elements was TREE_USED.
464 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
466 * config/sparc/sol2.h: Don't include sys/mman.h.
467 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
468 (arith_4096_operand): Don't throw high bits away.
469 (const64_operand): Take sign extension of CONST_INTs into account.
470 (const64_high_operand, sparc_emit_set_const32): Likewise.
471 (GEN_HIGHINT64): Likewise.
472 (sparc_emit_set_const64_quick1): Likewise.
473 (const64_is_2insns): Likewise.
474 (print_operand): Use trunc_int_for_mode for sign extension.
475 * config/sparc/sparc.h (SMALL_INT32): Likewise.
476 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
477 chars. Assume CONST_INT is already properly sign-extended.
478 (movdi split): Sign-extend each SImode part.
479 (andsi3 split): Don't mask high bits off, so that result
480 remains properly sign-extend.
481 (iorsi3 split): Likewise.
482 (xorsi3 split): Likewise.
484 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
486 * fold-const.c (fold): Fix typo in comments.
488 2002-02-21 Diego Novillo <dnovillo@redhat.com>
490 * Makefile.in (langhooks.o): Update dependencies.
492 2002-02-21 Diego Novillo <dnovillo@redhat.com>
494 * langhooks.c: Include flags.h.
496 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
498 * testsuite/gcc.dg/attr-alwaysinline.c: New.
500 * c-common.c (c_common_post_options): Set inline trees by
503 * doc/extend.texi (Function Attributes): Document always_inline
505 Update documentation about inlining when not optimizing.
507 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
509 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
510 unless DECL_ALWAYS_INLINE.
512 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
513 unless DECL_ALWAYS_INLINE.
514 (c_disregard_inline_limits): Disregard if always_inline set.
516 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
517 Disregard if always_inline set.
518 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
519 unless DECL_ALWAYS_INLINE.
521 * attribs.c (handle_always_inline_attribute): New.
522 (c_common_attribute_table): Add always_inline.
524 * config/rs6000/altivec.h: Add prototypes for builtins
525 requiring the always_inline attribute.
527 2002-02-21 Eric Christopher <echristo@redhat.com>
529 * expmed.c (store_bit_field): Try to simplify the subreg
530 before generating a new one when when the mode size of
531 value is less than maxmode.
533 2002-02-21 Richard Henderson <rth@redhat.com>
535 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
536 than gen_rtx_PLUS to form the sum.
537 * explow.c (force_reg): Rearrange to not allocate new pseudo
538 when force_operand returns a register.
539 * expr.c (expand_assignment): Allow offset_rtx expansion to
540 return a sum. Do not force addresses into registers.
541 (expand_expr): Likewise.
542 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
543 to canonicalize arithmetic that didn't simpify.
544 (simplify_plus_minus): New argument force; update
545 all callers. Don't split CONST unless we can do something with it,
546 and wouldn't lose the constness of the operands.
548 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
549 that we generated earlier.
551 2002-02-21 Tom Tromey <tromey@redhat.com>
553 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
554 (output_line_info): Use constant `1', with a long explanatory
556 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
558 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
560 * jump.c (redirect_jump): If old label has no UID, don't try to
563 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
565 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
566 If input is constant, do shifts at compile time.
568 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
570 * doc/extend.texi: Fix some more overfull hboxes.
572 2002-02-21 Jakub Jelinek <jakub@redhat.com>
575 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
578 2002-02-21 Jakub Jelinek <jakub@redhat.com>
581 * expr.h (expand_and): Add mode argument.
582 * expmed.c (expand_and): Add mode argument.
583 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
584 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
585 * except.c (expand_builtin_extract_return_addr): Likewise.
586 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
587 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
588 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
589 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
590 * config/c4x/c4x.md: Use GEN_INT (x) instead of
591 gen_rtx (CONST_INT, VOIDmode, x).
593 2002-02-21 Jakub Jelinek <jakub@redhat.com>
596 * stmt.c (warn_if_unused_value): Move side effects test once more.
598 2002-02-20 Torbjorn Granlund <tege@swox.com>
600 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
601 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
603 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
605 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
606 SUBREG or ZERO_EXTEND.
608 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
610 * sh.h (current_function_anonymous_args): Remove.
611 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
612 of current_function_varargs and current_function_stdarg is set.
613 * sh.c (sh_expand_prologue): Check current_function_varargs /
614 current_function_stdarg / TARGET_SH5 instead of
615 current_function_anonymous_args.
617 * sh64.h (TARGET_VERSION): Define.
619 2002-02-20 David Edelsohn <edelsohn@gnu.org>
621 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
622 VRSAVE_REGNO on TARGET_ALTIVEC.
624 2002-02-20 Alan Modra <amodra@bigpond.net.au>
626 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
627 bits of SImode const_int.
628 (includes_rshift_p): Likewise.
629 (print_operand): Call mask_operand and mask64_operand with correct
631 (rs6000_output_function_epilogue): Pad traceback table to word.
632 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
633 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
634 mask64_operand with correct mode.
635 (FUNCTION_ARG_REGNO_P): Correct parentheses.
637 2002-02-20 Jakub Jelinek <jakub@redhat.com>
640 * varasm.c (get_pool_constant_mark): New.
641 * rtl.h (get_pool_constant_mark): Add prototype.
642 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
643 be represented if it has not been output.
645 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
647 * combine.c (do_SUBST): Sanity check substitutions of
648 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
649 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
650 CONST_INT into its operand.
651 (known_cond): Likewise, for ZERO_EXTEND.
652 * simplify-rtx.c (simplify_unary_operation): Fix condition to
653 allow for simplification of wide modes. Reject CONST_INTs in
654 ZERO_EXTEND when their actual mode is not given.
656 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
658 * c-decl.c (pushdecl): If no global declaration is found for an
659 extern declaration in block scope, try a limbo one.
661 2002-02-20 Jakub Jelinek <jakub@redhat.com>
664 * c-common.c (pointer_int_sum): Moved from...
665 * c-typeck.c (pointer_int_sum): ...here.
666 * c-common.h (pointer_int_sum): Add prototype.
668 2002-02-20 Jakub Jelinek <jakub@redhat.com>
671 * c-decl.c (duplicate_decls): Return 0 if issued error about
674 2002-02-20 Roger Sayle <roger@eyesopen.com>
675 Jakub Jelinek <jakub@redhat.com>
678 * tree.c (host_integerp): Ensure that the constant integer is
679 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
680 when pos is zero or non-zero respectively. Clarify comment.
681 * c-format.c (check_format_info_recurse): Fix host_integerp
682 usage; the pos argument should be zero when assigning to a
683 signed HOST_WIDE_INT.
685 2002-02-20 Richard Henderson <rth@redhat.com>
687 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
688 of the operand, rather than assuming TImode.
689 (ix86_expand_binop_builtin): Cope with commutative patterns
690 using nonimmediate_operand for both operands.
691 (ix86_expand_timode_binop_builtin): Likewise.
692 (ix86_expand_store_builtin): Validate operand 1.
693 (ix86_expand_unop1_builtin): Likewise.
695 2002-02-20 Philip Blundell <philb@gnu.org>
698 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
700 2002-02-20 Richard Henderson <rth@redhat.com>
703 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
705 2002-02-20 Tom Tromey <tromey@redhat.com>
707 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
708 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
709 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
710 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
711 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
714 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
716 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
717 for (const_int 0) in X not just INTVAL.
719 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
721 * doc/extend.texi: Avoid or reduce overfull hboxes.
723 2002-02-20 Diego Novillo <dnovillo@redhat.com>
725 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
726 operations if the field does not start at a mode boundary.
728 2001-02-20 Joel Sherrill <joel@OARcorp.com>
730 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
731 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
732 Also done for -Acpu and -Amachine.
734 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
736 * cppinit.c (init_dependency_output): Take deps output file
737 from -o if none given with -MF. Suppress normal output.
738 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
739 * doc/cpp.texi, doc/invoke.texi: Update.
741 2002-02-19 Zack Weinberg <zack@codesourcery.com>
743 * toplev.c (output_quoted_string): Write unprintable
744 characters with octal escapes.
746 2002-02-19 David Edelsohn <edelsohn@gnu.org>
748 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
749 really_call_used[VRSAVE_REGNO] if not Altivec.
751 2002-02-19 Alan Modra <amodra@bigpond.net.au>
753 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
755 (constant_pool_expr_1): Fix formatting.
756 (rs6000_legitimize_reload_address): Likewise.
758 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
760 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
761 now that we have one.
763 2002-02-19 Zack Weinberg <zack@codesourcery.com>
765 * tree.h (struct tree_common): Remove aux. Add unused_0 at
766 end of first block of bitfields (which was only seven bits);
767 rename dummy to unused_1; remove comment which is no longer true.
769 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
771 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
773 2002-02-19 Philip Blundell <pb@nexus.co.uk>
776 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
780 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
781 arm_is_longcall_p rather than inspecting call-type cookie
783 (call_value_insn) [TARGET_THUMB]: Likewise.
785 2002-02-19 Graham Stott <grahams@redhat.com>
787 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
789 2002-02-19 David Edelsohn <edelsohn@gnu.org>
791 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
792 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
793 (FP_SAVE_INLINE): Delete.
795 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
796 * config/rs6000/eabi.asm: Remove ABI save restore routines.
797 * config/rs6000/t-ppccomm: Build crtsavres.o.
798 * config/rs6000/crtsavres.asm: New file.
800 2002-02-19 Philip Blundell <philb@gnu.org>
802 * config/arm/arm.c (use_return_insn): Don't reject interrupt
804 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
805 (output_return_instruction): Allow interrupt functions to return with
806 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
807 (arm_expand_prologue): Subtract 4 before stacking LR in an
810 2002-02-19 Philip Blundell <pb@nexus.co.uk>
812 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
813 decl, not just FUNCTION_DECL.
814 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
815 (arm_assemble_integer): Likewise.
816 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
819 2002-02-19 matthew green <mrg@eterna.com.au>
821 * config.gcc (sparc-*-netbsdelf*): Enable target.
822 (sparc64-*-netbsd*): New target.
823 * config/sparc/netbsd-elf.h: New file.
824 * config/sparc/t-netbsd64: New file.
826 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
828 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
830 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
832 * doc/invoke.texi: explicitly list the style guidelines that
835 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
837 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
839 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
842 * gcc.c (cpp_unique_options): Treat -o as indicating object file
843 only if not -E. If -E, pass -o through to the preprocessor.
845 2002-02-19 Kazu Hirata <kazu@hxi.com>
847 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
848 register number with an appropriate macro.
850 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
852 * doc/rtl.texi (Constants): Close @code tag.
854 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
856 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
857 ("mmx_uavgv4hi3"): Same.
858 ("pmulhrwv4hi3"): Same.
860 * tree-inline.c (walk_tree): Handle vectors.
862 * c-common.c (constant_expression_warning): Handle vectors.
863 (overflow_warning): Same.
865 * sched-deps.c (sched_analyze_2): Handle vectors.
867 * rtlanal.c (rtx_unstable_p): Handle vectors.
868 (rtx_varies_p): Same.
869 (count_occurrences): Same.
870 (regs_set_between_p): Same.
871 (modified_between_p): Same.
872 (modified_in_p): Same.
873 (volatile_insn_p): Same.
874 (volatile_refs_p): Same.
875 (side_effects_p): Same.
877 (inequality_comparisons_p): Same.
878 (replace_regs): Same.
879 (computed_jump_p_1): Same.
881 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
883 (inner_mode_array): New.
884 (copy_rtx): Handle vectors.
885 (copy_most_rtx): Same.
887 (get_mode_alignment): Adjust for vectors.
889 * resource.c (mark_referenced_resources): Handle vectors.
890 (mark_set_resources): Same.
892 * reload1.c (eliminate_regs): Handle vectors.
893 (elimination_effects): Same.
894 (scan_paradoxical_subregs): Same.
896 * reload.c (subst_reg_equivs): Handle vectors.
898 * regrename.c (scan_rtx): Handle vectors.
900 * regclass.c (reg_scan_mark_refs): Handle vectors.
902 * recog.c (find_single_use_1): Handle vectors.
904 * local-alloc.c (equiv_init_varies_p): Handle vectors.
905 (contains_replace_regs): Same.
906 (memref_referenced_p): Same.
908 * integrate.c (copy_rtx_and_substitute): Handle vectors.
909 (subst_constants): Same.
911 * genattrtab.c (attr_copy_rtx): Handle vectors.
912 (encode_units_mask): Same.
913 (clear_struct_flag): Same.
914 (count_sub_rtxs): Same.
916 * gcse.c (want_to_gcse_p): Handle vectors.
917 (oprs_unchanged_p): Same.
919 (oprs_not_set_p): Same.
920 (expr_killed_p): Same.
921 (compute_transp): Same.
922 (store_ops_ok): Same.
924 * function.c (purge_addressof_1): Do not allow paradoxical subregs
926 (fixup_var_refs_1): Same.
927 (instantiate_virtual_regs_1): Same.
929 * fold-const.c (operand_equal_p): Handle vectors.
931 (rtl_expr_nonnegative_p): Same.
933 * flow.c (mark_used_regs): Handle vectors.
935 * df.c (df_uses_record): Handle vectors.
937 * cselib.c (cselib_subst_to_values): Handle vectors.
938 (cselib_mem_conflict_p): Same.
941 * cse.c (canon_reg): Handle vectors.
943 (cse_process_notes): Same.
944 (count_reg_usage): Same.
947 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
949 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
951 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
952 (gen_rtx): Handle CONST_VECTOR.
953 (gen_const_vector_0): New.
954 (copy_rtx_if_shared): CONST_VECTORs can be shared.
955 (reset_used_flags): Same.
957 (initializer_constant_valid_p): Handle VECTOR_CST.
959 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
961 * doc/rtl.texi (Constants): Document const_vector.
962 (CONST0_RTX): Update for vectors.
965 * print-tree.c (print_node): Add case for VECTOR_CST.
967 * tree.h (TREE_VECTOR_CST_ELTS): New.
968 (struct tree_vector): New.
969 (union tree_node): Add vector node.
970 (build_vector): Add prototype.
972 * tree.def (VECTOR_CST): New.
974 * tree.c (build_vector): New.
976 * expmed.c (make_tree): Handle CONST_VECTOR.
978 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
979 (CONST_VECTOR_ELT): New.
980 (CONST_VECTOR_NUNITS): New.
982 * machmode.h (GET_MODE_INNER): New.
983 (DEF_MACHMODE): Accept 8th arg.
985 * machmode.def: Add 8th argument for vector inner mode.
986 Add inner vector modes for vectors.
988 * rtl.def (VEC_CONST): Remove.
991 * expr.c (clear_storage): Allow vectors.
992 (is_zeros_p): Handle VECTOR_CST.
994 * varasm.c (output_constant_pool): Handle vectors.
995 (rtx_const): Add veclo and vechi fields.
996 (kind): Add RTX_VECTOR.
997 (decode_rtx_const): Add case for vector.
999 * config/rs6000/rs6000-protos.h: Add zero_constant.
1001 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
1002 constants. Force easy vector constants into memory.
1003 (easy_vector_constant): New.
1004 (emit_easy_vector_constant): New.
1005 (rs6000_legitimize_reload_address): Do not generate bad reloads on
1008 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
1010 ("altivec_lvxl"): Same.
1011 (altivec_lvebx): Same.
1012 (altivec_lvehx): Same.
1013 (altivec_lvewx): Same.
1014 ("*movv4si_const0"): New.
1015 ("*movv4sf_const0"): New.
1016 ("*movv8hi_const0"): New.
1017 ("*movv16qi_const0"): New.
1019 2002-02-18 Kazu Hirata <kazu@hxi.com>
1021 * config/h8300/h8300.c (notice_update_cc): Use
1024 2002-02-18 Kazu Hirata <kazu@hxi.com>
1026 * config/h8300/h8300.md (divmod patterns): Change the
1027 constraints for operands[1] to register_operand.
1029 2002-02-18 Kazu Hirata <kazu@hxi.com>
1031 * config/h8300/h8300-protos.h: Remove the prototype for
1033 * config/h8300/h8300.c (p_operand): Remove.
1034 * config/h8300/h8300.md: Replace p_operand with
1037 2002-02-18 Philip Blundell <pb@nexus.co.uk>
1039 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
1041 (output_return_instruction): Allow use of LDR to unstack
1042 return addresss even for interrupt handlers or when
1043 interworking. If compiling for ARMv5, use interworking-safe
1044 return instructions by default. Remove duplicated code and
1045 lengthy "strcat" sequences.
1047 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1049 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
1050 (LINK_EH_SPEC): Define.
1051 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
1053 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
1055 * config/s390/s390.c (s390_emit_prologue): Do not set the
1056 frame_related flag for call-clobbered registers.
1058 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
1060 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
1061 (construct_container): Fix handling of SSE operands.
1062 (ix86_expand_builtin): Fix handling of 64bit pointers.
1063 (mmx_maskmovq_rex): New pattern.
1065 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
1067 * regrename.c (kill_set_value): Handle subregs properly.
1069 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
1071 * objc/objc-act.c (handle_impent): Remove leading '*'
1072 from objc_class_name.
1074 2002-02-17 Richard Henderson <rth@redhat.com>
1076 * config/alpha/alpha.c (some_small_symbolic_operand,
1077 some_small_symbolic_operand_1, split_small_symbolic_operand,
1078 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
1079 Handle small SYMBOL_REFs anywhere, not just inside memories.
1080 * config/alpha/alpha-protos.h: Update.
1081 * config/alpha/alpha.h (PREDICATE_CODES): Update.
1082 * config/alpha/alpha.md (small symbolic operand splitter): Update.
1084 2002-02-17 Roland McGrath <roland@frob.com>
1086 * config.gcc (powerpc-*-gnu-gnualtivec*,
1087 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
1088 * config/rs6000/gnu.h: New file.
1089 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
1090 Grok "gnu" in rs6000_abi_name.
1091 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
1092 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
1093 Grok -mcall-gnu analogous to -mcall-linux et al.
1094 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
1095 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
1096 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
1098 2002-02-17 Jakub Jelinek <jakub@redhat.com>
1101 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
1104 2002-02-17 Philipp Thomas <pthomas@suse.de>
1106 * config/cris/cris.h: Undefine STARTFILE_SPEC and
1107 ENDFILE_SPEC before (re)defining them.
1109 2002-02-17 Kazu Hirata <kazu@hxi.com>
1111 * config/h8300/h8300.c: Fix formatting.
1112 * config/h8300/h8300.h: Likewise.
1114 2002-02-17 Philipp Thomas <pthomas@suse.de>
1116 * doc/tm.texi: Explain why empty strings should not be
1117 marked for translation.
1119 2002-02-17 Philipp Thomas <pthomas@suse.de>
1121 * final.c (output_operand_lossage): Changed to accept
1122 printf style arguments. Change calls where necessary.
1123 * output.h (output_operand_lossage): Change declaration
1124 accordingly. Update copyright.
1125 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
1126 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
1127 Update copyright date where necessary.
1129 * config/i386/i386.c (print_operand): Likewise. Remove use of
1132 * config/cris/cris.c (cris_operand_lossage): Likewise.
1133 Rename parameter so that exgettext recognizes it as
1134 translatable message.
1135 (LOSE_AND_RETURN): Rename parameter to msgid.
1137 2002-02-17 Kazu Hirata <kazu@hxi.com>
1139 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
1140 hard coded register number with an appropriate macro.
1141 (HARD_REGNO_MODE_OK): Likewise.
1142 (ARG_POINTER_REGNUM): Likewise.
1143 (STATIC_CHAIN_REGNUM): Likewise.
1144 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
1145 * config/h8300/h8300.md (define_constants): Define more
1148 2002-02-17 Philipp Thomas <pthomas@suse.de>
1150 * config/i386/i386.h: Don't mark empty strings for translation.
1152 2002-02-16 H.J. Lu <hjl@gnu.org>
1154 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
1156 2002-02-16 Zack Weinberg <zack@codesourcery.com>
1158 * cppinit.c (merge_include_chains): Check for brack being
1159 NULL before attempting to merge it with qtail.
1161 2002-02-16 Andrew Cagney <ac131313@redhat.com>
1163 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
1166 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
1168 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
1170 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
1172 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
1173 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
1174 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
1176 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1178 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
1179 now only if !TARGET_FIX.
1180 (*movsi_nt_vms_fix): New pattern.
1182 2002-02-16 Douglas B Rupp <rupp@gnat.com>
1184 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
1185 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
1186 (alpha_sa_mask, alpha_sa_size): Reflect above change.
1187 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
1188 (alpha_start_function, alpha_expand_epilogue): Likewise.
1189 (unicosmk_gen_dsib): Likewise.
1191 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1193 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
1195 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
1197 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
1198 check_and_change_labels, s390_final_chunkify): Delete.
1199 (s390_split_branches, s390_chunkify_pool): New functions.
1200 (s390_function_prologue): Call them.
1202 * config/s390/s390.h (S390_REL_MAX): Delete.
1203 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
1205 * config/s390/s390.md (cjump, icjump, jump): Fix length
1206 attribute calculation.
1209 2002-02-15 David Edelsohn <edelsohn@gnu.org>
1211 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
1212 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
1214 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
1216 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
1217 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
1218 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
1220 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
1222 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
1224 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
1226 * reload.c (find_dummy_reload): Check that an output register
1227 is valid for its mode.
1229 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
1231 * combine.c (known_cond): After replacing the REG of a SUBREG, try
1234 * function.c (assign_parms): Demote promoted argument passed by
1235 transparent reference.
1237 2001-02-14 Joel Sherrill <joel@OARcorp.com>
1239 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
1240 -Acpu() and -Amachine() to eliminate warnings.
1242 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
1244 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
1246 2002-02-14 Kazu Hirata <kazu@hxi.com>
1248 * config/h8300/h8300-protos.h: Update the prototype for
1250 * config/h8300/h8300.c (const_costs): Treat SET as a little
1251 more expensive operation.
1252 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
1253 reference to const_costs.
1255 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
1257 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
1259 2002-02-14 Jakub Jelinek <jakub@redhat.com>
1262 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
1263 use arguments from newtype.
1265 2002-02-13 Eric Christopher <echristo@redhat.com>
1267 * config/mips/mips.c (override_options): Add check for march/mipsX
1268 on the same command line. Fix error message in cpu processing.
1269 Remove architecture and ISA checks.
1271 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
1273 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
1275 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
1277 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
1279 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
1281 ("*movv8hi_internal1"): Same.
1282 ("*movv16qi_internal1"): Same.
1283 ("*movv4sf_internal1"): Same.
1285 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
1286 not push_reload for altivec modes.
1288 2002-02-13 Joel Sherrill <joel@OARcorp.com>
1290 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
1291 all RTEMS targets including removal of #includes from config/*/rtems*.h
1292 file and adding them to tm_file setting. Added xm_defines=POSIX to
1294 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
1295 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
1296 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
1297 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
1298 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
1299 config/m68k/rtemself.h: Ditto.
1300 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
1301 config/mips/rtems64.h: Ditto.
1302 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
1303 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
1305 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
1306 config/sparc/rtemself.h: Ditto.
1307 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
1308 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
1309 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
1311 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
1312 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
1313 target made more similar to i386-elf.
1314 * config/i386/t-rtems-i386: Added soft float support and multilibs.
1315 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
1316 be similar to config/m68k/t-m68kelf.
1317 * gthr-rtems.h: Encapsulate with extern "C" for C++.
1319 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
1321 * regmove.c (kill_value): Handle subregs.
1323 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
1325 * i386.md (mul patterns): Allow memory operand to be first;
1326 add expanders where needed; fix constraints.
1327 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
1328 Allow memory operand to be the first.
1330 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
1333 2002-02-13 Jakub Jelinek <jakub@redhat.com>
1336 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
1339 2002-02-13 Jakub Jelinek <jakub@redhat.com>
1341 PR optimization/5547:
1342 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
1343 all valid IA-32 address modes involving non-scaled %ebx and
1344 GOT/GOTOFF as displacement.
1346 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
1348 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
1349 after emitting ltorg insns.
1351 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
1352 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
1353 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
1354 *abssf2): Fix "op_type" attribute.
1356 2002-02-13 Douglas B Rupp <rupp@gnat.com>
1358 * mkconfig.sh: Avoid using a subshell redirect.
1359 ($output.T): Change to $(output)T.
1360 (ENABLE_NLS): Remove unneeded undef.
1362 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
1363 * config/alpha/x-vms (libsubdir): Define.
1365 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
1366 register frame procedures. Optimize retrieving context.
1368 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
1369 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
1370 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
1372 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1374 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
1375 Make same change as for find_base_value.
1377 2002-02-13 Kazu Hirata <kazu@hxi.com>
1379 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
1380 of QImode and SImode.
1382 2002-02-13 Kazu Hirata <kazu@hxi.com>
1384 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
1385 length computation of movsi.
1386 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
1388 2002-02-13 Kazu Hirata <kazu@hxi.com>
1390 * config/h8300/h8300.md (subqi3): Tighten the predicate for
1391 operands[2] to register_operand.
1393 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
1395 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
1397 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
1399 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
1400 for altivec_lvx* and altivec_stvx*.
1401 ("*movv4si_internal"): Add constraint for loading from GPRs.
1402 ("*movv8hi_internal1"): Same.
1403 ("*movv16qi_internal1"): Same.
1404 ("*movv4sf_internal1"): Same.
1406 * config/rs6000/rs6000.c (altivec_register_operand): New.
1408 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
1409 altivec_register_operand.
1411 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
1413 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
1416 2002-02-13 Stan Shebs <shebs@apple.com>
1418 * c-typeck.c (digest_init): Handle vectors.
1419 (really_start_incremental_init): Same.
1420 (pop_init_level): Same.
1421 (process_init_element): Same.
1423 * varasm.c (output_constant): Same.
1425 * expr.c (clear_storage): Same.
1426 (store_constructor): Same.
1428 2002-02-12 Eric Christopher <echristo@redhat.com>
1430 * explow.c (hard_function_value): Add comment explaining
1431 signed/unsigned comparison.
1433 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1435 * jump.c (never_reached_warning): Add finish argument.
1436 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
1437 real insn after end.
1438 * rtl.h (never_reached_warning): Adjust prototype.
1439 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
1440 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
1441 never_reached_warning.
1443 2002-02-12 Graham Stott <grahams@redhat.com>
1445 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
1447 2002-02-12 Kazu Hirata <kazu@hxi.com>
1449 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
1450 logical shifts on H8/300.
1451 (shift_alg_si): Improve several shifts on H8/300.
1452 (get_shift_alg): Likewise.
1454 2002-02-12 Graham Stott <grahams@redhat.com>
1456 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
1458 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1460 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
1461 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
1463 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
1465 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
1466 non-CONST_INT through default_assemble_integer.
1467 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
1468 <case 8>: Abort for CONST_DOUBLE.
1470 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
1472 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
1474 * config/pa/pa-linux.h (LIB_SPEC): Delete.
1475 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
1477 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
1479 * config/stormy16/stormy16.md (zero_extendqihi2): New.
1481 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
1483 * regrename.c (regrename_optimize): Don't accept a
1484 part-clobbered register if the replaced register is not part
1487 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
1488 take padding into account when computing the argument value.
1490 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
1492 * combine.c (try_combine): Apply substitutions in
1493 CALL_INSN_FUNCTION_USAGE too.
1495 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
1497 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
1498 __builtin_altivec_abs*.
1501 * config/rs6000/rs6000.h (rs6000_builtins): Add
1502 ALTIVEC_BUILTIN_ABS*.
1504 * config/rs6000/altivec.h: Use const char for builtins expecting
1506 (vec_abs): New versions for C and C++.
1509 2002-02-10 Kazu Hirata <kazu@hxi.com>
1511 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
1514 2002-02-10 Kazu Hirata <kazu@hxi.com>
1516 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
1517 constant definition from h8300.md.
1518 (FRAME_POINTER_REGNUM): Likewise.
1519 * config/h8300/h8300.md (define_constants): Add FP_REG.
1521 2002-02-10 Kazu Hirata <kazu@hxi.com>
1523 * config/h8300/h8300.c (print_operand): Remove redundant code.
1525 2002-02-10 Kazu Hirata <kazu@hxi.com>
1527 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
1528 * config/h8300/h8300.c (byte_reg): Make it static.
1530 2002-02-10 Richard Henderson <rth@redhat.com>
1533 * c-typeck.c (incomplete_type_error): Handle flexible array members.
1535 2002-02-10 Richard Henderson <rth@redhat.com>
1538 * tree.c (append_random_chars): Don't abort if main_input_filename
1541 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
1543 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
1545 2002-02-10 Kazu Hirata <kazu@hxi.com>
1547 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
1548 (pushhi1): Likewise.
1550 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
1552 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
1553 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
1555 2002-02-09 David O'Brien <obrien@FreeBSD.org>
1557 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
1559 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
1561 2002-02-09 Kazu Hirata <kazu@hxi.com>
1563 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
1564 a half of an SImode register on H8/300.
1566 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
1568 * i386.md (movdi_2): Add missing '!'.
1570 2002-02-09 Kazu Hirata <kazu@hxi.com>
1572 * config/h8300/h8300.h: Fix formatting. Remove commented-out
1575 2002-02-09 Kazu Hirata <kazu@hxi.com>
1577 * config/h8300/h8300.md (length): Correct the distance valid
1578 for the short branch.
1580 2002-02-09 Kazu Hirata <kazu@hxi.com>
1582 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
1584 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
1586 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
1587 registers in SImode.
1588 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
1591 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
1594 Contribute sh64-elf.
1595 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
1596 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
1597 (sh_cannot_modify_jumps_p): New function.
1598 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
1599 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
1600 (sh_ms_bitfield_layout_p): New function.
1601 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
1602 Zack Weinberg <zack@codesourcery.com>
1603 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
1604 expand_simple_binop instead of expand_binop.
1605 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
1606 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
1607 use of .quad and .uaquad.
1608 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
1609 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
1610 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1611 * config/sh/sh.md (movdi_const, movdi_const_32bit,
1612 movdi_const_16bit): Make sure all CONSTs have modes.
1613 (sym2PIC): Ditto, but by adjusting all callers.
1614 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
1615 if the prologue calls the SHmedia argument decoder or register
1617 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1618 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
1619 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
1620 (sh_expand_epilogue): Don't emit USE of return target register.
1621 (prepare_move_operands): Legitimize DImode PIC addresses.
1622 (sh_media_register_for_return): Skip tr0, used to initialize the
1624 (sh_expand_prologue): Remove explicit USE of return register.
1625 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
1626 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
1627 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
1628 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
1629 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
1631 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
1632 (MOVI_SHORI_BASE_OPERAND_P): New.
1633 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
1634 (EXTRA_CONSTRAINT_T): Define in terms of them.
1635 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
1636 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
1637 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
1638 alternatives supporting TARGET_REGS.
1639 (UNSPEC_GOTPLT): New constant.
1640 (movdi split): Move incrementing of LABEL_NUSES...
1641 (movdi_const, movdi_const_32bit): Here. Use
1642 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
1643 (movdi_const_16bit): New.
1644 (call, call_value) [flag_pic]: Use GOTPLT.
1645 (call_pop, call_value_pop): New expands.
1646 (call_pop_compact, call_pop_rettramp): New insns.
1647 (call_value_pop_compact, call_value_pop_rettramp): New insns.
1648 (sibcall) [flag_pic]: Use GOT.
1649 (builtint_setjmp_receiver): Remove bogus, unused expand.
1650 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
1651 (*pt, *ptb, ptrel): New insns.
1652 (sym2GOT): Handle DImode GOT.
1653 (sym2GOTPLT, symGOTPLT2reg): New expands.
1654 (sym2PIC): New expand.
1655 (shcompact_return_tramp): Use GOTPLT to return trampoline.
1656 (shcompact_return_tramp_i): Use return register explicitly.
1657 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
1658 disable flag_reorder_blocks.
1659 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
1660 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
1661 clobbers, for clarity.
1662 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
1663 restoring of r0 in macl as MAYBE_DEAD.
1664 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1665 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
1666 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
1667 alter_subreg all over.
1668 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
1669 reload, instead of emitting instructions that would require
1671 (casesi_load_media): Add missing modes.
1672 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
1673 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
1674 as used if the argument decoder is called.
1675 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
1676 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
1677 Pmode, then extend it to DImode if necessary.
1678 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
1679 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
1680 constants in FPU-enabled SHmedia, let them be loaded from memory.
1681 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
1682 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
1683 Adjust whitespace in assembly output templates.
1684 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
1685 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
1686 mode of if_then_else.
1687 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
1688 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
1690 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
1691 Joern Rennecke <amylaar@redhat.com>
1692 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
1693 (SUBTARGET_CPP_PTR_SPEC): New.
1694 (SUBTARGET_CPP_SPEC): Remove.
1695 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
1696 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
1697 Fix typo in previous checkin.
1698 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
1699 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
1700 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
1701 Alexandre Oliva <aoliva@redhat.com>
1702 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
1703 what single FP register can hold for SHmedia target.
1704 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
1705 Alexandre Oliva <aoliva@redhat.com>
1706 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
1707 Do not split into SUBREG.
1708 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
1709 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
1710 and added new functions as specified in SH5 ABI r9.
1711 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
1712 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
1714 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
1715 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
1716 gen_consttable_4 and gen_consttable_8. Emit multiple labels
1717 and consttable_window_ends.
1718 2001-06-03 Graham Stott <grahams@redhat,com>
1719 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
1720 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
1721 * config/sh/sh.c (print_operand): Handle floating-point pair,
1722 vector and matrix registers.
1723 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
1724 vector modes into account.
1725 * config/sh/sh.md (movv2sf): Split move between registers into
1727 (movv4sf, movv16sf): Introduce insns that get split only after
1729 * config/sh/shmedia.h: Fix Copyright dates.
1730 * config/sh/ushmedia.h: Likewise. Move loop counter
1731 declarations into conditionals that uses them.
1732 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
1734 * config/sh/sshmedia.h: Fix Copyright dates.
1735 (sh_media_PUTCFG): Fix constraints.
1736 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
1737 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
1738 ptrmemfunc_vbit_in_delta for SH5.
1739 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
1740 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
1741 * invoke.texi: Likewise.
1742 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
1743 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
1744 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
1745 GCC_pop_shmedia_regs_nofpu): New global symbols.
1746 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
1747 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
1748 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
1749 compact function with nonlocal labels.
1750 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
1751 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
1752 (initial_elimination_offset): Account for their stack space.
1753 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
1754 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
1755 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
1756 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
1757 least one of the operands to be a register.
1758 (movv2sf): Likewise. Renamed to movv2sf_i.
1759 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
1760 prepare_move_operands() before emitting SHmedia insns.
1761 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
1762 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
1763 Don't save nor initialize r12. Don't mis-align the stack.
1764 Pad the code with a nop.
1765 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
1767 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
1768 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
1769 [__SHMEDIA__]: Implement.
1770 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
1771 * config/sh/sh.md: Set latency of `pt' closer to reality.
1772 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
1773 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
1774 Set move, load and store type attributes.
1775 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
1776 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
1778 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
1779 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
1780 * config/sh/sh.c (sh_media_register_for_return): New function.
1781 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
1782 branch-target register.
1783 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
1784 * config/sh/sh.md (return_media_i): Use any call-clobbered
1785 branch-target register.
1786 (return_media): If r18 wasn't copied in the prologue, copy it
1788 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
1789 Clear class FP0_REGS.
1790 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
1792 2001-03-08 DJ Delorie <dj@redhat.com>
1793 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
1794 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
1795 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
1796 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
1797 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
1798 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
1799 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
1800 return value correctly for call_cookie.
1801 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
1802 * config/sh/crt1.asm (start): Modified so as to call
1803 ___setup_argv_and_call_main.
1804 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
1805 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
1807 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
1808 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
1809 (STRIP_NAME_ENCODING): Use it.
1810 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
1811 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
1812 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
1813 prepare_scc_operands().
1814 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
1815 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
1816 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
1817 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
1818 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
1819 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
1820 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
1821 used in shcompact_incoming_args.
1822 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
1824 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
1826 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
1828 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
1829 Simplify. Adjust. Add sanity check.
1830 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
1832 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
1834 (udivsi3, divsi3): Use them.
1835 (force_mode_for_call): New insn.
1836 (call, call_value, sibcall_value): Emit it before SHcompact
1838 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
1839 * config/sh/sh.md (call, call_value, sibcall): Make sure the
1840 call cookie is non-NULL before taking its value.
1841 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
1842 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
1843 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
1844 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
1846 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
1847 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
1848 temporary for stack adjusts. Use MACL and MACH to pass
1849 arguments to shcompact_incoming_args.
1850 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
1852 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
1853 (nested_trampoline): Load static chain address into r1.
1854 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
1855 2001-01-07 Alexandre Oliva <aoliva@redhat.com
1856 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
1857 fp_arith_reg_operand().
1858 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
1859 * config/sh/sh.md (casesi): Sign-extend the first two operands,
1860 and use signed compares for them.
1861 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
1862 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
1863 ones properly aligned.
1864 (find_barrier): Account for extra alignment needed for 8-byte wide
1866 (machine_dependent_reorg): Require a label for the second 4-byte
1867 constant after an 8-byte one.
1868 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
1870 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
1871 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
1872 last_float when switching float modes.
1873 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
1874 auto-increment for general-purpose registers.
1875 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
1877 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
1879 * config/sh/sh.c (sh_builtin_saveregs): Support using all
1880 registers for varargs.
1881 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
1882 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
1883 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
1884 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
1885 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
1886 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
1887 call_cookie accordingly.
1888 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
1889 (SHCOMPACT_BYREF): Likewise.
1890 (SHCOMPACT_FORCE_ON_STACK): New macro.
1891 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
1892 (sh_builtin_saveregs): Likewise.
1893 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
1894 shcompact_incoming_args): Use new shift values. Support
1895 sequences of consecutive and non-consecutive pushes/pops.
1896 * config/sh/sh.md (return): Don't explicitly use PR_REG.
1897 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
1898 * config/sh/sh.h (TEXT_SECTION): Define.
1899 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
1900 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
1901 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
1902 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
1903 return values on FPU-enabled SHmedia.
1904 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
1905 FPU-enabled SHmedia.
1906 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
1907 value is returned in a non-FP reg and is not returned by
1909 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
1911 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
1912 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
1913 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
1914 quad-aligned to be passed by callee-copy reference.
1915 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
1916 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
1917 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
1918 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
1919 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
1920 copying low-numbered FP regs to r7 and r8.
1921 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
1922 FP regs to general-purpose regs only if the copy was passed on the
1924 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
1925 copying FP reg to r9.
1926 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
1927 copy FP regs to general-purpose regs only in outgoing calls.
1928 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
1929 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
1931 * config/sh/sh.h (struct sh_args): Document all fields.
1932 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
1933 passed partially on the stack should not consider making
1935 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
1936 stack_regs only for incoming calls. When passing FP args,
1937 make sure there are FP regs available before modifying
1939 (SHCOMPACT_BYREF): Pass double args in general-purpose
1940 registers by reference.
1941 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
1942 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
1943 attempt to generate sibcalls if the caller got any arguments
1945 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
1946 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
1947 to 8-byte boundaries.
1948 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
1949 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
1950 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
1951 stored in the stack.
1952 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
1953 for the offsets to have the ISA bit set.
1954 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
1955 invocation. Use beq instead of bgt to mark end of sequence of
1957 (shcompact_incoming_args): Fix store of r2. Use beq instead of
1958 bgt to mark end of sequence of stores.
1959 * config/sh/sh.c (arith_operand): Don't check whether
1960 CONST_OK_FOR_J for now.
1961 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
1962 instead of long for conversion.
1963 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
1964 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
1965 before passing it to fprintf.
1966 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
1967 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
1968 Call set_fpscr before reading/writing SR.
1969 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
1971 * config/sh/lib1funcs.asm: Add `.align 2' directives before
1973 (FMOVD_WORKS): Define on SH5 with FPU.
1974 (set_fpscr): Define on SH5. Remove separate _fpscr_values
1976 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
1978 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
1979 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
1981 (ia_main_table): Ditto.
1982 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
1983 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
1984 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
1985 the definitions from sh.h.
1986 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
1988 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
1989 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
1990 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
1991 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
1992 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
1993 Increment LABEL_NUSES.
1995 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
1997 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
1999 * config/sh/elf.h (SIZE_TYPE): Likewise.
2000 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
2001 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
2002 shcompact_incoming_args): Load switch table addresses using
2004 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
2005 (NO_BUILTIN_SIZE_TYPE): Define.
2006 (SIZE_TYPE): Don't define.
2007 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
2008 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
2009 definition of __SH5__=32 for -m5-compact-nofpu.
2010 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
2012 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
2013 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
2014 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
2015 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
2016 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
2017 (INSN_LENGTH_ALIGNMENT): Likewise.
2018 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
2019 * config/sh/sh.md (call, call_value, sibcall): Simplify
2020 copying of non-branch-target register.
2021 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
2022 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
2023 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
2024 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
2025 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
2026 floating-point values as structs.
2027 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
2028 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
2029 general-purpose register.
2030 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
2031 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
2032 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
2033 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
2034 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
2035 (ENCODE_SECTION_INFO): Enclose variables and constants in
2037 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
2038 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
2039 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
2040 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
2041 only for LABEL_REFs. For SYMBOL_REFs, prepend
2042 SH_DATALABEL_ENCODING to the symbol name.
2043 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
2045 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
2046 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
2048 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
2049 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
2050 (DATALABEL_REF_P): Don't require CONST.
2051 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
2053 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
2054 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
2056 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
2057 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
2058 Use shallow_copy_rtx and PUT_MODE to change the mode of
2059 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
2060 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
2061 on SHmedia using GENERAL_REGs.
2062 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
2063 bltu_media_i): Fix reversion of conditions.
2064 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
2065 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
2066 * config/sh/sh.c (output_far_jump): Save r13 in macl.
2067 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
2068 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
2069 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
2070 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
2071 (GCC_nested_trampoline): Likewise.
2072 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
2073 * config/sh/sh.c (gen_datalabel_ref): Define.
2074 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
2075 (INITIALIZE_TRAMPOLINE): Likewise.
2076 (TRAMPOLINE_ADJUST_ADDRESS): Define.
2077 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
2078 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
2079 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
2080 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
2081 (ic_invalidate): Adjust for SH5.
2082 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
2083 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
2085 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
2086 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
2087 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
2088 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
2089 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
2090 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
2091 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
2092 * config/sh/sh.c (target_reg_operand): Match only target-branch
2093 registers and pseudos that aren't virtual registers.
2094 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
2095 Copy operands that don't match target_reg_operand to pseudos.
2096 (call_media, call_value_media, sibcall_media): Use
2097 target_reg_operand instead of target_operand.
2098 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
2099 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
2100 * config/sh/sh.c (target_reg_operand): Match hardware registers
2101 other than branch-target registers.
2102 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
2103 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
2104 (fpscr_values) [SH5 == 32]: Define.
2105 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
2106 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
2107 Handle function addresses coming in SUBREGs.
2108 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
2109 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
2110 shcompact_return_trampoline): Use datalabel where appropriate.
2111 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
2112 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
2113 general-purpose register to copy one branch-target register to
2115 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
2116 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
2117 SYMBOL_REFs with VOIDmode.
2118 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
2119 bltu_media_i): New insns.
2120 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
2121 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
2122 (INIT_CUMULATIVE_ARGS): Likewise.
2123 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
2124 * machmode.def (V16SFmode): New mode.
2125 * c-common.c (type_for_mode): Support V2SF and V16SF.
2126 * tree.c (build_common_tree_nodes_2): Likewise.
2127 * tree.h (tree_index): Likewise.
2128 * calls.c (emit_call_1): Take args_so_far. Adjust all
2129 callers. Introduce CALL_POPS_ARGS.
2130 * tm.texi (CALL_POPS_ARGS): Document.
2131 * config/sh/crt1.asm: Implement in SHmedia mode.
2132 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
2133 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
2134 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
2135 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
2136 Implement divsi and udivsi in SHmedia mode. Introduce
2137 SHcompact trampolines.
2138 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
2140 (regno_reg_class): Rewrite.
2141 (fp_reg_names): Remove.
2142 (sh_register_names, sh_additional_register_names): New.
2143 (print_operand): Added `u'. Support SUBREGs in addresses.
2144 Add parentheses around shifted CONSTs.
2145 (output_file_start): Output .mode and .abi directives.
2146 (shiftcosts, addsubcosts, multcosts): Adjust.
2147 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
2148 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
2149 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
2150 bytes, not registers. Take into account the need for the
2151 SHcompact incoming args trampoline. Adjust all callers.
2152 (sh_expand_prologue): Take stack_regs into account. Call
2153 incoming args trampoline. Keep stack aligned as per SH5 ABI.
2154 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
2155 stack aligned as per SH5 ABI.
2156 (sh_builtin_saveregs): Support SH5 ABI.
2157 (sh_build_va_list, sh_va_start): Likewise.
2158 (initial_elimination_offset): Take alignment into account.
2159 Compute location of PR according to the SH5 stack frame.
2160 (arith_reg_operand): Reject branch-target registers.
2161 (shmedia_6bit_operand): New.
2162 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
2163 (target_reg_operand): Match DImode only. Accept SUBREGs.
2164 (target_operand): New.
2165 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
2166 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
2167 SIBCALL_REGS for SHmedia.
2168 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
2169 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
2170 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
2171 (TARGET_SWITCHES): New SH5 flags.
2172 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
2173 VALID_REGISTER_P to disable unsupported registers.
2174 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
2175 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
2176 (FUNCTION_ARG_PADDING): Define.
2177 (FASTEST_ALIGNMENT): Adjust.
2178 (SH_REGISTER_NAMES_INITIALIZER): New.
2179 (sh_register_names): Declare.
2180 (DEBUG_REGISTER_NAMES): Define.
2181 (REGISTER_NAMES): Define based on sh_register_names.
2182 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
2183 (sh_additional_register_names): Declare.
2184 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
2185 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
2186 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
2187 (REGISTER_NATURAL_MODE): Define.
2188 (FIRST_PSEUDO_REGISTER): Adjust.
2189 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
2190 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
2191 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
2192 (VECTOR_MODE_SUPPORTED_P): Define.
2193 (REG_CLASS_CONTENTS): Adjust.
2194 (SMALL_REGISTER_CLASSES): Adjust.
2195 (REG_ALLOC_ORDER): Adjust.
2196 (INDEX_REG_CLASS): Adjust.
2197 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
2198 (CONST_OK_FOR_LETTER_P): Adjust.
2199 (PREFERRED_RELOAD_CLASS): Adjust.
2200 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
2201 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
2202 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
2203 (FIRST_FP_PARM_REG): Adjust.
2204 (CALL_POPS_ARGS): Define.
2205 (FUNCTION_ARG_REGNO_P): Adjust.
2206 (struct sh_args): New fields.
2207 (GET_SH_ARG_CLASS): Adjust.
2208 (INIT_CUMULATIVE_ARGS): Adjust.
2209 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
2210 (FUNCTION_ARG_ADVANCE): Adjust.
2211 (FUNCTION_ARG): Adjust.
2212 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
2213 (FUNCTION_ARG_CALLEE_COPIES): Define.
2214 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
2215 (STRICT_ARGUMENT_NAMING): Define.
2216 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
2217 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
2218 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
2219 (SETUP_INCOMING_VARARGS): Adjust.
2220 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
2221 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
2222 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
2223 (SUBREG_OK_FOR_INDEX_P): Adjust.
2224 (EXTRA_CONSTRAINT_S): Update.
2225 (EXTRA_CONSTRAINT_T): New.
2226 (EXTRA_CONSTRAINT): Adjust.
2227 (GO_IF_LEGITIMATE_INDEX): Adjust.
2228 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
2229 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
2231 (MAX_MOVE_MAX): Define.
2233 (CONST_COSTS): Adjust.
2234 (REGISTER_MOVE_COST): Adjust.
2235 (BRANCH_COST): Adjust.
2236 (TEXT_SECTION_ASM_OP): Adjust.
2237 (DBX_REGISTER_NUMBER): Adjust.
2238 (ASM_OUTPUT_DOUBLE_INT): New.
2239 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
2240 (PREDICATE_CODES): Adjust.
2241 (PROMOTE_MODE): Adjust.
2242 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
2243 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
2244 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
2245 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
2246 (DR0_REG, DR2_REG, DR4_REG): Renumber.
2247 (TR0_REG, TR1_REG, TR2_REG): New.
2248 (XD0_REG): Renumber.
2249 (UNSPEC_COMPACT_ARGS): New.
2250 (type): Added pt and ptabs.
2251 (length): Default to 4 on SHmedia. Default pt length to 12
2252 and 20 on SHmedia32 and SHmedia64, respectively.
2253 (pt): New function unit.
2254 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
2255 Add whitespace between operands of SHmedia instructions.
2257 (adddi3_media, addsi3_media): Adjust constraints.
2258 (subsi3) [SHmedia]: Force operand 1 into a register.
2259 (udivsi3_i1_media, udivsi3_i4_media): New.
2260 (udivsi3): Support SHmedia.
2261 (divsi3_i1_media, divsi3_i4_media): New.
2262 (divsi3): Support SHmedia.
2263 (anddi3, iordi3, xordi3): Adjust constraints.
2264 (zero_extendhidi2, zero_extendqidi2): New.
2265 (extendsidi2, extendhidi2, extendqidi2): New.
2266 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
2267 (pop_e, pop_fpul, pop_4): Likewise.
2268 (movsi_media): Support FP and BT registers.
2269 (movsi_media_nofpu): New. Adjust splits to DImode.
2270 (lduw, ldub): Renamed to zero_extend* above.
2271 (movqi_media): Fix typo.
2272 (movdi_media): Support FP and BT registers.
2273 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
2274 (movdi_const_32bit): New.
2275 (shori_media): Require immediate operand. Use `u' for output.
2276 (movdf_media, movsf_media): Simplified.
2277 (movdf_media_nofpu, movsf_media_nofpu): New.
2278 (movdf, movsf): Adjust
2279 (movv2sf, movv2sf, movv16sf): New.
2280 (beq_media, beq_media_i): Adjust constraints. Don't use
2281 scratch BT register.
2282 (bne_media, bne_media_i): Likewise.
2283 (bgt_media, bgt_media_i): Likewise.
2284 (bge_media, bge_media_i): Likewise.
2285 (bgtu_media, bgtu_media_i): Likewise.
2286 (bgeu_media, bgeu_media_i): Likewise.
2287 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
2288 bunordered): Emit jump insn. Force operands to registers when
2290 (jump_media, jump): Simplify.
2291 (call_compact, call_compact_rettramp): New.
2292 (call_value_compact, call_value_compact_rettramp): New.
2293 (call_media, call_value_media): Simplify.
2294 (sibcall_compact, sibcall_media): New.
2295 (call, call_value): Adjust for SHmedia and SHcompact.
2296 (sibcall, sibcall_value, untyped_call): Likewise.
2297 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
2298 (indirect_jump): Adjust for SHmedia.
2299 (casesi_jump_media): New.
2300 (nop): Re-enable for SHmedia.
2301 (call_site): Restrict to SH1.
2302 (casesi): Adjust for SHmedia.
2303 (casesi_shift_media, casesi_load_media): New.
2304 (return): Explicitly use PR register. Call return trampoline
2306 (return_i): Explicitly use PR register.
2307 (shcompact_return_tramp, shcompact_return_tramp_i): New.
2308 (return_media): Adjust.
2309 (shcompact_incoming_args): New.
2311 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
2312 (movstrsi): Disable on SH5.
2313 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
2314 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
2315 (subsf3, subsf3_media): Likewise.
2316 (mulsf3, mulsf3_media, mac_media): Likewise.
2317 (divsf3, divsf3_media): Likewise.
2318 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
2319 (floatsisf2, fux_truncsfsi2): Likewise.
2320 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
2322 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
2323 (cmpunsf_media, cmpsf): Likewise.
2324 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
2325 (abssf2, abssf2_media): Likewise.
2326 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
2327 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
2328 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
2329 (floatsidf2, fix_truncdfsi2): Likewise.
2330 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
2332 (cmpeqdf_media, cmpgtdf_media): Likewise.
2333 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
2334 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
2335 (absdf2, absdf2_media): Likewise.
2336 (extendsfdf2, extendsfdf2_media): Likewise.
2337 (truncsfdf2, truncsfdf2_media): Likewise.
2338 * config/sh/sh64.h: New file.
2339 * config/sh/t-sh64: New file.
2340 * config/sh/shmedia.h: New file.
2341 * config/sh/ushmedia.h: New file.
2342 * config/sh/sshmedia.h: New file.
2343 * configure.in: Added sh64-*-elf.
2344 * configure: Rebuilt.
2345 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
2346 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
2347 (reg_class_from_letter): Use `b' for TARGET_REGS.
2348 (print_operand): Support `%M', `%m', `AND' and
2349 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
2350 (andcosts): Adjust for SHmedia.
2351 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
2353 (target_reg_operand): New function.
2354 * config/sh/sh-protos.h (target_reg_operand): Declare.
2355 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
2356 FP registers on SH5.
2357 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
2359 (TARGET_REGISTER_P): New macro.
2360 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
2361 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
2362 (EXTRA_CONSTRAINT_S): New macro.
2363 (EXTRA_CONSTRAINT): Adjust.
2364 (FLOAT_TYPE_SIZE): Define to 32.
2365 (Pmode): DImode on SHmedia.
2366 (CONST_COSTS): Adjust for SHmedia literals.
2367 (PREDICATE_CODES): Added target_reg_operand.
2368 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
2369 * config/sh/sh.md: Remove all attrs from SHmedia insns.
2370 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
2371 (cmpdi): Accept SHmedia.
2372 (movdicc_false, movdicc_true): New insns.
2373 (movdicc): New expand.
2374 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
2376 (addsi3_media): Match `S' constraint.
2377 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
2378 (negdi2): Expand for SHmedia.
2379 (one_cmpldi2): New expand.
2380 (zero_extendsidi2): Change from expand to insn.
2381 (extendsidi2): Add constraints.
2382 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
2383 LD/ST address. Fix SI immediate loading split.
2384 (movhi_media, movqi_media, lduw, ldub): New insns.
2385 (movhi, movqi): Accept SHmedia.
2386 (shori_media, movdi_media): Relax input constraints. Split
2388 (movdf_media, movsf_media): New insn. New split to movdi.
2389 (movdf, movsf): Match on SHmedia.
2390 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
2391 bgeu_media): New insns and splits. New insns with `_i' suffix.
2392 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
2393 (bunordered): New expand.
2394 (jump_compact): Renamed from `jump'.
2395 (jump_media): New insn.
2397 (call_media, call_value_media): New insns.
2398 (call, call_value): Adjust.
2399 (indirect_jump_compact): Renamed from `indirect_jump'.
2400 (indirect_jump_media): New insn.
2401 (indirect_jump): New expand.
2402 (untyped_call, return): Accept SHmedia.
2403 (return_media): New insn.
2404 (prologue, epilogue, blockage): Accept SHmedia.
2405 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
2406 (sunordered): New expand.
2407 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
2408 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
2409 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
2410 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
2411 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
2412 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
2413 abssf2_media): New insns.
2414 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
2415 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
2416 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
2417 floatdidf2, floatsidf2_media, fix_truncdfdi2,
2418 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
2419 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
2420 absdf2_media): New insns.
2421 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
2422 (extendsfdf2_media, truncdfsf2_media): New insns.
2423 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
2424 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
2425 * config/sh/sh.h (CONST_OK_FOR_J): Document.
2426 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
2427 * config/sh/sh.md (adddi3): New expand.
2428 (adddi3_media, adddi3z_media): New insns.
2429 (adddi3_compact): Renamed from adddi3.
2430 (addsi3_media): Use add.l r63 to add constant zero.
2431 (subdi3): New expand.
2432 (subdi3_media): New insn.
2433 (subdi3_compact): Renamed from subdi3.
2434 (mulsidi3): New expand.
2435 (mulsidi3_media): New insn.
2436 (mulsidi3_compact): Renamed from mulsidi3.
2437 (umulsidi3): New expand.
2438 (umulsidi3_media): New insn.
2439 (umulsidi3_compact): Renamed from umulsidi3.
2440 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
2441 (ashlsi3, ashrsi3, lshrsi3): Use them.
2442 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
2443 (ashldi3, ashrdi3, lshrdi3): Use them.
2444 (zero_extendsidi2): New expand.
2445 (extendsidi2): New insn.
2446 (movsi_media): New insn. Split to movdi to load constants.
2447 (movsi): Enable for shmedia.
2448 (movdi_media): New insn. Use shori_media to load wide constants.
2449 (short_media): New insn.
2450 (movdi): Enable for shmedia.
2451 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
2452 * config/sh/sh.h (CPP_SPEC): Added `m5'.
2453 (SUBTARGET_CPP_SPEC): Added `!m5'.
2454 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
2455 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
2456 to all other SH variants.
2457 (TARGET_DEFAULT): Set to SH1_BIT.
2458 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
2459 (BITS_PER_WORD): Raise to 64 on shmedia.
2460 (MAX_BITS_PER_WORD): Change to 64.
2461 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
2462 (INT_TYPE_SIZE): Keep as 32.
2463 (UNITS_PER_WORD): Raise to 8 on shmedia.
2464 (MIN_UNITS_PER_WORD): Keep as 4.
2465 (POINTER_SIZE): Raise to 64 on shmedia.
2466 (CONST_OK_FOR_J): New macro.
2467 (CONST_OK_FOR_LETTER_P): Use it.
2468 (processor_type): Add PROCESSOR_SH5.
2469 * config/sh/sh.md: Conditionalize all expands, insns and
2470 splits to TARGET_SH1.
2472 (addsi3_compact): Renamed from...
2473 (addsi3): Now an expand.
2474 (addsi3_media, subsi3_media): New insns.
2475 (subsi3): Don't negate constants with SHmedia.
2477 * hooks.c: New file.
2478 * hooks.h: New file.
2479 * Makefile.in (HOOKS_H): New.
2480 (TARGET_DEF_H): Added $(HOOKS_H).
2481 (OBJS): Added hooks.o.
2482 (cfgcleanup.o, bb-reorder.o): Added target.h.
2483 (hooks.o): Added dependencies.
2484 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
2485 (TARGET_INITIALIZER): this.
2486 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
2487 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
2488 * bb-reorder.c: Include target.h.
2489 (reorder_basic_blocks): Skip if cannot modify jumps.
2490 * cfgcleanup.c: Include target.h.
2491 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
2493 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2495 * config/mips/mips.md (casesi_internal, casesi_internal_di):
2496 Protect jump delay slot instructions with .set noreorder and
2499 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2501 * config/mips/mips.md (casesi_internal_di): Calculate
2502 the index into the target offset table correctly.
2504 2002-02-08 Richard Henderson <rth@redhat.com>
2506 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
2507 * final.c (output_addr_const): Accept and discard SUBREG.
2508 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
2509 mark them unknown instead.
2510 (simplify_subtraction): Handle RTX_UNKNOWN.
2511 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
2513 2002-02-08 David Edelsohn <edelsohn@gnu.org>
2515 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
2517 2002-02-08 Richard Henderson <rth@redhat.com>
2519 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
2521 2002-02-08 Andreas Jaeger <aj@suse.de>
2523 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
2524 * config/i386/t-linux64: New file.
2526 2002-02-08 Jakub Jelinek <jakub@redhat.com>
2528 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
2529 * c-parse.in (compstmt): Clear last_expr_type.
2531 2002-02-07 Richard Henderson <rth@redhat.com>
2533 * loop.c (strength_reduce): Sink final_value when not
2536 2002-02-07 David O'Brien <obrien@FreeBSD.org>
2538 * config/sparc/freebsd.h: Fix mismatched spec {.
2540 2002-02-07 Richard Henderson <rth@redhat.com>
2542 * cfgrtl.c: Include recog.h and insn-config.h.
2543 (keep_with_call_p): Fix general_operand invocation.
2544 * Makefile.in (cfgrtl.o): Update dependencies.
2546 2002-02-07 Kazu Hirata <kazu@hxi.com>
2548 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
2549 comment. Accept HImode only if TARGET_H8300.
2551 2002-02-07 Eric Christopher <echristo@redhat.com>
2553 * config/mips/crtn.asm: Cleanup #ifdefs.
2555 2002-02-07 Eric Christopher <echristo@redhat.com>
2557 * config/mips/crti.asm: Add changes for mips16. mips16 uses
2558 register 7 as RA instead of $31.
2559 * config/mips/crtn.asm: Ditto.
2560 * config/mips/mips.c (mips_move_2words): Add case for
2561 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
2562 (compute_frame_size): Fix typo.
2563 (save_restore_insns): Ditto. Make documentation about using
2564 register $7 as return register more precise.
2565 (mips_expand_epilogue): Fix comment. Add code to work around not
2566 being able to add to the stack pointer directly.
2567 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
2568 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
2571 2002-02-07 Tom Rix <trix@redhat.com>
2573 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
2574 immediates in ldu and stdu DS opcode field.
2575 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
2576 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
2577 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
2579 2002-02-07 Jeff Sturm <jsturm@one-point.com>
2581 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
2582 offset for stack bias.
2584 2002-02-07 H.J. Lu <hjl@gnu.org>
2586 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
2588 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
2590 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
2592 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
2594 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
2595 * i386.c (x86_order_regs_for_local_alloc): New global function.
2596 * i386.h (REG_ALLOC_ORDER): CLeanup.
2597 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
2599 2002-02-07 Richard Henderson <rth@redhat.com>
2601 PR optimization/2463
2602 * alias.c (find_base_value): Recall base values for fixed hard regs.
2603 * loop.c (loop_regs_update): Don't use single_set on non-insns.
2605 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
2607 * config/mips/mips.md (define_delay) [mips16]: Adjust required
2610 2002-02-06 Richard Henderson <rth@redhat.com>
2613 * stmt.c (resolve_operand_name_1): Take more care with mixed
2614 named and unnamed operands.
2616 2002-02-06 Janis Johnson <janis187@us.ibm.com>
2617 Jan Hubicka <jh@suse.cz>
2619 * loop.c (remove_constant_addition): Avoid clobbering a shared
2622 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
2624 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
2625 * config/s390/t-linux64: New file.
2626 * config/s390/libgcc-glibc.ver: New file.
2628 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
2630 * config/s390/linux64.h: Delete file.
2631 * config/s390/s390x.h: New file.
2632 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
2633 as target header file.
2634 * config/s390/linux.h (TARGET_VERSION): Define depending on
2635 DEFAULT_TARGET_64BIT.
2636 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
2637 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
2638 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
2639 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
2640 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
2641 (EXTRA_SPEC): New define.
2642 * config/s390/s390.h (TARGET_VERSION): Define depending on
2643 DEFAULT_TARGET_64BIT.
2644 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
2646 2002-02-06 Jason Merrill <jason@redhat.com>
2648 * c-decl.c (finish_function): Warn about a non-void function with
2649 no return statement and no abnormal exit.
2650 (current_function_returns_abnormally): New variable.
2651 (start_function): Clear it.
2652 (struct c_language_function): Add returns_abnormally.
2653 (push_c_function_context): Save it.
2654 (pop_c_function_context): Restore it.
2655 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
2656 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
2657 an explicit return type.
2658 * c-tree.h: Declare current_function_returns_abnormally.
2659 (C_FUNCTION_IMPLICIT_INT): New macro.
2660 * c-typeck.c (build_function_call): Set it.
2661 (c_expand_return): Set current_function_returns_value even if the
2664 2002-02-06 Jakub Jelinek <jakub@redhat.com>
2667 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
2668 unsafe for reevaluation.
2670 2002-02-06 Jakub Jelinek <jakub@redhat.com>
2673 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
2674 EXPR_STMT, but COMPOUND_STMT, recurse into it.
2676 2002-02-06 Richard Henderson <rth@redhat.com>
2678 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
2679 be a general_operand. Dest for function value must be a pseudo.
2681 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
2683 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
2684 as SYMBOL_REFs from the constant pool.
2686 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
2688 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
2689 passed by invisible reference.
2691 2002-02-05 Richard Henderson <rth@redhat.com>
2693 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
2695 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
2697 Implement using "base addresses" in insn operands as default.
2698 * config/mmix/mmix.c (mmix_conditional_register_usage): if
2699 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
2700 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
2701 used to read the rtx value.
2702 (mmix_target_asm_function_epilogue): Fix spacing.
2703 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
2704 (mmix_legitimate_address): Ditto.
2705 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
2706 should be loaded with a GETA insn. Don't allocate needless extra
2707 char for nul termination and fix misleading comment.
2708 (mmix_print_operand_address): Handle constants if
2709 TARGET_BASE_ADDRESSES.
2710 (mmix_output_register_setting): Use base addressing if
2711 TARGET_BASE_ADDRESSES and the number of insns is 3.
2712 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
2713 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
2714 to use R as constraint, add LDA to match s.
2715 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
2716 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
2717 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
2718 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
2719 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
2720 order with other fixed registers.
2721 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
2722 other parameter/call-clobbered registers.
2723 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
2724 -mbase-addresses, -mno-base-addresses.
2725 (MMIX Options): Ditto.
2727 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
2729 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
2731 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
2733 * config/rs6000/altivec.h: Change elem to _S_elem.
2735 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
2737 * config/netbsd.h (WCHAR_TYPE): Define.
2738 (WCHAR_TYPE_SIZE): Ditto.
2740 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
2741 (WCHAR_UNSIGNED): Ditto.
2742 (WCHAR_TYPE_SIZE): Ditto.
2744 * config/arm/netbsd.h: Likewise.
2745 * config/i386/netbsd-elf.h: Likewise.
2746 * config/i386/netbsd.h: Likewise.
2747 * config/m68k/netbsd-elf.h: Likewise.
2748 * config/m68k/netbsd.h: Likewise.
2749 * config/ns32k/netbsd.h: Likewise.
2750 * config/sparc/netbsd.h: Likewise.
2751 * config/vax/netbsd.: Likewise.
2753 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
2755 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
2756 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
2757 (TARGET_INITIALIZER): this.
2758 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
2759 (BITFIELD_NBYTES_LIMITED): Markup fix.
2760 * tree.h (default_ms_bitfield_layout_p): Declare.
2761 (record_layout_info): Added prev_field.
2762 * tree.c (default_ms_bitfield_layout_p): New fn.
2763 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
2764 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
2765 * stor-layout.c: Include target.h.
2766 (start_record_layout): Initialize prev_field.
2767 (place_field): Handle MS bit-field layout, and disregard
2768 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
2769 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
2770 * Makefile.in (stor-layout.o): Adjust dependencies.
2772 2002-02-05 Jason Merrill <jason@redhat.com>
2774 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
2776 2002-02-05 Andreas Jaeger <aj@suse.de>
2778 * crtstuff.c: Fix comments.
2780 2002-02-05 Richard Henderson <rth@redhat.com>
2783 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
2784 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
2787 * config/mips/mips.c (function_arg): Handle TImode.
2788 (function_arg_advance): Likewise.
2790 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2792 * config/rs6000/altivec.h (vec_step_help): Rename to
2795 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2797 * config/rs6000/altivec.h: Fix typos.
2799 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
2801 * config/arm/netbsd.h: Correct a comment.
2803 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2805 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
2806 building void typed builtins.
2808 * config/rs6000/altivec.h (vec_ld*): Fix typos.
2809 (vec_step): Implement for C++.
2811 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2813 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
2815 2002-02-04 Richard Henderson <rth@redhat.com>
2817 * combine.c (nonzero_bits): Re-introduce special case for
2818 sp/fp/ap wrt REGNO_POINTER_ALIGN.
2820 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
2822 * doc/extend.texi: Warn about unsupported usage of altivec
2825 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
2826 (altivec_predicate_*): New.
2828 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
2829 Add C++ version of vec_*() functions.
2831 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
2832 (bdesc_2arg): Remove altivec predicates.
2833 (altivec_expand_builtin): Handle predicates.
2834 (altivec_init_builtins): Handle predicates.
2835 (altivec_expand_predicate_builtin): New.
2837 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2839 * pa.c (DO_FRAME_NOTES): Move forward.
2840 (store_reg): Revise handling of frame notes.
2841 (load_reg): Likewise.
2842 (set_reg_plus_d): Likewise.
2843 (hppa_expand_prologue): Likewise.
2844 (hppa_expand_epilogue): Likewise.
2846 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2848 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
2850 2002-02-04 Jakub Jelinek <jakub@redhat.com>
2852 PR c/4475, c++/3780:
2853 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
2854 * c-common.h (SWITCH_TYPE): Define.
2855 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
2856 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
2857 Rename spareness variable to sparseness.
2858 (expand_end_case_type): Renamed from expand_end_case, use orig_type
2859 if non-NULL instead of TREE_TYPE (orig_index).
2860 * tree.h (expand_end_case_type): Renamed from expand_end_case.
2861 (expand_end_case): Define using expand_end_case_type.
2862 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
2863 to expand_end_case_type.
2864 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
2866 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2868 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
2869 (BIGGEST_ALIGNMENT): Change to 128.
2871 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2873 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
2875 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2877 * pa.md (call_internal_reg_64bit): Remove unused variable.
2879 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
2881 * config/arm/arm.h (machine_function): Add uses_anonymous_args
2883 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
2884 * config/arm/arm.c (current_function_anonymous_args): Delete,
2885 replace uses with cfun->machine->uses_anonymous_args.
2886 (arm_reorg): Do not reset uses_anonymous_args.
2888 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
2889 any geenral register.
2891 2001-02-04 Bernd Schmidt <bernds@redhat.com>
2893 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
2896 2002-02-04 Richard Henderson <rth@redhat.com>
2898 * combine.c (force_to_mode): Remove STACK_BIAS code.
2899 (nonzero_bits): Likewise. Replace sp/fp special case with
2900 REGNO_POINTER_ALIGN.
2902 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
2903 (HARD_FRAME_POINTER_REGNUM): New.
2904 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
2905 (FIXED_REGS, CALL_USED_REGS): Update.
2906 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
2907 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
2908 (HARD_REGNO_NREGS): Update for SFP.
2909 (STACK_POINTER_OFFSET): Include bias here ...
2910 (FIRST_PARM_OFFSET): ... not here.
2911 (STACK_BIAS): Remove.
2912 (INIT_EXPANDERS): New.
2913 (STARTING_FRAME_OFFSET): Do not include bias.
2914 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
2915 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
2916 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
2917 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
2918 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
2919 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
2920 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
2921 (MUST_SAVE_REGISTER): Likewise.
2922 (sparc_flat_function_prologue): Likewise.
2923 (sparc_flat_function_epilogue): Likewise.
2924 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
2925 (sparc_init_modes): SFP is GENERAL_REGS.
2926 (sparc_builtin_saveregs): SFP does not have bias applied.
2928 2002-02-04 Richard Henderson <rth@redhat.com>
2930 * config/alpha/alpha.c (current_function_is_thunk): Don't check
2931 current_function_is_thunk.
2932 (alpha_sa_mask): Distinguish between current_function_is_thunk
2933 called from ASM_OUTPUT_MI_THUNK and not.
2934 (alpha_does_function_need_gp): Thunks always need gp.
2935 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
2936 (alpha_output_mi_thunk_osf): New.
2937 * config/alpha/alpha-protos.h: Update.
2938 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
2940 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
2942 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
2943 function types, not when they're taken away.
2945 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
2947 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
2948 CODE_LABEL and jump table when replacing a table jump with a
2951 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2953 * config/s390/s390-protos.h (legitimize_la_operand,
2954 s390_secondary_input_reload_class, s390_plus_operand,
2955 s390_expand_plus_operand): Add prototypes.
2957 config/s390/s390.c (s390_secondary_input_reload_class,
2958 s390_plus_operand, s390_expand_plus_operand): New functions.
2960 (struct s390_address): New member 'pointer'.
2961 (s390_decompose_address): Compute it.
2962 (legitimate_la_operand_p): Use it.
2963 (legitimize_la_operand): New function.
2964 (movti, movdi, movdf splitters): Call it.
2966 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
2967 (PREDICATE_CODES): Add s390_plus_operand.
2969 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
2970 (la_ccclobber): Allow GENERAL_REGS as output operand.
2972 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
2973 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
2974 (*la_64, *la_31, reload_indi, reload_insi): ... these.
2976 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
2978 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
2979 register names for regular asm () construct.
2981 2002-02-04 Jakub Jelinek <jakub@redhat.com>
2983 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
2986 2002-02-04 Jakub Jelinek <jakub@redhat.com>
2988 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
2991 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
2993 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
2994 constant pool to be identical by string address and index.
2996 2002-02-04 Anthony Green <green@redhat.com>
2998 * output.h (SECTION_OVERRIDE): Define.
2999 * varasm.c (named_section): Obey SECTION_OVERRIDE.
3001 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
3003 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
3004 by existing arm*-*-netbsd* (a.out) target.
3005 (ns32k-*-netbsdelf*): Likewise.
3006 (sparc-*-netbsdelf*): Likewise.
3007 (vax-*-netbsdelf*): Likewise.
3009 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
3011 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
3012 headers and libobjc headers.
3014 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
3016 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
3017 (_mingw.h): Remove duplicate include.
3019 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
3021 * config.gcc: Set cpu_type to m68k for 68010, as well.
3022 (m68010-*-netbsdelf*): New...
3023 (m68k*-*-netbsdelf*): ...targets.
3024 * config/m68k/netbsd-elf.h: New file.
3026 2002-02-02 Kazu Hirata <kazu@hxi.com>
3028 * config/h8300/h8300.c (hand_list): Move inside function_arg.
3030 2002-02-02 Kazu Hirata <kazu@hxi.com>
3032 * config/h8300/h8300.c (h8_push_ops): Move inside
3034 (h8_pop_ops): Likewise.
3035 (h8_move_ops): Likewise.
3037 2002-02-02 Kazu Hirata <kazu@hxi.com>
3039 * config/h8300/h8300.c (os_task): Make it static.
3040 (monitor): Likewise.
3041 (pragma_saveall): Likewise.
3043 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
3045 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
3046 constant is a valid sign-extension for Pmode.
3048 2002-02-02 Kazu Hirata <kazu@hxi.com>
3050 * config/h8300/h8300.c: Fix formatting.
3052 2002-02-02 Kazu Hirata <kazu@hxi.com>
3054 * config/h8300/h8300.md: Fix formatting.
3056 2002-02-02 Kazu Hirata <kazu@hxi.com>
3058 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
3059 predicates of operands[1]. Split the patterns for each
3062 2002-02-02 Kazu Hirata <kazu@hxi.com>
3064 * config/h8300/h8300.md (xor patterns): Tighten the predicates
3065 of operands[1] to register_operand.
3067 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
3069 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
3070 * cpphash.c (_cpp_init_hashtable): Similarly.
3071 * cppinit.c (cpp_create_reader): Default the signed_char flag.
3072 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
3073 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
3074 (cpp_handle_option): Handle the new options.
3075 * cpplex.c (cpp_interpret_charconst): Use new flag.
3076 * cpplib.h (struct cpp_options): New member signed_char.
3077 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
3078 (cpp_options): Handle -fsigned-char and -funsigned-char.
3079 (static_specs): Remove signed_char_spec.
3080 (do_spec1): Don't handle %c.
3081 * system.h: Poison SIGNED_CHAR_SPEC.
3082 * tradcif.y (yylex): Use flag_signed_char.
3083 * tradcpp.h (flag_signed_char): New.
3084 * tradcpp.c (flag_signed_char): New.
3085 (main): Handle new command-line options.
3086 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
3088 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
3089 * avr/avr.h: Remove old comments.
3090 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
3091 (CC1_SPEC): Pass -fsigned-char if -mic*.
3092 (SIGNED_CHAR_SPEC): Remove.
3094 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
3096 2002-02-01 Eric Christopher <echristo@redhat.com>
3098 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
3099 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
3100 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
3101 (ASM_OUTPUT_REG_POP): Ditto.
3103 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
3105 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
3108 2002-02-02 Jakub Jelinek <jakub@redhat.com>
3110 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
3112 2002-02-02 Jakub Jelinek <jakub@redhat.com>
3115 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
3118 2002-02-01 Janis Johnson <janis187@us.ibm.com>
3120 * cfganal.c: Include tm_p.h.
3121 (keep_with_call_p): Fix the test that determines if a register holds
3122 the return value of a call.
3124 2002-02-01 DJ Delorie <dj@redhat.com>
3126 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
3127 we are given conflicting registers, switch to the other one we
3128 had allocated for us.
3129 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
3130 as TImode so we know when the "other" register is available.
3132 2002-02-01 David O'Brien <obrien@FreeBSD.org>
3134 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
3137 2002-02-01 Janis Johnson <janis187@us.ibm.com>
3139 * cfganal.c (keep_with_call_p): New function.
3140 (flow_call_edges_add): Prevent splitting a block between a call and
3141 a single-set instruction that should be kept in the same block.
3143 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
3145 * doc/install.texi (avr): Update outdated URL.
3147 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
3149 * config/stormy16/stormy16.md (pushqi): New.
3153 (movhi): Remove stack operands.
3155 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
3156 nonimmediate_nonstack_operand.
3157 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
3159 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
3162 2002-01-31 Jason Merrill <jason@redhat.com>
3164 * Makefile.in (c-parse.c): Handle .output file.
3165 * objc/Make-lang.in (objc-parse.c): Likewise.
3167 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
3169 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
3170 the -me[lb] option is given. Don't output the default flag
3173 2002-01-31 Zack Weinberg <zack@codesourcery.com>
3175 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
3176 the primary source file; this has not been done yet.
3177 * c-decl.c (c_expand_body): Reset input_filename from
3178 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
3180 2002-01-31 Kazu Hirata <kazu@hxi.com>
3182 * rtlanal.c (subreg_regno_offset): Do not use
3183 SUBREG_REGNO_OFFSET.
3184 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
3185 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
3187 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
3189 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
3190 version rather than GNATS version in --version output.
3192 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
3194 * ifcvt.c (noce_process_if_block): Make a copy of the destination
3195 when copying back from a temporary.
3197 2002-01-30 Richard Henderson <rth@redhat.com>
3199 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
3200 and new_dest are the same.
3202 2002-01-30 Richard Henderson <rth@redhat.com>
3205 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
3206 * rtl.c (note_insn_name): Update.
3207 * emit-rtl.c (remove_unnecessary_notes): Kill it.
3208 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
3209 to perform loop rotation.
3210 (expand_exit_loop_top_cond): New.
3211 * tree.h (expand_exit_loop_top_cond): Declare it.
3212 * c-semantics.c (genrtl_while_stmt): Use it.
3213 (genrtl_for_stmt): Likewise.
3215 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
3217 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
3218 arguments to 64-bit boundaries on 64-bit ABIs.
3220 2002-01-30 Steve Ellcey <sje@cup.hp.com>
3222 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
3224 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
3226 * c-decl.c (grokdeclarator): Handle type being a typedef for an
3229 2002-01-30 David O'Brien <obrien@FreeBSD.org>
3231 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
3232 * config/sparc/sparc_bi.h: Remove file.
3233 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
3235 2002-01-30 Richard Henderson <rth@redhat.com>
3237 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
3239 2002-01-30 Zack Weinberg <zack@codesourcery.com>
3241 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
3243 2002-01-30 Jason Merrill <jason@redhat.com>
3245 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
3246 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
3247 (reg_save): Use DW_CFA_offset_extended_sf instead.
3249 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
3251 2002-01-29 Jakub Jelinek <jakub@redhat.com>
3253 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
3256 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
3258 * rs6000.md ("*call_value_local32"): Remove constraints.
3259 ("*call_value_local64"): Same.
3260 ("*call_value_indirect_nonlocal_aix32"): Same.
3261 ("*call_value_nonlocal_aix32"): Same.
3262 ("*call_value_indirect_nonlocal_aix64"): Same.
3263 ("*call_value_nonlocal_aix64"): Same.
3264 ("*call_value_nonlocal_sysv"): Same.
3266 2002-01-29 Richard Henderson <rth@redhat.com>
3268 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
3270 2002-01-29 Richard Henderson <rth@redhat.com>
3272 * expr.c (force_operand): Ignore flag_pic for detecting pic
3274 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
3275 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
3276 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
3277 instead of open-coded loop.
3278 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
3279 be fixed when in use.
3281 2002-01-29 Richard Henderson <rth@redhat.com>
3283 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
3284 * sched-rgn.c (propagate_deps): Update them.
3285 * sched-deps.c (sched_analyze_insn): Update them. Flush the
3286 clobbers list when either gets too long.
3288 2002-01-29 Jakub Jelinek <jakub@redhat.com>
3290 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
3291 and INDEX_REGS the same as GENERAL_REGS.
3292 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
3294 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
3296 * tree.c (build_nonstandard_integer_type): Correct prototype.
3298 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
3300 * config/s390/s390.md (movstrsico, movstrdix_64,
3301 movstrsix_31): Remove, replace by ...
3302 (movstrdi_short, movstrsi_short, movstrdi_long,
3303 movstrsi_long): ... these. New.
3304 (movstrdi, movstrsi): Adapt.
3306 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
3307 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
3308 Remove unnecessary CC clobber.
3309 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
3310 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
3312 (divmoddi4): Don't partially initialize TImode register.
3314 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
3316 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
3318 2002-01-29 Richard Henderson <rth@redhat.com>
3320 * flow.c (print_rtl_and_abort): Remove.
3321 (print_rtl_and_abort_fcn): Remove.
3322 (verify_local_live_at_start): Use dump_bb instead.
3323 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
3324 (verify_wide_reg_1): Return 2 on mode test failure.
3326 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
3328 PR c/3325, c/3326, c/2511, c/3347
3329 * c-decl.c (enum_decl_context): Remove BITFIELD.
3330 (grokdeclarator): Take bitfield width as an input.
3331 Ensure bitfields are given the correct type. Perform
3332 bitfield width validation with build_bitfield_integer_type
3333 rather than waiting for finish_struct.
3334 (grok_typename, grok_typename_in_parm_context, start_decl,
3335 push_parmdecl, grokfield, start_function): Update calls to
3337 (build_bitfield_integer_type): New function.
3338 (finish_struct): Move bitfield validation to grokdeclarator
3339 and build_bitfield_integer_type.
3340 * tree.c (build_nonstandard_integer_type): New function.
3341 * tree.h (build_nonstandard_integer_type): New prototype.
3343 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
3345 2002-01-29 Jakub Jelinek <jakub@redhat.com>
3348 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
3349 don't ignore unrecognized -W* options.
3350 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
3351 * cpplib.h (cpp_handle_option): Adjust prototype.
3352 * c-decl.c (c_decode_options): Pass 0 as last argument to
3356 * gcc.c (cpp_unique_options): Split from cpp_options.
3357 (cpp_options): Source cpp_unique_options.
3358 (default_compilers): Use cpp_unique_options instead of cpp_options
3359 when used together with cc1_options.
3360 (static_specs): Add cpp_unique_options.
3361 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
3362 when used together with cc1_options.
3364 2002-01-29 Kazu Hirata <kazu@hxi.com>
3366 * config/h8300/h8300-protos.h: Update the prototype of
3368 * config/h8300/h8300.c (output_a_shift): Remove an unused
3369 argument 'insn'. Remove redundant code.
3370 * config/h8300/h8300.md: Adust to the new prototype of
3373 2002-01-29 Kazu Hirata <kazu@hxi.com>
3375 * config/h8300/h8300-protos.h: Update the prototypes of
3376 emit_a_rotate and expand_a_rotate.
3377 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
3378 first argument to 'enum rtx_code'.
3379 (expand_a_rotate): Likewise.
3381 2002-01-28 Kazu Hirata <kazu@hxi.com>
3383 * config/h8300/h8300-protos.h: Update the prototype of
3385 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
3387 * config/h8300/h8300.md: Adjust to the new prototype.
3389 2002-01-28 Kazu Hirata <kazu@hxi.com>
3391 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
3394 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
3396 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
3397 is a fixed register before returning pic_offset_table_rtx.
3398 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
3399 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
3401 2002-01-28 Jason Merrill <jason@redhat.com>
3403 * dwarf2.h: Sync with src version.
3405 2002-01-28 Paul Koning <pkoning@equallogic.com>
3407 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
3409 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
3410 * doc/extend.texi (__builtin_prefetch): Update documentation:
3411 first argument is now const void ptr.
3413 2002-01-28 Kazu Hirata <kazu@hxi.com>
3415 * config/h8300/h8300-protos.h: Remove an unused prototype.
3417 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
3419 * toplev.c (lang_independent_init): Round up identifier size.
3421 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
3423 * config.gcc: Revert previous change.
3425 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
3427 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
3429 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
3431 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
3432 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
3433 other non-elf netbsd config frags.
3434 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
3435 collect2 will does that.
3436 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
3437 shared-lib frobbing will work.
3439 2002-01-28 Kazu Hirata <kazu@hxi.com>
3441 * config/h8300/h8300.h: Fix formatting.
3442 * config/h8300/h8300.md: Likewise.
3444 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
3446 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
3447 the old, removed AAA_standards fix.
3448 * fixinc/fixincl.x: Rebuilt.
3450 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
3452 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
3453 atexit call in crtbegin, hooked in after call to frame_dummy;
3454 register EH before registering __fini__start.
3456 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
3458 * config/rs6000/altivec.h: Remove spurious semicolons.
3460 2002-01-27 Kazu Hirata <kazu@hxi.com>
3462 * config/h8300/h8300.md: Replace dead bit extraction patterns
3463 with ones that work.
3465 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3467 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
3468 if not STRICT_ALIGNMENT.
3469 * rtl.h (MEM_ALIGN): Likewise.
3471 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
3473 * doc/invoke.texi (-fdump-translation-unit): Revert this
3474 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
3476 2002-01-27 Kazu Hirata <kazu@hxi.com>
3478 * config/h8300/h8300.md (define_constants): New.
3479 (anonymous patterns) Use defined constants appropriately.
3481 2002-01-27 Kazu Hirata <kazu@hxi.com>
3483 * config/h8300/h8300.c (function_arg): Remove redundant code.
3485 2002-01-26 Richard Henderson <rth@redhat.com>
3487 * sched-deps.c (reg_pending_uses_head): New.
3488 (reg_pending_barrier): Rename from reg_pending_sets_all.
3489 (find_insn_list): Don't mark inline.
3490 (find_insn_mem_list): Remove.
3491 (add_dependence_list, add_dependence_list_and_free): New.
3492 (flush_pending_lists): Replace only_write param with separate
3493 for_read and for_write parameters. Update all callers. Use
3494 add_dependence_list_and_free.
3495 (sched_analyze_1): Do not add reg dependencies here; just set
3496 the pending bits. Use add_dependence_list.
3497 (sched_analyze_2): Likewise.
3498 (sched_analyze_insn): Replace schedule_barrier_found with
3499 reg_pending_barrier. Add all dependencies for pending reg
3500 uses, sets, and clobbers.
3501 (sched_analyze): Don't add reg dependencies for calls, just
3502 set pending bits. Use regs_invalidated_by_call. Treat
3503 sched_before_next_call as a normal list, not a fake insn.
3504 (init_deps): No funny init for sched_before_next_call.
3505 (free_deps): Free pending mems lists. Don't zero reg_last.
3506 (init_deps_global): Init reg_pending_uses.
3507 (finish_deps_global): Free it.
3508 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
3509 (find_insn_mem_list): Remove.
3510 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
3511 (propagate_deps): Use them. Zero temp mem lists.
3513 2002-01-26 Richard Henderson <rth@redhat.com>
3515 * Makefile.in (CRTSTUFF_CFLAGS): New.
3516 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
3517 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
3518 crtstuff.c instead of alpha assembly version.
3519 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
3520 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
3521 not FORCE_{INIT,FINI}_SECTION_ALIGN.
3522 (__do_global_dtors_aux): Mark used.
3523 (frame_dummy, __do_global_ctors_aux): Mark used.
3524 (fini_dummy, init_dummy): Remove.
3526 * config/alpha/crtbegin.asm: Remove file.
3527 * config/alpha/crtend.asm: Remove file.
3528 * config/alpha/t-crtbe: Remove file.
3529 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
3530 (LINK_EH_SPEC): New.
3532 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
3533 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
3534 calling constructors.
3535 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
3537 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
3538 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
3539 CRT_END_INIT_DUMMY hack.
3540 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
3541 FORCE_{INIT,FINI}_SECTION_ALIGN.
3543 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
3544 FORCE_{INIT,FINI}_SECTION_ALIGN.
3546 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
3547 invocation sequence.
3548 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
3550 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
3551 (FORCE_CODE_SECTION_ALIGN): New.
3553 2002-01-26 Richard Henderson <rth@redhat.com>
3555 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
3557 2002-01-26 Richard Henderson <rth@redhat.com>
3559 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
3560 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
3562 2002-01-26 Kazu Hirata <kazu@hxi.com>
3564 * config/h8300/h8300.md: Remove bit extraction patterns that
3565 cannot be triggered.
3566 Restrict each bit extraction pattern to a variant on which the
3569 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
3571 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
3573 2002-01-26 Kazu Hirata <kazu@hxi.com>
3575 * config/h8300/h8300.md: Remove bit test patterns that cannot
3577 Restrict each bit test pattern to a variant on which the
3580 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3582 * builtins.c (expand_builtin_strncat): Remove redundant check for
3585 2002-01-25 David O'Brien <obrien@FreeBSD.org>
3587 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
3589 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
3592 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
3594 * dbxout.c (dbxout_init): Use assemble_name rather than just
3595 stripping off the first character.
3596 (dbxout_source_file): Likewise.
3598 2002-01-25 DJ Delorie <dj@redhat.com>
3600 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
3601 using rtx_equal_p, not by comparing pointers.
3603 2002-01-25 Steve Ellcey <sje@cup.hp.com>
3605 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
3606 for PIC_OFFSET_TABLE_REGNUM.
3607 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
3609 2002-01-25 David O'Brien <obrien@FreeBSD.org>
3611 * config.gcc (x86_64-*-freebsd*): New target.
3612 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
3614 (i[34567]86-*-freebsd*): Don't include svr4.h.
3615 * config/i386/freebsd64.h: New file.
3617 2002-01-25 Douglas B Rupp <rupp@gnat.com>
3619 * config/alpha/x-vms (version): Make static.
3621 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
3622 in previous checkin.
3624 * Makefile.in (install-headers-cp): New target.
3625 * config.gcc (alpha-dec-*vms*): Install headers with
3628 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
3630 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
3633 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3635 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
3636 of compare_tree_int.
3637 (expand_builtin_strncat): Likewise.
3638 * c-decl.c (finish_struct): Use tree_low_cst.
3639 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
3640 * tree.c (compare_tree_int): Likewise.
3642 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
3644 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
3645 adjustments even if they are implemented by more than two insns.
3647 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
3649 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
3650 * df.h (struct ref): Kill B.
3651 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
3653 * basic-block.h (PROP_EQUAL_NOTES): New flag.
3654 * flow.c (propagate_one_insn): Use it.
3655 (mark_used_regs): Handle NIL.
3657 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
3659 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
3662 2002-01-25 David Edelsohn <edelsohn@gnu.org>
3664 * rs6000.md (prefetch): Make address V4SI mode so that the address
3665 is restricted to legitimate form for instruction.
3667 2002-01-25 Bob Wilson <bob.wilson@acm.org>
3669 * doc/install.texi (xtensa-*-elf): New target.
3670 (xtensa-*-linux*): New target.
3671 * doc/contrib.texi: Add myself.
3673 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
3675 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
3676 purpose register to hold an SImode (or smaller) value.
3678 2002-01-25 Jakub Jelinek <jakub@redhat.com>
3680 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
3682 * crtstuff.c: Likewise.
3684 2002-01-25 Kazu Hirata <kazu@hxi.com>
3686 * config/h8300/h8300.md (negation patterns): Tighten
3687 predicates to register_operand.
3689 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
3691 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
3694 * builtins.c (expand_builtin_prefetch): Same.
3696 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3698 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
3701 2002-01-24 Kazu Hirata <kazu@hxi.com>
3703 * config/h8300/h8300.c (print_operand): Remove support for
3704 operand character 'A'.
3705 * config/h8300/h8300.md (three anonymous patterns): Replace
3706 operand character 'A' with either 'T' or 'S'.
3708 2002-01-24 Kazu Hirata <kazu@hxi.com>
3710 * config/h8300/h8300.c (print_operand): Remove support for
3711 operand character 'U'.
3713 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
3715 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
3717 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
3719 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
3720 values to be assigned to the stack pointer.
3722 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
3724 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
3725 to const_double needs to be done right for big-endian systems.
3727 2002-01-24 Jason Merrill <jason@redhat.com>
3730 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
3731 to can_throw_internal.
3733 2002-01-23 Richard Henderson <rth@redhat.com>
3735 * fold-const.c (fold): Change UINT_MAX test to check vs precision
3736 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
3738 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3740 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
3741 (symGOT2reg): Use them, then set as GOT value as unchanging.
3742 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
3743 as a temporary, if possible.
3744 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
3745 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
3747 2002-01-23 Kazu Hirata <kazu@hxi.com>
3749 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
3750 accept to accept 0x80 as operands[2].
3752 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3754 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
3756 2002-01-23 Richard Henderson <rth@redhat.com>
3758 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
3760 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
3762 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
3763 (parmlist_or_identifiers_1): Verify that only a parmlist follows
3766 2002-01-23 Richard Henderson <rth@redhat.com>
3768 * expr.c (move_by_pieces_1): Extend size before negation.
3770 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
3771 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
3772 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
3773 * config/m68k/t-m68kelf: Likewise.
3775 2002-01-23 Bob Wilson <bob.wilson@acm.org>
3777 * config/xtensa/elf.h: New file.
3778 * config/xtensa/lib1funcs.asm: New file.
3779 * config/xtensa/lib2funcs.S: New file.
3780 * config/xtensa/linux.h: New file.
3781 * config/xtensa/t-xtensa: New file.
3782 * config/xtensa/xtensa-config.h: New file.
3783 * config/xtensa/xtensa-protos.h: New file.
3784 * config/xtensa/xtensa.c: New file.
3785 * config/xtensa/xtensa.h: New file.
3786 * config/xtensa/xtensa.md: New file.
3787 * config.gcc (xtensa-*-elf*): New target.
3788 (xtensa-*-linux*): New target.
3789 * cse.c (canon_hash): Compare rtx pointers instead of register
3790 numbers. This is required for the Xtensa port.
3791 * integrate.c (copy_insn_list): Handle case where the static
3792 chain is in memory and the memory address has to be copied to
3794 * doc/invoke.texi (Option Summary): Add Xtensa options.
3795 (Xtensa Options): New node.
3796 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
3798 2002-01-23 Zack Weinberg <zack@codesourcery.com>
3800 * diagnostic.c (internal_error): Do ICE suppression only
3801 when ENABLE_CHECKING is not defined.
3803 * c-typeck.c (require_complete_type): Return error_mark_node
3804 if type is error_mark_node.
3806 2002-01-23 Janis Johnson <janis187@us.ibm.com>
3808 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
3809 -Os and issue a warning.
3811 2002-01-23 Zack Weinberg <zack@codesourcery.com>
3813 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
3814 current (lack of) need for host configuration by hand.
3816 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
3817 references. Documentation of some target macros moved from
3818 hostconfig.texi to tm.texi.
3820 2002-01-23 Will Cohen <wcohen@redhat.com>
3822 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
3825 2002-01-23 Kazu Hirata <kazu@hxi.com>
3827 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
3830 2002-01-23 Jason Merrill <jason@redhat.com>
3832 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
3834 * function.c (assign_parms): Don't put args of inline functions
3835 into registers when not optimizing.
3837 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
3839 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
3840 (prologue_use): New pattern.
3841 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
3842 preference to gen_rtx_USE.
3843 (thumb_expand_prologue): Use gen_prologue_use in preference to
3845 (thumb_expand_epilogue): Use gen_prologue_use in preference to
3848 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
3850 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
3852 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
3855 * doc/extend.texi: Correct documentation of __alignof__.
3857 2002-01-22 Zack Weinberg <zack@codesourcery.com>
3859 * params.h: Rename arguments of DEFPARAM so that it will be
3860 recognized as a translation keyword.
3862 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
3864 * extend.texi: Document altivec functions.
3865 Fix N-bit adjectives in X86 builtin documentation.
3867 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
3869 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
3870 auto_inc_dec values.
3872 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
3874 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
3876 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
3878 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
3880 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
3882 2002-01-22 Richard Henderson <rth@redhat.com>
3884 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
3885 copy_insn not copy_rtx.
3887 2002-01-23 Alan Modra <amodra@bigpond.net.au>
3889 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
3890 "nonzero" as that might add "1" bits. Ensure "constop" is
3891 properly sign extened.
3892 (force_to_mode): Tweak for sign extended constop.
3894 2002-01-22 Richard Henderson <rth@redhat.com>
3896 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
3897 for_each_rtx instead of assuming we're already looking at the MEM.
3898 (split_small_symbolic_mem_operand): Likewise.
3899 * config/alpha/alpha.h (PREDICATE_CODES): Update.
3900 * config/alpha/alpha.md (small symbolic memory splitters): Update.
3902 2002-01-22 Richard Henderson <rth@redhat.com>
3904 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
3905 sequence number for the literal.
3906 (divmoddi_internal_er): Likewise.
3908 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
3911 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
3912 in LIBICONV variable.
3913 * configure: Regenerated.
3915 2002-01-22 Krister Walfridsson <cato@df.lth.se>
3917 * dependence.c (build_def_use): Remove array_idx.
3919 * dwarfout.c (last_filename): Remove.
3920 (output_compile_unit_die): Remove last_filename.
3922 2002-01-22 Roger Sayle <roger@eyesopen.com>
3923 Richard Henderson <rth@redhat.com>
3926 * fold-const.c (fold): Optimize unsigned comparisons against
3927 UINT_MAX (and similar unsigned constants).
3929 2002-01-22 Janis Johnson <janis187@us.ibm.com>
3931 * Makefile.in (loop.o): Depend on OPTABS_H.
3932 * loop.c (emit_prefetch_instructions): Check the prefetch operand
3933 against the predicate.
3936 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
3937 for the address operand.
3939 2002-01-22 Richard Henderson <rth@redhat.com>
3941 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
3943 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
3946 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
3949 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
3951 * config.gcc (x86_64-*-netbsd*): New target.
3952 * config/i386/netbsd64.h: New file.
3954 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
3956 * regrename.c (kill_value): Fix typo.
3958 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
3960 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
3962 * config/rs6000/rs6000.h: Same.
3964 * function.c (instantiate_virtual_regs): Remove
3965 STARTING_FRAME_PHASE.
3966 (assign_stack_local_1): Same.
3967 Calculate frame phase.
3969 2002-01-22 Nick Clifton <nickc@redhat.com>
3971 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
3972 variable declaration to outer scope in order to simplify
3974 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
3975 arm_hard_regno_mode_ok.
3976 * config/arm/arm-protos.h: Add a prototype for
3977 arm_hard_regno_mode_ok.
3978 * config/arm/arm.c (soft_df_operand): Remove now redundant
3979 check for DImode values using IP_REGNUM.
3980 (nonimmediate_soft_df_operand): Remove now redundant check for
3981 DImode values using IP_REGNUM.
3982 (arm_hard_regno_mode_ok): New function. New check: make sure
3983 that DImode values are not stored in IP_REGNUM.
3985 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
3987 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
3989 2002-01-22 Jason Merrill <jason@redhat.com>
3991 * c-semantics.c (genrtl_compound_stmt): Only check nesting
3992 consistency if this COMPOUND_STMT is scoped.
3994 2002-01-22 Kazu Hirata <kazu@hxi.com>
3996 * predict.c: Fix formatting.
3997 * print-tree.c: Likewise.
3998 * protoize.c: Likewise.
4001 * sbitmap.h: Likewise.
4003 * sched-deps.c: Likewise.
4004 * sched-vis.c: Likewise.
4005 * sdbout.c: Likewise.
4006 * sibcall.c: Likewise.
4008 * ssa-ccp.c: Likewise.
4009 * ssa-dce.c: Likewise.
4011 * stor-layout.c: Likewise.
4012 * system.h: Likewise.
4014 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4016 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
4017 if fits in bounds of base type.
4019 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
4020 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
4021 (add_bound_info, default): If can't find a context, make a
4023 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
4025 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
4027 * c-typeck.c (parser_build_binary_op): If result from
4028 build_binary_op is ERROR_MARK just return error_mark_node without
4031 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
4033 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
4034 Split a.out-specific bits into...
4035 * config/netbsd-aout.h: ...this.
4036 * config/netbsd-elf.h: New file.
4037 * config/alpha/netbsd-elf.h: Remove.
4038 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
4039 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
4040 (STARTFILE_SPEC): Remove redundant definition.
4041 (ENDFILE_SPEC): Likewise.
4042 (LINK_SPEC): Likewise.
4043 (CPP_SPEC): Likewise.
4044 (ASM_SPEC): Likewise.
4045 (LIB_SPEC): Likewise.
4046 (SWITCH_TAKES_ARG): Likewise.
4047 (TARGET_MEM_FUNCTIONS): Likewise.
4048 (CPP_PREDEFINES): Redefine.
4049 (ASM_FINAL_SPEC): Remove redefinition.
4050 (ASM_COMMENT_START): Redefine.
4051 (FUNCTION_PROFILER): Define.
4052 (TARGET_VERSION): Redefine.
4053 Comment and formatting cleanup.
4054 * config/i386/netbsd.h: Include <netbsd-aout.h>.
4055 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
4056 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
4057 big- or little-endian.
4058 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
4059 * config.gcc (*-*-netbsd*): Add definitions common to all
4061 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
4062 gnu_ld definitions. Add netbsd-elf.h to and remove
4063 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
4064 tmake_file, and don't lose previous tmake_file contents.
4065 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
4066 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
4067 gnu_ld definitions. Add netbsd-elf.h to tm_file.
4068 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
4069 (mipsel-*-netbsd*): Rename this to...
4070 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
4071 mips/little.h to tm_file for mips*el-*.
4072 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
4073 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
4074 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
4076 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
4078 * pa-protos.h (reg_before_reload_operand): New function prototype.
4079 * pa.c (reg_before_reload_operand): New function implementation.
4080 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
4083 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4085 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
4087 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
4089 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
4090 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
4091 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
4092 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
4093 (ENDFILE_SPEC): Undefine.
4094 (STARTFILE_SPEC): Redefine for PA.
4096 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4098 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
4100 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
4102 * config.gcc: Add entries to supported PowerPC --with-cpu
4105 2002-01-21 Jakub Jelinek <jakub@redhat.com>
4107 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
4108 true for 64-bit mode only SSE registers in 32-bit mode.
4110 2002-01-21 Kazu Hirata <kazu@hxi.com>
4112 * unwind-dw2.c: Fix formatting.
4113 * unwind-dw2-fde.c: Likewise.
4114 * unwind-dw2-fde.h: Likewise.
4115 * unwind-pe.h: Likewise.
4116 * varasm.c: Likewise.
4117 * varray.h: Likewise.
4119 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
4121 Remove workaround for register stack overwrite bug in mmix.
4122 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
4123 support for TARGET_REG_STACK_FILL_BUG.
4124 * config/mmix/mmix.h: Remove member has_call_without_parameters.
4125 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
4127 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
4128 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
4129 -mno-reg-stack-fill-bug-workaround.
4130 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
4131 machine member has_call_without_parameters.
4132 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
4133 -mreg-stack-fill-bug-workaround and
4134 -mno-reg-stack-fill-bug-workaround.
4135 (MMIX Options): Ditto.
4137 2002-01-21 Kazu Hirata <kazu@hxi.com>
4139 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
4141 Remove redundant code.
4143 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
4145 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
4146 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
4147 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
4148 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
4149 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
4150 out target macro definitions and non-target-specific comments
4151 mostly taken from old versions of the manual.
4153 2002-01-20 Kazu Hirata <kazu@hxi.com>
4155 * config/h8300/h8300.h: Fix comment formatting.
4156 * config/ia64/aix.h: Likewise.
4157 * config/ia64/ia64-protos.h: Likewise.
4158 * config/ia64/ia64.c: Likewise.
4159 * config/ia64/ia64.h: Likewise.
4160 * config/ia64/ia64intrin.h: Likewise.
4161 * config/ia64/linux.h: Likewise.
4162 * config/ia64/unwind-aix.c: Likewise.
4163 * config/ia64/unwind-ia64.c: Likewise.
4165 2002-01-20 Kazu Hirata <kazu@hxi.com>
4167 * config/h8300/h8300.c: Revise comments about shift code.
4169 2002-01-20 Kazu Hirata <kazu@hxi.com>
4171 * config/h8300/h8300.c (function_arg): Update a comment.
4173 2002-01-20 Kazu Hirata <kazu@hxi.com>
4175 * config/h8300/h8300.md: Update the comments at the beginning
4178 2002-01-20 Kazu Hirata <kazu@hxi.com>
4180 * config/i370/i370.c: Fix comment formatting.
4181 * config/i370/i370.h: Likewise.
4182 * config/i370/i370.md: Likewise.
4183 * config/i370/linux.h: Likewise.
4185 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4187 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
4189 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
4190 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
4193 2002-01-20 Graham Stott <grahams@redhat.com>
4195 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
4197 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
4199 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
4201 2002-01-19 Tom Rix <trix@redhat.com>
4203 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
4205 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
4207 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
4209 * function.c (assign_stack_local_1): Adjust x_frame_offset with
4210 STARTING_FRAME_PHASE.
4211 (STARTING_FRAME_PHASE): New.
4212 (instantiate_virtual_regs): Check saneness of
4213 STARTING_FRAME_PHASE.
4215 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
4217 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
4219 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
4221 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
4223 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
4224 be used for bootstrapping GCC 3.0.
4226 2002-01-18 Kazu Hirata <kazu@hxi.com>
4228 * config/h8300/h8300.md: Fix an insn length.
4230 2002-01-18 Kazu Hirata <kazu@hxi.com>
4232 * bitmap.h: Fix comment formatting.
4233 * combine.c: Likewise.
4234 * cppfiles.c: Likewise.
4235 * c-pragma.h: Likewise.
4236 * c-typeck.c: Likewise.
4238 * dwarf2out.c: Likewise.
4239 * function.c: Likewise.
4241 * genattrtab.c: Likewise.
4242 * gthr-win32.h: Likewise.
4243 * haifa-sched.c: Likewise.
4244 * predict.c: Likewise.
4245 * rtlanal.c: Likewise.
4247 * unwind-dw2-fde.h: Likewise.
4248 * unwind-pe.h: Likewise.
4249 * vmsdbgout.c: Likewise.
4251 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4253 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
4254 if type_required and passed decl.
4256 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
4258 * config.gcc (cpu_type): Include altivec.h in powerpc
4262 * config/rs6000/altivec.h: New.
4264 2002-01-17 David Edelsohn <edelsohn@gnu.org>
4266 * doc/install.texi (*-ibm-aix*): Update assembler and exception
4267 handling information.
4268 * doc/trouble.texi (Interoperation): Add libstdc++ information
4270 (Misunderstandings): Add template instantiation and static template
4271 member information for AIX.
4273 2002-01-17 Jason Merrill <jason@redhat.com>
4275 * dbxout.c (dbxout_type): Support const and volatile.
4277 * except.c (add_partial_entry): Remove backwards compatibility code.
4278 (end_protect_partials): Likewise.
4280 2002-01-17 Jakub Jelinek <jakub@redhat.com>
4282 * config/ia64/ia64.md (prologue_use): New.
4283 * config/ia64/ia64.c (ia64_expand_prologue): Use
4284 gen_prologue_use instead of gen_rtx_USE.
4285 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
4286 as CODE_FOR_pred_rel_mutex.
4287 (ia64_sched_reorder2): Likewise.
4289 2002-01-16 Eric Christopher <echristo@redhat.com>
4291 * config/mips/r3900.h: Reformat.
4292 (SUBTARGET_CPP_SIZE_SPEC): Remove.
4293 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
4294 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
4295 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
4296 * config/mips/t-elf: Remove mips3 multilib.
4298 2002-01-16 H.J. Lu <hjl@gnu.org>
4300 * config/mips/linux.h: Include "mips/abi64.h".
4302 2002-01-16 H.J. Lu <hjl@gnu.org>
4304 * config/mips/t-linux: New.
4306 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
4308 * config/mips/linux.h: Don't include "gofast.h".
4309 (INIT_SUBTARGET_OPTABS): Removed.
4311 2002-01-16 Kazu Hirata <kazu@hxi.com>
4313 * config/h8300/h8300-protos.h: Replace emit_a_shift with
4315 * config/h8300/h8300.c: Likewise.
4316 * config/h8300/h8300.md: Likewise.
4318 2002-01-16 Kazu Hirata <kazu@hxi.com>
4320 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
4321 spaces after an opcode name.
4322 (pushqi1_h8300hs): Likewise.
4323 (pushhi1_h8300hs): Likewise.
4325 2002-01-16 Kazu Hirata <kazu@hxi.com>
4327 * doc/extend.texi: Replace "option" with "attribute"
4330 2002-01-16 Jakub Jelinek <jakub@redhat.com>
4332 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
4333 (and:DI () (const_int -8)).
4334 (split_small_symbolic_mem_operand): Split
4335 (mem (and:DI () (const_int -8)).
4337 2002-01-16 Jakub Jelinek <jakub@redhat.com>
4340 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
4341 same way as TYPE_IMUL.
4342 (ultrasparc_sched_reorder): Likewise.
4343 * config/sparc/sparc.md (type): Add comment to update
4344 ultrasparc_sched_reorder when making changes.
4346 2002-01-16 Kazu Hirata <kazu@hxi.com>
4348 * doc/invoke.texi: Change the dump file name of block
4349 reordering pass from 28.bbro to 29.bbro.
4352 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
4354 * i386.md (minsf splitter): Fix pasto.
4356 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
4358 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
4359 to frame pointer initialisation instruction.
4360 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
4361 initialisation instruction.
4362 (soft_df_operand): Do not accept the IP register.
4363 (nonimmediate_soft_df_operand): Do not accept the IP register.
4365 2002-01-16 Jakub Jelinek <jakub@redhat.com>
4368 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
4369 MASK_V8 being both set.
4371 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
4373 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
4374 insn for GOT register; add REG_MAYBE_DEAD notes instead.
4375 config/s390/s390.md (call, call_value): Add GOT register to
4376 CALL_INSN_FUNCTION_USAGE where needed.
4377 (call_exp, call_value_exp): New.
4379 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
4381 * config/arm/arm.c: General formatting tidy up.
4383 2002-01-16 Graham Stott <grahams@redhat.com>
4385 * calls.c (try_to_integrate): Use "(size_t)" intermediate
4386 cast and when casting an integer literal to "rtx" pointer.
4387 (expand_call): Likewise.
4388 * flow.c (try_pre_increment): Likewise.
4389 (find_use_as_address): Likewise.
4390 * integrate.c (expand_iline_function): Likewise.
4391 * regmove.c (try_auto_increment): Likewise.
4393 2002-01-16 Graham Stott <grahams@redhat.com>
4395 * sched-rgn.c (passed): Use sbitmap_free.
4398 (in_queue): Likewise.
4399 (in_stack): Likewise.
4401 2002-01-15 Eric Christopher <echristo@redhat.com>
4403 * flow.c (propagate_one_insn): Change to use fatal_insn.
4405 2002-01-15 Kazu Hirata <kazu@hxi.com>
4407 * expmed.c (extract_fixed_bit_field): Remove unused code.
4408 * system.h: Poison SLOW_ZERO_EXTEND.
4409 * doc/tm.texi: Remove.
4410 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
4411 * config/arm/arm.h: Likewise.
4412 * config/avr/avr.h: Likewise.
4413 * config/clipper/clipper.h: Likewise.
4414 * config/convex/convex.h: Likewise.
4415 * config/d30v/d30v.h: Likewise.
4416 * config/dsp16xx/dsp16xx.h: Likewise.
4417 * config/elxsi/elxsi.h: Likewise.
4418 * config/fr30/fr30.h: Likewise.
4419 * config/h8300/h8300.h: Likewise.
4420 * config/i370/i370.h: Likewise.
4421 * config/i386/i386.h: Likewise.
4422 * config/m68k/m68k.h: Likewise.
4423 * config/mips/mips.h: Likewise.
4424 * config/ns32k/ns32k.h: Likewise.
4425 * config/pdp11/pdp11.h: Likewise.
4426 * config/pj/pj.h: Likewise.
4427 * config/s390/s390.h: Likewise.
4428 * config/sh/sh.h: Likewise.
4429 * config/stormy16/stormy16.h: Likewise.
4430 * config/v850/v850.h: Likewise.
4431 * config/vax/vax.h: Likewise.
4432 * config/we32k/we32k.h: Likewise.
4434 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
4436 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
4437 (altivec_lvsl): Change constraint to b.
4438 (altivec_lvsr): Same.
4439 (altivec_lvebx): Same.
4440 (altivec_lvehx): Same.
4441 (altivec_lvewx): Same.
4442 (altivec_lvxl): Same.
4443 (altivec_lvx): Same.
4444 (altivec_stvx): Add parallel.
4445 (altivec_stvxl): Same.
4446 (altivec_stvehx): Same.
4447 (altivec_stvebx): Same.
4448 (altivec_stvebx): Same.
4450 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
4452 * config.gcc: Change altivec.h to altivec-defs.h.
4454 * config/rs6000/altivec.h: Delete.
4456 * config/rs6000/altivec-defs.h: Add.
4458 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
4460 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
4463 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
4464 less than or equal to eight bytes.
4466 * vax.md (andsi3): Remove constraints and change SET destination
4467 operand type to nonimmediate_operand.
4468 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
4469 when it is a CONST_INT.
4471 2002-01-15 Jason Merrill <jason@redhat.com>
4473 * c-common.def (FILE_STMT): New code.
4474 * c-common.c (statement_code_p): It's a statement.
4475 * c-common.h (stmt_tree_s): Add x_last_filename.
4476 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
4477 (last_expr_filename): New macro.
4478 * c-semantics.c (begin_stmt_tree): Initialize it.
4479 (add_stmt): If the filename changed, also insert a
4481 (expand_stmt): Handle seeing one.
4483 2002-01-15 Eric Christopher <echristo@redhat.com>
4485 * flow.c (propagate_one_insn): Add error message and print out
4488 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
4490 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
4491 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
4492 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
4493 TRAMPOLINE_ALIGNMENT.
4494 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
4496 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
4497 PCC_BITFIELD_TYPE_MATTERS.
4498 * config/interix.h (STDC_VALUE): Remove. Use
4499 STDC_0_IN_SYSTEM_HEADERS.
4500 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
4501 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
4502 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
4504 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
4506 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
4507 not work on this platform currently.
4509 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
4511 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
4512 readonly_warning in _().
4514 2002-01-15 Douglas B Rupp <rupp@gnat.com>
4516 * gcc.c (delete_if_ordinary): Backout previous change.
4518 2002-01-15 Kazu Hirata <kazu@hxi.com>
4520 * config/h8300/h8300.c (print_operand): Remove support for
4521 unused operand characters.
4523 * read-rtl.c: Fix formatting.
4525 * recog.c: Likewise.
4526 * regclass.c: Likewise.
4527 * regmove.c: Likewise.
4528 * reg-stack.c: Likewise.
4529 * reload1.c: Likewise.
4530 * rtlanal.c: Likewise.
4532 2002-01-15 Kazu Hirata <kazu@hxi.com>
4534 * config/i386/i386.c: Fix formatting.
4536 2002-01-15 Jakub Jelinek <jakub@redhat.com>
4538 * c-typeck.c (process_init_element): Don't save_expr
4539 COMPOUND_LITERAL_EXPR if just its initializer will be used.
4541 2002-01-15 David Edelsohn <edelsohn@gnu.org>
4543 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
4544 emit optional traceback table if optimize_size or TARGET_ELF.
4545 * config/rs6000/rs6000.md (prefetch): New.
4547 2002-01-15 Andreas Jaeger <aj@suse.de>
4549 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
4551 2002-01-15 Kazu Hirata <kazu@hxi.com>
4553 * mips-tfile.c: Fix formatting.
4555 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
4557 * unroll.c (final_reg_note_copy): Fix previous commit.
4559 2002-01-14 Kazu Hirata <kazu@hxi.com>
4561 * config/h8300/h8300-protos.h: Remove the prototype for
4563 * config/h8300/h8300.c (eq_operator): Remove.
4565 2002-01-14 Richard Henderson <rth@redhat.com>
4567 * config/i386/i386.md (prefetch): Tidy.
4568 (prefetch_3dnow): Fix locality operand.
4570 2002-01-14 Richard Henderson <rth@redhat.com>
4572 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
4573 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
4575 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
4577 * reload1.c (reload_combine): Pass reg_sum replacement through
4578 copy_rtx in loop performing multiple changes.
4580 2002-01-14 Jakub Jelinek <jakub@redhat.com>
4582 * except.c (remove_unreachable_regions): New.
4583 (free_eh_status): Clear exception_handler_labels.
4584 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
4585 (find_exception_handler_labels): Don't add the same label more than
4587 (remove_exception_handler_label): Don't die if
4588 find_exception_handler_labels hasn't been called for the current
4591 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
4593 * toplev.c (rest_of_compilation): Rebuild jump labels after
4596 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
4598 * doc/extend.texi: Move documentation of X86 built-in functions
4600 * doc/invoke.texi: From here.
4601 * doc/sourcebuild.texi: Document location of documentation for
4602 machine built-in functions.
4604 2002-01-13 Christopher Faylor <cgf@redhat.com>
4606 * cppfiles.c (TEST_THRESHOLD): New macro.
4607 (SHOULD_MMAP): Ditto.
4608 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
4611 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
4613 * unroll.c (final_reg_note_copy): Properly handle
4615 (unroll_loops): Fix LOOP_CONDITION heuristics.
4617 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
4619 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
4620 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
4622 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
4624 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
4627 2002-01-14 Tom Rix <trix@redhat.com>
4629 * config/rs6000/rs6000.md: Fix typo with sradi.
4631 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
4633 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
4634 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
4635 (clrstrdi, clrstrsi): Adapt callers.
4637 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
4639 (movti splitter): Never use register 0 as base register.
4641 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
4643 * combine.c (simplify_shift_const): Always generate new rtx
4644 for shift expression instead of reusing given expression.
4646 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4648 * config/alpha/alpha.c (alpha_expand_mov): Don't call
4649 alpha_legitimize_address unless mode is Pmode.
4651 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
4653 * doc/md.texi (Modifiers): Document the '*' constraint for the
4656 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
4657 * doc/extend.texi (Function Attributes): 'interrupt' is valid
4660 2002-01-13 Richard Henderson <rth@redhat.com>
4662 * reload.c (find_reloads): Use a hard reg destination as reload reg
4663 for an input reload of the source.
4665 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4667 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
4670 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
4672 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
4673 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
4675 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
4677 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4679 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
4681 2002-01-12 Tom Rix <trix@redhat.com>
4683 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
4686 2002-01-12 Richard Henderson <rth@redhat.com>
4688 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
4690 * doc/invoke.texi: Update Alpha options.
4692 * doc/invoke.texi: Update i386 built-in function lists.
4694 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
4696 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
4697 referencing outside.
4699 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4701 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
4702 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
4703 offsets, and change line folding.
4704 * optabs.c (expand_binop): Remove warnings.
4705 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
4707 2002-01-12 Graham Stott <grahams@redhat.com>
4709 * attribs.c (handle_deprecated_attribute): constify WHAT.
4710 * diagnostic.c (warn_deprecated_use): Add braces, fixes
4711 dangling else warning and constify WHAT.
4712 * except.h (struct function, struct inline_remap): Move
4713 struct tag forward defs before all prototypes.
4714 (duplicate_eh_regions): Whitespace.
4716 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
4718 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
4719 MODE_BASE_REG_CLASS.
4720 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
4722 2002-01-12 Richard Henderson <rth@redhat.com>
4724 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
4725 (ix86_expand_vector_move): New.
4726 (bdesc_2arg): Remove andps, andnps, orps, xorps.
4727 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
4728 Remove old prefetch builtins. Special case the logicals removed above.
4729 (ix86_expand_builtin): Likewise.
4730 (safe_vector_operand): Use V4SFmode, not TImode.
4731 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
4732 (ix86_expand_timode_binop_builtin): New.
4733 * config/i386/i386-protos.h: Update.
4734 * config/i386/i386.h (enum ix86_builtins): Update.
4735 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
4736 Use ix86_expand_vector_move in vector move expanders.
4737 (movti_internal, movti_rex64): Add xorps alternative.
4738 (sse_clrv4sf): Rename and adjust from sse_clrti.
4739 (prefetch): Don't work so hard.
4740 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
4741 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
4742 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
4744 2002-01-11 Richard Henderson <rth@redhat.com>
4746 * config/i386/mmintrin.h: New file.
4747 * config/i386/xmmintrin.h: New file.
4748 * config.gcc (i?86-*-*): Add extra_headers.
4749 * simplify-rtx.c (simplify_unary_operation): Handle saturating
4751 (simplify_binary_operation): Handle saturating arithmetic codes.
4752 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
4753 not the lowpart subreg.
4754 (ix86_expand_builtin): Return a TImode dummy register instead of 0
4756 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
4758 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4760 * conflict.c (conflict_graph_compute): Free regsets when finished.
4761 * ssa.c (compute_coalesced_reg_partition): Likewise.
4763 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4765 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
4766 every where we allocate a register.
4768 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4770 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
4771 * lcm.c (compute_earliest, compute_farthest): Likewise.
4773 2002-01-11 Janis Johnson <janis187@us.ibm.com>
4775 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
4777 2002-01-11 Janis Johnson <janis187@us.ibm.com>
4779 * doc/rtl.texi (Insns): Fix 2 typos.
4781 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
4783 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
4784 options. Use @table @gcctabopt for MMIX options. Add index
4785 entries for MMIX options. Start new paragraph with first
4786 heading of the machine-dependent options.
4788 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
4791 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
4792 * combine.c (force_to_mode): Same.
4793 * reload1.c (clear_reload_reg_in_use): Same.
4795 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
4797 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
4800 2002-01-11 Andreas Jaeger <aj@suse.de>,
4801 Brad Lucier <lucier@math.purdue.edu>
4803 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
4806 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
4808 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
4809 Protect with IN_LIBGCC.
4810 (LINK_EH_SPEC): Add required trailing space.
4812 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
4814 * c-tree.h: Move function declarations so that they are listed
4815 under the filename which contains them.
4816 (check_identifier, finish_decl_top_level,
4817 lookup_name_current_level_global, shadow_record_fields): Remove.
4819 2002-01-11 Andreas Jaeger <aj@suse.de>
4821 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
4824 2002-01-10 Richard Henderson <rth@redhat.com>
4826 * config/alpha/alpha.c (print_operand): Add 'J'.
4827 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
4828 new operand with the sequence number for the lituse. When splitting
4829 the insns, use gen_movdi_er_high_g and generate a sequence number.
4830 (gen_movdi_er_high_g): Print the sequence number if non-zero.
4832 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
4834 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
4835 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
4837 (altivec_expand_builtin): Same.
4838 (altivec_expand_stv_builtin): New.
4840 * config/rs6000/rs6000.h (rs6000_builtins): Same.
4842 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
4843 ("altivec_lvehx"): New.
4844 ("altivec_lvewx"): New.
4845 ("altivec_lvxl"): New.
4846 ("altivec_lvx"): New.
4847 ("altivec_stvx"): New.
4848 ("altivec_stvebx"): New.
4849 ("altivec_stvehx"): New.
4850 ("altivec_stvewx"): New.
4851 ("altivec_stvxl"): New.
4853 2002-01-10 Richard Henderson <rth@redhat.com>
4855 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
4856 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
4857 care not to delete instructions twice.
4859 2002-01-10 Zack Weinberg <zack@codesourcery.com>
4861 * toplev.c: Don't declare environ (it's not used anywhere).
4862 * configure.in: Don't check for declaration of environ.
4863 * config/i386/xm-mingw32.h: Don't #define environ.
4864 * config.in, configure: Regenerate.
4866 2002-01-10 Zack Weinberg <zack@codesourcery.com>
4868 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
4869 * configure: Regenerate.
4871 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
4872 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
4873 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
4875 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
4876 LIMITS_H_TEST here, not in m68k/x-next.
4877 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
4878 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
4880 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
4881 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
4882 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
4884 * config/i386/x-djgpp: Renamed i386/t-djgpp.
4885 * config/m88k/x-dolph: Renamed m88k/t-dolph.
4886 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
4887 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
4888 replacement of quadlib.asm with quadlib.c.
4890 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
4891 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
4892 config/rs6000/xm-beos.h: Delete file.
4894 * config.gcc: Update to match above changes.
4896 2002-01-10 Kazu Hirata <kazu@hxi.com>
4898 * config/h8300/h8300.h: Fix comment typos.
4899 * config/h8300/h8300.md: Likewise.
4900 * config/h8300/lib1funcs.asm: Likewise.
4902 2002-01-10 Dale Johannesen <dalej@apple.com>
4904 PR optimization/5269
4905 * unroll.c (precondition_loop_p): Make *increment be the correct
4906 sign when n_iterations known, to avoid confusing caller.
4908 2002-01-10 Kazu Hirata <kazu@hxi.com>
4910 * doc/extend.texi (deprecated): Fix a typo.
4912 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
4914 * basic-block.h (update_br_prob_note): Declare.
4915 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
4916 (try_forward_edges): Care negative frequencies and update note.
4917 (outgoing_edges_match): Tweek conditional merging heuristics.
4918 (try_crossjump_to_edge): use update_br_prob_note.
4919 * cfglayout.c (fixup_reorder_chain): Likewise.
4920 * cfrtl.c (update_br_prob_note): New.
4921 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
4923 * i386.c (ix86_decompose_address): Return -1 if address contains
4925 (legitimate_address_p): Require ix86_decompose_address to return 1.
4927 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
4928 (cprop_insn): Likewise.
4930 2002-01-10 Kazu Hirata <kazu@hxi.com>
4932 * toplev.c: Fix formatting.
4934 * tree-dump.c: Likewise.
4935 * unroll.c: Likewise.
4936 * unwind-dw2.c: Likewise.
4937 * unwind-dw2-fde.c: Likewise.
4938 * unwind-dw2-fde-glibc.c: Likewise.
4939 * unwind-sjlj.c: Likewise.
4941 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
4943 * doc/invoke.texi: Document PDP-11 options.
4945 2002-01-10 Kazu Hirata <kazu@hxi.com>
4947 * config/h8300/h8300.h: Fix formatting.
4949 2002-01-10 Ira Ruben <ira@apple.com>
4951 Add __attribute__ ((deprecated)).
4952 * extend.texi: Document __attribute__ ((deprecated)).
4953 * invoke.texi: Document -Wno-deprecated-declarations.
4954 * testsuite/g++.dg/other/deprecated.C: New C++ test.
4955 * testsuite/gcc.dg/deprecated.c: New C test.
4956 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
4957 (c_common_attribute_table): Add "deprecated" entry.
4958 (handle_deprecated_attribute): New function.
4959 * c-decl.c (deprecated_states): New enum.
4960 deprecated_state: State of "deprecated" handling.
4961 (start_decl): Set deprecated_state based on attributes.
4962 (grokdeclarator): Test for deprecated uses, propagate attribute.
4963 * c-typeck.c (build_component_ref): Test for deprecated fields.
4964 (build_external_ref): Test for deprecated primaries.
4965 * diagnostic.c (warn_deprecated_use) New function to issue
4966 warnings about __attribute__ ((depricated)) references.
4967 * flags.h (warn_deprecated_decl): Extern declared for
4968 -W[no-]deprecated-declarations option.
4969 * print-tree.c (print_node): Show deprecated flag status.
4970 * toplev.c (warn_deprecated_decl): Defined.
4971 (W_options): Added "deprecated-declaration".
4972 * toplev.h (warn_deprecated_use): Extern declared.
4973 * tree.h (struct tree_common): Define deprecated_flag.
4974 (TREE_DEPRECATED): New macro to access flag.
4975 * cp/call.c (build_call): Test for deprecated calls.
4976 * cp/class.c (add_implicitly_declared_members): Set global
4977 flag to tell grokdeclarator to not issue deprecated warnings.
4978 * cp/cp-tree.h: Add extern for adding_implicit_members.
4979 * cp/decl.c (deprecated_states): New enum.
4980 (start_decl): Set deprecated_state based on attributes.
4981 (grokdeclarator): Test for deprecated uses, propagate attribute.
4982 * cp/lex.c (do_identifier): Test for deprecated primaries.
4983 * cp/typeck.c (build_component_ref): Test for deprecated fields.
4985 2002-01-10 Ira Ruben <ira@apple.com>
4987 Fix to assign attributes to inline member functions.
4988 * cp/decl.c (start_method): Handle attrlist.
4990 2002-01-10 Kazu Hirata <kazu@hxi.com>
4992 * combine.c (expand_field_assignment): Use subreg_lsb().
4994 2002-01-10 David Edelsohn <edelsohn@gnu.org>
4996 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
4997 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
4998 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
4999 Recurse for any operand of AND as long as constant is non-zero.
5001 2002-01-10 Kazu Hirata <kazu@hxi.com>
5003 * config/h8300/h8300.md: Remove constraints from expanders.
5005 2002-01-10 Kazu Hirata <kazu@hxi.com>
5007 * varasm.c: Fix formatting.
5008 * varray.c: Likewise.
5009 * vmsdbgout.c: Likewise.
5010 * xcoffout.c: Likewise.
5012 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
5014 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
5015 update edge probabilities to match.
5017 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
5019 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
5021 * doc/languages.texi, doc/sourcebuild.texi: New files.
5022 * doc/configfiles.texi: Make a subsubsection. Update.
5023 * doc/configterms.texi: Add @node. Remove warning that this isn't
5024 instructions for building GCC.
5025 * doc/makefile.texi: Make a subsection.
5026 * doc/gccint.texi: Update.
5028 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
5030 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
5032 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
5034 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
5036 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
5038 * optabs.c (expand_fix): Look for wider integer modes first.
5040 * i386.md (mov?f): Avoid the fake const double trick for medium
5042 (min?f*/max?f*): Prohibit memory operands for i387 variant.
5043 (fop_df_4): Disable for SSE compilation.
5045 2002-01-10 Graham Stott <grahams@redhat.com>
5047 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
5048 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
5050 2002-01-10 Richard Henderson <rth@redhat.com>
5052 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
5054 2002-01-10 Richard Henderson <rth@redhat.com>
5056 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
5057 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
5059 2002-01-10 Kazu Hirata <kazu@hxi.com>
5061 * combine.c (can_combine_p): Fix a comment typo.
5063 2002-01-09 Zack Weinberg <zack@codesourcery.com>
5065 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
5066 empty list correctly. Change loop index $t to $f for
5067 consistency with rest of Makefile.
5069 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
5071 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
5072 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
5074 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
5075 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
5076 (altivec_init_builtins): Same.
5077 (altivec_expand_unop_builtin): Return NULL_RTX on error.
5078 (altivec_expand_binop_builtin): Same.
5079 (altivec_expand_ternop_builtin): Same.
5082 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
5083 ("altivec_vctuxs"): Fix typo.
5084 ("altivec_vnmsubfp"): Same.
5085 ("altivec_dssall"): New.
5086 ("altivec_mfvscr"): New.
5087 ("altivec_dss"): New.
5088 ("altivec_lvsl"): New.
5089 ("altivec_lvsr"): New.
5090 ("altivec_dstt"): New.
5091 ("altivec_dstst"): New.
5092 ("altivec_dststt"): New.
5093 ("altivec_dst"): New.
5095 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
5096 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
5098 2002-01-09 Richard Henderson <rth@redhat.com>
5100 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
5102 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
5104 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
5106 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
5108 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
5110 2002-01-09 Kazu Hirata <kazu@hxi.com>
5112 * read-rtl.c: Fix formatting.
5114 * regclass.c: Likewise.
5115 * regrename.c: Likewise.
5116 * reg-stack.c: Likewise.
5117 * reload1.c: Likewise.
5118 * reload.c: Likewise.
5121 2002-01-09 Kazu Hirata <kazu@hxi.com>
5123 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
5124 to extract items in the expr_list chain.
5126 2002-01-09 Richard Henderson <rth@redhat.com>
5128 * config/vax/vax.c (vax_rtx_cost): Never abort.
5130 * config/vax/vax.h (REAL_ARITHMETIC): Define.
5132 2002-01-09 Jan Hubicka <jh@suse.cz>
5134 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
5136 2002-01-09 Richard Henderson <rth@redhat.com>
5138 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
5139 Unify code from various alternatives.
5141 2002-01-09 Richard Henderson <rth@redhat.com>
5143 * regrename.c (copy_value): Ignore the copy if the source register
5144 is present in the value chain with a narrower mode.
5146 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5148 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
5149 for the c4x target. Also improve layout.
5151 2002-01-09 Richard Henderson <rth@redhat.com>
5153 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
5154 * config/m32r/m32r.md (and ior xor splitters): Swap operands
5155 to match insn patterns.
5157 2002-01-09 Richard Henderson <rth@redhat.com>
5159 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
5160 (copyprop_hardreg_forward_1): Likewise.
5162 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
5164 * pa.md (decrement_and_branch_until_zero): Change predicate for
5165 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
5167 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
5169 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
5170 gets undefined. For Darwin.
5172 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
5174 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
5176 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
5178 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
5180 2002-01-08 Richard Henderson <rth@redhat.com>
5182 * regrename.c (copy_value): Ignore overlapping copies.
5184 2002-01-08 Richard Henderson <rth@redhat.com>
5186 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
5187 as needed to avoid shared structure.
5189 2002-01-08 Kazu Hirata <kazu@hxi.com>
5191 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
5194 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
5196 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
5197 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
5198 documentation of obsolete macros.
5199 * system.h: Poison these macros.
5200 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
5201 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
5202 config/c4x/c4x.h, config/clipper/clipper.h,
5203 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
5204 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
5205 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
5206 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
5207 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
5208 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
5209 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
5210 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
5211 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
5212 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
5213 config/sparc/sparc.h, config/stormy16/stormy16.h,
5214 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
5215 definitions and commented out definitions of obsolete macros.
5216 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
5217 of MAX_INT_TYPE_SIZE.
5219 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
5221 * config/s390/s390.c (s390_preferred_reload_class): Never
5222 return ADDR_REGS if it isn't a subset of the given class.
5223 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
5224 FP_REGS, but all superclasses as well.
5226 * config/s390/s390.c (s390_function_profiler): Fix thinko.
5228 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
5229 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
5230 must not be a const_int.
5232 2002-01-08 Richard Henderson <rth@redhat.com>
5234 * Makefile.in (toplev.o): Depend on options.h.
5235 (gcc.o): Depend on specs.h.
5237 2002-01-08 Jakub Jelinek <jakub@redhat.com>
5239 * expr.c (store_expr): Convert VOIDmode constants back to target's
5242 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5244 * doc/invoke.texi: Markup gcc as @command. Refer to
5245 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
5246 of http://gcc.gnu.org/thanks.html.
5248 2002-01-08 Dale Johannesen <dalej@apple.com>
5250 * config/rs6000/rs6000.md: Add missing int register
5251 target case to movdf_low.
5253 2002-01-08 Zack Weinberg <zack@codesourcery.com>
5255 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
5256 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
5257 (cppinit.o): Depend on except.h.
5258 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
5259 s-specs): New rules.
5261 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
5262 Don't create specs.h/options.h/gencheck.h here. Remove
5263 unnecessary variable settings from last argument of AC_OUTPUT.
5264 * config.in, configure: Regenerate.
5265 * intl.c: Hardcode package name as "gcc".
5267 * cppinit.c: Include except.h.
5268 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
5270 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
5271 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
5272 (!)USING_SJLJ_EXCEPTIONS.
5273 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
5275 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
5277 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
5278 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
5279 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
5280 documentation of obsolete macros.
5281 * system.h: Poison these macros.
5282 * config/d30v/d30v.h, config/ns32k/encore.h,
5283 config/stormy16/stormy16.h: Remove definitions and commented out
5284 definitions of obsolete macros.
5286 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
5288 * objc/objc-act.c (handle_class_ref): Mark the declaration of
5289 %sobjc_class_ref_%s as used - to prevent unwanted compiler
5292 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
5294 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
5295 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
5296 to insn adjusting stack/frame pointer.
5297 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
5298 accept operands that cause the insn to be non-splittable.
5300 2002-01-08 Graham Stott <grahams@redhat.com>
5302 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
5303 (C_TYPE_FIELDS_VOLATILE): Likewise.
5304 (C_TYPE_BEING_DEFINED): Likewise.
5305 (C_IS_RESERVED_WORD): Likewise.
5306 (C_TYPE_VARIABLE_SIZE): Likewise.
5307 (C_DECL_VARIABLE_SIZE): Likewise.
5308 (C_MISSING_PROTOTYPE_WARNED): Likewise.
5309 (C_SET_EXP_ORIGINAL_CODE): Likewise.
5310 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
5312 (C_DECL_ANTICIPATED): Likewise.
5313 (c_build_type_variant): Add parenthesis.
5315 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
5317 * gcc.c (option_map): Remove --version.
5318 (process_command): Handle -fversion following the GNU Coding
5319 Standards. Partially addresses PR other/704.
5321 2002-01-08 Graham Stott <grahams@redhat.com>
5323 * combine.c (combine_instructions): Fix typo.
5325 2002-01-08 Graham Stott <grahams@redhat.com>
5327 * debug.h: Use "tree" and "rtx" throughout.
5329 * debug.c: Likewise.
5331 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
5333 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
5334 constant pool, use the pool's version of the symbol instead.
5336 2002-01-07 Richard Henderson <rth@redhat.com>
5338 * regrename.c (find_oldest_value_reg): Ignore the value chain if
5339 the original register was copied in a mode with a fewer number of
5340 hard registers than the desired mode.
5341 (copyprop_hardreg_forward_1): Likewise.
5342 (debug_value_data): Fix loop test.
5343 * toplev.c (parse_options_and_default_flags): Reenable
5344 -fcprop-registers at -O1.
5346 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
5348 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
5349 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
5351 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
5354 * config/rs6000/rs6000.md: Add altivec predicate patterns.
5356 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
5358 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
5359 (pa_output_function_prologue): Output local label at the beginning of
5360 the prologue when profiling.
5361 (hppa_profile_hook): Use the local label rather than the function label.
5362 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
5364 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
5366 * config/rs6000/rs6000.c (print_operand): Remove extra space.
5367 (altivec_expand_unop_builtin): Fix thinko.
5368 (altivec_expand_binop_builtin): Same.
5369 (altivec_expand_ternop_builtin): Same.
5370 (altivec_expand_builtin): Same.
5372 2002-01-07 Richard Henderson <rth@redhat.com>
5374 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
5376 2002-01-07 Jason Merrill <jason@redhat.com>
5378 * unwind-dw2.c (execute_cfa_program): Use < again.
5380 2002-01-07 Jakub Jelinek <jakub@redhat.com>
5382 * predict.c (combine_predictions_for_insn): Avoid division by zero.
5384 2002-01-07 Jakub Jelinek <jakub@redhat.com>
5386 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
5387 Don't allow -1 - x -> ~x simplifications in the first pass.
5389 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
5391 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
5393 (altivec_expand_binop_builtin): Same.
5394 (altivec_expand_unop_builtin): Same.
5395 (print_operand): Fix typo.
5396 (bdesc_1arg): Add vupk* variants.
5398 * rs6000.h (rs6000_builtins): Add vupk* enums.
5400 * rs6000.md: Add altivec_vupk* variants.
5402 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
5404 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
5405 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
5406 and last update dates.
5408 2002-01-07 Janis Johnson <janis187@us.ibm.com>
5410 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
5412 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
5414 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
5415 * config/avr/avr.h (CPP_SPEC): Likewise.
5416 (LINK_SPEC): Likewise.
5417 (CRT_BINUTILS_SPECS): Likewise.
5418 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5419 * doc/invoke.texi (AVR Options): Document them.
5421 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
5423 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
5426 2002-01-07 Graham Stott <grahams@redhat.com>
5428 * config/i386/i386.h: Update copyright date.
5429 (HALF_PIC_PTR): Add parenthesis.
5430 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
5431 (CONSTANT_ALIGNMENT): Add parenthesis.
5432 (DATA_ALIGNMENT): Likewise.
5433 (LOCAL_ALIGNMENT): Likewise.
5434 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
5435 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
5436 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
5437 (HARD_REGNO_NREGS): Add paranethesis.
5438 (VALID_SSE_REG_MODE): Whitespace.
5439 (VALID_MMX_REG_MODE): Whitespace.
5440 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
5441 (ix86_hard_regno_mode_ok): Add parenthesis.
5442 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
5443 (RETURN_IN_MEMORY): Whitespace.
5444 (N_REG_CLASSES): Add parenthesis.
5445 (INTEGER_CLASS_P): Add parenthesis and wrap.
5446 (FLOAT_CLASS_P): Likewise.
5447 (SSE_CLASS_P): Likewise.
5448 (MMX_CLASS_P): Likewise.
5449 (MAYBE_INTEGER_CLASS_P): Likewise.
5450 (MAYBE_FLOAT_CLASS_P): Likewise.
5451 (MAYBE_SSE_CLASS_P): Likewise.
5452 (MAYBE_MMX_CLASS_P): Likewise.
5453 (Q_CLASS_P): Likewise.
5454 (GENERAL_REGNO_P): Uppercase macro parameter.
5455 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
5456 (FP_REGNO_P): Likewise.
5457 (ANY_FP_REGNO_P): Uppercase macro parameter.
5458 (SSE_REGNO_P): Likewise.
5459 (SSE_REGNO): Likewise.
5460 (SSE_REG_P): Likewise.
5461 (SSE_FLOAT_MODE_P): Likewise.
5462 (MMX_REGNO_P): Likewise.
5463 (MMX_REG_P):Likewise.
5464 (STACK_REG_P): Likewise.
5465 (NON_STACK_REG_P): Likewise.
5466 (STACK_TOP_P): Likewise.
5467 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
5468 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
5469 (SECONDARY_MEMORY_NEEDED): Likewise.
5470 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
5471 (MD_ASM_CLOBBERS): Whitespace and wrap.
5472 (MUST_PASS_IN_STACK): Whitespace and wrap.
5473 (RETURN_POPS_ARGS): Add parenthesis.
5474 (INIT_CUMULATIVE_ARGS): Likewise.
5475 (FUNCTION_ARG): Likewise.
5476 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
5477 (SETUP_INCOMING_VARARGS): Likewise.
5478 (BUILD_VA_LIST_TYPE): Add parenthesis.
5479 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
5481 (EXPAND_BUILTIN_VA_ARG): Likewise.
5482 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
5483 (INITIALIZE_TRAMPOLINE): Add parenthesis.
5484 (INITIAL_ELIMINATION_OFFSET): Likewise.
5485 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
5486 (REGNO_OK_FOR_BASE_P): Likewise.
5487 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
5488 (REGNO_OK_FOR_DIREG_P): Likewise.
5489 (REG_OK_FOR_INDEX_P): Whitespace.
5490 (REG_OK_FOR_BASE_P): Whitespace.
5491 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
5493 (FIND_BASE_TERM): Fix typo.
5494 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
5495 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
5496 (SYMBOLIC_CONST; Whitespace.
5497 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
5498 (ENCODE_SECTION_INFO): Whitespace.
5499 (FINALIZE_PIC): Remove do { ... } while (0).
5500 (PROMOTE_MODE): Wrap in do { ... } while (0).
5501 (CONST_COSTS): Whitespace.
5502 (RTX_COSTS): Add paramethesis, whitespace and wrap.
5503 (REGISTER_MOVE_COST): Add parenthesis.
5504 (MEMORY_MOVE_COST): Likewise.
5505 (EXTRA_CC_MODES): Whitespace.
5506 (SELECT_CC_MODE): Add parenthesis and whitespace.
5507 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
5508 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
5509 (ASM_OUTPUT_LABEL): Add paramethesis.
5510 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
5511 (ASM_OUTPUT_REG_POP): Likewise.
5512 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
5513 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5515 * config/i386/i386.c: Update copyright.
5516 (CHECK_STACK_LIMIT): Add parenthesis.
5517 (AT_BP): Uppercase macro parameter.
5518 (x86_64_int_parameter_registers): Constify.
5519 (x86_64_int_return_registers): Likewise.
5520 (ix86_compare_op0): Use rtx.
5521 (construct_container): Constify INTREG parameter.
5522 (function_arg): Use rtx.
5524 * diagnostic.h: Update copyright date.
5525 (output_buffer_state): Add parenthesis.
5526 (output_buffer_format_args): Likewise.
5528 * combine.c (combine_instructions): Replace XEXP (links, 0)
5531 2002-01-06 H.J. Lu <hjl@gnu.org>
5533 * cfgcleanup.c (thread_jump): Fix 2 typos.
5535 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
5537 * config.gcc: Add support for --enable-altivec.
5539 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
5541 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
5543 2002-01-06 Jakub Jelinek <jakub@redhat.com>
5545 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
5546 __objc_class_name_*.
5548 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
5550 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
5552 2002-01-06 Richard Henderson <rth@redhat.com>
5554 * reorg.c (emit_delay_sequence): Remove death notes, not merely
5555 nop them out. Increment label reference count for REG_LABEL.
5556 (fill_slots_from_thread): Frob label reference count around
5557 delete_related_insns.
5559 2002-01-05 Richard Henderson <rth@redhat.com>
5561 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
5564 2002-01-05 Richard Henderson <rth@redhat.com>
5566 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
5567 * integrate.c (output_inline_function): Likewise.
5568 * toplev.c (rest_of_compilation): Do it here instead. Move call
5569 to remove_unnecessary_notes after emitting abstract instance.
5570 Force an emitted nested function to have its parent emited as well.
5571 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
5573 (rtl_for_decl_location): Do not look at reload data structures
5574 before reload has run.
5576 2002-01-05 Kazu Hirata <kazu@hxi.com>
5578 * cse.c: Fix formatting.
5579 * dwarf2asm.c: Likewise.
5580 * dwarf2out.c: Likewise.
5581 * explow.c: Likewise.
5582 * expmed.c: Likewise.
5583 * function.c: Likewise.
5585 * gencheck.c: Likewise.
5586 * genrecog.c: Likewise.
5587 * ggc-common.c: Likewise.
5588 * ggc-page.c: Likewise.
5589 * global.c: Likewise.
5591 2002-01-05 Kazu Hirata <kazu@hxi.com>
5593 * combine.c: Fix formatting.
5595 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
5598 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
5600 2002-01-05 David Edelsohn <edelsohn@gnu.org>
5602 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
5603 as 1 for __powerpc64__ as well.
5605 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
5607 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
5610 2002-01-05 Daniel Berlin <dan@dberlin.org>
5612 * lcm.c: Revert change, due to performance regression it causes on
5613 SPEC because it's slightly more conservative (sigh, I hate
5616 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
5618 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
5620 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
5622 * doc/cppinternals.texi: Update.
5624 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
5626 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
5627 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
5629 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
5630 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
5631 kludge for pre-october-14th mmix versions to handle new-found bug
5632 with PUSHJ/PUSHGO and the register stack.
5633 * config/mmix/mmix.h (struct machine_function): Rename member
5634 has_call_value_without_parameters to has_call_without_parameters.
5635 All referers changed.
5636 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
5637 TARGET_MASK_BRANCH_PREDICT): New macros.
5638 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
5639 -mno-reg-stack-fill-bug-workaround.
5640 * config/mmix/mmix.md ("call"): Set struct machine member
5641 has_call_without_parameters.
5643 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
5645 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
5647 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
5649 * cfgcleanup.c: Include tm_p.h
5650 (mark_effect): Fix handling of hard register; fix handling of SET
5652 2002-01-04 Kazu Hirata <kazu@hxi.com>
5654 * config/h8300/h8300.md (anonymous patterns): Check that
5655 operands are registers before using REGNO on them.
5657 2002-01-03 Roland McGrath <roland@frob.com>
5659 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
5661 2002-01-04 Jakub Jelinek <jakub@redhat.com>
5663 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
5664 * c-common.h (genrtl_expr_stmt_value): Likewise.
5665 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
5666 (expand_expr_stmt_value): Add maybe_last argument.
5667 Don't warn about statement with no effect if it is the last statement
5668 in expression statement.
5669 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
5670 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
5671 expand_expr_stmt_value.
5672 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
5673 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
5674 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
5675 as maybe_last to expand_expr_stmt_value.
5677 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
5679 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
5680 be passed in, do not build it.
5681 (c_begin_if_stmt): New function.
5682 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
5683 * c-common.h (c_expand_start_cond): Update prototype.
5684 (c_begin_if_stmt): Prototype new function.
5685 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
5686 * c-parse.in (if_prefix): Use c_begin_if_stmt,
5687 c_begin_while_stmt and c_finish_while_stmt_cond.
5689 2002-01-04 William Cohen <wcohen@redhat.com>
5691 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
5692 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
5693 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
5694 * config/pa/som.h (ASM_FILE_START): Likewise.
5696 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
5698 * lcm.c: Include df.h.
5699 Add available_transfer_function prototype.
5700 (compute_available): Rework to use iterative dataflow framework.
5701 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
5702 with bb_info in df.h
5703 (available_transfer_function): New function.
5705 * Makefile.in (lcm.o): add df.h to dependencies.
5707 2002-01-04 Richard Henderson <rth@redhat.com>
5709 * config/alpha/alpha.c (some_operand): Accept HIGH.
5710 (input_operand): Likewise; accept simple references to globals.
5711 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
5712 (alpha_const_double_ok_for_letter_p): Likewise.
5713 (alpha_extra_constraint): Likewise.
5714 (alpha_preferred_reload_class): Likewise. Do not force
5715 symbolic constants to memory.
5716 (alpha_legitimate_address_p): Accept simple references
5717 to small_symbolic_operand.
5718 (alpha_legitimize_address): New arg scratch. Be prepared to be
5719 called when no_new_pseudos. Emit simple symbolic references.
5720 Split integers into low, high, and rest.
5721 (alpha_expand_mov): Use alpha_legitimize_address.
5722 (some_small_symbolic_mem_operand): New.
5723 (split_small_symbolic_mem_operand): New.
5724 * config/alpha/alpha-protos.h: Update.
5725 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
5726 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
5727 (EXTRA_CONSTRAINT): Likewise.
5728 (PREFERRED_RELOAD_CLASS): Likewise.
5729 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
5730 (PREDICATE_CODES): Update.
5731 * config/alpha/alpha.md: New post-reload splitters to convert
5732 simplfied symbolic operands to the form that references $29.
5733 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
5734 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
5736 2002-01-03 Richard Henderson <rth@redhat.com>
5738 * local-alloc.c (function_invariant_p): Update commentary.
5740 2002-01-04 H.J. Lu <hjl@gnu.org>
5742 * toplev.c (rest_of_compilation): Fix a typo when calling
5745 2002-01-03 Kazu Hirata <kazu@hxi.com>
5747 * c-common.c: Fix formatting.
5748 * diagnostic.c: Likewise.
5749 * doloop.c: Likewise.
5750 * dwarf2out.c: Likewise.
5752 2002-01-03 Kazu Hirata <kazu@hxi.com>
5754 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
5755 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
5757 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
5759 * cpperror.c: Update comments and copyright.
5760 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
5761 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
5763 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
5765 * collect2.c (main): Use strcmp when testing for "-shared".
5767 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
5769 * cppmacro.c: Don't include intl.h. Update comments.
5770 (new_number_token): Allocate enough buffer for 64-bit unsigned
5771 integers; update prototype.
5772 * cppmain.c: Update comments.
5774 2002-01-03 William Cohen <wcohen@redhat.com>
5776 * function.h (struct function): Add profile.
5777 (current_function_profile): New.
5778 doc/extend.texi: Update documentation.
5779 * final.c (final_start_function): Use current_function_profile
5780 instead of profile_flag.
5781 (profile_after_prologue): Likewise.
5782 * function.c (expand_function_start): Likewise.
5783 (expand_function_start): Likewise.
5784 * config/alpha/alpha.c (direct_call_operand):
5785 (alpha_does_function_need_gp): Likewise.
5786 (alpha_expand_prologue): Likewise.
5787 * config/arm/arm.c (arm_expand_prologue): Likewise.
5788 thumb_expand_prologue: Likewise.
5789 * config/d30v/d30v.c (d30v_stack_info): Likewise.
5790 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
5791 (fr30_expand_prologue): Likewise.
5792 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
5793 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
5794 * config/i386/i386.h (FINALIZE_PIC): Likewise.
5795 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
5796 * config/i960/i960.c (i960_output_function_prologue): Likewise.
5797 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5798 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
5799 (m32r_expand_prologue): Likewise.
5800 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
5801 (m88k_expand_prologue): Likewise.
5802 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
5803 * config/mips/mips.c (compute_frame_size): Likewise.
5804 (mips_expand_prologue): Likewise.
5805 (mips_can_use_return_insn): Likewise.
5806 * config/pa/elf.h (ASM_FILE_START): Likewise.
5807 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
5808 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
5809 * config/pa/som.h (ASM_FILE_START): Likewise.
5810 * config/romp/romp.c (romp_using_r14): Likewise.
5811 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
5812 (rs6000_stack_info): Likewise.
5813 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5814 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
5815 * config/v850/v850.c (compute_register_save_size): Likewise.
5817 2002-01-03 Jakub Jelinek <jakub@redhat.com>
5819 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
5820 gen_lowpart_common fails, use gen_lowpart_SUBREG.
5822 2002-01-03 Turly O'Connor <turly@apple.com>
5824 * darwin.c (machopic_output_possible_stub_label): Don't generate
5825 stub routines for pseudo-stubs which we've just defined.
5827 2002-01-03 Kazu Hirata <kazu@hxi.com>
5829 * builtins.c: Fix formatting.
5830 * c-typeck.c: Likewise.
5831 * combine.c: Likewise.
5835 2002-01-03 Andreas Schwab <schwab@suse.de>
5837 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
5838 and return true if _cpp_push_next_buffer pushed a new include
5840 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
5841 _cpp_pop_file_buffer did not push a new file.
5842 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
5844 2002-01-02 Eric Christopher <echristo@redhat.com>
5846 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
5847 FIND_REG_INC_NOTE call. Update copyright.
5848 * loop.c (canonicalize_condition): Ditto.
5849 * reorg.c (delete_scheduled_jump): Ditto.
5851 2002-01-03 Kazu Hirata <kazu@hxi.com>
5853 * gcse.c: Fix formatting.
5855 2002-01-03 Graham Stott <grahams@redhat.com>
5857 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
5858 forward defs for struct tags rtx_def, union_tree, rtvec_def
5859 also output corresponding typedefs for rtx, tree, and rtvec.
5861 * system.h: Move forward defs for struct tags rtx_def, union_tree,
5862 rtvec_def along with corresponding typedefs for rtx, tree, and
5863 rtvec to config.h, hconfig.h, tconfig.h.
5865 2002-01-03 Graham Stott <grahams@redhat.com>
5867 * tree.h: Update copyright date.
5868 (IS_EXPR_CODE_CLASS): Add parenthesis.
5869 (TREE_SET_CODE): Add whitespace.
5870 (TREE_CHECK): Add parenthesis.
5871 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
5872 (CST_OR_CONSTRUCTOR_CHECK):
5873 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
5874 (TREE_SYMBOL_REFERENCED): Whitespace.
5875 (INT_CST_LT): Likewise.
5876 (INT_CST_LT_UNSIGNED): Likewise.
5877 (tree_real_cst): Unwrap comment.
5878 (tree_string): Likewise.
5879 (tree_complex): Likewise.
5880 (IDENTIFIER_POINTER): correct cast.
5881 (SAVE_EXPR_CONTEXT): Whitespace.
5882 (EXPR_WFL_FILENAME_NODE): Likewise.
5883 (EXPR_WFL_FILENAME): Remove parenthesis.
5884 (DECL_ORIGIN): Add parenthesis.
5885 (DECL_FROM_INLINE): Use NULL_TREE.
5886 (build_int_2): Whitespace.
5887 (build_type_variant): Add parenthesis.
5889 * gcc/jcf-parse.c: Update copyright date.
5890 (yyparse): Constify resource_filename.
5892 2002-01-03 Graham Stott <grahams@redhat.com>
5894 * rtl.h: Update copyright date.
5895 (RTL_CHECK1): Wrap long line.
5896 (RTL_CHECK2): Likewise.
5897 (RTL_CHECKC1): Wrap long line and whitespace.
5898 (RTL_CHECKC2): Likewise.
5899 (XWINT): Whitespace.
5905 (XBITMAP): Likewise.
5916 (X0BITMAP): Likewise.
5918 (X0BBDEF): Likewise.
5919 (X0ADVFLAGS): Likewise.
5920 (X0CSELIB): Likewise.
5921 (X0MEMATTR): Likewise.
5929 (XCBITMAP): Likewise.
5931 (XCBBDEF): Likewise.
5932 (XCADVFLAGS): Likewise.
5933 (XCCSELIB): Likewise.
5935 (INSN_UID): Likewise.
5936 (PREV_INSN): Likewise.
5937 (PATTERN): Likewise.
5938 (INSN_CODE): Likewise.
5939 (PUT_REG_NOTE_KIND): Likewise.
5940 (CODE_LABEL_NUMBER): Likewise.
5941 (NOTE_SOURCE_FILE): Likewise.
5942 (NOTE_BLOCK): Likewise.
5943 (NOTE_EH_HANDLER): Likewise.
5944 (NOTE_RANGE_INFO): Likewise.
5945 (NOTE_LIVE_INFO): Likewise.
5946 (NOTE_BASIC_BLOCK): Likewise.
5947 (NOTE_EXPECTED_VALUE): Likewise.
5948 (NOTE_LINE_NUMBER): Likewise.
5949 (LABEL_NAME): Likewise.
5950 (LABEL_NUSES): Likewise.
5951 (LABEL_ALTERNATE_NAME): Likewise.
5952 (ADDRESSOF_DECL): Likewise.
5953 (JUMP_LABEL): Likewise.
5954 (LABEL_NEXTREF): Likewise.
5956 (ORIGINAL_REGNO: Likewise.
5957 (HARD_REGISTER_NUM_P): Add parenthesis.
5958 (SUBREG_REG): Whitespace.
5959 (SUBREG_BYTE): Likewise.
5960 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
5961 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
5962 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
5963 (ASM_OPERANDS_INPUT_VEC): Likewise.
5964 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
5965 (ASM_OPERANDS_INPUT): Likewise.
5966 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
5967 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
5968 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
5969 (ASM_OPERANDS_INPUT_MODE): Likewise.
5970 (ASM_OPERANDS_SOURCE_FILE): Likewise.
5971 (ASM_OPERANDS_SOURCE_LINE): Likewise.
5972 (MEM_SET_IN_STRUCT_P): Minor reformat.
5973 (TRAP_CONDITION): Whitespace.
5974 (TRAP_CODE): Likewise.
5975 (COND_EXEC_TEST): Likewise.
5976 (COND_EXEC_CODE): Likewise.
5977 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
5978 (PHI_NODE_P): Add parenthesis.
5979 (plus_constant): Whitespace and add parenthesis.
5981 2002-01-03 Kazu Hirata <kazu@hxi.com>
5983 * config/avr/avr.c: Fix comment typos.
5984 * config/c4x/c4x.md: Likewise.
5985 * config/dsp16xx/dsp16xx.h: Likewise.
5986 * config/dsp16xx/dsp16xx.md: Likewise.
5987 * config/i386/i386.md: Likewise.
5988 * config/ia64/ia64.c: Likewise.
5989 * config/m32r/m32r.h: Likewise.
5990 * config/m68hc11/m68hc11.md: Likewise.
5991 * config/mmix/mmix.c: Likewise.
5992 * config/mn10200/mn10200.c: Likewise.
5993 * config/romp/romp.c: Likewise.
5994 * config/sh/sh.c: Likewise.
5995 * config/stormy16/stormy16.c: Likewise.
5996 * config/stormy16/stormy16.h: Likewise.
5997 * config/stormy16/stormy16.md: Likewise.
5999 2002-01-03 Graham Stott <grahams@redhat.com>
6001 * loop.h: Update copyright date.
6002 (LOOP_MOVABLES): Fix typo.
6003 (LOOP_REGS): Likewise.
6004 (LOOP_IVS): Likewise.
6006 2002-01-03 Graham Stott <grahams@redhat.com>
6008 * cppinit.c: Update copyright date.
6009 Don't include output.h
6010 * Makefile.in: Update copyright date.
6013 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
6016 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
6017 (-pthread) Add to RS/6000 options.
6019 2002-01-02 Kazu Hirata <kazu@hxi.com>
6021 * except.c: Fix comment typos.
6023 * varasm.c: Likewise.
6024 * doc/tm.texi: Fix a typo.
6026 2002-01-02 Jakub Jelinek <jakub@redhat.com>
6028 * c-typeck.c (output_init_element): Allow initializing static storage
6029 duration objects with compound literals.
6031 2002-01-02 Richard Henderson <rth@redhat.com>
6033 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
6036 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6038 * gcc.c (default_compilers): Const-ify.
6039 * mips-tdump.c (stab_names): Likewise.
6040 * mips-tfile.c (map_coff_types, map_coff_storage,
6041 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
6042 pseudo_ops_t, pseudo_ops): Likewise.
6043 * protoize.c (default_include): Likewise
6045 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
6046 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
6047 Add array size in declaration.
6048 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
6049 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
6050 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
6051 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
6052 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
6053 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
6054 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
6055 emtens, make_nan): Const-ify.
6056 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
6057 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
6059 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
6061 * config.gcc (ia64-*-*): Set extra_headers.
6062 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
6063 * config/alpha/t-osf: Remove.
6064 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
6066 2002-01-02 David Edelsohn <edelsohn@gnu.org>
6068 * config/rs6000/t-aix43: Revert previous change.
6070 2002-01-02 Jason Merrill <jason@redhat.com>
6072 * c-decl.c (c_expand_body): Call outlining_inline_function when
6073 emitting an inline function out of line.
6075 2002-01-02 Richard Henderson <rth@redhat.com>
6077 * dwarf2out.c (limbo_die_node): Add created_for member.
6078 (new_die): New argument created_for. Update all callers.
6079 (mark_limbo_die_list): New.
6080 (dwarf2out_init): Register limbo_die_list as a root.
6081 (dwarf2out_finish): Force insert limbo dies into their function
6084 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
6087 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
6089 2002-01-02 Kazu Hirata <kazu@hxi.com>
6091 * config/h8300/fixunssfsi.c: Update copyright.
6094 * config/h8300/h8300.c: Update copyright.
6097 2002-01-02 Kazu Hirata <kazu@hxi.com>
6099 * config/romp/romp.c: Fix comment formatting.
6100 * config/romp/romp.h: Likewise.
6101 * config/romp/romp.md: Likewise.
6102 * config/s390/s390.c: Likewise.
6103 * config/stormy16/stormy16.c: Likewise.
6104 * config/stormy16/stormy16.h: Likewise.
6106 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
6108 * c-common.h (genrtl_expr_stmt_value): Declare.
6109 * c-semantics.c (genrtl_goto_stmt): Redirect to...
6110 (genrtl_goto_stmt_value): ... this new function. Pass new
6111 argument down to expand_expr_stmt_value, taking
6112 TREE_ADDRESSABLE into account.
6113 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
6114 STMT_EXPR as addressable, i.e., one whose result we want.
6115 * expr.c (expand_expr): Don't save expression statement value
6116 of labeled_blocks or loop_exprs.
6117 * stmt.c (expand_expr_stmt): Redirect to...
6118 (expand_expr_stmt_value): ... this new function. Use new
6119 argument to tell whether to save expression value.
6120 (expand_end_stmt_expr): Reset last_expr_type and
6121 last_expr_value if we don't have either.
6122 * tree-inline.c (declare_return_variable): Mark its use
6123 statement as addressable.
6124 * tree.h: Document new use of TREE_ADDRESSABLE.
6125 (expand_expr_stmt_value): Declare.
6127 2002-01-01 Tom Rix <trix@redhat.com>
6129 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
6130 rs6000_emit_allocate_stack.
6132 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
6134 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
6135 ${srcdir}/ginclude/ to every entry in extra_headers.
6136 * configure: Regenerate.
6137 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
6138 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
6139 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
6140 * ginclude/proto.h: Rename to config/convex/proto.h.
6142 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6144 * attribs.c (handle_vector_size_attribute): Use host_integerp
6145 and tree_int_cst; remove warnings.
6146 * caller-save.c (insert_restore): Add cast to get rid of warning.
6147 (insert_save): Likewise.
6148 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
6149 * regmove.c (find_matches): Add temporary var to kill a warning.
6151 2002-01-01 Douglas B Rupp <rupp@gnat.com>
6153 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
6154 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
6155 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
6156 (vms-dwarf2eh.o): Add Makefile rule.
6157 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
6158 * config/alpha/vms-dwarf2eh.asm: New file.
6160 * gcc.c (delete_if_ordinary): Delete all versions.
6162 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
6164 * config/mmix/mmix.md: Update FIXME to not mention
6166 (MMIX_rJ_REGNUM): New define_constants constant.
6167 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
6168 "*movdicc_real"): Adjust contraints formatting.
6169 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
6170 for branch prediction.
6171 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
6173 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
6174 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
6175 number. Delete related FIXMEs.
6176 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
6177 from number to MMIX_rJ_REGNUM.
6178 (TARGET_MASK_BRANCH_PREDICT): New.
6179 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
6180 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
6181 value. Add -mbranch-predict and -mno-branch-predict.
6182 (TARGET_VERSION): Drop date.
6183 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
6184 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
6185 for finding out global symbols.
6186 (mmix_asm_output_labelref): Revert condition for global symbol.
6187 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
6188 (mmix_print_operand_punct_valid_p): A '+' is valid.
6190 See ChangeLog.6 for earlier changes.