1 2002-03-19 David Edelsohn <edelsohn@gnu.org>
3 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
4 about -fpic/-fPIC if extra_warnings set.
6 2002-03-19 David Edelsohn <edelsohn@gnu.org>
8 * expr.c (expand_expr): Sign-extend CONST_INT generated from
11 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
14 in favor of SP if FRAME_POINTER_REQUIRED is false.
16 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
18 * emit-rtl.c (gen_int_mode): New function.
19 * rtl.h: Prototype for it.
20 * combine.c (make_extraction, simplify_comparison), expmed.c
21 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
22 (convert_modes, store_field), optabs.c (expand_fix),
23 simplify-rtx.c (neg_const_int, simplify_unary_real),
25 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
26 Use it instead of GEN_INT (trunc_int_for_mode (...)).
28 2002-03-19 Jakub Jelinek <jakub@redhat.com>
31 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
32 convert_parm_for_inlining.
33 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
35 * langhooks-def.h: Likewise.
36 * objc/objc-lang.c: Likewise.
37 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
39 * tree-inline.c (initialize_inlined_parameters):
40 Call convert_parm_for_inlining lang hook if needed.
41 * c-typeck.c (c_convert_parm_for_inlining): New function.
42 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
44 2002-03-18 Mark Mitchell <mark@codesourcery.com>
46 * calls.c (precompute_arguments): Do not assume that temporaries
47 can be destroyed after expanding the argument.
48 (expand_call): Likewise.
50 2002-03-15 Eric Christopher <echristo@redhat.com>
52 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
53 Fix register preference on last change.
54 * config/mips/mips.c (mips_return_in_memory): New function.
55 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
56 * config/mips/mips-protos.h: Declare.
57 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
58 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
60 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
62 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
64 (anddi3, iorsi3): Likewise.
66 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
67 use %gprel for symbols that are going to be placed in linkonce
70 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
71 RETURN_ADDRESS_POINTER_REGNUM to $ra.
72 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
73 not needed. Disregard leaf_function_p().
74 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
76 * config/mips/mips.md (store ra): Only to small SP offsets.
77 2001-08-22 Graham Stott <grahams@redhat.com>
78 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
79 return a REG rtx for the return address register.
81 2002-03-18 Bob Wilson <bob.wilson@acm.org>
83 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
84 constant-pool addresses as "mode-dependent".
85 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
87 2002-03-18 Jakub Jelinek <jakub@redhat.com>
90 * expr.c (emit_group_load): Use extract_bit_field if
91 needed for CONCAT arguments.
93 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
96 * arm.md (tablejump): Make this a define_expand. For PIC add the
97 offset to the base of the table.
98 (thumb_tablejump): Matcher for Thumb tablejump insn.
99 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
100 as the difference of two labels.
101 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
102 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
104 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
105 * arm.c (get_jump_table_size): If the table is not in the text
106 section, return zero.
108 2002-03-18 Bernd Schmidt <bernds@redhat.com>
110 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
112 (arm_reload_out_hi): Use gen_lowpart instead of
113 gen_rtx_SUBREG to access QImode components.
114 * config/arm/arm.md: Disable zero_extend split for QImode
115 subregs in BIG_ENDIAN mode.
116 (storehi_bigend): Match use of least significant byte.
117 (storeinthi): Remove extraneous SUBREG.
118 Add missing construction of operands[2].
119 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
120 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
121 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
123 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
125 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
128 2002-03-17 Richard Henderson <rth@redhat.com>
130 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
133 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
135 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
136 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
138 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
140 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
142 * predict.c (estimate_bb_frequencies): Delete unused variables.
144 2002-03-17 Richard Henderson <rth@redhat.com>
146 * config/ia64/ia64.c (ia64_attribute_table): Move before
147 targetm definition. Make static.
149 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
151 * c-common.h (yyparse, c_common_parse_file): New.
152 * c-lang.c: Include c-common.h.
153 (LANG_HOOKS_PARSE_FILE): Redefine.
154 * c-lex.c: Include c-common.h.
155 (yyparse): Rename c_common_parse_file. Call yyparse.
156 * c-parse.in (yyparse): Remove macro.
157 * c-tree.h (yyparse_1): Remove.
158 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
159 (LANG_HOOKS_INITIALIZER): Update.
160 * langhooks.h (struct lang_hoooks): New hook parse_file.
161 * toplev.c (compile_file): Use parse_file hook.
162 * tree.h (yyparse): Remove.
163 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
165 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
167 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
168 float_truncate, not fix.
169 ("*truncdfsf2_real"): Ditto.
170 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
172 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
174 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
176 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
177 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
178 where appropriate. Make the second reference to
179 leaf_function_p a function call, as intended. Reindented.
181 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
182 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
184 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
185 add register to non-constant into sp.
187 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
188 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
189 (mips16_gp_pseudo_rtx): Lose.
190 (INIT_EXPANDERS): Deleted.
191 * config/mips/mips.c (mips_init_machine_status): New.
192 (mips_free_machine_status): New.
193 (mips_mark_machine_status): New.
194 (override_options): Set them.
195 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
196 (struct machine_function): ... new. Replaced all references.
197 (mips_add_gc_roots): Don't mark them.
198 (embedded_pic_fnaddr_reg): New, extracted from...
199 (embedded_pic_offset): ... here.
200 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
203 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
205 * cppinit.c: Revert -MD removal.
207 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
209 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
210 soft registers by default for 68HC12.
211 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
212 when compiling with -fomit-frame-pointer.
213 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
214 (expand_epilogue): Likewise.
215 (m68hc11_gen_rotate): Use exg when rotating by 8.
217 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
219 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
220 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
221 (splits): Remove unused add splits.
222 ("*addhi3_68hc12"): Tune constraints.
223 ("addhi_sp"): Try to use X instead of Y in all cases and if the
224 constant fits in 8-bits and D is dead use abx/aby instructions.
225 ("*addhi3"): Remove extern declaration of ix_reg.
226 ("*subsi3"): Optimize and provide new split.
228 ("*subhi3_sp"): Avoid saving X if we know it is dead.
229 (arith splits): For 68hc12 save the address register on the stack
230 and do the arithmetic operation with a pop.
232 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
234 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
235 allocating QImode in address registers.
236 ("*movqi_m68hc11"): Likewise.
238 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
240 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
242 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
244 * cppinit.c (print_help): Display -MD and -MMD.
245 Don't display usage string. Update assertion syntax and
247 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
248 (cpp_handle_option): Update.
250 2002-03-15 Chris Demetriou <cgd@broadcom.com>
252 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
253 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
254 and define it so that regardless of target CPU size,
255 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
256 of "int" rather than "long."
258 2002-03-15 Richard Henderson <rth@redhat.com>
260 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
263 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
265 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
266 ("tstqi" split): Avoid using memory for tstqi on address register.
267 (splits): Remove constraints.
268 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
269 ("cmpdf", "cmpsf"): Remove since not used.
270 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
271 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
273 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
275 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
276 ("neghi2"): Tighten constraints.
277 ("one_cmplsi2"): Optimize and simplify split.
278 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
280 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
282 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
283 and split of AND operation to clear the upper bits.
284 ("*logicalsi3_zextqi"): Likewise.
285 ("*logicallhi3_zexthi_ashift8"): Likewise.
286 ("*logicalsi3_silshr16"): Likewise.
287 ("logicalsi3_silshl16"): Likewise.
288 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
290 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
292 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
293 (m68hc11_indirect_p): New function.
294 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
295 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
297 (asm_print_register): Likewise.
298 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
299 (m68hc11_indirect_p): Declare.
300 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
301 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
302 (TARGET_SWITCHES): New option -mrelax.
303 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
305 ("iorsi3", "xorsi3"): Likewise.
306 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
307 ("*andhi3_mem"): New to handle destination in memory with bclr
308 and a scratch register.
309 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
310 ("*andhi3_const"): New when operand2 is constant.
311 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
312 ("*andhi3_gen"): Cleanup of the old "andhi3".
313 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
314 ("xorqi3"): Update constraints.
316 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
318 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
319 for reg_equiv_memory_loc when the operand is a register that does
320 not get a hard register (stack location).
321 (tst_operand): After reload, accept all memory operand.
322 (symbolic_memory_operand): Fix detection of symbolic references.
323 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
324 accept symbols and any constant.
326 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
328 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
329 note on the insn that sets the soft frame register.
330 (must_parenthesize): ix and iy are also reserved names.
331 (print_operand_address): One more place where parenthesis are required
332 to avoid confusion with register names.
333 (m68hc11_gen_movhi): Allow push of stack pointer.
334 (m68hc11_check_z_replacement): Fix handling of parallel with a
336 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
337 the replacement register is.
338 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
340 (MODES_TIEABLE_P): All modes are tieable except QImode.
342 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
344 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
345 (___subdi3): Likewise.
346 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
347 (__map_data_section): Optimize 68hc11 case.
349 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
351 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
352 than a shift to avoid adding a register with itself.
353 (m68hc11_memory_move_cost): Take into account NO_REGS.
354 (m68hc11_register_move_cost): Update and use memory move cost
356 (m68hc11_address_cost): Make cost of valid offset not 0 so that
357 it gives more opportunities to cse to optimize.
358 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
359 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
361 2002-03-15 Mark Mitchell <mark@codesourcery.com>
363 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
364 * c-common.def (CLEANUP_STMT): New tree node.
365 * c-common.h (CLEANUP_DECL): New macro.
366 (CLEANUP_EXPR): Likewise.
367 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
368 * expr.c (expand_expr): Tidy.
369 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
370 * tree-inline.c (initialize_inlined_parameters): Clean up
373 2002-03-15 Jakub Jelinek <jakub@redhat.com>
376 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
377 before movrXX only, use reg_overlap_mentioned_p.
378 Only special case NE if just one insn can be generated.
380 2002-03-15 Jason Merrill <jason@redhat.com>
382 * varasm.c (assemble_variable): Call resolve_unique_section before
383 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
386 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
389 * arm.md (split pattern for thumb shiftable immediates): Add comment
390 explaining non-obvious test.
392 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
395 * arm.md (movaddr, movaddr_insn): Delete.
397 2002-03-15 Jason Merrill <jason@redhat.com>
399 * toplev.c (wrapup_global_declarations): Clarify variable handling.
400 -fkeep-static-consts doesn't apply to comdats.
402 2002-03-14 Richard Henderson <rth@redhat.com>
404 * c-decl.c: Include c-pragma.h.
405 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
406 (finish_function): Tidy.
407 * c-pragma.c: Include c-common.h.
408 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
409 (handle_pragma_weak): Use them.
410 (init_pragma): Register pending_weaks.
411 * c-pragma.h (maybe_apply_pragma_weak): Declare.
412 * print-tree.c (print_node): Print DECL_WEAK.
413 * varasm.c (mark_weak_decls): Remove.
414 (remove_from_pending_weak_list): Remove.
416 (asm_emit_uninitialised): Call globalize_decl for weak commons.
417 (weak_decls): Make a tree_list.
418 (declare_weak): Cons weak_decls directly.
419 (globalize_decl): Remove weak_decls elements directly.
420 (weak_finish): Simplify weak_decls walk. Don't weaken unused
421 symbols. Don't pretend to handle aliases.
422 (init_varasm_once): Update weak_decls registry.
423 * Makefile.in: Update dependencies.
425 2002-03-14 Richard Henderson <rth@redhat.com>
428 * config/ia64/ia64.c: Include tm_p.h last.
429 (gen_nop_type): Remove duplicate definition.
430 (cycle_end_fill_slots): Set sched_data for second L slot.
431 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
432 (nop_cycles_until): Fix typos.
434 2002-03-15 Jakub Jelinek <jakub@redhat.com>
437 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
439 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
441 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
442 descriptors correctly.
444 2002-03-14 Michael Meissner <meissner@redhat.com>
446 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
447 100, allowing MAX_UNROLLED_INSNS to be overridden.
449 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
452 * unroll.c (params.h): Include.
453 (MAX_UNROLLED_INSNS): Delete, now in params.h.
455 * doc/invoke.texi (--param max-unroll-insns): Document.
457 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
459 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
461 * arm.md: Fix warnings about constraints in peepholes and splits.
463 2002-03-14 Zack Weinberg <zack@codesourcery.com>
465 * cpphash.h (struct lexer_state): Remove line_extension member.
466 * cpplib.c (dequote_string, do_linemarker): New functions.
467 (linemarker_dir): New data object.
468 (DIRECTIVE_TABLE): No longer need to interpret #line in
469 preprocessed source. Delete obsolete comment about return
471 (end_directive, directive_diagnostics, _cpp_handle_directive):
472 Don't muck with line_extension.
473 (directive_diagnostics): No need to issue warnings for
475 (_cpp_handle_directive): Issue warnings for linemarkers here,
476 when appropriate. Dispatch linemarkers to do_linemarker, not
478 (do_line): Code to handle linemarkers split out to do_linemarker.
479 Convert escape sequences in filename argument, both places.
481 * cppmacro.c (quote_string): Rename cpp_quote_string and
482 export. All callers changed.
483 * cpplib.h (cpp_quote_string): Prototype.
484 * cppmain.c (print_line): Call cpp_quote_string on to_file
487 * doc/cpp.texi: Document that escapes are now interpreted in
488 #line and in linemarkers, and that non-printing characters are
489 converted to octal escapes when linemarkers are generated.
491 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
493 * emit-rtl.c (try_split): Use delete_insns.
494 * recog.c (split_all_insns): Fix terminating condition.
496 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
497 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
500 * arm.c (arm_output_epilogue): Fix floating-point register save
501 adjustment when using a frame pointer.
503 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
505 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
506 * config/mips/mips.c (compute_frame_size): Retrofit them here.
507 (save_restore_insns, mips_expand_epilogue): And here.
508 (build_mips16_call_stub): And here.
509 (mips_function_value): Use the new macros to decide whether a single
510 or complex float can be returned in floating-point registers. Return
511 a parallel rtx in the complex case.
513 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
515 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
516 call after liveness analysis.
518 * recog.c (split_insn): Use delete_insn_and_edges.
520 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
521 instructions to have branch prediction notes.
522 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
524 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
526 * configure.in: Don't pass -Wno-long-long to a ADA compiler
527 that doesn't support it.
528 * configure: Regenerate.
530 2002-03-13 Jakub Jelinek <jakub@redhat.com>
533 * config/sparc/sparc.md (normal_branch, inverted_branch,
534 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
535 inverted_fp_branch): Adjust calls to output_cbranch.
536 Set length attribute.
537 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
538 output_v9branch. Set length attribute.
539 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
541 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
542 (output_cbranch): Likewise. Handle far branches.
543 (output_v9branch): Handle far branches.
544 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
546 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
547 noov_compare64_op predicates.
549 2002-03-13 Jason Merrill <jason@redhat.com>
551 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
552 into the function and constify it.
553 * gthr-dce.h, gthr-solaris.h: Likewise.
555 2002-03-13 David Edelsohn <edelsohn@gnu.org>
557 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
558 * config/rs6000/rs6000.c (rs6000_va_arg): Use
559 std_expand_builtin_va_arg if not ABI_V4.
561 2002-03-13 Jason Merrill <jason@redhat.com>
563 * varasm.c (globalize_decl): New fn.
564 (assemble_start_function): Use it.
565 (asm_emit_uninitialized): Use it.
566 (assemble_alias): Use it.
567 (assemble_variable): Use it.
569 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
571 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
572 2002-03-12 internal visibility change.
573 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
574 visibility into SYMBOL_REF_FLAG.
576 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
578 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
579 VOIDmode operand. Add compile-time optimization for constant results.
581 2002-03-12 Jason Merrill <jason@redhat.com>
583 * c-typeck.c (convert_for_assignment): Don't allow conversions
584 between pointers and references. Only allow lvalues to convert to
587 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
589 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
590 before prologue, to avoid scheduling problems.
592 2002-03-13 Jakub Jelinek <jakub@redhat.com>
594 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
595 (ELIMINABLE_REGS): Add sfp->sp.
596 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
598 2002-03-13 Jakub Jelinek <jakub@redhat.com>
601 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
603 2002-03-13 Jakub Jelinek <jakub@redhat.com>
605 * loop.c (basic_induction_var): Don't call convert_modes if mode
606 classes are different.
608 2002-03-12 Richard Henderson <rth@redhat.com>
611 * function.c (reposition_prologue_and_epilogue_notes): Position
612 the markers after/before the last/first insn not deleted.
614 2002-03-12 Richard Henderson <rth@redhat.com>
617 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
618 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
619 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
621 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
622 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
623 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
625 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
626 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
627 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
628 also. Don't set it if not flag_pic.
629 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
630 to be INVALID_REGNUM when not used.
632 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
634 * expmed.c (store_bit_field): Reset alias set for memory.
635 (extract_bit_field): Same.
637 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
639 * c-common.c (c_tree_code_type, c_tree_code_length,
640 c_tree_code_name, add_c_tree_codes): Delete.
641 * c-common.h (add_c_tree_codes): Delete.
642 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
644 * c-objc-common.c (c_objc_common_init): Don't call
645 add_c_tree_codes, instead set lang_unsafe_for_reeval.
646 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
647 objc_tree_code_name, add_objc_tree_codes): Delete.
648 (objc_init): Don't call add_objc_tree_codes.
649 * objc/objc-lang.c (tree_code_type, tree_code_length,
650 tree_code_name): Define.
651 * toplev.c (lang_independent_init): Don't set
652 tree_code_length[IDENTIFIER_NODE].
653 * tree.c (tree_code_type, tree_code_length, tree_code_name):
654 Delete definitions, moved to language front-ends.
655 * tree.def (IDENTIFIER_NODE): Hardwire the length.
656 * tree.h (tree_code_type, tree_code_length, tree_code_name):
658 (tree_code_length): Change type to unsigned char.
660 2002-03-12 Richard Henderson <rth@redhat.com>
662 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
663 internal visibility change.
665 2002-03-12 Bob Wilson <bob.wilson@acm.org>
667 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
668 validize_mem() instead of change_address to avoid clobbering
671 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
673 * c-lex.h (position_after_whitespace): Remove.
675 2002-03-12 Jakub Jelinek <jakub@redhat.com>
677 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
678 (lex_string): Use unsigned char pointers.
680 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
682 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
683 is not a valid memory_operand.
685 2002-03-12 Bob Wilson <bob.wilson@acm.org>
687 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
688 * config/xtensa/lib1funcs.asm: Fix copyright to include
689 special case for libgcc files.
690 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
691 (__divsi3): Likewise.
692 (__umodsi3): Likewise.
693 (__modsi3): Likewise.
694 * config/xtensa/lib2funcs.S: Fix copyright to include
695 special case for libgcc files.
697 2002-03-12 Tom Rix <trix@redhat.com>
699 * collect2.c (resolve_lib_name): Move outside of
700 OBJECT_FORMAT_COFF ifdef.
701 (ignore_library): Same.
703 2002-03-12 Bob Wilson <bob.wilson@acm.org>
705 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
707 2002-03-12 Bob Wilson <bob.wilson@acm.org>
709 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
710 to function_section before writing out the constant pool.
712 2002-03-12 David Edelsohn <edelsohn@gnu.org>
714 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
716 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
718 2002-03-12 Alan Modra <amodra@bigpond.net.au>
720 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
724 (cmpsi splitter): Likewise.
725 (modsi3): Fail if <= 0.
726 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
727 redundant test when HOST_BITS_PER_WIDE_INT != 32.
728 (reg_or_sub_cint64_operand): Likewise.
729 (num_insns_constant_wide): Optimize sign extension.
730 (rs6000_legitimize_address): Likewise.
732 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
734 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
735 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
737 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
739 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
742 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
744 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
745 scratch register to DImode / TImode.
746 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
747 register used does not overlap the target.
749 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
751 * Makefile.in (debug.o): Depend on debug.h.
752 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
753 * debug.c (do_nothing_debug_hooks): Likewise.
754 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
755 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
756 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
757 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
758 * dwarfout.c (dwarf_debug_hooks): Likewise.
759 * integrate.c (output_inline_function): Likewise.
760 * objc/objc-act.c (synth_module_prologue): Likewise.
761 * sdbout.c (sdb_debug_hooks): Likewise.
762 * toplev.c (debug_hooks): Likewise.
763 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
765 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
767 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
768 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
769 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
770 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
771 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
772 * defaults.h (POINTER_SIZE): Define.
773 * doc/tm.texi (POINTER_SIZE): Document default.
775 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
777 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
779 2002-03-11 Richard Henderson <rth@redhat.com>
781 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
782 if rebuild_label_notes_after_reload.
784 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
786 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
787 emit pic register load if "internal" visibility.
788 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
789 (cris_expand_builtin_va_arg): Do all computations on trees.
791 2002-03-11 Richard Henderson <rth@redhat.com>
793 * rtlanal.c: Include recog.h.
794 (keep_with_call_p): Fix thinko.
795 * Makefile.in (rtlanal.o): Update dependencies.
797 2002-03-11 Chris Meyer <cmeyer@gatan.com>
799 * genflags.c (gen_insn): Use IS_VSPACE.
800 * genoutput.c (output_insn_data): Likewise.
801 (process_template): Likewise.
803 2002-03-11 Richard Henderson <rth@redhat.com>
805 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
807 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
809 * Makefile.in: Update.
810 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
811 Update documentation.
812 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
813 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
815 2002-03-11 Zack Weinberg <zack@codesourcery.com>
817 * Makefile.in: Give texi2pod its input file as a command line
818 argument, not on stdin.
820 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
821 Daniel Berlin <dan@dberlin.org>
823 C++ alias analysis improvement.
824 * alias.c (record_component_aliases): Record aliases for base
827 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
829 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
831 2002-03-11 Douglas B Rupp <rupp@gnat.com>
833 * toplev.c (vms_fopen): Remove, not needed.
835 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
837 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
839 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
840 for FP, already done later.
842 * toplev.c (debug_args): Add entry for VMS_DEBUG.
843 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
845 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
847 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
848 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
849 LARGEST_EXPONENT_IS_NORMAL for the given mode.
850 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
851 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
852 (ediv, emul, eldexp, esqrt): Likewise.
853 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
854 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
855 (saturate): New function.
856 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
857 (make_nan): Use a saturation value instead of a NaN if
858 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
859 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
860 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
861 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
862 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
863 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
865 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
866 (ROUND_TOWARDS_ZERO): Document.
868 2002-03-11 Andreas Jaeger <aj@suse.de>
870 * cfg.c (dump_flow_info): Remove unused variable.
872 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
874 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
875 computations on trees.
877 2002-03-10 Richard Henderson <rth@redhat.com>
880 * reload.c (copy_replacements_1): New.
881 (copy_replacements): Use it to recurse through the rtx.
883 2002-03-10 Richard Henderson <rth@redhat.com>
885 * loop.c (strength_reduce): Compute number of iterations as
886 unsigned HOST_WIDE_INT.
888 2002-03-10 Richard Henderson <rth@redhat.com>
890 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
891 to move away from the end of the block.
893 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
896 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
898 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
900 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
902 * attribs.c (decl_attributes): Fix signed/unsigned warning.
904 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
906 * config/mmix/mmix.c: Improve comments.
907 (mmix_target_asm_function_prologue): Drop variable
908 empty_stack_frame. Don't allocate unused slot above fp.
909 (mmix_target_asm_function_epilogue): Mirror prologue changes.
910 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
911 brace in first column.
912 (enum reg_class): Ditto.
913 (FIRST_PARM_OFFSET): Now 0.
914 (USER_LABEL_PREFIX): Remove #if 0:d definition.
916 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
918 * combine.c (make_extraction): Fix error in last change.
920 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
922 * c4x.c (c4x_fp_reglist): Const-ify.
923 * cris.c (cris_print_operand): Likewise.
924 * i386.c (ix86_va_arg): Likewise.
925 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
926 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
927 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
928 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
929 * mcore.h (regno_reg_class): Likewise.
930 * mips.c (gen_int_relational): Likewise.
931 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
932 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
933 * pdp11.c (move_costs): Likewise.
934 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
935 * s390.c (s390_branch_condition_mnemonic, regclass_map):
937 * s390.h (regclass_map): Likewise.
938 * sh.c (shift_amounts): Likewise.
939 * sh.md (rotlsi3): Likewise.
941 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
943 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
944 (ne0+5): Use new clobber to generate proper shift pattern.
945 Patch by Michael Matz <matz@kde.org>.
947 2002-03-09 Andreas Schwab <schwab@suse.de>
949 * gcc.c (validate_all_switches): Also handle `%W{...}'.
951 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
953 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
955 2002-03-09 Jakub Jelinek <jakub@redhat.com>
958 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
959 even for non-representable constants.
961 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
963 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
964 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
965 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
966 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
967 (pop_function_context): Compute MAY_SHARE parameter for
969 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
970 (gen_mem_addressof): Call fixup_var_refs with new parm.
972 * combine.c (make_extraction): Don't make extension of CONST_INT.
974 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
976 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
978 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
979 but getting fixed-size structs passed in registers regardless of
980 padding in o32 and o64 ABIs.
982 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
983 offset before loading address of argument passed by transparent
986 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
988 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
990 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
992 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
993 marker such that registers after it are saved.
995 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
997 * sparc.c (arith_4096_operand): Fix error in last change.
999 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
1001 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
1004 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
1006 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
1009 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
1011 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
1013 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
1015 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
1016 removed; fix return value.
1017 * combine.c (combine_instructions): Dirtify blocks where we failed to
1018 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
1019 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
1021 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1023 * gcse.c (insert_insn_end_bb): Fix typo in last change.
1025 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
1027 * recog.c (peephole2_optimize): Re-distribute EH edges.
1029 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
1031 * expr.c (expand_expr): Use unsave lang hook.
1032 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
1033 (LANG_HOOKS_INITIALIZER): Update.
1034 * langhooks.h (struct lang_hooks): New hook unsave.
1035 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
1036 (unsave_expr_1): Remove unused lang_unsave_expr_now.
1037 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
1038 (unsave_expr_now): Remove.
1039 * tree.h (unsave_expr_now, lang_unsave,
1040 lang_unsave_expr_now): Remove.
1043 2002-03-08 Andreas Jaeger <aj@suse.de>
1045 * flow.c (propagate_block_delete_insn): Remove unused variable.
1047 2002-03-08 Kazu Hirata <kazu@hxi.com>
1049 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
1050 insn length for memory load/store.
1052 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
1054 * doc/install.texi (--with-libiconv-prefix): Document.
1056 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
1058 * doc/sourcebuild.texi: Fix typo.
1060 2002-03-08 Jakub Jelinek <jakub@redhat.com>
1063 * builtins.c (std_expand_builtin_va_arg): Do all computations on
1066 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1068 * rtl.c (copy_most_rtx): Move from here ...
1069 * emit-rtl.c (copy_most_rtx): ... to here.
1071 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
1073 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
1074 SUBTARGET_CPP_SIZE_SPEC.
1075 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
1077 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
1079 2002-03-07 Matt Hiller <hiller@redhat.com>
1081 * gensupport.c (first_dir_md_include): Renamed from include;
1082 change all references.
1083 (last_dir_md_include): Renamed from last_include; change all
1085 (init_md_reader): Unconditionally initialize base_dir whether or
1086 not filename is a relative path.
1088 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
1090 * config/fp-bit.c (_unord_f2): Compile it in even if
1091 US_SOFTWARE_GOFAST is enabled.
1093 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
1094 NULL_RTX. Set all HFmode operations as NULL_RTX.
1095 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
1096 NULL_RTX, try reversing the comparison and the operands.
1098 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
1100 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
1101 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
1104 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
1106 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
1108 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
1110 * basic-block.h (fixup_abnormal_edges): Declare.
1111 * reload1.c (fixup_abnormal_edges): New function.
1112 * reg-stack.c (convert_regs): Use it.
1114 * gcse.c (insert_insn_end_bb): Handle trapping insns.
1116 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
1118 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
1120 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
1121 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
1122 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
1123 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
1124 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
1125 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
1126 unless x and y could be infinite.
1127 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
1128 Check that the common type of both arguments is a real, even for
1129 targets without unordered comparisons. Allow an integer argument
1130 to be compared against a real.
1131 (expand_tree_builtin): Use expand_unordered_cmp.
1132 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
1133 * cse.c (fold_rtx): Likewise. Fix indentation.
1134 * fold-const.c (fold_real_zero_addition_p): New.
1135 (fold): Use it, and the new HONOR_... macros.
1136 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
1137 * jump.c (reversed_comparison_code_parts): After searching for
1138 the true comparison mode, use HONOR_NANS to decide whether it
1139 can be safely reversed.
1140 (reverse_condition_maybe_unordered): Remove IEEE check.
1141 * simplify-rtx.c (simplify_binary_operation): Use the new macros
1142 to decide which simplifications are valid. Allow the following
1143 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
1144 and (a - -b) to (a + b).
1145 (simplify_relational_operation): Use HONOR_NANS.
1146 * doc/tm.texi: Document the MODE_HAS_... macros.
1148 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
1150 * combine.c (simplify_comparison): If simplifying a logical shift
1151 right and compare with constant, force the comparison to unsigned.
1153 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
1155 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
1157 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
1159 (alt_reg_names): Remove % for vrsave.
1161 2002-03-06 Richard Henderson <rth@redhat.com>
1163 PR optimization/5844
1164 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
1165 if used indicates we've already emitted one copy of an operand.
1166 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
1167 (gen_split): Supply a non-null used.
1169 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
1171 * reload1.c (reload): Unshare all rtl after reload is done.
1173 * simplify-rtx.c (simplify_plus_minus): Do not abort,
1174 but simply fail if the expression is too complex to simplify.
1175 (simplify_gen_binary): Handle simplify_plus_minus failures.
1177 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
1179 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
1180 consistently call delete_trivially_dead_insns after CSE and GCSE;
1181 fix DFI_life dumping; do jump threading after liveness; do crossjumping
1182 after liveness2; update comment in last crossjumping.
1183 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
1185 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
1187 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
1188 after completing fast dead code elimination.
1190 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
1193 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
1195 * version.c: Fix misplaced leading blanks on first line.
1197 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
1199 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
1201 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
1203 * cfgcleanup.c (mentions_nonequal_regs): New function.
1204 (thread_jump): Use it.
1205 * toplev.c (rest_of_compilation): Run jump threading after
1208 2002-03-06 Jakub Jelinek <jakub@redhat.com>
1210 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
1213 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
1215 * predict.c (estimate_bb_frequencies): Do not reload the
1216 frequencies from notes.
1218 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
1220 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
1221 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
1223 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
1224 delete_noop_moves): Return indeger.
1225 * flow.c (ndead): New variable.
1226 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
1227 BB argument; update callers.
1228 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
1229 (life_analysis): Do not call purge_all_dead_edges.
1230 (update_life_info): Return number of deleted insns; print statistics.
1231 (update_life_info_in_dirty_blocks): likewise.
1232 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
1233 return number of insns deleted.
1235 * cse.c: Include timevar.h
1236 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
1237 iterate until stabilizes; print statistics; return number of killed
1239 * Makefile.in: (cse.o): Add timevar.h dependency
1240 * rtl.h (delete_trivially_dead_insns): New.
1241 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
1242 * toplev.c (rest_of_compilation): Update callers.
1244 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
1245 (try_optimize_cfg): Do not update liveness.
1246 (cleanup-cfg): Loop until try_optimize_cfg and dead code
1247 removal stabilizes; use delete_trivially_dead_insns.
1249 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
1251 2002-03-05 Zack Weinberg <zack@codesourcery.com>
1253 * cppmain.c (setup_callbacks): Disable #pragma and #ident
1254 callbacks when processing assembly language.
1256 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
1258 * pa.h (ASM_FILE_END): Define.
1259 * som.h (ASM_FILE_END): Delete.
1261 * pa.c (function_arg): Don't pass floats in general registers in
1262 indirect calls if TARGET_ELF32.
1264 2002-03-05 Richard Henderson <rth@redhat.com>
1266 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
1268 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
1270 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
1272 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1274 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
1275 -r command line. Don't hide any symbols if not building
1278 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
1280 * cfg.c (dump_flow_info): Warn about profile mismatches.
1281 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
1282 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
1284 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1286 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
1287 wide volatile memory by parts.
1289 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1291 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
1294 2002-03-05 Richard Henderson <rth@redhat.com>
1296 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
1298 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
1300 * toplev.c (documented_lang_options): Document more
1301 language-specific options.
1302 * doc/invoke.texi (Warning Options): Correct documentation for
1303 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
1304 * c-decl.c (c_decode_option): Use a table to handle warning options.
1306 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
1308 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
1309 parameter to mmix_encode_section_info.
1310 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
1311 relocatably. Always produce ELF, not mmo if linking relocatably.
1312 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
1313 first is non-zero, don't add symbol prefix.
1314 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
1315 prototype accordingly.
1317 2002-03-04 Krister Walfridsson <cato@df.lth.se>
1319 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
1321 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
1323 * configure.in: Increase required makeinfo version to 4.1.
1324 * configure: Regenerate.
1326 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
1328 * .cvsignore: Remove *.info* and genrtl*; these files are generated
1331 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
1333 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
1334 * doc/invoke.texi: Fix @math uses.
1336 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
1338 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
1341 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
1343 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
1344 (powerpc-*-eabisimaltivec*): Same.
1346 * config/rs6000/t-ppcendian: New.
1348 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1350 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
1351 nonimmediate_src_operand and nonimmediate_lsrc_operand to
1352 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
1354 2002-03-03 Richard Henderson <rth@redhat.com>
1356 * toplev.c (rest_of_decl_compilation): Revert last two changes.
1358 2002-03-03 Zack Weinberg <zack@codesourcery.com>
1360 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
1361 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
1362 tree.c, config/m68k/m68k.c:
1363 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
1364 REAL_ARITHMETIC blocks unconditional. Delete some further
1365 #ifdef blocks predicated on REAL_ARITHMETIC.
1366 * flags.h, toplev.c: Delete remaining references to
1369 * doc/invoke.texi: Remove documentation of -fpretend-float.
1370 * doc/tm.texi: Describe the various REAL_* macros as provided by
1371 real.h, not by the target configuration files.
1373 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
1374 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
1375 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
1376 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
1377 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
1378 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
1379 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
1380 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
1381 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
1382 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
1383 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
1384 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
1385 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
1386 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
1387 config/xtensa/xtensa.h:
1388 Do not define, undefine, or mention in comments any of
1389 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
1390 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
1391 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
1392 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
1393 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
1394 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
1395 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
1396 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
1397 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
1399 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1401 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
1402 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
1403 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
1404 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
1405 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
1406 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
1408 * defaults.h (BITS_PER_WORD): Define.
1409 * doc/tm.texi (BITS_PER_WORD): Document default value.
1411 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
1412 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
1413 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
1415 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1417 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
1418 lieu of explicit sizeof/sizeof.
1419 * i386.c (override_options, ix86_init_mmx_sse_builtins,
1420 ix86_expand_builtin): Likewise.
1421 * mips.c (mips_add_gc_roots): Likewise.
1422 * mmix.c (mmix_output_condition): Likewise.
1423 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
1424 altivec_init_builtins): Likewise.
1425 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
1426 * cppexp.c (Nsuff, parse_number): Likewise.
1427 * cppinit.c (builtin_array_end): Likewise.
1428 * gcc.c (n_default_compilers, process_command): Likewise.
1429 * genpreds.c (output_predicate_decls): Likewise.
1430 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
1431 * lcm.c (N_ENTITIES): Likewise.
1432 * stor-layout.c (set_sizetype): Likewise.
1434 2002-03-03 Richard Henderson <rth@redhat.com>
1436 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
1437 for types or labels.
1439 2002-03-03 Richard Henderson <rth@redhat.com>
1441 * c-decl.c (start_decl): Initialized variables are not common.
1443 2002-03-02 Per Bothner <per@bothner.com>
1445 * gcc.c (option_map): Suport new --bootclasspath option.
1446 --CLASSPATH is now just an alias for --classpath.
1448 2002-03-02 Richard Henderson <rth@redhat.com>
1450 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
1451 load if "internal" visibility.
1452 * doc/extend.texi: Document visibility meanings.
1454 2002-03-02 Richard Henderson <rth@redhat.com>
1456 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
1457 to functions as well.
1459 2002-03-02 Richard Henderson <rth@redhat.com>
1461 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
1462 (handle_visibility_attribute): Don't call assemble_visibility.
1463 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
1464 without asmspec. Invoke assemble_alias when needed.
1465 * varasm.c (maybe_assemble_visibility): New.
1466 (assemble_start_function, assemble_variable, assemble_alias): Use it.
1468 2002-03-02 Richard Henderson <rth@redhat.com>
1470 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
1471 invoke ENCODE_SECTION_INFO with first call flag.
1473 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
1474 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
1475 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
1476 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
1477 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
1478 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
1479 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
1480 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
1481 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
1482 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
1483 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
1484 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
1485 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
1486 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
1487 config/mcore/mcore-protos.h, config/mcore/mcore.c,
1488 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
1489 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
1490 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
1491 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
1492 config/sh/sh.h, config/sparc/sparc.h,
1493 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
1494 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
1495 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
1496 FIRST argument. As needed, examine it and do nothing.
1498 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
1499 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
1500 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
1502 * config/arm/t-pe (pe.o): Add dependencies.
1504 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1506 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
1507 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
1508 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
1509 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
1510 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
1511 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
1512 * defaults.h (BITS_PER_UNIT): Define.
1513 * doc/tm.texi (BITS_PER_UNIT): Document default value.
1515 2002-03-02 Kazu Hirata <kazu@hxi.com>
1517 * config/h8300/h8300-protos.h: Add a prototype for
1518 compute_a_shift_length.
1519 * config/h8300/h8300.c (h8300_asm_insn_count): New.
1520 (compute_a_shift_length): Likewise.
1521 (h8300_adjust_insn_length): Do not adjust insn length of shift
1523 * config/h8300/h8300.md (anonymous shift patterns): Use
1524 compute_a_shift_length.
1526 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1528 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
1531 * emit-rtl.c (offset_address): Call update_temp_slot_address.
1533 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1535 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
1536 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
1537 * flags.h (flag_zero_initialized_in_bss): Declare.
1538 * toplev.c (flag_zero_initialized_in_bss): New flag.
1539 (lang_independent_options): Add flag_zero_initialized_in_bss.
1540 * tree.c (initializer_zerop): New function.
1541 * tree.h (initializer_zerop): Declare.
1542 * varasm.c (assemble_variable): If we can emit bss, put zero
1543 initializers in the bss section.
1545 2002-03-02 Alan Modra <amodra@bigpond.net.au>
1547 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
1548 like more than one symbol per .weak directive.
1550 2002-03-01 Richard Henderson <rth@redhat.com>
1552 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
1553 adjust argument_pointer by pretend_args_size.
1554 (ia64_va_start): Adjust va_start address by -pretend_args_size.
1556 2002-03-01 Kazu Hirata <kazu@hxi.com>
1558 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
1560 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
1562 * toplev.c (rest_of_compilation): Delete dead jumptables before
1564 * flow.c (delete_dead_jumptables): Make global.
1565 * rtl.h (delete_dead_jumptables): Declare.
1567 2002-03-01 David Edelsohn <edelsohn@gnu.org>
1569 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
1570 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
1571 * config/rs6000/xcoff.h (COLLET_EXPORT_LIST): Delete.
1573 2002-03-01 Kazu Hirata <kazu@hxi.com>
1575 * config/h8300/h8300-protos.h: Fix formatting.
1576 * config/h8300/h8300.c: Likewise.
1577 * config/h8300/h8300.h: Likewise.
1579 2002-03-01 Kazu Hirata <kazu@hxi.com>
1581 * config/h8300/h8300.c (print_operand): Support 16-bit
1583 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
1585 2002-02-28 Richard Henderson <rth@redhat.com>
1587 * expmed.c (store_bit_field): Prevent generation of CONCATs;
1588 pun complex values as integers; use gen_lowpart instead of
1590 (extract_bit_field): Likewise.
1592 2002-03-01 Alan Modra <amodra@bigpond.net.au>
1593 David Edelsohn <edelsohn@gnu.org>
1595 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
1596 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
1597 (SUPPORTS_WEAK): Likewise.
1598 * output.h (add_weak): Add tree param.
1599 * varasm.c (add_weak): Likewise. Save decl.
1600 (struct weak_syms): Add decl field.
1601 (mark_weak_decls): New function.
1602 (init_varasm_once): ggc_add_root mark_weak_decls.
1603 (assemble_start_function): Use ASM_WEAKEN_DECL.
1604 (assemble_variable): Likewise.
1605 (assemble_alias): Likewise.
1606 (declare_weak): Pass decl to add_weak.
1607 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
1608 (remove_from_pending_weak_list): Declare and define for
1610 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
1611 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
1612 * defaults.h (SUPPORTS_WEAK): Likewise.
1613 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
1614 .weak for code sym. Do emit .size for descriptor sym.
1615 (ASM_DECLARE_FUNCTION_SIZE): Define.
1616 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
1617 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
1618 .lglobl unless TARGET_XCOFF. Formatting fixes.
1619 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
1621 (HANDLE_PRAGMA_WEAK): Remove.
1622 (ASM_WEAKEN_LABEL): Remove.
1623 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
1625 2002-03-01 Jason Merrill <jason@redhat.com>
1627 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
1628 (TARGET_EXPR_CLEANUP): New macro.
1630 2002-02-28 Steve Ellcey <sje@cup.hp.com>
1632 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
1633 to take ptr_extend into account as third type of extension.
1634 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
1635 fields used by SUBREG_PROMOTED_UNSIGNED_P.
1636 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
1637 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
1638 * calls.c (precompute_arguments): Use new macro.
1639 (expand_call): Ditto.
1640 * combine.c (nonzero_bits): Ditto.
1641 (record_promoted_value): Ditto.
1642 * expr.c (store_expr): Ditto.
1643 (expand_expr): Ditto.
1644 * function.c (assign_parms): Ditto.
1646 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
1648 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
1649 override -shared and -shared-libgcc.
1651 2002-02-28 David O'Brien <obrien@FreeBSD.org>
1653 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
1655 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
1658 2002-02-28 Richard Henderson <rth@redhat.com>
1660 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
1661 4 cycle latency from MM producers.
1662 (ia64_internal_sched_reorder): Likewise with pipeline flush.
1664 2002-02-28 Jakub Jelinek <jakub@redhat.com>
1666 * mklibgcc.in: Don't use GNU make extension.
1668 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
1670 * c-parse.in (STATIC): New terminal.
1671 (scspec): New non-terminal. Update productions accordingly.
1672 (program): Remove bogus ifc / end ifc.
1673 (array_declarator): Simplify production using STATIC.
1675 2002-02-28 Jim Meyering <meyering@lucent.com>
1677 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
1678 \a still means TARGET_BELL.
1680 2002-02-28 Richard Henderson <rth@redhat.com>
1682 * haifa-sched.c (sched_emit_insn): New.
1683 (schedule_block): Use last_scheduled_insn to track last insn.
1684 * sched-int.h (sched_emit_insn): Prototype.
1685 * config/ia64/ia64.c (last_issued): Remove.
1686 (ia64_variable_issue): Don't set it.
1687 (nop_cycles_until): Use sched_emit_insn.
1689 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
1691 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
1694 2002-02-28 Kazu Hirata <kazu@hxi.com>
1696 * config/h8300/h8300.c: Fix formatting.
1697 * config/h8300/h8300.h: Likewise.
1699 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
1701 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
1702 which may overwrite the high byte of the frame pointer.
1704 2002-02-28 Bo Thorsen <bo@suse.de>
1706 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
1707 (STARTFILE_SPEC): Add 64 bit files.
1708 (ENDFILE_SPEC): Likewise.
1710 2002-02-28 Jason Merrill <jason@redhat.com>
1712 * c-decl.c (finish_function): Only warn about missing return
1713 statement with -Wreturn-type.
1715 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
1717 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
1719 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
1720 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
1722 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
1724 * basic-block.h (BB_REACHABLE): Renumber.
1725 (BB_DIRTY, BB_NEW): New flags.
1726 (clear_bb_flags): Declare.
1727 (update_life_info_in_dirty_blocks): Declare.
1728 * cfg.c (clear_bb_flags): New function.
1729 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
1730 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
1731 reorder_insns, emit_insn_after): Mark block as dirty.
1732 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
1733 (update_life_info_in_dirty_blocks): New function.
1734 * recog.c (apply_change_group): Dirtify block.
1736 * cse.c (cse_insn): Reorder emitting of jump insn to keep
1738 * gcse.c (delete_null_pointer_checks): Likewise.
1740 * toplev.c (dump_file_index): Move cse2 after bp,
1742 (dump_file_info): Similary.
1743 (rest_of_compilation): Avoid most of CFG rebuilds;
1744 do first if converision after null pointer checks, do cse2
1745 after branch prediction; avoid full liveness rebuild after
1746 initializing subregs.
1747 * invoke.texi (-d options): Document -du, renumber.
1749 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
1750 (notice_new_block): Do not set BB_UPDATE_LIFE.
1751 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
1752 merge_blocks_move_successor_nojumps, merge_blocks,
1753 try_crossjump_to_edge): Likewise.
1754 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
1755 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
1756 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
1757 (merge_of_block): Do not use life_data_ok.
1758 (find_if_case_1): Do not use SET_UPDATE_LIFE.
1759 (if_convert): Use BB_DIRTY mechanizm to update life.
1760 * lcm.c (optimize_mode_switching): Update
1761 update_life_info_in_dirty_blocks
1763 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
1765 * Makefile.in (integrate.o): Update.
1766 * c-decl.c (copy_lang_decl): Rename.
1767 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
1768 * integrate.c: Include langhooks.h.
1769 (copy_decl_for_inlining): Update to use langhook.
1770 * langhooks-def.h (lhd_do_nothing_t,
1771 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
1772 (LANG_HOOKS_INITIALIZER): Update.
1773 * langhooks.c (lhd_do_nothing_t): New.
1774 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
1775 * tree.h (copy_lang_decl): Remove.
1777 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
1779 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
1781 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
1782 POST_DEC, and POST_MODIFY.
1784 2002-02-27 Zack Weinberg <zack@codesourcery.com>
1786 * c-typeck.c (digest_init): Remove unused parameter; all
1789 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
1791 * expmed.c (expand_shift): Correctly test for low part of a
1794 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
1796 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
1797 insn UIDs with insn addresses.
1799 2002-02-27 Zack Weinberg <zack@codesourcery.com>
1801 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
1802 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
1803 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
1804 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
1805 gcc.c, toplev.c: Delete code implementing -traditional mode.
1807 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
1808 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
1809 Document removal of -traditional mode for compilation, and
1810 remove documentation only relevant to that mode.
1812 * config/nextstep.h, config/ptx4.h, config/svr4.h,
1813 config/convex/convex.h, config/d30v/d30v.h,
1814 config/i386/dgux.h, config/i386/osf1elf.h,
1815 config/i386/osfelf.h, config/i386/osfrose.h,
1816 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
1817 config/m68k/hp310.h, config/m88k/dgux.h,
1818 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
1819 config/m88k/m88k.h, config/m88k/openbsd.h,
1820 config/mips/abi64.h, config/mips/osfrose.h,
1821 config/mips/svr4-5.h, config/mips/svr4-t.h,
1822 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
1823 config/stormy16/stormy16.h: Remove all references to
1824 -traditional from target specs. Delete all mention of the
1825 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
1826 delete a couple of commented-out definitions of
1827 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
1830 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
1831 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
1833 2002-02-27 Zack Weinberg <zack@codesourcery.com>
1835 * mklibgcc.in: Don't use \n in a line subject to
1836 interpretation by echo.
1838 2002-02-27 Graham Stott <grahams@redhat.com>
1840 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
1843 * loop.c (prescan_loop): Handle PARALLEL.
1845 * unroll.c (loop_iterations): Return 0 if the add_val for
1848 * final.c (output_operand_lossage): Constify PFX_STR.
1850 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
1852 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
1854 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
1855 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
1857 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
1859 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
1861 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
1863 * cpplex.c (_cpp_lex_token): Handle directives in macro
1865 * cpplib.c (_cpp_handle_directive): Save and restore state
1866 if parsing macro args when entering a directive.
1867 * cppmacro.c (collect_args): No need to handle directives
1869 (enter_macro_context, replace_args): Use the original macro
1870 definition in case it was redefined whilst collecting arguments.
1874 2002-02-26 David Edelsohn <edelsohn@gnu.org>
1876 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
1877 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
1878 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
1880 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
1881 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
1882 (load_toc_v4_PIC_2): Same.
1884 2002-02-26 Alan Modra <amodra@bigpond.net.au>
1886 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
1888 2002-02-26 Richard Henderson <rth@redhat.com>
1890 * config/alpha/alpha.md (ashldi_se): Re-enable.
1892 2002-02-26 Richard Henderson <rth@redhat.com>
1894 * config/alpha/alpha.c (alpha_encode_section_info): Examine
1895 MODULE_LOCAL_P; improve commentary.
1897 2002-02-26 Zack Weinberg <zack@codesourcery.com>
1899 * doc/cpp.texi: Clarify documentation of relationship between
1902 2002-02-26 Kazu Hirata <kazu@hxi.com>
1904 * config/h8300/h8300-protos.h: Update the prototype for
1905 compute_logical_op_length. Add the prototype for
1906 compute_logical_op_cc.
1907 * config/h8300/h8300.c (compute_logical_op_length): Figure out
1909 (compute_logical_op_cc): New.
1910 * config/h8300/h8300.md: Combine all the logical op patterns
1911 in HImode and SImode. Use compute_logical_op_cc.
1913 2002-02-26 Kelley Cook <kelleycook@comcast.net>
1915 * config/i386/i386.c (print_operand): Don't append ATT-style
1916 length suffixs to x87 opcodes when in Intel mode.
1918 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
1920 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
1921 (init_emit_once): Update calls.
1922 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
1923 (init_syntax_once): Prototype.
1925 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
1927 * pa-linux.h (LIB_SPEC): Update definition.
1928 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
1930 2002-02-26 Richard Henderson <rth@redhat.com>
1932 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
1933 if we emitted a stop bit.
1935 2002-02-26 Jakub Jelinek <jakub@redhat.com>
1937 * configure.in (libgcc_visibility): Substitute.
1938 * configure: Rebuilt.
1939 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
1940 defined symbols .hidden.
1942 2002-02-26 Jakub Jelinek <jakub@redhat.com>
1944 * attribs.c (c_common_attribute_table): Add visibility.
1945 (handle_visibility_attribute): New function.
1946 * varasm.c (assemble_visibility): New function.
1947 * output.h (assemble_visibility): Add prototype.
1948 * tree.h (MODULE_LOCAL_P): Define.
1949 * crtstuff.c (__dso_handle): Use visibility attribute.
1950 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
1951 for MODULE_LOCAL_P symbols too.
1952 * config/ia64/ia64.c (ia64_encode_section_info): Handle
1953 MODULE_LOCAL_P symbols the same way as local symbols.
1954 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
1955 into .sdata/.sbss by the user.
1956 * doc/extend.texi (Function Attributes): Document visibility
1959 2002-02-26 Jakub Jelinek <jakub@redhat.com>
1962 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
1963 STRING_CST initializer spanning the whole variable without
1965 If expand_expr returned MEM, don't use it.
1967 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
1969 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
1970 generate a die for the lexical block.
1972 2002-02-26 Kazu Hirata <kazu@hxi.com>
1974 * config/h8300/h8300-protos.h: Add a prototype for
1975 compute_logical_op_length.
1976 * config/h8300/h8300.c (compute_logical_op_length): New.
1977 * config/h8300/h8300.md (anonymous logical patterns): Use
1978 compute_logical_op_length for length.
1980 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
1982 * dwarf2out.c (modified_type_die): Do not call type_main_variant
1984 (gen_type_die): Same.
1986 * attribs.c (handle_vector_size_attribute): Set debug information.
1988 2002-02-26 Daniel Egger <degger@fhm.edu>
1990 * config/rs6000/rs6000.md: Swap define_insn attributes to
1991 fix incorrect generation of merge high instructions instead
1994 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
1996 * c-typeck.c (really_start_incremental_init): Use
1997 bitsize_zero_node for vectors.
1999 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
2001 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
2002 ("*set_vrsave_internal"): Same.
2004 2002-02-25 Richard Henderson <rth@redhat.com>
2006 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
2007 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
2009 2002-02-25 Jakub Jelinek <jakub@redhat.com>
2012 * config/i386/i386.c (ix86_return_pops_args): Only pop
2013 fake structure return argument if it was passed on the stack.
2015 2002-02-25 Jason Merrill <jason@redhat.com>
2017 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
2020 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
2022 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
2023 link with shared_name only.
2024 * doc/invoke.texi (Link Options): Document new behavior.
2026 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
2028 * c-typeck.c (push_init_level): Handle vectors.
2030 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
2032 * config/sparc/sparc.c (const64_high_operand): Zero-extend
2033 operands of SPARC_SETHI_P.
2034 (input_operand): Likewise.
2035 (sparc_emit_set_const32): Likewise.
2036 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
2037 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
2038 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
2039 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
2040 (movdi_insn_sp64_vis): Likewise.
2041 (movdi split, movdf split): Use SETHI32.
2042 * doc/md.texi: Document SPARC constraints L, M and N.
2044 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
2046 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
2047 ("*set_vrsave_internal"): use mfspr for Darwin.
2049 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
2050 gen_get_vrsave_internal.
2052 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2054 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
2056 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
2058 * cpplex.c (cpp_interpret_charconst): Get signedness or
2059 otherwise of wide character constants correct.
2060 * cppexp.c (lex): Get signedness of wide charconsts correct.
2062 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2064 * optabs.c (widen_operand): Only call convert_modes for
2065 promoted SUBREG if signedness matches.
2066 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
2068 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
2070 * cpplib.c (glue_header_name): Use local buffer to build up
2073 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
2075 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
2077 2002-02-23 Kazu Hirata <kazu@hxi.com>
2079 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
2080 H8/300[HS] separately.
2081 * config/h8300/h8300.md: Remove the early clobber constraint
2082 from bit field patterns.
2084 2002-02-23 Kazu Hirata <kazu@hxi.com>
2086 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
2088 (mulhisi3): Likewise.
2089 (umulqisi3): Likewise.
2090 (umulhisi3): Likewise.
2092 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
2094 * cppinit.c (output_deps): Correct test for stdout output.
2095 (init_dependency_output): Cure warning.
2097 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2099 * expr.c (store_expr): When converting expression to promoted
2100 equivalent type, allow using SUBREG_REG of TARGET as the target
2101 of the expansion of EXP.
2102 * loop.c (basic_induction_var, case SUBREG): Always look inside.
2103 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
2104 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
2105 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
2106 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
2108 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
2110 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
2111 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
2112 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
2114 2002-02-23 Jakub Jelinek <jakub@redhat.com>
2116 PR optimization/5747
2117 * loop.c (scan_loop): Update reg info if move_movables created new
2120 2002-02-23 David Edelsohn <edelsohn@gnu.org>
2122 * gcc.c (init_gcc_spec): Revert last change.
2124 2002-02-23 David Edelsohn <edelsohn@gnu.org>
2126 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
2127 gpc_reg_operand constraint.
2129 2002-02-23 Alan Modra <amodra@bigpond.net.au>
2131 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
2132 Simplify comparison of `low'.
2133 (add_operand): Fix formatting.
2134 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
2135 (mask_operand): Disallow mask to wrap in 64-bit mode.
2136 (rs6000_stack_info): Remove redundant test setting push_p.
2137 (output_toc): Fix formatting.
2138 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
2139 cc_reg_not_cr0_operand constraint.
2140 (booldi3, boolcdi3 splitters): Same.
2142 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
2144 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
2146 2002-02-22 David Edelsohn <edelsohn@gnu.org>
2148 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
2149 gcc invoked with -shared-libgcc.
2151 2002-02-22 Jakub Jelinek <jakub@redhat.com>
2154 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
2155 decl if any of elements was TREE_USED.
2157 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
2159 * config/sparc/sol2.h: Don't include sys/mman.h.
2160 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
2161 (arith_4096_operand): Don't throw high bits away.
2162 (const64_operand): Take sign extension of CONST_INTs into account.
2163 (const64_high_operand, sparc_emit_set_const32): Likewise.
2164 (GEN_HIGHINT64): Likewise.
2165 (sparc_emit_set_const64_quick1): Likewise.
2166 (const64_is_2insns): Likewise.
2167 (print_operand): Use trunc_int_for_mode for sign extension.
2168 * config/sparc/sparc.h (SMALL_INT32): Likewise.
2169 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
2170 chars. Assume CONST_INT is already properly sign-extended.
2171 (movdi split): Sign-extend each SImode part.
2172 (andsi3 split): Don't mask high bits off, so that result
2173 remains properly sign-extend.
2174 (iorsi3 split): Likewise.
2175 (xorsi3 split): Likewise.
2177 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
2179 * fold-const.c (fold): Fix typo in comments.
2181 2002-02-21 Diego Novillo <dnovillo@redhat.com>
2183 * Makefile.in (langhooks.o): Update dependencies.
2185 2002-02-21 Diego Novillo <dnovillo@redhat.com>
2187 * langhooks.c: Include flags.h.
2189 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
2191 * testsuite/gcc.dg/attr-alwaysinline.c: New.
2193 * c-common.c (c_common_post_options): Set inline trees by
2196 * doc/extend.texi (Function Attributes): Document always_inline
2198 Update documentation about inlining when not optimizing.
2200 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
2202 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
2203 unless DECL_ALWAYS_INLINE.
2205 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
2206 unless DECL_ALWAYS_INLINE.
2207 (c_disregard_inline_limits): Disregard if always_inline set.
2209 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
2210 Disregard if always_inline set.
2211 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
2212 unless DECL_ALWAYS_INLINE.
2214 * attribs.c (handle_always_inline_attribute): New.
2215 (c_common_attribute_table): Add always_inline.
2217 * config/rs6000/altivec.h: Add prototypes for builtins
2218 requiring the always_inline attribute.
2220 2002-02-21 Eric Christopher <echristo@redhat.com>
2222 * expmed.c (store_bit_field): Try to simplify the subreg
2223 before generating a new one when when the mode size of
2224 value is less than maxmode.
2226 2002-02-21 Richard Henderson <rth@redhat.com>
2228 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
2229 than gen_rtx_PLUS to form the sum.
2230 * explow.c (force_reg): Rearrange to not allocate new pseudo
2231 when force_operand returns a register.
2232 * expr.c (expand_assignment): Allow offset_rtx expansion to
2233 return a sum. Do not force addresses into registers.
2234 (expand_expr): Likewise.
2235 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
2236 to canonicalize arithmetic that didn't simpify.
2237 (simplify_plus_minus): New argument force; update
2238 all callers. Don't split CONST unless we can do something with it,
2239 and wouldn't lose the constness of the operands.
2241 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
2242 that we generated earlier.
2244 2002-02-21 Tom Tromey <tromey@redhat.com>
2246 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
2247 (output_line_info): Use constant `1', with a long explanatory
2249 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
2251 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
2253 * jump.c (redirect_jump): If old label has no UID, don't try to
2256 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
2258 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
2259 If input is constant, do shifts at compile time.
2261 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
2263 * doc/extend.texi: Fix some more overfull hboxes.
2265 2002-02-21 Jakub Jelinek <jakub@redhat.com>
2267 PR optimization/4994
2268 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
2271 2002-02-21 Jakub Jelinek <jakub@redhat.com>
2274 * expr.h (expand_and): Add mode argument.
2275 * expmed.c (expand_and): Add mode argument.
2276 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
2277 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
2278 * except.c (expand_builtin_extract_return_addr): Likewise.
2279 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
2280 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
2281 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
2282 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
2283 * config/c4x/c4x.md: Use GEN_INT (x) instead of
2284 gen_rtx (CONST_INT, VOIDmode, x).
2286 2002-02-21 Jakub Jelinek <jakub@redhat.com>
2289 * stmt.c (warn_if_unused_value): Move side effects test once more.
2291 2002-02-20 Torbjorn Granlund <tege@swox.com>
2293 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
2294 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
2296 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
2298 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
2299 SUBREG or ZERO_EXTEND.
2301 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
2303 * sh.h (current_function_anonymous_args): Remove.
2304 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
2305 of current_function_varargs and current_function_stdarg is set.
2306 * sh.c (sh_expand_prologue): Check current_function_varargs /
2307 current_function_stdarg / TARGET_SH5 instead of
2308 current_function_anonymous_args.
2310 * sh64.h (TARGET_VERSION): Define.
2312 2002-02-20 David Edelsohn <edelsohn@gnu.org>
2314 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
2315 VRSAVE_REGNO on TARGET_ALTIVEC.
2317 2002-02-20 Alan Modra <amodra@bigpond.net.au>
2319 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
2320 bits of SImode const_int.
2321 (includes_rshift_p): Likewise.
2322 (print_operand): Call mask_operand and mask64_operand with correct
2324 (rs6000_output_function_epilogue): Pad traceback table to word.
2325 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
2326 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
2327 mask64_operand with correct mode.
2328 (FUNCTION_ARG_REGNO_P): Correct parentheses.
2330 2002-02-20 Jakub Jelinek <jakub@redhat.com>
2333 * varasm.c (get_pool_constant_mark): New.
2334 * rtl.h (get_pool_constant_mark): Add prototype.
2335 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
2336 be represented if it has not been output.
2338 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
2340 * combine.c (do_SUBST): Sanity check substitutions of
2341 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
2342 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
2343 CONST_INT into its operand.
2344 (known_cond): Likewise, for ZERO_EXTEND.
2345 * simplify-rtx.c (simplify_unary_operation): Fix condition to
2346 allow for simplification of wide modes. Reject CONST_INTs in
2347 ZERO_EXTEND when their actual mode is not given.
2349 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
2351 * c-decl.c (pushdecl): If no global declaration is found for an
2352 extern declaration in block scope, try a limbo one.
2354 2002-02-20 Jakub Jelinek <jakub@redhat.com>
2357 * c-common.c (pointer_int_sum): Moved from...
2358 * c-typeck.c (pointer_int_sum): ...here.
2359 * c-common.h (pointer_int_sum): Add prototype.
2361 2002-02-20 Jakub Jelinek <jakub@redhat.com>
2364 * c-decl.c (duplicate_decls): Return 0 if issued error about
2367 2002-02-20 Roger Sayle <roger@eyesopen.com>
2368 Jakub Jelinek <jakub@redhat.com>
2371 * tree.c (host_integerp): Ensure that the constant integer is
2372 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
2373 when pos is zero or non-zero respectively. Clarify comment.
2374 * c-format.c (check_format_info_recurse): Fix host_integerp
2375 usage; the pos argument should be zero when assigning to a
2376 signed HOST_WIDE_INT.
2378 2002-02-20 Richard Henderson <rth@redhat.com>
2380 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
2381 of the operand, rather than assuming TImode.
2382 (ix86_expand_binop_builtin): Cope with commutative patterns
2383 using nonimmediate_operand for both operands.
2384 (ix86_expand_timode_binop_builtin): Likewise.
2385 (ix86_expand_store_builtin): Validate operand 1.
2386 (ix86_expand_unop1_builtin): Likewise.
2388 2002-02-20 Philip Blundell <philb@gnu.org>
2391 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
2393 2002-02-20 Richard Henderson <rth@redhat.com>
2396 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
2398 2002-02-20 Tom Tromey <tromey@redhat.com>
2400 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
2401 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
2402 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
2403 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
2404 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
2407 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
2409 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
2410 for (const_int 0) in X not just INTVAL.
2412 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
2414 * doc/extend.texi: Avoid or reduce overfull hboxes.
2416 2002-02-20 Diego Novillo <dnovillo@redhat.com>
2418 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
2419 operations if the field does not start at a mode boundary.
2421 2001-02-20 Joel Sherrill <joel@OARcorp.com>
2423 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
2424 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
2425 Also done for -Acpu and -Amachine.
2427 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
2429 * cppinit.c (init_dependency_output): Take deps output file
2430 from -o if none given with -MF. Suppress normal output.
2431 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
2432 * doc/cpp.texi, doc/invoke.texi: Update.
2434 2002-02-19 Zack Weinberg <zack@codesourcery.com>
2436 * toplev.c (output_quoted_string): Write unprintable
2437 characters with octal escapes.
2439 2002-02-19 David Edelsohn <edelsohn@gnu.org>
2441 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
2442 really_call_used[VRSAVE_REGNO] if not Altivec.
2444 2002-02-19 Alan Modra <amodra@bigpond.net.au>
2446 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
2448 (constant_pool_expr_1): Fix formatting.
2449 (rs6000_legitimize_reload_address): Likewise.
2451 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2453 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
2454 now that we have one.
2456 2002-02-19 Zack Weinberg <zack@codesourcery.com>
2458 * tree.h (struct tree_common): Remove aux. Add unused_0 at
2459 end of first block of bitfields (which was only seven bits);
2460 rename dummy to unused_1; remove comment which is no longer true.
2462 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
2464 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
2466 2002-02-19 Philip Blundell <pb@nexus.co.uk>
2469 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
2473 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
2474 arm_is_longcall_p rather than inspecting call-type cookie
2476 (call_value_insn) [TARGET_THUMB]: Likewise.
2478 2002-02-19 Graham Stott <grahams@redhat.com>
2480 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
2482 2002-02-19 David Edelsohn <edelsohn@gnu.org>
2484 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
2485 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
2486 (FP_SAVE_INLINE): Delete.
2488 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
2489 * config/rs6000/eabi.asm: Remove ABI save restore routines.
2490 * config/rs6000/t-ppccomm: Build crtsavres.o.
2491 * config/rs6000/crtsavres.asm: New file.
2493 2002-02-19 Philip Blundell <philb@gnu.org>
2495 * config/arm/arm.c (use_return_insn): Don't reject interrupt
2497 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
2498 (output_return_instruction): Allow interrupt functions to return with
2499 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
2500 (arm_expand_prologue): Subtract 4 before stacking LR in an
2503 2002-02-19 Philip Blundell <pb@nexus.co.uk>
2505 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
2506 decl, not just FUNCTION_DECL.
2507 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
2508 (arm_assemble_integer): Likewise.
2509 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
2512 2002-02-19 matthew green <mrg@eterna.com.au>
2514 * config.gcc (sparc-*-netbsdelf*): Enable target.
2515 (sparc64-*-netbsd*): New target.
2516 * config/sparc/netbsd-elf.h: New file.
2517 * config/sparc/t-netbsd64: New file.
2519 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
2521 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
2523 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
2525 * doc/invoke.texi: explicitly list the style guidelines that
2526 -Weffc++ checks for.
2528 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
2530 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
2532 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
2535 * gcc.c (cpp_unique_options): Treat -o as indicating object file
2536 only if not -E. If -E, pass -o through to the preprocessor.
2538 2002-02-19 Kazu Hirata <kazu@hxi.com>
2540 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
2541 register number with an appropriate macro.
2543 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2545 * doc/rtl.texi (Constants): Close @code tag.
2547 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
2549 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
2550 ("mmx_uavgv4hi3"): Same.
2551 ("pmulhrwv4hi3"): Same.
2553 * tree-inline.c (walk_tree): Handle vectors.
2555 * c-common.c (constant_expression_warning): Handle vectors.
2556 (overflow_warning): Same.
2558 * sched-deps.c (sched_analyze_2): Handle vectors.
2560 * rtlanal.c (rtx_unstable_p): Handle vectors.
2561 (rtx_varies_p): Same.
2562 (count_occurrences): Same.
2563 (regs_set_between_p): Same.
2564 (modified_between_p): Same.
2565 (modified_in_p): Same.
2566 (volatile_insn_p): Same.
2567 (volatile_refs_p): Same.
2568 (side_effects_p): Same.
2570 (inequality_comparisons_p): Same.
2571 (replace_regs): Same.
2572 (computed_jump_p_1): Same.
2574 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
2576 (inner_mode_array): New.
2577 (copy_rtx): Handle vectors.
2578 (copy_most_rtx): Same.
2579 (rtx_equal_p): Same.
2580 (get_mode_alignment): Adjust for vectors.
2582 * resource.c (mark_referenced_resources): Handle vectors.
2583 (mark_set_resources): Same.
2585 * reload1.c (eliminate_regs): Handle vectors.
2586 (elimination_effects): Same.
2587 (scan_paradoxical_subregs): Same.
2589 * reload.c (subst_reg_equivs): Handle vectors.
2591 * regrename.c (scan_rtx): Handle vectors.
2593 * regclass.c (reg_scan_mark_refs): Handle vectors.
2595 * recog.c (find_single_use_1): Handle vectors.
2597 * local-alloc.c (equiv_init_varies_p): Handle vectors.
2598 (contains_replace_regs): Same.
2599 (memref_referenced_p): Same.
2601 * integrate.c (copy_rtx_and_substitute): Handle vectors.
2602 (subst_constants): Same.
2604 * genattrtab.c (attr_copy_rtx): Handle vectors.
2605 (encode_units_mask): Same.
2606 (clear_struct_flag): Same.
2607 (count_sub_rtxs): Same.
2609 * gcse.c (want_to_gcse_p): Handle vectors.
2610 (oprs_unchanged_p): Same.
2611 (hash_expr_1): Same.
2612 (oprs_not_set_p): Same.
2613 (expr_killed_p): Same.
2614 (compute_transp): Same.
2615 (store_ops_ok): Same.
2617 * function.c (purge_addressof_1): Do not allow paradoxical subregs
2619 (fixup_var_refs_1): Same.
2620 (instantiate_virtual_regs_1): Same.
2622 * fold-const.c (operand_equal_p): Handle vectors.
2624 (rtl_expr_nonnegative_p): Same.
2626 * flow.c (mark_used_regs): Handle vectors.
2628 * df.c (df_uses_record): Handle vectors.
2630 * cselib.c (cselib_subst_to_values): Handle vectors.
2631 (cselib_mem_conflict_p): Same.
2634 * cse.c (canon_reg): Handle vectors.
2636 (cse_process_notes): Same.
2637 (count_reg_usage): Same.
2640 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
2642 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
2644 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
2645 (gen_rtx): Handle CONST_VECTOR.
2646 (gen_const_vector_0): New.
2647 (copy_rtx_if_shared): CONST_VECTORs can be shared.
2648 (reset_used_flags): Same.
2649 (copy_insn_1): Same.
2650 (initializer_constant_valid_p): Handle VECTOR_CST.
2652 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
2654 * doc/rtl.texi (Constants): Document const_vector.
2655 (CONST0_RTX): Update for vectors.
2656 (RTL sharing): Same.
2658 * print-tree.c (print_node): Add case for VECTOR_CST.
2660 * tree.h (TREE_VECTOR_CST_ELTS): New.
2661 (struct tree_vector): New.
2662 (union tree_node): Add vector node.
2663 (build_vector): Add prototype.
2665 * tree.def (VECTOR_CST): New.
2667 * tree.c (build_vector): New.
2669 * expmed.c (make_tree): Handle CONST_VECTOR.
2671 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
2672 (CONST_VECTOR_ELT): New.
2673 (CONST_VECTOR_NUNITS): New.
2675 * machmode.h (GET_MODE_INNER): New.
2676 (DEF_MACHMODE): Accept 8th arg.
2678 * machmode.def: Add 8th argument for vector inner mode.
2679 Add inner vector modes for vectors.
2681 * rtl.def (VEC_CONST): Remove.
2682 (CONST_VECTOR): New.
2684 * expr.c (clear_storage): Allow vectors.
2685 (is_zeros_p): Handle VECTOR_CST.
2687 * varasm.c (output_constant_pool): Handle vectors.
2688 (rtx_const): Add veclo and vechi fields.
2689 (kind): Add RTX_VECTOR.
2690 (decode_rtx_const): Add case for vector.
2692 * config/rs6000/rs6000-protos.h: Add zero_constant.
2694 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
2695 constants. Force easy vector constants into memory.
2696 (easy_vector_constant): New.
2697 (emit_easy_vector_constant): New.
2698 (rs6000_legitimize_reload_address): Do not generate bad reloads on
2701 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
2703 ("altivec_lvxl"): Same.
2704 (altivec_lvebx): Same.
2705 (altivec_lvehx): Same.
2706 (altivec_lvewx): Same.
2707 ("*movv4si_const0"): New.
2708 ("*movv4sf_const0"): New.
2709 ("*movv8hi_const0"): New.
2710 ("*movv16qi_const0"): New.
2712 2002-02-18 Kazu Hirata <kazu@hxi.com>
2714 * config/h8300/h8300.c (notice_update_cc): Use
2717 2002-02-18 Kazu Hirata <kazu@hxi.com>
2719 * config/h8300/h8300.md (divmod patterns): Change the
2720 constraints for operands[1] to register_operand.
2722 2002-02-18 Kazu Hirata <kazu@hxi.com>
2724 * config/h8300/h8300-protos.h: Remove the prototype for
2726 * config/h8300/h8300.c (p_operand): Remove.
2727 * config/h8300/h8300.md: Replace p_operand with
2730 2002-02-18 Philip Blundell <pb@nexus.co.uk>
2732 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
2734 (output_return_instruction): Allow use of LDR to unstack
2735 return addresss even for interrupt handlers or when
2736 interworking. If compiling for ARMv5, use interworking-safe
2737 return instructions by default. Remove duplicated code and
2738 lengthy "strcat" sequences.
2740 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2742 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
2743 (LINK_EH_SPEC): Define.
2744 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
2746 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
2748 * config/s390/s390.c (s390_emit_prologue): Do not set the
2749 frame_related flag for call-clobbered registers.
2751 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
2753 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
2754 (construct_container): Fix handling of SSE operands.
2755 (ix86_expand_builtin): Fix handling of 64bit pointers.
2756 (mmx_maskmovq_rex): New pattern.
2758 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
2760 * regrename.c (kill_set_value): Handle subregs properly.
2762 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
2764 * objc/objc-act.c (handle_impent): Remove leading '*'
2765 from objc_class_name.
2767 2002-02-17 Richard Henderson <rth@redhat.com>
2769 * config/alpha/alpha.c (some_small_symbolic_operand,
2770 some_small_symbolic_operand_1, split_small_symbolic_operand,
2771 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
2772 Handle small SYMBOL_REFs anywhere, not just inside memories.
2773 * config/alpha/alpha-protos.h: Update.
2774 * config/alpha/alpha.h (PREDICATE_CODES): Update.
2775 * config/alpha/alpha.md (small symbolic operand splitter): Update.
2777 2002-02-17 Roland McGrath <roland@frob.com>
2779 * config.gcc (powerpc-*-gnu-gnualtivec*,
2780 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
2781 * config/rs6000/gnu.h: New file.
2782 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
2783 Grok "gnu" in rs6000_abi_name.
2784 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
2785 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
2786 Grok -mcall-gnu analogous to -mcall-linux et al.
2787 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
2788 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
2789 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
2791 2002-02-17 Jakub Jelinek <jakub@redhat.com>
2794 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
2797 2002-02-17 Philipp Thomas <pthomas@suse.de>
2799 * config/cris/cris.h: Undefine STARTFILE_SPEC and
2800 ENDFILE_SPEC before (re)defining them.
2802 2002-02-17 Kazu Hirata <kazu@hxi.com>
2804 * config/h8300/h8300.c: Fix formatting.
2805 * config/h8300/h8300.h: Likewise.
2807 2002-02-17 Philipp Thomas <pthomas@suse.de>
2809 * doc/tm.texi: Explain why empty strings should not be
2810 marked for translation.
2812 2002-02-17 Philipp Thomas <pthomas@suse.de>
2814 * final.c (output_operand_lossage): Changed to accept
2815 printf style arguments. Change calls where necessary.
2816 * output.h (output_operand_lossage): Change declaration
2817 accordingly. Update copyright.
2818 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
2819 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
2820 Update copyright date where necessary.
2822 * config/i386/i386.c (print_operand): Likewise. Remove use of
2825 * config/cris/cris.c (cris_operand_lossage): Likewise.
2826 Rename parameter so that exgettext recognizes it as
2827 translatable message.
2828 (LOSE_AND_RETURN): Rename parameter to msgid.
2830 2002-02-17 Kazu Hirata <kazu@hxi.com>
2832 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
2833 hard coded register number with an appropriate macro.
2834 (HARD_REGNO_MODE_OK): Likewise.
2835 (ARG_POINTER_REGNUM): Likewise.
2836 (STATIC_CHAIN_REGNUM): Likewise.
2837 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
2838 * config/h8300/h8300.md (define_constants): Define more
2841 2002-02-17 Philipp Thomas <pthomas@suse.de>
2843 * config/i386/i386.h: Don't mark empty strings for translation.
2845 2002-02-16 H.J. Lu <hjl@gnu.org>
2847 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
2849 2002-02-16 Zack Weinberg <zack@codesourcery.com>
2851 * cppinit.c (merge_include_chains): Check for brack being
2852 NULL before attempting to merge it with qtail.
2854 2002-02-16 Andrew Cagney <ac131313@redhat.com>
2856 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
2859 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
2861 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
2863 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
2865 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
2866 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
2867 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
2869 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2871 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
2872 now only if !TARGET_FIX.
2873 (*movsi_nt_vms_fix): New pattern.
2875 2002-02-16 Douglas B Rupp <rupp@gnat.com>
2877 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
2878 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
2879 (alpha_sa_mask, alpha_sa_size): Reflect above change.
2880 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
2881 (alpha_start_function, alpha_expand_epilogue): Likewise.
2882 (unicosmk_gen_dsib): Likewise.
2884 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2886 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
2888 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
2890 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
2891 check_and_change_labels, s390_final_chunkify): Delete.
2892 (s390_split_branches, s390_chunkify_pool): New functions.
2893 (s390_function_prologue): Call them.
2895 * config/s390/s390.h (S390_REL_MAX): Delete.
2896 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
2898 * config/s390/s390.md (cjump, icjump, jump): Fix length
2899 attribute calculation.
2902 2002-02-15 David Edelsohn <edelsohn@gnu.org>
2904 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
2905 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
2907 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
2909 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
2910 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
2911 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
2913 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
2915 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
2917 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
2919 * reload.c (find_dummy_reload): Check that an output register
2920 is valid for its mode.
2922 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
2924 * combine.c (known_cond): After replacing the REG of a SUBREG, try
2927 * function.c (assign_parms): Demote promoted argument passed by
2928 transparent reference.
2930 2001-02-14 Joel Sherrill <joel@OARcorp.com>
2932 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
2933 -Acpu() and -Amachine() to eliminate warnings.
2935 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
2937 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
2939 2002-02-14 Kazu Hirata <kazu@hxi.com>
2941 * config/h8300/h8300-protos.h: Update the prototype for
2943 * config/h8300/h8300.c (const_costs): Treat SET as a little
2944 more expensive operation.
2945 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
2946 reference to const_costs.
2948 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
2950 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
2952 2002-02-14 Jakub Jelinek <jakub@redhat.com>
2955 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
2956 use arguments from newtype.
2958 2002-02-13 Eric Christopher <echristo@redhat.com>
2960 * config/mips/mips.c (override_options): Add check for march/mipsX
2961 on the same command line. Fix error message in cpu processing.
2962 Remove architecture and ISA checks.
2964 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
2966 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
2968 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
2970 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
2972 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
2974 ("*movv8hi_internal1"): Same.
2975 ("*movv16qi_internal1"): Same.
2976 ("*movv4sf_internal1"): Same.
2978 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
2979 not push_reload for altivec modes.
2981 2002-02-13 Joel Sherrill <joel@OARcorp.com>
2983 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
2984 all RTEMS targets including removal of #includes from config/*/rtems*.h
2985 file and adding them to tm_file setting. Added xm_defines=POSIX to
2987 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
2988 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
2989 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
2990 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
2991 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
2992 config/m68k/rtemself.h: Ditto.
2993 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
2994 config/mips/rtems64.h: Ditto.
2995 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
2996 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
2998 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
2999 config/sparc/rtemself.h: Ditto.
3000 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
3001 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
3002 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
3004 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
3005 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
3006 target made more similar to i386-elf.
3007 * config/i386/t-rtems-i386: Added soft float support and multilibs.
3008 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
3009 be similar to config/m68k/t-m68kelf.
3010 * gthr-rtems.h: Encapsulate with extern "C" for C++.
3012 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
3014 * regmove.c (kill_value): Handle subregs.
3016 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
3018 * i386.md (mul patterns): Allow memory operand to be first;
3019 add expanders where needed; fix constraints.
3020 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
3021 Allow memory operand to be the first.
3023 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
3026 2002-02-13 Jakub Jelinek <jakub@redhat.com>
3029 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
3032 2002-02-13 Jakub Jelinek <jakub@redhat.com>
3034 PR optimization/5547:
3035 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
3036 all valid IA-32 address modes involving non-scaled %ebx and
3037 GOT/GOTOFF as displacement.
3039 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
3041 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
3042 after emitting ltorg insns.
3044 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
3045 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
3046 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
3047 *abssf2): Fix "op_type" attribute.
3049 2002-02-13 Douglas B Rupp <rupp@gnat.com>
3051 * mkconfig.sh: Avoid using a subshell redirect.
3052 ($output.T): Change to $(output)T.
3053 (ENABLE_NLS): Remove unneeded undef.
3055 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
3056 * config/alpha/x-vms (libsubdir): Define.
3058 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
3059 register frame procedures. Optimize retrieving context.
3061 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
3062 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
3063 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
3065 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3067 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
3068 Make same change as for find_base_value.
3070 2002-02-13 Kazu Hirata <kazu@hxi.com>
3072 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
3073 of QImode and SImode.
3075 2002-02-13 Kazu Hirata <kazu@hxi.com>
3077 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
3078 length computation of movsi.
3079 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
3081 2002-02-13 Kazu Hirata <kazu@hxi.com>
3083 * config/h8300/h8300.md (subqi3): Tighten the predicate for
3084 operands[2] to register_operand.
3086 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
3088 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
3090 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
3092 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
3093 for altivec_lvx* and altivec_stvx*.
3094 ("*movv4si_internal"): Add constraint for loading from GPRs.
3095 ("*movv8hi_internal1"): Same.
3096 ("*movv16qi_internal1"): Same.
3097 ("*movv4sf_internal1"): Same.
3099 * config/rs6000/rs6000.c (altivec_register_operand): New.
3101 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
3102 altivec_register_operand.
3104 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
3106 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
3109 2002-02-13 Stan Shebs <shebs@apple.com>
3111 * c-typeck.c (digest_init): Handle vectors.
3112 (really_start_incremental_init): Same.
3113 (pop_init_level): Same.
3114 (process_init_element): Same.
3116 * varasm.c (output_constant): Same.
3118 * expr.c (clear_storage): Same.
3119 (store_constructor): Same.
3121 2002-02-12 Eric Christopher <echristo@redhat.com>
3123 * explow.c (hard_function_value): Add comment explaining
3124 signed/unsigned comparison.
3126 2002-02-12 Jakub Jelinek <jakub@redhat.com>
3128 * jump.c (never_reached_warning): Add finish argument.
3129 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
3130 real insn after end.
3131 * rtl.h (never_reached_warning): Adjust prototype.
3132 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
3133 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
3134 never_reached_warning.
3136 2002-02-12 Graham Stott <grahams@redhat.com>
3138 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
3140 2002-02-12 Kazu Hirata <kazu@hxi.com>
3142 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
3143 logical shifts on H8/300.
3144 (shift_alg_si): Improve several shifts on H8/300.
3145 (get_shift_alg): Likewise.
3147 2002-02-12 Graham Stott <grahams@redhat.com>
3149 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
3151 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3153 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
3154 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
3156 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
3158 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
3159 non-CONST_INT through default_assemble_integer.
3160 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
3161 <case 8>: Abort for CONST_DOUBLE.
3163 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3165 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
3167 * config/pa/pa-linux.h (LIB_SPEC): Delete.
3168 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
3170 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
3172 * config/stormy16/stormy16.md (zero_extendqihi2): New.
3174 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
3176 * regrename.c (regrename_optimize): Don't accept a
3177 part-clobbered register if the replaced register is not part
3180 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
3181 take padding into account when computing the argument value.
3183 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
3185 * combine.c (try_combine): Apply substitutions in
3186 CALL_INSN_FUNCTION_USAGE too.
3188 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
3190 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
3191 __builtin_altivec_abs*.
3194 * config/rs6000/rs6000.h (rs6000_builtins): Add
3195 ALTIVEC_BUILTIN_ABS*.
3197 * config/rs6000/altivec.h: Use const char for builtins expecting
3199 (vec_abs): New versions for C and C++.
3202 2002-02-10 Kazu Hirata <kazu@hxi.com>
3204 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
3207 2002-02-10 Kazu Hirata <kazu@hxi.com>
3209 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
3210 constant definition from h8300.md.
3211 (FRAME_POINTER_REGNUM): Likewise.
3212 * config/h8300/h8300.md (define_constants): Add FP_REG.
3214 2002-02-10 Kazu Hirata <kazu@hxi.com>
3216 * config/h8300/h8300.c (print_operand): Remove redundant code.
3218 2002-02-10 Kazu Hirata <kazu@hxi.com>
3220 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
3221 * config/h8300/h8300.c (byte_reg): Make it static.
3223 2002-02-10 Richard Henderson <rth@redhat.com>
3226 * c-typeck.c (incomplete_type_error): Handle flexible array members.
3228 2002-02-10 Richard Henderson <rth@redhat.com>
3231 * tree.c (append_random_chars): Don't abort if main_input_filename
3234 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
3236 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
3238 2002-02-10 Kazu Hirata <kazu@hxi.com>
3240 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
3241 (pushhi1): Likewise.
3243 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
3245 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
3246 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
3248 2002-02-09 David O'Brien <obrien@FreeBSD.org>
3250 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
3252 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
3254 2002-02-09 Kazu Hirata <kazu@hxi.com>
3256 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
3257 a half of an SImode register on H8/300.
3259 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
3261 * i386.md (movdi_2): Add missing '!'.
3263 2002-02-09 Kazu Hirata <kazu@hxi.com>
3265 * config/h8300/h8300.h: Fix formatting. Remove commented-out
3268 2002-02-09 Kazu Hirata <kazu@hxi.com>
3270 * config/h8300/h8300.md (length): Correct the distance valid
3271 for the short branch.
3273 2002-02-09 Kazu Hirata <kazu@hxi.com>
3275 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
3277 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
3279 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
3280 registers in SImode.
3281 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
3284 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
3287 Contribute sh64-elf.
3288 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
3289 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
3290 (sh_cannot_modify_jumps_p): New function.
3291 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
3292 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
3293 (sh_ms_bitfield_layout_p): New function.
3294 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
3295 Zack Weinberg <zack@codesourcery.com>
3296 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
3297 expand_simple_binop instead of expand_binop.
3298 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
3299 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
3300 use of .quad and .uaquad.
3301 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
3302 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
3303 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3304 * config/sh/sh.md (movdi_const, movdi_const_32bit,
3305 movdi_const_16bit): Make sure all CONSTs have modes.
3306 (sym2PIC): Ditto, but by adjusting all callers.
3307 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
3308 if the prologue calls the SHmedia argument decoder or register
3310 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3311 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
3312 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
3313 (sh_expand_epilogue): Don't emit USE of return target register.
3314 (prepare_move_operands): Legitimize DImode PIC addresses.
3315 (sh_media_register_for_return): Skip tr0, used to initialize the
3317 (sh_expand_prologue): Remove explicit USE of return register.
3318 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
3319 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
3320 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
3321 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
3322 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
3324 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
3325 (MOVI_SHORI_BASE_OPERAND_P): New.
3326 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
3327 (EXTRA_CONSTRAINT_T): Define in terms of them.
3328 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
3329 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
3330 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
3331 alternatives supporting TARGET_REGS.
3332 (UNSPEC_GOTPLT): New constant.
3333 (movdi split): Move incrementing of LABEL_NUSES...
3334 (movdi_const, movdi_const_32bit): Here. Use
3335 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
3336 (movdi_const_16bit): New.
3337 (call, call_value) [flag_pic]: Use GOTPLT.
3338 (call_pop, call_value_pop): New expands.
3339 (call_pop_compact, call_pop_rettramp): New insns.
3340 (call_value_pop_compact, call_value_pop_rettramp): New insns.
3341 (sibcall) [flag_pic]: Use GOT.
3342 (builtint_setjmp_receiver): Remove bogus, unused expand.
3343 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
3344 (*pt, *ptb, ptrel): New insns.
3345 (sym2GOT): Handle DImode GOT.
3346 (sym2GOTPLT, symGOTPLT2reg): New expands.
3347 (sym2PIC): New expand.
3348 (shcompact_return_tramp): Use GOTPLT to return trampoline.
3349 (shcompact_return_tramp_i): Use return register explicitly.
3350 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
3351 disable flag_reorder_blocks.
3352 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
3353 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
3354 clobbers, for clarity.
3355 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
3356 restoring of r0 in macl as MAYBE_DEAD.
3357 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
3358 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
3359 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
3360 alter_subreg all over.
3361 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
3362 reload, instead of emitting instructions that would require
3364 (casesi_load_media): Add missing modes.
3365 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
3366 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
3367 as used if the argument decoder is called.
3368 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
3369 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
3370 Pmode, then extend it to DImode if necessary.
3371 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
3372 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
3373 constants in FPU-enabled SHmedia, let them be loaded from memory.
3374 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
3375 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
3376 Adjust whitespace in assembly output templates.
3377 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
3378 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
3379 mode of if_then_else.
3380 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
3381 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
3383 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
3384 Joern Rennecke <amylaar@redhat.com>
3385 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
3386 (SUBTARGET_CPP_PTR_SPEC): New.
3387 (SUBTARGET_CPP_SPEC): Remove.
3388 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
3389 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
3390 Fix typo in previous checkin.
3391 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
3392 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
3393 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
3394 Alexandre Oliva <aoliva@redhat.com>
3395 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
3396 what single FP register can hold for SHmedia target.
3397 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
3398 Alexandre Oliva <aoliva@redhat.com>
3399 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
3400 Do not split into SUBREG.
3401 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
3402 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
3403 and added new functions as specified in SH5 ABI r9.
3404 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
3405 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
3407 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
3408 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
3409 gen_consttable_4 and gen_consttable_8. Emit multiple labels
3410 and consttable_window_ends.
3411 2001-06-03 Graham Stott <grahams@redhat,com>
3412 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
3413 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
3414 * config/sh/sh.c (print_operand): Handle floating-point pair,
3415 vector and matrix registers.
3416 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
3417 vector modes into account.
3418 * config/sh/sh.md (movv2sf): Split move between registers into
3420 (movv4sf, movv16sf): Introduce insns that get split only after
3422 * config/sh/shmedia.h: Fix Copyright dates.
3423 * config/sh/ushmedia.h: Likewise. Move loop counter
3424 declarations into conditionals that uses them.
3425 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
3427 * config/sh/sshmedia.h: Fix Copyright dates.
3428 (sh_media_PUTCFG): Fix constraints.
3429 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
3430 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
3431 ptrmemfunc_vbit_in_delta for SH5.
3432 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
3433 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
3434 * invoke.texi: Likewise.
3435 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
3436 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
3437 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
3438 GCC_pop_shmedia_regs_nofpu): New global symbols.
3439 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
3440 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
3441 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
3442 compact function with nonlocal labels.
3443 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
3444 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
3445 (initial_elimination_offset): Account for their stack space.
3446 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
3447 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
3448 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
3449 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
3450 least one of the operands to be a register.
3451 (movv2sf): Likewise. Renamed to movv2sf_i.
3452 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
3453 prepare_move_operands() before emitting SHmedia insns.
3454 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
3455 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
3456 Don't save nor initialize r12. Don't mis-align the stack.
3457 Pad the code with a nop.
3458 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
3460 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
3461 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
3462 [__SHMEDIA__]: Implement.
3463 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
3464 * config/sh/sh.md: Set latency of `pt' closer to reality.
3465 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
3466 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
3467 Set move, load and store type attributes.
3468 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
3469 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
3471 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
3472 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
3473 * config/sh/sh.c (sh_media_register_for_return): New function.
3474 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
3475 branch-target register.
3476 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
3477 * config/sh/sh.md (return_media_i): Use any call-clobbered
3478 branch-target register.
3479 (return_media): If r18 wasn't copied in the prologue, copy it
3481 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
3482 Clear class FP0_REGS.
3483 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
3485 2001-03-08 DJ Delorie <dj@redhat.com>
3486 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
3487 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
3488 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
3489 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
3490 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
3491 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
3492 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
3493 return value correctly for call_cookie.
3494 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
3495 * config/sh/crt1.asm (start): Modified so as to call
3496 ___setup_argv_and_call_main.
3497 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
3498 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
3500 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
3501 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
3502 (STRIP_NAME_ENCODING): Use it.
3503 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
3504 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
3505 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
3506 prepare_scc_operands().
3507 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
3508 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
3509 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
3510 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
3511 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
3512 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
3513 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
3514 used in shcompact_incoming_args.
3515 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
3517 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
3519 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
3521 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
3522 Simplify. Adjust. Add sanity check.
3523 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
3525 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
3527 (udivsi3, divsi3): Use them.
3528 (force_mode_for_call): New insn.
3529 (call, call_value, sibcall_value): Emit it before SHcompact
3531 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
3532 * config/sh/sh.md (call, call_value, sibcall): Make sure the
3533 call cookie is non-NULL before taking its value.
3534 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
3535 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
3536 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
3537 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
3539 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
3540 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
3541 temporary for stack adjusts. Use MACL and MACH to pass
3542 arguments to shcompact_incoming_args.
3543 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
3545 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
3546 (nested_trampoline): Load static chain address into r1.
3547 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
3548 2001-01-07 Alexandre Oliva <aoliva@redhat.com
3549 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
3550 fp_arith_reg_operand().
3551 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
3552 * config/sh/sh.md (casesi): Sign-extend the first two operands,
3553 and use signed compares for them.
3554 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
3555 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
3556 ones properly aligned.
3557 (find_barrier): Account for extra alignment needed for 8-byte wide
3559 (machine_dependent_reorg): Require a label for the second 4-byte
3560 constant after an 8-byte one.
3561 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
3563 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
3564 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
3565 last_float when switching float modes.
3566 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
3567 auto-increment for general-purpose registers.
3568 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
3570 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
3572 * config/sh/sh.c (sh_builtin_saveregs): Support using all
3573 registers for varargs.
3574 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
3575 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
3576 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
3577 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
3578 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
3579 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
3580 call_cookie accordingly.
3581 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
3582 (SHCOMPACT_BYREF): Likewise.
3583 (SHCOMPACT_FORCE_ON_STACK): New macro.
3584 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
3585 (sh_builtin_saveregs): Likewise.
3586 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
3587 shcompact_incoming_args): Use new shift values. Support
3588 sequences of consecutive and non-consecutive pushes/pops.
3589 * config/sh/sh.md (return): Don't explicitly use PR_REG.
3590 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
3591 * config/sh/sh.h (TEXT_SECTION): Define.
3592 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
3593 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
3594 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
3595 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
3596 return values on FPU-enabled SHmedia.
3597 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
3598 FPU-enabled SHmedia.
3599 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
3600 value is returned in a non-FP reg and is not returned by
3602 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
3604 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
3605 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
3606 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
3607 quad-aligned to be passed by callee-copy reference.
3608 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
3609 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
3610 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
3611 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
3612 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
3613 copying low-numbered FP regs to r7 and r8.
3614 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
3615 FP regs to general-purpose regs only if the copy was passed on the
3617 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
3618 copying FP reg to r9.
3619 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
3620 copy FP regs to general-purpose regs only in outgoing calls.
3621 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
3622 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
3624 * config/sh/sh.h (struct sh_args): Document all fields.
3625 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
3626 passed partially on the stack should not consider making
3628 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
3629 stack_regs only for incoming calls. When passing FP args,
3630 make sure there are FP regs available before modifying
3632 (SHCOMPACT_BYREF): Pass double args in general-purpose
3633 registers by reference.
3634 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
3635 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
3636 attempt to generate sibcalls if the caller got any arguments
3638 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
3639 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
3640 to 8-byte boundaries.
3641 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
3642 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
3643 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
3644 stored in the stack.
3645 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
3646 for the offsets to have the ISA bit set.
3647 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
3648 invocation. Use beq instead of bgt to mark end of sequence of
3650 (shcompact_incoming_args): Fix store of r2. Use beq instead of
3651 bgt to mark end of sequence of stores.
3652 * config/sh/sh.c (arith_operand): Don't check whether
3653 CONST_OK_FOR_J for now.
3654 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
3655 instead of long for conversion.
3656 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
3657 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
3658 before passing it to fprintf.
3659 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
3660 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
3661 Call set_fpscr before reading/writing SR.
3662 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
3664 * config/sh/lib1funcs.asm: Add `.align 2' directives before
3666 (FMOVD_WORKS): Define on SH5 with FPU.
3667 (set_fpscr): Define on SH5. Remove separate _fpscr_values
3669 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
3671 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
3672 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
3674 (ia_main_table): Ditto.
3675 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
3676 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
3677 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
3678 the definitions from sh.h.
3679 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
3681 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
3682 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
3683 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
3684 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
3685 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
3686 Increment LABEL_NUSES.
3688 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
3690 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
3692 * config/sh/elf.h (SIZE_TYPE): Likewise.
3693 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
3694 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
3695 shcompact_incoming_args): Load switch table addresses using
3697 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
3698 (NO_BUILTIN_SIZE_TYPE): Define.
3699 (SIZE_TYPE): Don't define.
3700 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
3701 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
3702 definition of __SH5__=32 for -m5-compact-nofpu.
3703 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
3705 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
3706 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
3707 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
3708 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
3709 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
3710 (INSN_LENGTH_ALIGNMENT): Likewise.
3711 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
3712 * config/sh/sh.md (call, call_value, sibcall): Simplify
3713 copying of non-branch-target register.
3714 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
3715 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
3716 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
3717 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
3718 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
3719 floating-point values as structs.
3720 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
3721 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
3722 general-purpose register.
3723 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
3724 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
3725 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
3726 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
3727 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
3728 (ENCODE_SECTION_INFO): Enclose variables and constants in
3730 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
3731 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
3732 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
3733 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
3734 only for LABEL_REFs. For SYMBOL_REFs, prepend
3735 SH_DATALABEL_ENCODING to the symbol name.
3736 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
3738 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
3739 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
3741 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
3742 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
3743 (DATALABEL_REF_P): Don't require CONST.
3744 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
3746 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
3747 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
3749 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
3750 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
3751 Use shallow_copy_rtx and PUT_MODE to change the mode of
3752 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
3753 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
3754 on SHmedia using GENERAL_REGs.
3755 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
3756 bltu_media_i): Fix reversion of conditions.
3757 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
3758 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
3759 * config/sh/sh.c (output_far_jump): Save r13 in macl.
3760 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
3761 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
3762 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
3763 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
3764 (GCC_nested_trampoline): Likewise.
3765 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
3766 * config/sh/sh.c (gen_datalabel_ref): Define.
3767 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
3768 (INITIALIZE_TRAMPOLINE): Likewise.
3769 (TRAMPOLINE_ADJUST_ADDRESS): Define.
3770 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
3771 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
3772 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
3773 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
3774 (ic_invalidate): Adjust for SH5.
3775 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
3776 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
3778 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
3779 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
3780 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
3781 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
3782 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
3783 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
3784 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
3785 * config/sh/sh.c (target_reg_operand): Match only target-branch
3786 registers and pseudos that aren't virtual registers.
3787 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
3788 Copy operands that don't match target_reg_operand to pseudos.
3789 (call_media, call_value_media, sibcall_media): Use
3790 target_reg_operand instead of target_operand.
3791 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
3792 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
3793 * config/sh/sh.c (target_reg_operand): Match hardware registers
3794 other than branch-target registers.
3795 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
3796 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
3797 (fpscr_values) [SH5 == 32]: Define.
3798 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
3799 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
3800 Handle function addresses coming in SUBREGs.
3801 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
3802 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
3803 shcompact_return_trampoline): Use datalabel where appropriate.
3804 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
3805 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
3806 general-purpose register to copy one branch-target register to
3808 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
3809 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
3810 SYMBOL_REFs with VOIDmode.
3811 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
3812 bltu_media_i): New insns.
3813 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
3814 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
3815 (INIT_CUMULATIVE_ARGS): Likewise.
3816 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
3817 * machmode.def (V16SFmode): New mode.
3818 * c-common.c (type_for_mode): Support V2SF and V16SF.
3819 * tree.c (build_common_tree_nodes_2): Likewise.
3820 * tree.h (tree_index): Likewise.
3821 * calls.c (emit_call_1): Take args_so_far. Adjust all
3822 callers. Introduce CALL_POPS_ARGS.
3823 * tm.texi (CALL_POPS_ARGS): Document.
3824 * config/sh/crt1.asm: Implement in SHmedia mode.
3825 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
3826 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
3827 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
3828 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
3829 Implement divsi and udivsi in SHmedia mode. Introduce
3830 SHcompact trampolines.
3831 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
3833 (regno_reg_class): Rewrite.
3834 (fp_reg_names): Remove.
3835 (sh_register_names, sh_additional_register_names): New.
3836 (print_operand): Added `u'. Support SUBREGs in addresses.
3837 Add parentheses around shifted CONSTs.
3838 (output_file_start): Output .mode and .abi directives.
3839 (shiftcosts, addsubcosts, multcosts): Adjust.
3840 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
3841 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
3842 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
3843 bytes, not registers. Take into account the need for the
3844 SHcompact incoming args trampoline. Adjust all callers.
3845 (sh_expand_prologue): Take stack_regs into account. Call
3846 incoming args trampoline. Keep stack aligned as per SH5 ABI.
3847 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
3848 stack aligned as per SH5 ABI.
3849 (sh_builtin_saveregs): Support SH5 ABI.
3850 (sh_build_va_list, sh_va_start): Likewise.
3851 (initial_elimination_offset): Take alignment into account.
3852 Compute location of PR according to the SH5 stack frame.
3853 (arith_reg_operand): Reject branch-target registers.
3854 (shmedia_6bit_operand): New.
3855 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
3856 (target_reg_operand): Match DImode only. Accept SUBREGs.
3857 (target_operand): New.
3858 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
3859 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
3860 SIBCALL_REGS for SHmedia.
3861 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
3862 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
3863 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
3864 (TARGET_SWITCHES): New SH5 flags.
3865 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
3866 VALID_REGISTER_P to disable unsupported registers.
3867 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
3868 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
3869 (FUNCTION_ARG_PADDING): Define.
3870 (FASTEST_ALIGNMENT): Adjust.
3871 (SH_REGISTER_NAMES_INITIALIZER): New.
3872 (sh_register_names): Declare.
3873 (DEBUG_REGISTER_NAMES): Define.
3874 (REGISTER_NAMES): Define based on sh_register_names.
3875 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
3876 (sh_additional_register_names): Declare.
3877 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
3878 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
3879 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
3880 (REGISTER_NATURAL_MODE): Define.
3881 (FIRST_PSEUDO_REGISTER): Adjust.
3882 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
3883 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
3884 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
3885 (VECTOR_MODE_SUPPORTED_P): Define.
3886 (REG_CLASS_CONTENTS): Adjust.
3887 (SMALL_REGISTER_CLASSES): Adjust.
3888 (REG_ALLOC_ORDER): Adjust.
3889 (INDEX_REG_CLASS): Adjust.
3890 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
3891 (CONST_OK_FOR_LETTER_P): Adjust.
3892 (PREFERRED_RELOAD_CLASS): Adjust.
3893 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
3894 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
3895 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
3896 (FIRST_FP_PARM_REG): Adjust.
3897 (CALL_POPS_ARGS): Define.
3898 (FUNCTION_ARG_REGNO_P): Adjust.
3899 (struct sh_args): New fields.
3900 (GET_SH_ARG_CLASS): Adjust.
3901 (INIT_CUMULATIVE_ARGS): Adjust.
3902 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
3903 (FUNCTION_ARG_ADVANCE): Adjust.
3904 (FUNCTION_ARG): Adjust.
3905 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
3906 (FUNCTION_ARG_CALLEE_COPIES): Define.
3907 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
3908 (STRICT_ARGUMENT_NAMING): Define.
3909 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
3910 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
3911 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
3912 (SETUP_INCOMING_VARARGS): Adjust.
3913 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
3914 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
3915 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
3916 (SUBREG_OK_FOR_INDEX_P): Adjust.
3917 (EXTRA_CONSTRAINT_S): Update.
3918 (EXTRA_CONSTRAINT_T): New.
3919 (EXTRA_CONSTRAINT): Adjust.
3920 (GO_IF_LEGITIMATE_INDEX): Adjust.
3921 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
3922 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
3924 (MAX_MOVE_MAX): Define.
3926 (CONST_COSTS): Adjust.
3927 (REGISTER_MOVE_COST): Adjust.
3928 (BRANCH_COST): Adjust.
3929 (TEXT_SECTION_ASM_OP): Adjust.
3930 (DBX_REGISTER_NUMBER): Adjust.
3931 (ASM_OUTPUT_DOUBLE_INT): New.
3932 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
3933 (PREDICATE_CODES): Adjust.
3934 (PROMOTE_MODE): Adjust.
3935 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
3936 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
3937 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
3938 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
3939 (DR0_REG, DR2_REG, DR4_REG): Renumber.
3940 (TR0_REG, TR1_REG, TR2_REG): New.
3941 (XD0_REG): Renumber.
3942 (UNSPEC_COMPACT_ARGS): New.
3943 (type): Added pt and ptabs.
3944 (length): Default to 4 on SHmedia. Default pt length to 12
3945 and 20 on SHmedia32 and SHmedia64, respectively.
3946 (pt): New function unit.
3947 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
3948 Add whitespace between operands of SHmedia instructions.
3950 (adddi3_media, addsi3_media): Adjust constraints.
3951 (subsi3) [SHmedia]: Force operand 1 into a register.
3952 (udivsi3_i1_media, udivsi3_i4_media): New.
3953 (udivsi3): Support SHmedia.
3954 (divsi3_i1_media, divsi3_i4_media): New.
3955 (divsi3): Support SHmedia.
3956 (anddi3, iordi3, xordi3): Adjust constraints.
3957 (zero_extendhidi2, zero_extendqidi2): New.
3958 (extendsidi2, extendhidi2, extendqidi2): New.
3959 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
3960 (pop_e, pop_fpul, pop_4): Likewise.
3961 (movsi_media): Support FP and BT registers.
3962 (movsi_media_nofpu): New. Adjust splits to DImode.
3963 (lduw, ldub): Renamed to zero_extend* above.
3964 (movqi_media): Fix typo.
3965 (movdi_media): Support FP and BT registers.
3966 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
3967 (movdi_const_32bit): New.
3968 (shori_media): Require immediate operand. Use `u' for output.
3969 (movdf_media, movsf_media): Simplified.
3970 (movdf_media_nofpu, movsf_media_nofpu): New.
3971 (movdf, movsf): Adjust
3972 (movv2sf, movv2sf, movv16sf): New.
3973 (beq_media, beq_media_i): Adjust constraints. Don't use
3974 scratch BT register.
3975 (bne_media, bne_media_i): Likewise.
3976 (bgt_media, bgt_media_i): Likewise.
3977 (bge_media, bge_media_i): Likewise.
3978 (bgtu_media, bgtu_media_i): Likewise.
3979 (bgeu_media, bgeu_media_i): Likewise.
3980 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
3981 bunordered): Emit jump insn. Force operands to registers when
3983 (jump_media, jump): Simplify.
3984 (call_compact, call_compact_rettramp): New.
3985 (call_value_compact, call_value_compact_rettramp): New.
3986 (call_media, call_value_media): Simplify.
3987 (sibcall_compact, sibcall_media): New.
3988 (call, call_value): Adjust for SHmedia and SHcompact.
3989 (sibcall, sibcall_value, untyped_call): Likewise.
3990 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
3991 (indirect_jump): Adjust for SHmedia.
3992 (casesi_jump_media): New.
3993 (nop): Re-enable for SHmedia.
3994 (call_site): Restrict to SH1.
3995 (casesi): Adjust for SHmedia.
3996 (casesi_shift_media, casesi_load_media): New.
3997 (return): Explicitly use PR register. Call return trampoline
3999 (return_i): Explicitly use PR register.
4000 (shcompact_return_tramp, shcompact_return_tramp_i): New.
4001 (return_media): Adjust.
4002 (shcompact_incoming_args): New.
4004 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
4005 (movstrsi): Disable on SH5.
4006 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
4007 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
4008 (subsf3, subsf3_media): Likewise.
4009 (mulsf3, mulsf3_media, mac_media): Likewise.
4010 (divsf3, divsf3_media): Likewise.
4011 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
4012 (floatsisf2, fux_truncsfsi2): Likewise.
4013 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
4015 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
4016 (cmpunsf_media, cmpsf): Likewise.
4017 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
4018 (abssf2, abssf2_media): Likewise.
4019 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
4020 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
4021 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
4022 (floatsidf2, fix_truncdfsi2): Likewise.
4023 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
4025 (cmpeqdf_media, cmpgtdf_media): Likewise.
4026 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
4027 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
4028 (absdf2, absdf2_media): Likewise.
4029 (extendsfdf2, extendsfdf2_media): Likewise.
4030 (truncsfdf2, truncsfdf2_media): Likewise.
4031 * config/sh/sh64.h: New file.
4032 * config/sh/t-sh64: New file.
4033 * config/sh/shmedia.h: New file.
4034 * config/sh/ushmedia.h: New file.
4035 * config/sh/sshmedia.h: New file.
4036 * configure.in: Added sh64-*-elf.
4037 * configure: Rebuilt.
4038 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
4039 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
4040 (reg_class_from_letter): Use `b' for TARGET_REGS.
4041 (print_operand): Support `%M', `%m', `AND' and
4042 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
4043 (andcosts): Adjust for SHmedia.
4044 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
4046 (target_reg_operand): New function.
4047 * config/sh/sh-protos.h (target_reg_operand): Declare.
4048 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
4049 FP registers on SH5.
4050 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
4052 (TARGET_REGISTER_P): New macro.
4053 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
4054 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
4055 (EXTRA_CONSTRAINT_S): New macro.
4056 (EXTRA_CONSTRAINT): Adjust.
4057 (FLOAT_TYPE_SIZE): Define to 32.
4058 (Pmode): DImode on SHmedia.
4059 (CONST_COSTS): Adjust for SHmedia literals.
4060 (PREDICATE_CODES): Added target_reg_operand.
4061 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
4062 * config/sh/sh.md: Remove all attrs from SHmedia insns.
4063 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
4064 (cmpdi): Accept SHmedia.
4065 (movdicc_false, movdicc_true): New insns.
4066 (movdicc): New expand.
4067 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
4069 (addsi3_media): Match `S' constraint.
4070 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
4071 (negdi2): Expand for SHmedia.
4072 (one_cmpldi2): New expand.
4073 (zero_extendsidi2): Change from expand to insn.
4074 (extendsidi2): Add constraints.
4075 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
4076 LD/ST address. Fix SI immediate loading split.
4077 (movhi_media, movqi_media, lduw, ldub): New insns.
4078 (movhi, movqi): Accept SHmedia.
4079 (shori_media, movdi_media): Relax input constraints. Split
4081 (movdf_media, movsf_media): New insn. New split to movdi.
4082 (movdf, movsf): Match on SHmedia.
4083 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
4084 bgeu_media): New insns and splits. New insns with `_i' suffix.
4085 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
4086 (bunordered): New expand.
4087 (jump_compact): Renamed from `jump'.
4088 (jump_media): New insn.
4090 (call_media, call_value_media): New insns.
4091 (call, call_value): Adjust.
4092 (indirect_jump_compact): Renamed from `indirect_jump'.
4093 (indirect_jump_media): New insn.
4094 (indirect_jump): New expand.
4095 (untyped_call, return): Accept SHmedia.
4096 (return_media): New insn.
4097 (prologue, epilogue, blockage): Accept SHmedia.
4098 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
4099 (sunordered): New expand.
4100 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
4101 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
4102 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
4103 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
4104 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
4105 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
4106 abssf2_media): New insns.
4107 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
4108 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
4109 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
4110 floatdidf2, floatsidf2_media, fix_truncdfdi2,
4111 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
4112 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
4113 absdf2_media): New insns.
4114 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
4115 (extendsfdf2_media, truncdfsf2_media): New insns.
4116 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4117 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
4118 * config/sh/sh.h (CONST_OK_FOR_J): Document.
4119 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
4120 * config/sh/sh.md (adddi3): New expand.
4121 (adddi3_media, adddi3z_media): New insns.
4122 (adddi3_compact): Renamed from adddi3.
4123 (addsi3_media): Use add.l r63 to add constant zero.
4124 (subdi3): New expand.
4125 (subdi3_media): New insn.
4126 (subdi3_compact): Renamed from subdi3.
4127 (mulsidi3): New expand.
4128 (mulsidi3_media): New insn.
4129 (mulsidi3_compact): Renamed from mulsidi3.
4130 (umulsidi3): New expand.
4131 (umulsidi3_media): New insn.
4132 (umulsidi3_compact): Renamed from umulsidi3.
4133 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
4134 (ashlsi3, ashrsi3, lshrsi3): Use them.
4135 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
4136 (ashldi3, ashrdi3, lshrdi3): Use them.
4137 (zero_extendsidi2): New expand.
4138 (extendsidi2): New insn.
4139 (movsi_media): New insn. Split to movdi to load constants.
4140 (movsi): Enable for shmedia.
4141 (movdi_media): New insn. Use shori_media to load wide constants.
4142 (short_media): New insn.
4143 (movdi): Enable for shmedia.
4144 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
4145 * config/sh/sh.h (CPP_SPEC): Added `m5'.
4146 (SUBTARGET_CPP_SPEC): Added `!m5'.
4147 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
4148 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
4149 to all other SH variants.
4150 (TARGET_DEFAULT): Set to SH1_BIT.
4151 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
4152 (BITS_PER_WORD): Raise to 64 on shmedia.
4153 (MAX_BITS_PER_WORD): Change to 64.
4154 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
4155 (INT_TYPE_SIZE): Keep as 32.
4156 (UNITS_PER_WORD): Raise to 8 on shmedia.
4157 (MIN_UNITS_PER_WORD): Keep as 4.
4158 (POINTER_SIZE): Raise to 64 on shmedia.
4159 (CONST_OK_FOR_J): New macro.
4160 (CONST_OK_FOR_LETTER_P): Use it.
4161 (processor_type): Add PROCESSOR_SH5.
4162 * config/sh/sh.md: Conditionalize all expands, insns and
4163 splits to TARGET_SH1.
4165 (addsi3_compact): Renamed from...
4166 (addsi3): Now an expand.
4167 (addsi3_media, subsi3_media): New insns.
4168 (subsi3): Don't negate constants with SHmedia.
4170 * hooks.c: New file.
4171 * hooks.h: New file.
4172 * Makefile.in (HOOKS_H): New.
4173 (TARGET_DEF_H): Added $(HOOKS_H).
4174 (OBJS): Added hooks.o.
4175 (cfgcleanup.o, bb-reorder.o): Added target.h.
4176 (hooks.o): Added dependencies.
4177 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
4178 (TARGET_INITIALIZER): this.
4179 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
4180 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
4181 * bb-reorder.c: Include target.h.
4182 (reorder_basic_blocks): Skip if cannot modify jumps.
4183 * cfgcleanup.c: Include target.h.
4184 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
4186 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4188 * config/mips/mips.md (casesi_internal, casesi_internal_di):
4189 Protect jump delay slot instructions with .set noreorder and
4192 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4194 * config/mips/mips.md (casesi_internal_di): Calculate
4195 the index into the target offset table correctly.
4197 2002-02-08 Richard Henderson <rth@redhat.com>
4199 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
4200 * final.c (output_addr_const): Accept and discard SUBREG.
4201 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
4202 mark them unknown instead.
4203 (simplify_subtraction): Handle RTX_UNKNOWN.
4204 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
4206 2002-02-08 David Edelsohn <edelsohn@gnu.org>
4208 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
4210 2002-02-08 Richard Henderson <rth@redhat.com>
4212 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
4214 2002-02-08 Andreas Jaeger <aj@suse.de>
4216 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
4217 * config/i386/t-linux64: New file.
4219 2002-02-08 Jakub Jelinek <jakub@redhat.com>
4221 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
4222 * c-parse.in (compstmt): Clear last_expr_type.
4224 2002-02-07 Richard Henderson <rth@redhat.com>
4226 * loop.c (strength_reduce): Sink final_value when not
4229 2002-02-07 David O'Brien <obrien@FreeBSD.org>
4231 * config/sparc/freebsd.h: Fix mismatched spec {.
4233 2002-02-07 Richard Henderson <rth@redhat.com>
4235 * cfgrtl.c: Include recog.h and insn-config.h.
4236 (keep_with_call_p): Fix general_operand invocation.
4237 * Makefile.in (cfgrtl.o): Update dependencies.
4239 2002-02-07 Kazu Hirata <kazu@hxi.com>
4241 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
4242 comment. Accept HImode only if TARGET_H8300.
4244 2002-02-07 Eric Christopher <echristo@redhat.com>
4246 * config/mips/crtn.asm: Cleanup #ifdefs.
4248 2002-02-07 Eric Christopher <echristo@redhat.com>
4250 * config/mips/crti.asm: Add changes for mips16. mips16 uses
4251 register 7 as RA instead of $31.
4252 * config/mips/crtn.asm: Ditto.
4253 * config/mips/mips.c (mips_move_2words): Add case for
4254 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
4255 (compute_frame_size): Fix typo.
4256 (save_restore_insns): Ditto. Make documentation about using
4257 register $7 as return register more precise.
4258 (mips_expand_epilogue): Fix comment. Add code to work around not
4259 being able to add to the stack pointer directly.
4260 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
4261 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
4264 2002-02-07 Tom Rix <trix@redhat.com>
4266 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
4267 immediates in ldu and stdu DS opcode field.
4268 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
4269 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
4270 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
4272 2002-02-07 Jeff Sturm <jsturm@one-point.com>
4274 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
4275 offset for stack bias.
4277 2002-02-07 H.J. Lu <hjl@gnu.org>
4279 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
4281 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
4283 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
4285 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
4287 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
4288 * i386.c (x86_order_regs_for_local_alloc): New global function.
4289 * i386.h (REG_ALLOC_ORDER): CLeanup.
4290 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
4292 2002-02-07 Richard Henderson <rth@redhat.com>
4294 PR optimization/2463
4295 * alias.c (find_base_value): Recall base values for fixed hard regs.
4296 * loop.c (loop_regs_update): Don't use single_set on non-insns.
4298 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
4300 * config/mips/mips.md (define_delay) [mips16]: Adjust required
4303 2002-02-06 Richard Henderson <rth@redhat.com>
4306 * stmt.c (resolve_operand_name_1): Take more care with mixed
4307 named and unnamed operands.
4309 2002-02-06 Janis Johnson <janis187@us.ibm.com>
4310 Jan Hubicka <jh@suse.cz>
4312 * loop.c (remove_constant_addition): Avoid clobbering a shared
4315 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
4317 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
4318 * config/s390/t-linux64: New file.
4319 * config/s390/libgcc-glibc.ver: New file.
4321 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
4323 * config/s390/linux64.h: Delete file.
4324 * config/s390/s390x.h: New file.
4325 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
4326 as target header file.
4327 * config/s390/linux.h (TARGET_VERSION): Define depending on
4328 DEFAULT_TARGET_64BIT.
4329 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
4330 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
4331 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
4332 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
4333 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
4334 (EXTRA_SPEC): New define.
4335 * config/s390/s390.h (TARGET_VERSION): Define depending on
4336 DEFAULT_TARGET_64BIT.
4337 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
4339 2002-02-06 Jason Merrill <jason@redhat.com>
4341 * c-decl.c (finish_function): Warn about a non-void function with
4342 no return statement and no abnormal exit.
4343 (current_function_returns_abnormally): New variable.
4344 (start_function): Clear it.
4345 (struct c_language_function): Add returns_abnormally.
4346 (push_c_function_context): Save it.
4347 (pop_c_function_context): Restore it.
4348 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
4349 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
4350 an explicit return type.
4351 * c-tree.h: Declare current_function_returns_abnormally.
4352 (C_FUNCTION_IMPLICIT_INT): New macro.
4353 * c-typeck.c (build_function_call): Set it.
4354 (c_expand_return): Set current_function_returns_value even if the
4357 2002-02-06 Jakub Jelinek <jakub@redhat.com>
4360 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
4361 unsafe for reevaluation.
4363 2002-02-06 Jakub Jelinek <jakub@redhat.com>
4366 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
4367 EXPR_STMT, but COMPOUND_STMT, recurse into it.
4369 2002-02-06 Richard Henderson <rth@redhat.com>
4371 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
4372 be a general_operand. Dest for function value must be a pseudo.
4374 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
4376 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
4377 as SYMBOL_REFs from the constant pool.
4379 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
4381 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
4382 passed by invisible reference.
4384 2002-02-05 Richard Henderson <rth@redhat.com>
4386 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
4388 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
4390 Implement using "base addresses" in insn operands as default.
4391 * config/mmix/mmix.c (mmix_conditional_register_usage): if
4392 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
4393 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
4394 used to read the rtx value.
4395 (mmix_target_asm_function_epilogue): Fix spacing.
4396 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
4397 (mmix_legitimate_address): Ditto.
4398 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
4399 should be loaded with a GETA insn. Don't allocate needless extra
4400 char for nul termination and fix misleading comment.
4401 (mmix_print_operand_address): Handle constants if
4402 TARGET_BASE_ADDRESSES.
4403 (mmix_output_register_setting): Use base addressing if
4404 TARGET_BASE_ADDRESSES and the number of insns is 3.
4405 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
4406 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
4407 to use R as constraint, add LDA to match s.
4408 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
4409 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
4410 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
4411 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
4412 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
4413 order with other fixed registers.
4414 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
4415 other parameter/call-clobbered registers.
4416 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
4417 -mbase-addresses, -mno-base-addresses.
4418 (MMIX Options): Ditto.
4420 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
4422 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
4424 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
4426 * config/rs6000/altivec.h: Change elem to _S_elem.
4428 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
4430 * config/netbsd.h (WCHAR_TYPE): Define.
4431 (WCHAR_TYPE_SIZE): Ditto.
4433 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
4434 (WCHAR_UNSIGNED): Ditto.
4435 (WCHAR_TYPE_SIZE): Ditto.
4437 * config/arm/netbsd.h: Likewise.
4438 * config/i386/netbsd-elf.h: Likewise.
4439 * config/i386/netbsd.h: Likewise.
4440 * config/m68k/netbsd-elf.h: Likewise.
4441 * config/m68k/netbsd.h: Likewise.
4442 * config/ns32k/netbsd.h: Likewise.
4443 * config/sparc/netbsd.h: Likewise.
4444 * config/vax/netbsd.: Likewise.
4446 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
4448 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
4449 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
4450 (TARGET_INITIALIZER): this.
4451 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
4452 (BITFIELD_NBYTES_LIMITED): Markup fix.
4453 * tree.h (default_ms_bitfield_layout_p): Declare.
4454 (record_layout_info): Added prev_field.
4455 * tree.c (default_ms_bitfield_layout_p): New fn.
4456 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
4457 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
4458 * stor-layout.c: Include target.h.
4459 (start_record_layout): Initialize prev_field.
4460 (place_field): Handle MS bit-field layout, and disregard
4461 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
4462 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
4463 * Makefile.in (stor-layout.o): Adjust dependencies.
4465 2002-02-05 Jason Merrill <jason@redhat.com>
4467 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
4469 2002-02-05 Andreas Jaeger <aj@suse.de>
4471 * crtstuff.c: Fix comments.
4473 2002-02-05 Richard Henderson <rth@redhat.com>
4476 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
4477 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
4480 * config/mips/mips.c (function_arg): Handle TImode.
4481 (function_arg_advance): Likewise.
4483 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
4485 * config/rs6000/altivec.h (vec_step_help): Rename to
4488 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
4490 * config/rs6000/altivec.h: Fix typos.
4492 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
4494 * config/arm/netbsd.h: Correct a comment.
4496 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
4498 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
4499 building void typed builtins.
4501 * config/rs6000/altivec.h (vec_ld*): Fix typos.
4502 (vec_step): Implement for C++.
4504 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4506 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
4508 2002-02-04 Richard Henderson <rth@redhat.com>
4510 * combine.c (nonzero_bits): Re-introduce special case for
4511 sp/fp/ap wrt REGNO_POINTER_ALIGN.
4513 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
4515 * doc/extend.texi: Warn about unsupported usage of altivec
4518 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
4519 (altivec_predicate_*): New.
4521 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
4522 Add C++ version of vec_*() functions.
4524 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
4525 (bdesc_2arg): Remove altivec predicates.
4526 (altivec_expand_builtin): Handle predicates.
4527 (altivec_init_builtins): Handle predicates.
4528 (altivec_expand_predicate_builtin): New.
4530 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
4532 * pa.c (DO_FRAME_NOTES): Move forward.
4533 (store_reg): Revise handling of frame notes.
4534 (load_reg): Likewise.
4535 (set_reg_plus_d): Likewise.
4536 (hppa_expand_prologue): Likewise.
4537 (hppa_expand_epilogue): Likewise.
4539 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
4541 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
4543 2002-02-04 Jakub Jelinek <jakub@redhat.com>
4545 PR c/4475, c++/3780:
4546 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
4547 * c-common.h (SWITCH_TYPE): Define.
4548 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
4549 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
4550 Rename spareness variable to sparseness.
4551 (expand_end_case_type): Renamed from expand_end_case, use orig_type
4552 if non-NULL instead of TREE_TYPE (orig_index).
4553 * tree.h (expand_end_case_type): Renamed from expand_end_case.
4554 (expand_end_case): Define using expand_end_case_type.
4555 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
4556 to expand_end_case_type.
4557 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
4559 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
4561 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
4562 (BIGGEST_ALIGNMENT): Change to 128.
4564 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
4566 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
4568 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
4570 * pa.md (call_internal_reg_64bit): Remove unused variable.
4572 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
4574 * config/arm/arm.h (machine_function): Add uses_anonymous_args
4576 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
4577 * config/arm/arm.c (current_function_anonymous_args): Delete,
4578 replace uses with cfun->machine->uses_anonymous_args.
4579 (arm_reorg): Do not reset uses_anonymous_args.
4581 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
4582 any geenral register.
4584 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
4586 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
4589 2002-02-04 Richard Henderson <rth@redhat.com>
4591 * combine.c (force_to_mode): Remove STACK_BIAS code.
4592 (nonzero_bits): Likewise. Replace sp/fp special case with
4593 REGNO_POINTER_ALIGN.
4595 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
4596 (HARD_FRAME_POINTER_REGNUM): New.
4597 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
4598 (FIXED_REGS, CALL_USED_REGS): Update.
4599 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
4600 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
4601 (HARD_REGNO_NREGS): Update for SFP.
4602 (STACK_POINTER_OFFSET): Include bias here ...
4603 (FIRST_PARM_OFFSET): ... not here.
4604 (STACK_BIAS): Remove.
4605 (INIT_EXPANDERS): New.
4606 (STARTING_FRAME_OFFSET): Do not include bias.
4607 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
4608 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
4609 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
4610 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
4611 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
4612 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
4613 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
4614 (MUST_SAVE_REGISTER): Likewise.
4615 (sparc_flat_function_prologue): Likewise.
4616 (sparc_flat_function_epilogue): Likewise.
4617 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
4618 (sparc_init_modes): SFP is GENERAL_REGS.
4619 (sparc_builtin_saveregs): SFP does not have bias applied.
4621 2002-02-04 Richard Henderson <rth@redhat.com>
4623 * config/alpha/alpha.c (current_function_is_thunk): Don't check
4624 current_function_is_thunk.
4625 (alpha_sa_mask): Distinguish between current_function_is_thunk
4626 called from ASM_OUTPUT_MI_THUNK and not.
4627 (alpha_does_function_need_gp): Thunks always need gp.
4628 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
4629 (alpha_output_mi_thunk_osf): New.
4630 * config/alpha/alpha-protos.h: Update.
4631 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
4633 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
4635 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
4636 function types, not when they're taken away.
4638 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
4640 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
4641 CODE_LABEL and jump table when replacing a table jump with a
4644 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
4646 * config/s390/s390-protos.h (legitimize_la_operand,
4647 s390_secondary_input_reload_class, s390_plus_operand,
4648 s390_expand_plus_operand): Add prototypes.
4650 config/s390/s390.c (s390_secondary_input_reload_class,
4651 s390_plus_operand, s390_expand_plus_operand): New functions.
4653 (struct s390_address): New member 'pointer'.
4654 (s390_decompose_address): Compute it.
4655 (legitimate_la_operand_p): Use it.
4656 (legitimize_la_operand): New function.
4657 (movti, movdi, movdf splitters): Call it.
4659 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
4660 (PREDICATE_CODES): Add s390_plus_operand.
4662 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
4663 (la_ccclobber): Allow GENERAL_REGS as output operand.
4665 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
4666 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
4667 (*la_64, *la_31, reload_indi, reload_insi): ... these.
4669 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
4671 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
4672 register names for regular asm () construct.
4674 2002-02-04 Jakub Jelinek <jakub@redhat.com>
4676 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
4679 2002-02-04 Jakub Jelinek <jakub@redhat.com>
4681 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
4684 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
4686 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
4687 constant pool to be identical by string address and index.
4689 2002-02-04 Anthony Green <green@redhat.com>
4691 * output.h (SECTION_OVERRIDE): Define.
4692 * varasm.c (named_section): Obey SECTION_OVERRIDE.
4694 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
4696 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
4697 by existing arm*-*-netbsd* (a.out) target.
4698 (ns32k-*-netbsdelf*): Likewise.
4699 (sparc-*-netbsdelf*): Likewise.
4700 (vax-*-netbsdelf*): Likewise.
4702 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
4704 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
4705 headers and libobjc headers.
4707 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
4709 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
4710 (_mingw.h): Remove duplicate include.
4712 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
4714 * config.gcc: Set cpu_type to m68k for 68010, as well.
4715 (m68010-*-netbsdelf*): New...
4716 (m68k*-*-netbsdelf*): ...targets.
4717 * config/m68k/netbsd-elf.h: New file.
4719 2002-02-02 Kazu Hirata <kazu@hxi.com>
4721 * config/h8300/h8300.c (hand_list): Move inside function_arg.
4723 2002-02-02 Kazu Hirata <kazu@hxi.com>
4725 * config/h8300/h8300.c (h8_push_ops): Move inside
4727 (h8_pop_ops): Likewise.
4728 (h8_move_ops): Likewise.
4730 2002-02-02 Kazu Hirata <kazu@hxi.com>
4732 * config/h8300/h8300.c (os_task): Make it static.
4733 (monitor): Likewise.
4734 (pragma_saveall): Likewise.
4736 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
4738 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
4739 constant is a valid sign-extension for Pmode.
4741 2002-02-02 Kazu Hirata <kazu@hxi.com>
4743 * config/h8300/h8300.c: Fix formatting.
4745 2002-02-02 Kazu Hirata <kazu@hxi.com>
4747 * config/h8300/h8300.md: Fix formatting.
4749 2002-02-02 Kazu Hirata <kazu@hxi.com>
4751 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
4752 predicates of operands[1]. Split the patterns for each
4755 2002-02-02 Kazu Hirata <kazu@hxi.com>
4757 * config/h8300/h8300.md (xor patterns): Tighten the predicates
4758 of operands[1] to register_operand.
4760 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
4762 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
4763 * cpphash.c (_cpp_init_hashtable): Similarly.
4764 * cppinit.c (cpp_create_reader): Default the signed_char flag.
4765 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
4766 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
4767 (cpp_handle_option): Handle the new options.
4768 * cpplex.c (cpp_interpret_charconst): Use new flag.
4769 * cpplib.h (struct cpp_options): New member signed_char.
4770 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
4771 (cpp_options): Handle -fsigned-char and -funsigned-char.
4772 (static_specs): Remove signed_char_spec.
4773 (do_spec1): Don't handle %c.
4774 * system.h: Poison SIGNED_CHAR_SPEC.
4775 * tradcif.y (yylex): Use flag_signed_char.
4776 * tradcpp.h (flag_signed_char): New.
4777 * tradcpp.c (flag_signed_char): New.
4778 (main): Handle new command-line options.
4779 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
4781 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
4782 * avr/avr.h: Remove old comments.
4783 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
4784 (CC1_SPEC): Pass -fsigned-char if -mic*.
4785 (SIGNED_CHAR_SPEC): Remove.
4787 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
4789 2002-02-01 Eric Christopher <echristo@redhat.com>
4791 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
4792 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
4793 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
4794 (ASM_OUTPUT_REG_POP): Ditto.
4796 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
4798 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
4801 2002-02-02 Jakub Jelinek <jakub@redhat.com>
4803 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
4805 2002-02-02 Jakub Jelinek <jakub@redhat.com>
4808 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
4811 2002-02-01 Janis Johnson <janis187@us.ibm.com>
4813 * cfganal.c: Include tm_p.h.
4814 (keep_with_call_p): Fix the test that determines if a register holds
4815 the return value of a call.
4817 2002-02-01 DJ Delorie <dj@redhat.com>
4819 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
4820 we are given conflicting registers, switch to the other one we
4821 had allocated for us.
4822 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
4823 as TImode so we know when the "other" register is available.
4825 2002-02-01 David O'Brien <obrien@FreeBSD.org>
4827 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
4830 2002-02-01 Janis Johnson <janis187@us.ibm.com>
4832 * cfganal.c (keep_with_call_p): New function.
4833 (flow_call_edges_add): Prevent splitting a block between a call and
4834 a single-set instruction that should be kept in the same block.
4836 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
4838 * doc/install.texi (avr): Update outdated URL.
4840 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
4842 * config/stormy16/stormy16.md (pushqi): New.
4846 (movhi): Remove stack operands.
4848 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
4849 nonimmediate_nonstack_operand.
4850 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
4852 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
4855 2002-01-31 Jason Merrill <jason@redhat.com>
4857 * Makefile.in (c-parse.c): Handle .output file.
4858 * objc/Make-lang.in (objc-parse.c): Likewise.
4860 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
4862 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
4863 the -me[lb] option is given. Don't output the default flag
4866 2002-01-31 Zack Weinberg <zack@codesourcery.com>
4868 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
4869 the primary source file; this has not been done yet.
4870 * c-decl.c (c_expand_body): Reset input_filename from
4871 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
4873 2002-01-31 Kazu Hirata <kazu@hxi.com>
4875 * rtlanal.c (subreg_regno_offset): Do not use
4876 SUBREG_REGNO_OFFSET.
4877 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
4878 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
4880 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
4882 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
4883 version rather than GNATS version in --version output.
4885 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
4887 * ifcvt.c (noce_process_if_block): Make a copy of the destination
4888 when copying back from a temporary.
4890 2002-01-30 Richard Henderson <rth@redhat.com>
4892 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
4893 and new_dest are the same.
4895 2002-01-30 Richard Henderson <rth@redhat.com>
4898 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
4899 * rtl.c (note_insn_name): Update.
4900 * emit-rtl.c (remove_unnecessary_notes): Kill it.
4901 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
4902 to perform loop rotation.
4903 (expand_exit_loop_top_cond): New.
4904 * tree.h (expand_exit_loop_top_cond): Declare it.
4905 * c-semantics.c (genrtl_while_stmt): Use it.
4906 (genrtl_for_stmt): Likewise.
4908 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
4910 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
4911 arguments to 64-bit boundaries on 64-bit ABIs.
4913 2002-01-30 Steve Ellcey <sje@cup.hp.com>
4915 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
4917 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
4919 * c-decl.c (grokdeclarator): Handle type being a typedef for an
4922 2002-01-30 David O'Brien <obrien@FreeBSD.org>
4924 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
4925 * config/sparc/sparc_bi.h: Remove file.
4926 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
4928 2002-01-30 Richard Henderson <rth@redhat.com>
4930 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
4932 2002-01-30 Zack Weinberg <zack@codesourcery.com>
4934 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
4936 2002-01-30 Jason Merrill <jason@redhat.com>
4938 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
4939 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
4940 (reg_save): Use DW_CFA_offset_extended_sf instead.
4942 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
4944 2002-01-29 Jakub Jelinek <jakub@redhat.com>
4946 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
4949 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
4951 * rs6000.md ("*call_value_local32"): Remove constraints.
4952 ("*call_value_local64"): Same.
4953 ("*call_value_indirect_nonlocal_aix32"): Same.
4954 ("*call_value_nonlocal_aix32"): Same.
4955 ("*call_value_indirect_nonlocal_aix64"): Same.
4956 ("*call_value_nonlocal_aix64"): Same.
4957 ("*call_value_nonlocal_sysv"): Same.
4959 2002-01-29 Richard Henderson <rth@redhat.com>
4961 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
4963 2002-01-29 Richard Henderson <rth@redhat.com>
4965 * expr.c (force_operand): Ignore flag_pic for detecting pic
4967 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
4968 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
4969 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
4970 instead of open-coded loop.
4971 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
4972 be fixed when in use.
4974 2002-01-29 Richard Henderson <rth@redhat.com>
4976 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
4977 * sched-rgn.c (propagate_deps): Update them.
4978 * sched-deps.c (sched_analyze_insn): Update them. Flush the
4979 clobbers list when either gets too long.
4981 2002-01-29 Jakub Jelinek <jakub@redhat.com>
4983 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
4984 and INDEX_REGS the same as GENERAL_REGS.
4985 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
4987 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
4989 * tree.c (build_nonstandard_integer_type): Correct prototype.
4991 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
4993 * config/s390/s390.md (movstrsico, movstrdix_64,
4994 movstrsix_31): Remove, replace by ...
4995 (movstrdi_short, movstrsi_short, movstrdi_long,
4996 movstrsi_long): ... these. New.
4997 (movstrdi, movstrsi): Adapt.
4999 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
5000 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
5001 Remove unnecessary CC clobber.
5002 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
5003 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
5005 (divmoddi4): Don't partially initialize TImode register.
5007 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
5009 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
5011 2002-01-29 Richard Henderson <rth@redhat.com>
5013 * flow.c (print_rtl_and_abort): Remove.
5014 (print_rtl_and_abort_fcn): Remove.
5015 (verify_local_live_at_start): Use dump_bb instead.
5016 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
5017 (verify_wide_reg_1): Return 2 on mode test failure.
5019 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
5021 PR c/3325, c/3326, c/2511, c/3347
5022 * c-decl.c (enum_decl_context): Remove BITFIELD.
5023 (grokdeclarator): Take bitfield width as an input.
5024 Ensure bitfields are given the correct type. Perform
5025 bitfield width validation with build_bitfield_integer_type
5026 rather than waiting for finish_struct.
5027 (grok_typename, grok_typename_in_parm_context, start_decl,
5028 push_parmdecl, grokfield, start_function): Update calls to
5030 (build_bitfield_integer_type): New function.
5031 (finish_struct): Move bitfield validation to grokdeclarator
5032 and build_bitfield_integer_type.
5033 * tree.c (build_nonstandard_integer_type): New function.
5034 * tree.h (build_nonstandard_integer_type): New prototype.
5036 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
5038 2002-01-29 Jakub Jelinek <jakub@redhat.com>
5041 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
5042 don't ignore unrecognized -W* options.
5043 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
5044 * cpplib.h (cpp_handle_option): Adjust prototype.
5045 * c-decl.c (c_decode_options): Pass 0 as last argument to
5049 * gcc.c (cpp_unique_options): Split from cpp_options.
5050 (cpp_options): Source cpp_unique_options.
5051 (default_compilers): Use cpp_unique_options instead of cpp_options
5052 when used together with cc1_options.
5053 (static_specs): Add cpp_unique_options.
5054 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
5055 when used together with cc1_options.
5057 2002-01-29 Kazu Hirata <kazu@hxi.com>
5059 * config/h8300/h8300-protos.h: Update the prototype of
5061 * config/h8300/h8300.c (output_a_shift): Remove an unused
5062 argument 'insn'. Remove redundant code.
5063 * config/h8300/h8300.md: Adust to the new prototype of
5066 2002-01-29 Kazu Hirata <kazu@hxi.com>
5068 * config/h8300/h8300-protos.h: Update the prototypes of
5069 emit_a_rotate and expand_a_rotate.
5070 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
5071 first argument to 'enum rtx_code'.
5072 (expand_a_rotate): Likewise.
5074 2002-01-28 Kazu Hirata <kazu@hxi.com>
5076 * config/h8300/h8300-protos.h: Update the prototype of
5078 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
5080 * config/h8300/h8300.md: Adjust to the new prototype.
5082 2002-01-28 Kazu Hirata <kazu@hxi.com>
5084 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
5087 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
5089 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
5090 is a fixed register before returning pic_offset_table_rtx.
5091 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
5092 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
5094 2002-01-28 Jason Merrill <jason@redhat.com>
5096 * dwarf2.h: Sync with src version.
5098 2002-01-28 Paul Koning <pkoning@equallogic.com>
5100 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
5102 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
5103 * doc/extend.texi (__builtin_prefetch): Update documentation:
5104 first argument is now const void ptr.
5106 2002-01-28 Kazu Hirata <kazu@hxi.com>
5108 * config/h8300/h8300-protos.h: Remove an unused prototype.
5110 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
5112 * toplev.c (lang_independent_init): Round up identifier size.
5114 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
5116 * config.gcc: Revert previous change.
5118 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
5120 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
5122 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
5124 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
5125 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
5126 other non-elf netbsd config frags.
5127 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
5128 collect2 will does that.
5129 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
5130 shared-lib frobbing will work.
5132 2002-01-28 Kazu Hirata <kazu@hxi.com>
5134 * config/h8300/h8300.h: Fix formatting.
5135 * config/h8300/h8300.md: Likewise.
5137 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
5139 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
5140 the old, removed AAA_standards fix.
5141 * fixinc/fixincl.x: Rebuilt.
5143 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
5145 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
5146 atexit call in crtbegin, hooked in after call to frame_dummy;
5147 register EH before registering __fini__start.
5149 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
5151 * config/rs6000/altivec.h: Remove spurious semicolons.
5153 2002-01-27 Kazu Hirata <kazu@hxi.com>
5155 * config/h8300/h8300.md: Replace dead bit extraction patterns
5156 with ones that work.
5158 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5160 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
5161 if not STRICT_ALIGNMENT.
5162 * rtl.h (MEM_ALIGN): Likewise.
5164 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
5166 * doc/invoke.texi (-fdump-translation-unit): Revert this
5167 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
5169 2002-01-27 Kazu Hirata <kazu@hxi.com>
5171 * config/h8300/h8300.md (define_constants): New.
5172 (anonymous patterns) Use defined constants appropriately.
5174 2002-01-27 Kazu Hirata <kazu@hxi.com>
5176 * config/h8300/h8300.c (function_arg): Remove redundant code.
5178 2002-01-26 Richard Henderson <rth@redhat.com>
5180 * sched-deps.c (reg_pending_uses_head): New.
5181 (reg_pending_barrier): Rename from reg_pending_sets_all.
5182 (find_insn_list): Don't mark inline.
5183 (find_insn_mem_list): Remove.
5184 (add_dependence_list, add_dependence_list_and_free): New.
5185 (flush_pending_lists): Replace only_write param with separate
5186 for_read and for_write parameters. Update all callers. Use
5187 add_dependence_list_and_free.
5188 (sched_analyze_1): Do not add reg dependencies here; just set
5189 the pending bits. Use add_dependence_list.
5190 (sched_analyze_2): Likewise.
5191 (sched_analyze_insn): Replace schedule_barrier_found with
5192 reg_pending_barrier. Add all dependencies for pending reg
5193 uses, sets, and clobbers.
5194 (sched_analyze): Don't add reg dependencies for calls, just
5195 set pending bits. Use regs_invalidated_by_call. Treat
5196 sched_before_next_call as a normal list, not a fake insn.
5197 (init_deps): No funny init for sched_before_next_call.
5198 (free_deps): Free pending mems lists. Don't zero reg_last.
5199 (init_deps_global): Init reg_pending_uses.
5200 (finish_deps_global): Free it.
5201 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
5202 (find_insn_mem_list): Remove.
5203 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
5204 (propagate_deps): Use them. Zero temp mem lists.
5206 2002-01-26 Richard Henderson <rth@redhat.com>
5208 * Makefile.in (CRTSTUFF_CFLAGS): New.
5209 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
5210 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
5211 crtstuff.c instead of alpha assembly version.
5212 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
5213 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
5214 not FORCE_{INIT,FINI}_SECTION_ALIGN.
5215 (__do_global_dtors_aux): Mark used.
5216 (frame_dummy, __do_global_ctors_aux): Mark used.
5217 (fini_dummy, init_dummy): Remove.
5219 * config/alpha/crtbegin.asm: Remove file.
5220 * config/alpha/crtend.asm: Remove file.
5221 * config/alpha/t-crtbe: Remove file.
5222 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
5223 (LINK_EH_SPEC): New.
5225 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
5226 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
5227 calling constructors.
5228 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
5230 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
5231 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
5232 CRT_END_INIT_DUMMY hack.
5233 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
5234 FORCE_{INIT,FINI}_SECTION_ALIGN.
5236 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
5237 FORCE_{INIT,FINI}_SECTION_ALIGN.
5239 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
5240 invocation sequence.
5241 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
5243 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
5244 (FORCE_CODE_SECTION_ALIGN): New.
5246 2002-01-26 Richard Henderson <rth@redhat.com>
5248 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
5250 2002-01-26 Richard Henderson <rth@redhat.com>
5252 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
5253 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
5255 2002-01-26 Kazu Hirata <kazu@hxi.com>
5257 * config/h8300/h8300.md: Remove bit extraction patterns that
5258 cannot be triggered.
5259 Restrict each bit extraction pattern to a variant on which the
5262 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
5264 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
5266 2002-01-26 Kazu Hirata <kazu@hxi.com>
5268 * config/h8300/h8300.md: Remove bit test patterns that cannot
5270 Restrict each bit test pattern to a variant on which the
5273 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5275 * builtins.c (expand_builtin_strncat): Remove redundant check for
5278 2002-01-25 David O'Brien <obrien@FreeBSD.org>
5280 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
5282 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
5285 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
5287 * dbxout.c (dbxout_init): Use assemble_name rather than just
5288 stripping off the first character.
5289 (dbxout_source_file): Likewise.
5291 2002-01-25 DJ Delorie <dj@redhat.com>
5293 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
5294 using rtx_equal_p, not by comparing pointers.
5296 2002-01-25 Steve Ellcey <sje@cup.hp.com>
5298 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
5299 for PIC_OFFSET_TABLE_REGNUM.
5300 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
5302 2002-01-25 David O'Brien <obrien@FreeBSD.org>
5304 * config.gcc (x86_64-*-freebsd*): New target.
5305 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
5307 (i[34567]86-*-freebsd*): Don't include svr4.h.
5308 * config/i386/freebsd64.h: New file.
5310 2002-01-25 Douglas B Rupp <rupp@gnat.com>
5312 * config/alpha/x-vms (version): Make static.
5314 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
5315 in previous checkin.
5317 * Makefile.in (install-headers-cp): New target.
5318 * config.gcc (alpha-dec-*vms*): Install headers with
5321 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
5323 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
5326 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5328 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
5329 of compare_tree_int.
5330 (expand_builtin_strncat): Likewise.
5331 * c-decl.c (finish_struct): Use tree_low_cst.
5332 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
5333 * tree.c (compare_tree_int): Likewise.
5335 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
5337 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
5338 adjustments even if they are implemented by more than two insns.
5340 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
5342 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
5343 * df.h (struct ref): Kill B.
5344 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
5346 * basic-block.h (PROP_EQUAL_NOTES): New flag.
5347 * flow.c (propagate_one_insn): Use it.
5348 (mark_used_regs): Handle NIL.
5350 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
5352 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
5355 2002-01-25 David Edelsohn <edelsohn@gnu.org>
5357 * rs6000.md (prefetch): Make address V4SI mode so that the address
5358 is restricted to legitimate form for instruction.
5360 2002-01-25 Bob Wilson <bob.wilson@acm.org>
5362 * doc/install.texi (xtensa-*-elf): New target.
5363 (xtensa-*-linux*): New target.
5364 * doc/contrib.texi: Add myself.
5366 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
5368 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
5369 purpose register to hold an SImode (or smaller) value.
5371 2002-01-25 Jakub Jelinek <jakub@redhat.com>
5373 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
5375 * crtstuff.c: Likewise.
5377 2002-01-25 Kazu Hirata <kazu@hxi.com>
5379 * config/h8300/h8300.md (negation patterns): Tighten
5380 predicates to register_operand.
5382 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
5384 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
5387 * builtins.c (expand_builtin_prefetch): Same.
5389 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5391 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
5394 2002-01-24 Kazu Hirata <kazu@hxi.com>
5396 * config/h8300/h8300.c (print_operand): Remove support for
5397 operand character 'A'.
5398 * config/h8300/h8300.md (three anonymous patterns): Replace
5399 operand character 'A' with either 'T' or 'S'.
5401 2002-01-24 Kazu Hirata <kazu@hxi.com>
5403 * config/h8300/h8300.c (print_operand): Remove support for
5404 operand character 'U'.
5406 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
5408 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
5410 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
5412 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
5413 values to be assigned to the stack pointer.
5415 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
5417 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
5418 to const_double needs to be done right for big-endian systems.
5420 2002-01-24 Jason Merrill <jason@redhat.com>
5423 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
5424 to can_throw_internal.
5426 2002-01-23 Richard Henderson <rth@redhat.com>
5428 * fold-const.c (fold): Change UINT_MAX test to check vs precision
5429 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
5431 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5433 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
5434 (symGOT2reg): Use them, then set as GOT value as unchanging.
5435 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
5436 as a temporary, if possible.
5437 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
5438 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
5440 2002-01-23 Kazu Hirata <kazu@hxi.com>
5442 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
5443 accept to accept 0x80 as operands[2].
5445 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5447 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
5449 2002-01-23 Richard Henderson <rth@redhat.com>
5451 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
5453 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
5455 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
5456 (parmlist_or_identifiers_1): Verify that only a parmlist follows
5459 2002-01-23 Richard Henderson <rth@redhat.com>
5461 * expr.c (move_by_pieces_1): Extend size before negation.
5463 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
5464 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
5465 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
5466 * config/m68k/t-m68kelf: Likewise.
5468 2002-01-23 Bob Wilson <bob.wilson@acm.org>
5470 * config/xtensa/elf.h: New file.
5471 * config/xtensa/lib1funcs.asm: New file.
5472 * config/xtensa/lib2funcs.S: New file.
5473 * config/xtensa/linux.h: New file.
5474 * config/xtensa/t-xtensa: New file.
5475 * config/xtensa/xtensa-config.h: New file.
5476 * config/xtensa/xtensa-protos.h: New file.
5477 * config/xtensa/xtensa.c: New file.
5478 * config/xtensa/xtensa.h: New file.
5479 * config/xtensa/xtensa.md: New file.
5480 * config.gcc (xtensa-*-elf*): New target.
5481 (xtensa-*-linux*): New target.
5482 * cse.c (canon_hash): Compare rtx pointers instead of register
5483 numbers. This is required for the Xtensa port.
5484 * integrate.c (copy_insn_list): Handle case where the static
5485 chain is in memory and the memory address has to be copied to
5487 * doc/invoke.texi (Option Summary): Add Xtensa options.
5488 (Xtensa Options): New node.
5489 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
5491 2002-01-23 Zack Weinberg <zack@codesourcery.com>
5493 * diagnostic.c (internal_error): Do ICE suppression only
5494 when ENABLE_CHECKING is not defined.
5496 * c-typeck.c (require_complete_type): Return error_mark_node
5497 if type is error_mark_node.
5499 2002-01-23 Janis Johnson <janis187@us.ibm.com>
5501 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
5502 -Os and issue a warning.
5504 2002-01-23 Zack Weinberg <zack@codesourcery.com>
5506 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
5507 current (lack of) need for host configuration by hand.
5509 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
5510 references. Documentation of some target macros moved from
5511 hostconfig.texi to tm.texi.
5513 2002-01-23 Will Cohen <wcohen@redhat.com>
5515 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
5518 2002-01-23 Kazu Hirata <kazu@hxi.com>
5520 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
5523 2002-01-23 Jason Merrill <jason@redhat.com>
5525 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
5527 * function.c (assign_parms): Don't put args of inline functions
5528 into registers when not optimizing.
5530 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
5532 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
5533 (prologue_use): New pattern.
5534 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
5535 preference to gen_rtx_USE.
5536 (thumb_expand_prologue): Use gen_prologue_use in preference to
5538 (thumb_expand_epilogue): Use gen_prologue_use in preference to
5541 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
5543 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
5545 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
5548 * doc/extend.texi: Correct documentation of __alignof__.
5550 2002-01-22 Zack Weinberg <zack@codesourcery.com>
5552 * params.h: Rename arguments of DEFPARAM so that it will be
5553 recognized as a translation keyword.
5555 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
5557 * extend.texi: Document altivec functions.
5558 Fix N-bit adjectives in X86 builtin documentation.
5560 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
5562 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
5563 auto_inc_dec values.
5565 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
5567 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
5569 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
5571 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
5573 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
5575 2002-01-22 Richard Henderson <rth@redhat.com>
5577 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
5578 copy_insn not copy_rtx.
5580 2002-01-23 Alan Modra <amodra@bigpond.net.au>
5582 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
5583 "nonzero" as that might add "1" bits. Ensure "constop" is
5584 properly sign extened.
5585 (force_to_mode): Tweak for sign extended constop.
5587 2002-01-22 Richard Henderson <rth@redhat.com>
5589 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
5590 for_each_rtx instead of assuming we're already looking at the MEM.
5591 (split_small_symbolic_mem_operand): Likewise.
5592 * config/alpha/alpha.h (PREDICATE_CODES): Update.
5593 * config/alpha/alpha.md (small symbolic memory splitters): Update.
5595 2002-01-22 Richard Henderson <rth@redhat.com>
5597 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
5598 sequence number for the literal.
5599 (divmoddi_internal_er): Likewise.
5601 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
5604 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
5605 in LIBICONV variable.
5606 * configure: Regenerated.
5608 2002-01-22 Krister Walfridsson <cato@df.lth.se>
5610 * dependence.c (build_def_use): Remove array_idx.
5612 * dwarfout.c (last_filename): Remove.
5613 (output_compile_unit_die): Remove last_filename.
5615 2002-01-22 Roger Sayle <roger@eyesopen.com>
5616 Richard Henderson <rth@redhat.com>
5619 * fold-const.c (fold): Optimize unsigned comparisons against
5620 UINT_MAX (and similar unsigned constants).
5622 2002-01-22 Janis Johnson <janis187@us.ibm.com>
5624 * Makefile.in (loop.o): Depend on OPTABS_H.
5625 * loop.c (emit_prefetch_instructions): Check the prefetch operand
5626 against the predicate.
5629 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
5630 for the address operand.
5632 2002-01-22 Richard Henderson <rth@redhat.com>
5634 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
5636 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
5639 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
5642 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
5644 * config.gcc (x86_64-*-netbsd*): New target.
5645 * config/i386/netbsd64.h: New file.
5647 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
5649 * regrename.c (kill_value): Fix typo.
5651 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
5653 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
5655 * config/rs6000/rs6000.h: Same.
5657 * function.c (instantiate_virtual_regs): Remove
5658 STARTING_FRAME_PHASE.
5659 (assign_stack_local_1): Same.
5660 Calculate frame phase.
5662 2002-01-22 Nick Clifton <nickc@redhat.com>
5664 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
5665 variable declaration to outer scope in order to simplify
5667 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
5668 arm_hard_regno_mode_ok.
5669 * config/arm/arm-protos.h: Add a prototype for
5670 arm_hard_regno_mode_ok.
5671 * config/arm/arm.c (soft_df_operand): Remove now redundant
5672 check for DImode values using IP_REGNUM.
5673 (nonimmediate_soft_df_operand): Remove now redundant check for
5674 DImode values using IP_REGNUM.
5675 (arm_hard_regno_mode_ok): New function. New check: make sure
5676 that DImode values are not stored in IP_REGNUM.
5678 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
5680 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
5682 2002-01-22 Jason Merrill <jason@redhat.com>
5684 * c-semantics.c (genrtl_compound_stmt): Only check nesting
5685 consistency if this COMPOUND_STMT is scoped.
5687 2002-01-22 Kazu Hirata <kazu@hxi.com>
5689 * predict.c: Fix formatting.
5690 * print-tree.c: Likewise.
5691 * protoize.c: Likewise.
5694 * sbitmap.h: Likewise.
5696 * sched-deps.c: Likewise.
5697 * sched-vis.c: Likewise.
5698 * sdbout.c: Likewise.
5699 * sibcall.c: Likewise.
5701 * ssa-ccp.c: Likewise.
5702 * ssa-dce.c: Likewise.
5704 * stor-layout.c: Likewise.
5705 * system.h: Likewise.
5707 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5709 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
5710 if fits in bounds of base type.
5712 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
5713 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
5714 (add_bound_info, default): If can't find a context, make a
5716 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
5718 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
5720 * c-typeck.c (parser_build_binary_op): If result from
5721 build_binary_op is ERROR_MARK just return error_mark_node without
5724 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
5726 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
5727 Split a.out-specific bits into...
5728 * config/netbsd-aout.h: ...this.
5729 * config/netbsd-elf.h: New file.
5730 * config/alpha/netbsd-elf.h: Remove.
5731 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
5732 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
5733 (STARTFILE_SPEC): Remove redundant definition.
5734 (ENDFILE_SPEC): Likewise.
5735 (LINK_SPEC): Likewise.
5736 (CPP_SPEC): Likewise.
5737 (ASM_SPEC): Likewise.
5738 (LIB_SPEC): Likewise.
5739 (SWITCH_TAKES_ARG): Likewise.
5740 (TARGET_MEM_FUNCTIONS): Likewise.
5741 (CPP_PREDEFINES): Redefine.
5742 (ASM_FINAL_SPEC): Remove redefinition.
5743 (ASM_COMMENT_START): Redefine.
5744 (FUNCTION_PROFILER): Define.
5745 (TARGET_VERSION): Redefine.
5746 Comment and formatting cleanup.
5747 * config/i386/netbsd.h: Include <netbsd-aout.h>.
5748 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
5749 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
5750 big- or little-endian.
5751 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
5752 * config.gcc (*-*-netbsd*): Add definitions common to all
5754 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
5755 gnu_ld definitions. Add netbsd-elf.h to and remove
5756 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
5757 tmake_file, and don't lose previous tmake_file contents.
5758 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
5759 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
5760 gnu_ld definitions. Add netbsd-elf.h to tm_file.
5761 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
5762 (mipsel-*-netbsd*): Rename this to...
5763 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
5764 mips/little.h to tm_file for mips*el-*.
5765 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
5766 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
5767 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
5769 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
5771 * pa-protos.h (reg_before_reload_operand): New function prototype.
5772 * pa.c (reg_before_reload_operand): New function implementation.
5773 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
5776 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5778 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
5780 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
5782 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
5783 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
5784 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
5785 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
5786 (ENDFILE_SPEC): Undefine.
5787 (STARTFILE_SPEC): Redefine for PA.
5789 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5791 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
5793 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
5795 * config.gcc: Add entries to supported PowerPC --with-cpu
5798 2002-01-21 Jakub Jelinek <jakub@redhat.com>
5800 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
5801 true for 64-bit mode only SSE registers in 32-bit mode.
5803 2002-01-21 Kazu Hirata <kazu@hxi.com>
5805 * unwind-dw2.c: Fix formatting.
5806 * unwind-dw2-fde.c: Likewise.
5807 * unwind-dw2-fde.h: Likewise.
5808 * unwind-pe.h: Likewise.
5809 * varasm.c: Likewise.
5810 * varray.h: Likewise.
5812 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
5814 Remove workaround for register stack overwrite bug in mmix.
5815 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
5816 support for TARGET_REG_STACK_FILL_BUG.
5817 * config/mmix/mmix.h: Remove member has_call_without_parameters.
5818 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
5820 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
5821 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
5822 -mno-reg-stack-fill-bug-workaround.
5823 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
5824 machine member has_call_without_parameters.
5825 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
5826 -mreg-stack-fill-bug-workaround and
5827 -mno-reg-stack-fill-bug-workaround.
5828 (MMIX Options): Ditto.
5830 2002-01-21 Kazu Hirata <kazu@hxi.com>
5832 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
5834 Remove redundant code.
5836 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
5838 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
5839 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
5840 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
5841 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
5842 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
5843 out target macro definitions and non-target-specific comments
5844 mostly taken from old versions of the manual.
5846 2002-01-20 Kazu Hirata <kazu@hxi.com>
5848 * config/h8300/h8300.h: Fix comment formatting.
5849 * config/ia64/aix.h: Likewise.
5850 * config/ia64/ia64-protos.h: Likewise.
5851 * config/ia64/ia64.c: Likewise.
5852 * config/ia64/ia64.h: Likewise.
5853 * config/ia64/ia64intrin.h: Likewise.
5854 * config/ia64/linux.h: Likewise.
5855 * config/ia64/unwind-aix.c: Likewise.
5856 * config/ia64/unwind-ia64.c: Likewise.
5858 2002-01-20 Kazu Hirata <kazu@hxi.com>
5860 * config/h8300/h8300.c: Revise comments about shift code.
5862 2002-01-20 Kazu Hirata <kazu@hxi.com>
5864 * config/h8300/h8300.c (function_arg): Update a comment.
5866 2002-01-20 Kazu Hirata <kazu@hxi.com>
5868 * config/h8300/h8300.md: Update the comments at the beginning
5871 2002-01-20 Kazu Hirata <kazu@hxi.com>
5873 * config/i370/i370.c: Fix comment formatting.
5874 * config/i370/i370.h: Likewise.
5875 * config/i370/i370.md: Likewise.
5876 * config/i370/linux.h: Likewise.
5878 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5880 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
5882 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
5883 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
5886 2002-01-20 Graham Stott <grahams@redhat.com>
5888 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
5890 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
5892 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
5894 2002-01-19 Tom Rix <trix@redhat.com>
5896 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
5898 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
5900 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
5902 * function.c (assign_stack_local_1): Adjust x_frame_offset with
5903 STARTING_FRAME_PHASE.
5904 (STARTING_FRAME_PHASE): New.
5905 (instantiate_virtual_regs): Check saneness of
5906 STARTING_FRAME_PHASE.
5908 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
5910 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
5912 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
5914 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
5916 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
5917 be used for bootstrapping GCC 3.0.
5919 2002-01-18 Kazu Hirata <kazu@hxi.com>
5921 * config/h8300/h8300.md: Fix an insn length.
5923 2002-01-18 Kazu Hirata <kazu@hxi.com>
5925 * bitmap.h: Fix comment formatting.
5926 * combine.c: Likewise.
5927 * cppfiles.c: Likewise.
5928 * c-pragma.h: Likewise.
5929 * c-typeck.c: Likewise.
5931 * dwarf2out.c: Likewise.
5932 * function.c: Likewise.
5934 * genattrtab.c: Likewise.
5935 * gthr-win32.h: Likewise.
5936 * haifa-sched.c: Likewise.
5937 * predict.c: Likewise.
5938 * rtlanal.c: Likewise.
5940 * unwind-dw2-fde.h: Likewise.
5941 * unwind-pe.h: Likewise.
5942 * vmsdbgout.c: Likewise.
5944 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5946 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
5947 if type_required and passed decl.
5949 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
5951 * config.gcc (cpu_type): Include altivec.h in powerpc
5955 * config/rs6000/altivec.h: New.
5957 2002-01-17 David Edelsohn <edelsohn@gnu.org>
5959 * doc/install.texi (*-ibm-aix*): Update assembler and exception
5960 handling information.
5961 * doc/trouble.texi (Interoperation): Add libstdc++ information
5963 (Misunderstandings): Add template instantiation and static template
5964 member information for AIX.
5966 2002-01-17 Jason Merrill <jason@redhat.com>
5968 * dbxout.c (dbxout_type): Support const and volatile.
5970 * except.c (add_partial_entry): Remove backwards compatibility code.
5971 (end_protect_partials): Likewise.
5973 2002-01-17 Jakub Jelinek <jakub@redhat.com>
5975 * config/ia64/ia64.md (prologue_use): New.
5976 * config/ia64/ia64.c (ia64_expand_prologue): Use
5977 gen_prologue_use instead of gen_rtx_USE.
5978 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
5979 as CODE_FOR_pred_rel_mutex.
5980 (ia64_sched_reorder2): Likewise.
5982 2002-01-16 Eric Christopher <echristo@redhat.com>
5984 * config/mips/r3900.h: Reformat.
5985 (SUBTARGET_CPP_SIZE_SPEC): Remove.
5986 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
5987 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
5988 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
5989 * config/mips/t-elf: Remove mips3 multilib.
5991 2002-01-16 H.J. Lu <hjl@gnu.org>
5993 * config/mips/linux.h: Include "mips/abi64.h".
5995 2002-01-16 H.J. Lu <hjl@gnu.org>
5997 * config/mips/t-linux: New.
5999 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
6001 * config/mips/linux.h: Don't include "gofast.h".
6002 (INIT_SUBTARGET_OPTABS): Removed.
6004 2002-01-16 Kazu Hirata <kazu@hxi.com>
6006 * config/h8300/h8300-protos.h: Replace emit_a_shift with
6008 * config/h8300/h8300.c: Likewise.
6009 * config/h8300/h8300.md: Likewise.
6011 2002-01-16 Kazu Hirata <kazu@hxi.com>
6013 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
6014 spaces after an opcode name.
6015 (pushqi1_h8300hs): Likewise.
6016 (pushhi1_h8300hs): Likewise.
6018 2002-01-16 Kazu Hirata <kazu@hxi.com>
6020 * doc/extend.texi: Replace "option" with "attribute"
6023 2002-01-16 Jakub Jelinek <jakub@redhat.com>
6025 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
6026 (and:DI () (const_int -8)).
6027 (split_small_symbolic_mem_operand): Split
6028 (mem (and:DI () (const_int -8)).
6030 2002-01-16 Jakub Jelinek <jakub@redhat.com>
6033 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
6034 same way as TYPE_IMUL.
6035 (ultrasparc_sched_reorder): Likewise.
6036 * config/sparc/sparc.md (type): Add comment to update
6037 ultrasparc_sched_reorder when making changes.
6039 2002-01-16 Kazu Hirata <kazu@hxi.com>
6041 * doc/invoke.texi: Change the dump file name of block
6042 reordering pass from 28.bbro to 29.bbro.
6045 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
6047 * i386.md (minsf splitter): Fix pasto.
6049 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
6051 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
6052 to frame pointer initialisation instruction.
6053 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
6054 initialisation instruction.
6055 (soft_df_operand): Do not accept the IP register.
6056 (nonimmediate_soft_df_operand): Do not accept the IP register.
6058 2002-01-16 Jakub Jelinek <jakub@redhat.com>
6061 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
6062 MASK_V8 being both set.
6064 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
6066 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
6067 insn for GOT register; add REG_MAYBE_DEAD notes instead.
6068 config/s390/s390.md (call, call_value): Add GOT register to
6069 CALL_INSN_FUNCTION_USAGE where needed.
6070 (call_exp, call_value_exp): New.
6072 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
6074 * config/arm/arm.c: General formatting tidy up.
6076 2002-01-16 Graham Stott <grahams@redhat.com>
6078 * calls.c (try_to_integrate): Use "(size_t)" intermediate
6079 cast and when casting an integer literal to "rtx" pointer.
6080 (expand_call): Likewise.
6081 * flow.c (try_pre_increment): Likewise.
6082 (find_use_as_address): Likewise.
6083 * integrate.c (expand_iline_function): Likewise.
6084 * regmove.c (try_auto_increment): Likewise.
6086 2002-01-16 Graham Stott <grahams@redhat.com>
6088 * sched-rgn.c (passed): Use sbitmap_free.
6091 (in_queue): Likewise.
6092 (in_stack): Likewise.
6094 2002-01-15 Eric Christopher <echristo@redhat.com>
6096 * flow.c (propagate_one_insn): Change to use fatal_insn.
6098 2002-01-15 Kazu Hirata <kazu@hxi.com>
6100 * expmed.c (extract_fixed_bit_field): Remove unused code.
6101 * system.h: Poison SLOW_ZERO_EXTEND.
6102 * doc/tm.texi: Remove.
6103 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
6104 * config/arm/arm.h: Likewise.
6105 * config/avr/avr.h: Likewise.
6106 * config/clipper/clipper.h: Likewise.
6107 * config/convex/convex.h: Likewise.
6108 * config/d30v/d30v.h: Likewise.
6109 * config/dsp16xx/dsp16xx.h: Likewise.
6110 * config/elxsi/elxsi.h: Likewise.
6111 * config/fr30/fr30.h: Likewise.
6112 * config/h8300/h8300.h: Likewise.
6113 * config/i370/i370.h: Likewise.
6114 * config/i386/i386.h: Likewise.
6115 * config/m68k/m68k.h: Likewise.
6116 * config/mips/mips.h: Likewise.
6117 * config/ns32k/ns32k.h: Likewise.
6118 * config/pdp11/pdp11.h: Likewise.
6119 * config/pj/pj.h: Likewise.
6120 * config/s390/s390.h: Likewise.
6121 * config/sh/sh.h: Likewise.
6122 * config/stormy16/stormy16.h: Likewise.
6123 * config/v850/v850.h: Likewise.
6124 * config/vax/vax.h: Likewise.
6125 * config/we32k/we32k.h: Likewise.
6127 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
6129 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
6130 (altivec_lvsl): Change constraint to b.
6131 (altivec_lvsr): Same.
6132 (altivec_lvebx): Same.
6133 (altivec_lvehx): Same.
6134 (altivec_lvewx): Same.
6135 (altivec_lvxl): Same.
6136 (altivec_lvx): Same.
6137 (altivec_stvx): Add parallel.
6138 (altivec_stvxl): Same.
6139 (altivec_stvehx): Same.
6140 (altivec_stvebx): Same.
6141 (altivec_stvebx): Same.
6143 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
6145 * config.gcc: Change altivec.h to altivec-defs.h.
6147 * config/rs6000/altivec.h: Delete.
6149 * config/rs6000/altivec-defs.h: Add.
6151 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
6153 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
6156 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
6157 less than or equal to eight bytes.
6159 * vax.md (andsi3): Remove constraints and change SET destination
6160 operand type to nonimmediate_operand.
6161 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
6162 when it is a CONST_INT.
6164 2002-01-15 Jason Merrill <jason@redhat.com>
6166 * c-common.def (FILE_STMT): New code.
6167 * c-common.c (statement_code_p): It's a statement.
6168 * c-common.h (stmt_tree_s): Add x_last_filename.
6169 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
6170 (last_expr_filename): New macro.
6171 * c-semantics.c (begin_stmt_tree): Initialize it.
6172 (add_stmt): If the filename changed, also insert a
6174 (expand_stmt): Handle seeing one.
6176 2002-01-15 Eric Christopher <echristo@redhat.com>
6178 * flow.c (propagate_one_insn): Add error message and print out
6181 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
6183 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
6184 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
6185 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
6186 TRAMPOLINE_ALIGNMENT.
6187 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
6189 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
6190 PCC_BITFIELD_TYPE_MATTERS.
6191 * config/interix.h (STDC_VALUE): Remove. Use
6192 STDC_0_IN_SYSTEM_HEADERS.
6193 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
6194 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
6195 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
6197 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
6199 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
6200 not work on this platform currently.
6202 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
6204 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
6205 readonly_warning in _().
6207 2002-01-15 Douglas B Rupp <rupp@gnat.com>
6209 * gcc.c (delete_if_ordinary): Backout previous change.
6211 2002-01-15 Kazu Hirata <kazu@hxi.com>
6213 * config/h8300/h8300.c (print_operand): Remove support for
6214 unused operand characters.
6216 * read-rtl.c: Fix formatting.
6218 * recog.c: Likewise.
6219 * regclass.c: Likewise.
6220 * regmove.c: Likewise.
6221 * reg-stack.c: Likewise.
6222 * reload1.c: Likewise.
6223 * rtlanal.c: Likewise.
6225 2002-01-15 Kazu Hirata <kazu@hxi.com>
6227 * config/i386/i386.c: Fix formatting.
6229 2002-01-15 Jakub Jelinek <jakub@redhat.com>
6231 * c-typeck.c (process_init_element): Don't save_expr
6232 COMPOUND_LITERAL_EXPR if just its initializer will be used.
6234 2002-01-15 David Edelsohn <edelsohn@gnu.org>
6236 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
6237 emit optional traceback table if optimize_size or TARGET_ELF.
6238 * config/rs6000/rs6000.md (prefetch): New.
6240 2002-01-15 Andreas Jaeger <aj@suse.de>
6242 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
6244 2002-01-15 Kazu Hirata <kazu@hxi.com>
6246 * mips-tfile.c: Fix formatting.
6248 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
6250 * unroll.c (final_reg_note_copy): Fix previous commit.
6252 2002-01-14 Kazu Hirata <kazu@hxi.com>
6254 * config/h8300/h8300-protos.h: Remove the prototype for
6256 * config/h8300/h8300.c (eq_operator): Remove.
6258 2002-01-14 Richard Henderson <rth@redhat.com>
6260 * config/i386/i386.md (prefetch): Tidy.
6261 (prefetch_3dnow): Fix locality operand.
6263 2002-01-14 Richard Henderson <rth@redhat.com>
6265 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
6266 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
6268 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
6270 * reload1.c (reload_combine): Pass reg_sum replacement through
6271 copy_rtx in loop performing multiple changes.
6273 2002-01-14 Jakub Jelinek <jakub@redhat.com>
6275 * except.c (remove_unreachable_regions): New.
6276 (free_eh_status): Clear exception_handler_labels.
6277 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
6278 (find_exception_handler_labels): Don't add the same label more than
6280 (remove_exception_handler_label): Don't die if
6281 find_exception_handler_labels hasn't been called for the current
6284 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
6286 * toplev.c (rest_of_compilation): Rebuild jump labels after
6289 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
6291 * doc/extend.texi: Move documentation of X86 built-in functions
6293 * doc/invoke.texi: From here.
6294 * doc/sourcebuild.texi: Document location of documentation for
6295 machine built-in functions.
6297 2002-01-13 Christopher Faylor <cgf@redhat.com>
6299 * cppfiles.c (TEST_THRESHOLD): New macro.
6300 (SHOULD_MMAP): Ditto.
6301 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
6304 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
6306 * unroll.c (final_reg_note_copy): Properly handle
6308 (unroll_loops): Fix LOOP_CONDITION heuristics.
6310 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
6312 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
6313 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
6315 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
6317 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
6320 2002-01-14 Tom Rix <trix@redhat.com>
6322 * config/rs6000/rs6000.md: Fix typo with sradi.
6324 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
6326 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
6327 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
6328 (clrstrdi, clrstrsi): Adapt callers.
6330 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
6332 (movti splitter): Never use register 0 as base register.
6334 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
6336 * combine.c (simplify_shift_const): Always generate new rtx
6337 for shift expression instead of reusing given expression.
6339 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6341 * config/alpha/alpha.c (alpha_expand_mov): Don't call
6342 alpha_legitimize_address unless mode is Pmode.
6344 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
6346 * doc/md.texi (Modifiers): Document the '*' constraint for the
6349 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
6350 * doc/extend.texi (Function Attributes): 'interrupt' is valid
6353 2002-01-13 Richard Henderson <rth@redhat.com>
6355 * reload.c (find_reloads): Use a hard reg destination as reload reg
6356 for an input reload of the source.
6358 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6360 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
6363 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
6365 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
6366 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
6368 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
6370 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6372 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
6374 2002-01-12 Tom Rix <trix@redhat.com>
6376 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
6379 2002-01-12 Richard Henderson <rth@redhat.com>
6381 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
6383 * doc/invoke.texi: Update Alpha options.
6385 * doc/invoke.texi: Update i386 built-in function lists.
6387 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
6389 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
6390 referencing outside.
6392 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6394 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
6395 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
6396 offsets, and change line folding.
6397 * optabs.c (expand_binop): Remove warnings.
6398 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
6400 2002-01-12 Graham Stott <grahams@redhat.com>
6402 * attribs.c (handle_deprecated_attribute): constify WHAT.
6403 * diagnostic.c (warn_deprecated_use): Add braces, fixes
6404 dangling else warning and constify WHAT.
6405 * except.h (struct function, struct inline_remap): Move
6406 struct tag forward defs before all prototypes.
6407 (duplicate_eh_regions): Whitespace.
6409 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
6411 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
6412 MODE_BASE_REG_CLASS.
6413 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
6415 2002-01-12 Richard Henderson <rth@redhat.com>
6417 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
6418 (ix86_expand_vector_move): New.
6419 (bdesc_2arg): Remove andps, andnps, orps, xorps.
6420 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
6421 Remove old prefetch builtins. Special case the logicals removed above.
6422 (ix86_expand_builtin): Likewise.
6423 (safe_vector_operand): Use V4SFmode, not TImode.
6424 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
6425 (ix86_expand_timode_binop_builtin): New.
6426 * config/i386/i386-protos.h: Update.
6427 * config/i386/i386.h (enum ix86_builtins): Update.
6428 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
6429 Use ix86_expand_vector_move in vector move expanders.
6430 (movti_internal, movti_rex64): Add xorps alternative.
6431 (sse_clrv4sf): Rename and adjust from sse_clrti.
6432 (prefetch): Don't work so hard.
6433 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
6434 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
6435 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
6437 2002-01-11 Richard Henderson <rth@redhat.com>
6439 * config/i386/mmintrin.h: New file.
6440 * config/i386/xmmintrin.h: New file.
6441 * config.gcc (i?86-*-*): Add extra_headers.
6442 * simplify-rtx.c (simplify_unary_operation): Handle saturating
6444 (simplify_binary_operation): Handle saturating arithmetic codes.
6445 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
6446 not the lowpart subreg.
6447 (ix86_expand_builtin): Return a TImode dummy register instead of 0
6449 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
6451 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6453 * conflict.c (conflict_graph_compute): Free regsets when finished.
6454 * ssa.c (compute_coalesced_reg_partition): Likewise.
6456 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6458 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
6459 every where we allocate a register.
6461 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6463 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
6464 * lcm.c (compute_earliest, compute_farthest): Likewise.
6466 2002-01-11 Janis Johnson <janis187@us.ibm.com>
6468 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
6470 2002-01-11 Janis Johnson <janis187@us.ibm.com>
6472 * doc/rtl.texi (Insns): Fix 2 typos.
6474 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
6476 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
6477 options. Use @table @gcctabopt for MMIX options. Add index
6478 entries for MMIX options. Start new paragraph with first
6479 heading of the machine-dependent options.
6481 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
6484 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
6485 * combine.c (force_to_mode): Same.
6486 * reload1.c (clear_reload_reg_in_use): Same.
6488 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
6490 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
6493 2002-01-11 Andreas Jaeger <aj@suse.de>,
6494 Brad Lucier <lucier@math.purdue.edu>
6496 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
6499 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
6501 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
6502 Protect with IN_LIBGCC.
6503 (LINK_EH_SPEC): Add required trailing space.
6505 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
6507 * c-tree.h: Move function declarations so that they are listed
6508 under the filename which contains them.
6509 (check_identifier, finish_decl_top_level,
6510 lookup_name_current_level_global, shadow_record_fields): Remove.
6512 2002-01-11 Andreas Jaeger <aj@suse.de>
6514 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
6517 2002-01-10 Richard Henderson <rth@redhat.com>
6519 * config/alpha/alpha.c (print_operand): Add 'J'.
6520 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
6521 new operand with the sequence number for the lituse. When splitting
6522 the insns, use gen_movdi_er_high_g and generate a sequence number.
6523 (gen_movdi_er_high_g): Print the sequence number if non-zero.
6525 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
6527 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
6528 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
6530 (altivec_expand_builtin): Same.
6531 (altivec_expand_stv_builtin): New.
6533 * config/rs6000/rs6000.h (rs6000_builtins): Same.
6535 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
6536 ("altivec_lvehx"): New.
6537 ("altivec_lvewx"): New.
6538 ("altivec_lvxl"): New.
6539 ("altivec_lvx"): New.
6540 ("altivec_stvx"): New.
6541 ("altivec_stvebx"): New.
6542 ("altivec_stvehx"): New.
6543 ("altivec_stvewx"): New.
6544 ("altivec_stvxl"): New.
6546 2002-01-10 Richard Henderson <rth@redhat.com>
6548 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
6549 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
6550 care not to delete instructions twice.
6552 2002-01-10 Zack Weinberg <zack@codesourcery.com>
6554 * toplev.c: Don't declare environ (it's not used anywhere).
6555 * configure.in: Don't check for declaration of environ.
6556 * config/i386/xm-mingw32.h: Don't #define environ.
6557 * config.in, configure: Regenerate.
6559 2002-01-10 Zack Weinberg <zack@codesourcery.com>
6561 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
6562 * configure: Regenerate.
6564 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
6565 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
6566 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
6568 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
6569 LIMITS_H_TEST here, not in m68k/x-next.
6570 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
6571 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
6573 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
6574 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
6575 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
6577 * config/i386/x-djgpp: Renamed i386/t-djgpp.
6578 * config/m88k/x-dolph: Renamed m88k/t-dolph.
6579 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
6580 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
6581 replacement of quadlib.asm with quadlib.c.
6583 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
6584 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
6585 config/rs6000/xm-beos.h: Delete file.
6587 * config.gcc: Update to match above changes.
6589 2002-01-10 Kazu Hirata <kazu@hxi.com>
6591 * config/h8300/h8300.h: Fix comment typos.
6592 * config/h8300/h8300.md: Likewise.
6593 * config/h8300/lib1funcs.asm: Likewise.
6595 2002-01-10 Dale Johannesen <dalej@apple.com>
6597 PR optimization/5269
6598 * unroll.c (precondition_loop_p): Make *increment be the correct
6599 sign when n_iterations known, to avoid confusing caller.
6601 2002-01-10 Kazu Hirata <kazu@hxi.com>
6603 * doc/extend.texi (deprecated): Fix a typo.
6605 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
6607 * basic-block.h (update_br_prob_note): Declare.
6608 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
6609 (try_forward_edges): Care negative frequencies and update note.
6610 (outgoing_edges_match): Tweek conditional merging heuristics.
6611 (try_crossjump_to_edge): use update_br_prob_note.
6612 * cfglayout.c (fixup_reorder_chain): Likewise.
6613 * cfrtl.c (update_br_prob_note): New.
6614 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
6616 * i386.c (ix86_decompose_address): Return -1 if address contains
6618 (legitimate_address_p): Require ix86_decompose_address to return 1.
6620 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
6621 (cprop_insn): Likewise.
6623 2002-01-10 Kazu Hirata <kazu@hxi.com>
6625 * toplev.c: Fix formatting.
6627 * tree-dump.c: Likewise.
6628 * unroll.c: Likewise.
6629 * unwind-dw2.c: Likewise.
6630 * unwind-dw2-fde.c: Likewise.
6631 * unwind-dw2-fde-glibc.c: Likewise.
6632 * unwind-sjlj.c: Likewise.
6634 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
6636 * doc/invoke.texi: Document PDP-11 options.
6638 2002-01-10 Kazu Hirata <kazu@hxi.com>
6640 * config/h8300/h8300.h: Fix formatting.
6642 2002-01-10 Ira Ruben <ira@apple.com>
6644 Add __attribute__ ((deprecated)).
6645 * extend.texi: Document __attribute__ ((deprecated)).
6646 * invoke.texi: Document -Wno-deprecated-declarations.
6647 * testsuite/g++.dg/other/deprecated.C: New C++ test.
6648 * testsuite/gcc.dg/deprecated.c: New C test.
6649 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
6650 (c_common_attribute_table): Add "deprecated" entry.
6651 (handle_deprecated_attribute): New function.
6652 * c-decl.c (deprecated_states): New enum.
6653 deprecated_state: State of "deprecated" handling.
6654 (start_decl): Set deprecated_state based on attributes.
6655 (grokdeclarator): Test for deprecated uses, propagate attribute.
6656 * c-typeck.c (build_component_ref): Test for deprecated fields.
6657 (build_external_ref): Test for deprecated primaries.
6658 * diagnostic.c (warn_deprecated_use) New function to issue
6659 warnings about __attribute__ ((depricated)) references.
6660 * flags.h (warn_deprecated_decl): Extern declared for
6661 -W[no-]deprecated-declarations option.
6662 * print-tree.c (print_node): Show deprecated flag status.
6663 * toplev.c (warn_deprecated_decl): Defined.
6664 (W_options): Added "deprecated-declaration".
6665 * toplev.h (warn_deprecated_use): Extern declared.
6666 * tree.h (struct tree_common): Define deprecated_flag.
6667 (TREE_DEPRECATED): New macro to access flag.
6668 * cp/call.c (build_call): Test for deprecated calls.
6669 * cp/class.c (add_implicitly_declared_members): Set global
6670 flag to tell grokdeclarator to not issue deprecated warnings.
6671 * cp/cp-tree.h: Add extern for adding_implicit_members.
6672 * cp/decl.c (deprecated_states): New enum.
6673 (start_decl): Set deprecated_state based on attributes.
6674 (grokdeclarator): Test for deprecated uses, propagate attribute.
6675 * cp/lex.c (do_identifier): Test for deprecated primaries.
6676 * cp/typeck.c (build_component_ref): Test for deprecated fields.
6678 2002-01-10 Ira Ruben <ira@apple.com>
6680 Fix to assign attributes to inline member functions.
6681 * cp/decl.c (start_method): Handle attrlist.
6683 2002-01-10 Kazu Hirata <kazu@hxi.com>
6685 * combine.c (expand_field_assignment): Use subreg_lsb().
6687 2002-01-10 David Edelsohn <edelsohn@gnu.org>
6689 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
6690 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
6691 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
6692 Recurse for any operand of AND as long as constant is non-zero.
6694 2002-01-10 Kazu Hirata <kazu@hxi.com>
6696 * config/h8300/h8300.md: Remove constraints from expanders.
6698 2002-01-10 Kazu Hirata <kazu@hxi.com>
6700 * varasm.c: Fix formatting.
6701 * varray.c: Likewise.
6702 * vmsdbgout.c: Likewise.
6703 * xcoffout.c: Likewise.
6705 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
6707 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
6708 update edge probabilities to match.
6710 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
6712 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
6714 * doc/languages.texi, doc/sourcebuild.texi: New files.
6715 * doc/configfiles.texi: Make a subsubsection. Update.
6716 * doc/configterms.texi: Add @node. Remove warning that this isn't
6717 instructions for building GCC.
6718 * doc/makefile.texi: Make a subsection.
6719 * doc/gccint.texi: Update.
6721 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
6723 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
6725 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
6727 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
6729 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
6731 * optabs.c (expand_fix): Look for wider integer modes first.
6733 * i386.md (mov?f): Avoid the fake const double trick for medium
6735 (min?f*/max?f*): Prohibit memory operands for i387 variant.
6736 (fop_df_4): Disable for SSE compilation.
6738 2002-01-10 Graham Stott <grahams@redhat.com>
6740 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
6741 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
6743 2002-01-10 Richard Henderson <rth@redhat.com>
6745 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
6747 2002-01-10 Richard Henderson <rth@redhat.com>
6749 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
6750 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
6752 2002-01-10 Kazu Hirata <kazu@hxi.com>
6754 * combine.c (can_combine_p): Fix a comment typo.
6756 2002-01-09 Zack Weinberg <zack@codesourcery.com>
6758 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
6759 empty list correctly. Change loop index $t to $f for
6760 consistency with rest of Makefile.
6762 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
6764 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
6765 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
6767 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
6768 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
6769 (altivec_init_builtins): Same.
6770 (altivec_expand_unop_builtin): Return NULL_RTX on error.
6771 (altivec_expand_binop_builtin): Same.
6772 (altivec_expand_ternop_builtin): Same.
6775 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
6776 ("altivec_vctuxs"): Fix typo.
6777 ("altivec_vnmsubfp"): Same.
6778 ("altivec_dssall"): New.
6779 ("altivec_mfvscr"): New.
6780 ("altivec_dss"): New.
6781 ("altivec_lvsl"): New.
6782 ("altivec_lvsr"): New.
6783 ("altivec_dstt"): New.
6784 ("altivec_dstst"): New.
6785 ("altivec_dststt"): New.
6786 ("altivec_dst"): New.
6788 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
6789 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
6791 2002-01-09 Richard Henderson <rth@redhat.com>
6793 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
6795 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
6797 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
6799 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
6801 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
6803 2002-01-09 Kazu Hirata <kazu@hxi.com>
6805 * read-rtl.c: Fix formatting.
6807 * regclass.c: Likewise.
6808 * regrename.c: Likewise.
6809 * reg-stack.c: Likewise.
6810 * reload1.c: Likewise.
6811 * reload.c: Likewise.
6814 2002-01-09 Kazu Hirata <kazu@hxi.com>
6816 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
6817 to extract items in the expr_list chain.
6819 2002-01-09 Richard Henderson <rth@redhat.com>
6821 * config/vax/vax.c (vax_rtx_cost): Never abort.
6823 * config/vax/vax.h (REAL_ARITHMETIC): Define.
6825 2002-01-09 Jan Hubicka <jh@suse.cz>
6827 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
6829 2002-01-09 Richard Henderson <rth@redhat.com>
6831 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
6832 Unify code from various alternatives.
6834 2002-01-09 Richard Henderson <rth@redhat.com>
6836 * regrename.c (copy_value): Ignore the copy if the source register
6837 is present in the value chain with a narrower mode.
6839 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6841 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
6842 for the c4x target. Also improve layout.
6844 2002-01-09 Richard Henderson <rth@redhat.com>
6846 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
6847 * config/m32r/m32r.md (and ior xor splitters): Swap operands
6848 to match insn patterns.
6850 2002-01-09 Richard Henderson <rth@redhat.com>
6852 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
6853 (copyprop_hardreg_forward_1): Likewise.
6855 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
6857 * pa.md (decrement_and_branch_until_zero): Change predicate for
6858 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
6860 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
6862 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
6863 gets undefined. For Darwin.
6865 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6867 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
6869 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6871 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
6873 2002-01-08 Richard Henderson <rth@redhat.com>
6875 * regrename.c (copy_value): Ignore overlapping copies.
6877 2002-01-08 Richard Henderson <rth@redhat.com>
6879 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
6880 as needed to avoid shared structure.
6882 2002-01-08 Kazu Hirata <kazu@hxi.com>
6884 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
6887 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
6889 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
6890 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
6891 documentation of obsolete macros.
6892 * system.h: Poison these macros.
6893 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
6894 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
6895 config/c4x/c4x.h, config/clipper/clipper.h,
6896 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
6897 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
6898 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
6899 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
6900 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
6901 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
6902 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
6903 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
6904 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
6905 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
6906 config/sparc/sparc.h, config/stormy16/stormy16.h,
6907 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
6908 definitions and commented out definitions of obsolete macros.
6909 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
6910 of MAX_INT_TYPE_SIZE.
6912 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
6914 * config/s390/s390.c (s390_preferred_reload_class): Never
6915 return ADDR_REGS if it isn't a subset of the given class.
6916 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
6917 FP_REGS, but all superclasses as well.
6919 * config/s390/s390.c (s390_function_profiler): Fix thinko.
6921 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
6922 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
6923 must not be a const_int.
6925 2002-01-08 Richard Henderson <rth@redhat.com>
6927 * Makefile.in (toplev.o): Depend on options.h.
6928 (gcc.o): Depend on specs.h.
6930 2002-01-08 Jakub Jelinek <jakub@redhat.com>
6932 * expr.c (store_expr): Convert VOIDmode constants back to target's
6935 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6937 * doc/invoke.texi: Markup gcc as @command. Refer to
6938 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
6939 of http://gcc.gnu.org/thanks.html.
6941 2002-01-08 Dale Johannesen <dalej@apple.com>
6943 * config/rs6000/rs6000.md: Add missing int register
6944 target case to movdf_low.
6946 2002-01-08 Zack Weinberg <zack@codesourcery.com>
6948 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
6949 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
6950 (cppinit.o): Depend on except.h.
6951 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
6952 s-specs): New rules.
6954 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
6955 Don't create specs.h/options.h/gencheck.h here. Remove
6956 unnecessary variable settings from last argument of AC_OUTPUT.
6957 * config.in, configure: Regenerate.
6958 * intl.c: Hardcode package name as "gcc".
6960 * cppinit.c: Include except.h.
6961 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
6963 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
6964 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
6965 (!)USING_SJLJ_EXCEPTIONS.
6966 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
6968 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
6970 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
6971 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
6972 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
6973 documentation of obsolete macros.
6974 * system.h: Poison these macros.
6975 * config/d30v/d30v.h, config/ns32k/encore.h,
6976 config/stormy16/stormy16.h: Remove definitions and commented out
6977 definitions of obsolete macros.
6979 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
6981 * objc/objc-act.c (handle_class_ref): Mark the declaration of
6982 %sobjc_class_ref_%s as used - to prevent unwanted compiler
6985 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
6987 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
6988 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
6989 to insn adjusting stack/frame pointer.
6990 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
6991 accept operands that cause the insn to be non-splittable.
6993 2002-01-08 Graham Stott <grahams@redhat.com>
6995 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
6996 (C_TYPE_FIELDS_VOLATILE): Likewise.
6997 (C_TYPE_BEING_DEFINED): Likewise.
6998 (C_IS_RESERVED_WORD): Likewise.
6999 (C_TYPE_VARIABLE_SIZE): Likewise.
7000 (C_DECL_VARIABLE_SIZE): Likewise.
7001 (C_MISSING_PROTOTYPE_WARNED): Likewise.
7002 (C_SET_EXP_ORIGINAL_CODE): Likewise.
7003 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
7005 (C_DECL_ANTICIPATED): Likewise.
7006 (c_build_type_variant): Add parenthesis.
7008 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
7010 * gcc.c (option_map): Remove --version.
7011 (process_command): Handle -fversion following the GNU Coding
7012 Standards. Partially addresses PR other/704.
7014 2002-01-08 Graham Stott <grahams@redhat.com>
7016 * combine.c (combine_instructions): Fix typo.
7018 2002-01-08 Graham Stott <grahams@redhat.com>
7020 * debug.h: Use "tree" and "rtx" throughout.
7022 * debug.c: Likewise.
7024 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
7026 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
7027 constant pool, use the pool's version of the symbol instead.
7029 2002-01-07 Richard Henderson <rth@redhat.com>
7031 * regrename.c (find_oldest_value_reg): Ignore the value chain if
7032 the original register was copied in a mode with a fewer number of
7033 hard registers than the desired mode.
7034 (copyprop_hardreg_forward_1): Likewise.
7035 (debug_value_data): Fix loop test.
7036 * toplev.c (parse_options_and_default_flags): Reenable
7037 -fcprop-registers at -O1.
7039 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
7041 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
7042 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
7044 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
7047 * config/rs6000/rs6000.md: Add altivec predicate patterns.
7049 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
7051 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
7052 (pa_output_function_prologue): Output local label at the beginning of
7053 the prologue when profiling.
7054 (hppa_profile_hook): Use the local label rather than the function label.
7055 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
7057 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
7059 * config/rs6000/rs6000.c (print_operand): Remove extra space.
7060 (altivec_expand_unop_builtin): Fix thinko.
7061 (altivec_expand_binop_builtin): Same.
7062 (altivec_expand_ternop_builtin): Same.
7063 (altivec_expand_builtin): Same.
7065 2002-01-07 Richard Henderson <rth@redhat.com>
7067 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
7069 2002-01-07 Jason Merrill <jason@redhat.com>
7071 * unwind-dw2.c (execute_cfa_program): Use < again.
7073 2002-01-07 Jakub Jelinek <jakub@redhat.com>
7075 * predict.c (combine_predictions_for_insn): Avoid division by zero.
7077 2002-01-07 Jakub Jelinek <jakub@redhat.com>
7079 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
7080 Don't allow -1 - x -> ~x simplifications in the first pass.
7082 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
7084 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
7086 (altivec_expand_binop_builtin): Same.
7087 (altivec_expand_unop_builtin): Same.
7088 (print_operand): Fix typo.
7089 (bdesc_1arg): Add vupk* variants.
7091 * rs6000.h (rs6000_builtins): Add vupk* enums.
7093 * rs6000.md: Add altivec_vupk* variants.
7095 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
7097 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
7098 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
7099 and last update dates.
7101 2002-01-07 Janis Johnson <janis187@us.ibm.com>
7103 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
7105 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
7107 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
7108 * config/avr/avr.h (CPP_SPEC): Likewise.
7109 (LINK_SPEC): Likewise.
7110 (CRT_BINUTILS_SPECS): Likewise.
7111 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
7112 * doc/invoke.texi (AVR Options): Document them.
7114 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
7116 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
7119 2002-01-07 Graham Stott <grahams@redhat.com>
7121 * config/i386/i386.h: Update copyright date.
7122 (HALF_PIC_PTR): Add parenthesis.
7123 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
7124 (CONSTANT_ALIGNMENT): Add parenthesis.
7125 (DATA_ALIGNMENT): Likewise.
7126 (LOCAL_ALIGNMENT): Likewise.
7127 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
7128 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
7129 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
7130 (HARD_REGNO_NREGS): Add paranethesis.
7131 (VALID_SSE_REG_MODE): Whitespace.
7132 (VALID_MMX_REG_MODE): Whitespace.
7133 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
7134 (ix86_hard_regno_mode_ok): Add parenthesis.
7135 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
7136 (RETURN_IN_MEMORY): Whitespace.
7137 (N_REG_CLASSES): Add parenthesis.
7138 (INTEGER_CLASS_P): Add parenthesis and wrap.
7139 (FLOAT_CLASS_P): Likewise.
7140 (SSE_CLASS_P): Likewise.
7141 (MMX_CLASS_P): Likewise.
7142 (MAYBE_INTEGER_CLASS_P): Likewise.
7143 (MAYBE_FLOAT_CLASS_P): Likewise.
7144 (MAYBE_SSE_CLASS_P): Likewise.
7145 (MAYBE_MMX_CLASS_P): Likewise.
7146 (Q_CLASS_P): Likewise.
7147 (GENERAL_REGNO_P): Uppercase macro parameter.
7148 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
7149 (FP_REGNO_P): Likewise.
7150 (ANY_FP_REGNO_P): Uppercase macro parameter.
7151 (SSE_REGNO_P): Likewise.
7152 (SSE_REGNO): Likewise.
7153 (SSE_REG_P): Likewise.
7154 (SSE_FLOAT_MODE_P): Likewise.
7155 (MMX_REGNO_P): Likewise.
7156 (MMX_REG_P):Likewise.
7157 (STACK_REG_P): Likewise.
7158 (NON_STACK_REG_P): Likewise.
7159 (STACK_TOP_P): Likewise.
7160 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
7161 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
7162 (SECONDARY_MEMORY_NEEDED): Likewise.
7163 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
7164 (MD_ASM_CLOBBERS): Whitespace and wrap.
7165 (MUST_PASS_IN_STACK): Whitespace and wrap.
7166 (RETURN_POPS_ARGS): Add parenthesis.
7167 (INIT_CUMULATIVE_ARGS): Likewise.
7168 (FUNCTION_ARG): Likewise.
7169 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
7170 (SETUP_INCOMING_VARARGS): Likewise.
7171 (BUILD_VA_LIST_TYPE): Add parenthesis.
7172 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
7174 (EXPAND_BUILTIN_VA_ARG): Likewise.
7175 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
7176 (INITIALIZE_TRAMPOLINE): Add parenthesis.
7177 (INITIAL_ELIMINATION_OFFSET): Likewise.
7178 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
7179 (REGNO_OK_FOR_BASE_P): Likewise.
7180 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
7181 (REGNO_OK_FOR_DIREG_P): Likewise.
7182 (REG_OK_FOR_INDEX_P): Whitespace.
7183 (REG_OK_FOR_BASE_P): Whitespace.
7184 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
7186 (FIND_BASE_TERM): Fix typo.
7187 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
7188 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
7189 (SYMBOLIC_CONST; Whitespace.
7190 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
7191 (ENCODE_SECTION_INFO): Whitespace.
7192 (FINALIZE_PIC): Remove do { ... } while (0).
7193 (PROMOTE_MODE): Wrap in do { ... } while (0).
7194 (CONST_COSTS): Whitespace.
7195 (RTX_COSTS): Add paramethesis, whitespace and wrap.
7196 (REGISTER_MOVE_COST): Add parenthesis.
7197 (MEMORY_MOVE_COST): Likewise.
7198 (EXTRA_CC_MODES): Whitespace.
7199 (SELECT_CC_MODE): Add parenthesis and whitespace.
7200 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
7201 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
7202 (ASM_OUTPUT_LABEL): Add paramethesis.
7203 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
7204 (ASM_OUTPUT_REG_POP): Likewise.
7205 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
7206 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7208 * config/i386/i386.c: Update copyright.
7209 (CHECK_STACK_LIMIT): Add parenthesis.
7210 (AT_BP): Uppercase macro parameter.
7211 (x86_64_int_parameter_registers): Constify.
7212 (x86_64_int_return_registers): Likewise.
7213 (ix86_compare_op0): Use rtx.
7214 (construct_container): Constify INTREG parameter.
7215 (function_arg): Use rtx.
7217 * diagnostic.h: Update copyright date.
7218 (output_buffer_state): Add parenthesis.
7219 (output_buffer_format_args): Likewise.
7221 * combine.c (combine_instructions): Replace XEXP (links, 0)
7224 2002-01-06 H.J. Lu <hjl@gnu.org>
7226 * cfgcleanup.c (thread_jump): Fix 2 typos.
7228 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
7230 * config.gcc: Add support for --enable-altivec.
7232 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
7234 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
7236 2002-01-06 Jakub Jelinek <jakub@redhat.com>
7238 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
7239 __objc_class_name_*.
7241 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
7243 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
7245 2002-01-06 Richard Henderson <rth@redhat.com>
7247 * reorg.c (emit_delay_sequence): Remove death notes, not merely
7248 nop them out. Increment label reference count for REG_LABEL.
7249 (fill_slots_from_thread): Frob label reference count around
7250 delete_related_insns.
7252 2002-01-05 Richard Henderson <rth@redhat.com>
7254 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
7257 2002-01-05 Richard Henderson <rth@redhat.com>
7259 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
7260 * integrate.c (output_inline_function): Likewise.
7261 * toplev.c (rest_of_compilation): Do it here instead. Move call
7262 to remove_unnecessary_notes after emitting abstract instance.
7263 Force an emitted nested function to have its parent emited as well.
7264 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
7266 (rtl_for_decl_location): Do not look at reload data structures
7267 before reload has run.
7269 2002-01-05 Kazu Hirata <kazu@hxi.com>
7271 * cse.c: Fix formatting.
7272 * dwarf2asm.c: Likewise.
7273 * dwarf2out.c: Likewise.
7274 * explow.c: Likewise.
7275 * expmed.c: Likewise.
7276 * function.c: Likewise.
7278 * gencheck.c: Likewise.
7279 * genrecog.c: Likewise.
7280 * ggc-common.c: Likewise.
7281 * ggc-page.c: Likewise.
7282 * global.c: Likewise.
7284 2002-01-05 Kazu Hirata <kazu@hxi.com>
7286 * combine.c: Fix formatting.
7288 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
7291 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
7293 2002-01-05 David Edelsohn <edelsohn@gnu.org>
7295 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
7296 as 1 for __powerpc64__ as well.
7298 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
7300 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
7303 2002-01-05 Daniel Berlin <dan@dberlin.org>
7305 * lcm.c: Revert change, due to performance regression it causes on
7306 SPEC because it's slightly more conservative (sigh, I hate
7309 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
7311 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
7313 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
7315 * doc/cppinternals.texi: Update.
7317 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
7319 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
7320 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
7322 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
7323 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
7324 kludge for pre-october-14th mmix versions to handle new-found bug
7325 with PUSHJ/PUSHGO and the register stack.
7326 * config/mmix/mmix.h (struct machine_function): Rename member
7327 has_call_value_without_parameters to has_call_without_parameters.
7328 All referers changed.
7329 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
7330 TARGET_MASK_BRANCH_PREDICT): New macros.
7331 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
7332 -mno-reg-stack-fill-bug-workaround.
7333 * config/mmix/mmix.md ("call"): Set struct machine member
7334 has_call_without_parameters.
7336 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
7338 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
7340 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
7342 * cfgcleanup.c: Include tm_p.h
7343 (mark_effect): Fix handling of hard register; fix handling of SET
7345 2002-01-04 Kazu Hirata <kazu@hxi.com>
7347 * config/h8300/h8300.md (anonymous patterns): Check that
7348 operands are registers before using REGNO on them.
7350 2002-01-03 Roland McGrath <roland@frob.com>
7352 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
7354 2002-01-04 Jakub Jelinek <jakub@redhat.com>
7356 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
7357 * c-common.h (genrtl_expr_stmt_value): Likewise.
7358 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
7359 (expand_expr_stmt_value): Add maybe_last argument.
7360 Don't warn about statement with no effect if it is the last statement
7361 in expression statement.
7362 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
7363 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
7364 expand_expr_stmt_value.
7365 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
7366 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
7367 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
7368 as maybe_last to expand_expr_stmt_value.
7370 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
7372 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
7373 be passed in, do not build it.
7374 (c_begin_if_stmt): New function.
7375 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
7376 * c-common.h (c_expand_start_cond): Update prototype.
7377 (c_begin_if_stmt): Prototype new function.
7378 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
7379 * c-parse.in (if_prefix): Use c_begin_if_stmt,
7380 c_begin_while_stmt and c_finish_while_stmt_cond.
7382 2002-01-04 William Cohen <wcohen@redhat.com>
7384 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
7385 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
7386 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
7387 * config/pa/som.h (ASM_FILE_START): Likewise.
7389 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
7391 * lcm.c: Include df.h.
7392 Add available_transfer_function prototype.
7393 (compute_available): Rework to use iterative dataflow framework.
7394 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
7395 with bb_info in df.h
7396 (available_transfer_function): New function.
7398 * Makefile.in (lcm.o): add df.h to dependencies.
7400 2002-01-04 Richard Henderson <rth@redhat.com>
7402 * config/alpha/alpha.c (some_operand): Accept HIGH.
7403 (input_operand): Likewise; accept simple references to globals.
7404 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
7405 (alpha_const_double_ok_for_letter_p): Likewise.
7406 (alpha_extra_constraint): Likewise.
7407 (alpha_preferred_reload_class): Likewise. Do not force
7408 symbolic constants to memory.
7409 (alpha_legitimate_address_p): Accept simple references
7410 to small_symbolic_operand.
7411 (alpha_legitimize_address): New arg scratch. Be prepared to be
7412 called when no_new_pseudos. Emit simple symbolic references.
7413 Split integers into low, high, and rest.
7414 (alpha_expand_mov): Use alpha_legitimize_address.
7415 (some_small_symbolic_mem_operand): New.
7416 (split_small_symbolic_mem_operand): New.
7417 * config/alpha/alpha-protos.h: Update.
7418 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
7419 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
7420 (EXTRA_CONSTRAINT): Likewise.
7421 (PREFERRED_RELOAD_CLASS): Likewise.
7422 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
7423 (PREDICATE_CODES): Update.
7424 * config/alpha/alpha.md: New post-reload splitters to convert
7425 simplfied symbolic operands to the form that references $29.
7426 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
7427 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
7429 2002-01-03 Richard Henderson <rth@redhat.com>
7431 * local-alloc.c (function_invariant_p): Update commentary.
7433 2002-01-04 H.J. Lu <hjl@gnu.org>
7435 * toplev.c (rest_of_compilation): Fix a typo when calling
7438 2002-01-03 Kazu Hirata <kazu@hxi.com>
7440 * c-common.c: Fix formatting.
7441 * diagnostic.c: Likewise.
7442 * doloop.c: Likewise.
7443 * dwarf2out.c: Likewise.
7445 2002-01-03 Kazu Hirata <kazu@hxi.com>
7447 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
7448 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
7450 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
7452 * cpperror.c: Update comments and copyright.
7453 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
7454 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
7456 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
7458 * collect2.c (main): Use strcmp when testing for "-shared".
7460 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
7462 * cppmacro.c: Don't include intl.h. Update comments.
7463 (new_number_token): Allocate enough buffer for 64-bit unsigned
7464 integers; update prototype.
7465 * cppmain.c: Update comments.
7467 2002-01-03 William Cohen <wcohen@redhat.com>
7469 * function.h (struct function): Add profile.
7470 (current_function_profile): New.
7471 doc/extend.texi: Update documentation.
7472 * final.c (final_start_function): Use current_function_profile
7473 instead of profile_flag.
7474 (profile_after_prologue): Likewise.
7475 * function.c (expand_function_start): Likewise.
7476 (expand_function_start): Likewise.
7477 * config/alpha/alpha.c (direct_call_operand):
7478 (alpha_does_function_need_gp): Likewise.
7479 (alpha_expand_prologue): Likewise.
7480 * config/arm/arm.c (arm_expand_prologue): Likewise.
7481 thumb_expand_prologue: Likewise.
7482 * config/d30v/d30v.c (d30v_stack_info): Likewise.
7483 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
7484 (fr30_expand_prologue): Likewise.
7485 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
7486 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
7487 * config/i386/i386.h (FINALIZE_PIC): Likewise.
7488 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
7489 * config/i960/i960.c (i960_output_function_prologue): Likewise.
7490 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
7491 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
7492 (m32r_expand_prologue): Likewise.
7493 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
7494 (m88k_expand_prologue): Likewise.
7495 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
7496 * config/mips/mips.c (compute_frame_size): Likewise.
7497 (mips_expand_prologue): Likewise.
7498 (mips_can_use_return_insn): Likewise.
7499 * config/pa/elf.h (ASM_FILE_START): Likewise.
7500 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
7501 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
7502 * config/pa/som.h (ASM_FILE_START): Likewise.
7503 * config/romp/romp.c (romp_using_r14): Likewise.
7504 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
7505 (rs6000_stack_info): Likewise.
7506 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
7507 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
7508 * config/v850/v850.c (compute_register_save_size): Likewise.
7510 2002-01-03 Jakub Jelinek <jakub@redhat.com>
7512 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
7513 gen_lowpart_common fails, use gen_lowpart_SUBREG.
7515 2002-01-03 Turly O'Connor <turly@apple.com>
7517 * darwin.c (machopic_output_possible_stub_label): Don't generate
7518 stub routines for pseudo-stubs which we've just defined.
7520 2002-01-03 Kazu Hirata <kazu@hxi.com>
7522 * builtins.c: Fix formatting.
7523 * c-typeck.c: Likewise.
7524 * combine.c: Likewise.
7528 2002-01-03 Andreas Schwab <schwab@suse.de>
7530 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
7531 and return true if _cpp_push_next_buffer pushed a new include
7533 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
7534 _cpp_pop_file_buffer did not push a new file.
7535 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
7537 2002-01-02 Eric Christopher <echristo@redhat.com>
7539 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
7540 FIND_REG_INC_NOTE call. Update copyright.
7541 * loop.c (canonicalize_condition): Ditto.
7542 * reorg.c (delete_scheduled_jump): Ditto.
7544 2002-01-03 Kazu Hirata <kazu@hxi.com>
7546 * gcse.c: Fix formatting.
7548 2002-01-03 Graham Stott <grahams@redhat.com>
7550 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
7551 forward defs for struct tags rtx_def, union_tree, rtvec_def
7552 also output corresponding typedefs for rtx, tree, and rtvec.
7554 * system.h: Move forward defs for struct tags rtx_def, union_tree,
7555 rtvec_def along with corresponding typedefs for rtx, tree, and
7556 rtvec to config.h, hconfig.h, tconfig.h.
7558 2002-01-03 Graham Stott <grahams@redhat.com>
7560 * tree.h: Update copyright date.
7561 (IS_EXPR_CODE_CLASS): Add parenthesis.
7562 (TREE_SET_CODE): Add whitespace.
7563 (TREE_CHECK): Add parenthesis.
7564 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
7565 (CST_OR_CONSTRUCTOR_CHECK):
7566 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
7567 (TREE_SYMBOL_REFERENCED): Whitespace.
7568 (INT_CST_LT): Likewise.
7569 (INT_CST_LT_UNSIGNED): Likewise.
7570 (tree_real_cst): Unwrap comment.
7571 (tree_string): Likewise.
7572 (tree_complex): Likewise.
7573 (IDENTIFIER_POINTER): correct cast.
7574 (SAVE_EXPR_CONTEXT): Whitespace.
7575 (EXPR_WFL_FILENAME_NODE): Likewise.
7576 (EXPR_WFL_FILENAME): Remove parenthesis.
7577 (DECL_ORIGIN): Add parenthesis.
7578 (DECL_FROM_INLINE): Use NULL_TREE.
7579 (build_int_2): Whitespace.
7580 (build_type_variant): Add parenthesis.
7582 * gcc/jcf-parse.c: Update copyright date.
7583 (yyparse): Constify resource_filename.
7585 2002-01-03 Graham Stott <grahams@redhat.com>
7587 * rtl.h: Update copyright date.
7588 (RTL_CHECK1): Wrap long line.
7589 (RTL_CHECK2): Likewise.
7590 (RTL_CHECKC1): Wrap long line and whitespace.
7591 (RTL_CHECKC2): Likewise.
7592 (XWINT): Whitespace.
7598 (XBITMAP): Likewise.
7609 (X0BITMAP): Likewise.
7611 (X0BBDEF): Likewise.
7612 (X0ADVFLAGS): Likewise.
7613 (X0CSELIB): Likewise.
7614 (X0MEMATTR): Likewise.
7622 (XCBITMAP): Likewise.
7624 (XCBBDEF): Likewise.
7625 (XCADVFLAGS): Likewise.
7626 (XCCSELIB): Likewise.
7628 (INSN_UID): Likewise.
7629 (PREV_INSN): Likewise.
7630 (PATTERN): Likewise.
7631 (INSN_CODE): Likewise.
7632 (PUT_REG_NOTE_KIND): Likewise.
7633 (CODE_LABEL_NUMBER): Likewise.
7634 (NOTE_SOURCE_FILE): Likewise.
7635 (NOTE_BLOCK): Likewise.
7636 (NOTE_EH_HANDLER): Likewise.
7637 (NOTE_RANGE_INFO): Likewise.
7638 (NOTE_LIVE_INFO): Likewise.
7639 (NOTE_BASIC_BLOCK): Likewise.
7640 (NOTE_EXPECTED_VALUE): Likewise.
7641 (NOTE_LINE_NUMBER): Likewise.
7642 (LABEL_NAME): Likewise.
7643 (LABEL_NUSES): Likewise.
7644 (LABEL_ALTERNATE_NAME): Likewise.
7645 (ADDRESSOF_DECL): Likewise.
7646 (JUMP_LABEL): Likewise.
7647 (LABEL_NEXTREF): Likewise.
7649 (ORIGINAL_REGNO: Likewise.
7650 (HARD_REGISTER_NUM_P): Add parenthesis.
7651 (SUBREG_REG): Whitespace.
7652 (SUBREG_BYTE): Likewise.
7653 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
7654 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
7655 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
7656 (ASM_OPERANDS_INPUT_VEC): Likewise.
7657 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
7658 (ASM_OPERANDS_INPUT): Likewise.
7659 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
7660 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
7661 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
7662 (ASM_OPERANDS_INPUT_MODE): Likewise.
7663 (ASM_OPERANDS_SOURCE_FILE): Likewise.
7664 (ASM_OPERANDS_SOURCE_LINE): Likewise.
7665 (MEM_SET_IN_STRUCT_P): Minor reformat.
7666 (TRAP_CONDITION): Whitespace.
7667 (TRAP_CODE): Likewise.
7668 (COND_EXEC_TEST): Likewise.
7669 (COND_EXEC_CODE): Likewise.
7670 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
7671 (PHI_NODE_P): Add parenthesis.
7672 (plus_constant): Whitespace and add parenthesis.
7674 2002-01-03 Kazu Hirata <kazu@hxi.com>
7676 * config/avr/avr.c: Fix comment typos.
7677 * config/c4x/c4x.md: Likewise.
7678 * config/dsp16xx/dsp16xx.h: Likewise.
7679 * config/dsp16xx/dsp16xx.md: Likewise.
7680 * config/i386/i386.md: Likewise.
7681 * config/ia64/ia64.c: Likewise.
7682 * config/m32r/m32r.h: Likewise.
7683 * config/m68hc11/m68hc11.md: Likewise.
7684 * config/mmix/mmix.c: Likewise.
7685 * config/mn10200/mn10200.c: Likewise.
7686 * config/romp/romp.c: Likewise.
7687 * config/sh/sh.c: Likewise.
7688 * config/stormy16/stormy16.c: Likewise.
7689 * config/stormy16/stormy16.h: Likewise.
7690 * config/stormy16/stormy16.md: Likewise.
7692 2002-01-03 Graham Stott <grahams@redhat.com>
7694 * loop.h: Update copyright date.
7695 (LOOP_MOVABLES): Fix typo.
7696 (LOOP_REGS): Likewise.
7697 (LOOP_IVS): Likewise.
7699 2002-01-03 Graham Stott <grahams@redhat.com>
7701 * cppinit.c: Update copyright date.
7702 Don't include output.h
7703 * Makefile.in: Update copyright date.
7706 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
7709 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
7710 (-pthread) Add to RS/6000 options.
7712 2002-01-02 Kazu Hirata <kazu@hxi.com>
7714 * except.c: Fix comment typos.
7716 * varasm.c: Likewise.
7717 * doc/tm.texi: Fix a typo.
7719 2002-01-02 Jakub Jelinek <jakub@redhat.com>
7721 * c-typeck.c (output_init_element): Allow initializing static storage
7722 duration objects with compound literals.
7724 2002-01-02 Richard Henderson <rth@redhat.com>
7726 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
7729 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7731 * gcc.c (default_compilers): Const-ify.
7732 * mips-tdump.c (stab_names): Likewise.
7733 * mips-tfile.c (map_coff_types, map_coff_storage,
7734 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
7735 pseudo_ops_t, pseudo_ops): Likewise.
7736 * protoize.c (default_include): Likewise
7738 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
7739 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
7740 Add array size in declaration.
7741 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
7742 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
7743 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
7744 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
7745 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
7746 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
7747 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
7748 emtens, make_nan): Const-ify.
7749 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
7750 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
7752 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
7754 * config.gcc (ia64-*-*): Set extra_headers.
7755 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
7756 * config/alpha/t-osf: Remove.
7757 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
7759 2002-01-02 David Edelsohn <edelsohn@gnu.org>
7761 * config/rs6000/t-aix43: Revert previous change.
7763 2002-01-02 Jason Merrill <jason@redhat.com>
7765 * c-decl.c (c_expand_body): Call outlining_inline_function when
7766 emitting an inline function out of line.
7768 2002-01-02 Richard Henderson <rth@redhat.com>
7770 * dwarf2out.c (limbo_die_node): Add created_for member.
7771 (new_die): New argument created_for. Update all callers.
7772 (mark_limbo_die_list): New.
7773 (dwarf2out_init): Register limbo_die_list as a root.
7774 (dwarf2out_finish): Force insert limbo dies into their function
7777 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
7780 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
7782 2002-01-02 Kazu Hirata <kazu@hxi.com>
7784 * config/h8300/fixunssfsi.c: Update copyright.
7787 * config/h8300/h8300.c: Update copyright.
7790 2002-01-02 Kazu Hirata <kazu@hxi.com>
7792 * config/romp/romp.c: Fix comment formatting.
7793 * config/romp/romp.h: Likewise.
7794 * config/romp/romp.md: Likewise.
7795 * config/s390/s390.c: Likewise.
7796 * config/stormy16/stormy16.c: Likewise.
7797 * config/stormy16/stormy16.h: Likewise.
7799 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
7801 * c-common.h (genrtl_expr_stmt_value): Declare.
7802 * c-semantics.c (genrtl_goto_stmt): Redirect to...
7803 (genrtl_goto_stmt_value): ... this new function. Pass new
7804 argument down to expand_expr_stmt_value, taking
7805 TREE_ADDRESSABLE into account.
7806 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
7807 STMT_EXPR as addressable, i.e., one whose result we want.
7808 * expr.c (expand_expr): Don't save expression statement value
7809 of labeled_blocks or loop_exprs.
7810 * stmt.c (expand_expr_stmt): Redirect to...
7811 (expand_expr_stmt_value): ... this new function. Use new
7812 argument to tell whether to save expression value.
7813 (expand_end_stmt_expr): Reset last_expr_type and
7814 last_expr_value if we don't have either.
7815 * tree-inline.c (declare_return_variable): Mark its use
7816 statement as addressable.
7817 * tree.h: Document new use of TREE_ADDRESSABLE.
7818 (expand_expr_stmt_value): Declare.
7820 2002-01-01 Tom Rix <trix@redhat.com>
7822 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
7823 rs6000_emit_allocate_stack.
7825 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
7827 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
7828 ${srcdir}/ginclude/ to every entry in extra_headers.
7829 * configure: Regenerate.
7830 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
7831 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
7832 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
7833 * ginclude/proto.h: Rename to config/convex/proto.h.
7835 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7837 * attribs.c (handle_vector_size_attribute): Use host_integerp
7838 and tree_int_cst; remove warnings.
7839 * caller-save.c (insert_restore): Add cast to get rid of warning.
7840 (insert_save): Likewise.
7841 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
7842 * regmove.c (find_matches): Add temporary var to kill a warning.
7844 2002-01-01 Douglas B Rupp <rupp@gnat.com>
7846 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
7847 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
7848 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
7849 (vms-dwarf2eh.o): Add Makefile rule.
7850 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
7851 * config/alpha/vms-dwarf2eh.asm: New file.
7853 * gcc.c (delete_if_ordinary): Delete all versions.
7855 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
7857 * config/mmix/mmix.md: Update FIXME to not mention
7859 (MMIX_rJ_REGNUM): New define_constants constant.
7860 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
7861 "*movdicc_real"): Adjust contraints formatting.
7862 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
7863 for branch prediction.
7864 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
7866 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
7867 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
7868 number. Delete related FIXMEs.
7869 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
7870 from number to MMIX_rJ_REGNUM.
7871 (TARGET_MASK_BRANCH_PREDICT): New.
7872 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
7873 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
7874 value. Add -mbranch-predict and -mno-branch-predict.
7875 (TARGET_VERSION): Drop date.
7876 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
7877 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
7878 for finding out global symbols.
7879 (mmix_asm_output_labelref): Revert condition for global symbol.
7880 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
7881 (mmix_print_operand_punct_valid_p): A '+' is valid.
7883 See ChangeLog.6 for earlier changes.