1 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
3 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
4 flag_really_no_inline instead of optimize == 0.
6 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
8 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
10 * flags.h (flag_really_no_inline): New.
12 * c-common.c (c_common_post_options): Initialzie
13 flag_really_no_inline.
15 * toplev.c (flag_really_no_inline): New.
17 2002-03-21 Jakub Jelinek <jakub@redhat.com>
19 * config/avr/avr.md (length): Fix length computation for
22 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
24 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
25 sdbout.o, profile.o): Update.
26 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
28 * c-common.h (gettags): Move here from tree.h.
29 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
30 insert_block, getdecls, kept_level_p, global_bindings_p): New.
31 * dbxout.c (dbxout_init): Use getdecls langhook.
32 * expr.c (expand_expr): Use insert_block langhook.
33 * fold-const.c: Include langhooks.h.
34 (fold_range_test, fold_binary_op_with_conditional_arg,
35 fold): Use global_bindings_p langhook.
36 * integrate.c (expand_inline_function): Use insert_block langhook.
37 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
38 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
39 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
40 LANG_HOOKS_GETDECLS): New.
41 (LANG_HOOKS_INITIALIZER): Update.
42 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
44 * langhooks.h (struct lang_hooks_for_decls): New.
45 (struct lang_hooks): Update.
46 * profile.c: Include langhooks.h.
47 (output_func_start_profiler): Use new langhooks.
48 * sdbout.c: Include langhooks.h.
49 (sdbout_init, sdbout_finish): Use getdecls langhook.
50 * stmt.c: Include langhooks.h.
51 (expand_fixup, fixup_gotos): Use new langhooks.
52 * stor-layout.c: Include langhooks.h.
53 (variable_size): Use global_bindings_p langhook.
54 * toplev.c (compile_file): Use getdecls langhook.
55 * tree-inline.c (remap_block): Use insert_block langhook.
56 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
57 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
59 2002-03-21 Richard Henderson <rth@redhat.com>
61 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
62 constants in .data when -fpic.
64 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
66 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
69 2002-03-21 Tom Tromey <tromey@redhat.com>
71 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
73 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
75 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
77 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
79 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
80 Richard Henderson <rth@redhat.com>
83 * c-common.c (c_expand_expr): Preserve result of a statement
86 2002-03-21 Jakub Jelinek <jakub@redhat.com>
89 * genrecog.c (maybe_both_true_mode): Remove.
90 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
91 * machmode.def (Pmode): Likewise.
93 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
95 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
96 (nonlocal_mentioned_p_1): New function.
97 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
98 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
99 (mark_constant_function): Recognize pure functions.
100 * rtl.h (global_reg_mentioned_p): New prototype.
101 * rtlanal.c (global_reg_mentioned_p,
102 global_reg_mentioned_p_1): New function.
104 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
106 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
108 * fixinc/fixincl.x: Regenerate.
110 2002-03-20 Jason Merrill <jason@redhat.com>
112 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
114 2002-03-20 Michael Meissner <meissner@redhat.com>
116 * doc/invoke.texi (Optimize Options): Document that -O2 sets
119 2002-03-20 Bob Wilson <bob.wilson@acm.org>
121 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
122 ".literal_position" directive before the constant pool.
124 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
126 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
128 Add Brad Lucier to testers.
130 2002-03-20 Jakub Jelinek <jakub@redhat.com>
133 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
135 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
136 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
137 instead of insn_extract.
139 2002-03-20 Jakub Jelinek <jakub@redhat.com>
142 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
144 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
145 stmt if some case has been output.
147 2002-03-20 Jakub Jelinek <jakub@redhat.com>
150 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
151 movsfcc_1, movdfcc_1): Add %O2.
152 * config/i386/i386.c (print_operand): Handle %ON.
153 Print . before float condition codes in Sun as cmov syntax.
154 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
155 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
158 2002-03-20 Philip Blundell <pb@nexus.co.uk>
160 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
161 return instruction if PC was popped.
163 2002-03-20 Bob Wilson <bob.wilson@acm.org>
165 * config/xtensa/xtensa.md: Remove unused type attributes.
166 (adddi_carry, subddi_carry): Change type attribute to "multi".
168 2002-03-19 Dale Johannesen <dalej@apple.com>
170 PR optimization/5999, middle-end/5731
171 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
172 multiplications by reciprocals.
174 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
176 * Makefile.in: Update.
177 * c-common.c: Include langhooks.h.
178 (inline_forbidden_p): Use new hook.
179 * diagnostic.c: Include langhooks.h.
180 (format_with_decl, announce_function,
181 default_print_error_function): Use new hook.
182 * dwarf2out.c (dwarf2_name): Use new hook.
183 * function.c: Include langhooks.h.
184 (init_function_start): Use new hook.
185 * langhooks-def.h (lhd_decl_printable_name): New.
186 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
187 (LANGHOOKS_INITIALIZER): Update.
188 * langhooks.c (lhd_decl_printable_name): New.
189 * langhooks.h (struct lang_hooks): New hook.
190 * toplev.c (decl_name, decl_printable_name): Remove.
191 (open_dump_file): Use new hook.
192 (process_options): Remove old hook.
193 * tree.h (decl_printable_name): Remove.
195 * objc-act.c (objc_init): Remove old hook.
196 (objc_printable_name): Export.
197 * objc-act.h (objc_printable_name): New.
198 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
200 2002-03-19 Jim Blandy <jimb@redhat.com>
202 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
203 the start_source_file debug hook, not the current line number.
205 2002-03-19 Richard Henderson <rth@redhat.com>
207 * flow.c (EH_USES): Provide default.
208 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
209 * doc/tm.texi (EH_USES): New.
211 * config/ia64/ia64.c (ia64_eh_uses): New.
212 * config/ia64/ia64-protos.h: Update.
213 * config/ia64/ia64.h (EH_USES): New.
215 2002-03-19 Richard Henderson <rth@redhat.com>
217 * varasm.c (output_constant_def): Fix stupid typo.
219 2002-03-19 Richard Henderson <rth@redhat.com>
222 * except.c (current_function_has_exception_handlers): New.
223 * except.h: Declare it.
224 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
225 Combine tests that disable all sibcalls for the function.
227 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
229 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
232 2002-03-19 Richard Henderson <rth@redhat.com>
235 * config/ia64/ia64.c: Revert 2002-03-01 patch.
236 * config/ia64/ia64.h (INIT_EXPANDERS): New.
238 2002-03-19 Jim Blandy <jimb@redhat.com>
240 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
241 name, even if the replacement list contains no tokens, as required
244 2002-03-19 Jason Merrill <jason@redhat.com>
246 * varasm.c (globalize_decl): Get the name from the RTL, not
249 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
251 2002-03-19 Bob Wilson <bob.wilson@acm.org>
253 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
254 subdi_carry): Define.
256 2002-03-19 David Edelsohn <edelsohn@gnu.org>
258 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
259 about -fpic/-fPIC if extra_warnings set.
261 2002-03-19 David Edelsohn <edelsohn@gnu.org>
263 * expr.c (expand_expr): Sign-extend CONST_INT generated from
265 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
267 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
269 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
270 in favor of SP if FRAME_POINTER_REQUIRED is false.
272 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
274 * emit-rtl.c (gen_int_mode): New function.
275 * rtl.h: Prototype for it.
276 * combine.c (make_extraction, simplify_comparison), expmed.c
277 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
278 (convert_modes, store_field), optabs.c (expand_fix),
279 simplify-rtx.c (neg_const_int, simplify_unary_real),
281 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
282 Use it instead of GEN_INT (trunc_int_for_mode (...)).
284 2002-03-19 Jakub Jelinek <jakub@redhat.com>
287 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
288 convert_parm_for_inlining.
289 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
291 * langhooks-def.h: Likewise.
292 * objc/objc-lang.c: Likewise.
293 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
295 * tree-inline.c (initialize_inlined_parameters):
296 Call convert_parm_for_inlining lang hook if needed.
297 * c-typeck.c (c_convert_parm_for_inlining): New function.
298 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
300 2002-03-18 Mark Mitchell <mark@codesourcery.com>
302 * calls.c (precompute_arguments): Do not assume that temporaries
303 can be destroyed after expanding the argument.
304 (expand_call): Likewise.
306 2002-03-15 Eric Christopher <echristo@redhat.com>
308 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
309 Fix register preference on last change.
310 * config/mips/mips.c (mips_return_in_memory): New function.
311 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
312 * config/mips/mips-protos.h: Declare.
313 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
314 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
316 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
318 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
320 (anddi3, iorsi3): Likewise.
322 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
323 use %gprel for symbols that are going to be placed in linkonce
326 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
327 RETURN_ADDRESS_POINTER_REGNUM to $ra.
328 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
329 not needed. Disregard leaf_function_p().
330 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
331 mips16 frame pointer.
332 * config/mips/mips.md (store ra): Only to small SP offsets.
333 2001-08-22 Graham Stott <grahams@redhat.com>
334 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
335 return a REG rtx for the return address register.
337 2002-03-18 Bob Wilson <bob.wilson@acm.org>
339 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
340 constant-pool addresses as "mode-dependent".
341 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
343 2002-03-18 Jakub Jelinek <jakub@redhat.com>
346 * expr.c (emit_group_load): Use extract_bit_field if
347 needed for CONCAT arguments.
349 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
352 * arm.md (tablejump): Make this a define_expand. For PIC add the
353 offset to the base of the table.
354 (thumb_tablejump): Matcher for Thumb tablejump insn.
355 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
356 as the difference of two labels.
357 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
358 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
360 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
361 * arm.c (get_jump_table_size): If the table is not in the text
362 section, return zero.
364 2002-03-18 Bernd Schmidt <bernds@redhat.com>
366 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
368 (arm_reload_out_hi): Use gen_lowpart instead of
369 gen_rtx_SUBREG to access QImode components.
370 * config/arm/arm.md: Disable zero_extend split for QImode
371 subregs in BIG_ENDIAN mode.
372 (storehi_bigend): Match use of least significant byte.
373 (storeinthi): Remove extraneous SUBREG.
374 Add missing construction of operands[2].
375 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
376 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
377 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
380 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
382 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
385 2002-03-17 Richard Henderson <rth@redhat.com>
387 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
390 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
392 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
393 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
395 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
397 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
399 * predict.c (estimate_bb_frequencies): Delete unused variables.
401 2002-03-17 Richard Henderson <rth@redhat.com>
403 * config/ia64/ia64.c (ia64_attribute_table): Move before
404 targetm definition. Make static.
406 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
408 * c-common.h (yyparse, c_common_parse_file): New.
409 * c-lang.c: Include c-common.h.
410 (LANG_HOOKS_PARSE_FILE): Redefine.
411 * c-lex.c: Include c-common.h.
412 (yyparse): Rename c_common_parse_file. Call yyparse.
413 * c-parse.in (yyparse): Remove macro.
414 * c-tree.h (yyparse_1): Remove.
415 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
416 (LANG_HOOKS_INITIALIZER): Update.
417 * langhooks.h (struct lang_hoooks): New hook parse_file.
418 * toplev.c (compile_file): Use parse_file hook.
419 * tree.h (yyparse): Remove.
420 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
422 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
424 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
425 float_truncate, not fix.
426 ("*truncdfsf2_real"): Ditto.
427 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
429 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
431 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
433 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
434 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
435 where appropriate. Make the second reference to
436 leaf_function_p a function call, as intended. Reindented.
438 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
439 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
441 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
442 add register to non-constant into sp.
444 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
445 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
446 (mips16_gp_pseudo_rtx): Lose.
447 (INIT_EXPANDERS): Deleted.
448 * config/mips/mips.c (mips_init_machine_status): New.
449 (mips_free_machine_status): New.
450 (mips_mark_machine_status): New.
451 (override_options): Set them.
452 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
453 (struct machine_function): ... new. Replaced all references.
454 (mips_add_gc_roots): Don't mark them.
455 (embedded_pic_fnaddr_reg): New, extracted from...
456 (embedded_pic_offset): ... here.
457 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
460 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
462 * cppinit.c: Revert -MD removal.
464 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
466 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
467 soft registers by default for 68HC12.
468 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
469 when compiling with -fomit-frame-pointer.
470 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
471 (expand_epilogue): Likewise.
472 (m68hc11_gen_rotate): Use exg when rotating by 8.
474 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
476 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
477 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
478 (splits): Remove unused add splits.
479 ("*addhi3_68hc12"): Tune constraints.
480 ("addhi_sp"): Try to use X instead of Y in all cases and if the
481 constant fits in 8-bits and D is dead use abx/aby instructions.
482 ("*addhi3"): Remove extern declaration of ix_reg.
483 ("*subsi3"): Optimize and provide new split.
485 ("*subhi3_sp"): Avoid saving X if we know it is dead.
486 (arith splits): For 68hc12 save the address register on the stack
487 and do the arithmetic operation with a pop.
489 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
491 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
492 allocating QImode in address registers.
493 ("*movqi_m68hc11"): Likewise.
495 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
497 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
499 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
501 * cppinit.c (print_help): Display -MD and -MMD.
502 Don't display usage string. Update assertion syntax and
504 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
505 (cpp_handle_option): Update.
507 2002-03-15 Chris Demetriou <cgd@broadcom.com>
509 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
510 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
511 and define it so that regardless of target CPU size,
512 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
513 of "int" rather than "long."
515 2002-03-15 Richard Henderson <rth@redhat.com>
517 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
520 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
522 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
523 ("tstqi" split): Avoid using memory for tstqi on address register.
524 (splits): Remove constraints.
525 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
526 ("cmpdf", "cmpsf"): Remove since not used.
527 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
528 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
530 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
532 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
533 ("neghi2"): Tighten constraints.
534 ("one_cmplsi2"): Optimize and simplify split.
535 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
537 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
539 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
540 and split of AND operation to clear the upper bits.
541 ("*logicalsi3_zextqi"): Likewise.
542 ("*logicallhi3_zexthi_ashift8"): Likewise.
543 ("*logicalsi3_silshr16"): Likewise.
544 ("logicalsi3_silshl16"): Likewise.
545 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
547 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
549 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
550 (m68hc11_indirect_p): New function.
551 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
552 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
554 (asm_print_register): Likewise.
555 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
556 (m68hc11_indirect_p): Declare.
557 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
558 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
559 (TARGET_SWITCHES): New option -mrelax.
560 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
562 ("iorsi3", "xorsi3"): Likewise.
563 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
564 ("*andhi3_mem"): New to handle destination in memory with bclr
565 and a scratch register.
566 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
567 ("*andhi3_const"): New when operand2 is constant.
568 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
569 ("*andhi3_gen"): Cleanup of the old "andhi3".
570 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
571 ("xorqi3"): Update constraints.
573 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
575 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
576 for reg_equiv_memory_loc when the operand is a register that does
577 not get a hard register (stack location).
578 (tst_operand): After reload, accept all memory operand.
579 (symbolic_memory_operand): Fix detection of symbolic references.
580 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
581 accept symbols and any constant.
583 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
585 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
586 note on the insn that sets the soft frame register.
587 (must_parenthesize): ix and iy are also reserved names.
588 (print_operand_address): One more place where parenthesis are required
589 to avoid confusion with register names.
590 (m68hc11_gen_movhi): Allow push of stack pointer.
591 (m68hc11_check_z_replacement): Fix handling of parallel with a
593 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
594 the replacement register is.
595 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
597 (MODES_TIEABLE_P): All modes are tieable except QImode.
599 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
601 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
602 (___subdi3): Likewise.
603 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
604 (__map_data_section): Optimize 68hc11 case.
606 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
608 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
609 than a shift to avoid adding a register with itself.
610 (m68hc11_memory_move_cost): Take into account NO_REGS.
611 (m68hc11_register_move_cost): Update and use memory move cost
613 (m68hc11_address_cost): Make cost of valid offset not 0 so that
614 it gives more opportunities to cse to optimize.
615 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
616 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
618 2002-03-15 Mark Mitchell <mark@codesourcery.com>
620 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
621 * c-common.def (CLEANUP_STMT): New tree node.
622 * c-common.h (CLEANUP_DECL): New macro.
623 (CLEANUP_EXPR): Likewise.
624 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
625 * expr.c (expand_expr): Tidy.
626 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
627 * tree-inline.c (initialize_inlined_parameters): Clean up
630 2002-03-15 Jakub Jelinek <jakub@redhat.com>
633 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
634 before movrXX only, use reg_overlap_mentioned_p.
635 Only special case NE if just one insn can be generated.
637 2002-03-15 Jason Merrill <jason@redhat.com>
639 * varasm.c (assemble_variable): Call resolve_unique_section before
640 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
643 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
646 * arm.md (split pattern for thumb shiftable immediates): Add comment
647 explaining non-obvious test.
649 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
652 * arm.md (movaddr, movaddr_insn): Delete.
654 2002-03-15 Jason Merrill <jason@redhat.com>
656 * toplev.c (wrapup_global_declarations): Clarify variable handling.
657 -fkeep-static-consts doesn't apply to comdats.
659 2002-03-14 Richard Henderson <rth@redhat.com>
661 * c-decl.c: Include c-pragma.h.
662 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
663 (finish_function): Tidy.
664 * c-pragma.c: Include c-common.h.
665 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
666 (handle_pragma_weak): Use them.
667 (init_pragma): Register pending_weaks.
668 * c-pragma.h (maybe_apply_pragma_weak): Declare.
669 * print-tree.c (print_node): Print DECL_WEAK.
670 * varasm.c (mark_weak_decls): Remove.
671 (remove_from_pending_weak_list): Remove.
673 (asm_emit_uninitialised): Call globalize_decl for weak commons.
674 (weak_decls): Make a tree_list.
675 (declare_weak): Cons weak_decls directly.
676 (globalize_decl): Remove weak_decls elements directly.
677 (weak_finish): Simplify weak_decls walk. Don't weaken unused
678 symbols. Don't pretend to handle aliases.
679 (init_varasm_once): Update weak_decls registry.
680 * Makefile.in: Update dependencies.
682 2002-03-14 Richard Henderson <rth@redhat.com>
685 * config/ia64/ia64.c: Include tm_p.h last.
686 (gen_nop_type): Remove duplicate definition.
687 (cycle_end_fill_slots): Set sched_data for second L slot.
688 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
689 (nop_cycles_until): Fix typos.
691 2002-03-15 Jakub Jelinek <jakub@redhat.com>
694 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
696 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
698 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
699 descriptors correctly.
701 2002-03-14 Michael Meissner <meissner@redhat.com>
703 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
704 100, allowing MAX_UNROLLED_INSNS to be overridden.
706 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
709 * unroll.c (params.h): Include.
710 (MAX_UNROLLED_INSNS): Delete, now in params.h.
712 * doc/invoke.texi (--param max-unroll-insns): Document.
714 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
716 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
718 * arm.md: Fix warnings about constraints in peepholes and splits.
720 2002-03-14 Zack Weinberg <zack@codesourcery.com>
722 * cpphash.h (struct lexer_state): Remove line_extension member.
723 * cpplib.c (dequote_string, do_linemarker): New functions.
724 (linemarker_dir): New data object.
725 (DIRECTIVE_TABLE): No longer need to interpret #line in
726 preprocessed source. Delete obsolete comment about return
728 (end_directive, directive_diagnostics, _cpp_handle_directive):
729 Don't muck with line_extension.
730 (directive_diagnostics): No need to issue warnings for
732 (_cpp_handle_directive): Issue warnings for linemarkers here,
733 when appropriate. Dispatch linemarkers to do_linemarker, not
735 (do_line): Code to handle linemarkers split out to do_linemarker.
736 Convert escape sequences in filename argument, both places.
738 * cppmacro.c (quote_string): Rename cpp_quote_string and
739 export. All callers changed.
740 * cpplib.h (cpp_quote_string): Prototype.
741 * cppmain.c (print_line): Call cpp_quote_string on to_file
744 * doc/cpp.texi: Document that escapes are now interpreted in
745 #line and in linemarkers, and that non-printing characters are
746 converted to octal escapes when linemarkers are generated.
748 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
750 * emit-rtl.c (try_split): Use delete_insns.
751 * recog.c (split_all_insns): Fix terminating condition.
753 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
754 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
757 * arm.c (arm_output_epilogue): Fix floating-point register save
758 adjustment when using a frame pointer.
760 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
762 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
763 * config/mips/mips.c (compute_frame_size): Retrofit them here.
764 (save_restore_insns, mips_expand_epilogue): And here.
765 (build_mips16_call_stub): And here.
766 (mips_function_value): Use the new macros to decide whether a single
767 or complex float can be returned in floating-point registers. Return
768 a parallel rtx in the complex case.
770 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
772 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
773 call after liveness analysis.
775 * recog.c (split_insn): Use delete_insn_and_edges.
777 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
778 instructions to have branch prediction notes.
779 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
781 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
783 * configure.in: Don't pass -Wno-long-long to a ADA compiler
784 that doesn't support it.
785 * configure: Regenerate.
787 2002-03-13 Jakub Jelinek <jakub@redhat.com>
790 * config/sparc/sparc.md (normal_branch, inverted_branch,
791 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
792 inverted_fp_branch): Adjust calls to output_cbranch.
793 Set length attribute.
794 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
795 output_v9branch. Set length attribute.
796 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
798 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
799 (output_cbranch): Likewise. Handle far branches.
800 (output_v9branch): Handle far branches.
801 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
803 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
804 noov_compare64_op predicates.
806 2002-03-13 Jason Merrill <jason@redhat.com>
808 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
809 into the function and constify it.
810 * gthr-dce.h, gthr-solaris.h: Likewise.
812 2002-03-13 David Edelsohn <edelsohn@gnu.org>
814 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
815 * config/rs6000/rs6000.c (rs6000_va_arg): Use
816 std_expand_builtin_va_arg if not ABI_V4.
818 2002-03-13 Jason Merrill <jason@redhat.com>
820 * varasm.c (globalize_decl): New fn.
821 (assemble_start_function): Use it.
822 (asm_emit_uninitialized): Use it.
823 (assemble_alias): Use it.
824 (assemble_variable): Use it.
826 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
828 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
829 2002-03-12 internal visibility change.
830 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
831 visibility into SYMBOL_REF_FLAG.
833 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
835 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
836 VOIDmode operand. Add compile-time optimization for constant results.
838 2002-03-12 Jason Merrill <jason@redhat.com>
840 * c-typeck.c (convert_for_assignment): Don't allow conversions
841 between pointers and references. Only allow lvalues to convert to
844 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
846 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
847 before prologue, to avoid scheduling problems.
849 2002-03-13 Jakub Jelinek <jakub@redhat.com>
851 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
852 (ELIMINABLE_REGS): Add sfp->sp.
853 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
855 2002-03-13 Jakub Jelinek <jakub@redhat.com>
858 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
860 2002-03-13 Jakub Jelinek <jakub@redhat.com>
862 * loop.c (basic_induction_var): Don't call convert_modes if mode
863 classes are different.
865 2002-03-12 Richard Henderson <rth@redhat.com>
868 * function.c (reposition_prologue_and_epilogue_notes): Position
869 the markers after/before the last/first insn not deleted.
871 2002-03-12 Richard Henderson <rth@redhat.com>
874 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
875 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
876 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
878 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
879 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
880 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
882 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
883 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
884 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
885 also. Don't set it if not flag_pic.
886 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
887 to be INVALID_REGNUM when not used.
889 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
891 * expmed.c (store_bit_field): Reset alias set for memory.
892 (extract_bit_field): Same.
894 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
896 * c-common.c (c_tree_code_type, c_tree_code_length,
897 c_tree_code_name, add_c_tree_codes): Delete.
898 * c-common.h (add_c_tree_codes): Delete.
899 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
901 * c-objc-common.c (c_objc_common_init): Don't call
902 add_c_tree_codes, instead set lang_unsafe_for_reeval.
903 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
904 objc_tree_code_name, add_objc_tree_codes): Delete.
905 (objc_init): Don't call add_objc_tree_codes.
906 * objc/objc-lang.c (tree_code_type, tree_code_length,
907 tree_code_name): Define.
908 * toplev.c (lang_independent_init): Don't set
909 tree_code_length[IDENTIFIER_NODE].
910 * tree.c (tree_code_type, tree_code_length, tree_code_name):
911 Delete definitions, moved to language front-ends.
912 * tree.def (IDENTIFIER_NODE): Hardwire the length.
913 * tree.h (tree_code_type, tree_code_length, tree_code_name):
915 (tree_code_length): Change type to unsigned char.
917 2002-03-12 Richard Henderson <rth@redhat.com>
919 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
920 internal visibility change.
922 2002-03-12 Bob Wilson <bob.wilson@acm.org>
924 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
925 validize_mem() instead of change_address to avoid clobbering
928 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
930 * c-lex.h (position_after_whitespace): Remove.
932 2002-03-12 Jakub Jelinek <jakub@redhat.com>
934 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
935 (lex_string): Use unsigned char pointers.
937 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
939 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
940 is not a valid memory_operand.
942 2002-03-12 Bob Wilson <bob.wilson@acm.org>
944 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
945 * config/xtensa/lib1funcs.asm: Fix copyright to include
946 special case for libgcc files.
947 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
948 (__divsi3): Likewise.
949 (__umodsi3): Likewise.
950 (__modsi3): Likewise.
951 * config/xtensa/lib2funcs.S: Fix copyright to include
952 special case for libgcc files.
954 2002-03-12 Tom Rix <trix@redhat.com>
956 * collect2.c (resolve_lib_name): Move outside of
957 OBJECT_FORMAT_COFF ifdef.
958 (ignore_library): Same.
960 2002-03-12 Bob Wilson <bob.wilson@acm.org>
962 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
964 2002-03-12 Bob Wilson <bob.wilson@acm.org>
966 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
967 to function_section before writing out the constant pool.
969 2002-03-12 David Edelsohn <edelsohn@gnu.org>
971 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
973 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
975 2002-03-12 Alan Modra <amodra@bigpond.net.au>
977 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
981 (cmpsi splitter): Likewise.
982 (modsi3): Fail if <= 0.
983 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
984 redundant test when HOST_BITS_PER_WIDE_INT != 32.
985 (reg_or_sub_cint64_operand): Likewise.
986 (num_insns_constant_wide): Optimize sign extension.
987 (rs6000_legitimize_address): Likewise.
989 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
991 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
992 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
994 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
996 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
999 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
1001 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
1002 scratch register to DImode / TImode.
1003 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
1004 register used does not overlap the target.
1006 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1008 * Makefile.in (debug.o): Depend on debug.h.
1009 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
1010 * debug.c (do_nothing_debug_hooks): Likewise.
1011 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
1012 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
1013 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
1014 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
1015 * dwarfout.c (dwarf_debug_hooks): Likewise.
1016 * integrate.c (output_inline_function): Likewise.
1017 * objc/objc-act.c (synth_module_prologue): Likewise.
1018 * sdbout.c (sdb_debug_hooks): Likewise.
1019 * toplev.c (debug_hooks): Likewise.
1020 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1022 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1024 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
1025 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
1026 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
1027 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
1028 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
1029 * defaults.h (POINTER_SIZE): Define.
1030 * doc/tm.texi (POINTER_SIZE): Document default.
1032 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1034 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
1036 2002-03-11 Richard Henderson <rth@redhat.com>
1038 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
1039 if rebuild_label_notes_after_reload.
1041 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
1043 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
1044 emit pic register load if "internal" visibility.
1045 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
1046 (cris_expand_builtin_va_arg): Do all computations on trees.
1048 2002-03-11 Richard Henderson <rth@redhat.com>
1050 * rtlanal.c: Include recog.h.
1051 (keep_with_call_p): Fix thinko.
1052 * Makefile.in (rtlanal.o): Update dependencies.
1054 2002-03-11 Chris Meyer <cmeyer@gatan.com>
1056 * genflags.c (gen_insn): Use IS_VSPACE.
1057 * genoutput.c (output_insn_data): Likewise.
1058 (process_template): Likewise.
1060 2002-03-11 Richard Henderson <rth@redhat.com>
1062 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
1064 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
1066 * Makefile.in: Update.
1067 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
1068 Update documentation.
1069 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
1070 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
1072 2002-03-11 Zack Weinberg <zack@codesourcery.com>
1074 * Makefile.in: Give texi2pod its input file as a command line
1075 argument, not on stdin.
1077 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
1078 Daniel Berlin <dan@dberlin.org>
1080 C++ alias analysis improvement.
1081 * alias.c (record_component_aliases): Record aliases for base
1084 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
1086 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
1088 2002-03-11 Douglas B Rupp <rupp@gnat.com>
1090 * toplev.c (vms_fopen): Remove, not needed.
1092 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
1094 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
1096 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
1097 for FP, already done later.
1099 * toplev.c (debug_args): Add entry for VMS_DEBUG.
1100 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
1102 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
1104 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
1105 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
1106 LARGEST_EXPONENT_IS_NORMAL for the given mode.
1107 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
1108 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
1109 (ediv, emul, eldexp, esqrt): Likewise.
1110 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
1111 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
1112 (saturate): New function.
1113 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
1114 (make_nan): Use a saturation value instead of a NaN if
1115 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
1116 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
1117 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
1118 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
1119 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
1120 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
1121 !ROUND_TOWARDS_ZERO.
1122 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
1123 (ROUND_TOWARDS_ZERO): Document.
1125 2002-03-11 Andreas Jaeger <aj@suse.de>
1127 * cfg.c (dump_flow_info): Remove unused variable.
1129 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
1131 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
1132 computations on trees.
1134 2002-03-10 Richard Henderson <rth@redhat.com>
1137 * reload.c (copy_replacements_1): New.
1138 (copy_replacements): Use it to recurse through the rtx.
1140 2002-03-10 Richard Henderson <rth@redhat.com>
1142 * loop.c (strength_reduce): Compute number of iterations as
1143 unsigned HOST_WIDE_INT.
1145 2002-03-10 Richard Henderson <rth@redhat.com>
1147 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
1148 to move away from the end of the block.
1150 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
1152 PR preprocessor/5899
1153 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
1155 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1157 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
1159 * attribs.c (decl_attributes): Fix signed/unsigned warning.
1161 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
1163 * config/mmix/mmix.c: Improve comments.
1164 (mmix_target_asm_function_prologue): Drop variable
1165 empty_stack_frame. Don't allocate unused slot above fp.
1166 (mmix_target_asm_function_epilogue): Mirror prologue changes.
1167 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
1168 brace in first column.
1169 (enum reg_class): Ditto.
1170 (FIRST_PARM_OFFSET): Now 0.
1171 (USER_LABEL_PREFIX): Remove #if 0:d definition.
1173 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1175 * combine.c (make_extraction): Fix error in last change.
1177 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1179 * c4x.c (c4x_fp_reglist): Const-ify.
1180 * cris.c (cris_print_operand): Likewise.
1181 * i386.c (ix86_va_arg): Likewise.
1182 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
1183 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
1184 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
1185 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
1186 * mcore.h (regno_reg_class): Likewise.
1187 * mips.c (gen_int_relational): Likewise.
1188 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
1189 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
1190 * pdp11.c (move_costs): Likewise.
1191 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
1192 * s390.c (s390_branch_condition_mnemonic, regclass_map):
1194 * s390.h (regclass_map): Likewise.
1195 * sh.c (shift_amounts): Likewise.
1196 * sh.md (rotlsi3): Likewise.
1198 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
1200 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
1201 (ne0+5): Use new clobber to generate proper shift pattern.
1202 Patch by Michael Matz <matz@kde.org>.
1204 2002-03-09 Andreas Schwab <schwab@suse.de>
1206 * gcc.c (validate_all_switches): Also handle `%W{...}'.
1208 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
1210 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
1212 2002-03-09 Jakub Jelinek <jakub@redhat.com>
1215 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
1216 even for non-representable constants.
1218 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1220 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
1221 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
1222 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
1223 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
1224 (pop_function_context): Compute MAY_SHARE parameter for
1226 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
1227 (gen_mem_addressof): Call fixup_var_refs with new parm.
1229 * combine.c (make_extraction): Don't make extension of CONST_INT.
1231 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
1233 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
1234 in o32 and o64 ABIs.
1235 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
1236 but getting fixed-size structs passed in registers regardless of
1237 padding in o32 and o64 ABIs.
1239 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
1240 offset before loading address of argument passed by transparent
1243 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
1245 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
1247 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
1249 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
1250 marker such that registers after it are saved.
1252 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1254 * sparc.c (arith_4096_operand): Fix error in last change.
1256 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
1258 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
1261 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
1263 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
1266 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
1268 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
1270 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
1272 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
1273 removed; fix return value.
1274 * combine.c (combine_instructions): Dirtify blocks where we failed to
1275 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
1276 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
1278 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1280 * gcse.c (insert_insn_end_bb): Fix typo in last change.
1282 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
1284 * recog.c (peephole2_optimize): Re-distribute EH edges.
1286 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
1288 * expr.c (expand_expr): Use unsave lang hook.
1289 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
1290 (LANG_HOOKS_INITIALIZER): Update.
1291 * langhooks.h (struct lang_hooks): New hook unsave.
1292 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
1293 (unsave_expr_1): Remove unused lang_unsave_expr_now.
1294 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
1295 (unsave_expr_now): Remove.
1296 * tree.h (unsave_expr_now, lang_unsave,
1297 lang_unsave_expr_now): Remove.
1300 2002-03-08 Andreas Jaeger <aj@suse.de>
1302 * flow.c (propagate_block_delete_insn): Remove unused variable.
1304 2002-03-08 Kazu Hirata <kazu@hxi.com>
1306 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
1307 insn length for memory load/store.
1309 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
1311 * doc/install.texi (--with-libiconv-prefix): Document.
1313 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
1315 * doc/sourcebuild.texi: Fix typo.
1317 2002-03-08 Jakub Jelinek <jakub@redhat.com>
1320 * builtins.c (std_expand_builtin_va_arg): Do all computations on
1323 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1325 * rtl.c (copy_most_rtx): Move from here ...
1326 * emit-rtl.c (copy_most_rtx): ... to here.
1328 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
1330 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
1331 SUBTARGET_CPP_SIZE_SPEC.
1332 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
1334 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
1336 2002-03-07 Matt Hiller <hiller@redhat.com>
1338 * gensupport.c (first_dir_md_include): Renamed from include;
1339 change all references.
1340 (last_dir_md_include): Renamed from last_include; change all
1342 (init_md_reader): Unconditionally initialize base_dir whether or
1343 not filename is a relative path.
1345 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
1347 * config/fp-bit.c (_unord_f2): Compile it in even if
1348 US_SOFTWARE_GOFAST is enabled.
1350 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
1351 NULL_RTX. Set all HFmode operations as NULL_RTX.
1352 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
1353 NULL_RTX, try reversing the comparison and the operands.
1355 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
1357 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
1358 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
1361 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
1363 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
1365 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
1367 * basic-block.h (fixup_abnormal_edges): Declare.
1368 * reload1.c (fixup_abnormal_edges): New function.
1369 * reg-stack.c (convert_regs): Use it.
1371 * gcse.c (insert_insn_end_bb): Handle trapping insns.
1373 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
1375 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
1377 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
1378 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
1379 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
1380 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
1381 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
1382 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
1383 unless x and y could be infinite.
1384 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
1385 Check that the common type of both arguments is a real, even for
1386 targets without unordered comparisons. Allow an integer argument
1387 to be compared against a real.
1388 (expand_tree_builtin): Use expand_unordered_cmp.
1389 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
1390 * cse.c (fold_rtx): Likewise. Fix indentation.
1391 * fold-const.c (fold_real_zero_addition_p): New.
1392 (fold): Use it, and the new HONOR_... macros.
1393 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
1394 * jump.c (reversed_comparison_code_parts): After searching for
1395 the true comparison mode, use HONOR_NANS to decide whether it
1396 can be safely reversed.
1397 (reverse_condition_maybe_unordered): Remove IEEE check.
1398 * simplify-rtx.c (simplify_binary_operation): Use the new macros
1399 to decide which simplifications are valid. Allow the following
1400 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
1401 and (a - -b) to (a + b).
1402 (simplify_relational_operation): Use HONOR_NANS.
1403 * doc/tm.texi: Document the MODE_HAS_... macros.
1405 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
1407 * combine.c (simplify_comparison): If simplifying a logical shift
1408 right and compare with constant, force the comparison to unsigned.
1410 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
1412 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
1414 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
1416 (alt_reg_names): Remove % for vrsave.
1418 2002-03-06 Richard Henderson <rth@redhat.com>
1420 PR optimization/5844
1421 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
1422 if used indicates we've already emitted one copy of an operand.
1423 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
1424 (gen_split): Supply a non-null used.
1426 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
1428 * reload1.c (reload): Unshare all rtl after reload is done.
1430 * simplify-rtx.c (simplify_plus_minus): Do not abort,
1431 but simply fail if the expression is too complex to simplify.
1432 (simplify_gen_binary): Handle simplify_plus_minus failures.
1434 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
1436 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
1437 consistently call delete_trivially_dead_insns after CSE and GCSE;
1438 fix DFI_life dumping; do jump threading after liveness; do crossjumping
1439 after liveness2; update comment in last crossjumping.
1440 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
1442 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
1444 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
1445 after completing fast dead code elimination.
1447 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
1450 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
1452 * version.c: Fix misplaced leading blanks on first line.
1454 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
1456 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
1458 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
1460 * cfgcleanup.c (mentions_nonequal_regs): New function.
1461 (thread_jump): Use it.
1462 * toplev.c (rest_of_compilation): Run jump threading after
1465 2002-03-06 Jakub Jelinek <jakub@redhat.com>
1467 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
1470 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
1472 * predict.c (estimate_bb_frequencies): Do not reload the
1473 frequencies from notes.
1475 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
1477 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
1478 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
1480 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
1481 delete_noop_moves): Return indeger.
1482 * flow.c (ndead): New variable.
1483 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
1484 BB argument; update callers.
1485 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
1486 (life_analysis): Do not call purge_all_dead_edges.
1487 (update_life_info): Return number of deleted insns; print statistics.
1488 (update_life_info_in_dirty_blocks): likewise.
1489 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
1490 return number of insns deleted.
1492 * cse.c: Include timevar.h
1493 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
1494 iterate until stabilizes; print statistics; return number of killed
1496 * Makefile.in: (cse.o): Add timevar.h dependency
1497 * rtl.h (delete_trivially_dead_insns): New.
1498 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
1499 * toplev.c (rest_of_compilation): Update callers.
1501 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
1502 (try_optimize_cfg): Do not update liveness.
1503 (cleanup-cfg): Loop until try_optimize_cfg and dead code
1504 removal stabilizes; use delete_trivially_dead_insns.
1506 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
1508 2002-03-05 Zack Weinberg <zack@codesourcery.com>
1510 * cppmain.c (setup_callbacks): Disable #pragma and #ident
1511 callbacks when processing assembly language.
1513 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
1515 * pa.h (ASM_FILE_END): Define.
1516 * som.h (ASM_FILE_END): Delete.
1518 * pa.c (function_arg): Don't pass floats in general registers in
1519 indirect calls if TARGET_ELF32.
1521 2002-03-05 Richard Henderson <rth@redhat.com>
1523 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
1525 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
1527 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
1529 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1531 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
1532 -r command line. Don't hide any symbols if not building
1535 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
1537 * cfg.c (dump_flow_info): Warn about profile mismatches.
1538 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
1539 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
1541 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1543 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
1544 wide volatile memory by parts.
1546 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1548 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
1551 2002-03-05 Richard Henderson <rth@redhat.com>
1553 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
1555 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
1557 * toplev.c (documented_lang_options): Document more
1558 language-specific options.
1559 * doc/invoke.texi (Warning Options): Correct documentation for
1560 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
1561 * c-decl.c (c_decode_option): Use a table to handle warning options.
1563 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
1565 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
1566 parameter to mmix_encode_section_info.
1567 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
1568 relocatably. Always produce ELF, not mmo if linking relocatably.
1569 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
1570 first is non-zero, don't add symbol prefix.
1571 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
1572 prototype accordingly.
1574 2002-03-04 Krister Walfridsson <cato@df.lth.se>
1576 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
1578 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
1580 * configure.in: Increase required makeinfo version to 4.1.
1581 * configure: Regenerate.
1583 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
1585 * .cvsignore: Remove *.info* and genrtl*; these files are generated
1588 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
1590 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
1591 * doc/invoke.texi: Fix @math uses.
1593 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
1595 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
1598 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
1600 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
1601 (powerpc-*-eabisimaltivec*): Same.
1603 * config/rs6000/t-ppcendian: New.
1605 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1607 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
1608 nonimmediate_src_operand and nonimmediate_lsrc_operand to
1609 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
1611 2002-03-03 Richard Henderson <rth@redhat.com>
1613 * toplev.c (rest_of_decl_compilation): Revert last two changes.
1615 2002-03-03 Zack Weinberg <zack@codesourcery.com>
1617 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
1618 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
1619 tree.c, config/m68k/m68k.c:
1620 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
1621 REAL_ARITHMETIC blocks unconditional. Delete some further
1622 #ifdef blocks predicated on REAL_ARITHMETIC.
1623 * flags.h, toplev.c: Delete remaining references to
1626 * doc/invoke.texi: Remove documentation of -fpretend-float.
1627 * doc/tm.texi: Describe the various REAL_* macros as provided by
1628 real.h, not by the target configuration files.
1630 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
1631 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
1632 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
1633 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
1634 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
1635 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
1636 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
1637 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
1638 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
1639 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
1640 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
1641 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
1642 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
1643 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
1644 config/xtensa/xtensa.h:
1645 Do not define, undefine, or mention in comments any of
1646 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
1647 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
1648 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
1649 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
1650 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
1651 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
1652 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
1653 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
1654 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
1656 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1658 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
1659 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
1660 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
1661 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
1662 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
1663 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
1665 * defaults.h (BITS_PER_WORD): Define.
1666 * doc/tm.texi (BITS_PER_WORD): Document default value.
1668 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
1669 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
1670 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
1672 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1674 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
1675 lieu of explicit sizeof/sizeof.
1676 * i386.c (override_options, ix86_init_mmx_sse_builtins,
1677 ix86_expand_builtin): Likewise.
1678 * mips.c (mips_add_gc_roots): Likewise.
1679 * mmix.c (mmix_output_condition): Likewise.
1680 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
1681 altivec_init_builtins): Likewise.
1682 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
1683 * cppexp.c (Nsuff, parse_number): Likewise.
1684 * cppinit.c (builtin_array_end): Likewise.
1685 * gcc.c (n_default_compilers, process_command): Likewise.
1686 * genpreds.c (output_predicate_decls): Likewise.
1687 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
1688 * lcm.c (N_ENTITIES): Likewise.
1689 * stor-layout.c (set_sizetype): Likewise.
1691 2002-03-03 Richard Henderson <rth@redhat.com>
1693 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
1694 for types or labels.
1696 2002-03-03 Richard Henderson <rth@redhat.com>
1698 * c-decl.c (start_decl): Initialized variables are not common.
1700 2002-03-02 Per Bothner <per@bothner.com>
1702 * gcc.c (option_map): Suport new --bootclasspath option.
1703 --CLASSPATH is now just an alias for --classpath.
1705 2002-03-02 Richard Henderson <rth@redhat.com>
1707 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
1708 load if "internal" visibility.
1709 * doc/extend.texi: Document visibility meanings.
1711 2002-03-02 Richard Henderson <rth@redhat.com>
1713 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
1714 to functions as well.
1716 2002-03-02 Richard Henderson <rth@redhat.com>
1718 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
1719 (handle_visibility_attribute): Don't call assemble_visibility.
1720 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
1721 without asmspec. Invoke assemble_alias when needed.
1722 * varasm.c (maybe_assemble_visibility): New.
1723 (assemble_start_function, assemble_variable, assemble_alias): Use it.
1725 2002-03-02 Richard Henderson <rth@redhat.com>
1727 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
1728 invoke ENCODE_SECTION_INFO with first call flag.
1730 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
1731 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
1732 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
1733 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
1734 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
1735 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
1736 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
1737 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
1738 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
1739 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
1740 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
1741 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
1742 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
1743 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
1744 config/mcore/mcore-protos.h, config/mcore/mcore.c,
1745 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
1746 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
1747 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
1748 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
1749 config/sh/sh.h, config/sparc/sparc.h,
1750 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
1751 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
1752 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
1753 FIRST argument. As needed, examine it and do nothing.
1755 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
1756 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
1757 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
1759 * config/arm/t-pe (pe.o): Add dependencies.
1761 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1763 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
1764 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
1765 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
1766 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
1767 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
1768 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
1769 * defaults.h (BITS_PER_UNIT): Define.
1770 * doc/tm.texi (BITS_PER_UNIT): Document default value.
1772 2002-03-02 Kazu Hirata <kazu@hxi.com>
1774 * config/h8300/h8300-protos.h: Add a prototype for
1775 compute_a_shift_length.
1776 * config/h8300/h8300.c (h8300_asm_insn_count): New.
1777 (compute_a_shift_length): Likewise.
1778 (h8300_adjust_insn_length): Do not adjust insn length of shift
1780 * config/h8300/h8300.md (anonymous shift patterns): Use
1781 compute_a_shift_length.
1783 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1785 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
1788 * emit-rtl.c (offset_address): Call update_temp_slot_address.
1790 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1792 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
1793 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
1794 * flags.h (flag_zero_initialized_in_bss): Declare.
1795 * toplev.c (flag_zero_initialized_in_bss): New flag.
1796 (lang_independent_options): Add flag_zero_initialized_in_bss.
1797 * tree.c (initializer_zerop): New function.
1798 * tree.h (initializer_zerop): Declare.
1799 * varasm.c (assemble_variable): If we can emit bss, put zero
1800 initializers in the bss section.
1802 2002-03-02 Alan Modra <amodra@bigpond.net.au>
1804 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
1805 like more than one symbol per .weak directive.
1807 2002-03-01 Richard Henderson <rth@redhat.com>
1809 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
1810 adjust argument_pointer by pretend_args_size.
1811 (ia64_va_start): Adjust va_start address by -pretend_args_size.
1813 2002-03-01 Kazu Hirata <kazu@hxi.com>
1815 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
1817 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
1819 * toplev.c (rest_of_compilation): Delete dead jumptables before
1821 * flow.c (delete_dead_jumptables): Make global.
1822 * rtl.h (delete_dead_jumptables): Declare.
1824 2002-03-01 David Edelsohn <edelsohn@gnu.org>
1826 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
1827 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
1828 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
1830 2002-03-01 Kazu Hirata <kazu@hxi.com>
1832 * config/h8300/h8300-protos.h: Fix formatting.
1833 * config/h8300/h8300.c: Likewise.
1834 * config/h8300/h8300.h: Likewise.
1836 2002-03-01 Kazu Hirata <kazu@hxi.com>
1838 * config/h8300/h8300.c (print_operand): Support 16-bit
1840 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
1842 2002-02-28 Richard Henderson <rth@redhat.com>
1844 * expmed.c (store_bit_field): Prevent generation of CONCATs;
1845 pun complex values as integers; use gen_lowpart instead of
1847 (extract_bit_field): Likewise.
1849 2002-03-01 Alan Modra <amodra@bigpond.net.au>
1850 David Edelsohn <edelsohn@gnu.org>
1852 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
1853 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
1854 (SUPPORTS_WEAK): Likewise.
1855 * output.h (add_weak): Add tree param.
1856 * varasm.c (add_weak): Likewise. Save decl.
1857 (struct weak_syms): Add decl field.
1858 (mark_weak_decls): New function.
1859 (init_varasm_once): ggc_add_root mark_weak_decls.
1860 (assemble_start_function): Use ASM_WEAKEN_DECL.
1861 (assemble_variable): Likewise.
1862 (assemble_alias): Likewise.
1863 (declare_weak): Pass decl to add_weak.
1864 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
1865 (remove_from_pending_weak_list): Declare and define for
1867 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
1868 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
1869 * defaults.h (SUPPORTS_WEAK): Likewise.
1870 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
1871 .weak for code sym. Do emit .size for descriptor sym.
1872 (ASM_DECLARE_FUNCTION_SIZE): Define.
1873 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
1874 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
1875 .lglobl unless TARGET_XCOFF. Formatting fixes.
1876 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
1878 (HANDLE_PRAGMA_WEAK): Remove.
1879 (ASM_WEAKEN_LABEL): Remove.
1880 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
1882 2002-03-01 Jason Merrill <jason@redhat.com>
1884 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
1885 (TARGET_EXPR_CLEANUP): New macro.
1887 2002-02-28 Steve Ellcey <sje@cup.hp.com>
1889 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
1890 to take ptr_extend into account as third type of extension.
1891 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
1892 fields used by SUBREG_PROMOTED_UNSIGNED_P.
1893 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
1894 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
1895 * calls.c (precompute_arguments): Use new macro.
1896 (expand_call): Ditto.
1897 * combine.c (nonzero_bits): Ditto.
1898 (record_promoted_value): Ditto.
1899 * expr.c (store_expr): Ditto.
1900 (expand_expr): Ditto.
1901 * function.c (assign_parms): Ditto.
1903 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
1905 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
1906 override -shared and -shared-libgcc.
1908 2002-02-28 David O'Brien <obrien@FreeBSD.org>
1910 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
1912 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
1915 2002-02-28 Richard Henderson <rth@redhat.com>
1917 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
1918 4 cycle latency from MM producers.
1919 (ia64_internal_sched_reorder): Likewise with pipeline flush.
1921 2002-02-28 Jakub Jelinek <jakub@redhat.com>
1923 * mklibgcc.in: Don't use GNU make extension.
1925 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
1927 * c-parse.in (STATIC): New terminal.
1928 (scspec): New non-terminal. Update productions accordingly.
1929 (program): Remove bogus ifc / end ifc.
1930 (array_declarator): Simplify production using STATIC.
1932 2002-02-28 Jim Meyering <meyering@lucent.com>
1934 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
1935 \a still means TARGET_BELL.
1937 2002-02-28 Richard Henderson <rth@redhat.com>
1939 * haifa-sched.c (sched_emit_insn): New.
1940 (schedule_block): Use last_scheduled_insn to track last insn.
1941 * sched-int.h (sched_emit_insn): Prototype.
1942 * config/ia64/ia64.c (last_issued): Remove.
1943 (ia64_variable_issue): Don't set it.
1944 (nop_cycles_until): Use sched_emit_insn.
1946 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
1948 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
1951 2002-02-28 Kazu Hirata <kazu@hxi.com>
1953 * config/h8300/h8300.c: Fix formatting.
1954 * config/h8300/h8300.h: Likewise.
1956 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
1958 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
1959 which may overwrite the high byte of the frame pointer.
1961 2002-02-28 Bo Thorsen <bo@suse.de>
1963 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
1964 (STARTFILE_SPEC): Add 64 bit files.
1965 (ENDFILE_SPEC): Likewise.
1967 2002-02-28 Jason Merrill <jason@redhat.com>
1969 * c-decl.c (finish_function): Only warn about missing return
1970 statement with -Wreturn-type.
1972 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
1974 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
1976 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
1977 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
1979 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
1981 * basic-block.h (BB_REACHABLE): Renumber.
1982 (BB_DIRTY, BB_NEW): New flags.
1983 (clear_bb_flags): Declare.
1984 (update_life_info_in_dirty_blocks): Declare.
1985 * cfg.c (clear_bb_flags): New function.
1986 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
1987 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
1988 reorder_insns, emit_insn_after): Mark block as dirty.
1989 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
1990 (update_life_info_in_dirty_blocks): New function.
1991 * recog.c (apply_change_group): Dirtify block.
1993 * cse.c (cse_insn): Reorder emitting of jump insn to keep
1995 * gcse.c (delete_null_pointer_checks): Likewise.
1997 * toplev.c (dump_file_index): Move cse2 after bp,
1999 (dump_file_info): Similary.
2000 (rest_of_compilation): Avoid most of CFG rebuilds;
2001 do first if converision after null pointer checks, do cse2
2002 after branch prediction; avoid full liveness rebuild after
2003 initializing subregs.
2004 * invoke.texi (-d options): Document -du, renumber.
2006 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
2007 (notice_new_block): Do not set BB_UPDATE_LIFE.
2008 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
2009 merge_blocks_move_successor_nojumps, merge_blocks,
2010 try_crossjump_to_edge): Likewise.
2011 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
2012 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
2013 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
2014 (merge_of_block): Do not use life_data_ok.
2015 (find_if_case_1): Do not use SET_UPDATE_LIFE.
2016 (if_convert): Use BB_DIRTY mechanizm to update life.
2017 * lcm.c (optimize_mode_switching): Update
2018 update_life_info_in_dirty_blocks
2020 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
2022 * Makefile.in (integrate.o): Update.
2023 * c-decl.c (copy_lang_decl): Rename.
2024 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
2025 * integrate.c: Include langhooks.h.
2026 (copy_decl_for_inlining): Update to use langhook.
2027 * langhooks-def.h (lhd_do_nothing_t,
2028 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
2029 (LANG_HOOKS_INITIALIZER): Update.
2030 * langhooks.c (lhd_do_nothing_t): New.
2031 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
2032 * tree.h (copy_lang_decl): Remove.
2034 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
2036 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
2038 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
2039 POST_DEC, and POST_MODIFY.
2041 2002-02-27 Zack Weinberg <zack@codesourcery.com>
2043 * c-typeck.c (digest_init): Remove unused parameter; all
2046 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
2048 * expmed.c (expand_shift): Correctly test for low part of a
2051 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
2053 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
2054 insn UIDs with insn addresses.
2056 2002-02-27 Zack Weinberg <zack@codesourcery.com>
2058 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
2059 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
2060 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
2061 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
2062 gcc.c, toplev.c: Delete code implementing -traditional mode.
2064 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
2065 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
2066 Document removal of -traditional mode for compilation, and
2067 remove documentation only relevant to that mode.
2069 * config/nextstep.h, config/ptx4.h, config/svr4.h,
2070 config/convex/convex.h, config/d30v/d30v.h,
2071 config/i386/dgux.h, config/i386/osf1elf.h,
2072 config/i386/osfelf.h, config/i386/osfrose.h,
2073 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
2074 config/m68k/hp310.h, config/m88k/dgux.h,
2075 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
2076 config/m88k/m88k.h, config/m88k/openbsd.h,
2077 config/mips/abi64.h, config/mips/osfrose.h,
2078 config/mips/svr4-5.h, config/mips/svr4-t.h,
2079 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
2080 config/stormy16/stormy16.h: Remove all references to
2081 -traditional from target specs. Delete all mention of the
2082 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
2083 delete a couple of commented-out definitions of
2084 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
2087 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
2088 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
2090 2002-02-27 Zack Weinberg <zack@codesourcery.com>
2092 * mklibgcc.in: Don't use \n in a line subject to
2093 interpretation by echo.
2095 2002-02-27 Graham Stott <grahams@redhat.com>
2097 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
2100 * loop.c (prescan_loop): Handle PARALLEL.
2102 * unroll.c (loop_iterations): Return 0 if the add_val for
2105 * final.c (output_operand_lossage): Constify PFX_STR.
2107 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
2109 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
2111 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
2112 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
2114 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
2116 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
2118 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
2120 * cpplex.c (_cpp_lex_token): Handle directives in macro
2122 * cpplib.c (_cpp_handle_directive): Save and restore state
2123 if parsing macro args when entering a directive.
2124 * cppmacro.c (collect_args): No need to handle directives
2126 (enter_macro_context, replace_args): Use the original macro
2127 definition in case it was redefined whilst collecting arguments.
2131 2002-02-26 David Edelsohn <edelsohn@gnu.org>
2133 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
2134 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
2135 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
2137 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
2138 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
2139 (load_toc_v4_PIC_2): Same.
2141 2002-02-26 Alan Modra <amodra@bigpond.net.au>
2143 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
2145 2002-02-26 Richard Henderson <rth@redhat.com>
2147 * config/alpha/alpha.md (ashldi_se): Re-enable.
2149 2002-02-26 Richard Henderson <rth@redhat.com>
2151 * config/alpha/alpha.c (alpha_encode_section_info): Examine
2152 MODULE_LOCAL_P; improve commentary.
2154 2002-02-26 Zack Weinberg <zack@codesourcery.com>
2156 * doc/cpp.texi: Clarify documentation of relationship between
2159 2002-02-26 Kazu Hirata <kazu@hxi.com>
2161 * config/h8300/h8300-protos.h: Update the prototype for
2162 compute_logical_op_length. Add the prototype for
2163 compute_logical_op_cc.
2164 * config/h8300/h8300.c (compute_logical_op_length): Figure out
2166 (compute_logical_op_cc): New.
2167 * config/h8300/h8300.md: Combine all the logical op patterns
2168 in HImode and SImode. Use compute_logical_op_cc.
2170 2002-02-26 Kelley Cook <kelleycook@comcast.net>
2172 * config/i386/i386.c (print_operand): Don't append ATT-style
2173 length suffixs to x87 opcodes when in Intel mode.
2175 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
2177 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
2178 (init_emit_once): Update calls.
2179 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
2180 (init_syntax_once): Prototype.
2182 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
2184 * pa-linux.h (LIB_SPEC): Update definition.
2185 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
2187 2002-02-26 Richard Henderson <rth@redhat.com>
2189 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
2190 if we emitted a stop bit.
2192 2002-02-26 Jakub Jelinek <jakub@redhat.com>
2194 * configure.in (libgcc_visibility): Substitute.
2195 * configure: Rebuilt.
2196 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
2197 defined symbols .hidden.
2199 2002-02-26 Jakub Jelinek <jakub@redhat.com>
2201 * attribs.c (c_common_attribute_table): Add visibility.
2202 (handle_visibility_attribute): New function.
2203 * varasm.c (assemble_visibility): New function.
2204 * output.h (assemble_visibility): Add prototype.
2205 * tree.h (MODULE_LOCAL_P): Define.
2206 * crtstuff.c (__dso_handle): Use visibility attribute.
2207 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
2208 for MODULE_LOCAL_P symbols too.
2209 * config/ia64/ia64.c (ia64_encode_section_info): Handle
2210 MODULE_LOCAL_P symbols the same way as local symbols.
2211 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
2212 into .sdata/.sbss by the user.
2213 * doc/extend.texi (Function Attributes): Document visibility
2216 2002-02-26 Jakub Jelinek <jakub@redhat.com>
2219 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
2220 STRING_CST initializer spanning the whole variable without
2222 If expand_expr returned MEM, don't use it.
2224 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
2226 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
2227 generate a die for the lexical block.
2229 2002-02-26 Kazu Hirata <kazu@hxi.com>
2231 * config/h8300/h8300-protos.h: Add a prototype for
2232 compute_logical_op_length.
2233 * config/h8300/h8300.c (compute_logical_op_length): New.
2234 * config/h8300/h8300.md (anonymous logical patterns): Use
2235 compute_logical_op_length for length.
2237 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
2239 * dwarf2out.c (modified_type_die): Do not call type_main_variant
2241 (gen_type_die): Same.
2243 * attribs.c (handle_vector_size_attribute): Set debug information.
2245 2002-02-26 Daniel Egger <degger@fhm.edu>
2247 * config/rs6000/rs6000.md: Swap define_insn attributes to
2248 fix incorrect generation of merge high instructions instead
2251 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
2253 * c-typeck.c (really_start_incremental_init): Use
2254 bitsize_zero_node for vectors.
2256 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
2258 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
2259 ("*set_vrsave_internal"): Same.
2261 2002-02-25 Richard Henderson <rth@redhat.com>
2263 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
2264 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
2266 2002-02-25 Jakub Jelinek <jakub@redhat.com>
2269 * config/i386/i386.c (ix86_return_pops_args): Only pop
2270 fake structure return argument if it was passed on the stack.
2272 2002-02-25 Jason Merrill <jason@redhat.com>
2274 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
2277 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
2279 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
2280 link with shared_name only.
2281 * doc/invoke.texi (Link Options): Document new behavior.
2283 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
2285 * c-typeck.c (push_init_level): Handle vectors.
2287 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
2289 * config/sparc/sparc.c (const64_high_operand): Zero-extend
2290 operands of SPARC_SETHI_P.
2291 (input_operand): Likewise.
2292 (sparc_emit_set_const32): Likewise.
2293 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
2294 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
2295 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
2296 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
2297 (movdi_insn_sp64_vis): Likewise.
2298 (movdi split, movdf split): Use SETHI32.
2299 * doc/md.texi: Document SPARC constraints L, M and N.
2301 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
2303 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
2304 ("*set_vrsave_internal"): use mfspr for Darwin.
2306 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
2307 gen_get_vrsave_internal.
2309 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2311 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
2313 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
2315 * cpplex.c (cpp_interpret_charconst): Get signedness or
2316 otherwise of wide character constants correct.
2317 * cppexp.c (lex): Get signedness of wide charconsts correct.
2319 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2321 * optabs.c (widen_operand): Only call convert_modes for
2322 promoted SUBREG if signedness matches.
2323 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
2325 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
2327 * cpplib.c (glue_header_name): Use local buffer to build up
2330 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
2332 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
2334 2002-02-23 Kazu Hirata <kazu@hxi.com>
2336 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
2337 H8/300[HS] separately.
2338 * config/h8300/h8300.md: Remove the early clobber constraint
2339 from bit field patterns.
2341 2002-02-23 Kazu Hirata <kazu@hxi.com>
2343 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
2345 (mulhisi3): Likewise.
2346 (umulqisi3): Likewise.
2347 (umulhisi3): Likewise.
2349 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
2351 * cppinit.c (output_deps): Correct test for stdout output.
2352 (init_dependency_output): Cure warning.
2354 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2356 * expr.c (store_expr): When converting expression to promoted
2357 equivalent type, allow using SUBREG_REG of TARGET as the target
2358 of the expansion of EXP.
2359 * loop.c (basic_induction_var, case SUBREG): Always look inside.
2360 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
2361 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
2362 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
2363 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
2365 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
2367 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
2368 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
2369 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
2371 2002-02-23 Jakub Jelinek <jakub@redhat.com>
2373 PR optimization/5747
2374 * loop.c (scan_loop): Update reg info if move_movables created new
2377 2002-02-23 David Edelsohn <edelsohn@gnu.org>
2379 * gcc.c (init_gcc_spec): Revert last change.
2381 2002-02-23 David Edelsohn <edelsohn@gnu.org>
2383 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
2384 gpc_reg_operand constraint.
2386 2002-02-23 Alan Modra <amodra@bigpond.net.au>
2388 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
2389 Simplify comparison of `low'.
2390 (add_operand): Fix formatting.
2391 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
2392 (mask_operand): Disallow mask to wrap in 64-bit mode.
2393 (rs6000_stack_info): Remove redundant test setting push_p.
2394 (output_toc): Fix formatting.
2395 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
2396 cc_reg_not_cr0_operand constraint.
2397 (booldi3, boolcdi3 splitters): Same.
2399 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
2401 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
2403 2002-02-22 David Edelsohn <edelsohn@gnu.org>
2405 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
2406 gcc invoked with -shared-libgcc.
2408 2002-02-22 Jakub Jelinek <jakub@redhat.com>
2411 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
2412 decl if any of elements was TREE_USED.
2414 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
2416 * config/sparc/sol2.h: Don't include sys/mman.h.
2417 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
2418 (arith_4096_operand): Don't throw high bits away.
2419 (const64_operand): Take sign extension of CONST_INTs into account.
2420 (const64_high_operand, sparc_emit_set_const32): Likewise.
2421 (GEN_HIGHINT64): Likewise.
2422 (sparc_emit_set_const64_quick1): Likewise.
2423 (const64_is_2insns): Likewise.
2424 (print_operand): Use trunc_int_for_mode for sign extension.
2425 * config/sparc/sparc.h (SMALL_INT32): Likewise.
2426 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
2427 chars. Assume CONST_INT is already properly sign-extended.
2428 (movdi split): Sign-extend each SImode part.
2429 (andsi3 split): Don't mask high bits off, so that result
2430 remains properly sign-extend.
2431 (iorsi3 split): Likewise.
2432 (xorsi3 split): Likewise.
2434 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
2436 * fold-const.c (fold): Fix typo in comments.
2438 2002-02-21 Diego Novillo <dnovillo@redhat.com>
2440 * Makefile.in (langhooks.o): Update dependencies.
2442 2002-02-21 Diego Novillo <dnovillo@redhat.com>
2444 * langhooks.c: Include flags.h.
2446 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
2448 * testsuite/gcc.dg/attr-alwaysinline.c: New.
2450 * c-common.c (c_common_post_options): Set inline trees by
2453 * doc/extend.texi (Function Attributes): Document always_inline
2455 Update documentation about inlining when not optimizing.
2457 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
2459 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
2460 unless DECL_ALWAYS_INLINE.
2462 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
2463 unless DECL_ALWAYS_INLINE.
2464 (c_disregard_inline_limits): Disregard if always_inline set.
2466 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
2467 Disregard if always_inline set.
2468 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
2469 unless DECL_ALWAYS_INLINE.
2471 * attribs.c (handle_always_inline_attribute): New.
2472 (c_common_attribute_table): Add always_inline.
2474 * config/rs6000/altivec.h: Add prototypes for builtins
2475 requiring the always_inline attribute.
2477 2002-02-21 Eric Christopher <echristo@redhat.com>
2479 * expmed.c (store_bit_field): Try to simplify the subreg
2480 before generating a new one when when the mode size of
2481 value is less than maxmode.
2483 2002-02-21 Richard Henderson <rth@redhat.com>
2485 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
2486 than gen_rtx_PLUS to form the sum.
2487 * explow.c (force_reg): Rearrange to not allocate new pseudo
2488 when force_operand returns a register.
2489 * expr.c (expand_assignment): Allow offset_rtx expansion to
2490 return a sum. Do not force addresses into registers.
2491 (expand_expr): Likewise.
2492 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
2493 to canonicalize arithmetic that didn't simpify.
2494 (simplify_plus_minus): New argument force; update
2495 all callers. Don't split CONST unless we can do something with it,
2496 and wouldn't lose the constness of the operands.
2498 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
2499 that we generated earlier.
2501 2002-02-21 Tom Tromey <tromey@redhat.com>
2503 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
2504 (output_line_info): Use constant `1', with a long explanatory
2506 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
2508 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
2510 * jump.c (redirect_jump): If old label has no UID, don't try to
2513 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
2515 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
2516 If input is constant, do shifts at compile time.
2518 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
2520 * doc/extend.texi: Fix some more overfull hboxes.
2522 2002-02-21 Jakub Jelinek <jakub@redhat.com>
2524 PR optimization/4994
2525 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
2528 2002-02-21 Jakub Jelinek <jakub@redhat.com>
2531 * expr.h (expand_and): Add mode argument.
2532 * expmed.c (expand_and): Add mode argument.
2533 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
2534 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
2535 * except.c (expand_builtin_extract_return_addr): Likewise.
2536 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
2537 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
2538 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
2539 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
2540 * config/c4x/c4x.md: Use GEN_INT (x) instead of
2541 gen_rtx (CONST_INT, VOIDmode, x).
2543 2002-02-21 Jakub Jelinek <jakub@redhat.com>
2546 * stmt.c (warn_if_unused_value): Move side effects test once more.
2548 2002-02-20 Torbjorn Granlund <tege@swox.com>
2550 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
2551 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
2553 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
2555 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
2556 SUBREG or ZERO_EXTEND.
2558 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
2560 * sh.h (current_function_anonymous_args): Remove.
2561 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
2562 of current_function_varargs and current_function_stdarg is set.
2563 * sh.c (sh_expand_prologue): Check current_function_varargs /
2564 current_function_stdarg / TARGET_SH5 instead of
2565 current_function_anonymous_args.
2567 * sh64.h (TARGET_VERSION): Define.
2569 2002-02-20 David Edelsohn <edelsohn@gnu.org>
2571 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
2572 VRSAVE_REGNO on TARGET_ALTIVEC.
2574 2002-02-20 Alan Modra <amodra@bigpond.net.au>
2576 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
2577 bits of SImode const_int.
2578 (includes_rshift_p): Likewise.
2579 (print_operand): Call mask_operand and mask64_operand with correct
2581 (rs6000_output_function_epilogue): Pad traceback table to word.
2582 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
2583 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
2584 mask64_operand with correct mode.
2585 (FUNCTION_ARG_REGNO_P): Correct parentheses.
2587 2002-02-20 Jakub Jelinek <jakub@redhat.com>
2590 * varasm.c (get_pool_constant_mark): New.
2591 * rtl.h (get_pool_constant_mark): Add prototype.
2592 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
2593 be represented if it has not been output.
2595 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
2597 * combine.c (do_SUBST): Sanity check substitutions of
2598 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
2599 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
2600 CONST_INT into its operand.
2601 (known_cond): Likewise, for ZERO_EXTEND.
2602 * simplify-rtx.c (simplify_unary_operation): Fix condition to
2603 allow for simplification of wide modes. Reject CONST_INTs in
2604 ZERO_EXTEND when their actual mode is not given.
2606 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
2608 * c-decl.c (pushdecl): If no global declaration is found for an
2609 extern declaration in block scope, try a limbo one.
2611 2002-02-20 Jakub Jelinek <jakub@redhat.com>
2614 * c-common.c (pointer_int_sum): Moved from...
2615 * c-typeck.c (pointer_int_sum): ...here.
2616 * c-common.h (pointer_int_sum): Add prototype.
2618 2002-02-20 Jakub Jelinek <jakub@redhat.com>
2621 * c-decl.c (duplicate_decls): Return 0 if issued error about
2624 2002-02-20 Roger Sayle <roger@eyesopen.com>
2625 Jakub Jelinek <jakub@redhat.com>
2628 * tree.c (host_integerp): Ensure that the constant integer is
2629 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
2630 when pos is zero or non-zero respectively. Clarify comment.
2631 * c-format.c (check_format_info_recurse): Fix host_integerp
2632 usage; the pos argument should be zero when assigning to a
2633 signed HOST_WIDE_INT.
2635 2002-02-20 Richard Henderson <rth@redhat.com>
2637 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
2638 of the operand, rather than assuming TImode.
2639 (ix86_expand_binop_builtin): Cope with commutative patterns
2640 using nonimmediate_operand for both operands.
2641 (ix86_expand_timode_binop_builtin): Likewise.
2642 (ix86_expand_store_builtin): Validate operand 1.
2643 (ix86_expand_unop1_builtin): Likewise.
2645 2002-02-20 Philip Blundell <philb@gnu.org>
2648 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
2650 2002-02-20 Richard Henderson <rth@redhat.com>
2653 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
2655 2002-02-20 Tom Tromey <tromey@redhat.com>
2657 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
2658 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
2659 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
2660 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
2661 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
2664 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
2666 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
2667 for (const_int 0) in X not just INTVAL.
2669 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
2671 * doc/extend.texi: Avoid or reduce overfull hboxes.
2673 2002-02-20 Diego Novillo <dnovillo@redhat.com>
2675 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
2676 operations if the field does not start at a mode boundary.
2678 2001-02-20 Joel Sherrill <joel@OARcorp.com>
2680 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
2681 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
2682 Also done for -Acpu and -Amachine.
2684 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
2686 * cppinit.c (init_dependency_output): Take deps output file
2687 from -o if none given with -MF. Suppress normal output.
2688 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
2689 * doc/cpp.texi, doc/invoke.texi: Update.
2691 2002-02-19 Zack Weinberg <zack@codesourcery.com>
2693 * toplev.c (output_quoted_string): Write unprintable
2694 characters with octal escapes.
2696 2002-02-19 David Edelsohn <edelsohn@gnu.org>
2698 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
2699 really_call_used[VRSAVE_REGNO] if not Altivec.
2701 2002-02-19 Alan Modra <amodra@bigpond.net.au>
2703 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
2705 (constant_pool_expr_1): Fix formatting.
2706 (rs6000_legitimize_reload_address): Likewise.
2708 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2710 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
2711 now that we have one.
2713 2002-02-19 Zack Weinberg <zack@codesourcery.com>
2715 * tree.h (struct tree_common): Remove aux. Add unused_0 at
2716 end of first block of bitfields (which was only seven bits);
2717 rename dummy to unused_1; remove comment which is no longer true.
2719 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
2721 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
2723 2002-02-19 Philip Blundell <pb@nexus.co.uk>
2726 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
2730 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
2731 arm_is_longcall_p rather than inspecting call-type cookie
2733 (call_value_insn) [TARGET_THUMB]: Likewise.
2735 2002-02-19 Graham Stott <grahams@redhat.com>
2737 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
2739 2002-02-19 David Edelsohn <edelsohn@gnu.org>
2741 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
2742 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
2743 (FP_SAVE_INLINE): Delete.
2745 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
2746 * config/rs6000/eabi.asm: Remove ABI save restore routines.
2747 * config/rs6000/t-ppccomm: Build crtsavres.o.
2748 * config/rs6000/crtsavres.asm: New file.
2750 2002-02-19 Philip Blundell <philb@gnu.org>
2752 * config/arm/arm.c (use_return_insn): Don't reject interrupt
2754 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
2755 (output_return_instruction): Allow interrupt functions to return with
2756 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
2757 (arm_expand_prologue): Subtract 4 before stacking LR in an
2760 2002-02-19 Philip Blundell <pb@nexus.co.uk>
2762 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
2763 decl, not just FUNCTION_DECL.
2764 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
2765 (arm_assemble_integer): Likewise.
2766 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
2769 2002-02-19 matthew green <mrg@eterna.com.au>
2771 * config.gcc (sparc-*-netbsdelf*): Enable target.
2772 (sparc64-*-netbsd*): New target.
2773 * config/sparc/netbsd-elf.h: New file.
2774 * config/sparc/t-netbsd64: New file.
2776 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
2778 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
2780 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
2782 * doc/invoke.texi: explicitly list the style guidelines that
2783 -Weffc++ checks for.
2785 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
2787 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
2789 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
2792 * gcc.c (cpp_unique_options): Treat -o as indicating object file
2793 only if not -E. If -E, pass -o through to the preprocessor.
2795 2002-02-19 Kazu Hirata <kazu@hxi.com>
2797 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
2798 register number with an appropriate macro.
2800 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2802 * doc/rtl.texi (Constants): Close @code tag.
2804 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
2806 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
2807 ("mmx_uavgv4hi3"): Same.
2808 ("pmulhrwv4hi3"): Same.
2810 * tree-inline.c (walk_tree): Handle vectors.
2812 * c-common.c (constant_expression_warning): Handle vectors.
2813 (overflow_warning): Same.
2815 * sched-deps.c (sched_analyze_2): Handle vectors.
2817 * rtlanal.c (rtx_unstable_p): Handle vectors.
2818 (rtx_varies_p): Same.
2819 (count_occurrences): Same.
2820 (regs_set_between_p): Same.
2821 (modified_between_p): Same.
2822 (modified_in_p): Same.
2823 (volatile_insn_p): Same.
2824 (volatile_refs_p): Same.
2825 (side_effects_p): Same.
2827 (inequality_comparisons_p): Same.
2828 (replace_regs): Same.
2829 (computed_jump_p_1): Same.
2831 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
2833 (inner_mode_array): New.
2834 (copy_rtx): Handle vectors.
2835 (copy_most_rtx): Same.
2836 (rtx_equal_p): Same.
2837 (get_mode_alignment): Adjust for vectors.
2839 * resource.c (mark_referenced_resources): Handle vectors.
2840 (mark_set_resources): Same.
2842 * reload1.c (eliminate_regs): Handle vectors.
2843 (elimination_effects): Same.
2844 (scan_paradoxical_subregs): Same.
2846 * reload.c (subst_reg_equivs): Handle vectors.
2848 * regrename.c (scan_rtx): Handle vectors.
2850 * regclass.c (reg_scan_mark_refs): Handle vectors.
2852 * recog.c (find_single_use_1): Handle vectors.
2854 * local-alloc.c (equiv_init_varies_p): Handle vectors.
2855 (contains_replace_regs): Same.
2856 (memref_referenced_p): Same.
2858 * integrate.c (copy_rtx_and_substitute): Handle vectors.
2859 (subst_constants): Same.
2861 * genattrtab.c (attr_copy_rtx): Handle vectors.
2862 (encode_units_mask): Same.
2863 (clear_struct_flag): Same.
2864 (count_sub_rtxs): Same.
2866 * gcse.c (want_to_gcse_p): Handle vectors.
2867 (oprs_unchanged_p): Same.
2868 (hash_expr_1): Same.
2869 (oprs_not_set_p): Same.
2870 (expr_killed_p): Same.
2871 (compute_transp): Same.
2872 (store_ops_ok): Same.
2874 * function.c (purge_addressof_1): Do not allow paradoxical subregs
2876 (fixup_var_refs_1): Same.
2877 (instantiate_virtual_regs_1): Same.
2879 * fold-const.c (operand_equal_p): Handle vectors.
2881 (rtl_expr_nonnegative_p): Same.
2883 * flow.c (mark_used_regs): Handle vectors.
2885 * df.c (df_uses_record): Handle vectors.
2887 * cselib.c (cselib_subst_to_values): Handle vectors.
2888 (cselib_mem_conflict_p): Same.
2891 * cse.c (canon_reg): Handle vectors.
2893 (cse_process_notes): Same.
2894 (count_reg_usage): Same.
2897 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
2899 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
2901 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
2902 (gen_rtx): Handle CONST_VECTOR.
2903 (gen_const_vector_0): New.
2904 (copy_rtx_if_shared): CONST_VECTORs can be shared.
2905 (reset_used_flags): Same.
2906 (copy_insn_1): Same.
2907 (initializer_constant_valid_p): Handle VECTOR_CST.
2909 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
2911 * doc/rtl.texi (Constants): Document const_vector.
2912 (CONST0_RTX): Update for vectors.
2913 (RTL sharing): Same.
2915 * print-tree.c (print_node): Add case for VECTOR_CST.
2917 * tree.h (TREE_VECTOR_CST_ELTS): New.
2918 (struct tree_vector): New.
2919 (union tree_node): Add vector node.
2920 (build_vector): Add prototype.
2922 * tree.def (VECTOR_CST): New.
2924 * tree.c (build_vector): New.
2926 * expmed.c (make_tree): Handle CONST_VECTOR.
2928 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
2929 (CONST_VECTOR_ELT): New.
2930 (CONST_VECTOR_NUNITS): New.
2932 * machmode.h (GET_MODE_INNER): New.
2933 (DEF_MACHMODE): Accept 8th arg.
2935 * machmode.def: Add 8th argument for vector inner mode.
2936 Add inner vector modes for vectors.
2938 * rtl.def (VEC_CONST): Remove.
2939 (CONST_VECTOR): New.
2941 * expr.c (clear_storage): Allow vectors.
2942 (is_zeros_p): Handle VECTOR_CST.
2944 * varasm.c (output_constant_pool): Handle vectors.
2945 (rtx_const): Add veclo and vechi fields.
2946 (kind): Add RTX_VECTOR.
2947 (decode_rtx_const): Add case for vector.
2949 * config/rs6000/rs6000-protos.h: Add zero_constant.
2951 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
2952 constants. Force easy vector constants into memory.
2953 (easy_vector_constant): New.
2954 (emit_easy_vector_constant): New.
2955 (rs6000_legitimize_reload_address): Do not generate bad reloads on
2958 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
2960 ("altivec_lvxl"): Same.
2961 (altivec_lvebx): Same.
2962 (altivec_lvehx): Same.
2963 (altivec_lvewx): Same.
2964 ("*movv4si_const0"): New.
2965 ("*movv4sf_const0"): New.
2966 ("*movv8hi_const0"): New.
2967 ("*movv16qi_const0"): New.
2969 2002-02-18 Kazu Hirata <kazu@hxi.com>
2971 * config/h8300/h8300.c (notice_update_cc): Use
2974 2002-02-18 Kazu Hirata <kazu@hxi.com>
2976 * config/h8300/h8300.md (divmod patterns): Change the
2977 constraints for operands[1] to register_operand.
2979 2002-02-18 Kazu Hirata <kazu@hxi.com>
2981 * config/h8300/h8300-protos.h: Remove the prototype for
2983 * config/h8300/h8300.c (p_operand): Remove.
2984 * config/h8300/h8300.md: Replace p_operand with
2987 2002-02-18 Philip Blundell <pb@nexus.co.uk>
2989 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
2991 (output_return_instruction): Allow use of LDR to unstack
2992 return addresss even for interrupt handlers or when
2993 interworking. If compiling for ARMv5, use interworking-safe
2994 return instructions by default. Remove duplicated code and
2995 lengthy "strcat" sequences.
2997 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2999 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
3000 (LINK_EH_SPEC): Define.
3001 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
3003 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
3005 * config/s390/s390.c (s390_emit_prologue): Do not set the
3006 frame_related flag for call-clobbered registers.
3008 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
3010 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
3011 (construct_container): Fix handling of SSE operands.
3012 (ix86_expand_builtin): Fix handling of 64bit pointers.
3013 (mmx_maskmovq_rex): New pattern.
3015 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
3017 * regrename.c (kill_set_value): Handle subregs properly.
3019 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
3021 * objc/objc-act.c (handle_impent): Remove leading '*'
3022 from objc_class_name.
3024 2002-02-17 Richard Henderson <rth@redhat.com>
3026 * config/alpha/alpha.c (some_small_symbolic_operand,
3027 some_small_symbolic_operand_1, split_small_symbolic_operand,
3028 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
3029 Handle small SYMBOL_REFs anywhere, not just inside memories.
3030 * config/alpha/alpha-protos.h: Update.
3031 * config/alpha/alpha.h (PREDICATE_CODES): Update.
3032 * config/alpha/alpha.md (small symbolic operand splitter): Update.
3034 2002-02-17 Roland McGrath <roland@frob.com>
3036 * config.gcc (powerpc-*-gnu-gnualtivec*,
3037 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
3038 * config/rs6000/gnu.h: New file.
3039 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
3040 Grok "gnu" in rs6000_abi_name.
3041 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
3042 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
3043 Grok -mcall-gnu analogous to -mcall-linux et al.
3044 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
3045 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
3046 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
3048 2002-02-17 Jakub Jelinek <jakub@redhat.com>
3051 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
3054 2002-02-17 Philipp Thomas <pthomas@suse.de>
3056 * config/cris/cris.h: Undefine STARTFILE_SPEC and
3057 ENDFILE_SPEC before (re)defining them.
3059 2002-02-17 Kazu Hirata <kazu@hxi.com>
3061 * config/h8300/h8300.c: Fix formatting.
3062 * config/h8300/h8300.h: Likewise.
3064 2002-02-17 Philipp Thomas <pthomas@suse.de>
3066 * doc/tm.texi: Explain why empty strings should not be
3067 marked for translation.
3069 2002-02-17 Philipp Thomas <pthomas@suse.de>
3071 * final.c (output_operand_lossage): Changed to accept
3072 printf style arguments. Change calls where necessary.
3073 * output.h (output_operand_lossage): Change declaration
3074 accordingly. Update copyright.
3075 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
3076 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
3077 Update copyright date where necessary.
3079 * config/i386/i386.c (print_operand): Likewise. Remove use of
3082 * config/cris/cris.c (cris_operand_lossage): Likewise.
3083 Rename parameter so that exgettext recognizes it as
3084 translatable message.
3085 (LOSE_AND_RETURN): Rename parameter to msgid.
3087 2002-02-17 Kazu Hirata <kazu@hxi.com>
3089 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
3090 hard coded register number with an appropriate macro.
3091 (HARD_REGNO_MODE_OK): Likewise.
3092 (ARG_POINTER_REGNUM): Likewise.
3093 (STATIC_CHAIN_REGNUM): Likewise.
3094 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
3095 * config/h8300/h8300.md (define_constants): Define more
3098 2002-02-17 Philipp Thomas <pthomas@suse.de>
3100 * config/i386/i386.h: Don't mark empty strings for translation.
3102 2002-02-16 H.J. Lu <hjl@gnu.org>
3104 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
3106 2002-02-16 Zack Weinberg <zack@codesourcery.com>
3108 * cppinit.c (merge_include_chains): Check for brack being
3109 NULL before attempting to merge it with qtail.
3111 2002-02-16 Andrew Cagney <ac131313@redhat.com>
3113 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
3116 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
3118 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
3120 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
3122 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
3123 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
3124 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
3126 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3128 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
3129 now only if !TARGET_FIX.
3130 (*movsi_nt_vms_fix): New pattern.
3132 2002-02-16 Douglas B Rupp <rupp@gnat.com>
3134 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
3135 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
3136 (alpha_sa_mask, alpha_sa_size): Reflect above change.
3137 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
3138 (alpha_start_function, alpha_expand_epilogue): Likewise.
3139 (unicosmk_gen_dsib): Likewise.
3141 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3143 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
3145 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
3147 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
3148 check_and_change_labels, s390_final_chunkify): Delete.
3149 (s390_split_branches, s390_chunkify_pool): New functions.
3150 (s390_function_prologue): Call them.
3152 * config/s390/s390.h (S390_REL_MAX): Delete.
3153 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
3155 * config/s390/s390.md (cjump, icjump, jump): Fix length
3156 attribute calculation.
3159 2002-02-15 David Edelsohn <edelsohn@gnu.org>
3161 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
3162 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
3164 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
3166 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
3167 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
3168 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
3170 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
3172 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
3174 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
3176 * reload.c (find_dummy_reload): Check that an output register
3177 is valid for its mode.
3179 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
3181 * combine.c (known_cond): After replacing the REG of a SUBREG, try
3184 * function.c (assign_parms): Demote promoted argument passed by
3185 transparent reference.
3187 2001-02-14 Joel Sherrill <joel@OARcorp.com>
3189 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
3190 -Acpu() and -Amachine() to eliminate warnings.
3192 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
3194 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
3196 2002-02-14 Kazu Hirata <kazu@hxi.com>
3198 * config/h8300/h8300-protos.h: Update the prototype for
3200 * config/h8300/h8300.c (const_costs): Treat SET as a little
3201 more expensive operation.
3202 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
3203 reference to const_costs.
3205 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
3207 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
3209 2002-02-14 Jakub Jelinek <jakub@redhat.com>
3212 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
3213 use arguments from newtype.
3215 2002-02-13 Eric Christopher <echristo@redhat.com>
3217 * config/mips/mips.c (override_options): Add check for march/mipsX
3218 on the same command line. Fix error message in cpu processing.
3219 Remove architecture and ISA checks.
3221 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
3223 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
3225 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
3227 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
3229 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
3231 ("*movv8hi_internal1"): Same.
3232 ("*movv16qi_internal1"): Same.
3233 ("*movv4sf_internal1"): Same.
3235 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
3236 not push_reload for altivec modes.
3238 2002-02-13 Joel Sherrill <joel@OARcorp.com>
3240 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
3241 all RTEMS targets including removal of #includes from config/*/rtems*.h
3242 file and adding them to tm_file setting. Added xm_defines=POSIX to
3244 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
3245 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
3246 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
3247 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
3248 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
3249 config/m68k/rtemself.h: Ditto.
3250 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
3251 config/mips/rtems64.h: Ditto.
3252 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
3253 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
3255 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
3256 config/sparc/rtemself.h: Ditto.
3257 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
3258 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
3259 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
3261 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
3262 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
3263 target made more similar to i386-elf.
3264 * config/i386/t-rtems-i386: Added soft float support and multilibs.
3265 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
3266 be similar to config/m68k/t-m68kelf.
3267 * gthr-rtems.h: Encapsulate with extern "C" for C++.
3269 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
3271 * regmove.c (kill_value): Handle subregs.
3273 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
3275 * i386.md (mul patterns): Allow memory operand to be first;
3276 add expanders where needed; fix constraints.
3277 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
3278 Allow memory operand to be the first.
3280 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
3283 2002-02-13 Jakub Jelinek <jakub@redhat.com>
3286 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
3289 2002-02-13 Jakub Jelinek <jakub@redhat.com>
3291 PR optimization/5547:
3292 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
3293 all valid IA-32 address modes involving non-scaled %ebx and
3294 GOT/GOTOFF as displacement.
3296 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
3298 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
3299 after emitting ltorg insns.
3301 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
3302 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
3303 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
3304 *abssf2): Fix "op_type" attribute.
3306 2002-02-13 Douglas B Rupp <rupp@gnat.com>
3308 * mkconfig.sh: Avoid using a subshell redirect.
3309 ($output.T): Change to $(output)T.
3310 (ENABLE_NLS): Remove unneeded undef.
3312 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
3313 * config/alpha/x-vms (libsubdir): Define.
3315 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
3316 register frame procedures. Optimize retrieving context.
3318 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
3319 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
3320 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
3322 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3324 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
3325 Make same change as for find_base_value.
3327 2002-02-13 Kazu Hirata <kazu@hxi.com>
3329 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
3330 of QImode and SImode.
3332 2002-02-13 Kazu Hirata <kazu@hxi.com>
3334 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
3335 length computation of movsi.
3336 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
3338 2002-02-13 Kazu Hirata <kazu@hxi.com>
3340 * config/h8300/h8300.md (subqi3): Tighten the predicate for
3341 operands[2] to register_operand.
3343 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
3345 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
3347 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
3349 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
3350 for altivec_lvx* and altivec_stvx*.
3351 ("*movv4si_internal"): Add constraint for loading from GPRs.
3352 ("*movv8hi_internal1"): Same.
3353 ("*movv16qi_internal1"): Same.
3354 ("*movv4sf_internal1"): Same.
3356 * config/rs6000/rs6000.c (altivec_register_operand): New.
3358 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
3359 altivec_register_operand.
3361 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
3363 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
3366 2002-02-13 Stan Shebs <shebs@apple.com>
3368 * c-typeck.c (digest_init): Handle vectors.
3369 (really_start_incremental_init): Same.
3370 (pop_init_level): Same.
3371 (process_init_element): Same.
3373 * varasm.c (output_constant): Same.
3375 * expr.c (clear_storage): Same.
3376 (store_constructor): Same.
3378 2002-02-12 Eric Christopher <echristo@redhat.com>
3380 * explow.c (hard_function_value): Add comment explaining
3381 signed/unsigned comparison.
3383 2002-02-12 Jakub Jelinek <jakub@redhat.com>
3385 * jump.c (never_reached_warning): Add finish argument.
3386 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
3387 real insn after end.
3388 * rtl.h (never_reached_warning): Adjust prototype.
3389 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
3390 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
3391 never_reached_warning.
3393 2002-02-12 Graham Stott <grahams@redhat.com>
3395 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
3397 2002-02-12 Kazu Hirata <kazu@hxi.com>
3399 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
3400 logical shifts on H8/300.
3401 (shift_alg_si): Improve several shifts on H8/300.
3402 (get_shift_alg): Likewise.
3404 2002-02-12 Graham Stott <grahams@redhat.com>
3406 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
3408 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3410 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
3411 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
3413 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
3415 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
3416 non-CONST_INT through default_assemble_integer.
3417 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
3418 <case 8>: Abort for CONST_DOUBLE.
3420 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
3422 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
3424 * config/pa/pa-linux.h (LIB_SPEC): Delete.
3425 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
3427 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
3429 * config/stormy16/stormy16.md (zero_extendqihi2): New.
3431 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
3433 * regrename.c (regrename_optimize): Don't accept a
3434 part-clobbered register if the replaced register is not part
3437 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
3438 take padding into account when computing the argument value.
3440 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
3442 * combine.c (try_combine): Apply substitutions in
3443 CALL_INSN_FUNCTION_USAGE too.
3445 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
3447 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
3448 __builtin_altivec_abs*.
3451 * config/rs6000/rs6000.h (rs6000_builtins): Add
3452 ALTIVEC_BUILTIN_ABS*.
3454 * config/rs6000/altivec.h: Use const char for builtins expecting
3456 (vec_abs): New versions for C and C++.
3459 2002-02-10 Kazu Hirata <kazu@hxi.com>
3461 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
3464 2002-02-10 Kazu Hirata <kazu@hxi.com>
3466 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
3467 constant definition from h8300.md.
3468 (FRAME_POINTER_REGNUM): Likewise.
3469 * config/h8300/h8300.md (define_constants): Add FP_REG.
3471 2002-02-10 Kazu Hirata <kazu@hxi.com>
3473 * config/h8300/h8300.c (print_operand): Remove redundant code.
3475 2002-02-10 Kazu Hirata <kazu@hxi.com>
3477 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
3478 * config/h8300/h8300.c (byte_reg): Make it static.
3480 2002-02-10 Richard Henderson <rth@redhat.com>
3483 * c-typeck.c (incomplete_type_error): Handle flexible array members.
3485 2002-02-10 Richard Henderson <rth@redhat.com>
3488 * tree.c (append_random_chars): Don't abort if main_input_filename
3491 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
3493 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
3495 2002-02-10 Kazu Hirata <kazu@hxi.com>
3497 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
3498 (pushhi1): Likewise.
3500 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
3502 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
3503 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
3505 2002-02-09 David O'Brien <obrien@FreeBSD.org>
3507 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
3509 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
3511 2002-02-09 Kazu Hirata <kazu@hxi.com>
3513 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
3514 a half of an SImode register on H8/300.
3516 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
3518 * i386.md (movdi_2): Add missing '!'.
3520 2002-02-09 Kazu Hirata <kazu@hxi.com>
3522 * config/h8300/h8300.h: Fix formatting. Remove commented-out
3525 2002-02-09 Kazu Hirata <kazu@hxi.com>
3527 * config/h8300/h8300.md (length): Correct the distance valid
3528 for the short branch.
3530 2002-02-09 Kazu Hirata <kazu@hxi.com>
3532 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
3534 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
3536 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
3537 registers in SImode.
3538 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
3541 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
3544 Contribute sh64-elf.
3545 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
3546 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
3547 (sh_cannot_modify_jumps_p): New function.
3548 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
3549 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
3550 (sh_ms_bitfield_layout_p): New function.
3551 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
3552 Zack Weinberg <zack@codesourcery.com>
3553 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
3554 expand_simple_binop instead of expand_binop.
3555 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
3556 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
3557 use of .quad and .uaquad.
3558 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
3559 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
3560 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3561 * config/sh/sh.md (movdi_const, movdi_const_32bit,
3562 movdi_const_16bit): Make sure all CONSTs have modes.
3563 (sym2PIC): Ditto, but by adjusting all callers.
3564 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
3565 if the prologue calls the SHmedia argument decoder or register
3567 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3568 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
3569 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
3570 (sh_expand_epilogue): Don't emit USE of return target register.
3571 (prepare_move_operands): Legitimize DImode PIC addresses.
3572 (sh_media_register_for_return): Skip tr0, used to initialize the
3574 (sh_expand_prologue): Remove explicit USE of return register.
3575 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
3576 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
3577 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
3578 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
3579 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
3581 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
3582 (MOVI_SHORI_BASE_OPERAND_P): New.
3583 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
3584 (EXTRA_CONSTRAINT_T): Define in terms of them.
3585 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
3586 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
3587 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
3588 alternatives supporting TARGET_REGS.
3589 (UNSPEC_GOTPLT): New constant.
3590 (movdi split): Move incrementing of LABEL_NUSES...
3591 (movdi_const, movdi_const_32bit): Here. Use
3592 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
3593 (movdi_const_16bit): New.
3594 (call, call_value) [flag_pic]: Use GOTPLT.
3595 (call_pop, call_value_pop): New expands.
3596 (call_pop_compact, call_pop_rettramp): New insns.
3597 (call_value_pop_compact, call_value_pop_rettramp): New insns.
3598 (sibcall) [flag_pic]: Use GOT.
3599 (builtint_setjmp_receiver): Remove bogus, unused expand.
3600 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
3601 (*pt, *ptb, ptrel): New insns.
3602 (sym2GOT): Handle DImode GOT.
3603 (sym2GOTPLT, symGOTPLT2reg): New expands.
3604 (sym2PIC): New expand.
3605 (shcompact_return_tramp): Use GOTPLT to return trampoline.
3606 (shcompact_return_tramp_i): Use return register explicitly.
3607 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
3608 disable flag_reorder_blocks.
3609 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
3610 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
3611 clobbers, for clarity.
3612 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
3613 restoring of r0 in macl as MAYBE_DEAD.
3614 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
3615 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
3616 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
3617 alter_subreg all over.
3618 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
3619 reload, instead of emitting instructions that would require
3621 (casesi_load_media): Add missing modes.
3622 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
3623 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
3624 as used if the argument decoder is called.
3625 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
3626 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
3627 Pmode, then extend it to DImode if necessary.
3628 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
3629 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
3630 constants in FPU-enabled SHmedia, let them be loaded from memory.
3631 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
3632 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
3633 Adjust whitespace in assembly output templates.
3634 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
3635 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
3636 mode of if_then_else.
3637 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
3638 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
3640 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
3641 Joern Rennecke <amylaar@redhat.com>
3642 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
3643 (SUBTARGET_CPP_PTR_SPEC): New.
3644 (SUBTARGET_CPP_SPEC): Remove.
3645 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
3646 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
3647 Fix typo in previous checkin.
3648 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
3649 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
3650 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
3651 Alexandre Oliva <aoliva@redhat.com>
3652 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
3653 what single FP register can hold for SHmedia target.
3654 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
3655 Alexandre Oliva <aoliva@redhat.com>
3656 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
3657 Do not split into SUBREG.
3658 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
3659 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
3660 and added new functions as specified in SH5 ABI r9.
3661 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
3662 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
3664 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
3665 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
3666 gen_consttable_4 and gen_consttable_8. Emit multiple labels
3667 and consttable_window_ends.
3668 2001-06-03 Graham Stott <grahams@redhat,com>
3669 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
3670 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
3671 * config/sh/sh.c (print_operand): Handle floating-point pair,
3672 vector and matrix registers.
3673 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
3674 vector modes into account.
3675 * config/sh/sh.md (movv2sf): Split move between registers into
3677 (movv4sf, movv16sf): Introduce insns that get split only after
3679 * config/sh/shmedia.h: Fix Copyright dates.
3680 * config/sh/ushmedia.h: Likewise. Move loop counter
3681 declarations into conditionals that uses them.
3682 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
3684 * config/sh/sshmedia.h: Fix Copyright dates.
3685 (sh_media_PUTCFG): Fix constraints.
3686 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
3687 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
3688 ptrmemfunc_vbit_in_delta for SH5.
3689 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
3690 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
3691 * invoke.texi: Likewise.
3692 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
3693 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
3694 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
3695 GCC_pop_shmedia_regs_nofpu): New global symbols.
3696 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
3697 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
3698 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
3699 compact function with nonlocal labels.
3700 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
3701 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
3702 (initial_elimination_offset): Account for their stack space.
3703 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
3704 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
3705 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
3706 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
3707 least one of the operands to be a register.
3708 (movv2sf): Likewise. Renamed to movv2sf_i.
3709 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
3710 prepare_move_operands() before emitting SHmedia insns.
3711 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
3712 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
3713 Don't save nor initialize r12. Don't mis-align the stack.
3714 Pad the code with a nop.
3715 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
3717 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
3718 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
3719 [__SHMEDIA__]: Implement.
3720 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
3721 * config/sh/sh.md: Set latency of `pt' closer to reality.
3722 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
3723 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
3724 Set move, load and store type attributes.
3725 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
3726 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
3728 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
3729 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
3730 * config/sh/sh.c (sh_media_register_for_return): New function.
3731 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
3732 branch-target register.
3733 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
3734 * config/sh/sh.md (return_media_i): Use any call-clobbered
3735 branch-target register.
3736 (return_media): If r18 wasn't copied in the prologue, copy it
3738 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
3739 Clear class FP0_REGS.
3740 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
3742 2001-03-08 DJ Delorie <dj@redhat.com>
3743 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
3744 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
3745 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
3746 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
3747 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
3748 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
3749 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
3750 return value correctly for call_cookie.
3751 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
3752 * config/sh/crt1.asm (start): Modified so as to call
3753 ___setup_argv_and_call_main.
3754 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
3755 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
3757 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
3758 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
3759 (STRIP_NAME_ENCODING): Use it.
3760 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
3761 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
3762 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
3763 prepare_scc_operands().
3764 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
3765 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
3766 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
3767 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
3768 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
3769 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
3770 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
3771 used in shcompact_incoming_args.
3772 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
3774 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
3776 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
3778 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
3779 Simplify. Adjust. Add sanity check.
3780 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
3782 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
3784 (udivsi3, divsi3): Use them.
3785 (force_mode_for_call): New insn.
3786 (call, call_value, sibcall_value): Emit it before SHcompact
3788 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
3789 * config/sh/sh.md (call, call_value, sibcall): Make sure the
3790 call cookie is non-NULL before taking its value.
3791 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
3792 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
3793 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
3794 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
3796 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
3797 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
3798 temporary for stack adjusts. Use MACL and MACH to pass
3799 arguments to shcompact_incoming_args.
3800 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
3802 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
3803 (nested_trampoline): Load static chain address into r1.
3804 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
3805 2001-01-07 Alexandre Oliva <aoliva@redhat.com
3806 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
3807 fp_arith_reg_operand().
3808 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
3809 * config/sh/sh.md (casesi): Sign-extend the first two operands,
3810 and use signed compares for them.
3811 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
3812 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
3813 ones properly aligned.
3814 (find_barrier): Account for extra alignment needed for 8-byte wide
3816 (machine_dependent_reorg): Require a label for the second 4-byte
3817 constant after an 8-byte one.
3818 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
3820 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
3821 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
3822 last_float when switching float modes.
3823 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
3824 auto-increment for general-purpose registers.
3825 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
3827 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
3829 * config/sh/sh.c (sh_builtin_saveregs): Support using all
3830 registers for varargs.
3831 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
3832 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
3833 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
3834 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
3835 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
3836 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
3837 call_cookie accordingly.
3838 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
3839 (SHCOMPACT_BYREF): Likewise.
3840 (SHCOMPACT_FORCE_ON_STACK): New macro.
3841 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
3842 (sh_builtin_saveregs): Likewise.
3843 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
3844 shcompact_incoming_args): Use new shift values. Support
3845 sequences of consecutive and non-consecutive pushes/pops.
3846 * config/sh/sh.md (return): Don't explicitly use PR_REG.
3847 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
3848 * config/sh/sh.h (TEXT_SECTION): Define.
3849 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
3850 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
3851 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
3852 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
3853 return values on FPU-enabled SHmedia.
3854 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
3855 FPU-enabled SHmedia.
3856 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
3857 value is returned in a non-FP reg and is not returned by
3859 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
3861 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
3862 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
3863 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
3864 quad-aligned to be passed by callee-copy reference.
3865 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
3866 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
3867 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
3868 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
3869 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
3870 copying low-numbered FP regs to r7 and r8.
3871 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
3872 FP regs to general-purpose regs only if the copy was passed on the
3874 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
3875 copying FP reg to r9.
3876 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
3877 copy FP regs to general-purpose regs only in outgoing calls.
3878 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
3879 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
3881 * config/sh/sh.h (struct sh_args): Document all fields.
3882 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
3883 passed partially on the stack should not consider making
3885 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
3886 stack_regs only for incoming calls. When passing FP args,
3887 make sure there are FP regs available before modifying
3889 (SHCOMPACT_BYREF): Pass double args in general-purpose
3890 registers by reference.
3891 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
3892 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
3893 attempt to generate sibcalls if the caller got any arguments
3895 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
3896 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
3897 to 8-byte boundaries.
3898 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
3899 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
3900 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
3901 stored in the stack.
3902 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
3903 for the offsets to have the ISA bit set.
3904 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
3905 invocation. Use beq instead of bgt to mark end of sequence of
3907 (shcompact_incoming_args): Fix store of r2. Use beq instead of
3908 bgt to mark end of sequence of stores.
3909 * config/sh/sh.c (arith_operand): Don't check whether
3910 CONST_OK_FOR_J for now.
3911 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
3912 instead of long for conversion.
3913 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
3914 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
3915 before passing it to fprintf.
3916 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
3917 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
3918 Call set_fpscr before reading/writing SR.
3919 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
3921 * config/sh/lib1funcs.asm: Add `.align 2' directives before
3923 (FMOVD_WORKS): Define on SH5 with FPU.
3924 (set_fpscr): Define on SH5. Remove separate _fpscr_values
3926 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
3928 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
3929 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
3931 (ia_main_table): Ditto.
3932 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
3933 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
3934 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
3935 the definitions from sh.h.
3936 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
3938 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
3939 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
3940 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
3941 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
3942 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
3943 Increment LABEL_NUSES.
3945 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
3947 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
3949 * config/sh/elf.h (SIZE_TYPE): Likewise.
3950 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
3951 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
3952 shcompact_incoming_args): Load switch table addresses using
3954 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
3955 (NO_BUILTIN_SIZE_TYPE): Define.
3956 (SIZE_TYPE): Don't define.
3957 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
3958 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
3959 definition of __SH5__=32 for -m5-compact-nofpu.
3960 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
3962 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
3963 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
3964 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
3965 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
3966 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
3967 (INSN_LENGTH_ALIGNMENT): Likewise.
3968 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
3969 * config/sh/sh.md (call, call_value, sibcall): Simplify
3970 copying of non-branch-target register.
3971 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
3972 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
3973 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
3974 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
3975 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
3976 floating-point values as structs.
3977 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
3978 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
3979 general-purpose register.
3980 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
3981 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
3982 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
3983 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
3984 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
3985 (ENCODE_SECTION_INFO): Enclose variables and constants in
3987 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
3988 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
3989 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
3990 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
3991 only for LABEL_REFs. For SYMBOL_REFs, prepend
3992 SH_DATALABEL_ENCODING to the symbol name.
3993 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
3995 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
3996 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
3998 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
3999 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
4000 (DATALABEL_REF_P): Don't require CONST.
4001 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
4003 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
4004 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
4006 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
4007 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
4008 Use shallow_copy_rtx and PUT_MODE to change the mode of
4009 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
4010 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
4011 on SHmedia using GENERAL_REGs.
4012 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
4013 bltu_media_i): Fix reversion of conditions.
4014 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
4015 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
4016 * config/sh/sh.c (output_far_jump): Save r13 in macl.
4017 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
4018 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
4019 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
4020 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
4021 (GCC_nested_trampoline): Likewise.
4022 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
4023 * config/sh/sh.c (gen_datalabel_ref): Define.
4024 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
4025 (INITIALIZE_TRAMPOLINE): Likewise.
4026 (TRAMPOLINE_ADJUST_ADDRESS): Define.
4027 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
4028 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
4029 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
4030 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
4031 (ic_invalidate): Adjust for SH5.
4032 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
4033 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
4035 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
4036 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
4037 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
4038 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
4039 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
4040 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
4041 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
4042 * config/sh/sh.c (target_reg_operand): Match only target-branch
4043 registers and pseudos that aren't virtual registers.
4044 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
4045 Copy operands that don't match target_reg_operand to pseudos.
4046 (call_media, call_value_media, sibcall_media): Use
4047 target_reg_operand instead of target_operand.
4048 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
4049 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
4050 * config/sh/sh.c (target_reg_operand): Match hardware registers
4051 other than branch-target registers.
4052 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
4053 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
4054 (fpscr_values) [SH5 == 32]: Define.
4055 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
4056 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
4057 Handle function addresses coming in SUBREGs.
4058 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
4059 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
4060 shcompact_return_trampoline): Use datalabel where appropriate.
4061 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
4062 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
4063 general-purpose register to copy one branch-target register to
4065 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
4066 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
4067 SYMBOL_REFs with VOIDmode.
4068 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
4069 bltu_media_i): New insns.
4070 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
4071 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
4072 (INIT_CUMULATIVE_ARGS): Likewise.
4073 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
4074 * machmode.def (V16SFmode): New mode.
4075 * c-common.c (type_for_mode): Support V2SF and V16SF.
4076 * tree.c (build_common_tree_nodes_2): Likewise.
4077 * tree.h (tree_index): Likewise.
4078 * calls.c (emit_call_1): Take args_so_far. Adjust all
4079 callers. Introduce CALL_POPS_ARGS.
4080 * tm.texi (CALL_POPS_ARGS): Document.
4081 * config/sh/crt1.asm: Implement in SHmedia mode.
4082 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
4083 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
4084 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
4085 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
4086 Implement divsi and udivsi in SHmedia mode. Introduce
4087 SHcompact trampolines.
4088 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
4090 (regno_reg_class): Rewrite.
4091 (fp_reg_names): Remove.
4092 (sh_register_names, sh_additional_register_names): New.
4093 (print_operand): Added `u'. Support SUBREGs in addresses.
4094 Add parentheses around shifted CONSTs.
4095 (output_file_start): Output .mode and .abi directives.
4096 (shiftcosts, addsubcosts, multcosts): Adjust.
4097 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
4098 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
4099 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
4100 bytes, not registers. Take into account the need for the
4101 SHcompact incoming args trampoline. Adjust all callers.
4102 (sh_expand_prologue): Take stack_regs into account. Call
4103 incoming args trampoline. Keep stack aligned as per SH5 ABI.
4104 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
4105 stack aligned as per SH5 ABI.
4106 (sh_builtin_saveregs): Support SH5 ABI.
4107 (sh_build_va_list, sh_va_start): Likewise.
4108 (initial_elimination_offset): Take alignment into account.
4109 Compute location of PR according to the SH5 stack frame.
4110 (arith_reg_operand): Reject branch-target registers.
4111 (shmedia_6bit_operand): New.
4112 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
4113 (target_reg_operand): Match DImode only. Accept SUBREGs.
4114 (target_operand): New.
4115 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
4116 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
4117 SIBCALL_REGS for SHmedia.
4118 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
4119 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
4120 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
4121 (TARGET_SWITCHES): New SH5 flags.
4122 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
4123 VALID_REGISTER_P to disable unsupported registers.
4124 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
4125 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
4126 (FUNCTION_ARG_PADDING): Define.
4127 (FASTEST_ALIGNMENT): Adjust.
4128 (SH_REGISTER_NAMES_INITIALIZER): New.
4129 (sh_register_names): Declare.
4130 (DEBUG_REGISTER_NAMES): Define.
4131 (REGISTER_NAMES): Define based on sh_register_names.
4132 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
4133 (sh_additional_register_names): Declare.
4134 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
4135 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
4136 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
4137 (REGISTER_NATURAL_MODE): Define.
4138 (FIRST_PSEUDO_REGISTER): Adjust.
4139 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
4140 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
4141 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
4142 (VECTOR_MODE_SUPPORTED_P): Define.
4143 (REG_CLASS_CONTENTS): Adjust.
4144 (SMALL_REGISTER_CLASSES): Adjust.
4145 (REG_ALLOC_ORDER): Adjust.
4146 (INDEX_REG_CLASS): Adjust.
4147 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
4148 (CONST_OK_FOR_LETTER_P): Adjust.
4149 (PREFERRED_RELOAD_CLASS): Adjust.
4150 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
4151 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
4152 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
4153 (FIRST_FP_PARM_REG): Adjust.
4154 (CALL_POPS_ARGS): Define.
4155 (FUNCTION_ARG_REGNO_P): Adjust.
4156 (struct sh_args): New fields.
4157 (GET_SH_ARG_CLASS): Adjust.
4158 (INIT_CUMULATIVE_ARGS): Adjust.
4159 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
4160 (FUNCTION_ARG_ADVANCE): Adjust.
4161 (FUNCTION_ARG): Adjust.
4162 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
4163 (FUNCTION_ARG_CALLEE_COPIES): Define.
4164 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
4165 (STRICT_ARGUMENT_NAMING): Define.
4166 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
4167 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
4168 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
4169 (SETUP_INCOMING_VARARGS): Adjust.
4170 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
4171 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
4172 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
4173 (SUBREG_OK_FOR_INDEX_P): Adjust.
4174 (EXTRA_CONSTRAINT_S): Update.
4175 (EXTRA_CONSTRAINT_T): New.
4176 (EXTRA_CONSTRAINT): Adjust.
4177 (GO_IF_LEGITIMATE_INDEX): Adjust.
4178 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
4179 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
4181 (MAX_MOVE_MAX): Define.
4183 (CONST_COSTS): Adjust.
4184 (REGISTER_MOVE_COST): Adjust.
4185 (BRANCH_COST): Adjust.
4186 (TEXT_SECTION_ASM_OP): Adjust.
4187 (DBX_REGISTER_NUMBER): Adjust.
4188 (ASM_OUTPUT_DOUBLE_INT): New.
4189 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
4190 (PREDICATE_CODES): Adjust.
4191 (PROMOTE_MODE): Adjust.
4192 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
4193 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
4194 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
4195 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
4196 (DR0_REG, DR2_REG, DR4_REG): Renumber.
4197 (TR0_REG, TR1_REG, TR2_REG): New.
4198 (XD0_REG): Renumber.
4199 (UNSPEC_COMPACT_ARGS): New.
4200 (type): Added pt and ptabs.
4201 (length): Default to 4 on SHmedia. Default pt length to 12
4202 and 20 on SHmedia32 and SHmedia64, respectively.
4203 (pt): New function unit.
4204 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
4205 Add whitespace between operands of SHmedia instructions.
4207 (adddi3_media, addsi3_media): Adjust constraints.
4208 (subsi3) [SHmedia]: Force operand 1 into a register.
4209 (udivsi3_i1_media, udivsi3_i4_media): New.
4210 (udivsi3): Support SHmedia.
4211 (divsi3_i1_media, divsi3_i4_media): New.
4212 (divsi3): Support SHmedia.
4213 (anddi3, iordi3, xordi3): Adjust constraints.
4214 (zero_extendhidi2, zero_extendqidi2): New.
4215 (extendsidi2, extendhidi2, extendqidi2): New.
4216 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
4217 (pop_e, pop_fpul, pop_4): Likewise.
4218 (movsi_media): Support FP and BT registers.
4219 (movsi_media_nofpu): New. Adjust splits to DImode.
4220 (lduw, ldub): Renamed to zero_extend* above.
4221 (movqi_media): Fix typo.
4222 (movdi_media): Support FP and BT registers.
4223 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
4224 (movdi_const_32bit): New.
4225 (shori_media): Require immediate operand. Use `u' for output.
4226 (movdf_media, movsf_media): Simplified.
4227 (movdf_media_nofpu, movsf_media_nofpu): New.
4228 (movdf, movsf): Adjust
4229 (movv2sf, movv2sf, movv16sf): New.
4230 (beq_media, beq_media_i): Adjust constraints. Don't use
4231 scratch BT register.
4232 (bne_media, bne_media_i): Likewise.
4233 (bgt_media, bgt_media_i): Likewise.
4234 (bge_media, bge_media_i): Likewise.
4235 (bgtu_media, bgtu_media_i): Likewise.
4236 (bgeu_media, bgeu_media_i): Likewise.
4237 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
4238 bunordered): Emit jump insn. Force operands to registers when
4240 (jump_media, jump): Simplify.
4241 (call_compact, call_compact_rettramp): New.
4242 (call_value_compact, call_value_compact_rettramp): New.
4243 (call_media, call_value_media): Simplify.
4244 (sibcall_compact, sibcall_media): New.
4245 (call, call_value): Adjust for SHmedia and SHcompact.
4246 (sibcall, sibcall_value, untyped_call): Likewise.
4247 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
4248 (indirect_jump): Adjust for SHmedia.
4249 (casesi_jump_media): New.
4250 (nop): Re-enable for SHmedia.
4251 (call_site): Restrict to SH1.
4252 (casesi): Adjust for SHmedia.
4253 (casesi_shift_media, casesi_load_media): New.
4254 (return): Explicitly use PR register. Call return trampoline
4256 (return_i): Explicitly use PR register.
4257 (shcompact_return_tramp, shcompact_return_tramp_i): New.
4258 (return_media): Adjust.
4259 (shcompact_incoming_args): New.
4261 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
4262 (movstrsi): Disable on SH5.
4263 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
4264 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
4265 (subsf3, subsf3_media): Likewise.
4266 (mulsf3, mulsf3_media, mac_media): Likewise.
4267 (divsf3, divsf3_media): Likewise.
4268 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
4269 (floatsisf2, fux_truncsfsi2): Likewise.
4270 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
4272 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
4273 (cmpunsf_media, cmpsf): Likewise.
4274 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
4275 (abssf2, abssf2_media): Likewise.
4276 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
4277 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
4278 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
4279 (floatsidf2, fix_truncdfsi2): Likewise.
4280 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
4282 (cmpeqdf_media, cmpgtdf_media): Likewise.
4283 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
4284 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
4285 (absdf2, absdf2_media): Likewise.
4286 (extendsfdf2, extendsfdf2_media): Likewise.
4287 (truncsfdf2, truncsfdf2_media): Likewise.
4288 * config/sh/sh64.h: New file.
4289 * config/sh/t-sh64: New file.
4290 * config/sh/shmedia.h: New file.
4291 * config/sh/ushmedia.h: New file.
4292 * config/sh/sshmedia.h: New file.
4293 * configure.in: Added sh64-*-elf.
4294 * configure: Rebuilt.
4295 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
4296 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
4297 (reg_class_from_letter): Use `b' for TARGET_REGS.
4298 (print_operand): Support `%M', `%m', `AND' and
4299 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
4300 (andcosts): Adjust for SHmedia.
4301 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
4303 (target_reg_operand): New function.
4304 * config/sh/sh-protos.h (target_reg_operand): Declare.
4305 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
4306 FP registers on SH5.
4307 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
4309 (TARGET_REGISTER_P): New macro.
4310 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
4311 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
4312 (EXTRA_CONSTRAINT_S): New macro.
4313 (EXTRA_CONSTRAINT): Adjust.
4314 (FLOAT_TYPE_SIZE): Define to 32.
4315 (Pmode): DImode on SHmedia.
4316 (CONST_COSTS): Adjust for SHmedia literals.
4317 (PREDICATE_CODES): Added target_reg_operand.
4318 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
4319 * config/sh/sh.md: Remove all attrs from SHmedia insns.
4320 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
4321 (cmpdi): Accept SHmedia.
4322 (movdicc_false, movdicc_true): New insns.
4323 (movdicc): New expand.
4324 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
4326 (addsi3_media): Match `S' constraint.
4327 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
4328 (negdi2): Expand for SHmedia.
4329 (one_cmpldi2): New expand.
4330 (zero_extendsidi2): Change from expand to insn.
4331 (extendsidi2): Add constraints.
4332 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
4333 LD/ST address. Fix SI immediate loading split.
4334 (movhi_media, movqi_media, lduw, ldub): New insns.
4335 (movhi, movqi): Accept SHmedia.
4336 (shori_media, movdi_media): Relax input constraints. Split
4338 (movdf_media, movsf_media): New insn. New split to movdi.
4339 (movdf, movsf): Match on SHmedia.
4340 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
4341 bgeu_media): New insns and splits. New insns with `_i' suffix.
4342 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
4343 (bunordered): New expand.
4344 (jump_compact): Renamed from `jump'.
4345 (jump_media): New insn.
4347 (call_media, call_value_media): New insns.
4348 (call, call_value): Adjust.
4349 (indirect_jump_compact): Renamed from `indirect_jump'.
4350 (indirect_jump_media): New insn.
4351 (indirect_jump): New expand.
4352 (untyped_call, return): Accept SHmedia.
4353 (return_media): New insn.
4354 (prologue, epilogue, blockage): Accept SHmedia.
4355 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
4356 (sunordered): New expand.
4357 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
4358 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
4359 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
4360 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
4361 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
4362 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
4363 abssf2_media): New insns.
4364 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
4365 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
4366 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
4367 floatdidf2, floatsidf2_media, fix_truncdfdi2,
4368 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
4369 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
4370 absdf2_media): New insns.
4371 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
4372 (extendsfdf2_media, truncdfsf2_media): New insns.
4373 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4374 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
4375 * config/sh/sh.h (CONST_OK_FOR_J): Document.
4376 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
4377 * config/sh/sh.md (adddi3): New expand.
4378 (adddi3_media, adddi3z_media): New insns.
4379 (adddi3_compact): Renamed from adddi3.
4380 (addsi3_media): Use add.l r63 to add constant zero.
4381 (subdi3): New expand.
4382 (subdi3_media): New insn.
4383 (subdi3_compact): Renamed from subdi3.
4384 (mulsidi3): New expand.
4385 (mulsidi3_media): New insn.
4386 (mulsidi3_compact): Renamed from mulsidi3.
4387 (umulsidi3): New expand.
4388 (umulsidi3_media): New insn.
4389 (umulsidi3_compact): Renamed from umulsidi3.
4390 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
4391 (ashlsi3, ashrsi3, lshrsi3): Use them.
4392 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
4393 (ashldi3, ashrdi3, lshrdi3): Use them.
4394 (zero_extendsidi2): New expand.
4395 (extendsidi2): New insn.
4396 (movsi_media): New insn. Split to movdi to load constants.
4397 (movsi): Enable for shmedia.
4398 (movdi_media): New insn. Use shori_media to load wide constants.
4399 (short_media): New insn.
4400 (movdi): Enable for shmedia.
4401 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
4402 * config/sh/sh.h (CPP_SPEC): Added `m5'.
4403 (SUBTARGET_CPP_SPEC): Added `!m5'.
4404 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
4405 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
4406 to all other SH variants.
4407 (TARGET_DEFAULT): Set to SH1_BIT.
4408 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
4409 (BITS_PER_WORD): Raise to 64 on shmedia.
4410 (MAX_BITS_PER_WORD): Change to 64.
4411 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
4412 (INT_TYPE_SIZE): Keep as 32.
4413 (UNITS_PER_WORD): Raise to 8 on shmedia.
4414 (MIN_UNITS_PER_WORD): Keep as 4.
4415 (POINTER_SIZE): Raise to 64 on shmedia.
4416 (CONST_OK_FOR_J): New macro.
4417 (CONST_OK_FOR_LETTER_P): Use it.
4418 (processor_type): Add PROCESSOR_SH5.
4419 * config/sh/sh.md: Conditionalize all expands, insns and
4420 splits to TARGET_SH1.
4422 (addsi3_compact): Renamed from...
4423 (addsi3): Now an expand.
4424 (addsi3_media, subsi3_media): New insns.
4425 (subsi3): Don't negate constants with SHmedia.
4427 * hooks.c: New file.
4428 * hooks.h: New file.
4429 * Makefile.in (HOOKS_H): New.
4430 (TARGET_DEF_H): Added $(HOOKS_H).
4431 (OBJS): Added hooks.o.
4432 (cfgcleanup.o, bb-reorder.o): Added target.h.
4433 (hooks.o): Added dependencies.
4434 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
4435 (TARGET_INITIALIZER): this.
4436 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
4437 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
4438 * bb-reorder.c: Include target.h.
4439 (reorder_basic_blocks): Skip if cannot modify jumps.
4440 * cfgcleanup.c: Include target.h.
4441 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
4443 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4445 * config/mips/mips.md (casesi_internal, casesi_internal_di):
4446 Protect jump delay slot instructions with .set noreorder and
4449 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4451 * config/mips/mips.md (casesi_internal_di): Calculate
4452 the index into the target offset table correctly.
4454 2002-02-08 Richard Henderson <rth@redhat.com>
4456 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
4457 * final.c (output_addr_const): Accept and discard SUBREG.
4458 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
4459 mark them unknown instead.
4460 (simplify_subtraction): Handle RTX_UNKNOWN.
4461 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
4463 2002-02-08 David Edelsohn <edelsohn@gnu.org>
4465 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
4467 2002-02-08 Richard Henderson <rth@redhat.com>
4469 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
4471 2002-02-08 Andreas Jaeger <aj@suse.de>
4473 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
4474 * config/i386/t-linux64: New file.
4476 2002-02-08 Jakub Jelinek <jakub@redhat.com>
4478 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
4479 * c-parse.in (compstmt): Clear last_expr_type.
4481 2002-02-07 Richard Henderson <rth@redhat.com>
4483 * loop.c (strength_reduce): Sink final_value when not
4486 2002-02-07 David O'Brien <obrien@FreeBSD.org>
4488 * config/sparc/freebsd.h: Fix mismatched spec {.
4490 2002-02-07 Richard Henderson <rth@redhat.com>
4492 * cfgrtl.c: Include recog.h and insn-config.h.
4493 (keep_with_call_p): Fix general_operand invocation.
4494 * Makefile.in (cfgrtl.o): Update dependencies.
4496 2002-02-07 Kazu Hirata <kazu@hxi.com>
4498 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
4499 comment. Accept HImode only if TARGET_H8300.
4501 2002-02-07 Eric Christopher <echristo@redhat.com>
4503 * config/mips/crtn.asm: Cleanup #ifdefs.
4505 2002-02-07 Eric Christopher <echristo@redhat.com>
4507 * config/mips/crti.asm: Add changes for mips16. mips16 uses
4508 register 7 as RA instead of $31.
4509 * config/mips/crtn.asm: Ditto.
4510 * config/mips/mips.c (mips_move_2words): Add case for
4511 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
4512 (compute_frame_size): Fix typo.
4513 (save_restore_insns): Ditto. Make documentation about using
4514 register $7 as return register more precise.
4515 (mips_expand_epilogue): Fix comment. Add code to work around not
4516 being able to add to the stack pointer directly.
4517 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
4518 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
4521 2002-02-07 Tom Rix <trix@redhat.com>
4523 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
4524 immediates in ldu and stdu DS opcode field.
4525 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
4526 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
4527 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
4529 2002-02-07 Jeff Sturm <jsturm@one-point.com>
4531 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
4532 offset for stack bias.
4534 2002-02-07 H.J. Lu <hjl@gnu.org>
4536 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
4538 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
4540 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
4542 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
4544 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
4545 * i386.c (x86_order_regs_for_local_alloc): New global function.
4546 * i386.h (REG_ALLOC_ORDER): CLeanup.
4547 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
4549 2002-02-07 Richard Henderson <rth@redhat.com>
4551 PR optimization/2463
4552 * alias.c (find_base_value): Recall base values for fixed hard regs.
4553 * loop.c (loop_regs_update): Don't use single_set on non-insns.
4555 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
4557 * config/mips/mips.md (define_delay) [mips16]: Adjust required
4560 2002-02-06 Richard Henderson <rth@redhat.com>
4563 * stmt.c (resolve_operand_name_1): Take more care with mixed
4564 named and unnamed operands.
4566 2002-02-06 Janis Johnson <janis187@us.ibm.com>
4567 Jan Hubicka <jh@suse.cz>
4569 * loop.c (remove_constant_addition): Avoid clobbering a shared
4572 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
4574 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
4575 * config/s390/t-linux64: New file.
4576 * config/s390/libgcc-glibc.ver: New file.
4578 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
4580 * config/s390/linux64.h: Delete file.
4581 * config/s390/s390x.h: New file.
4582 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
4583 as target header file.
4584 * config/s390/linux.h (TARGET_VERSION): Define depending on
4585 DEFAULT_TARGET_64BIT.
4586 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
4587 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
4588 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
4589 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
4590 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
4591 (EXTRA_SPEC): New define.
4592 * config/s390/s390.h (TARGET_VERSION): Define depending on
4593 DEFAULT_TARGET_64BIT.
4594 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
4596 2002-02-06 Jason Merrill <jason@redhat.com>
4598 * c-decl.c (finish_function): Warn about a non-void function with
4599 no return statement and no abnormal exit.
4600 (current_function_returns_abnormally): New variable.
4601 (start_function): Clear it.
4602 (struct c_language_function): Add returns_abnormally.
4603 (push_c_function_context): Save it.
4604 (pop_c_function_context): Restore it.
4605 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
4606 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
4607 an explicit return type.
4608 * c-tree.h: Declare current_function_returns_abnormally.
4609 (C_FUNCTION_IMPLICIT_INT): New macro.
4610 * c-typeck.c (build_function_call): Set it.
4611 (c_expand_return): Set current_function_returns_value even if the
4614 2002-02-06 Jakub Jelinek <jakub@redhat.com>
4617 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
4618 unsafe for reevaluation.
4620 2002-02-06 Jakub Jelinek <jakub@redhat.com>
4623 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
4624 EXPR_STMT, but COMPOUND_STMT, recurse into it.
4626 2002-02-06 Richard Henderson <rth@redhat.com>
4628 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
4629 be a general_operand. Dest for function value must be a pseudo.
4631 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
4633 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
4634 as SYMBOL_REFs from the constant pool.
4636 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
4638 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
4639 passed by invisible reference.
4641 2002-02-05 Richard Henderson <rth@redhat.com>
4643 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
4645 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
4647 Implement using "base addresses" in insn operands as default.
4648 * config/mmix/mmix.c (mmix_conditional_register_usage): if
4649 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
4650 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
4651 used to read the rtx value.
4652 (mmix_target_asm_function_epilogue): Fix spacing.
4653 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
4654 (mmix_legitimate_address): Ditto.
4655 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
4656 should be loaded with a GETA insn. Don't allocate needless extra
4657 char for nul termination and fix misleading comment.
4658 (mmix_print_operand_address): Handle constants if
4659 TARGET_BASE_ADDRESSES.
4660 (mmix_output_register_setting): Use base addressing if
4661 TARGET_BASE_ADDRESSES and the number of insns is 3.
4662 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
4663 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
4664 to use R as constraint, add LDA to match s.
4665 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
4666 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
4667 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
4668 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
4669 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
4670 order with other fixed registers.
4671 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
4672 other parameter/call-clobbered registers.
4673 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
4674 -mbase-addresses, -mno-base-addresses.
4675 (MMIX Options): Ditto.
4677 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
4679 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
4681 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
4683 * config/rs6000/altivec.h: Change elem to _S_elem.
4685 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
4687 * config/netbsd.h (WCHAR_TYPE): Define.
4688 (WCHAR_TYPE_SIZE): Ditto.
4690 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
4691 (WCHAR_UNSIGNED): Ditto.
4692 (WCHAR_TYPE_SIZE): Ditto.
4694 * config/arm/netbsd.h: Likewise.
4695 * config/i386/netbsd-elf.h: Likewise.
4696 * config/i386/netbsd.h: Likewise.
4697 * config/m68k/netbsd-elf.h: Likewise.
4698 * config/m68k/netbsd.h: Likewise.
4699 * config/ns32k/netbsd.h: Likewise.
4700 * config/sparc/netbsd.h: Likewise.
4701 * config/vax/netbsd.: Likewise.
4703 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
4705 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
4706 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
4707 (TARGET_INITIALIZER): this.
4708 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
4709 (BITFIELD_NBYTES_LIMITED): Markup fix.
4710 * tree.h (default_ms_bitfield_layout_p): Declare.
4711 (record_layout_info): Added prev_field.
4712 * tree.c (default_ms_bitfield_layout_p): New fn.
4713 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
4714 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
4715 * stor-layout.c: Include target.h.
4716 (start_record_layout): Initialize prev_field.
4717 (place_field): Handle MS bit-field layout, and disregard
4718 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
4719 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
4720 * Makefile.in (stor-layout.o): Adjust dependencies.
4722 2002-02-05 Jason Merrill <jason@redhat.com>
4724 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
4726 2002-02-05 Andreas Jaeger <aj@suse.de>
4728 * crtstuff.c: Fix comments.
4730 2002-02-05 Richard Henderson <rth@redhat.com>
4733 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
4734 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
4737 * config/mips/mips.c (function_arg): Handle TImode.
4738 (function_arg_advance): Likewise.
4740 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
4742 * config/rs6000/altivec.h (vec_step_help): Rename to
4745 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
4747 * config/rs6000/altivec.h: Fix typos.
4749 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
4751 * config/arm/netbsd.h: Correct a comment.
4753 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
4755 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
4756 building void typed builtins.
4758 * config/rs6000/altivec.h (vec_ld*): Fix typos.
4759 (vec_step): Implement for C++.
4761 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4763 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
4765 2002-02-04 Richard Henderson <rth@redhat.com>
4767 * combine.c (nonzero_bits): Re-introduce special case for
4768 sp/fp/ap wrt REGNO_POINTER_ALIGN.
4770 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
4772 * doc/extend.texi: Warn about unsupported usage of altivec
4775 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
4776 (altivec_predicate_*): New.
4778 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
4779 Add C++ version of vec_*() functions.
4781 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
4782 (bdesc_2arg): Remove altivec predicates.
4783 (altivec_expand_builtin): Handle predicates.
4784 (altivec_init_builtins): Handle predicates.
4785 (altivec_expand_predicate_builtin): New.
4787 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
4789 * pa.c (DO_FRAME_NOTES): Move forward.
4790 (store_reg): Revise handling of frame notes.
4791 (load_reg): Likewise.
4792 (set_reg_plus_d): Likewise.
4793 (hppa_expand_prologue): Likewise.
4794 (hppa_expand_epilogue): Likewise.
4796 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
4798 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
4800 2002-02-04 Jakub Jelinek <jakub@redhat.com>
4802 PR c/4475, c++/3780:
4803 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
4804 * c-common.h (SWITCH_TYPE): Define.
4805 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
4806 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
4807 Rename spareness variable to sparseness.
4808 (expand_end_case_type): Renamed from expand_end_case, use orig_type
4809 if non-NULL instead of TREE_TYPE (orig_index).
4810 * tree.h (expand_end_case_type): Renamed from expand_end_case.
4811 (expand_end_case): Define using expand_end_case_type.
4812 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
4813 to expand_end_case_type.
4814 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
4816 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
4818 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
4819 (BIGGEST_ALIGNMENT): Change to 128.
4821 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
4823 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
4825 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
4827 * pa.md (call_internal_reg_64bit): Remove unused variable.
4829 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
4831 * config/arm/arm.h (machine_function): Add uses_anonymous_args
4833 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
4834 * config/arm/arm.c (current_function_anonymous_args): Delete,
4835 replace uses with cfun->machine->uses_anonymous_args.
4836 (arm_reorg): Do not reset uses_anonymous_args.
4838 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
4839 any geenral register.
4841 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
4843 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
4846 2002-02-04 Richard Henderson <rth@redhat.com>
4848 * combine.c (force_to_mode): Remove STACK_BIAS code.
4849 (nonzero_bits): Likewise. Replace sp/fp special case with
4850 REGNO_POINTER_ALIGN.
4852 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
4853 (HARD_FRAME_POINTER_REGNUM): New.
4854 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
4855 (FIXED_REGS, CALL_USED_REGS): Update.
4856 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
4857 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
4858 (HARD_REGNO_NREGS): Update for SFP.
4859 (STACK_POINTER_OFFSET): Include bias here ...
4860 (FIRST_PARM_OFFSET): ... not here.
4861 (STACK_BIAS): Remove.
4862 (INIT_EXPANDERS): New.
4863 (STARTING_FRAME_OFFSET): Do not include bias.
4864 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
4865 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
4866 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
4867 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
4868 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
4869 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
4870 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
4871 (MUST_SAVE_REGISTER): Likewise.
4872 (sparc_flat_function_prologue): Likewise.
4873 (sparc_flat_function_epilogue): Likewise.
4874 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
4875 (sparc_init_modes): SFP is GENERAL_REGS.
4876 (sparc_builtin_saveregs): SFP does not have bias applied.
4878 2002-02-04 Richard Henderson <rth@redhat.com>
4880 * config/alpha/alpha.c (current_function_is_thunk): Don't check
4881 current_function_is_thunk.
4882 (alpha_sa_mask): Distinguish between current_function_is_thunk
4883 called from ASM_OUTPUT_MI_THUNK and not.
4884 (alpha_does_function_need_gp): Thunks always need gp.
4885 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
4886 (alpha_output_mi_thunk_osf): New.
4887 * config/alpha/alpha-protos.h: Update.
4888 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
4890 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
4892 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
4893 function types, not when they're taken away.
4895 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
4897 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
4898 CODE_LABEL and jump table when replacing a table jump with a
4901 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
4903 * config/s390/s390-protos.h (legitimize_la_operand,
4904 s390_secondary_input_reload_class, s390_plus_operand,
4905 s390_expand_plus_operand): Add prototypes.
4907 config/s390/s390.c (s390_secondary_input_reload_class,
4908 s390_plus_operand, s390_expand_plus_operand): New functions.
4910 (struct s390_address): New member 'pointer'.
4911 (s390_decompose_address): Compute it.
4912 (legitimate_la_operand_p): Use it.
4913 (legitimize_la_operand): New function.
4914 (movti, movdi, movdf splitters): Call it.
4916 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
4917 (PREDICATE_CODES): Add s390_plus_operand.
4919 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
4920 (la_ccclobber): Allow GENERAL_REGS as output operand.
4922 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
4923 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
4924 (*la_64, *la_31, reload_indi, reload_insi): ... these.
4926 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
4928 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
4929 register names for regular asm () construct.
4931 2002-02-04 Jakub Jelinek <jakub@redhat.com>
4933 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
4936 2002-02-04 Jakub Jelinek <jakub@redhat.com>
4938 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
4941 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
4943 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
4944 constant pool to be identical by string address and index.
4946 2002-02-04 Anthony Green <green@redhat.com>
4948 * output.h (SECTION_OVERRIDE): Define.
4949 * varasm.c (named_section): Obey SECTION_OVERRIDE.
4951 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
4953 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
4954 by existing arm*-*-netbsd* (a.out) target.
4955 (ns32k-*-netbsdelf*): Likewise.
4956 (sparc-*-netbsdelf*): Likewise.
4957 (vax-*-netbsdelf*): Likewise.
4959 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
4961 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
4962 headers and libobjc headers.
4964 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
4966 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
4967 (_mingw.h): Remove duplicate include.
4969 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
4971 * config.gcc: Set cpu_type to m68k for 68010, as well.
4972 (m68010-*-netbsdelf*): New...
4973 (m68k*-*-netbsdelf*): ...targets.
4974 * config/m68k/netbsd-elf.h: New file.
4976 2002-02-02 Kazu Hirata <kazu@hxi.com>
4978 * config/h8300/h8300.c (hand_list): Move inside function_arg.
4980 2002-02-02 Kazu Hirata <kazu@hxi.com>
4982 * config/h8300/h8300.c (h8_push_ops): Move inside
4984 (h8_pop_ops): Likewise.
4985 (h8_move_ops): Likewise.
4987 2002-02-02 Kazu Hirata <kazu@hxi.com>
4989 * config/h8300/h8300.c (os_task): Make it static.
4990 (monitor): Likewise.
4991 (pragma_saveall): Likewise.
4993 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
4995 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
4996 constant is a valid sign-extension for Pmode.
4998 2002-02-02 Kazu Hirata <kazu@hxi.com>
5000 * config/h8300/h8300.c: Fix formatting.
5002 2002-02-02 Kazu Hirata <kazu@hxi.com>
5004 * config/h8300/h8300.md: Fix formatting.
5006 2002-02-02 Kazu Hirata <kazu@hxi.com>
5008 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
5009 predicates of operands[1]. Split the patterns for each
5012 2002-02-02 Kazu Hirata <kazu@hxi.com>
5014 * config/h8300/h8300.md (xor patterns): Tighten the predicates
5015 of operands[1] to register_operand.
5017 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
5019 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
5020 * cpphash.c (_cpp_init_hashtable): Similarly.
5021 * cppinit.c (cpp_create_reader): Default the signed_char flag.
5022 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
5023 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
5024 (cpp_handle_option): Handle the new options.
5025 * cpplex.c (cpp_interpret_charconst): Use new flag.
5026 * cpplib.h (struct cpp_options): New member signed_char.
5027 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
5028 (cpp_options): Handle -fsigned-char and -funsigned-char.
5029 (static_specs): Remove signed_char_spec.
5030 (do_spec1): Don't handle %c.
5031 * system.h: Poison SIGNED_CHAR_SPEC.
5032 * tradcif.y (yylex): Use flag_signed_char.
5033 * tradcpp.h (flag_signed_char): New.
5034 * tradcpp.c (flag_signed_char): New.
5035 (main): Handle new command-line options.
5036 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
5038 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
5039 * avr/avr.h: Remove old comments.
5040 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
5041 (CC1_SPEC): Pass -fsigned-char if -mic*.
5042 (SIGNED_CHAR_SPEC): Remove.
5044 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
5046 2002-02-01 Eric Christopher <echristo@redhat.com>
5048 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
5049 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
5050 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
5051 (ASM_OUTPUT_REG_POP): Ditto.
5053 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
5055 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
5058 2002-02-02 Jakub Jelinek <jakub@redhat.com>
5060 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
5062 2002-02-02 Jakub Jelinek <jakub@redhat.com>
5065 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
5068 2002-02-01 Janis Johnson <janis187@us.ibm.com>
5070 * cfganal.c: Include tm_p.h.
5071 (keep_with_call_p): Fix the test that determines if a register holds
5072 the return value of a call.
5074 2002-02-01 DJ Delorie <dj@redhat.com>
5076 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
5077 we are given conflicting registers, switch to the other one we
5078 had allocated for us.
5079 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
5080 as TImode so we know when the "other" register is available.
5082 2002-02-01 David O'Brien <obrien@FreeBSD.org>
5084 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
5087 2002-02-01 Janis Johnson <janis187@us.ibm.com>
5089 * cfganal.c (keep_with_call_p): New function.
5090 (flow_call_edges_add): Prevent splitting a block between a call and
5091 a single-set instruction that should be kept in the same block.
5093 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
5095 * doc/install.texi (avr): Update outdated URL.
5097 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
5099 * config/stormy16/stormy16.md (pushqi): New.
5103 (movhi): Remove stack operands.
5105 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
5106 nonimmediate_nonstack_operand.
5107 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
5109 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
5112 2002-01-31 Jason Merrill <jason@redhat.com>
5114 * Makefile.in (c-parse.c): Handle .output file.
5115 * objc/Make-lang.in (objc-parse.c): Likewise.
5117 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
5119 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
5120 the -me[lb] option is given. Don't output the default flag
5123 2002-01-31 Zack Weinberg <zack@codesourcery.com>
5125 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
5126 the primary source file; this has not been done yet.
5127 * c-decl.c (c_expand_body): Reset input_filename from
5128 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
5130 2002-01-31 Kazu Hirata <kazu@hxi.com>
5132 * rtlanal.c (subreg_regno_offset): Do not use
5133 SUBREG_REGNO_OFFSET.
5134 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
5135 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
5137 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
5139 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
5140 version rather than GNATS version in --version output.
5142 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
5144 * ifcvt.c (noce_process_if_block): Make a copy of the destination
5145 when copying back from a temporary.
5147 2002-01-30 Richard Henderson <rth@redhat.com>
5149 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
5150 and new_dest are the same.
5152 2002-01-30 Richard Henderson <rth@redhat.com>
5155 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
5156 * rtl.c (note_insn_name): Update.
5157 * emit-rtl.c (remove_unnecessary_notes): Kill it.
5158 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
5159 to perform loop rotation.
5160 (expand_exit_loop_top_cond): New.
5161 * tree.h (expand_exit_loop_top_cond): Declare it.
5162 * c-semantics.c (genrtl_while_stmt): Use it.
5163 (genrtl_for_stmt): Likewise.
5165 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
5167 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
5168 arguments to 64-bit boundaries on 64-bit ABIs.
5170 2002-01-30 Steve Ellcey <sje@cup.hp.com>
5172 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
5174 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
5176 * c-decl.c (grokdeclarator): Handle type being a typedef for an
5179 2002-01-30 David O'Brien <obrien@FreeBSD.org>
5181 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
5182 * config/sparc/sparc_bi.h: Remove file.
5183 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
5185 2002-01-30 Richard Henderson <rth@redhat.com>
5187 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
5189 2002-01-30 Zack Weinberg <zack@codesourcery.com>
5191 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
5193 2002-01-30 Jason Merrill <jason@redhat.com>
5195 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
5196 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
5197 (reg_save): Use DW_CFA_offset_extended_sf instead.
5199 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
5201 2002-01-29 Jakub Jelinek <jakub@redhat.com>
5203 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
5206 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
5208 * rs6000.md ("*call_value_local32"): Remove constraints.
5209 ("*call_value_local64"): Same.
5210 ("*call_value_indirect_nonlocal_aix32"): Same.
5211 ("*call_value_nonlocal_aix32"): Same.
5212 ("*call_value_indirect_nonlocal_aix64"): Same.
5213 ("*call_value_nonlocal_aix64"): Same.
5214 ("*call_value_nonlocal_sysv"): Same.
5216 2002-01-29 Richard Henderson <rth@redhat.com>
5218 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
5220 2002-01-29 Richard Henderson <rth@redhat.com>
5222 * expr.c (force_operand): Ignore flag_pic for detecting pic
5224 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
5225 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
5226 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
5227 instead of open-coded loop.
5228 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
5229 be fixed when in use.
5231 2002-01-29 Richard Henderson <rth@redhat.com>
5233 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
5234 * sched-rgn.c (propagate_deps): Update them.
5235 * sched-deps.c (sched_analyze_insn): Update them. Flush the
5236 clobbers list when either gets too long.
5238 2002-01-29 Jakub Jelinek <jakub@redhat.com>
5240 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
5241 and INDEX_REGS the same as GENERAL_REGS.
5242 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
5244 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
5246 * tree.c (build_nonstandard_integer_type): Correct prototype.
5248 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
5250 * config/s390/s390.md (movstrsico, movstrdix_64,
5251 movstrsix_31): Remove, replace by ...
5252 (movstrdi_short, movstrsi_short, movstrdi_long,
5253 movstrsi_long): ... these. New.
5254 (movstrdi, movstrsi): Adapt.
5256 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
5257 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
5258 Remove unnecessary CC clobber.
5259 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
5260 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
5262 (divmoddi4): Don't partially initialize TImode register.
5264 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
5266 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
5268 2002-01-29 Richard Henderson <rth@redhat.com>
5270 * flow.c (print_rtl_and_abort): Remove.
5271 (print_rtl_and_abort_fcn): Remove.
5272 (verify_local_live_at_start): Use dump_bb instead.
5273 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
5274 (verify_wide_reg_1): Return 2 on mode test failure.
5276 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
5278 PR c/3325, c/3326, c/2511, c/3347
5279 * c-decl.c (enum_decl_context): Remove BITFIELD.
5280 (grokdeclarator): Take bitfield width as an input.
5281 Ensure bitfields are given the correct type. Perform
5282 bitfield width validation with build_bitfield_integer_type
5283 rather than waiting for finish_struct.
5284 (grok_typename, grok_typename_in_parm_context, start_decl,
5285 push_parmdecl, grokfield, start_function): Update calls to
5287 (build_bitfield_integer_type): New function.
5288 (finish_struct): Move bitfield validation to grokdeclarator
5289 and build_bitfield_integer_type.
5290 * tree.c (build_nonstandard_integer_type): New function.
5291 * tree.h (build_nonstandard_integer_type): New prototype.
5293 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
5295 2002-01-29 Jakub Jelinek <jakub@redhat.com>
5298 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
5299 don't ignore unrecognized -W* options.
5300 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
5301 * cpplib.h (cpp_handle_option): Adjust prototype.
5302 * c-decl.c (c_decode_options): Pass 0 as last argument to
5306 * gcc.c (cpp_unique_options): Split from cpp_options.
5307 (cpp_options): Source cpp_unique_options.
5308 (default_compilers): Use cpp_unique_options instead of cpp_options
5309 when used together with cc1_options.
5310 (static_specs): Add cpp_unique_options.
5311 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
5312 when used together with cc1_options.
5314 2002-01-29 Kazu Hirata <kazu@hxi.com>
5316 * config/h8300/h8300-protos.h: Update the prototype of
5318 * config/h8300/h8300.c (output_a_shift): Remove an unused
5319 argument 'insn'. Remove redundant code.
5320 * config/h8300/h8300.md: Adust to the new prototype of
5323 2002-01-29 Kazu Hirata <kazu@hxi.com>
5325 * config/h8300/h8300-protos.h: Update the prototypes of
5326 emit_a_rotate and expand_a_rotate.
5327 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
5328 first argument to 'enum rtx_code'.
5329 (expand_a_rotate): Likewise.
5331 2002-01-28 Kazu Hirata <kazu@hxi.com>
5333 * config/h8300/h8300-protos.h: Update the prototype of
5335 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
5337 * config/h8300/h8300.md: Adjust to the new prototype.
5339 2002-01-28 Kazu Hirata <kazu@hxi.com>
5341 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
5344 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
5346 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
5347 is a fixed register before returning pic_offset_table_rtx.
5348 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
5349 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
5351 2002-01-28 Jason Merrill <jason@redhat.com>
5353 * dwarf2.h: Sync with src version.
5355 2002-01-28 Paul Koning <pkoning@equallogic.com>
5357 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
5359 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
5360 * doc/extend.texi (__builtin_prefetch): Update documentation:
5361 first argument is now const void ptr.
5363 2002-01-28 Kazu Hirata <kazu@hxi.com>
5365 * config/h8300/h8300-protos.h: Remove an unused prototype.
5367 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
5369 * toplev.c (lang_independent_init): Round up identifier size.
5371 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
5373 * config.gcc: Revert previous change.
5375 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
5377 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
5379 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
5381 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
5382 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
5383 other non-elf netbsd config frags.
5384 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
5385 collect2 will does that.
5386 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
5387 shared-lib frobbing will work.
5389 2002-01-28 Kazu Hirata <kazu@hxi.com>
5391 * config/h8300/h8300.h: Fix formatting.
5392 * config/h8300/h8300.md: Likewise.
5394 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
5396 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
5397 the old, removed AAA_standards fix.
5398 * fixinc/fixincl.x: Rebuilt.
5400 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
5402 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
5403 atexit call in crtbegin, hooked in after call to frame_dummy;
5404 register EH before registering __fini__start.
5406 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
5408 * config/rs6000/altivec.h: Remove spurious semicolons.
5410 2002-01-27 Kazu Hirata <kazu@hxi.com>
5412 * config/h8300/h8300.md: Replace dead bit extraction patterns
5413 with ones that work.
5415 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5417 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
5418 if not STRICT_ALIGNMENT.
5419 * rtl.h (MEM_ALIGN): Likewise.
5421 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
5423 * doc/invoke.texi (-fdump-translation-unit): Revert this
5424 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
5426 2002-01-27 Kazu Hirata <kazu@hxi.com>
5428 * config/h8300/h8300.md (define_constants): New.
5429 (anonymous patterns) Use defined constants appropriately.
5431 2002-01-27 Kazu Hirata <kazu@hxi.com>
5433 * config/h8300/h8300.c (function_arg): Remove redundant code.
5435 2002-01-26 Richard Henderson <rth@redhat.com>
5437 * sched-deps.c (reg_pending_uses_head): New.
5438 (reg_pending_barrier): Rename from reg_pending_sets_all.
5439 (find_insn_list): Don't mark inline.
5440 (find_insn_mem_list): Remove.
5441 (add_dependence_list, add_dependence_list_and_free): New.
5442 (flush_pending_lists): Replace only_write param with separate
5443 for_read and for_write parameters. Update all callers. Use
5444 add_dependence_list_and_free.
5445 (sched_analyze_1): Do not add reg dependencies here; just set
5446 the pending bits. Use add_dependence_list.
5447 (sched_analyze_2): Likewise.
5448 (sched_analyze_insn): Replace schedule_barrier_found with
5449 reg_pending_barrier. Add all dependencies for pending reg
5450 uses, sets, and clobbers.
5451 (sched_analyze): Don't add reg dependencies for calls, just
5452 set pending bits. Use regs_invalidated_by_call. Treat
5453 sched_before_next_call as a normal list, not a fake insn.
5454 (init_deps): No funny init for sched_before_next_call.
5455 (free_deps): Free pending mems lists. Don't zero reg_last.
5456 (init_deps_global): Init reg_pending_uses.
5457 (finish_deps_global): Free it.
5458 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
5459 (find_insn_mem_list): Remove.
5460 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
5461 (propagate_deps): Use them. Zero temp mem lists.
5463 2002-01-26 Richard Henderson <rth@redhat.com>
5465 * Makefile.in (CRTSTUFF_CFLAGS): New.
5466 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
5467 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
5468 crtstuff.c instead of alpha assembly version.
5469 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
5470 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
5471 not FORCE_{INIT,FINI}_SECTION_ALIGN.
5472 (__do_global_dtors_aux): Mark used.
5473 (frame_dummy, __do_global_ctors_aux): Mark used.
5474 (fini_dummy, init_dummy): Remove.
5476 * config/alpha/crtbegin.asm: Remove file.
5477 * config/alpha/crtend.asm: Remove file.
5478 * config/alpha/t-crtbe: Remove file.
5479 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
5480 (LINK_EH_SPEC): New.
5482 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
5483 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
5484 calling constructors.
5485 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
5487 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
5488 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
5489 CRT_END_INIT_DUMMY hack.
5490 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
5491 FORCE_{INIT,FINI}_SECTION_ALIGN.
5493 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
5494 FORCE_{INIT,FINI}_SECTION_ALIGN.
5496 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
5497 invocation sequence.
5498 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
5500 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
5501 (FORCE_CODE_SECTION_ALIGN): New.
5503 2002-01-26 Richard Henderson <rth@redhat.com>
5505 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
5507 2002-01-26 Richard Henderson <rth@redhat.com>
5509 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
5510 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
5512 2002-01-26 Kazu Hirata <kazu@hxi.com>
5514 * config/h8300/h8300.md: Remove bit extraction patterns that
5515 cannot be triggered.
5516 Restrict each bit extraction pattern to a variant on which the
5519 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
5521 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
5523 2002-01-26 Kazu Hirata <kazu@hxi.com>
5525 * config/h8300/h8300.md: Remove bit test patterns that cannot
5527 Restrict each bit test pattern to a variant on which the
5530 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5532 * builtins.c (expand_builtin_strncat): Remove redundant check for
5535 2002-01-25 David O'Brien <obrien@FreeBSD.org>
5537 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
5539 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
5542 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
5544 * dbxout.c (dbxout_init): Use assemble_name rather than just
5545 stripping off the first character.
5546 (dbxout_source_file): Likewise.
5548 2002-01-25 DJ Delorie <dj@redhat.com>
5550 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
5551 using rtx_equal_p, not by comparing pointers.
5553 2002-01-25 Steve Ellcey <sje@cup.hp.com>
5555 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
5556 for PIC_OFFSET_TABLE_REGNUM.
5557 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
5559 2002-01-25 David O'Brien <obrien@FreeBSD.org>
5561 * config.gcc (x86_64-*-freebsd*): New target.
5562 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
5564 (i[34567]86-*-freebsd*): Don't include svr4.h.
5565 * config/i386/freebsd64.h: New file.
5567 2002-01-25 Douglas B Rupp <rupp@gnat.com>
5569 * config/alpha/x-vms (version): Make static.
5571 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
5572 in previous checkin.
5574 * Makefile.in (install-headers-cp): New target.
5575 * config.gcc (alpha-dec-*vms*): Install headers with
5578 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
5580 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
5583 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5585 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
5586 of compare_tree_int.
5587 (expand_builtin_strncat): Likewise.
5588 * c-decl.c (finish_struct): Use tree_low_cst.
5589 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
5590 * tree.c (compare_tree_int): Likewise.
5592 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
5594 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
5595 adjustments even if they are implemented by more than two insns.
5597 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
5599 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
5600 * df.h (struct ref): Kill B.
5601 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
5603 * basic-block.h (PROP_EQUAL_NOTES): New flag.
5604 * flow.c (propagate_one_insn): Use it.
5605 (mark_used_regs): Handle NIL.
5607 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
5609 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
5612 2002-01-25 David Edelsohn <edelsohn@gnu.org>
5614 * rs6000.md (prefetch): Make address V4SI mode so that the address
5615 is restricted to legitimate form for instruction.
5617 2002-01-25 Bob Wilson <bob.wilson@acm.org>
5619 * doc/install.texi (xtensa-*-elf): New target.
5620 (xtensa-*-linux*): New target.
5621 * doc/contrib.texi: Add myself.
5623 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
5625 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
5626 purpose register to hold an SImode (or smaller) value.
5628 2002-01-25 Jakub Jelinek <jakub@redhat.com>
5630 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
5632 * crtstuff.c: Likewise.
5634 2002-01-25 Kazu Hirata <kazu@hxi.com>
5636 * config/h8300/h8300.md (negation patterns): Tighten
5637 predicates to register_operand.
5639 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
5641 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
5644 * builtins.c (expand_builtin_prefetch): Same.
5646 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5648 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
5651 2002-01-24 Kazu Hirata <kazu@hxi.com>
5653 * config/h8300/h8300.c (print_operand): Remove support for
5654 operand character 'A'.
5655 * config/h8300/h8300.md (three anonymous patterns): Replace
5656 operand character 'A' with either 'T' or 'S'.
5658 2002-01-24 Kazu Hirata <kazu@hxi.com>
5660 * config/h8300/h8300.c (print_operand): Remove support for
5661 operand character 'U'.
5663 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
5665 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
5667 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
5669 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
5670 values to be assigned to the stack pointer.
5672 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
5674 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
5675 to const_double needs to be done right for big-endian systems.
5677 2002-01-24 Jason Merrill <jason@redhat.com>
5680 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
5681 to can_throw_internal.
5683 2002-01-23 Richard Henderson <rth@redhat.com>
5685 * fold-const.c (fold): Change UINT_MAX test to check vs precision
5686 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
5688 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5690 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
5691 (symGOT2reg): Use them, then set as GOT value as unchanging.
5692 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
5693 as a temporary, if possible.
5694 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
5695 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
5697 2002-01-23 Kazu Hirata <kazu@hxi.com>
5699 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
5700 accept to accept 0x80 as operands[2].
5702 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5704 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
5706 2002-01-23 Richard Henderson <rth@redhat.com>
5708 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
5710 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
5712 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
5713 (parmlist_or_identifiers_1): Verify that only a parmlist follows
5716 2002-01-23 Richard Henderson <rth@redhat.com>
5718 * expr.c (move_by_pieces_1): Extend size before negation.
5720 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
5721 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
5722 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
5723 * config/m68k/t-m68kelf: Likewise.
5725 2002-01-23 Bob Wilson <bob.wilson@acm.org>
5727 * config/xtensa/elf.h: New file.
5728 * config/xtensa/lib1funcs.asm: New file.
5729 * config/xtensa/lib2funcs.S: New file.
5730 * config/xtensa/linux.h: New file.
5731 * config/xtensa/t-xtensa: New file.
5732 * config/xtensa/xtensa-config.h: New file.
5733 * config/xtensa/xtensa-protos.h: New file.
5734 * config/xtensa/xtensa.c: New file.
5735 * config/xtensa/xtensa.h: New file.
5736 * config/xtensa/xtensa.md: New file.
5737 * config.gcc (xtensa-*-elf*): New target.
5738 (xtensa-*-linux*): New target.
5739 * cse.c (canon_hash): Compare rtx pointers instead of register
5740 numbers. This is required for the Xtensa port.
5741 * integrate.c (copy_insn_list): Handle case where the static
5742 chain is in memory and the memory address has to be copied to
5744 * doc/invoke.texi (Option Summary): Add Xtensa options.
5745 (Xtensa Options): New node.
5746 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
5748 2002-01-23 Zack Weinberg <zack@codesourcery.com>
5750 * diagnostic.c (internal_error): Do ICE suppression only
5751 when ENABLE_CHECKING is not defined.
5753 * c-typeck.c (require_complete_type): Return error_mark_node
5754 if type is error_mark_node.
5756 2002-01-23 Janis Johnson <janis187@us.ibm.com>
5758 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
5759 -Os and issue a warning.
5761 2002-01-23 Zack Weinberg <zack@codesourcery.com>
5763 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
5764 current (lack of) need for host configuration by hand.
5766 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
5767 references. Documentation of some target macros moved from
5768 hostconfig.texi to tm.texi.
5770 2002-01-23 Will Cohen <wcohen@redhat.com>
5772 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
5775 2002-01-23 Kazu Hirata <kazu@hxi.com>
5777 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
5780 2002-01-23 Jason Merrill <jason@redhat.com>
5782 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
5784 * function.c (assign_parms): Don't put args of inline functions
5785 into registers when not optimizing.
5787 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
5789 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
5790 (prologue_use): New pattern.
5791 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
5792 preference to gen_rtx_USE.
5793 (thumb_expand_prologue): Use gen_prologue_use in preference to
5795 (thumb_expand_epilogue): Use gen_prologue_use in preference to
5798 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
5800 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
5802 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
5805 * doc/extend.texi: Correct documentation of __alignof__.
5807 2002-01-22 Zack Weinberg <zack@codesourcery.com>
5809 * params.h: Rename arguments of DEFPARAM so that it will be
5810 recognized as a translation keyword.
5812 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
5814 * extend.texi: Document altivec functions.
5815 Fix N-bit adjectives in X86 builtin documentation.
5817 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
5819 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
5820 auto_inc_dec values.
5822 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
5824 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
5826 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
5828 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
5830 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
5832 2002-01-22 Richard Henderson <rth@redhat.com>
5834 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
5835 copy_insn not copy_rtx.
5837 2002-01-23 Alan Modra <amodra@bigpond.net.au>
5839 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
5840 "nonzero" as that might add "1" bits. Ensure "constop" is
5841 properly sign extened.
5842 (force_to_mode): Tweak for sign extended constop.
5844 2002-01-22 Richard Henderson <rth@redhat.com>
5846 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
5847 for_each_rtx instead of assuming we're already looking at the MEM.
5848 (split_small_symbolic_mem_operand): Likewise.
5849 * config/alpha/alpha.h (PREDICATE_CODES): Update.
5850 * config/alpha/alpha.md (small symbolic memory splitters): Update.
5852 2002-01-22 Richard Henderson <rth@redhat.com>
5854 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
5855 sequence number for the literal.
5856 (divmoddi_internal_er): Likewise.
5858 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
5861 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
5862 in LIBICONV variable.
5863 * configure: Regenerated.
5865 2002-01-22 Krister Walfridsson <cato@df.lth.se>
5867 * dependence.c (build_def_use): Remove array_idx.
5869 * dwarfout.c (last_filename): Remove.
5870 (output_compile_unit_die): Remove last_filename.
5872 2002-01-22 Roger Sayle <roger@eyesopen.com>
5873 Richard Henderson <rth@redhat.com>
5876 * fold-const.c (fold): Optimize unsigned comparisons against
5877 UINT_MAX (and similar unsigned constants).
5879 2002-01-22 Janis Johnson <janis187@us.ibm.com>
5881 * Makefile.in (loop.o): Depend on OPTABS_H.
5882 * loop.c (emit_prefetch_instructions): Check the prefetch operand
5883 against the predicate.
5886 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
5887 for the address operand.
5889 2002-01-22 Richard Henderson <rth@redhat.com>
5891 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
5893 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
5896 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
5899 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
5901 * config.gcc (x86_64-*-netbsd*): New target.
5902 * config/i386/netbsd64.h: New file.
5904 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
5906 * regrename.c (kill_value): Fix typo.
5908 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
5910 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
5912 * config/rs6000/rs6000.h: Same.
5914 * function.c (instantiate_virtual_regs): Remove
5915 STARTING_FRAME_PHASE.
5916 (assign_stack_local_1): Same.
5917 Calculate frame phase.
5919 2002-01-22 Nick Clifton <nickc@redhat.com>
5921 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
5922 variable declaration to outer scope in order to simplify
5924 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
5925 arm_hard_regno_mode_ok.
5926 * config/arm/arm-protos.h: Add a prototype for
5927 arm_hard_regno_mode_ok.
5928 * config/arm/arm.c (soft_df_operand): Remove now redundant
5929 check for DImode values using IP_REGNUM.
5930 (nonimmediate_soft_df_operand): Remove now redundant check for
5931 DImode values using IP_REGNUM.
5932 (arm_hard_regno_mode_ok): New function. New check: make sure
5933 that DImode values are not stored in IP_REGNUM.
5935 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
5937 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
5939 2002-01-22 Jason Merrill <jason@redhat.com>
5941 * c-semantics.c (genrtl_compound_stmt): Only check nesting
5942 consistency if this COMPOUND_STMT is scoped.
5944 2002-01-22 Kazu Hirata <kazu@hxi.com>
5946 * predict.c: Fix formatting.
5947 * print-tree.c: Likewise.
5948 * protoize.c: Likewise.
5951 * sbitmap.h: Likewise.
5953 * sched-deps.c: Likewise.
5954 * sched-vis.c: Likewise.
5955 * sdbout.c: Likewise.
5956 * sibcall.c: Likewise.
5958 * ssa-ccp.c: Likewise.
5959 * ssa-dce.c: Likewise.
5961 * stor-layout.c: Likewise.
5962 * system.h: Likewise.
5964 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5966 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
5967 if fits in bounds of base type.
5969 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
5970 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
5971 (add_bound_info, default): If can't find a context, make a
5973 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
5975 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
5977 * c-typeck.c (parser_build_binary_op): If result from
5978 build_binary_op is ERROR_MARK just return error_mark_node without
5981 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
5983 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
5984 Split a.out-specific bits into...
5985 * config/netbsd-aout.h: ...this.
5986 * config/netbsd-elf.h: New file.
5987 * config/alpha/netbsd-elf.h: Remove.
5988 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
5989 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
5990 (STARTFILE_SPEC): Remove redundant definition.
5991 (ENDFILE_SPEC): Likewise.
5992 (LINK_SPEC): Likewise.
5993 (CPP_SPEC): Likewise.
5994 (ASM_SPEC): Likewise.
5995 (LIB_SPEC): Likewise.
5996 (SWITCH_TAKES_ARG): Likewise.
5997 (TARGET_MEM_FUNCTIONS): Likewise.
5998 (CPP_PREDEFINES): Redefine.
5999 (ASM_FINAL_SPEC): Remove redefinition.
6000 (ASM_COMMENT_START): Redefine.
6001 (FUNCTION_PROFILER): Define.
6002 (TARGET_VERSION): Redefine.
6003 Comment and formatting cleanup.
6004 * config/i386/netbsd.h: Include <netbsd-aout.h>.
6005 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
6006 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
6007 big- or little-endian.
6008 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
6009 * config.gcc (*-*-netbsd*): Add definitions common to all
6011 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
6012 gnu_ld definitions. Add netbsd-elf.h to and remove
6013 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
6014 tmake_file, and don't lose previous tmake_file contents.
6015 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
6016 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
6017 gnu_ld definitions. Add netbsd-elf.h to tm_file.
6018 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
6019 (mipsel-*-netbsd*): Rename this to...
6020 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
6021 mips/little.h to tm_file for mips*el-*.
6022 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
6023 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
6024 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
6026 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
6028 * pa-protos.h (reg_before_reload_operand): New function prototype.
6029 * pa.c (reg_before_reload_operand): New function implementation.
6030 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
6033 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6035 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
6037 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
6039 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
6040 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
6041 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
6042 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
6043 (ENDFILE_SPEC): Undefine.
6044 (STARTFILE_SPEC): Redefine for PA.
6046 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6048 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
6050 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
6052 * config.gcc: Add entries to supported PowerPC --with-cpu
6055 2002-01-21 Jakub Jelinek <jakub@redhat.com>
6057 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
6058 true for 64-bit mode only SSE registers in 32-bit mode.
6060 2002-01-21 Kazu Hirata <kazu@hxi.com>
6062 * unwind-dw2.c: Fix formatting.
6063 * unwind-dw2-fde.c: Likewise.
6064 * unwind-dw2-fde.h: Likewise.
6065 * unwind-pe.h: Likewise.
6066 * varasm.c: Likewise.
6067 * varray.h: Likewise.
6069 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
6071 Remove workaround for register stack overwrite bug in mmix.
6072 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
6073 support for TARGET_REG_STACK_FILL_BUG.
6074 * config/mmix/mmix.h: Remove member has_call_without_parameters.
6075 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
6077 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
6078 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
6079 -mno-reg-stack-fill-bug-workaround.
6080 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
6081 machine member has_call_without_parameters.
6082 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
6083 -mreg-stack-fill-bug-workaround and
6084 -mno-reg-stack-fill-bug-workaround.
6085 (MMIX Options): Ditto.
6087 2002-01-21 Kazu Hirata <kazu@hxi.com>
6089 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
6091 Remove redundant code.
6093 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
6095 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
6096 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
6097 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
6098 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
6099 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
6100 out target macro definitions and non-target-specific comments
6101 mostly taken from old versions of the manual.
6103 2002-01-20 Kazu Hirata <kazu@hxi.com>
6105 * config/h8300/h8300.h: Fix comment formatting.
6106 * config/ia64/aix.h: Likewise.
6107 * config/ia64/ia64-protos.h: Likewise.
6108 * config/ia64/ia64.c: Likewise.
6109 * config/ia64/ia64.h: Likewise.
6110 * config/ia64/ia64intrin.h: Likewise.
6111 * config/ia64/linux.h: Likewise.
6112 * config/ia64/unwind-aix.c: Likewise.
6113 * config/ia64/unwind-ia64.c: Likewise.
6115 2002-01-20 Kazu Hirata <kazu@hxi.com>
6117 * config/h8300/h8300.c: Revise comments about shift code.
6119 2002-01-20 Kazu Hirata <kazu@hxi.com>
6121 * config/h8300/h8300.c (function_arg): Update a comment.
6123 2002-01-20 Kazu Hirata <kazu@hxi.com>
6125 * config/h8300/h8300.md: Update the comments at the beginning
6128 2002-01-20 Kazu Hirata <kazu@hxi.com>
6130 * config/i370/i370.c: Fix comment formatting.
6131 * config/i370/i370.h: Likewise.
6132 * config/i370/i370.md: Likewise.
6133 * config/i370/linux.h: Likewise.
6135 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6137 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
6139 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
6140 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
6143 2002-01-20 Graham Stott <grahams@redhat.com>
6145 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
6147 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
6149 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
6151 2002-01-19 Tom Rix <trix@redhat.com>
6153 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
6155 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
6157 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
6159 * function.c (assign_stack_local_1): Adjust x_frame_offset with
6160 STARTING_FRAME_PHASE.
6161 (STARTING_FRAME_PHASE): New.
6162 (instantiate_virtual_regs): Check saneness of
6163 STARTING_FRAME_PHASE.
6165 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
6167 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
6169 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
6171 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
6173 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
6174 be used for bootstrapping GCC 3.0.
6176 2002-01-18 Kazu Hirata <kazu@hxi.com>
6178 * config/h8300/h8300.md: Fix an insn length.
6180 2002-01-18 Kazu Hirata <kazu@hxi.com>
6182 * bitmap.h: Fix comment formatting.
6183 * combine.c: Likewise.
6184 * cppfiles.c: Likewise.
6185 * c-pragma.h: Likewise.
6186 * c-typeck.c: Likewise.
6188 * dwarf2out.c: Likewise.
6189 * function.c: Likewise.
6191 * genattrtab.c: Likewise.
6192 * gthr-win32.h: Likewise.
6193 * haifa-sched.c: Likewise.
6194 * predict.c: Likewise.
6195 * rtlanal.c: Likewise.
6197 * unwind-dw2-fde.h: Likewise.
6198 * unwind-pe.h: Likewise.
6199 * vmsdbgout.c: Likewise.
6201 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6203 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
6204 if type_required and passed decl.
6206 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
6208 * config.gcc (cpu_type): Include altivec.h in powerpc
6212 * config/rs6000/altivec.h: New.
6214 2002-01-17 David Edelsohn <edelsohn@gnu.org>
6216 * doc/install.texi (*-ibm-aix*): Update assembler and exception
6217 handling information.
6218 * doc/trouble.texi (Interoperation): Add libstdc++ information
6220 (Misunderstandings): Add template instantiation and static template
6221 member information for AIX.
6223 2002-01-17 Jason Merrill <jason@redhat.com>
6225 * dbxout.c (dbxout_type): Support const and volatile.
6227 * except.c (add_partial_entry): Remove backwards compatibility code.
6228 (end_protect_partials): Likewise.
6230 2002-01-17 Jakub Jelinek <jakub@redhat.com>
6232 * config/ia64/ia64.md (prologue_use): New.
6233 * config/ia64/ia64.c (ia64_expand_prologue): Use
6234 gen_prologue_use instead of gen_rtx_USE.
6235 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
6236 as CODE_FOR_pred_rel_mutex.
6237 (ia64_sched_reorder2): Likewise.
6239 2002-01-16 Eric Christopher <echristo@redhat.com>
6241 * config/mips/r3900.h: Reformat.
6242 (SUBTARGET_CPP_SIZE_SPEC): Remove.
6243 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
6244 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
6245 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
6246 * config/mips/t-elf: Remove mips3 multilib.
6248 2002-01-16 H.J. Lu <hjl@gnu.org>
6250 * config/mips/linux.h: Include "mips/abi64.h".
6252 2002-01-16 H.J. Lu <hjl@gnu.org>
6254 * config/mips/t-linux: New.
6256 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
6258 * config/mips/linux.h: Don't include "gofast.h".
6259 (INIT_SUBTARGET_OPTABS): Removed.
6261 2002-01-16 Kazu Hirata <kazu@hxi.com>
6263 * config/h8300/h8300-protos.h: Replace emit_a_shift with
6265 * config/h8300/h8300.c: Likewise.
6266 * config/h8300/h8300.md: Likewise.
6268 2002-01-16 Kazu Hirata <kazu@hxi.com>
6270 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
6271 spaces after an opcode name.
6272 (pushqi1_h8300hs): Likewise.
6273 (pushhi1_h8300hs): Likewise.
6275 2002-01-16 Kazu Hirata <kazu@hxi.com>
6277 * doc/extend.texi: Replace "option" with "attribute"
6280 2002-01-16 Jakub Jelinek <jakub@redhat.com>
6282 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
6283 (and:DI () (const_int -8)).
6284 (split_small_symbolic_mem_operand): Split
6285 (mem (and:DI () (const_int -8)).
6287 2002-01-16 Jakub Jelinek <jakub@redhat.com>
6290 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
6291 same way as TYPE_IMUL.
6292 (ultrasparc_sched_reorder): Likewise.
6293 * config/sparc/sparc.md (type): Add comment to update
6294 ultrasparc_sched_reorder when making changes.
6296 2002-01-16 Kazu Hirata <kazu@hxi.com>
6298 * doc/invoke.texi: Change the dump file name of block
6299 reordering pass from 28.bbro to 29.bbro.
6302 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
6304 * i386.md (minsf splitter): Fix pasto.
6306 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
6308 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
6309 to frame pointer initialisation instruction.
6310 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
6311 initialisation instruction.
6312 (soft_df_operand): Do not accept the IP register.
6313 (nonimmediate_soft_df_operand): Do not accept the IP register.
6315 2002-01-16 Jakub Jelinek <jakub@redhat.com>
6318 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
6319 MASK_V8 being both set.
6321 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
6323 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
6324 insn for GOT register; add REG_MAYBE_DEAD notes instead.
6325 config/s390/s390.md (call, call_value): Add GOT register to
6326 CALL_INSN_FUNCTION_USAGE where needed.
6327 (call_exp, call_value_exp): New.
6329 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
6331 * config/arm/arm.c: General formatting tidy up.
6333 2002-01-16 Graham Stott <grahams@redhat.com>
6335 * calls.c (try_to_integrate): Use "(size_t)" intermediate
6336 cast and when casting an integer literal to "rtx" pointer.
6337 (expand_call): Likewise.
6338 * flow.c (try_pre_increment): Likewise.
6339 (find_use_as_address): Likewise.
6340 * integrate.c (expand_iline_function): Likewise.
6341 * regmove.c (try_auto_increment): Likewise.
6343 2002-01-16 Graham Stott <grahams@redhat.com>
6345 * sched-rgn.c (passed): Use sbitmap_free.
6348 (in_queue): Likewise.
6349 (in_stack): Likewise.
6351 2002-01-15 Eric Christopher <echristo@redhat.com>
6353 * flow.c (propagate_one_insn): Change to use fatal_insn.
6355 2002-01-15 Kazu Hirata <kazu@hxi.com>
6357 * expmed.c (extract_fixed_bit_field): Remove unused code.
6358 * system.h: Poison SLOW_ZERO_EXTEND.
6359 * doc/tm.texi: Remove.
6360 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
6361 * config/arm/arm.h: Likewise.
6362 * config/avr/avr.h: Likewise.
6363 * config/clipper/clipper.h: Likewise.
6364 * config/convex/convex.h: Likewise.
6365 * config/d30v/d30v.h: Likewise.
6366 * config/dsp16xx/dsp16xx.h: Likewise.
6367 * config/elxsi/elxsi.h: Likewise.
6368 * config/fr30/fr30.h: Likewise.
6369 * config/h8300/h8300.h: Likewise.
6370 * config/i370/i370.h: Likewise.
6371 * config/i386/i386.h: Likewise.
6372 * config/m68k/m68k.h: Likewise.
6373 * config/mips/mips.h: Likewise.
6374 * config/ns32k/ns32k.h: Likewise.
6375 * config/pdp11/pdp11.h: Likewise.
6376 * config/pj/pj.h: Likewise.
6377 * config/s390/s390.h: Likewise.
6378 * config/sh/sh.h: Likewise.
6379 * config/stormy16/stormy16.h: Likewise.
6380 * config/v850/v850.h: Likewise.
6381 * config/vax/vax.h: Likewise.
6382 * config/we32k/we32k.h: Likewise.
6384 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
6386 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
6387 (altivec_lvsl): Change constraint to b.
6388 (altivec_lvsr): Same.
6389 (altivec_lvebx): Same.
6390 (altivec_lvehx): Same.
6391 (altivec_lvewx): Same.
6392 (altivec_lvxl): Same.
6393 (altivec_lvx): Same.
6394 (altivec_stvx): Add parallel.
6395 (altivec_stvxl): Same.
6396 (altivec_stvehx): Same.
6397 (altivec_stvebx): Same.
6398 (altivec_stvebx): Same.
6400 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
6402 * config.gcc: Change altivec.h to altivec-defs.h.
6404 * config/rs6000/altivec.h: Delete.
6406 * config/rs6000/altivec-defs.h: Add.
6408 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
6410 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
6413 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
6414 less than or equal to eight bytes.
6416 * vax.md (andsi3): Remove constraints and change SET destination
6417 operand type to nonimmediate_operand.
6418 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
6419 when it is a CONST_INT.
6421 2002-01-15 Jason Merrill <jason@redhat.com>
6423 * c-common.def (FILE_STMT): New code.
6424 * c-common.c (statement_code_p): It's a statement.
6425 * c-common.h (stmt_tree_s): Add x_last_filename.
6426 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
6427 (last_expr_filename): New macro.
6428 * c-semantics.c (begin_stmt_tree): Initialize it.
6429 (add_stmt): If the filename changed, also insert a
6431 (expand_stmt): Handle seeing one.
6433 2002-01-15 Eric Christopher <echristo@redhat.com>
6435 * flow.c (propagate_one_insn): Add error message and print out
6438 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
6440 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
6441 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
6442 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
6443 TRAMPOLINE_ALIGNMENT.
6444 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
6446 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
6447 PCC_BITFIELD_TYPE_MATTERS.
6448 * config/interix.h (STDC_VALUE): Remove. Use
6449 STDC_0_IN_SYSTEM_HEADERS.
6450 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
6451 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
6452 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
6454 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
6456 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
6457 not work on this platform currently.
6459 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
6461 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
6462 readonly_warning in _().
6464 2002-01-15 Douglas B Rupp <rupp@gnat.com>
6466 * gcc.c (delete_if_ordinary): Backout previous change.
6468 2002-01-15 Kazu Hirata <kazu@hxi.com>
6470 * config/h8300/h8300.c (print_operand): Remove support for
6471 unused operand characters.
6473 * read-rtl.c: Fix formatting.
6475 * recog.c: Likewise.
6476 * regclass.c: Likewise.
6477 * regmove.c: Likewise.
6478 * reg-stack.c: Likewise.
6479 * reload1.c: Likewise.
6480 * rtlanal.c: Likewise.
6482 2002-01-15 Kazu Hirata <kazu@hxi.com>
6484 * config/i386/i386.c: Fix formatting.
6486 2002-01-15 Jakub Jelinek <jakub@redhat.com>
6488 * c-typeck.c (process_init_element): Don't save_expr
6489 COMPOUND_LITERAL_EXPR if just its initializer will be used.
6491 2002-01-15 David Edelsohn <edelsohn@gnu.org>
6493 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
6494 emit optional traceback table if optimize_size or TARGET_ELF.
6495 * config/rs6000/rs6000.md (prefetch): New.
6497 2002-01-15 Andreas Jaeger <aj@suse.de>
6499 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
6501 2002-01-15 Kazu Hirata <kazu@hxi.com>
6503 * mips-tfile.c: Fix formatting.
6505 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
6507 * unroll.c (final_reg_note_copy): Fix previous commit.
6509 2002-01-14 Kazu Hirata <kazu@hxi.com>
6511 * config/h8300/h8300-protos.h: Remove the prototype for
6513 * config/h8300/h8300.c (eq_operator): Remove.
6515 2002-01-14 Richard Henderson <rth@redhat.com>
6517 * config/i386/i386.md (prefetch): Tidy.
6518 (prefetch_3dnow): Fix locality operand.
6520 2002-01-14 Richard Henderson <rth@redhat.com>
6522 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
6523 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
6525 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
6527 * reload1.c (reload_combine): Pass reg_sum replacement through
6528 copy_rtx in loop performing multiple changes.
6530 2002-01-14 Jakub Jelinek <jakub@redhat.com>
6532 * except.c (remove_unreachable_regions): New.
6533 (free_eh_status): Clear exception_handler_labels.
6534 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
6535 (find_exception_handler_labels): Don't add the same label more than
6537 (remove_exception_handler_label): Don't die if
6538 find_exception_handler_labels hasn't been called for the current
6541 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
6543 * toplev.c (rest_of_compilation): Rebuild jump labels after
6546 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
6548 * doc/extend.texi: Move documentation of X86 built-in functions
6550 * doc/invoke.texi: From here.
6551 * doc/sourcebuild.texi: Document location of documentation for
6552 machine built-in functions.
6554 2002-01-13 Christopher Faylor <cgf@redhat.com>
6556 * cppfiles.c (TEST_THRESHOLD): New macro.
6557 (SHOULD_MMAP): Ditto.
6558 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
6561 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
6563 * unroll.c (final_reg_note_copy): Properly handle
6565 (unroll_loops): Fix LOOP_CONDITION heuristics.
6567 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
6569 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
6570 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
6572 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
6574 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
6577 2002-01-14 Tom Rix <trix@redhat.com>
6579 * config/rs6000/rs6000.md: Fix typo with sradi.
6581 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
6583 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
6584 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
6585 (clrstrdi, clrstrsi): Adapt callers.
6587 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
6589 (movti splitter): Never use register 0 as base register.
6591 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
6593 * combine.c (simplify_shift_const): Always generate new rtx
6594 for shift expression instead of reusing given expression.
6596 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6598 * config/alpha/alpha.c (alpha_expand_mov): Don't call
6599 alpha_legitimize_address unless mode is Pmode.
6601 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
6603 * doc/md.texi (Modifiers): Document the '*' constraint for the
6606 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
6607 * doc/extend.texi (Function Attributes): 'interrupt' is valid
6610 2002-01-13 Richard Henderson <rth@redhat.com>
6612 * reload.c (find_reloads): Use a hard reg destination as reload reg
6613 for an input reload of the source.
6615 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6617 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
6620 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
6622 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
6623 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
6625 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
6627 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6629 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
6631 2002-01-12 Tom Rix <trix@redhat.com>
6633 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
6636 2002-01-12 Richard Henderson <rth@redhat.com>
6638 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
6640 * doc/invoke.texi: Update Alpha options.
6642 * doc/invoke.texi: Update i386 built-in function lists.
6644 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
6646 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
6647 referencing outside.
6649 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6651 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
6652 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
6653 offsets, and change line folding.
6654 * optabs.c (expand_binop): Remove warnings.
6655 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
6657 2002-01-12 Graham Stott <grahams@redhat.com>
6659 * attribs.c (handle_deprecated_attribute): constify WHAT.
6660 * diagnostic.c (warn_deprecated_use): Add braces, fixes
6661 dangling else warning and constify WHAT.
6662 * except.h (struct function, struct inline_remap): Move
6663 struct tag forward defs before all prototypes.
6664 (duplicate_eh_regions): Whitespace.
6666 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
6668 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
6669 MODE_BASE_REG_CLASS.
6670 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
6672 2002-01-12 Richard Henderson <rth@redhat.com>
6674 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
6675 (ix86_expand_vector_move): New.
6676 (bdesc_2arg): Remove andps, andnps, orps, xorps.
6677 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
6678 Remove old prefetch builtins. Special case the logicals removed above.
6679 (ix86_expand_builtin): Likewise.
6680 (safe_vector_operand): Use V4SFmode, not TImode.
6681 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
6682 (ix86_expand_timode_binop_builtin): New.
6683 * config/i386/i386-protos.h: Update.
6684 * config/i386/i386.h (enum ix86_builtins): Update.
6685 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
6686 Use ix86_expand_vector_move in vector move expanders.
6687 (movti_internal, movti_rex64): Add xorps alternative.
6688 (sse_clrv4sf): Rename and adjust from sse_clrti.
6689 (prefetch): Don't work so hard.
6690 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
6691 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
6692 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
6694 2002-01-11 Richard Henderson <rth@redhat.com>
6696 * config/i386/mmintrin.h: New file.
6697 * config/i386/xmmintrin.h: New file.
6698 * config.gcc (i?86-*-*): Add extra_headers.
6699 * simplify-rtx.c (simplify_unary_operation): Handle saturating
6701 (simplify_binary_operation): Handle saturating arithmetic codes.
6702 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
6703 not the lowpart subreg.
6704 (ix86_expand_builtin): Return a TImode dummy register instead of 0
6706 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
6708 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6710 * conflict.c (conflict_graph_compute): Free regsets when finished.
6711 * ssa.c (compute_coalesced_reg_partition): Likewise.
6713 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6715 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
6716 every where we allocate a register.
6718 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6720 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
6721 * lcm.c (compute_earliest, compute_farthest): Likewise.
6723 2002-01-11 Janis Johnson <janis187@us.ibm.com>
6725 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
6727 2002-01-11 Janis Johnson <janis187@us.ibm.com>
6729 * doc/rtl.texi (Insns): Fix 2 typos.
6731 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
6733 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
6734 options. Use @table @gcctabopt for MMIX options. Add index
6735 entries for MMIX options. Start new paragraph with first
6736 heading of the machine-dependent options.
6738 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
6741 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
6742 * combine.c (force_to_mode): Same.
6743 * reload1.c (clear_reload_reg_in_use): Same.
6745 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
6747 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
6750 2002-01-11 Andreas Jaeger <aj@suse.de>,
6751 Brad Lucier <lucier@math.purdue.edu>
6753 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
6756 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
6758 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
6759 Protect with IN_LIBGCC.
6760 (LINK_EH_SPEC): Add required trailing space.
6762 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
6764 * c-tree.h: Move function declarations so that they are listed
6765 under the filename which contains them.
6766 (check_identifier, finish_decl_top_level,
6767 lookup_name_current_level_global, shadow_record_fields): Remove.
6769 2002-01-11 Andreas Jaeger <aj@suse.de>
6771 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
6774 2002-01-10 Richard Henderson <rth@redhat.com>
6776 * config/alpha/alpha.c (print_operand): Add 'J'.
6777 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
6778 new operand with the sequence number for the lituse. When splitting
6779 the insns, use gen_movdi_er_high_g and generate a sequence number.
6780 (gen_movdi_er_high_g): Print the sequence number if non-zero.
6782 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
6784 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
6785 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
6787 (altivec_expand_builtin): Same.
6788 (altivec_expand_stv_builtin): New.
6790 * config/rs6000/rs6000.h (rs6000_builtins): Same.
6792 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
6793 ("altivec_lvehx"): New.
6794 ("altivec_lvewx"): New.
6795 ("altivec_lvxl"): New.
6796 ("altivec_lvx"): New.
6797 ("altivec_stvx"): New.
6798 ("altivec_stvebx"): New.
6799 ("altivec_stvehx"): New.
6800 ("altivec_stvewx"): New.
6801 ("altivec_stvxl"): New.
6803 2002-01-10 Richard Henderson <rth@redhat.com>
6805 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
6806 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
6807 care not to delete instructions twice.
6809 2002-01-10 Zack Weinberg <zack@codesourcery.com>
6811 * toplev.c: Don't declare environ (it's not used anywhere).
6812 * configure.in: Don't check for declaration of environ.
6813 * config/i386/xm-mingw32.h: Don't #define environ.
6814 * config.in, configure: Regenerate.
6816 2002-01-10 Zack Weinberg <zack@codesourcery.com>
6818 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
6819 * configure: Regenerate.
6821 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
6822 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
6823 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
6825 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
6826 LIMITS_H_TEST here, not in m68k/x-next.
6827 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
6828 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
6830 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
6831 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
6832 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
6834 * config/i386/x-djgpp: Renamed i386/t-djgpp.
6835 * config/m88k/x-dolph: Renamed m88k/t-dolph.
6836 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
6837 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
6838 replacement of quadlib.asm with quadlib.c.
6840 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
6841 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
6842 config/rs6000/xm-beos.h: Delete file.
6844 * config.gcc: Update to match above changes.
6846 2002-01-10 Kazu Hirata <kazu@hxi.com>
6848 * config/h8300/h8300.h: Fix comment typos.
6849 * config/h8300/h8300.md: Likewise.
6850 * config/h8300/lib1funcs.asm: Likewise.
6852 2002-01-10 Dale Johannesen <dalej@apple.com>
6854 PR optimization/5269
6855 * unroll.c (precondition_loop_p): Make *increment be the correct
6856 sign when n_iterations known, to avoid confusing caller.
6858 2002-01-10 Kazu Hirata <kazu@hxi.com>
6860 * doc/extend.texi (deprecated): Fix a typo.
6862 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
6864 * basic-block.h (update_br_prob_note): Declare.
6865 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
6866 (try_forward_edges): Care negative frequencies and update note.
6867 (outgoing_edges_match): Tweek conditional merging heuristics.
6868 (try_crossjump_to_edge): use update_br_prob_note.
6869 * cfglayout.c (fixup_reorder_chain): Likewise.
6870 * cfrtl.c (update_br_prob_note): New.
6871 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
6873 * i386.c (ix86_decompose_address): Return -1 if address contains
6875 (legitimate_address_p): Require ix86_decompose_address to return 1.
6877 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
6878 (cprop_insn): Likewise.
6880 2002-01-10 Kazu Hirata <kazu@hxi.com>
6882 * toplev.c: Fix formatting.
6884 * tree-dump.c: Likewise.
6885 * unroll.c: Likewise.
6886 * unwind-dw2.c: Likewise.
6887 * unwind-dw2-fde.c: Likewise.
6888 * unwind-dw2-fde-glibc.c: Likewise.
6889 * unwind-sjlj.c: Likewise.
6891 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
6893 * doc/invoke.texi: Document PDP-11 options.
6895 2002-01-10 Kazu Hirata <kazu@hxi.com>
6897 * config/h8300/h8300.h: Fix formatting.
6899 2002-01-10 Ira Ruben <ira@apple.com>
6901 Add __attribute__ ((deprecated)).
6902 * extend.texi: Document __attribute__ ((deprecated)).
6903 * invoke.texi: Document -Wno-deprecated-declarations.
6904 * testsuite/g++.dg/other/deprecated.C: New C++ test.
6905 * testsuite/gcc.dg/deprecated.c: New C test.
6906 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
6907 (c_common_attribute_table): Add "deprecated" entry.
6908 (handle_deprecated_attribute): New function.
6909 * c-decl.c (deprecated_states): New enum.
6910 deprecated_state: State of "deprecated" handling.
6911 (start_decl): Set deprecated_state based on attributes.
6912 (grokdeclarator): Test for deprecated uses, propagate attribute.
6913 * c-typeck.c (build_component_ref): Test for deprecated fields.
6914 (build_external_ref): Test for deprecated primaries.
6915 * diagnostic.c (warn_deprecated_use) New function to issue
6916 warnings about __attribute__ ((depricated)) references.
6917 * flags.h (warn_deprecated_decl): Extern declared for
6918 -W[no-]deprecated-declarations option.
6919 * print-tree.c (print_node): Show deprecated flag status.
6920 * toplev.c (warn_deprecated_decl): Defined.
6921 (W_options): Added "deprecated-declaration".
6922 * toplev.h (warn_deprecated_use): Extern declared.
6923 * tree.h (struct tree_common): Define deprecated_flag.
6924 (TREE_DEPRECATED): New macro to access flag.
6925 * cp/call.c (build_call): Test for deprecated calls.
6926 * cp/class.c (add_implicitly_declared_members): Set global
6927 flag to tell grokdeclarator to not issue deprecated warnings.
6928 * cp/cp-tree.h: Add extern for adding_implicit_members.
6929 * cp/decl.c (deprecated_states): New enum.
6930 (start_decl): Set deprecated_state based on attributes.
6931 (grokdeclarator): Test for deprecated uses, propagate attribute.
6932 * cp/lex.c (do_identifier): Test for deprecated primaries.
6933 * cp/typeck.c (build_component_ref): Test for deprecated fields.
6935 2002-01-10 Ira Ruben <ira@apple.com>
6937 Fix to assign attributes to inline member functions.
6938 * cp/decl.c (start_method): Handle attrlist.
6940 2002-01-10 Kazu Hirata <kazu@hxi.com>
6942 * combine.c (expand_field_assignment): Use subreg_lsb().
6944 2002-01-10 David Edelsohn <edelsohn@gnu.org>
6946 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
6947 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
6948 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
6949 Recurse for any operand of AND as long as constant is non-zero.
6951 2002-01-10 Kazu Hirata <kazu@hxi.com>
6953 * config/h8300/h8300.md: Remove constraints from expanders.
6955 2002-01-10 Kazu Hirata <kazu@hxi.com>
6957 * varasm.c: Fix formatting.
6958 * varray.c: Likewise.
6959 * vmsdbgout.c: Likewise.
6960 * xcoffout.c: Likewise.
6962 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
6964 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
6965 update edge probabilities to match.
6967 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
6969 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
6971 * doc/languages.texi, doc/sourcebuild.texi: New files.
6972 * doc/configfiles.texi: Make a subsubsection. Update.
6973 * doc/configterms.texi: Add @node. Remove warning that this isn't
6974 instructions for building GCC.
6975 * doc/makefile.texi: Make a subsection.
6976 * doc/gccint.texi: Update.
6978 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
6980 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
6982 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
6984 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
6986 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
6988 * optabs.c (expand_fix): Look for wider integer modes first.
6990 * i386.md (mov?f): Avoid the fake const double trick for medium
6992 (min?f*/max?f*): Prohibit memory operands for i387 variant.
6993 (fop_df_4): Disable for SSE compilation.
6995 2002-01-10 Graham Stott <grahams@redhat.com>
6997 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
6998 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
7000 2002-01-10 Richard Henderson <rth@redhat.com>
7002 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
7004 2002-01-10 Richard Henderson <rth@redhat.com>
7006 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
7007 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
7009 2002-01-10 Kazu Hirata <kazu@hxi.com>
7011 * combine.c (can_combine_p): Fix a comment typo.
7013 2002-01-09 Zack Weinberg <zack@codesourcery.com>
7015 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
7016 empty list correctly. Change loop index $t to $f for
7017 consistency with rest of Makefile.
7019 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
7021 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
7022 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
7024 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
7025 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
7026 (altivec_init_builtins): Same.
7027 (altivec_expand_unop_builtin): Return NULL_RTX on error.
7028 (altivec_expand_binop_builtin): Same.
7029 (altivec_expand_ternop_builtin): Same.
7032 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
7033 ("altivec_vctuxs"): Fix typo.
7034 ("altivec_vnmsubfp"): Same.
7035 ("altivec_dssall"): New.
7036 ("altivec_mfvscr"): New.
7037 ("altivec_dss"): New.
7038 ("altivec_lvsl"): New.
7039 ("altivec_lvsr"): New.
7040 ("altivec_dstt"): New.
7041 ("altivec_dstst"): New.
7042 ("altivec_dststt"): New.
7043 ("altivec_dst"): New.
7045 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
7046 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
7048 2002-01-09 Richard Henderson <rth@redhat.com>
7050 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
7052 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
7054 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
7056 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
7058 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
7060 2002-01-09 Kazu Hirata <kazu@hxi.com>
7062 * read-rtl.c: Fix formatting.
7064 * regclass.c: Likewise.
7065 * regrename.c: Likewise.
7066 * reg-stack.c: Likewise.
7067 * reload1.c: Likewise.
7068 * reload.c: Likewise.
7071 2002-01-09 Kazu Hirata <kazu@hxi.com>
7073 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
7074 to extract items in the expr_list chain.
7076 2002-01-09 Richard Henderson <rth@redhat.com>
7078 * config/vax/vax.c (vax_rtx_cost): Never abort.
7080 * config/vax/vax.h (REAL_ARITHMETIC): Define.
7082 2002-01-09 Jan Hubicka <jh@suse.cz>
7084 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
7086 2002-01-09 Richard Henderson <rth@redhat.com>
7088 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
7089 Unify code from various alternatives.
7091 2002-01-09 Richard Henderson <rth@redhat.com>
7093 * regrename.c (copy_value): Ignore the copy if the source register
7094 is present in the value chain with a narrower mode.
7096 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7098 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
7099 for the c4x target. Also improve layout.
7101 2002-01-09 Richard Henderson <rth@redhat.com>
7103 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
7104 * config/m32r/m32r.md (and ior xor splitters): Swap operands
7105 to match insn patterns.
7107 2002-01-09 Richard Henderson <rth@redhat.com>
7109 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
7110 (copyprop_hardreg_forward_1): Likewise.
7112 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
7114 * pa.md (decrement_and_branch_until_zero): Change predicate for
7115 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
7117 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
7119 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
7120 gets undefined. For Darwin.
7122 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7124 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
7126 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7128 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
7130 2002-01-08 Richard Henderson <rth@redhat.com>
7132 * regrename.c (copy_value): Ignore overlapping copies.
7134 2002-01-08 Richard Henderson <rth@redhat.com>
7136 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
7137 as needed to avoid shared structure.
7139 2002-01-08 Kazu Hirata <kazu@hxi.com>
7141 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
7144 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
7146 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
7147 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
7148 documentation of obsolete macros.
7149 * system.h: Poison these macros.
7150 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
7151 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
7152 config/c4x/c4x.h, config/clipper/clipper.h,
7153 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
7154 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
7155 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
7156 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
7157 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
7158 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
7159 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
7160 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
7161 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
7162 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
7163 config/sparc/sparc.h, config/stormy16/stormy16.h,
7164 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
7165 definitions and commented out definitions of obsolete macros.
7166 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
7167 of MAX_INT_TYPE_SIZE.
7169 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7171 * config/s390/s390.c (s390_preferred_reload_class): Never
7172 return ADDR_REGS if it isn't a subset of the given class.
7173 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
7174 FP_REGS, but all superclasses as well.
7176 * config/s390/s390.c (s390_function_profiler): Fix thinko.
7178 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
7179 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
7180 must not be a const_int.
7182 2002-01-08 Richard Henderson <rth@redhat.com>
7184 * Makefile.in (toplev.o): Depend on options.h.
7185 (gcc.o): Depend on specs.h.
7187 2002-01-08 Jakub Jelinek <jakub@redhat.com>
7189 * expr.c (store_expr): Convert VOIDmode constants back to target's
7192 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7194 * doc/invoke.texi: Markup gcc as @command. Refer to
7195 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
7196 of http://gcc.gnu.org/thanks.html.
7198 2002-01-08 Dale Johannesen <dalej@apple.com>
7200 * config/rs6000/rs6000.md: Add missing int register
7201 target case to movdf_low.
7203 2002-01-08 Zack Weinberg <zack@codesourcery.com>
7205 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
7206 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
7207 (cppinit.o): Depend on except.h.
7208 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
7209 s-specs): New rules.
7211 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
7212 Don't create specs.h/options.h/gencheck.h here. Remove
7213 unnecessary variable settings from last argument of AC_OUTPUT.
7214 * config.in, configure: Regenerate.
7215 * intl.c: Hardcode package name as "gcc".
7217 * cppinit.c: Include except.h.
7218 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
7220 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
7221 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
7222 (!)USING_SJLJ_EXCEPTIONS.
7223 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
7225 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
7227 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
7228 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
7229 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
7230 documentation of obsolete macros.
7231 * system.h: Poison these macros.
7232 * config/d30v/d30v.h, config/ns32k/encore.h,
7233 config/stormy16/stormy16.h: Remove definitions and commented out
7234 definitions of obsolete macros.
7236 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
7238 * objc/objc-act.c (handle_class_ref): Mark the declaration of
7239 %sobjc_class_ref_%s as used - to prevent unwanted compiler
7242 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
7244 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
7245 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
7246 to insn adjusting stack/frame pointer.
7247 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
7248 accept operands that cause the insn to be non-splittable.
7250 2002-01-08 Graham Stott <grahams@redhat.com>
7252 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
7253 (C_TYPE_FIELDS_VOLATILE): Likewise.
7254 (C_TYPE_BEING_DEFINED): Likewise.
7255 (C_IS_RESERVED_WORD): Likewise.
7256 (C_TYPE_VARIABLE_SIZE): Likewise.
7257 (C_DECL_VARIABLE_SIZE): Likewise.
7258 (C_MISSING_PROTOTYPE_WARNED): Likewise.
7259 (C_SET_EXP_ORIGINAL_CODE): Likewise.
7260 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
7262 (C_DECL_ANTICIPATED): Likewise.
7263 (c_build_type_variant): Add parenthesis.
7265 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
7267 * gcc.c (option_map): Remove --version.
7268 (process_command): Handle -fversion following the GNU Coding
7269 Standards. Partially addresses PR other/704.
7271 2002-01-08 Graham Stott <grahams@redhat.com>
7273 * combine.c (combine_instructions): Fix typo.
7275 2002-01-08 Graham Stott <grahams@redhat.com>
7277 * debug.h: Use "tree" and "rtx" throughout.
7279 * debug.c: Likewise.
7281 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
7283 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
7284 constant pool, use the pool's version of the symbol instead.
7286 2002-01-07 Richard Henderson <rth@redhat.com>
7288 * regrename.c (find_oldest_value_reg): Ignore the value chain if
7289 the original register was copied in a mode with a fewer number of
7290 hard registers than the desired mode.
7291 (copyprop_hardreg_forward_1): Likewise.
7292 (debug_value_data): Fix loop test.
7293 * toplev.c (parse_options_and_default_flags): Reenable
7294 -fcprop-registers at -O1.
7296 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
7298 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
7299 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
7301 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
7304 * config/rs6000/rs6000.md: Add altivec predicate patterns.
7306 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
7308 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
7309 (pa_output_function_prologue): Output local label at the beginning of
7310 the prologue when profiling.
7311 (hppa_profile_hook): Use the local label rather than the function label.
7312 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
7314 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
7316 * config/rs6000/rs6000.c (print_operand): Remove extra space.
7317 (altivec_expand_unop_builtin): Fix thinko.
7318 (altivec_expand_binop_builtin): Same.
7319 (altivec_expand_ternop_builtin): Same.
7320 (altivec_expand_builtin): Same.
7322 2002-01-07 Richard Henderson <rth@redhat.com>
7324 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
7326 2002-01-07 Jason Merrill <jason@redhat.com>
7328 * unwind-dw2.c (execute_cfa_program): Use < again.
7330 2002-01-07 Jakub Jelinek <jakub@redhat.com>
7332 * predict.c (combine_predictions_for_insn): Avoid division by zero.
7334 2002-01-07 Jakub Jelinek <jakub@redhat.com>
7336 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
7337 Don't allow -1 - x -> ~x simplifications in the first pass.
7339 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
7341 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
7343 (altivec_expand_binop_builtin): Same.
7344 (altivec_expand_unop_builtin): Same.
7345 (print_operand): Fix typo.
7346 (bdesc_1arg): Add vupk* variants.
7348 * rs6000.h (rs6000_builtins): Add vupk* enums.
7350 * rs6000.md: Add altivec_vupk* variants.
7352 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
7354 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
7355 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
7356 and last update dates.
7358 2002-01-07 Janis Johnson <janis187@us.ibm.com>
7360 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
7362 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
7364 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
7365 * config/avr/avr.h (CPP_SPEC): Likewise.
7366 (LINK_SPEC): Likewise.
7367 (CRT_BINUTILS_SPECS): Likewise.
7368 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
7369 * doc/invoke.texi (AVR Options): Document them.
7371 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
7373 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
7376 2002-01-07 Graham Stott <grahams@redhat.com>
7378 * config/i386/i386.h: Update copyright date.
7379 (HALF_PIC_PTR): Add parenthesis.
7380 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
7381 (CONSTANT_ALIGNMENT): Add parenthesis.
7382 (DATA_ALIGNMENT): Likewise.
7383 (LOCAL_ALIGNMENT): Likewise.
7384 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
7385 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
7386 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
7387 (HARD_REGNO_NREGS): Add paranethesis.
7388 (VALID_SSE_REG_MODE): Whitespace.
7389 (VALID_MMX_REG_MODE): Whitespace.
7390 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
7391 (ix86_hard_regno_mode_ok): Add parenthesis.
7392 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
7393 (RETURN_IN_MEMORY): Whitespace.
7394 (N_REG_CLASSES): Add parenthesis.
7395 (INTEGER_CLASS_P): Add parenthesis and wrap.
7396 (FLOAT_CLASS_P): Likewise.
7397 (SSE_CLASS_P): Likewise.
7398 (MMX_CLASS_P): Likewise.
7399 (MAYBE_INTEGER_CLASS_P): Likewise.
7400 (MAYBE_FLOAT_CLASS_P): Likewise.
7401 (MAYBE_SSE_CLASS_P): Likewise.
7402 (MAYBE_MMX_CLASS_P): Likewise.
7403 (Q_CLASS_P): Likewise.
7404 (GENERAL_REGNO_P): Uppercase macro parameter.
7405 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
7406 (FP_REGNO_P): Likewise.
7407 (ANY_FP_REGNO_P): Uppercase macro parameter.
7408 (SSE_REGNO_P): Likewise.
7409 (SSE_REGNO): Likewise.
7410 (SSE_REG_P): Likewise.
7411 (SSE_FLOAT_MODE_P): Likewise.
7412 (MMX_REGNO_P): Likewise.
7413 (MMX_REG_P):Likewise.
7414 (STACK_REG_P): Likewise.
7415 (NON_STACK_REG_P): Likewise.
7416 (STACK_TOP_P): Likewise.
7417 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
7418 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
7419 (SECONDARY_MEMORY_NEEDED): Likewise.
7420 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
7421 (MD_ASM_CLOBBERS): Whitespace and wrap.
7422 (MUST_PASS_IN_STACK): Whitespace and wrap.
7423 (RETURN_POPS_ARGS): Add parenthesis.
7424 (INIT_CUMULATIVE_ARGS): Likewise.
7425 (FUNCTION_ARG): Likewise.
7426 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
7427 (SETUP_INCOMING_VARARGS): Likewise.
7428 (BUILD_VA_LIST_TYPE): Add parenthesis.
7429 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
7431 (EXPAND_BUILTIN_VA_ARG): Likewise.
7432 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
7433 (INITIALIZE_TRAMPOLINE): Add parenthesis.
7434 (INITIAL_ELIMINATION_OFFSET): Likewise.
7435 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
7436 (REGNO_OK_FOR_BASE_P): Likewise.
7437 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
7438 (REGNO_OK_FOR_DIREG_P): Likewise.
7439 (REG_OK_FOR_INDEX_P): Whitespace.
7440 (REG_OK_FOR_BASE_P): Whitespace.
7441 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
7443 (FIND_BASE_TERM): Fix typo.
7444 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
7445 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
7446 (SYMBOLIC_CONST; Whitespace.
7447 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
7448 (ENCODE_SECTION_INFO): Whitespace.
7449 (FINALIZE_PIC): Remove do { ... } while (0).
7450 (PROMOTE_MODE): Wrap in do { ... } while (0).
7451 (CONST_COSTS): Whitespace.
7452 (RTX_COSTS): Add paramethesis, whitespace and wrap.
7453 (REGISTER_MOVE_COST): Add parenthesis.
7454 (MEMORY_MOVE_COST): Likewise.
7455 (EXTRA_CC_MODES): Whitespace.
7456 (SELECT_CC_MODE): Add parenthesis and whitespace.
7457 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
7458 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
7459 (ASM_OUTPUT_LABEL): Add paramethesis.
7460 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
7461 (ASM_OUTPUT_REG_POP): Likewise.
7462 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
7463 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7465 * config/i386/i386.c: Update copyright.
7466 (CHECK_STACK_LIMIT): Add parenthesis.
7467 (AT_BP): Uppercase macro parameter.
7468 (x86_64_int_parameter_registers): Constify.
7469 (x86_64_int_return_registers): Likewise.
7470 (ix86_compare_op0): Use rtx.
7471 (construct_container): Constify INTREG parameter.
7472 (function_arg): Use rtx.
7474 * diagnostic.h: Update copyright date.
7475 (output_buffer_state): Add parenthesis.
7476 (output_buffer_format_args): Likewise.
7478 * combine.c (combine_instructions): Replace XEXP (links, 0)
7481 2002-01-06 H.J. Lu <hjl@gnu.org>
7483 * cfgcleanup.c (thread_jump): Fix 2 typos.
7485 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
7487 * config.gcc: Add support for --enable-altivec.
7489 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
7491 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
7493 2002-01-06 Jakub Jelinek <jakub@redhat.com>
7495 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
7496 __objc_class_name_*.
7498 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
7500 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
7502 2002-01-06 Richard Henderson <rth@redhat.com>
7504 * reorg.c (emit_delay_sequence): Remove death notes, not merely
7505 nop them out. Increment label reference count for REG_LABEL.
7506 (fill_slots_from_thread): Frob label reference count around
7507 delete_related_insns.
7509 2002-01-05 Richard Henderson <rth@redhat.com>
7511 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
7514 2002-01-05 Richard Henderson <rth@redhat.com>
7516 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
7517 * integrate.c (output_inline_function): Likewise.
7518 * toplev.c (rest_of_compilation): Do it here instead. Move call
7519 to remove_unnecessary_notes after emitting abstract instance.
7520 Force an emitted nested function to have its parent emited as well.
7521 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
7523 (rtl_for_decl_location): Do not look at reload data structures
7524 before reload has run.
7526 2002-01-05 Kazu Hirata <kazu@hxi.com>
7528 * cse.c: Fix formatting.
7529 * dwarf2asm.c: Likewise.
7530 * dwarf2out.c: Likewise.
7531 * explow.c: Likewise.
7532 * expmed.c: Likewise.
7533 * function.c: Likewise.
7535 * gencheck.c: Likewise.
7536 * genrecog.c: Likewise.
7537 * ggc-common.c: Likewise.
7538 * ggc-page.c: Likewise.
7539 * global.c: Likewise.
7541 2002-01-05 Kazu Hirata <kazu@hxi.com>
7543 * combine.c: Fix formatting.
7545 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
7548 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
7550 2002-01-05 David Edelsohn <edelsohn@gnu.org>
7552 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
7553 as 1 for __powerpc64__ as well.
7555 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
7557 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
7560 2002-01-05 Daniel Berlin <dan@dberlin.org>
7562 * lcm.c: Revert change, due to performance regression it causes on
7563 SPEC because it's slightly more conservative (sigh, I hate
7566 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
7568 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
7570 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
7572 * doc/cppinternals.texi: Update.
7574 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
7576 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
7577 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
7579 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
7580 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
7581 kludge for pre-october-14th mmix versions to handle new-found bug
7582 with PUSHJ/PUSHGO and the register stack.
7583 * config/mmix/mmix.h (struct machine_function): Rename member
7584 has_call_value_without_parameters to has_call_without_parameters.
7585 All referers changed.
7586 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
7587 TARGET_MASK_BRANCH_PREDICT): New macros.
7588 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
7589 -mno-reg-stack-fill-bug-workaround.
7590 * config/mmix/mmix.md ("call"): Set struct machine member
7591 has_call_without_parameters.
7593 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
7595 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
7597 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
7599 * cfgcleanup.c: Include tm_p.h
7600 (mark_effect): Fix handling of hard register; fix handling of SET
7602 2002-01-04 Kazu Hirata <kazu@hxi.com>
7604 * config/h8300/h8300.md (anonymous patterns): Check that
7605 operands are registers before using REGNO on them.
7607 2002-01-03 Roland McGrath <roland@frob.com>
7609 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
7611 2002-01-04 Jakub Jelinek <jakub@redhat.com>
7613 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
7614 * c-common.h (genrtl_expr_stmt_value): Likewise.
7615 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
7616 (expand_expr_stmt_value): Add maybe_last argument.
7617 Don't warn about statement with no effect if it is the last statement
7618 in expression statement.
7619 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
7620 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
7621 expand_expr_stmt_value.
7622 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
7623 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
7624 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
7625 as maybe_last to expand_expr_stmt_value.
7627 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
7629 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
7630 be passed in, do not build it.
7631 (c_begin_if_stmt): New function.
7632 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
7633 * c-common.h (c_expand_start_cond): Update prototype.
7634 (c_begin_if_stmt): Prototype new function.
7635 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
7636 * c-parse.in (if_prefix): Use c_begin_if_stmt,
7637 c_begin_while_stmt and c_finish_while_stmt_cond.
7639 2002-01-04 William Cohen <wcohen@redhat.com>
7641 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
7642 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
7643 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
7644 * config/pa/som.h (ASM_FILE_START): Likewise.
7646 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
7648 * lcm.c: Include df.h.
7649 Add available_transfer_function prototype.
7650 (compute_available): Rework to use iterative dataflow framework.
7651 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
7652 with bb_info in df.h
7653 (available_transfer_function): New function.
7655 * Makefile.in (lcm.o): add df.h to dependencies.
7657 2002-01-04 Richard Henderson <rth@redhat.com>
7659 * config/alpha/alpha.c (some_operand): Accept HIGH.
7660 (input_operand): Likewise; accept simple references to globals.
7661 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
7662 (alpha_const_double_ok_for_letter_p): Likewise.
7663 (alpha_extra_constraint): Likewise.
7664 (alpha_preferred_reload_class): Likewise. Do not force
7665 symbolic constants to memory.
7666 (alpha_legitimate_address_p): Accept simple references
7667 to small_symbolic_operand.
7668 (alpha_legitimize_address): New arg scratch. Be prepared to be
7669 called when no_new_pseudos. Emit simple symbolic references.
7670 Split integers into low, high, and rest.
7671 (alpha_expand_mov): Use alpha_legitimize_address.
7672 (some_small_symbolic_mem_operand): New.
7673 (split_small_symbolic_mem_operand): New.
7674 * config/alpha/alpha-protos.h: Update.
7675 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
7676 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
7677 (EXTRA_CONSTRAINT): Likewise.
7678 (PREFERRED_RELOAD_CLASS): Likewise.
7679 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
7680 (PREDICATE_CODES): Update.
7681 * config/alpha/alpha.md: New post-reload splitters to convert
7682 simplfied symbolic operands to the form that references $29.
7683 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
7684 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
7686 2002-01-03 Richard Henderson <rth@redhat.com>
7688 * local-alloc.c (function_invariant_p): Update commentary.
7690 2002-01-04 H.J. Lu <hjl@gnu.org>
7692 * toplev.c (rest_of_compilation): Fix a typo when calling
7695 2002-01-03 Kazu Hirata <kazu@hxi.com>
7697 * c-common.c: Fix formatting.
7698 * diagnostic.c: Likewise.
7699 * doloop.c: Likewise.
7700 * dwarf2out.c: Likewise.
7702 2002-01-03 Kazu Hirata <kazu@hxi.com>
7704 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
7705 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
7707 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
7709 * cpperror.c: Update comments and copyright.
7710 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
7711 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
7713 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
7715 * collect2.c (main): Use strcmp when testing for "-shared".
7717 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
7719 * cppmacro.c: Don't include intl.h. Update comments.
7720 (new_number_token): Allocate enough buffer for 64-bit unsigned
7721 integers; update prototype.
7722 * cppmain.c: Update comments.
7724 2002-01-03 William Cohen <wcohen@redhat.com>
7726 * function.h (struct function): Add profile.
7727 (current_function_profile): New.
7728 doc/extend.texi: Update documentation.
7729 * final.c (final_start_function): Use current_function_profile
7730 instead of profile_flag.
7731 (profile_after_prologue): Likewise.
7732 * function.c (expand_function_start): Likewise.
7733 (expand_function_start): Likewise.
7734 * config/alpha/alpha.c (direct_call_operand):
7735 (alpha_does_function_need_gp): Likewise.
7736 (alpha_expand_prologue): Likewise.
7737 * config/arm/arm.c (arm_expand_prologue): Likewise.
7738 thumb_expand_prologue: Likewise.
7739 * config/d30v/d30v.c (d30v_stack_info): Likewise.
7740 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
7741 (fr30_expand_prologue): Likewise.
7742 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
7743 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
7744 * config/i386/i386.h (FINALIZE_PIC): Likewise.
7745 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
7746 * config/i960/i960.c (i960_output_function_prologue): Likewise.
7747 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
7748 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
7749 (m32r_expand_prologue): Likewise.
7750 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
7751 (m88k_expand_prologue): Likewise.
7752 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
7753 * config/mips/mips.c (compute_frame_size): Likewise.
7754 (mips_expand_prologue): Likewise.
7755 (mips_can_use_return_insn): Likewise.
7756 * config/pa/elf.h (ASM_FILE_START): Likewise.
7757 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
7758 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
7759 * config/pa/som.h (ASM_FILE_START): Likewise.
7760 * config/romp/romp.c (romp_using_r14): Likewise.
7761 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
7762 (rs6000_stack_info): Likewise.
7763 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
7764 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
7765 * config/v850/v850.c (compute_register_save_size): Likewise.
7767 2002-01-03 Jakub Jelinek <jakub@redhat.com>
7769 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
7770 gen_lowpart_common fails, use gen_lowpart_SUBREG.
7772 2002-01-03 Turly O'Connor <turly@apple.com>
7774 * darwin.c (machopic_output_possible_stub_label): Don't generate
7775 stub routines for pseudo-stubs which we've just defined.
7777 2002-01-03 Kazu Hirata <kazu@hxi.com>
7779 * builtins.c: Fix formatting.
7780 * c-typeck.c: Likewise.
7781 * combine.c: Likewise.
7785 2002-01-03 Andreas Schwab <schwab@suse.de>
7787 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
7788 and return true if _cpp_push_next_buffer pushed a new include
7790 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
7791 _cpp_pop_file_buffer did not push a new file.
7792 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
7794 2002-01-02 Eric Christopher <echristo@redhat.com>
7796 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
7797 FIND_REG_INC_NOTE call. Update copyright.
7798 * loop.c (canonicalize_condition): Ditto.
7799 * reorg.c (delete_scheduled_jump): Ditto.
7801 2002-01-03 Kazu Hirata <kazu@hxi.com>
7803 * gcse.c: Fix formatting.
7805 2002-01-03 Graham Stott <grahams@redhat.com>
7807 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
7808 forward defs for struct tags rtx_def, union_tree, rtvec_def
7809 also output corresponding typedefs for rtx, tree, and rtvec.
7811 * system.h: Move forward defs for struct tags rtx_def, union_tree,
7812 rtvec_def along with corresponding typedefs for rtx, tree, and
7813 rtvec to config.h, hconfig.h, tconfig.h.
7815 2002-01-03 Graham Stott <grahams@redhat.com>
7817 * tree.h: Update copyright date.
7818 (IS_EXPR_CODE_CLASS): Add parenthesis.
7819 (TREE_SET_CODE): Add whitespace.
7820 (TREE_CHECK): Add parenthesis.
7821 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
7822 (CST_OR_CONSTRUCTOR_CHECK):
7823 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
7824 (TREE_SYMBOL_REFERENCED): Whitespace.
7825 (INT_CST_LT): Likewise.
7826 (INT_CST_LT_UNSIGNED): Likewise.
7827 (tree_real_cst): Unwrap comment.
7828 (tree_string): Likewise.
7829 (tree_complex): Likewise.
7830 (IDENTIFIER_POINTER): correct cast.
7831 (SAVE_EXPR_CONTEXT): Whitespace.
7832 (EXPR_WFL_FILENAME_NODE): Likewise.
7833 (EXPR_WFL_FILENAME): Remove parenthesis.
7834 (DECL_ORIGIN): Add parenthesis.
7835 (DECL_FROM_INLINE): Use NULL_TREE.
7836 (build_int_2): Whitespace.
7837 (build_type_variant): Add parenthesis.
7839 * gcc/jcf-parse.c: Update copyright date.
7840 (yyparse): Constify resource_filename.
7842 2002-01-03 Graham Stott <grahams@redhat.com>
7844 * rtl.h: Update copyright date.
7845 (RTL_CHECK1): Wrap long line.
7846 (RTL_CHECK2): Likewise.
7847 (RTL_CHECKC1): Wrap long line and whitespace.
7848 (RTL_CHECKC2): Likewise.
7849 (XWINT): Whitespace.
7855 (XBITMAP): Likewise.
7866 (X0BITMAP): Likewise.
7868 (X0BBDEF): Likewise.
7869 (X0ADVFLAGS): Likewise.
7870 (X0CSELIB): Likewise.
7871 (X0MEMATTR): Likewise.
7879 (XCBITMAP): Likewise.
7881 (XCBBDEF): Likewise.
7882 (XCADVFLAGS): Likewise.
7883 (XCCSELIB): Likewise.
7885 (INSN_UID): Likewise.
7886 (PREV_INSN): Likewise.
7887 (PATTERN): Likewise.
7888 (INSN_CODE): Likewise.
7889 (PUT_REG_NOTE_KIND): Likewise.
7890 (CODE_LABEL_NUMBER): Likewise.
7891 (NOTE_SOURCE_FILE): Likewise.
7892 (NOTE_BLOCK): Likewise.
7893 (NOTE_EH_HANDLER): Likewise.
7894 (NOTE_RANGE_INFO): Likewise.
7895 (NOTE_LIVE_INFO): Likewise.
7896 (NOTE_BASIC_BLOCK): Likewise.
7897 (NOTE_EXPECTED_VALUE): Likewise.
7898 (NOTE_LINE_NUMBER): Likewise.
7899 (LABEL_NAME): Likewise.
7900 (LABEL_NUSES): Likewise.
7901 (LABEL_ALTERNATE_NAME): Likewise.
7902 (ADDRESSOF_DECL): Likewise.
7903 (JUMP_LABEL): Likewise.
7904 (LABEL_NEXTREF): Likewise.
7906 (ORIGINAL_REGNO: Likewise.
7907 (HARD_REGISTER_NUM_P): Add parenthesis.
7908 (SUBREG_REG): Whitespace.
7909 (SUBREG_BYTE): Likewise.
7910 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
7911 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
7912 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
7913 (ASM_OPERANDS_INPUT_VEC): Likewise.
7914 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
7915 (ASM_OPERANDS_INPUT): Likewise.
7916 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
7917 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
7918 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
7919 (ASM_OPERANDS_INPUT_MODE): Likewise.
7920 (ASM_OPERANDS_SOURCE_FILE): Likewise.
7921 (ASM_OPERANDS_SOURCE_LINE): Likewise.
7922 (MEM_SET_IN_STRUCT_P): Minor reformat.
7923 (TRAP_CONDITION): Whitespace.
7924 (TRAP_CODE): Likewise.
7925 (COND_EXEC_TEST): Likewise.
7926 (COND_EXEC_CODE): Likewise.
7927 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
7928 (PHI_NODE_P): Add parenthesis.
7929 (plus_constant): Whitespace and add parenthesis.
7931 2002-01-03 Kazu Hirata <kazu@hxi.com>
7933 * config/avr/avr.c: Fix comment typos.
7934 * config/c4x/c4x.md: Likewise.
7935 * config/dsp16xx/dsp16xx.h: Likewise.
7936 * config/dsp16xx/dsp16xx.md: Likewise.
7937 * config/i386/i386.md: Likewise.
7938 * config/ia64/ia64.c: Likewise.
7939 * config/m32r/m32r.h: Likewise.
7940 * config/m68hc11/m68hc11.md: Likewise.
7941 * config/mmix/mmix.c: Likewise.
7942 * config/mn10200/mn10200.c: Likewise.
7943 * config/romp/romp.c: Likewise.
7944 * config/sh/sh.c: Likewise.
7945 * config/stormy16/stormy16.c: Likewise.
7946 * config/stormy16/stormy16.h: Likewise.
7947 * config/stormy16/stormy16.md: Likewise.
7949 2002-01-03 Graham Stott <grahams@redhat.com>
7951 * loop.h: Update copyright date.
7952 (LOOP_MOVABLES): Fix typo.
7953 (LOOP_REGS): Likewise.
7954 (LOOP_IVS): Likewise.
7956 2002-01-03 Graham Stott <grahams@redhat.com>
7958 * cppinit.c: Update copyright date.
7959 Don't include output.h
7960 * Makefile.in: Update copyright date.
7963 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
7966 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
7967 (-pthread) Add to RS/6000 options.
7969 2002-01-02 Kazu Hirata <kazu@hxi.com>
7971 * except.c: Fix comment typos.
7973 * varasm.c: Likewise.
7974 * doc/tm.texi: Fix a typo.
7976 2002-01-02 Jakub Jelinek <jakub@redhat.com>
7978 * c-typeck.c (output_init_element): Allow initializing static storage
7979 duration objects with compound literals.
7981 2002-01-02 Richard Henderson <rth@redhat.com>
7983 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
7986 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7988 * gcc.c (default_compilers): Const-ify.
7989 * mips-tdump.c (stab_names): Likewise.
7990 * mips-tfile.c (map_coff_types, map_coff_storage,
7991 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
7992 pseudo_ops_t, pseudo_ops): Likewise.
7993 * protoize.c (default_include): Likewise
7995 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
7996 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
7997 Add array size in declaration.
7998 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
7999 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
8000 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
8001 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
8002 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
8003 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
8004 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
8005 emtens, make_nan): Const-ify.
8006 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
8007 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
8009 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
8011 * config.gcc (ia64-*-*): Set extra_headers.
8012 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
8013 * config/alpha/t-osf: Remove.
8014 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
8016 2002-01-02 David Edelsohn <edelsohn@gnu.org>
8018 * config/rs6000/t-aix43: Revert previous change.
8020 2002-01-02 Jason Merrill <jason@redhat.com>
8022 * c-decl.c (c_expand_body): Call outlining_inline_function when
8023 emitting an inline function out of line.
8025 2002-01-02 Richard Henderson <rth@redhat.com>
8027 * dwarf2out.c (limbo_die_node): Add created_for member.
8028 (new_die): New argument created_for. Update all callers.
8029 (mark_limbo_die_list): New.
8030 (dwarf2out_init): Register limbo_die_list as a root.
8031 (dwarf2out_finish): Force insert limbo dies into their function
8034 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
8037 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
8039 2002-01-02 Kazu Hirata <kazu@hxi.com>
8041 * config/h8300/fixunssfsi.c: Update copyright.
8044 * config/h8300/h8300.c: Update copyright.
8047 2002-01-02 Kazu Hirata <kazu@hxi.com>
8049 * config/romp/romp.c: Fix comment formatting.
8050 * config/romp/romp.h: Likewise.
8051 * config/romp/romp.md: Likewise.
8052 * config/s390/s390.c: Likewise.
8053 * config/stormy16/stormy16.c: Likewise.
8054 * config/stormy16/stormy16.h: Likewise.
8056 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
8058 * c-common.h (genrtl_expr_stmt_value): Declare.
8059 * c-semantics.c (genrtl_goto_stmt): Redirect to...
8060 (genrtl_goto_stmt_value): ... this new function. Pass new
8061 argument down to expand_expr_stmt_value, taking
8062 TREE_ADDRESSABLE into account.
8063 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
8064 STMT_EXPR as addressable, i.e., one whose result we want.
8065 * expr.c (expand_expr): Don't save expression statement value
8066 of labeled_blocks or loop_exprs.
8067 * stmt.c (expand_expr_stmt): Redirect to...
8068 (expand_expr_stmt_value): ... this new function. Use new
8069 argument to tell whether to save expression value.
8070 (expand_end_stmt_expr): Reset last_expr_type and
8071 last_expr_value if we don't have either.
8072 * tree-inline.c (declare_return_variable): Mark its use
8073 statement as addressable.
8074 * tree.h: Document new use of TREE_ADDRESSABLE.
8075 (expand_expr_stmt_value): Declare.
8077 2002-01-01 Tom Rix <trix@redhat.com>
8079 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
8080 rs6000_emit_allocate_stack.
8082 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
8084 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
8085 ${srcdir}/ginclude/ to every entry in extra_headers.
8086 * configure: Regenerate.
8087 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
8088 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
8089 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
8090 * ginclude/proto.h: Rename to config/convex/proto.h.
8092 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8094 * attribs.c (handle_vector_size_attribute): Use host_integerp
8095 and tree_int_cst; remove warnings.
8096 * caller-save.c (insert_restore): Add cast to get rid of warning.
8097 (insert_save): Likewise.
8098 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
8099 * regmove.c (find_matches): Add temporary var to kill a warning.
8101 2002-01-01 Douglas B Rupp <rupp@gnat.com>
8103 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
8104 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
8105 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
8106 (vms-dwarf2eh.o): Add Makefile rule.
8107 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
8108 * config/alpha/vms-dwarf2eh.asm: New file.
8110 * gcc.c (delete_if_ordinary): Delete all versions.
8112 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
8114 * config/mmix/mmix.md: Update FIXME to not mention
8116 (MMIX_rJ_REGNUM): New define_constants constant.
8117 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
8118 "*movdicc_real"): Adjust contraints formatting.
8119 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
8120 for branch prediction.
8121 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
8123 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
8124 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
8125 number. Delete related FIXMEs.
8126 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
8127 from number to MMIX_rJ_REGNUM.
8128 (TARGET_MASK_BRANCH_PREDICT): New.
8129 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
8130 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
8131 value. Add -mbranch-predict and -mno-branch-predict.
8132 (TARGET_VERSION): Drop date.
8133 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
8134 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
8135 for finding out global symbols.
8136 (mmix_asm_output_labelref): Revert condition for global symbol.
8137 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
8138 (mmix_print_operand_punct_valid_p): A '+' is valid.
8140 See ChangeLog.6 for earlier changes.