1 2002-03-22 Bob Wilson <bob.wilson@acm.org>
3 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
4 passed to adjust_address. Fix comment formatting.
7 2002-03-22 Zack Weinberg <zack@codesourcery.com>
9 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
10 Always make REAL_VALUE_TYPE a struct containing an array of
11 HOST_WIDE_INT, not a double. Tidy up the code deciding how
12 big it is. Don't declare or use union real_extract.
14 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
15 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
16 (print_operand), config/arm/arm.c (output_move_double),
17 config/arm/arm.md (consttable_4, consttable_8),
18 config/romp/romp.c (output_fpops), config/s390/s390.h
19 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
20 (xtensa_output_literal): Don't use union real_extract.
22 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
23 (sfmode_constant_to_ulong), config/ns32k/merlin.h
24 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
25 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
26 (PRINT_OPERAND): Don't use local version of union
29 * config/convex/convex.c (check_float_value), config/vax/vax.c
30 (vax_float_literal), config/m88k/m88k.md (divdf3),
31 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
32 config/pdp11/pdp11.c (output_move_quad): Don't do host
33 arithmetic on target floating point quantities.
35 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
36 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
38 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
39 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
41 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
42 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
44 * print-rtl.c (print_rtx): Disable code which needs
45 floating-point emulator.
46 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
47 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
48 depending on HOST_FLOAT_FORMAT to be defined properly.
50 * config/1750a/1750a.c (get_double, float_label): Delete.
51 (print_operand): Delete huge commented-out chunk. Use
52 REAL_VALUE_TO_DECIMAL.
53 * config/1750a/1750a-protos.h: Delete prototypes of deleted
55 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
57 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
58 Use REAL_VALUE_TO_DECIMAL as ELF version does.
59 * config/m88k/m88k.c (real_power_of_2_operand,
60 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
61 real_extract out of the union; run the input through
62 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
63 from that into the union.
64 * config/pdp11/pdp11.c (output_move_double): Rearrange
65 parentheses to make automatic indenter happy.
67 * doc/tm.texi (Cross-compilation): Rename node to "Floating
68 Point" and rewrite to describe current situation. Also adjust
69 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
71 * doc/rtl.texi: Adjust cross reference.
73 2002-03-22 Bob Wilson <bob.wilson@acm.org>
75 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
76 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
77 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
78 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
79 prevent use of sp as a reload register.
80 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
82 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
83 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
84 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
85 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
87 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
89 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
90 * cpplex.c (unterminated): Delete.
91 (parse_string): No string literal may extend over multiple
92 lines. Suppress the error when preprocessing assembly.
93 * cppmain.c (scan_translation_unit): Strings are single-line.
95 * doc/cpp.texi: Update to match.
97 2002-03-22 Jakub Jelinek <jakub@redhat.com>
100 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
102 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
103 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
104 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
105 const0 if scratch register was not allocated.
106 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
107 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
109 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
110 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
111 with GEN_INT (...) everywhere. Remove constraints in define_split
113 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
114 require scratch register for setting 0 into regs/non-pushable memory.
116 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
118 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
119 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
121 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
123 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
124 * cppinit.c (cpp_create_reader): On by default.
125 (cpp_handle_option): Handle -W[no-]endif-labels.
126 (cpp_post_options): Also enable if -pedantic.
127 * cpplib.c (do_else): Use it.
128 (do_endif): Likewise.
129 * doc/cppopts.texi: Document new option.
130 * doc/invoke.texi: Document new option.
132 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
134 * config/i386/i386.c, config/i386/i386.md: Change all occurences
135 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
137 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
139 * flow.c (calculate_global_regs_live): Clear aux fields of
142 2002-03-22 Jakub Jelinek <jakub@redhat.com>
144 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
145 REG or MEM subregs, pass rtx * instead of rtx to it.
146 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
147 rtx * instead of rtx to alter_subreg.
148 * config/m32r/m32r.c (gen_split_move_double): Likewise.
149 * config/pj/pj.c (pj_output_rval): Likewise.
151 2002-03-22 Richard Henderson <rth@redhat.com>
154 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
155 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
156 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
157 (ia64_expand_prologue): Look at int_regs, not words, for number
158 of incomming int regs.
160 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
162 * expr.c (expand_expr): A RESULT_DECL is part of a call.
164 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
166 * toplev.c (flag_loop_optimize, flag_crossjumping):
167 New static variables.
168 (rest_of_compilation): Conditionalize crossjumping and
170 (parse_options_and_default_flags): Default loop_optimize and
172 (lang_independent_options): Add -fcrossjumping and -floop-optimize
173 * invoke.texi (crossjumping, loop-optimize): Document.
175 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
177 * real.c (eiisneg): Move outside #ifdef NANS.
179 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
181 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
182 frequencies match; avoid match on different loop depths.
183 (try_crossjump_to_bb): Kill tests that no longer brings time
185 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
187 (split_edge): Likewise.
189 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
192 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
193 * cfgrtl.c: Include insn-config.h
194 (split_block) Dirtify block in presence of conditional execution
196 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
198 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
199 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
200 (function_arg): Constify CUMULATIVE_ARGS.
201 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
202 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
203 (UNITS_PER_DOUBLE): New macro.
204 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
205 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
206 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
207 fp_regs and stack_words.
208 (EABI_FLOAT_VARARGS_P): New macro.
209 * config/mips/mips.c (struct mips_arg_info): New.
210 (mips_arg_info): New function.
211 (function_arg_advance): Use it. Add adjustment instructions here
212 rather than in function_arg.
213 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
214 for VOIDmode at the beginning of the function.
215 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
216 (function_arg_pass_by_reference): Likewise.
217 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
218 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
219 (mips_va_start): Likewise. Use the new stack_words field of
220 CUMULATIVE_ARGS to set up overflow area. Reformat.
221 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
222 doubles and other types, aligning the overflow pointer for non-doubles
223 too. Remove some code duplication. Replace hard-coded constants.
225 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
227 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
228 (CLASS_UNITS): Undefine.
229 (CLASS_MAX_NREGS): Use FP_INC.
230 * config/mips/mips.c (compute_frame_size): Likewise.
231 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
233 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
235 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
236 prototype, and handle lexing numbers and identifiers.
237 (parse_identifier): Update to new form of parse_slow.
238 (parse_number): Fast path only, use parse_slow otherwise.
239 (_cpp_lex_direct): Update calls to parse_number.
241 2002-03-21 DJ Delorie <dj@redhat.com>
243 * bb-reorder.c (make_reorder_chain_1): Protect against
244 when redundant edges are omitted.
245 * predict.c (dump_prediction): Likewise.
247 2002-03-21 Richard Henderson <rth@redhat.com>
250 * fixinc/inclhack.def (solaris_stdio_tag): New.
251 * fixinc/fixincl.x: Regenerate.
253 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
256 * c-typeck.c (process_init_element): Flag non-static
257 initialization of a flexible array member as illegal.
259 2002-03-22 Alan Modra <amodra@bigpond.net.au>
261 * config/rs6000/t-linux64: New.
262 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
263 t-ppccomm. Use t-rs6000 and t-linux64.
264 (powerpc64-*-gnu* <tmake_file>): Likewise.
265 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
266 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
267 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
269 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
271 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
272 flag_really_no_inline instead of optimize == 0.
274 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
276 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
278 * flags.h (flag_really_no_inline): New.
280 * c-common.c (c_common_post_options): Initialzie
281 flag_really_no_inline.
283 * toplev.c (flag_really_no_inline): New.
285 2002-03-21 Jakub Jelinek <jakub@redhat.com>
287 * config/avr/avr.md (length): Fix length computation for
288 conditional branches.
290 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
292 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
293 sdbout.o, profile.o): Update.
294 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
296 * c-common.h (gettags): Move here from tree.h.
297 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
298 insert_block, getdecls, kept_level_p, global_bindings_p): New.
299 * dbxout.c (dbxout_init): Use getdecls langhook.
300 * expr.c (expand_expr): Use insert_block langhook.
301 * fold-const.c: Include langhooks.h.
302 (fold_range_test, fold_binary_op_with_conditional_arg,
303 fold): Use global_bindings_p langhook.
304 * integrate.c (expand_inline_function): Use insert_block langhook.
305 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
306 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
307 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
308 LANG_HOOKS_GETDECLS): New.
309 (LANG_HOOKS_INITIALIZER): Update.
310 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
312 * langhooks.h (struct lang_hooks_for_decls): New.
313 (struct lang_hooks): Update.
314 * profile.c: Include langhooks.h.
315 (output_func_start_profiler): Use new langhooks.
316 * sdbout.c: Include langhooks.h.
317 (sdbout_init, sdbout_finish): Use getdecls langhook.
318 * stmt.c: Include langhooks.h.
319 (expand_fixup, fixup_gotos): Use new langhooks.
320 * stor-layout.c: Include langhooks.h.
321 (variable_size): Use global_bindings_p langhook.
322 * toplev.c (compile_file): Use getdecls langhook.
323 * tree-inline.c (remap_block): Use insert_block langhook.
324 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
325 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
327 2002-03-21 Richard Henderson <rth@redhat.com>
329 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
330 constants in .data when -fpic.
332 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
334 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
337 2002-03-21 Tom Tromey <tromey@redhat.com>
339 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
341 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
343 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
345 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
347 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
348 Richard Henderson <rth@redhat.com>
351 * c-common.c (c_expand_expr): Preserve result of a statement
352 expression if needed.
354 2002-03-21 Jakub Jelinek <jakub@redhat.com>
357 * genrecog.c (maybe_both_true_mode): Remove.
358 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
359 * machmode.def (Pmode): Likewise.
361 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
363 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
364 (nonlocal_mentioned_p_1): New function.
365 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
366 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
367 (mark_constant_function): Recognize pure functions.
368 * rtl.h (global_reg_mentioned_p): New prototype.
369 * rtlanal.c (global_reg_mentioned_p,
370 global_reg_mentioned_p_1): New function.
372 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
374 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
376 * fixinc/fixincl.x: Regenerate.
378 2002-03-20 Jason Merrill <jason@redhat.com>
380 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
382 2002-03-20 Michael Meissner <meissner@redhat.com>
384 * doc/invoke.texi (Optimize Options): Document that -O2 sets
387 2002-03-20 Bob Wilson <bob.wilson@acm.org>
389 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
390 ".literal_position" directive before the constant pool.
392 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
394 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
396 Add Brad Lucier to testers.
398 2002-03-20 Jakub Jelinek <jakub@redhat.com>
401 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
403 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
404 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
405 instead of insn_extract.
407 2002-03-20 Jakub Jelinek <jakub@redhat.com>
410 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
412 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
413 stmt if some case has been output.
415 2002-03-20 Jakub Jelinek <jakub@redhat.com>
418 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
419 movsfcc_1, movdfcc_1): Add %O2.
420 * config/i386/i386.c (print_operand): Handle %ON.
421 Print . before float condition codes in Sun as cmov syntax.
422 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
423 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
426 2002-03-20 Philip Blundell <pb@nexus.co.uk>
428 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
429 return instruction if PC was popped.
431 2002-03-20 Bob Wilson <bob.wilson@acm.org>
433 * config/xtensa/xtensa.md: Remove unused type attributes.
434 (adddi_carry, subddi_carry): Change type attribute to "multi".
436 2002-03-19 Dale Johannesen <dalej@apple.com>
438 PR optimization/5999, middle-end/5731
439 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
440 multiplications by reciprocals.
442 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
444 * Makefile.in: Update.
445 * c-common.c: Include langhooks.h.
446 (inline_forbidden_p): Use new hook.
447 * diagnostic.c: Include langhooks.h.
448 (format_with_decl, announce_function,
449 default_print_error_function): Use new hook.
450 * dwarf2out.c (dwarf2_name): Use new hook.
451 * function.c: Include langhooks.h.
452 (init_function_start): Use new hook.
453 * langhooks-def.h (lhd_decl_printable_name): New.
454 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
455 (LANGHOOKS_INITIALIZER): Update.
456 * langhooks.c (lhd_decl_printable_name): New.
457 * langhooks.h (struct lang_hooks): New hook.
458 * toplev.c (decl_name, decl_printable_name): Remove.
459 (open_dump_file): Use new hook.
460 (process_options): Remove old hook.
461 * tree.h (decl_printable_name): Remove.
463 * objc-act.c (objc_init): Remove old hook.
464 (objc_printable_name): Export.
465 * objc-act.h (objc_printable_name): New.
466 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
468 2002-03-19 Jim Blandy <jimb@redhat.com>
470 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
471 the start_source_file debug hook, not the current line number.
473 2002-03-19 Richard Henderson <rth@redhat.com>
475 * flow.c (EH_USES): Provide default.
476 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
477 * doc/tm.texi (EH_USES): New.
479 * config/ia64/ia64.c (ia64_eh_uses): New.
480 * config/ia64/ia64-protos.h: Update.
481 * config/ia64/ia64.h (EH_USES): New.
483 2002-03-19 Richard Henderson <rth@redhat.com>
485 * varasm.c (output_constant_def): Fix stupid typo.
487 2002-03-19 Richard Henderson <rth@redhat.com>
490 * except.c (current_function_has_exception_handlers): New.
491 * except.h: Declare it.
492 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
493 Combine tests that disable all sibcalls for the function.
495 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
497 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
500 2002-03-19 Richard Henderson <rth@redhat.com>
503 * config/ia64/ia64.c: Revert 2002-03-01 patch.
504 * config/ia64/ia64.h (INIT_EXPANDERS): New.
506 2002-03-19 Jim Blandy <jimb@redhat.com>
508 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
509 name, even if the replacement list contains no tokens, as required
512 2002-03-19 Jason Merrill <jason@redhat.com>
514 * varasm.c (globalize_decl): Get the name from the RTL, not
517 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
519 2002-03-19 Bob Wilson <bob.wilson@acm.org>
521 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
522 subdi_carry): Define.
524 2002-03-19 David Edelsohn <edelsohn@gnu.org>
526 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
527 about -fpic/-fPIC if extra_warnings set.
529 2002-03-19 David Edelsohn <edelsohn@gnu.org>
531 * expr.c (expand_expr): Sign-extend CONST_INT generated from
533 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
535 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
537 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
538 in favor of SP if FRAME_POINTER_REQUIRED is false.
540 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
542 * emit-rtl.c (gen_int_mode): New function.
543 * rtl.h: Prototype for it.
544 * combine.c (make_extraction, simplify_comparison), expmed.c
545 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
546 (convert_modes, store_field), optabs.c (expand_fix),
547 simplify-rtx.c (neg_const_int, simplify_unary_real),
549 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
550 Use it instead of GEN_INT (trunc_int_for_mode (...)).
552 2002-03-19 Jakub Jelinek <jakub@redhat.com>
555 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
556 convert_parm_for_inlining.
557 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
559 * langhooks-def.h: Likewise.
560 * objc/objc-lang.c: Likewise.
561 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
563 * tree-inline.c (initialize_inlined_parameters):
564 Call convert_parm_for_inlining lang hook if needed.
565 * c-typeck.c (c_convert_parm_for_inlining): New function.
566 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
568 2002-03-18 Mark Mitchell <mark@codesourcery.com>
570 * calls.c (precompute_arguments): Do not assume that temporaries
571 can be destroyed after expanding the argument.
572 (expand_call): Likewise.
574 2002-03-15 Eric Christopher <echristo@redhat.com>
576 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
577 Fix register preference on last change.
578 * config/mips/mips.c (mips_return_in_memory): New function.
579 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
580 * config/mips/mips-protos.h: Declare.
581 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
582 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
584 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
586 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
588 (anddi3, iorsi3): Likewise.
590 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
591 use %gprel for symbols that are going to be placed in linkonce
594 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
595 RETURN_ADDRESS_POINTER_REGNUM to $ra.
596 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
597 not needed. Disregard leaf_function_p().
598 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
599 mips16 frame pointer.
600 * config/mips/mips.md (store ra): Only to small SP offsets.
601 2001-08-22 Graham Stott <grahams@redhat.com>
602 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
603 return a REG rtx for the return address register.
605 2002-03-18 Bob Wilson <bob.wilson@acm.org>
607 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
608 constant-pool addresses as "mode-dependent".
609 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
611 2002-03-18 Jakub Jelinek <jakub@redhat.com>
614 * expr.c (emit_group_load): Use extract_bit_field if
615 needed for CONCAT arguments.
617 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
620 * arm.md (tablejump): Make this a define_expand. For PIC add the
621 offset to the base of the table.
622 (thumb_tablejump): Matcher for Thumb tablejump insn.
623 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
624 as the difference of two labels.
625 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
626 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
628 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
629 * arm.c (get_jump_table_size): If the table is not in the text
630 section, return zero.
632 2002-03-18 Bernd Schmidt <bernds@redhat.com>
634 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
636 (arm_reload_out_hi): Use gen_lowpart instead of
637 gen_rtx_SUBREG to access QImode components.
638 * config/arm/arm.md: Disable zero_extend split for QImode
639 subregs in BIG_ENDIAN mode.
640 (storehi_bigend): Match use of least significant byte.
641 (storeinthi): Remove extraneous SUBREG.
642 Add missing construction of operands[2].
643 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
644 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
645 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
647 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
649 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
652 2002-03-17 Richard Henderson <rth@redhat.com>
654 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
657 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
659 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
660 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
662 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
664 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
666 * predict.c (estimate_bb_frequencies): Delete unused variables.
668 2002-03-17 Richard Henderson <rth@redhat.com>
670 * config/ia64/ia64.c (ia64_attribute_table): Move before
671 targetm definition. Make static.
673 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
675 * c-common.h (yyparse, c_common_parse_file): New.
676 * c-lang.c: Include c-common.h.
677 (LANG_HOOKS_PARSE_FILE): Redefine.
678 * c-lex.c: Include c-common.h.
679 (yyparse): Rename c_common_parse_file. Call yyparse.
680 * c-parse.in (yyparse): Remove macro.
681 * c-tree.h (yyparse_1): Remove.
682 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
683 (LANG_HOOKS_INITIALIZER): Update.
684 * langhooks.h (struct lang_hoooks): New hook parse_file.
685 * toplev.c (compile_file): Use parse_file hook.
686 * tree.h (yyparse): Remove.
687 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
689 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
691 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
692 float_truncate, not fix.
693 ("*truncdfsf2_real"): Ditto.
694 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
696 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
698 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
700 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
701 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
702 where appropriate. Make the second reference to
703 leaf_function_p a function call, as intended. Reindented.
705 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
706 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
708 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
709 add register to non-constant into sp.
711 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
712 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
713 (mips16_gp_pseudo_rtx): Lose.
714 (INIT_EXPANDERS): Deleted.
715 * config/mips/mips.c (mips_init_machine_status): New.
716 (mips_free_machine_status): New.
717 (mips_mark_machine_status): New.
718 (override_options): Set them.
719 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
720 (struct machine_function): ... new. Replaced all references.
721 (mips_add_gc_roots): Don't mark them.
722 (embedded_pic_fnaddr_reg): New, extracted from...
723 (embedded_pic_offset): ... here.
724 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
727 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
729 * cppinit.c: Revert -MD removal.
731 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
733 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
734 soft registers by default for 68HC12.
735 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
736 when compiling with -fomit-frame-pointer.
737 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
738 (expand_epilogue): Likewise.
739 (m68hc11_gen_rotate): Use exg when rotating by 8.
741 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
743 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
744 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
745 (splits): Remove unused add splits.
746 ("*addhi3_68hc12"): Tune constraints.
747 ("addhi_sp"): Try to use X instead of Y in all cases and if the
748 constant fits in 8-bits and D is dead use abx/aby instructions.
749 ("*addhi3"): Remove extern declaration of ix_reg.
750 ("*subsi3"): Optimize and provide new split.
752 ("*subhi3_sp"): Avoid saving X if we know it is dead.
753 (arith splits): For 68hc12 save the address register on the stack
754 and do the arithmetic operation with a pop.
756 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
758 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
759 allocating QImode in address registers.
760 ("*movqi_m68hc11"): Likewise.
762 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
764 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
766 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
768 * cppinit.c (print_help): Display -MD and -MMD.
769 Don't display usage string. Update assertion syntax and
771 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
772 (cpp_handle_option): Update.
774 2002-03-15 Chris Demetriou <cgd@broadcom.com>
776 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
777 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
778 and define it so that regardless of target CPU size,
779 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
780 of "int" rather than "long."
782 2002-03-15 Richard Henderson <rth@redhat.com>
784 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
787 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
789 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
790 ("tstqi" split): Avoid using memory for tstqi on address register.
791 (splits): Remove constraints.
792 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
793 ("cmpdf", "cmpsf"): Remove since not used.
794 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
795 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
797 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
799 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
800 ("neghi2"): Tighten constraints.
801 ("one_cmplsi2"): Optimize and simplify split.
802 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
804 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
806 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
807 and split of AND operation to clear the upper bits.
808 ("*logicalsi3_zextqi"): Likewise.
809 ("*logicallhi3_zexthi_ashift8"): Likewise.
810 ("*logicalsi3_silshr16"): Likewise.
811 ("logicalsi3_silshl16"): Likewise.
812 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
814 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
816 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
817 (m68hc11_indirect_p): New function.
818 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
819 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
821 (asm_print_register): Likewise.
822 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
823 (m68hc11_indirect_p): Declare.
824 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
825 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
826 (TARGET_SWITCHES): New option -mrelax.
827 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
829 ("iorsi3", "xorsi3"): Likewise.
830 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
831 ("*andhi3_mem"): New to handle destination in memory with bclr
832 and a scratch register.
833 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
834 ("*andhi3_const"): New when operand2 is constant.
835 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
836 ("*andhi3_gen"): Cleanup of the old "andhi3".
837 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
838 ("xorqi3"): Update constraints.
840 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
842 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
843 for reg_equiv_memory_loc when the operand is a register that does
844 not get a hard register (stack location).
845 (tst_operand): After reload, accept all memory operand.
846 (symbolic_memory_operand): Fix detection of symbolic references.
847 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
848 accept symbols and any constant.
850 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
852 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
853 note on the insn that sets the soft frame register.
854 (must_parenthesize): ix and iy are also reserved names.
855 (print_operand_address): One more place where parenthesis are required
856 to avoid confusion with register names.
857 (m68hc11_gen_movhi): Allow push of stack pointer.
858 (m68hc11_check_z_replacement): Fix handling of parallel with a
860 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
861 the replacement register is.
862 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
864 (MODES_TIEABLE_P): All modes are tieable except QImode.
866 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
868 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
869 (___subdi3): Likewise.
870 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
871 (__map_data_section): Optimize 68hc11 case.
873 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
875 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
876 than a shift to avoid adding a register with itself.
877 (m68hc11_memory_move_cost): Take into account NO_REGS.
878 (m68hc11_register_move_cost): Update and use memory move cost
880 (m68hc11_address_cost): Make cost of valid offset not 0 so that
881 it gives more opportunities to cse to optimize.
882 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
883 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
885 2002-03-15 Mark Mitchell <mark@codesourcery.com>
887 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
888 * c-common.def (CLEANUP_STMT): New tree node.
889 * c-common.h (CLEANUP_DECL): New macro.
890 (CLEANUP_EXPR): Likewise.
891 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
892 * expr.c (expand_expr): Tidy.
893 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
894 * tree-inline.c (initialize_inlined_parameters): Clean up
897 2002-03-15 Jakub Jelinek <jakub@redhat.com>
900 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
901 before movrXX only, use reg_overlap_mentioned_p.
902 Only special case NE if just one insn can be generated.
904 2002-03-15 Jason Merrill <jason@redhat.com>
906 * varasm.c (assemble_variable): Call resolve_unique_section before
907 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
910 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
913 * arm.md (split pattern for thumb shiftable immediates): Add comment
914 explaining non-obvious test.
916 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
919 * arm.md (movaddr, movaddr_insn): Delete.
921 2002-03-15 Jason Merrill <jason@redhat.com>
923 * toplev.c (wrapup_global_declarations): Clarify variable handling.
924 -fkeep-static-consts doesn't apply to comdats.
926 2002-03-14 Richard Henderson <rth@redhat.com>
928 * c-decl.c: Include c-pragma.h.
929 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
930 (finish_function): Tidy.
931 * c-pragma.c: Include c-common.h.
932 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
933 (handle_pragma_weak): Use them.
934 (init_pragma): Register pending_weaks.
935 * c-pragma.h (maybe_apply_pragma_weak): Declare.
936 * print-tree.c (print_node): Print DECL_WEAK.
937 * varasm.c (mark_weak_decls): Remove.
938 (remove_from_pending_weak_list): Remove.
940 (asm_emit_uninitialised): Call globalize_decl for weak commons.
941 (weak_decls): Make a tree_list.
942 (declare_weak): Cons weak_decls directly.
943 (globalize_decl): Remove weak_decls elements directly.
944 (weak_finish): Simplify weak_decls walk. Don't weaken unused
945 symbols. Don't pretend to handle aliases.
946 (init_varasm_once): Update weak_decls registry.
947 * Makefile.in: Update dependencies.
949 2002-03-14 Richard Henderson <rth@redhat.com>
952 * config/ia64/ia64.c: Include tm_p.h last.
953 (gen_nop_type): Remove duplicate definition.
954 (cycle_end_fill_slots): Set sched_data for second L slot.
955 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
956 (nop_cycles_until): Fix typos.
958 2002-03-15 Jakub Jelinek <jakub@redhat.com>
961 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
963 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
965 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
966 descriptors correctly.
968 2002-03-14 Michael Meissner <meissner@redhat.com>
970 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
971 100, allowing MAX_UNROLLED_INSNS to be overridden.
973 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
976 * unroll.c (params.h): Include.
977 (MAX_UNROLLED_INSNS): Delete, now in params.h.
979 * doc/invoke.texi (--param max-unroll-insns): Document.
981 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
983 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
985 * arm.md: Fix warnings about constraints in peepholes and splits.
987 2002-03-14 Zack Weinberg <zack@codesourcery.com>
989 * cpphash.h (struct lexer_state): Remove line_extension member.
990 * cpplib.c (dequote_string, do_linemarker): New functions.
991 (linemarker_dir): New data object.
992 (DIRECTIVE_TABLE): No longer need to interpret #line in
993 preprocessed source. Delete obsolete comment about return
995 (end_directive, directive_diagnostics, _cpp_handle_directive):
996 Don't muck with line_extension.
997 (directive_diagnostics): No need to issue warnings for
999 (_cpp_handle_directive): Issue warnings for linemarkers here,
1000 when appropriate. Dispatch linemarkers to do_linemarker, not
1002 (do_line): Code to handle linemarkers split out to do_linemarker.
1003 Convert escape sequences in filename argument, both places.
1005 * cppmacro.c (quote_string): Rename cpp_quote_string and
1006 export. All callers changed.
1007 * cpplib.h (cpp_quote_string): Prototype.
1008 * cppmain.c (print_line): Call cpp_quote_string on to_file
1011 * doc/cpp.texi: Document that escapes are now interpreted in
1012 #line and in linemarkers, and that non-printing characters are
1013 converted to octal escapes when linemarkers are generated.
1015 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
1017 * emit-rtl.c (try_split): Use delete_insns.
1018 * recog.c (split_all_insns): Fix terminating condition.
1020 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
1021 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
1024 * arm.c (arm_output_epilogue): Fix floating-point register save
1025 adjustment when using a frame pointer.
1027 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
1029 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
1030 * config/mips/mips.c (compute_frame_size): Retrofit them here.
1031 (save_restore_insns, mips_expand_epilogue): And here.
1032 (build_mips16_call_stub): And here.
1033 (mips_function_value): Use the new macros to decide whether a single
1034 or complex float can be returned in floating-point registers. Return
1035 a parallel rtx in the complex case.
1037 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
1039 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
1040 call after liveness analysis.
1042 * recog.c (split_insn): Use delete_insn_and_edges.
1044 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
1045 instructions to have branch prediction notes.
1046 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
1048 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
1050 * configure.in: Don't pass -Wno-long-long to a ADA compiler
1051 that doesn't support it.
1052 * configure: Regenerate.
1054 2002-03-13 Jakub Jelinek <jakub@redhat.com>
1057 * config/sparc/sparc.md (normal_branch, inverted_branch,
1058 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
1059 inverted_fp_branch): Adjust calls to output_cbranch.
1060 Set length attribute.
1061 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
1062 output_v9branch. Set length attribute.
1063 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
1065 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
1066 (output_cbranch): Likewise. Handle far branches.
1067 (output_v9branch): Handle far branches.
1068 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
1070 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
1071 noov_compare64_op predicates.
1073 2002-03-13 Jason Merrill <jason@redhat.com>
1075 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
1076 into the function and constify it.
1077 * gthr-dce.h, gthr-solaris.h: Likewise.
1079 2002-03-13 David Edelsohn <edelsohn@gnu.org>
1081 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
1082 * config/rs6000/rs6000.c (rs6000_va_arg): Use
1083 std_expand_builtin_va_arg if not ABI_V4.
1085 2002-03-13 Jason Merrill <jason@redhat.com>
1087 * varasm.c (globalize_decl): New fn.
1088 (assemble_start_function): Use it.
1089 (asm_emit_uninitialized): Use it.
1090 (assemble_alias): Use it.
1091 (assemble_variable): Use it.
1093 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
1095 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
1096 2002-03-12 internal visibility change.
1097 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
1098 visibility into SYMBOL_REF_FLAG.
1100 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
1102 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
1103 VOIDmode operand. Add compile-time optimization for constant results.
1105 2002-03-12 Jason Merrill <jason@redhat.com>
1107 * c-typeck.c (convert_for_assignment): Don't allow conversions
1108 between pointers and references. Only allow lvalues to convert to
1111 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
1113 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
1114 before prologue, to avoid scheduling problems.
1116 2002-03-13 Jakub Jelinek <jakub@redhat.com>
1118 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
1119 (ELIMINABLE_REGS): Add sfp->sp.
1120 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
1122 2002-03-13 Jakub Jelinek <jakub@redhat.com>
1124 PR optimization/5892
1125 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
1127 2002-03-13 Jakub Jelinek <jakub@redhat.com>
1129 * loop.c (basic_induction_var): Don't call convert_modes if mode
1130 classes are different.
1132 2002-03-12 Richard Henderson <rth@redhat.com>
1134 PR optimization/5901
1135 * function.c (reposition_prologue_and_epilogue_notes): Position
1136 the markers after/before the last/first insn not deleted.
1138 2002-03-12 Richard Henderson <rth@redhat.com>
1140 PR optimization/5878
1141 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
1142 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
1143 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
1145 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
1146 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
1147 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
1149 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
1150 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
1151 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
1152 also. Don't set it if not flag_pic.
1153 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
1154 to be INVALID_REGNUM when not used.
1156 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
1158 * expmed.c (store_bit_field): Reset alias set for memory.
1159 (extract_bit_field): Same.
1161 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1163 * c-common.c (c_tree_code_type, c_tree_code_length,
1164 c_tree_code_name, add_c_tree_codes): Delete.
1165 * c-common.h (add_c_tree_codes): Delete.
1166 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
1168 * c-objc-common.c (c_objc_common_init): Don't call
1169 add_c_tree_codes, instead set lang_unsafe_for_reeval.
1170 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
1171 objc_tree_code_name, add_objc_tree_codes): Delete.
1172 (objc_init): Don't call add_objc_tree_codes.
1173 * objc/objc-lang.c (tree_code_type, tree_code_length,
1174 tree_code_name): Define.
1175 * toplev.c (lang_independent_init): Don't set
1176 tree_code_length[IDENTIFIER_NODE].
1177 * tree.c (tree_code_type, tree_code_length, tree_code_name):
1178 Delete definitions, moved to language front-ends.
1179 * tree.def (IDENTIFIER_NODE): Hardwire the length.
1180 * tree.h (tree_code_type, tree_code_length, tree_code_name):
1182 (tree_code_length): Change type to unsigned char.
1184 2002-03-12 Richard Henderson <rth@redhat.com>
1186 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
1187 internal visibility change.
1189 2002-03-12 Bob Wilson <bob.wilson@acm.org>
1191 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
1192 validize_mem() instead of change_address to avoid clobbering
1195 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
1197 * c-lex.h (position_after_whitespace): Remove.
1199 2002-03-12 Jakub Jelinek <jakub@redhat.com>
1201 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
1202 (lex_string): Use unsigned char pointers.
1204 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
1206 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
1207 is not a valid memory_operand.
1209 2002-03-12 Bob Wilson <bob.wilson@acm.org>
1211 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
1212 * config/xtensa/lib1funcs.asm: Fix copyright to include
1213 special case for libgcc files.
1214 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
1215 (__divsi3): Likewise.
1216 (__umodsi3): Likewise.
1217 (__modsi3): Likewise.
1218 * config/xtensa/lib2funcs.S: Fix copyright to include
1219 special case for libgcc files.
1221 2002-03-12 Tom Rix <trix@redhat.com>
1223 * collect2.c (resolve_lib_name): Move outside of
1224 OBJECT_FORMAT_COFF ifdef.
1225 (ignore_library): Same.
1227 2002-03-12 Bob Wilson <bob.wilson@acm.org>
1229 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
1231 2002-03-12 Bob Wilson <bob.wilson@acm.org>
1233 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
1234 to function_section before writing out the constant pool.
1236 2002-03-12 David Edelsohn <edelsohn@gnu.org>
1238 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
1240 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
1242 2002-03-12 Alan Modra <amodra@bigpond.net.au>
1244 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
1248 (cmpsi splitter): Likewise.
1249 (modsi3): Fail if <= 0.
1250 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
1251 redundant test when HOST_BITS_PER_WIDE_INT != 32.
1252 (reg_or_sub_cint64_operand): Likewise.
1253 (num_insns_constant_wide): Optimize sign extension.
1254 (rs6000_legitimize_address): Likewise.
1256 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
1258 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
1259 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
1261 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
1263 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
1264 address calculation.
1266 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
1268 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
1269 scratch register to DImode / TImode.
1270 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
1271 register used does not overlap the target.
1273 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1275 * Makefile.in (debug.o): Depend on debug.h.
1276 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
1277 * debug.c (do_nothing_debug_hooks): Likewise.
1278 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
1279 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
1280 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
1281 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
1282 * dwarfout.c (dwarf_debug_hooks): Likewise.
1283 * integrate.c (output_inline_function): Likewise.
1284 * objc/objc-act.c (synth_module_prologue): Likewise.
1285 * sdbout.c (sdb_debug_hooks): Likewise.
1286 * toplev.c (debug_hooks): Likewise.
1287 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1289 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1291 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
1292 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
1293 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
1294 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
1295 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
1296 * defaults.h (POINTER_SIZE): Define.
1297 * doc/tm.texi (POINTER_SIZE): Document default.
1299 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1301 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
1303 2002-03-11 Richard Henderson <rth@redhat.com>
1305 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
1306 if rebuild_label_notes_after_reload.
1308 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
1310 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
1311 emit pic register load if "internal" visibility.
1312 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
1313 (cris_expand_builtin_va_arg): Do all computations on trees.
1315 2002-03-11 Richard Henderson <rth@redhat.com>
1317 * rtlanal.c: Include recog.h.
1318 (keep_with_call_p): Fix thinko.
1319 * Makefile.in (rtlanal.o): Update dependencies.
1321 2002-03-11 Chris Meyer <cmeyer@gatan.com>
1323 * genflags.c (gen_insn): Use IS_VSPACE.
1324 * genoutput.c (output_insn_data): Likewise.
1325 (process_template): Likewise.
1327 2002-03-11 Richard Henderson <rth@redhat.com>
1329 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
1331 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
1333 * Makefile.in: Update.
1334 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
1335 Update documentation.
1336 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
1337 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
1339 2002-03-11 Zack Weinberg <zack@codesourcery.com>
1341 * Makefile.in: Give texi2pod its input file as a command line
1342 argument, not on stdin.
1344 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
1345 Daniel Berlin <dan@dberlin.org>
1347 C++ alias analysis improvement.
1348 * alias.c (record_component_aliases): Record aliases for base
1351 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
1353 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
1355 2002-03-11 Douglas B Rupp <rupp@gnat.com>
1357 * toplev.c (vms_fopen): Remove, not needed.
1359 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
1361 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
1363 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
1364 for FP, already done later.
1366 * toplev.c (debug_args): Add entry for VMS_DEBUG.
1367 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
1369 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
1371 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
1372 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
1373 LARGEST_EXPONENT_IS_NORMAL for the given mode.
1374 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
1375 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
1376 (ediv, emul, eldexp, esqrt): Likewise.
1377 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
1378 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
1379 (saturate): New function.
1380 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
1381 (make_nan): Use a saturation value instead of a NaN if
1382 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
1383 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
1384 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
1385 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
1386 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
1387 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
1388 !ROUND_TOWARDS_ZERO.
1389 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
1390 (ROUND_TOWARDS_ZERO): Document.
1392 2002-03-11 Andreas Jaeger <aj@suse.de>
1394 * cfg.c (dump_flow_info): Remove unused variable.
1396 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
1398 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
1399 computations on trees.
1401 2002-03-10 Richard Henderson <rth@redhat.com>
1404 * reload.c (copy_replacements_1): New.
1405 (copy_replacements): Use it to recurse through the rtx.
1407 2002-03-10 Richard Henderson <rth@redhat.com>
1409 * loop.c (strength_reduce): Compute number of iterations as
1410 unsigned HOST_WIDE_INT.
1412 2002-03-10 Richard Henderson <rth@redhat.com>
1414 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
1415 to move away from the end of the block.
1417 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
1419 PR preprocessor/5899
1420 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
1422 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1424 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
1426 * attribs.c (decl_attributes): Fix signed/unsigned warning.
1428 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
1430 * config/mmix/mmix.c: Improve comments.
1431 (mmix_target_asm_function_prologue): Drop variable
1432 empty_stack_frame. Don't allocate unused slot above fp.
1433 (mmix_target_asm_function_epilogue): Mirror prologue changes.
1434 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
1435 brace in first column.
1436 (enum reg_class): Ditto.
1437 (FIRST_PARM_OFFSET): Now 0.
1438 (USER_LABEL_PREFIX): Remove #if 0:d definition.
1440 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1442 * combine.c (make_extraction): Fix error in last change.
1444 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1446 * c4x.c (c4x_fp_reglist): Const-ify.
1447 * cris.c (cris_print_operand): Likewise.
1448 * i386.c (ix86_va_arg): Likewise.
1449 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
1450 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
1451 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
1452 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
1453 * mcore.h (regno_reg_class): Likewise.
1454 * mips.c (gen_int_relational): Likewise.
1455 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
1456 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
1457 * pdp11.c (move_costs): Likewise.
1458 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
1459 * s390.c (s390_branch_condition_mnemonic, regclass_map):
1461 * s390.h (regclass_map): Likewise.
1462 * sh.c (shift_amounts): Likewise.
1463 * sh.md (rotlsi3): Likewise.
1465 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
1467 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
1468 (ne0+5): Use new clobber to generate proper shift pattern.
1469 Patch by Michael Matz <matz@kde.org>.
1471 2002-03-09 Andreas Schwab <schwab@suse.de>
1473 * gcc.c (validate_all_switches): Also handle `%W{...}'.
1475 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
1477 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
1479 2002-03-09 Jakub Jelinek <jakub@redhat.com>
1482 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
1483 even for non-representable constants.
1485 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1487 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
1488 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
1489 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
1490 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
1491 (pop_function_context): Compute MAY_SHARE parameter for
1493 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
1494 (gen_mem_addressof): Call fixup_var_refs with new parm.
1496 * combine.c (make_extraction): Don't make extension of CONST_INT.
1498 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
1500 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
1501 in o32 and o64 ABIs.
1502 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
1503 but getting fixed-size structs passed in registers regardless of
1504 padding in o32 and o64 ABIs.
1506 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
1507 offset before loading address of argument passed by transparent
1510 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
1512 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
1514 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
1516 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
1517 marker such that registers after it are saved.
1519 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1521 * sparc.c (arith_4096_operand): Fix error in last change.
1523 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
1525 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
1528 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
1530 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
1533 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
1535 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
1537 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
1539 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
1540 removed; fix return value.
1541 * combine.c (combine_instructions): Dirtify blocks where we failed to
1542 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
1543 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
1545 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1547 * gcse.c (insert_insn_end_bb): Fix typo in last change.
1549 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
1551 * recog.c (peephole2_optimize): Re-distribute EH edges.
1553 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
1555 * expr.c (expand_expr): Use unsave lang hook.
1556 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
1557 (LANG_HOOKS_INITIALIZER): Update.
1558 * langhooks.h (struct lang_hooks): New hook unsave.
1559 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
1560 (unsave_expr_1): Remove unused lang_unsave_expr_now.
1561 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
1562 (unsave_expr_now): Remove.
1563 * tree.h (unsave_expr_now, lang_unsave,
1564 lang_unsave_expr_now): Remove.
1567 2002-03-08 Andreas Jaeger <aj@suse.de>
1569 * flow.c (propagate_block_delete_insn): Remove unused variable.
1571 2002-03-08 Kazu Hirata <kazu@hxi.com>
1573 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
1574 insn length for memory load/store.
1576 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
1578 * doc/install.texi (--with-libiconv-prefix): Document.
1580 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
1582 * doc/sourcebuild.texi: Fix typo.
1584 2002-03-08 Jakub Jelinek <jakub@redhat.com>
1587 * builtins.c (std_expand_builtin_va_arg): Do all computations on
1590 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1592 * rtl.c (copy_most_rtx): Move from here ...
1593 * emit-rtl.c (copy_most_rtx): ... to here.
1595 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
1597 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
1598 SUBTARGET_CPP_SIZE_SPEC.
1599 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
1601 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
1603 2002-03-07 Matt Hiller <hiller@redhat.com>
1605 * gensupport.c (first_dir_md_include): Renamed from include;
1606 change all references.
1607 (last_dir_md_include): Renamed from last_include; change all
1609 (init_md_reader): Unconditionally initialize base_dir whether or
1610 not filename is a relative path.
1612 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
1614 * config/fp-bit.c (_unord_f2): Compile it in even if
1615 US_SOFTWARE_GOFAST is enabled.
1617 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
1618 NULL_RTX. Set all HFmode operations as NULL_RTX.
1619 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
1620 NULL_RTX, try reversing the comparison and the operands.
1622 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
1624 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
1625 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
1628 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
1630 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
1632 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
1634 * basic-block.h (fixup_abnormal_edges): Declare.
1635 * reload1.c (fixup_abnormal_edges): New function.
1636 * reg-stack.c (convert_regs): Use it.
1638 * gcse.c (insert_insn_end_bb): Handle trapping insns.
1640 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
1642 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
1644 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
1645 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
1646 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
1647 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
1648 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
1649 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
1650 unless x and y could be infinite.
1651 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
1652 Check that the common type of both arguments is a real, even for
1653 targets without unordered comparisons. Allow an integer argument
1654 to be compared against a real.
1655 (expand_tree_builtin): Use expand_unordered_cmp.
1656 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
1657 * cse.c (fold_rtx): Likewise. Fix indentation.
1658 * fold-const.c (fold_real_zero_addition_p): New.
1659 (fold): Use it, and the new HONOR_... macros.
1660 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
1661 * jump.c (reversed_comparison_code_parts): After searching for
1662 the true comparison mode, use HONOR_NANS to decide whether it
1663 can be safely reversed.
1664 (reverse_condition_maybe_unordered): Remove IEEE check.
1665 * simplify-rtx.c (simplify_binary_operation): Use the new macros
1666 to decide which simplifications are valid. Allow the following
1667 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
1668 and (a - -b) to (a + b).
1669 (simplify_relational_operation): Use HONOR_NANS.
1670 * doc/tm.texi: Document the MODE_HAS_... macros.
1672 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
1674 * combine.c (simplify_comparison): If simplifying a logical shift
1675 right and compare with constant, force the comparison to unsigned.
1677 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
1679 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
1681 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
1683 (alt_reg_names): Remove % for vrsave.
1685 2002-03-06 Richard Henderson <rth@redhat.com>
1687 PR optimization/5844
1688 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
1689 if used indicates we've already emitted one copy of an operand.
1690 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
1691 (gen_split): Supply a non-null used.
1693 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
1695 * reload1.c (reload): Unshare all rtl after reload is done.
1697 * simplify-rtx.c (simplify_plus_minus): Do not abort,
1698 but simply fail if the expression is too complex to simplify.
1699 (simplify_gen_binary): Handle simplify_plus_minus failures.
1701 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
1703 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
1704 consistently call delete_trivially_dead_insns after CSE and GCSE;
1705 fix DFI_life dumping; do jump threading after liveness; do crossjumping
1706 after liveness2; update comment in last crossjumping.
1707 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
1709 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
1711 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
1712 after completing fast dead code elimination.
1714 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
1717 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
1719 * version.c: Fix misplaced leading blanks on first line.
1721 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
1723 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
1725 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
1727 * cfgcleanup.c (mentions_nonequal_regs): New function.
1728 (thread_jump): Use it.
1729 * toplev.c (rest_of_compilation): Run jump threading after
1732 2002-03-06 Jakub Jelinek <jakub@redhat.com>
1734 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
1737 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
1739 * predict.c (estimate_bb_frequencies): Do not reload the
1740 frequencies from notes.
1742 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
1744 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
1745 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
1747 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
1748 delete_noop_moves): Return indeger.
1749 * flow.c (ndead): New variable.
1750 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
1751 BB argument; update callers.
1752 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
1753 (life_analysis): Do not call purge_all_dead_edges.
1754 (update_life_info): Return number of deleted insns; print statistics.
1755 (update_life_info_in_dirty_blocks): likewise.
1756 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
1757 return number of insns deleted.
1759 * cse.c: Include timevar.h
1760 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
1761 iterate until stabilizes; print statistics; return number of killed
1763 * Makefile.in: (cse.o): Add timevar.h dependency
1764 * rtl.h (delete_trivially_dead_insns): New.
1765 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
1766 * toplev.c (rest_of_compilation): Update callers.
1768 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
1769 (try_optimize_cfg): Do not update liveness.
1770 (cleanup-cfg): Loop until try_optimize_cfg and dead code
1771 removal stabilizes; use delete_trivially_dead_insns.
1773 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
1775 2002-03-05 Zack Weinberg <zack@codesourcery.com>
1777 * cppmain.c (setup_callbacks): Disable #pragma and #ident
1778 callbacks when processing assembly language.
1780 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
1782 * pa.h (ASM_FILE_END): Define.
1783 * som.h (ASM_FILE_END): Delete.
1785 * pa.c (function_arg): Don't pass floats in general registers in
1786 indirect calls if TARGET_ELF32.
1788 2002-03-05 Richard Henderson <rth@redhat.com>
1790 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
1792 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
1794 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
1796 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1798 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
1799 -r command line. Don't hide any symbols if not building
1802 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
1804 * cfg.c (dump_flow_info): Warn about profile mismatches.
1805 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
1806 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
1808 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1810 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
1811 wide volatile memory by parts.
1813 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1815 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
1818 2002-03-05 Richard Henderson <rth@redhat.com>
1820 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
1822 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
1824 * toplev.c (documented_lang_options): Document more
1825 language-specific options.
1826 * doc/invoke.texi (Warning Options): Correct documentation for
1827 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
1828 * c-decl.c (c_decode_option): Use a table to handle warning options.
1830 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
1832 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
1833 parameter to mmix_encode_section_info.
1834 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
1835 relocatably. Always produce ELF, not mmo if linking relocatably.
1836 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
1837 first is non-zero, don't add symbol prefix.
1838 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
1839 prototype accordingly.
1841 2002-03-04 Krister Walfridsson <cato@df.lth.se>
1843 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
1845 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
1847 * configure.in: Increase required makeinfo version to 4.1.
1848 * configure: Regenerate.
1850 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
1852 * .cvsignore: Remove *.info* and genrtl*; these files are generated
1855 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
1857 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
1858 * doc/invoke.texi: Fix @math uses.
1860 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
1862 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
1865 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
1867 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
1868 (powerpc-*-eabisimaltivec*): Same.
1870 * config/rs6000/t-ppcendian: New.
1872 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1874 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
1875 nonimmediate_src_operand and nonimmediate_lsrc_operand to
1876 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
1878 2002-03-03 Richard Henderson <rth@redhat.com>
1880 * toplev.c (rest_of_decl_compilation): Revert last two changes.
1882 2002-03-03 Zack Weinberg <zack@codesourcery.com>
1884 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
1885 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
1886 tree.c, config/m68k/m68k.c:
1887 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
1888 REAL_ARITHMETIC blocks unconditional. Delete some further
1889 #ifdef blocks predicated on REAL_ARITHMETIC.
1890 * flags.h, toplev.c: Delete remaining references to
1893 * doc/invoke.texi: Remove documentation of -fpretend-float.
1894 * doc/tm.texi: Describe the various REAL_* macros as provided by
1895 real.h, not by the target configuration files.
1897 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
1898 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
1899 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
1900 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
1901 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
1902 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
1903 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
1904 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
1905 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
1906 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
1907 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
1908 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
1909 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
1910 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
1911 config/xtensa/xtensa.h:
1912 Do not define, undefine, or mention in comments any of
1913 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
1914 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
1915 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
1916 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
1917 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
1918 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
1919 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
1920 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
1921 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
1923 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1925 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
1926 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
1927 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
1928 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
1929 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
1930 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
1932 * defaults.h (BITS_PER_WORD): Define.
1933 * doc/tm.texi (BITS_PER_WORD): Document default value.
1935 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
1936 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
1937 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
1939 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1941 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
1942 lieu of explicit sizeof/sizeof.
1943 * i386.c (override_options, ix86_init_mmx_sse_builtins,
1944 ix86_expand_builtin): Likewise.
1945 * mips.c (mips_add_gc_roots): Likewise.
1946 * mmix.c (mmix_output_condition): Likewise.
1947 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
1948 altivec_init_builtins): Likewise.
1949 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
1950 * cppexp.c (Nsuff, parse_number): Likewise.
1951 * cppinit.c (builtin_array_end): Likewise.
1952 * gcc.c (n_default_compilers, process_command): Likewise.
1953 * genpreds.c (output_predicate_decls): Likewise.
1954 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
1955 * lcm.c (N_ENTITIES): Likewise.
1956 * stor-layout.c (set_sizetype): Likewise.
1958 2002-03-03 Richard Henderson <rth@redhat.com>
1960 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
1961 for types or labels.
1963 2002-03-03 Richard Henderson <rth@redhat.com>
1965 * c-decl.c (start_decl): Initialized variables are not common.
1967 2002-03-02 Per Bothner <per@bothner.com>
1969 * gcc.c (option_map): Suport new --bootclasspath option.
1970 --CLASSPATH is now just an alias for --classpath.
1972 2002-03-02 Richard Henderson <rth@redhat.com>
1974 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
1975 load if "internal" visibility.
1976 * doc/extend.texi: Document visibility meanings.
1978 2002-03-02 Richard Henderson <rth@redhat.com>
1980 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
1981 to functions as well.
1983 2002-03-02 Richard Henderson <rth@redhat.com>
1985 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
1986 (handle_visibility_attribute): Don't call assemble_visibility.
1987 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
1988 without asmspec. Invoke assemble_alias when needed.
1989 * varasm.c (maybe_assemble_visibility): New.
1990 (assemble_start_function, assemble_variable, assemble_alias): Use it.
1992 2002-03-02 Richard Henderson <rth@redhat.com>
1994 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
1995 invoke ENCODE_SECTION_INFO with first call flag.
1997 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
1998 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
1999 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
2000 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
2001 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
2002 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
2003 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
2004 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
2005 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
2006 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
2007 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
2008 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
2009 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
2010 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
2011 config/mcore/mcore-protos.h, config/mcore/mcore.c,
2012 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
2013 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
2014 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
2015 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
2016 config/sh/sh.h, config/sparc/sparc.h,
2017 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
2018 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
2019 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
2020 FIRST argument. As needed, examine it and do nothing.
2022 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
2023 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
2024 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
2026 * config/arm/t-pe (pe.o): Add dependencies.
2028 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2030 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
2031 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
2032 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
2033 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
2034 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
2035 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
2036 * defaults.h (BITS_PER_UNIT): Define.
2037 * doc/tm.texi (BITS_PER_UNIT): Document default value.
2039 2002-03-02 Kazu Hirata <kazu@hxi.com>
2041 * config/h8300/h8300-protos.h: Add a prototype for
2042 compute_a_shift_length.
2043 * config/h8300/h8300.c (h8300_asm_insn_count): New.
2044 (compute_a_shift_length): Likewise.
2045 (h8300_adjust_insn_length): Do not adjust insn length of shift
2047 * config/h8300/h8300.md (anonymous shift patterns): Use
2048 compute_a_shift_length.
2050 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2052 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
2055 * emit-rtl.c (offset_address): Call update_temp_slot_address.
2057 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2059 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
2060 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
2061 * flags.h (flag_zero_initialized_in_bss): Declare.
2062 * toplev.c (flag_zero_initialized_in_bss): New flag.
2063 (lang_independent_options): Add flag_zero_initialized_in_bss.
2064 * tree.c (initializer_zerop): New function.
2065 * tree.h (initializer_zerop): Declare.
2066 * varasm.c (assemble_variable): If we can emit bss, put zero
2067 initializers in the bss section.
2069 2002-03-02 Alan Modra <amodra@bigpond.net.au>
2071 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
2072 like more than one symbol per .weak directive.
2074 2002-03-01 Richard Henderson <rth@redhat.com>
2076 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
2077 adjust argument_pointer by pretend_args_size.
2078 (ia64_va_start): Adjust va_start address by -pretend_args_size.
2080 2002-03-01 Kazu Hirata <kazu@hxi.com>
2082 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
2084 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
2086 * toplev.c (rest_of_compilation): Delete dead jumptables before
2088 * flow.c (delete_dead_jumptables): Make global.
2089 * rtl.h (delete_dead_jumptables): Declare.
2091 2002-03-01 David Edelsohn <edelsohn@gnu.org>
2093 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
2094 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
2095 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
2097 2002-03-01 Kazu Hirata <kazu@hxi.com>
2099 * config/h8300/h8300-protos.h: Fix formatting.
2100 * config/h8300/h8300.c: Likewise.
2101 * config/h8300/h8300.h: Likewise.
2103 2002-03-01 Kazu Hirata <kazu@hxi.com>
2105 * config/h8300/h8300.c (print_operand): Support 16-bit
2107 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
2109 2002-02-28 Richard Henderson <rth@redhat.com>
2111 * expmed.c (store_bit_field): Prevent generation of CONCATs;
2112 pun complex values as integers; use gen_lowpart instead of
2114 (extract_bit_field): Likewise.
2116 2002-03-01 Alan Modra <amodra@bigpond.net.au>
2117 David Edelsohn <edelsohn@gnu.org>
2119 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
2120 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
2121 (SUPPORTS_WEAK): Likewise.
2122 * output.h (add_weak): Add tree param.
2123 * varasm.c (add_weak): Likewise. Save decl.
2124 (struct weak_syms): Add decl field.
2125 (mark_weak_decls): New function.
2126 (init_varasm_once): ggc_add_root mark_weak_decls.
2127 (assemble_start_function): Use ASM_WEAKEN_DECL.
2128 (assemble_variable): Likewise.
2129 (assemble_alias): Likewise.
2130 (declare_weak): Pass decl to add_weak.
2131 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
2132 (remove_from_pending_weak_list): Declare and define for
2134 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
2135 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
2136 * defaults.h (SUPPORTS_WEAK): Likewise.
2137 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
2138 .weak for code sym. Do emit .size for descriptor sym.
2139 (ASM_DECLARE_FUNCTION_SIZE): Define.
2140 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
2141 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
2142 .lglobl unless TARGET_XCOFF. Formatting fixes.
2143 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
2145 (HANDLE_PRAGMA_WEAK): Remove.
2146 (ASM_WEAKEN_LABEL): Remove.
2147 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
2149 2002-03-01 Jason Merrill <jason@redhat.com>
2151 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
2152 (TARGET_EXPR_CLEANUP): New macro.
2154 2002-02-28 Steve Ellcey <sje@cup.hp.com>
2156 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
2157 to take ptr_extend into account as third type of extension.
2158 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
2159 fields used by SUBREG_PROMOTED_UNSIGNED_P.
2160 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
2161 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
2162 * calls.c (precompute_arguments): Use new macro.
2163 (expand_call): Ditto.
2164 * combine.c (nonzero_bits): Ditto.
2165 (record_promoted_value): Ditto.
2166 * expr.c (store_expr): Ditto.
2167 (expand_expr): Ditto.
2168 * function.c (assign_parms): Ditto.
2170 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
2172 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
2173 override -shared and -shared-libgcc.
2175 2002-02-28 David O'Brien <obrien@FreeBSD.org>
2177 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
2179 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
2182 2002-02-28 Richard Henderson <rth@redhat.com>
2184 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
2185 4 cycle latency from MM producers.
2186 (ia64_internal_sched_reorder): Likewise with pipeline flush.
2188 2002-02-28 Jakub Jelinek <jakub@redhat.com>
2190 * mklibgcc.in: Don't use GNU make extension.
2192 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
2194 * c-parse.in (STATIC): New terminal.
2195 (scspec): New non-terminal. Update productions accordingly.
2196 (program): Remove bogus ifc / end ifc.
2197 (array_declarator): Simplify production using STATIC.
2199 2002-02-28 Jim Meyering <meyering@lucent.com>
2201 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
2202 \a still means TARGET_BELL.
2204 2002-02-28 Richard Henderson <rth@redhat.com>
2206 * haifa-sched.c (sched_emit_insn): New.
2207 (schedule_block): Use last_scheduled_insn to track last insn.
2208 * sched-int.h (sched_emit_insn): Prototype.
2209 * config/ia64/ia64.c (last_issued): Remove.
2210 (ia64_variable_issue): Don't set it.
2211 (nop_cycles_until): Use sched_emit_insn.
2213 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
2215 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
2218 2002-02-28 Kazu Hirata <kazu@hxi.com>
2220 * config/h8300/h8300.c: Fix formatting.
2221 * config/h8300/h8300.h: Likewise.
2223 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
2225 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
2226 which may overwrite the high byte of the frame pointer.
2228 2002-02-28 Bo Thorsen <bo@suse.de>
2230 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
2231 (STARTFILE_SPEC): Add 64 bit files.
2232 (ENDFILE_SPEC): Likewise.
2234 2002-02-28 Jason Merrill <jason@redhat.com>
2236 * c-decl.c (finish_function): Only warn about missing return
2237 statement with -Wreturn-type.
2239 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
2241 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
2243 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
2244 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
2246 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
2248 * basic-block.h (BB_REACHABLE): Renumber.
2249 (BB_DIRTY, BB_NEW): New flags.
2250 (clear_bb_flags): Declare.
2251 (update_life_info_in_dirty_blocks): Declare.
2252 * cfg.c (clear_bb_flags): New function.
2253 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
2254 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
2255 reorder_insns, emit_insn_after): Mark block as dirty.
2256 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
2257 (update_life_info_in_dirty_blocks): New function.
2258 * recog.c (apply_change_group): Dirtify block.
2260 * cse.c (cse_insn): Reorder emitting of jump insn to keep
2262 * gcse.c (delete_null_pointer_checks): Likewise.
2264 * toplev.c (dump_file_index): Move cse2 after bp,
2266 (dump_file_info): Similary.
2267 (rest_of_compilation): Avoid most of CFG rebuilds;
2268 do first if converision after null pointer checks, do cse2
2269 after branch prediction; avoid full liveness rebuild after
2270 initializing subregs.
2271 * invoke.texi (-d options): Document -du, renumber.
2273 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
2274 (notice_new_block): Do not set BB_UPDATE_LIFE.
2275 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
2276 merge_blocks_move_successor_nojumps, merge_blocks,
2277 try_crossjump_to_edge): Likewise.
2278 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
2279 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
2280 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
2281 (merge_of_block): Do not use life_data_ok.
2282 (find_if_case_1): Do not use SET_UPDATE_LIFE.
2283 (if_convert): Use BB_DIRTY mechanizm to update life.
2284 * lcm.c (optimize_mode_switching): Update
2285 update_life_info_in_dirty_blocks
2287 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
2289 * Makefile.in (integrate.o): Update.
2290 * c-decl.c (copy_lang_decl): Rename.
2291 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
2292 * integrate.c: Include langhooks.h.
2293 (copy_decl_for_inlining): Update to use langhook.
2294 * langhooks-def.h (lhd_do_nothing_t,
2295 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
2296 (LANG_HOOKS_INITIALIZER): Update.
2297 * langhooks.c (lhd_do_nothing_t): New.
2298 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
2299 * tree.h (copy_lang_decl): Remove.
2301 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
2303 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
2305 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
2306 POST_DEC, and POST_MODIFY.
2308 2002-02-27 Zack Weinberg <zack@codesourcery.com>
2310 * c-typeck.c (digest_init): Remove unused parameter; all
2313 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
2315 * expmed.c (expand_shift): Correctly test for low part of a
2318 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
2320 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
2321 insn UIDs with insn addresses.
2323 2002-02-27 Zack Weinberg <zack@codesourcery.com>
2325 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
2326 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
2327 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
2328 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
2329 gcc.c, toplev.c: Delete code implementing -traditional mode.
2331 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
2332 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
2333 Document removal of -traditional mode for compilation, and
2334 remove documentation only relevant to that mode.
2336 * config/nextstep.h, config/ptx4.h, config/svr4.h,
2337 config/convex/convex.h, config/d30v/d30v.h,
2338 config/i386/dgux.h, config/i386/osf1elf.h,
2339 config/i386/osfelf.h, config/i386/osfrose.h,
2340 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
2341 config/m68k/hp310.h, config/m88k/dgux.h,
2342 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
2343 config/m88k/m88k.h, config/m88k/openbsd.h,
2344 config/mips/abi64.h, config/mips/osfrose.h,
2345 config/mips/svr4-5.h, config/mips/svr4-t.h,
2346 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
2347 config/stormy16/stormy16.h: Remove all references to
2348 -traditional from target specs. Delete all mention of the
2349 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
2350 delete a couple of commented-out definitions of
2351 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
2354 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
2355 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
2357 2002-02-27 Zack Weinberg <zack@codesourcery.com>
2359 * mklibgcc.in: Don't use \n in a line subject to
2360 interpretation by echo.
2362 2002-02-27 Graham Stott <grahams@redhat.com>
2364 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
2367 * loop.c (prescan_loop): Handle PARALLEL.
2369 * unroll.c (loop_iterations): Return 0 if the add_val for
2372 * final.c (output_operand_lossage): Constify PFX_STR.
2374 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
2376 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
2378 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
2379 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
2381 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
2383 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
2385 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
2387 * cpplex.c (_cpp_lex_token): Handle directives in macro
2389 * cpplib.c (_cpp_handle_directive): Save and restore state
2390 if parsing macro args when entering a directive.
2391 * cppmacro.c (collect_args): No need to handle directives
2393 (enter_macro_context, replace_args): Use the original macro
2394 definition in case it was redefined whilst collecting arguments.
2398 2002-02-26 David Edelsohn <edelsohn@gnu.org>
2400 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
2401 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
2402 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
2404 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
2405 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
2406 (load_toc_v4_PIC_2): Same.
2408 2002-02-26 Alan Modra <amodra@bigpond.net.au>
2410 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
2412 2002-02-26 Richard Henderson <rth@redhat.com>
2414 * config/alpha/alpha.md (ashldi_se): Re-enable.
2416 2002-02-26 Richard Henderson <rth@redhat.com>
2418 * config/alpha/alpha.c (alpha_encode_section_info): Examine
2419 MODULE_LOCAL_P; improve commentary.
2421 2002-02-26 Zack Weinberg <zack@codesourcery.com>
2423 * doc/cpp.texi: Clarify documentation of relationship between
2426 2002-02-26 Kazu Hirata <kazu@hxi.com>
2428 * config/h8300/h8300-protos.h: Update the prototype for
2429 compute_logical_op_length. Add the prototype for
2430 compute_logical_op_cc.
2431 * config/h8300/h8300.c (compute_logical_op_length): Figure out
2433 (compute_logical_op_cc): New.
2434 * config/h8300/h8300.md: Combine all the logical op patterns
2435 in HImode and SImode. Use compute_logical_op_cc.
2437 2002-02-26 Kelley Cook <kelleycook@comcast.net>
2439 * config/i386/i386.c (print_operand): Don't append ATT-style
2440 length suffixs to x87 opcodes when in Intel mode.
2442 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
2444 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
2445 (init_emit_once): Update calls.
2446 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
2447 (init_syntax_once): Prototype.
2449 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
2451 * pa-linux.h (LIB_SPEC): Update definition.
2452 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
2454 2002-02-26 Richard Henderson <rth@redhat.com>
2456 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
2457 if we emitted a stop bit.
2459 2002-02-26 Jakub Jelinek <jakub@redhat.com>
2461 * configure.in (libgcc_visibility): Substitute.
2462 * configure: Rebuilt.
2463 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
2464 defined symbols .hidden.
2466 2002-02-26 Jakub Jelinek <jakub@redhat.com>
2468 * attribs.c (c_common_attribute_table): Add visibility.
2469 (handle_visibility_attribute): New function.
2470 * varasm.c (assemble_visibility): New function.
2471 * output.h (assemble_visibility): Add prototype.
2472 * tree.h (MODULE_LOCAL_P): Define.
2473 * crtstuff.c (__dso_handle): Use visibility attribute.
2474 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
2475 for MODULE_LOCAL_P symbols too.
2476 * config/ia64/ia64.c (ia64_encode_section_info): Handle
2477 MODULE_LOCAL_P symbols the same way as local symbols.
2478 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
2479 into .sdata/.sbss by the user.
2480 * doc/extend.texi (Function Attributes): Document visibility
2483 2002-02-26 Jakub Jelinek <jakub@redhat.com>
2486 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
2487 STRING_CST initializer spanning the whole variable without
2489 If expand_expr returned MEM, don't use it.
2491 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
2493 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
2494 generate a die for the lexical block.
2496 2002-02-26 Kazu Hirata <kazu@hxi.com>
2498 * config/h8300/h8300-protos.h: Add a prototype for
2499 compute_logical_op_length.
2500 * config/h8300/h8300.c (compute_logical_op_length): New.
2501 * config/h8300/h8300.md (anonymous logical patterns): Use
2502 compute_logical_op_length for length.
2504 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
2506 * dwarf2out.c (modified_type_die): Do not call type_main_variant
2508 (gen_type_die): Same.
2510 * attribs.c (handle_vector_size_attribute): Set debug information.
2512 2002-02-26 Daniel Egger <degger@fhm.edu>
2514 * config/rs6000/rs6000.md: Swap define_insn attributes to
2515 fix incorrect generation of merge high instructions instead
2518 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
2520 * c-typeck.c (really_start_incremental_init): Use
2521 bitsize_zero_node for vectors.
2523 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
2525 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
2526 ("*set_vrsave_internal"): Same.
2528 2002-02-25 Richard Henderson <rth@redhat.com>
2530 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
2531 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
2533 2002-02-25 Jakub Jelinek <jakub@redhat.com>
2536 * config/i386/i386.c (ix86_return_pops_args): Only pop
2537 fake structure return argument if it was passed on the stack.
2539 2002-02-25 Jason Merrill <jason@redhat.com>
2541 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
2544 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
2546 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
2547 link with shared_name only.
2548 * doc/invoke.texi (Link Options): Document new behavior.
2550 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
2552 * c-typeck.c (push_init_level): Handle vectors.
2554 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
2556 * config/sparc/sparc.c (const64_high_operand): Zero-extend
2557 operands of SPARC_SETHI_P.
2558 (input_operand): Likewise.
2559 (sparc_emit_set_const32): Likewise.
2560 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
2561 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
2562 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
2563 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
2564 (movdi_insn_sp64_vis): Likewise.
2565 (movdi split, movdf split): Use SETHI32.
2566 * doc/md.texi: Document SPARC constraints L, M and N.
2568 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
2570 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
2571 ("*set_vrsave_internal"): use mfspr for Darwin.
2573 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
2574 gen_get_vrsave_internal.
2576 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2578 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
2580 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
2582 * cpplex.c (cpp_interpret_charconst): Get signedness or
2583 otherwise of wide character constants correct.
2584 * cppexp.c (lex): Get signedness of wide charconsts correct.
2586 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2588 * optabs.c (widen_operand): Only call convert_modes for
2589 promoted SUBREG if signedness matches.
2590 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
2592 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
2594 * cpplib.c (glue_header_name): Use local buffer to build up
2597 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
2599 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
2601 2002-02-23 Kazu Hirata <kazu@hxi.com>
2603 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
2604 H8/300[HS] separately.
2605 * config/h8300/h8300.md: Remove the early clobber constraint
2606 from bit field patterns.
2608 2002-02-23 Kazu Hirata <kazu@hxi.com>
2610 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
2612 (mulhisi3): Likewise.
2613 (umulqisi3): Likewise.
2614 (umulhisi3): Likewise.
2616 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
2618 * cppinit.c (output_deps): Correct test for stdout output.
2619 (init_dependency_output): Cure warning.
2621 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2623 * expr.c (store_expr): When converting expression to promoted
2624 equivalent type, allow using SUBREG_REG of TARGET as the target
2625 of the expansion of EXP.
2626 * loop.c (basic_induction_var, case SUBREG): Always look inside.
2627 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
2628 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
2629 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
2630 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
2632 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
2634 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
2635 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
2636 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
2638 2002-02-23 Jakub Jelinek <jakub@redhat.com>
2640 PR optimization/5747
2641 * loop.c (scan_loop): Update reg info if move_movables created new
2644 2002-02-23 David Edelsohn <edelsohn@gnu.org>
2646 * gcc.c (init_gcc_spec): Revert last change.
2648 2002-02-23 David Edelsohn <edelsohn@gnu.org>
2650 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
2651 gpc_reg_operand constraint.
2653 2002-02-23 Alan Modra <amodra@bigpond.net.au>
2655 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
2656 Simplify comparison of `low'.
2657 (add_operand): Fix formatting.
2658 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
2659 (mask_operand): Disallow mask to wrap in 64-bit mode.
2660 (rs6000_stack_info): Remove redundant test setting push_p.
2661 (output_toc): Fix formatting.
2662 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
2663 cc_reg_not_cr0_operand constraint.
2664 (booldi3, boolcdi3 splitters): Same.
2666 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
2668 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
2670 2002-02-22 David Edelsohn <edelsohn@gnu.org>
2672 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
2673 gcc invoked with -shared-libgcc.
2675 2002-02-22 Jakub Jelinek <jakub@redhat.com>
2678 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
2679 decl if any of elements was TREE_USED.
2681 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
2683 * config/sparc/sol2.h: Don't include sys/mman.h.
2684 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
2685 (arith_4096_operand): Don't throw high bits away.
2686 (const64_operand): Take sign extension of CONST_INTs into account.
2687 (const64_high_operand, sparc_emit_set_const32): Likewise.
2688 (GEN_HIGHINT64): Likewise.
2689 (sparc_emit_set_const64_quick1): Likewise.
2690 (const64_is_2insns): Likewise.
2691 (print_operand): Use trunc_int_for_mode for sign extension.
2692 * config/sparc/sparc.h (SMALL_INT32): Likewise.
2693 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
2694 chars. Assume CONST_INT is already properly sign-extended.
2695 (movdi split): Sign-extend each SImode part.
2696 (andsi3 split): Don't mask high bits off, so that result
2697 remains properly sign-extend.
2698 (iorsi3 split): Likewise.
2699 (xorsi3 split): Likewise.
2701 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
2703 * fold-const.c (fold): Fix typo in comments.
2705 2002-02-21 Diego Novillo <dnovillo@redhat.com>
2707 * Makefile.in (langhooks.o): Update dependencies.
2709 2002-02-21 Diego Novillo <dnovillo@redhat.com>
2711 * langhooks.c: Include flags.h.
2713 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
2715 * testsuite/gcc.dg/attr-alwaysinline.c: New.
2717 * c-common.c (c_common_post_options): Set inline trees by
2720 * doc/extend.texi (Function Attributes): Document always_inline
2722 Update documentation about inlining when not optimizing.
2724 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
2726 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
2727 unless DECL_ALWAYS_INLINE.
2729 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
2730 unless DECL_ALWAYS_INLINE.
2731 (c_disregard_inline_limits): Disregard if always_inline set.
2733 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
2734 Disregard if always_inline set.
2735 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
2736 unless DECL_ALWAYS_INLINE.
2738 * attribs.c (handle_always_inline_attribute): New.
2739 (c_common_attribute_table): Add always_inline.
2741 * config/rs6000/altivec.h: Add prototypes for builtins
2742 requiring the always_inline attribute.
2744 2002-02-21 Eric Christopher <echristo@redhat.com>
2746 * expmed.c (store_bit_field): Try to simplify the subreg
2747 before generating a new one when when the mode size of
2748 value is less than maxmode.
2750 2002-02-21 Richard Henderson <rth@redhat.com>
2752 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
2753 than gen_rtx_PLUS to form the sum.
2754 * explow.c (force_reg): Rearrange to not allocate new pseudo
2755 when force_operand returns a register.
2756 * expr.c (expand_assignment): Allow offset_rtx expansion to
2757 return a sum. Do not force addresses into registers.
2758 (expand_expr): Likewise.
2759 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
2760 to canonicalize arithmetic that didn't simpify.
2761 (simplify_plus_minus): New argument force; update
2762 all callers. Don't split CONST unless we can do something with it,
2763 and wouldn't lose the constness of the operands.
2765 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
2766 that we generated earlier.
2768 2002-02-21 Tom Tromey <tromey@redhat.com>
2770 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
2771 (output_line_info): Use constant `1', with a long explanatory
2773 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
2775 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
2777 * jump.c (redirect_jump): If old label has no UID, don't try to
2780 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
2782 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
2783 If input is constant, do shifts at compile time.
2785 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
2787 * doc/extend.texi: Fix some more overfull hboxes.
2789 2002-02-21 Jakub Jelinek <jakub@redhat.com>
2791 PR optimization/4994
2792 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
2795 2002-02-21 Jakub Jelinek <jakub@redhat.com>
2798 * expr.h (expand_and): Add mode argument.
2799 * expmed.c (expand_and): Add mode argument.
2800 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
2801 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
2802 * except.c (expand_builtin_extract_return_addr): Likewise.
2803 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
2804 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
2805 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
2806 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
2807 * config/c4x/c4x.md: Use GEN_INT (x) instead of
2808 gen_rtx (CONST_INT, VOIDmode, x).
2810 2002-02-21 Jakub Jelinek <jakub@redhat.com>
2813 * stmt.c (warn_if_unused_value): Move side effects test once more.
2815 2002-02-20 Torbjorn Granlund <tege@swox.com>
2817 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
2818 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
2820 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
2822 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
2823 SUBREG or ZERO_EXTEND.
2825 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
2827 * sh.h (current_function_anonymous_args): Remove.
2828 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
2829 of current_function_varargs and current_function_stdarg is set.
2830 * sh.c (sh_expand_prologue): Check current_function_varargs /
2831 current_function_stdarg / TARGET_SH5 instead of
2832 current_function_anonymous_args.
2834 * sh64.h (TARGET_VERSION): Define.
2836 2002-02-20 David Edelsohn <edelsohn@gnu.org>
2838 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
2839 VRSAVE_REGNO on TARGET_ALTIVEC.
2841 2002-02-20 Alan Modra <amodra@bigpond.net.au>
2843 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
2844 bits of SImode const_int.
2845 (includes_rshift_p): Likewise.
2846 (print_operand): Call mask_operand and mask64_operand with correct
2848 (rs6000_output_function_epilogue): Pad traceback table to word.
2849 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
2850 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
2851 mask64_operand with correct mode.
2852 (FUNCTION_ARG_REGNO_P): Correct parentheses.
2854 2002-02-20 Jakub Jelinek <jakub@redhat.com>
2857 * varasm.c (get_pool_constant_mark): New.
2858 * rtl.h (get_pool_constant_mark): Add prototype.
2859 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
2860 be represented if it has not been output.
2862 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
2864 * combine.c (do_SUBST): Sanity check substitutions of
2865 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
2866 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
2867 CONST_INT into its operand.
2868 (known_cond): Likewise, for ZERO_EXTEND.
2869 * simplify-rtx.c (simplify_unary_operation): Fix condition to
2870 allow for simplification of wide modes. Reject CONST_INTs in
2871 ZERO_EXTEND when their actual mode is not given.
2873 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
2875 * c-decl.c (pushdecl): If no global declaration is found for an
2876 extern declaration in block scope, try a limbo one.
2878 2002-02-20 Jakub Jelinek <jakub@redhat.com>
2881 * c-common.c (pointer_int_sum): Moved from...
2882 * c-typeck.c (pointer_int_sum): ...here.
2883 * c-common.h (pointer_int_sum): Add prototype.
2885 2002-02-20 Jakub Jelinek <jakub@redhat.com>
2888 * c-decl.c (duplicate_decls): Return 0 if issued error about
2891 2002-02-20 Roger Sayle <roger@eyesopen.com>
2892 Jakub Jelinek <jakub@redhat.com>
2895 * tree.c (host_integerp): Ensure that the constant integer is
2896 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
2897 when pos is zero or non-zero respectively. Clarify comment.
2898 * c-format.c (check_format_info_recurse): Fix host_integerp
2899 usage; the pos argument should be zero when assigning to a
2900 signed HOST_WIDE_INT.
2902 2002-02-20 Richard Henderson <rth@redhat.com>
2904 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
2905 of the operand, rather than assuming TImode.
2906 (ix86_expand_binop_builtin): Cope with commutative patterns
2907 using nonimmediate_operand for both operands.
2908 (ix86_expand_timode_binop_builtin): Likewise.
2909 (ix86_expand_store_builtin): Validate operand 1.
2910 (ix86_expand_unop1_builtin): Likewise.
2912 2002-02-20 Philip Blundell <philb@gnu.org>
2915 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
2917 2002-02-20 Richard Henderson <rth@redhat.com>
2920 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
2922 2002-02-20 Tom Tromey <tromey@redhat.com>
2924 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
2925 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
2926 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
2927 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
2928 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
2931 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
2933 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
2934 for (const_int 0) in X not just INTVAL.
2936 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
2938 * doc/extend.texi: Avoid or reduce overfull hboxes.
2940 2002-02-20 Diego Novillo <dnovillo@redhat.com>
2942 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
2943 operations if the field does not start at a mode boundary.
2945 2001-02-20 Joel Sherrill <joel@OARcorp.com>
2947 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
2948 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
2949 Also done for -Acpu and -Amachine.
2951 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
2953 * cppinit.c (init_dependency_output): Take deps output file
2954 from -o if none given with -MF. Suppress normal output.
2955 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
2956 * doc/cpp.texi, doc/invoke.texi: Update.
2958 2002-02-19 Zack Weinberg <zack@codesourcery.com>
2960 * toplev.c (output_quoted_string): Write unprintable
2961 characters with octal escapes.
2963 2002-02-19 David Edelsohn <edelsohn@gnu.org>
2965 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
2966 really_call_used[VRSAVE_REGNO] if not Altivec.
2968 2002-02-19 Alan Modra <amodra@bigpond.net.au>
2970 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
2972 (constant_pool_expr_1): Fix formatting.
2973 (rs6000_legitimize_reload_address): Likewise.
2975 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2977 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
2978 now that we have one.
2980 2002-02-19 Zack Weinberg <zack@codesourcery.com>
2982 * tree.h (struct tree_common): Remove aux. Add unused_0 at
2983 end of first block of bitfields (which was only seven bits);
2984 rename dummy to unused_1; remove comment which is no longer true.
2986 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
2988 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
2990 2002-02-19 Philip Blundell <pb@nexus.co.uk>
2993 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
2997 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
2998 arm_is_longcall_p rather than inspecting call-type cookie
3000 (call_value_insn) [TARGET_THUMB]: Likewise.
3002 2002-02-19 Graham Stott <grahams@redhat.com>
3004 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
3006 2002-02-19 David Edelsohn <edelsohn@gnu.org>
3008 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
3009 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
3010 (FP_SAVE_INLINE): Delete.
3012 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
3013 * config/rs6000/eabi.asm: Remove ABI save restore routines.
3014 * config/rs6000/t-ppccomm: Build crtsavres.o.
3015 * config/rs6000/crtsavres.asm: New file.
3017 2002-02-19 Philip Blundell <philb@gnu.org>
3019 * config/arm/arm.c (use_return_insn): Don't reject interrupt
3021 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
3022 (output_return_instruction): Allow interrupt functions to return with
3023 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
3024 (arm_expand_prologue): Subtract 4 before stacking LR in an
3027 2002-02-19 Philip Blundell <pb@nexus.co.uk>
3029 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
3030 decl, not just FUNCTION_DECL.
3031 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
3032 (arm_assemble_integer): Likewise.
3033 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
3036 2002-02-19 matthew green <mrg@eterna.com.au>
3038 * config.gcc (sparc-*-netbsdelf*): Enable target.
3039 (sparc64-*-netbsd*): New target.
3040 * config/sparc/netbsd-elf.h: New file.
3041 * config/sparc/t-netbsd64: New file.
3043 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
3045 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
3047 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
3049 * doc/invoke.texi: explicitly list the style guidelines that
3050 -Weffc++ checks for.
3052 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
3054 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
3056 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
3059 * gcc.c (cpp_unique_options): Treat -o as indicating object file
3060 only if not -E. If -E, pass -o through to the preprocessor.
3062 2002-02-19 Kazu Hirata <kazu@hxi.com>
3064 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
3065 register number with an appropriate macro.
3067 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
3069 * doc/rtl.texi (Constants): Close @code tag.
3071 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
3073 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
3074 ("mmx_uavgv4hi3"): Same.
3075 ("pmulhrwv4hi3"): Same.
3077 * tree-inline.c (walk_tree): Handle vectors.
3079 * c-common.c (constant_expression_warning): Handle vectors.
3080 (overflow_warning): Same.
3082 * sched-deps.c (sched_analyze_2): Handle vectors.
3084 * rtlanal.c (rtx_unstable_p): Handle vectors.
3085 (rtx_varies_p): Same.
3086 (count_occurrences): Same.
3087 (regs_set_between_p): Same.
3088 (modified_between_p): Same.
3089 (modified_in_p): Same.
3090 (volatile_insn_p): Same.
3091 (volatile_refs_p): Same.
3092 (side_effects_p): Same.
3094 (inequality_comparisons_p): Same.
3095 (replace_regs): Same.
3096 (computed_jump_p_1): Same.
3098 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
3100 (inner_mode_array): New.
3101 (copy_rtx): Handle vectors.
3102 (copy_most_rtx): Same.
3103 (rtx_equal_p): Same.
3104 (get_mode_alignment): Adjust for vectors.
3106 * resource.c (mark_referenced_resources): Handle vectors.
3107 (mark_set_resources): Same.
3109 * reload1.c (eliminate_regs): Handle vectors.
3110 (elimination_effects): Same.
3111 (scan_paradoxical_subregs): Same.
3113 * reload.c (subst_reg_equivs): Handle vectors.
3115 * regrename.c (scan_rtx): Handle vectors.
3117 * regclass.c (reg_scan_mark_refs): Handle vectors.
3119 * recog.c (find_single_use_1): Handle vectors.
3121 * local-alloc.c (equiv_init_varies_p): Handle vectors.
3122 (contains_replace_regs): Same.
3123 (memref_referenced_p): Same.
3125 * integrate.c (copy_rtx_and_substitute): Handle vectors.
3126 (subst_constants): Same.
3128 * genattrtab.c (attr_copy_rtx): Handle vectors.
3129 (encode_units_mask): Same.
3130 (clear_struct_flag): Same.
3131 (count_sub_rtxs): Same.
3133 * gcse.c (want_to_gcse_p): Handle vectors.
3134 (oprs_unchanged_p): Same.
3135 (hash_expr_1): Same.
3136 (oprs_not_set_p): Same.
3137 (expr_killed_p): Same.
3138 (compute_transp): Same.
3139 (store_ops_ok): Same.
3141 * function.c (purge_addressof_1): Do not allow paradoxical subregs
3143 (fixup_var_refs_1): Same.
3144 (instantiate_virtual_regs_1): Same.
3146 * fold-const.c (operand_equal_p): Handle vectors.
3148 (rtl_expr_nonnegative_p): Same.
3150 * flow.c (mark_used_regs): Handle vectors.
3152 * df.c (df_uses_record): Handle vectors.
3154 * cselib.c (cselib_subst_to_values): Handle vectors.
3155 (cselib_mem_conflict_p): Same.
3158 * cse.c (canon_reg): Handle vectors.
3160 (cse_process_notes): Same.
3161 (count_reg_usage): Same.
3164 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
3166 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
3168 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
3169 (gen_rtx): Handle CONST_VECTOR.
3170 (gen_const_vector_0): New.
3171 (copy_rtx_if_shared): CONST_VECTORs can be shared.
3172 (reset_used_flags): Same.
3173 (copy_insn_1): Same.
3174 (initializer_constant_valid_p): Handle VECTOR_CST.
3176 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
3178 * doc/rtl.texi (Constants): Document const_vector.
3179 (CONST0_RTX): Update for vectors.
3180 (RTL sharing): Same.
3182 * print-tree.c (print_node): Add case for VECTOR_CST.
3184 * tree.h (TREE_VECTOR_CST_ELTS): New.
3185 (struct tree_vector): New.
3186 (union tree_node): Add vector node.
3187 (build_vector): Add prototype.
3189 * tree.def (VECTOR_CST): New.
3191 * tree.c (build_vector): New.
3193 * expmed.c (make_tree): Handle CONST_VECTOR.
3195 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
3196 (CONST_VECTOR_ELT): New.
3197 (CONST_VECTOR_NUNITS): New.
3199 * machmode.h (GET_MODE_INNER): New.
3200 (DEF_MACHMODE): Accept 8th arg.
3202 * machmode.def: Add 8th argument for vector inner mode.
3203 Add inner vector modes for vectors.
3205 * rtl.def (VEC_CONST): Remove.
3206 (CONST_VECTOR): New.
3208 * expr.c (clear_storage): Allow vectors.
3209 (is_zeros_p): Handle VECTOR_CST.
3211 * varasm.c (output_constant_pool): Handle vectors.
3212 (rtx_const): Add veclo and vechi fields.
3213 (kind): Add RTX_VECTOR.
3214 (decode_rtx_const): Add case for vector.
3216 * config/rs6000/rs6000-protos.h: Add zero_constant.
3218 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
3219 constants. Force easy vector constants into memory.
3220 (easy_vector_constant): New.
3221 (emit_easy_vector_constant): New.
3222 (rs6000_legitimize_reload_address): Do not generate bad reloads on
3225 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
3227 ("altivec_lvxl"): Same.
3228 (altivec_lvebx): Same.
3229 (altivec_lvehx): Same.
3230 (altivec_lvewx): Same.
3231 ("*movv4si_const0"): New.
3232 ("*movv4sf_const0"): New.
3233 ("*movv8hi_const0"): New.
3234 ("*movv16qi_const0"): New.
3236 2002-02-18 Kazu Hirata <kazu@hxi.com>
3238 * config/h8300/h8300.c (notice_update_cc): Use
3241 2002-02-18 Kazu Hirata <kazu@hxi.com>
3243 * config/h8300/h8300.md (divmod patterns): Change the
3244 constraints for operands[1] to register_operand.
3246 2002-02-18 Kazu Hirata <kazu@hxi.com>
3248 * config/h8300/h8300-protos.h: Remove the prototype for
3250 * config/h8300/h8300.c (p_operand): Remove.
3251 * config/h8300/h8300.md: Replace p_operand with
3254 2002-02-18 Philip Blundell <pb@nexus.co.uk>
3256 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
3258 (output_return_instruction): Allow use of LDR to unstack
3259 return addresss even for interrupt handlers or when
3260 interworking. If compiling for ARMv5, use interworking-safe
3261 return instructions by default. Remove duplicated code and
3262 lengthy "strcat" sequences.
3264 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3266 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
3267 (LINK_EH_SPEC): Define.
3268 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
3270 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
3272 * config/s390/s390.c (s390_emit_prologue): Do not set the
3273 frame_related flag for call-clobbered registers.
3275 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
3277 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
3278 (construct_container): Fix handling of SSE operands.
3279 (ix86_expand_builtin): Fix handling of 64bit pointers.
3280 (mmx_maskmovq_rex): New pattern.
3282 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
3284 * regrename.c (kill_set_value): Handle subregs properly.
3286 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
3288 * objc/objc-act.c (handle_impent): Remove leading '*'
3289 from objc_class_name.
3291 2002-02-17 Richard Henderson <rth@redhat.com>
3293 * config/alpha/alpha.c (some_small_symbolic_operand,
3294 some_small_symbolic_operand_1, split_small_symbolic_operand,
3295 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
3296 Handle small SYMBOL_REFs anywhere, not just inside memories.
3297 * config/alpha/alpha-protos.h: Update.
3298 * config/alpha/alpha.h (PREDICATE_CODES): Update.
3299 * config/alpha/alpha.md (small symbolic operand splitter): Update.
3301 2002-02-17 Roland McGrath <roland@frob.com>
3303 * config.gcc (powerpc-*-gnu-gnualtivec*,
3304 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
3305 * config/rs6000/gnu.h: New file.
3306 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
3307 Grok "gnu" in rs6000_abi_name.
3308 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
3309 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
3310 Grok -mcall-gnu analogous to -mcall-linux et al.
3311 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
3312 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
3313 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
3315 2002-02-17 Jakub Jelinek <jakub@redhat.com>
3318 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
3321 2002-02-17 Philipp Thomas <pthomas@suse.de>
3323 * config/cris/cris.h: Undefine STARTFILE_SPEC and
3324 ENDFILE_SPEC before (re)defining them.
3326 2002-02-17 Kazu Hirata <kazu@hxi.com>
3328 * config/h8300/h8300.c: Fix formatting.
3329 * config/h8300/h8300.h: Likewise.
3331 2002-02-17 Philipp Thomas <pthomas@suse.de>
3333 * doc/tm.texi: Explain why empty strings should not be
3334 marked for translation.
3336 2002-02-17 Philipp Thomas <pthomas@suse.de>
3338 * final.c (output_operand_lossage): Changed to accept
3339 printf style arguments. Change calls where necessary.
3340 * output.h (output_operand_lossage): Change declaration
3341 accordingly. Update copyright.
3342 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
3343 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
3344 Update copyright date where necessary.
3346 * config/i386/i386.c (print_operand): Likewise. Remove use of
3349 * config/cris/cris.c (cris_operand_lossage): Likewise.
3350 Rename parameter so that exgettext recognizes it as
3351 translatable message.
3352 (LOSE_AND_RETURN): Rename parameter to msgid.
3354 2002-02-17 Kazu Hirata <kazu@hxi.com>
3356 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
3357 hard coded register number with an appropriate macro.
3358 (HARD_REGNO_MODE_OK): Likewise.
3359 (ARG_POINTER_REGNUM): Likewise.
3360 (STATIC_CHAIN_REGNUM): Likewise.
3361 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
3362 * config/h8300/h8300.md (define_constants): Define more
3365 2002-02-17 Philipp Thomas <pthomas@suse.de>
3367 * config/i386/i386.h: Don't mark empty strings for translation.
3369 2002-02-16 H.J. Lu <hjl@gnu.org>
3371 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
3373 2002-02-16 Zack Weinberg <zack@codesourcery.com>
3375 * cppinit.c (merge_include_chains): Check for brack being
3376 NULL before attempting to merge it with qtail.
3378 2002-02-16 Andrew Cagney <ac131313@redhat.com>
3380 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
3383 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
3385 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
3387 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
3389 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
3390 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
3391 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
3393 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3395 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
3396 now only if !TARGET_FIX.
3397 (*movsi_nt_vms_fix): New pattern.
3399 2002-02-16 Douglas B Rupp <rupp@gnat.com>
3401 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
3402 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
3403 (alpha_sa_mask, alpha_sa_size): Reflect above change.
3404 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
3405 (alpha_start_function, alpha_expand_epilogue): Likewise.
3406 (unicosmk_gen_dsib): Likewise.
3408 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3410 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
3412 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
3414 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
3415 check_and_change_labels, s390_final_chunkify): Delete.
3416 (s390_split_branches, s390_chunkify_pool): New functions.
3417 (s390_function_prologue): Call them.
3419 * config/s390/s390.h (S390_REL_MAX): Delete.
3420 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
3422 * config/s390/s390.md (cjump, icjump, jump): Fix length
3423 attribute calculation.
3426 2002-02-15 David Edelsohn <edelsohn@gnu.org>
3428 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
3429 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
3431 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
3433 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
3434 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
3435 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
3437 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
3439 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
3441 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
3443 * reload.c (find_dummy_reload): Check that an output register
3444 is valid for its mode.
3446 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
3448 * combine.c (known_cond): After replacing the REG of a SUBREG, try
3451 * function.c (assign_parms): Demote promoted argument passed by
3452 transparent reference.
3454 2001-02-14 Joel Sherrill <joel@OARcorp.com>
3456 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
3457 -Acpu() and -Amachine() to eliminate warnings.
3459 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
3461 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
3463 2002-02-14 Kazu Hirata <kazu@hxi.com>
3465 * config/h8300/h8300-protos.h: Update the prototype for
3467 * config/h8300/h8300.c (const_costs): Treat SET as a little
3468 more expensive operation.
3469 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
3470 reference to const_costs.
3472 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
3474 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
3476 2002-02-14 Jakub Jelinek <jakub@redhat.com>
3479 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
3480 use arguments from newtype.
3482 2002-02-13 Eric Christopher <echristo@redhat.com>
3484 * config/mips/mips.c (override_options): Add check for march/mipsX
3485 on the same command line. Fix error message in cpu processing.
3486 Remove architecture and ISA checks.
3488 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
3490 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
3492 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
3494 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
3496 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
3498 ("*movv8hi_internal1"): Same.
3499 ("*movv16qi_internal1"): Same.
3500 ("*movv4sf_internal1"): Same.