1 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
3 * cfgcleanup.c, cfgexpand.c, cgraphunit.c, config/arm/arm.c,
4 config/fr30/fr30.md, config/i386/i386-interix.h,
5 config/i386/i386.c, config/i386/i386.md, config/sh/superh.h,
6 config/sh/superh64.h, config/v850/v850.c, df-core.c,
7 df-problems.c, df.h, except.c, final.c, haifa-sched.c,
8 lambda-code.c, libgcc2.h, omp-low.c, optabs.c, predict.c,
9 reload.c, tree-flow.h, tree-outof-ssa.c, tree-ssa-dce.c,
10 tree-ssa-pre.c, tree-vect-transform.c: Fix comment typos.
11 Follow spelling conventions.
12 * doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix typos.
13 Follow spelling conventions.
15 2006-05-27 Richard Guenther <rguenther@suse.de>
18 * fold-const.c (fold_plusminus_mult_expr): Use fold_convert
19 to produce a constant of value 1 of generic type.
21 2006-05-27 Dirk Mueller <dmueller@suse.de>
23 * cgraphunit.c (decide_is_function_needed): Fix wrong
26 2006-05-26 Ulrich Weigand <uweigand@de.ibm.com>
28 PR rtl-optimization/27661
29 * reload.c (find_reloads): When reloading a VOIDmode constant
30 as address due to an EXTRA_MEMORY_CONSTRAINT or 'o' constraint,
31 use Pmode as mode of the reload register.
33 2006-05-26 Eric Botcazou <ebotcazou@adacore.com>
35 * doc/invoke.texi (Optimize Options): Document that -funit-at-a-time
36 is enabled at -O and above.
38 2006-05-26 Steven Bosscher <steven@gcc.gnu.org>
41 * config/alpha/alpha.c (alpha_does_function_need_gp): Skip jump
44 2006-05-25 Mark Mitchell <mark@codesourcery.com>
47 * gimplify.c (gimplify_decl_expr): Do not call gimple_add_tmp_var
48 for anonymous variables explicitly declared by front ends.
50 2006-05-25 Eric Botcazou <ebotcazou@adacore.com>
52 * tree-ssa-structalias.h (PTR_IS_REF_ALL): New macro.
53 (struct alias_info): Add new field ref_all_symbol_mem_tag.
54 * tree-ssa-alias.c (compute_may_aliases): If the program contains
55 ref-all pointers, run a finalization pass for them.
56 (compute_flow_insensitive_aliasing): Skip ref-all pointers.
57 (finalize_ref_all_pointers): New function.
58 (is_escape_site): Return ESCAPE_BAD_CAST for conversion from a
59 regular pointer type to a ref-all pointer type.
60 (get_tmt_for): Return the special memory tag for ref-all pointers.
62 2006-05-25 Richard Guenther <rguenther@suse.de>
65 * fold-const.c (fold_binary): Do not look at the stripped
66 op0 for (a OP c1) OP c2 to a OP (c1+c2) shift optimization.
68 2006-05-25 Eric Botcazou <ebotcazou@adacore.com>
70 * tree-vrp.c (extract_range_from_assert): Set the range to VARYING
71 for LT and GT if the computed range is effectively empty.
73 2006-05-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
76 * pa/pa-modes.def: Use mips_single_format, mips_double_format and
77 mips_quad_format formats instead of ieee_single_format,
78 ieee_double_format and ieee_quad_format formats, respectively.
80 2006-05-24 Zdenek Dvorak <dvorakz@suse.cz>
82 PR tree-optimization/27639
83 PR tree-optimization/26719
84 * tree-vrp.c (adjust_range_with_scev): Use scev_direction and adjust
85 call to scev_probably_wraps_p.
86 * tree-ssa-loop-niter.c (compare_trees, convert_step_widening,
87 used_in_pointer_arithmetic_p, convert_step): Removed.
88 (nowrap_type_p): New function.
89 (scev_probably_wraps_p): Rewritten.
90 * tree-scalar-evolution.c (instantiate_parameters_1): Do not call
91 chrec_convert if chrec_convert_aggressive might have been used.
92 * tree-chrec.c (convert_affine_scev, chrec_convert_1,
93 scev_direction): New functions.
94 (chrec_convert): Changed to a wrapper over chrec_convert_1.
95 * tree-ssa-loop-ivopts.c (idx_find_step): Use convert_affine_scev
96 instead of convert_step.
97 * tree-flow.h (scev_probably_wraps_p): Declaration changed.
98 (convert_step): Declaration removed.
99 (convert_affine_scev, nowrap_type_p, scev_direction): Declare.
101 2006-05-23 Kenneth Zadeck <zadeck@naturalbridge.com>
103 * df-core.c: Added to header comments.
104 * df.h (df_ru_bb_info, df_rd_bb_info, df_lr_bb_info,
105 df_ur_bb_info, df_urec_bb_info): Added comments.
106 * df-problems (df_ref_bitmap, ru, rd, lr, ur,
107 urec, ri problems): Fixed header comments.
108 (df_ru_transfer_function): Fixed in-out set dyslexia when copying
109 code from df_rd_transfer_function.
111 2006-05-23 Richard Sandiford <richard@codesourcery.com>
113 * libgcc2.c (LIBGCC2_MAX_UNITS_PER_WORD): New macro.
114 (LIBGCC2_UNITS_PER_WORD): Use LIBGCC2_MAX_UNITS_PER_WORD rather than
115 MIN_UNITS_PER_WORD to set the default. Also use it in the guard.
117 2006-05-23 Joseph Myers <joseph@codesourcery.com>
119 * expr.c (undefined_operand_subword_p): New.
120 (emit_move_multi_word): Do not generate move from undefined bits
121 of a paradoxical subreg.
123 2006-05-23 Richard Sandiford <richard@codesourcery.com>
125 PR rtl-optimization/27736
126 * combine.c (replaced_rhs_value): New variable.
127 (combine_instructions): Set it.
128 (distribute_notes): When distributing a note in replaced_rhs_insn,
129 check whether the value was used in replaced_rhs_value.
131 2006-05-23 Andrew MacLeod <amacleod@redhat.com>
134 * tree-ssa-loop-im.c (determine_invariantness_stmt): Use
135 add_referenced_var instead of add_referenced_tmp_var.
136 * tree-complex.c (create_one_component_var): Use add_referenced_var.
137 * tree-ssa-loop-manip.c (create_iv, tree_unroll_loop): Use
139 * tree-tailcall.c (adjust_accumulator_values, adjust_return_value,
140 tree_optimize_tail_calls_1): Use add_referenced_var.
141 * tree-ssa-loop-ivopts.c (create_new_iv): Use add_referenced_var.
142 * tree-ssa-alias.c (create_memory_tag, create_global_var, create_sft):
143 Use add_referenced_var.
144 * tree-if-conv.c (ifc_temp_var): Use add_referenced_var.
145 * gimplify.c (force_gimple_operand): Use add_referenced_var.
146 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement):
147 Use add_referenced_var.
148 * tree-dfa.c (struct walk_state): Remove.
149 (find_referenced_vars): Remove walk state and vars_found hash table.
150 (make_rename_temp): Use add_referenced_var.
151 (find_vars_r): Pass less parameters to add_referenced_var.
152 (referenced_var_p): New. Is var in referenced_var hash table.
153 (referenced_var_insert): Assert var isn't already in hash table.
154 (add_referenced_var): Don't need walk_state parameter. Add var if it
155 isn't already in the hash table.
156 (add_referenced_tmp_var): Remove.
157 (find_new_referenced_vars_1): Use add_referenced_var.
158 * tree-ssa-pre.c (create_expression_by_pieces,
159 insert_into_preds_of_block, insert_extra_phis, realify_fake_stores):
160 Use add_referenced_var.
161 * tree-vect-patterns.c (vect_pattern_recog_1): Use add_referenced_var.
162 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
163 lambda_loopnest_to_gcc_loopnest, perfect_nestify): Use
165 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
166 vect_create_data_ref_ptr, vect_create_destination_var,
167 vect_init_vector, vect_build_loop_niters,
168 vect_generate_tmps_on_preheader, vect_update_ivs_after_vectorizer,
169 vect_gen_niters_for_prolog_loop, vect_create_cond_for_align_checks):
170 Use add_referenced_var.
171 * tree-outof-ssa.c (create_temp): Use add_referenced_var.
172 * tree-flow.h (add_referenced_tmp_var): Remove prototype
173 (add_referenced_var): Add prototype.
174 * tree-ssa-structalias.c (get_constraint_for,
175 intra_create_variable_infos): Use add_referenced_var.
177 2006-05-23 Alexandre Oliva <aoliva@redhat.com>
179 * simplify-rtx.c (simplify_subreg): Adjust REG_OFFSET for
180 big-endian paradoxical subregs.
181 * var-tracking.c (struct micro_operation_def): Document that,
182 for modify micro operations, insn is the subsequent instruction.
183 (var_reg_delete_and_set, var_mem_delete_and_set): Split into...
184 (var_reg_set, var_mem_set): ... new functions.
185 (add_stores): Record subsequent insn.
186 (compute_bb_dataflow): Use new functions for MO_USE.
187 (emit_notes_in_bb): Use new functions for MO_USE. Emit use
188 notes after the insn, and modify notes before the insn known
189 to be the subsequent one.
190 (vt_initialize): Invert sorting of MO_CLOBBERs and MO_SETs.
192 2006-05-23 Kazu Hirata <kazu@codesourcery.com>
195 * config/i386/i386.c (ix86_expand_builtin): Use
196 gen_sse3_monitor64 for TARGET_64BIT.
198 2006-05-22 Kenneth Zadeck <zadeck@naturalbridge.com>
200 PR rtl-optimization/26375
201 PR rtl-optimization/26855
202 * df-problems (df_ru_bb_local_compute_process_def): Removed update
204 (df_ru_bb_local_compute): Reversed statements and removed bogus
205 comment explaining why they should be in wrong order.
206 (df_ru_dump, df_rd_dump): Enhanced debug info.
207 * modulo-sched.c (sms_schedule, tree_opt_pass pass_sms): Enhanced
209 * ddg.c (add_deps_for_def): Converted use of reaching defs to
210 reaching uses and fixed space problem.
212 2006-05-23 Jan Hubicka <jh@suse.cz>
214 * cgraphunit.c (decide_is_function_needed): Also nested functions
215 and functions declared inline can be optimized out at -O0.
217 2006-05-22 Gerald Pfeifer <gerald@pfeifer.com>
219 * doc/install.texi (Configuration): Remove reference to CrossGCC
220 FAQ which was hijacked.
223 2006-05-22 Kazu Hirata <kazu@codesourcery.com>
226 * config/i386/i386.c (ix86_expand_branch): Jump to simple if
227 ix86_compare_emitted is non-NULL.
229 2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
232 * stmt.c (expand_asm_operands): Skip asm statement with erroneous
235 2006-05-22 Richard Sandiford <richard@codesourcery.com>
237 PR rtl-optimization/25514
238 * combine.c (replaced_rhs_insn): New variable.
239 (combine_instructions): Set replaced_rhs_insn when trying to replace
240 a SET_SRC with a REG_EQUAL note.
241 (distribute_notes): Use replaced_rhs_insn when determining the live
242 range of a REG_DEAD register.
244 2006-18-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
245 Anatoly Sokolov <aesok@post.ru>
247 * config/avr/avr.c (avr_mcu_types): Add support for attiny261,
248 attiny461, attiny861, attiny25, attiny45, attiny85, attiny24,
249 attiny44, attiny84, at90pwm2, at90pwm3, atmega165p, atmega169p,
250 atmega164p, atmega324p, atmega644p, atmega644, atmega329,
251 atmega3290, atmega649, atmega6490, atmega406, atmega640,
252 atmega1280, atmega1281, at90can32, at90can64, at90usb646,
253 at90usb647, at90usb1286 and at90usb1287 devices.
254 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
255 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
257 2006-05-22 Richard Sandiford <richard@codesourcery.com>
259 * mklibgcc.in (lib2funcs): Remove _floatdidf from initial assignment.
261 2006-05-22 Richard Guenther <rguenther@suse.de>
264 2006-01-31 Richard Guenther <rguenther@suse.de>
265 Paolo Bonzini <bonzini@gnu.org>
267 * doc/install.texi (--disable-libgcc-math): Document.
269 2006-05-22 Richard Guenther <rguenther@suse.de>
272 2006-01-31 Richard Guenther <rguenther@suse.de>
274 * doc/invoke.texi (-msselibm): Document.
275 * target.h (expand_library_builtin): New target hook.
276 * builtins.c (expand_builtin): Use expand_library_builtin.
277 (default_expand_library_builtin): New function.
278 * gcc.c (LINK_GCC_MATH_SPEC): Define.
279 (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
280 (link_gcc_math_spec): Declare.
281 (static_specs): Add link_gcc_math_spec.
282 * expr.h (default_expand_library_builtin): Declare.
283 * target-def.h (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
284 (TARGET_INITIALIZER): Add TARGET_EXPAND_LIBRARY_BUILTIN.
285 * config/i386/i386.h: Provide LINK_GCC_MATH_SPEC.
286 * config/i386/i386.opt (msselibm): New target option.
287 * config/i386/i386.c (ix86_builtin_function_variants): New array.
288 (ix86_init_sse_abi_builtins): New function.
289 (ix86_expand_library_builtin): Likewise.
290 (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
291 (override_options): Handle error conditions wrt -msselibm.
292 (ix86_builtins): Add function codes for SSE2 ABI builtins.
293 (ix86_init_builtins): Call ix86_init_sse_abi_builtins.
294 * doc/extend.texi (__builtin_sse2_*): Document new target specific
297 2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
300 * c-common.c (self_promoting_args_p): Skip erroneous args.
303 * c-decl.c (finish_struct): Skip erroneous fields.
305 2006-05-22 Nick Clifton <nickc@redhat.com>
307 * config/cris/cris.opt (march): Remove VarExists attribute.
308 (max-stackframe=): Likewise.
310 2006-05-22 Kazu Hirata <kazu@codesourcery.com>
312 * doc/rtl.texi: Fix a typo.
313 * see.c: Fix comment typos.
315 * tree-ssa-structalias.h (alias_info): Remove num_references.
317 2006-05-21 Mike Stump <mrs@apple.com>
319 * config/darwin-c.c (BAD): Conditionalize on OPT_Wpragmas.
321 (darwin_pragma_options): Use BAD instead.
322 (darwin_pragma_unused): Likewise.
323 (darwin_pragma_ms_struct): Likewise.
325 2006-05-21 David Edelsohn <edelsohn@gnu.org>
327 * config/rs6000/rs6000.md (floatsitf2): Remove constraints.
329 2006-05-21 Kazu Hirata <kazu@codesourcery.com>
331 PR rtl-optimization/27671
332 * simplify-rtx.c (simplify_relational_operation_1): Fix
333 simplifications of (eq/ne (xor x y) y) and
336 PR tree-optimization/26622.
337 * fold-const.c (fold_ternary) <COND_EXPR>: Call fold_convert
340 2006-05-21 Bernhard Fischer <aldot@gcc.gnu.org>
342 * tree-cfg.c: Prune whitespace.
343 (debug_tree_cfg): Point to correct header containing the
346 2006-05-21 Bernhard Fischer <aldot@gcc.gnu.org>
349 * cgraphunit.c (verify_cgraph_node): Typo in error message.
351 2006-05-20 Andrew Pinski <pinskia@physics.uc.edu>
354 * cgraphunit.c (cgraph_optimize): Don't run ipa passes if error
355 or sorry count is non zero.
357 2006-05-20 Andreas Schwab <schwab@suse.de>
359 * config/pa/pa-linux.h (STRING_ASM_OP): Prepend and append a tab.
361 2006-05-19 Daniel Berlin <dberlin@dberlin.org>
362 Kenneth Zadeck <zadeck@naturalbridge.com>
364 PR rtl-optimization/26855
366 * df-scan.c (mw_reg_pool, mw_link_pool): New allocation pools for
368 (df_scan_alloc): Added code to properly handle multiword hard
369 registers and add all_blocks parameter.
370 (df_scan_free_internal, df_insn_refs_delete, df_ref_record): Added
371 code to properly handle multiword hard registers.
372 (df_rescan_blocks): Added code to remove deleted blocks from
374 (df_ref_create_structure, df_ref_record): Added code to properly
376 (df_ref_record_1): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER
377 and set DF_REF_PARTIAL.
378 (df_defs_record): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER.
379 (df_uses_record): Added DF_REF_PARTIAL for subreg.
380 (df_scan_add_problem): Added flags parameter.
381 (df_ref_create_structure): Changed switching structure.
382 (df_bb_refs_record): Fixed case where duplicate artificial refs
383 were created. Changed location of flags.
384 (df_record_entry_block_defs): Added code to make stack pointer
385 live in entry block. Refined cases where frame pointer is needed.
386 Changed location of flags.
387 (df_record_exit_block_uses, df_insn_refs_record): Changed location of flags.
388 (df_set_state): Removed function.
389 (df_grow_reg_info, df_reg_chain_unlink, df_ref_remove,
390 df_insn_create_insn_record, df_insn_refs_delete,
391 df_ref_create_structure): Formatting changes.
392 * df-core.c (df_mvs_dump, df_set_flags, df_clear_flags,
393 df_delete_basic_block): New function.
394 (df_init): Changed location of flags.
395 (df_add_problem): Added flags parameter and the way flags are
397 (df_insn_uid_debug, df_ref_debug, debug_df_defno, debug_df_ref,
398 debug_df_chain): Improved debugging output.
399 (df_insn_debug, df_insn_uid_debug): Added multiword reg support.
400 (df_refs_chain_dump): Removed df parameter.
401 (df_iterative_dataflow): Added consistency check.
402 (df_prune_to_subcfg): Made public.
403 (df_analyze_problem): Added blocks_to_init parameter and made
405 (df_ref_record, df_bb_refs_record, df_mark_reg,
406 df_record_exit_block_uses): Whitespace changes.
407 (df_dump): Whitespace changes.
408 * df.h: Some reordering to remove forward references.
409 (df_ref_flags.DF_REF_MW_HARDREG, DF_REF_PARTIAL,
410 DF_REF_MUST_CLOBBER, DF_REF_MAY_CLOBBER): New fields.
411 (df_ref_flags.DF_REF_CLOBBER): Deleted field.
412 (dataflow.flags): New field.
413 (df.flag): Deleted field.
414 (df_alloc_function): Added additional bitmap parameter.
415 (df_dependent_problem_function): New type.
416 (df_problem.changeable_flags): New field.
417 (df_ref_flags.DF_REF_DIES_AFTER_THIS_USE, DF_SCAN_INITIAL,
418 DF_SCAN_GLOBAL, DF_SCAN_POST_ALLOC, df_state): Removed.
419 (df_mw_hardreg): New struct.
420 (DF_INSN_UID_MWS): New macro.
421 (df_refs_chain_dump, df_ref_debug, df_chain_dump): Removed df
423 (df_add_problem, df_ru_add_problem, df_rd_add_problem,
424 df_lr_add_problem, df_ur_add_problem, df_urec_add_problem,
425 df_ri_add_problem, df_scan_add_problem): Added flags parameter.
426 (df_set_state): Removed function.
427 (df_set_flags, df_clear_flags, df_delete_basic_block) New functions.
428 * df-problems.c (df_chain_dump): Removed df parameter.
429 (df_ru_alloc, df_rd_alloc, df_lr_alloc, df_ur_alloc,
430 df_urec_alloc, df_chain_alloc, df_ri_alloc): Added all blocks
432 (df_ru_alloc, df_rd_alloc): Now resets all blocks.
433 (df_rd_bb_local_compute_process_def, df_ur_bb_local_compute,
434 df_chain_create_bb, df_create_unused_note, df_ri_bb_compute):
435 Split DF_REF_CLOBBER into DF_REF_MAY_CLOBBER and
436 DF_REF_MUST_CLOBBER cases.
437 (df_ru_bb_local_compute_process_def,
438 df_rd_bb_local_compute_process_def, df_lr_bb_local_compute,
439 df_lr_bb_local_compute, df_ur_bb_local_compute,
440 df_chain_create_bb): Made subreg aware.
441 (df_ru_bb_local_compute, df_rd_bb_local_compute,
442 df_lr_bb_local_compute, df_lr_bb_local_compute,
443 df_chain_create_bb): Cleanup to use proper macros.
444 (df_ur_local_finalize, df_urec_local_finalize): Removed unnecessary
445 code to fixup bitvectors.
446 (df_ri_alloc): Cleared lifetime.
447 (df_ignore_stack_reg, df_kill_notes, df_set_notes_for_mw,
448 df_create_unused_note): New function.
449 (df_ri_bb_compute, df_ri_compute): Added code to create/update
450 REG_DEAD and REG_UNUSED notes as well as register information.
451 (df_ru_dump, df_rd_dump, df_lr_dump, df_ur_dump, df_urec_dump,
452 df_chains_dump): Fixed crash if problem was never run.
453 (df_ru_add_problem, df_rd_add_problem, df_lr_add_problem,
454 df_ur_add_problem, df_urec_add_problem, df_chain_add_problem,
455 df_ri_add_problem): Processes flags in uniform manner.
456 (df_ru_alloc, df_ru_local_compute, df_ru_confluence_n, df_ru_free,
457 df_ru_dump, df_rd_local_compute, df_rd_confluence_n, df_rd_free,
458 df_rd_dump, df_urec_free_bb_info): Formatting changes.
459 (df_ru_free_bb_info, df_ru_bb_local_compute, df_ru_dump,
460 df_rd_free_bb_info, df_rd_bb_local_compute_process_def,
461 df_rd_bb_local_compute, df_rd_dump, df_lr_free_bb_info,
462 df_lr_bb_local_compute, df_lr_local_compute, df_ur_free_bb_info,
463 df_ur_dump, df_urec_free_bb_info, df_urec_dump,
464 df_chain_create_bb, df_ri_bb_compute): Whitespace changes.
465 * modulo-sched.c (sms_schedule): Added flag parameter to calls.
466 * see.c (see_initialize_data): Ditto.
467 * final.c (rest_of_clean_state) Added regstack_completed.
468 * rtl.h (regstack_completed): Ditto.
469 * reg-stack.c (regstack_completed): Ditto.
471 2006-05-19 Mike Stump <mrs@apple.com>
473 * c-tree.h (default_conversion): Remove.
474 * c-common.h (default_conversion): Add.
476 2006-05-19 Zdenek Dvorak <dvorakz@suse.cz>
478 * tree-vrp.c (valid_value_p): New function.
479 (adjust_range_with_scev): Fail if the value of bound is not
482 2006-05-19 Richard Sandiford <richard@codesourcery.com>
484 * config/mips/linux-unwind.h: Include <asm/unistd.h>
485 (mips_fallback_frame_state): Use syscall numbers to determine
486 the appropriate li instruction for the current ABI. Only use
487 __NR_sigreturn for o32.
489 2006-05-19 Nicolas Setton <setton@adacore.com>
491 * langhooks.h (struct lang_hooks): Add dwarf_name language hook.
492 * langhooks.c (lhd_dwarf_name): New function.
493 * langhooks-def.h (lhd_dwarf_name): Declare.
494 (LANG_HOOKS_DWARF_NAME): New macro, defaults to lhd_dwarf_name.
495 * dwarf2out.c (dwarf2_name): Use the dwarf_name language hook.
496 * ada/misc.c (gnat_dwarf_name): New function.
497 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
499 2006-05-19 Richard Sandiford <richard@codesourcery.com>
501 * libgcc2.c (MIN_UNITS_PER_WORD): Move default definition from
503 (LIBGCC2_UNITS_PER_WORD): Provide default definition, using old
504 MIN_UNITS_PER_WORD logic from libgcc2.h. Do nothing if
505 LIBGCC2_UNITS_PER_WORD > MIN_UNITS_PER_WORD.
506 * libgcc2.h (MIN_UNITS_PER_WORD): Remove definition from here.
507 Use LIBGCC2_UNITS_PER_WORD rather than MIN_UNITS_PER_WORD to
508 determine the size of Wtype, etc.
509 * mklibgcc.in (LIB2_SIDITI_CONV_FUNCS): New argument.
510 (swfloatfuncs): New variable.
511 (dwfloatfuncs): Likewise.
512 (lib2funcs): Remove floating-point conversion functions from
513 initial assignment. Use LIB2_SIDITI_CONV_FUNCS to determine
514 the set of conversion routines needed. Allow entries to specify
515 an object name, filename and word size. Update users accordingly.
516 * Makefile.in (libgcc.mk): Pass LIB2_SIDITI_CONV_FUNCS.
517 * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Define.
521 2006-02-08 Roger Sayle <roger@eyesopen.com>
524 * config/fixtfdi.c: New libgcc source file.
525 * config/fixunstfdi.c: New source file.
526 * config/floatditf.c: New source file.
527 * config/floatunditf.c: New souce file.
528 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Include the new source
529 files above instead of config/mips/_tilib.c.
530 * config/mips/t-linux64 (LIB2FUNCS_EXTRA): Likewise.
532 2006-05-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
534 * pa/t-hpux-shlib (SHLIB_LINK): Remove `-lc'.
535 * pa/pa-hpux11.h (LIB_SPEC): Update comment.
537 2006-05-18 Mike Stump <mrs@apple.com>
539 Fix up vla, vm and [*] sematics.
545 * c-tree.h (struct c_arg_info): Add had_vla_unspec.
546 (c_vla_unspec_p): Add.
548 * c-decl.c (struct c_scope): Add had_vla_unspec.
549 (build_array_declarator): Add support for [*].
550 (grokdeclarator): Likewise.
551 (grokparms): Likewise.
552 (get_parm_info): Likewise.
553 * c-objc-common.c (c_vla_unspec_p): Likewise.
554 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Likewise.
555 * c-parser.c (c_parser_typeof_specifier): Evaluate arguments to
556 typeof when argument is a variably modified type not inside sizeof or alignof.
557 (c_parser_direct_declarator_inner): Propagate errors.
558 (c_parser_sizeof_expression): Add support for [*].
559 (c_parser_parms_declarator): Initialize had_vla_unspec.
560 (c_parser_parms_list_declarator): Likewise.
561 * c-typeck.c (c_vla_type_p): Add.
562 (composite_type): Add support for vla compositing.
563 (comptypes_internal): Add support for vla compatibility.
564 (c_expr_sizeof_expr): Evaluate vla arguments.
565 * tree.c (variably_modified_type_p): Update comment for [*].
567 2006-05-18 Michael Matz <matz@suse.de>
570 * config.host: Make assignments to host_xmake_file cumulative.
571 * config.host (*-darwin*): Test $host, not $target.
573 2006-05-12 Stuart Hastings <stuart@apple.com>
575 * config/i386/i386.opt (-mstackrealign): New flag.
576 * config/i386/i386.c (force_align_arg_pointer): New attribute.
577 (ix86_handle_cconv_attribute): Emit error when
578 force_align_arg_pointer attribute collides with too many regparms.
579 (ix86_function_regparm): Limit regparms when used with
580 force_align_arg_pointer attribute. (ix86_internal_arg_pointer):
581 Support stack-realigning prologue in non-main functions. Emit
582 warning for nested functions under -mstackrealign, emit error for
583 nested functions with force_align_arg_pointer attribute.
584 * doc/extend.texi (force_align_arg_pointer): Document it.
585 * doc/invoke.texi (-mstackrealign): Document it.
587 2006-05-17 Kazu Hirata <kazu@codesourcery.com>
589 PR rtl-optimization/27477
590 * combine.c (try_combine): Don't split a parallel consisting
591 of two sets into two individual sets if both sets reference
594 2006-05-17 H.J. Lu <hongjiu.lu@intel.com>
596 * config/arm/arm.opt (target_fpe_name): Remove VarExists.
597 * config/rs6000/rs6000.opt (TARGET_NO_FP_IN_TOC): Likewise.
599 * doc/options.texi (VarExists): Updated.
601 2006-05-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
603 * unwind-dw2.c: Add declarations for uw_update_context and
605 * pa/hpux-unwind.h (pa_fallback_frame_state): When an export stub is
606 detected, advance frame state and context once to skip over stub.
608 2006-05-17 Sebastian Pop <pop@cri.ensmp.fr>
612 * tree-loop-linear.c (linear_transform_loops): Don't test perfect_nest_p.
613 Call rewrite_into_loop_closed_ssa only when something changed.
614 * lambda.h (gcc_loopnest_to_lambda_loopnest): Update declaration.
615 * lambda-code.c (can_convert_to_perfect_nest): Declared.
616 (gcc_loopnest_to_lambda_loopnest): Removed need_perfect_nest parameter.
617 Test for perfect_nest_p here. Fix formating.
618 (replace_uses_equiv_to_x_with_y): Fix formating.
619 (stmt_uses_op): Removed.
620 (can_convert_to_perfect_nest): Removed loopivs parameter.
621 Complete the test by checking the scalar dependences.
622 (perfect_nestify): Remove the test for can_convert_to_perfect_nest.
625 2005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>
628 From Dan Kegel <dank@kegel.com>:
629 * Makefile.in: Strip "dir/../" combinations from SYSTEM_INCLUDE_DIR.
631 2006-05-17 Eric Botcazou <ebotcazou@adacore.com>
633 * tree.c (variably_modified_type_p) <ARRAY_TYPE>: Return true
634 if the element type is variably modified without recursing.
636 2006-05-17 Sebastian Pop <pop@cri.ensmp.fr>
639 * tree-loop-linear.c (try_interchange_loops): Test for
642 2006-05-17 Zdenek Dvorak <dvorakz@suse.cz>
644 PR tree-optimization/27548
645 * tree-scalar-evolution.c (scev_const_prop): Do not prolong life
646 range of ssa names that appear on abnormal edges.
647 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Export.
648 * tree-flow.h (contains_abnormal_ssa_name_p): Declare.
650 2005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>
653 * expr.c (safe_from_p): Handle CONSTRUCTOR again.
655 2006-05-17 Jakub Jelinek <jakub@redhat.com>
658 * tree.h (OMP_PARALLEL_COMBINED): Define.
659 * gimplify.c (struct gimplify_omp_ctx): Add is_combined_parallel field.
660 (new_omp_context): Add is_combined_parallel argument.
661 (gimplify_scan_omp_clauses): Add in_combined_parallel argument, adjust
662 new_omp_context caller.
663 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
664 Adjust gimplify_scan_omp_clauses callers.
665 (omp_is_private): Issue errors if iteration variable is firstprivate
666 or reduction in the current context.
667 * c-parser.c (c_parser_omp_parallel): Set OMP_PARALLEL_COMBINED
668 on combined parallel workshare constructs.
670 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
672 * Makefile.in (GCC_OBJS): Replace options.o with gcc-options.o.
673 (gcc-options.o): New rule.
675 * optc-gen.awk: Protect variables for gcc-options.o with
676 #ifdef GCC_DRIVER/#endif.
678 2006-05-16 Daniel Berlin <dberlin@dberlin.org>
680 Fix PR tree-optimization/27373
681 * tree-ssa-forwprop.c: (forward_propagate_addr_expr_1): Add argument.
682 (forward_propagate_addr_expr): Update call.
684 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
686 * doc/options.texi: Move the Negative option.
688 2006-05-16 Richard Guenther <rguenther@suse.de>
690 PR tree-optimization/22303
691 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle reads
693 (evaluate_stmt): Fall back to fold_const_aggregate_ref, if
694 ccp_fold did not simplify the statement.
696 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
699 * Makefile.in (GCC_OBJS): New.
700 (OBJS-common): Add opts-common.o.
701 (xgcc$(exeext)): Replace gcc.o with $(GCC_OBJS).
702 (cpp$(exeext)): Likewise.
703 (gcc.o): Also depend on opts.h.
704 (opts-common.o): New.
706 * common.opt (gcoff): Add Negative(gdwarf-2).
707 (gdwarf-2): Add Negative(gstabs).
708 (gstabs): Add Negative(gstabs+).
709 (gstabs+): Add Negative(gvms).
710 (gvms): Add Negative(gxcoff).
711 (gxcoff): Add Negative(gxcoff+).
712 (gxcoff+): Add Negative(gcoff).
713 * config/i386/i386.opt (m32): Add Negative(m64).
714 (m64): Add Negative(m32).
716 * doc/options.texi: Document the Negative option.
718 * gcc.c: Include "opts.h".
719 (main): Call prune_options after expandargv.
721 * optc-gen.awk: Generate common declarations for all flag
722 variables in options.c. Output the neg_index field.
724 * opts.c (find_opt): Moved to ...
725 * opts-common.c: Here. New file.
727 * opts.h (cl_option): Add a neg_index field.
729 (prune_options): Likewise.
731 2006-05-16 Jakub Jelinek <jakub@redhat.com>
734 * omp-low.c (expand_omp_parallel): Don't assert
735 .OMP_DATA_I = &.OMP_DATA_O is the first statement in the block,
736 instead search for it.
739 * gimplify.c (gimplify_omp_for): Remove assertion that iteration var
742 2006-05-16 Andreas Schwab <schwab@suse.de>
744 * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Add missing @end
747 2006-05-15 Roger Sayle <roger@eyesopen.com>
750 * config/i386/i386.c (legitimate_constant_p) <CONST_DOUBLE>: TImode
751 integer constants other than zero are only legitimate on TARGET_64BIT.
752 <CONST_VECTOR> Only zero vectors are legitimate.
753 (ix86_cannot_force_const_mem): Integral and vector constants can
754 always be put in the constant pool.
756 2006-05-16 DJ Delorie <dj@redhat.com>
758 * crtstuff.c (__dso_handle): Set section from
759 TARGET_LBIGCC_SDATA_SECTION if defined.
760 * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Document.
761 * config/mips/mips.h (TARGET_LIBGCC_SDATA_SECTION): Define.
763 2006-05-16 Danny Smith <dannysmith@users.sourceforge.net>
766 * config.host (i[34567]86-*-mingw*): Append i386/x-mingw32 to
769 2006-05-16 Ben Elliston <bje@au.ibm.com>
771 * tree-cfg.c (split_edge_bb_loc): Remove unused variable `src'.
773 2006-05-15 Per Bothner <per@bothner.com>
775 * tree.c: (last_annotated_node): Use sources_locus typedef.
776 This permits bootstrapping with --enable-mapped-location.
778 2006-05-15 Zdenek Dvorak <dvorakz@suse.cz>
780 PR tree-optimization/26830
781 * tree-into-ssa.c (struct ssa_name_info): Add age field.
782 (info_for_ssa_name, current_info_for_ssa_name_age,
783 blocks_to_update): New variables.
784 (get_ssa_name_ann): Use info_for_ssa_name instead of SSA_NAME_AUX.
785 (clear_ssa_name_info, initialize_flags_in_bb,
786 mark_block_for_update): New functions.
787 (mark_def_sites, rewrite_stmt): Assert that blocks_to_update is NULL.
788 (insert_phi_nodes_for, mark_use_interesting, prepare_block_for_update,
789 prepare_def_site_for): Use mark_block_for_update.
790 (mark_def_interesting): Assert that the processed block is marked in
791 blocks_to_update. Do not take blocks argument.
792 (prepare_use_sites_for, prepare_names_to_update): Do not take blocks
794 (rewrite_update_init_block, rewrite_update_stmt): Only process
795 blocks with statements to rewrite.
796 (delete_update_ssa): Do not clear SSA_NAME_AUX.
797 (update_ssa): Initialize and free blocks_to_update. Do not
798 clear flags on statements. Do not use blocks bitmap.
799 * tree.h (SSA_NAME_AUX): Removed.
800 (struct tree_ssa_name): Removed aux field.
801 * print-tree.c (print_node): Do not print SSA_NAME_AUX.
803 2006-05-15 Richard Guenther <rguenther@suse.de>
805 PR tree-optimization/27603
806 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
807 Do computations in original type.
809 2006-05-15 Mircea Namolaru <namolaru@il.ibm.com>
811 * see.c: Code style changes such as redundant paranthesis,
812 redundant intialization of local variables etc.
813 (see_main): Declared now as static.
814 * doc/invoke.texi: Update that -fsee is not enabled by
817 2006-05-15 Jakub Jelinek <jakub@redhat.com>
819 * omp-low.c (check_omp_nesting_restrictions): New function.
820 (scan_omp_1): Call it.
823 * omp-low.c (build_outer_var_ref): If VAR is reference in orphaned
824 construct, return *VAR.
826 2006-05-14 Kaz Kojima <kkojima@gcc.gnu.org>
828 PR rtl-optimization/27406
829 * bt-load.c (migrate_btr_def): Skip the block having abnormal
832 2006-05-14 Roger Sayle <roger@eyesopen.com>
834 PR rtl-optimization/27538
835 * combine.c (expand_compound_operation): Call gen_lowpart
836 before calling simplify_shift_const.
838 2006-05-14 Roger Sayle <roger@eyesopen.com>
840 PR rtl-optimization/22563
841 * expmed.c (store_fixed_bit_field): When using AND and IOR to store
842 a fixed width bitfield, always force the intermediates into psuedos.
844 2006-05-14 Bernhard Fischer <aldot@gcc.gnu.org>
847 * mkconfig.sh: Use operator = instead of == for test.
849 2006-05-13 Nick Clifton <nickc@redhat.com>
851 * dwarf2out.c (dbx_reg_number): Check return value from
852 LEAF_REG_REMAP and only use it if it is valid.
853 (multiple_reg_loc_descriptor): Likewise.
855 2006-05-13 Richard Guenther <rguenther@suse.de>
857 * config.host <i[34567]86-*-cygwin*>: Append i386/x-cygwin to
860 2006-05-13 Steven Bosscher <stevenb.gcc@gmail.com>
862 * df-core.c (df_bb_regno_last_use_find): Do not look for dataflow
863 information attached to non-INSNs such as NOTEs.
864 (df_bb_regno_first_def_find, df_bb_regno_last_def_find): Likewise.
866 2006-05-12 Andreas Krebbel <krebbel1@de.ibm.com>
868 * config/s390/s390.c (s390_const_ok_for_constraint_p): Disallow -4G for
870 * config/s390/s390.md: Adjust comment describing On constraint.
872 2006-05-11 Jan Hubicka <jh@suse.cz>
874 * cgraphunit.c (decide_is_function_needed): Don't force always_inline
877 2006-05-11 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
880 * fold-const.c (size_binop): Move sanity check for arguments to
881 the beginning of the function.
884 * fold-const.c (tree_expr_nonnegative_p): Return early on invalid
887 2006-05-11 Richard Guenther <rguenther@suse.de>
890 * fold-const.c (fold_unary): Handle intermediate conversion
891 to a pointer type like intermediate conversion to an integer
892 type in folding of (T1)(T2)var to var.
893 Match the code to the comment in the final conversion for
894 (T1)(T2)var to (T1)var regarding to type precision. Rather
895 than disallow T1 being of pointer type, assert that both T1
896 and var are of pointer type or not. Make sure not to fall
897 over the frontends lazyness wrt array to pointer decay though.
899 2006-05-10 Richard Earnshaw <rearnsha@arm.com>
901 * arm.c (arm_struct_value_rtx): Delete.
902 (TARGET_STRUCT_VALUE_RTX): Use the default definition.
903 (arm_init_cumulative_args): Always initialize nregs to zero.
905 2006-05-10 Richard Guenther <rguenther@suse.de>
907 PR tree-optimization/27532
908 * tree-object-size.c (plus_expr_object_size): Fix typo.
910 2006-05-10 Kazu Hirata <kazu@codesourcery.com>
913 * config/m68k/m68k.md (ashrdi_const32, ashrdi_const32_mem,
914 ashrdi_const, ashrdi3): Use a scratch register.
916 2006-05-10 Richard Guenther <rguenther@suse.de>
918 PR tree-optimization/27302
919 * fold-const.c (operand_equal_p): For two comparisons,
920 try comparison of one comparison code swapped if that yields
923 2006-05-10 Ben Elliston <bje@au.ibm.com>
925 * tree-pretty-print.c (pretty_print_string): No need to handle
926 '\0' as a special character.
928 * tree.h: Include "hashtab.h".
929 (iterative_hash_expr): Use hashval_t in its prototype.
930 * Makefile.in (TREE_H): Add $(HASHTAB_H).
932 2006-05-09 Steve Ellcey <sje@cup.hp.com>
935 * config.gcc (hppa[12]*-*-hpux10*): Set gas to yes.
936 (hppa*64*-*-hpux11*): Ditto.
937 (hppa[12]*-*-hpux11*): Ditto.
939 2006-05-09 David Edelsohn <edelsohn@gnu.org>
942 * config/rs6000/aix41.h (TARGET_64BIT): Define.
944 2006-05-09 Michael Matz <matz@suse.de>
946 * config.host (<i[34567]86-*-*, x86_64-*-*>): Set
947 host_extra_gcc_objs and host_xmake_file.
948 (<*-*-linux*>): Don't overwrite host_xmake_file.
949 * gcc.c (static_spec_functions): Add EXTRA_SPEC_FUNCTIONS.
950 * config/i386/i386.h (EXTRA_SPEC_FUNCTIONS): Define.
951 (host_detect_local_cpu): Declare.
952 (CC1_CPU_SPEC): Add -march=native and -mtune=native cases.
953 * config/i386/i386.c (override_options): Handle -mtune=native
955 * config/i386/x-i386: New file.
956 * config/i386/driver-i386.c: New file.
957 * doc/invoke.texi (<i386 and x86-64 Options>): Describe
960 2006-05-09 Dirk Mueller <dmueller@suse.de>
961 Richard Guenther <rguenther@suse.de>
964 * fold-const.c (fold_read_from_constant_string): Relax check
965 for matching types to matching modes.
967 2006-05-09 Zdenek Dvorak <dvorakz@suse.cz>
969 PR rtl-optimization/27335
970 * loop-unroll.c (peel_loops_completely): Use loops->parray to walk the
973 2006-05-08 Chao-ying Fu <fu@mips.com>
974 Richard Sandiford <richard@codesourcery.com>
976 * config/mips/mips-ps-3d.md (scc_ps, s<code>_ps): New patterns.
977 (vcondv2sf, sminv2sf3, smaxv2sf3): Likewise.
978 * config/mips/mips.md (UNSPEC_SCC): New constant.
979 * config/mips/mips-protos.h (mips_expand_vcondv2sf): Declare.
980 * config/mips/mips.c (mips_reverse_fp_cond_p): New function.
981 (mips_emit_compare): Use it.
982 (mips_expand_vcondv2sf): New function.
984 2006-05-08 Daniel Berlin <dberlin@dberlin.org>
986 Fix PR tree-optimization/27093
987 * tree-ssa-alias.c (recalculate_used_alone): Mark variables for
988 renaming when they become not-used_alone.
990 2006-05-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
992 * hpux-unwind.h (pa_fallback_frame_state): Handle return parameter
993 relocation and relocation stubs.
995 2006-05-08 Eric Christopher <echristo@apple.com>
997 * unwind-dw2-fde-darwin.c (examine_objects): Only check data
1000 2006-05-08 Jan Hubicka <jh@suse.cz>
1003 * cgraphunit.c (decide_is_function_needed): When not optimizing even
1004 unused static functions are needed.
1006 2006-05-08 Roger Sayle <roger@eyesopen.com>
1009 * reload.c (find_reloads_toplev): Only return the simplified SUBREG
1010 of a reg_equiv_constant if the result is a legitimate constant.
1012 2006-05-08 Uros Bizjak <uros@kss-loka.si>
1015 * config/i386/i386.c (ix86_rtx_costs) [FLOAT_EXTEND]: For
1016 standard 80387 constants, raise the cost to prevent
1017 compress_float_constant() to generate load from memory.
1019 2006-05-08 Kazu Hirata <kazu@codesourcery.com>
1021 * config/arm/constraints.md (c): Fix a typo.
1023 * see.c, tree-flow-inline.h, tree-phinodes.c: Fix comment
1026 2006-05-07 H.J. Lu <hongjiu.lu@intel.com>
1029 * config/i386/pmmintrin.h (_mm_monitor): Remove macro. Use
1031 (_mm_mwait): Likewise.
1033 * config/i386/sse.md (sse3_mwait): Replace "mwait\t%0, %1" with
1035 (sse3_monitor): Make it 32bit only.
1036 (sse3_monitor64): New. 64bit monitor.
1038 2006-05-07 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1041 * config/i386/i386.c (classify_argument): Skip fields with invalid
1044 2006-05-07 Richard Guenther <rguenther@suse.de>
1046 PR tree-optimization/27409
1047 * tree-ssa-structalias.c (get_constraint_for_component_ref):
1048 Do not try to find zero-sized subvars.
1050 2006-05-07 Richard Guenther <rguenther@suse.de>
1052 PR tree-optimization/27136
1053 * tree-ssa-loop-niter.c (get_val_for): Correct function
1054 comment, assert requirements.
1055 (loop_niter_by_eval): Stop processing if the iterated
1056 value did not simplify.
1058 2006-05-07 Mircea Namolaru <namolaru@il.ibm.com>
1060 * opts.c (flag_see): remove its setting at -O3.
1062 2006-05-07 Richard Earnshaw <rearnsha@arm.com>
1064 * genpeep.c (main): Make insn-peep.c depend on flags.h.
1065 * arm/constraints.md: New file.
1066 * arm.h (REG_CLASS_FROM_LETTER_P): Delete.
1067 (CONST_OK_FOR_ARM_LETTER, CONST_OK_FOR_THUMB_LETTER)
1068 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_ARM_LETTER)
1069 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT_STR_ARM)
1070 (CONSTRAINT_LEN, EXTRA_CONSTRAINT_THUMB, EXTRA_CONSTRAINT_STR)
1071 (EXTRA_MEMORY_CONSTRAINT): Likewise.
1072 * arm.md: Include constraints.md.
1073 (thumb_movsi_insn): Use satisfies_constraint_J.
1074 (movhi, movqi): Use satisfies_constraint_I.
1076 2006-04-29 Anatoly Sokolov <aesok@post.ru>
1078 * config/avr/avr.h (CRT_BINUTILS_SPECS): Fixed crt* file name
1079 for atmeg a645 device.
1081 2006-05-06 Richard Guenther <rguenther@suse.de>
1083 PR tree-optimization/27151
1084 * tree-vect-transform.c (vectorizable_condition): Punt on
1085 values that have a different type than the condition.
1087 2006-05-03 Aldy Hernandez <aldyh@redhat.com>
1090 * c-parser.c (c_parser_cast_expression): Only insert casts into
1091 hash table if pointer.
1092 * function.c (used_types_insert_helper): Rename from
1094 (used_types_insert): Call used_types_insert_helper.
1095 * function.h (used_types_insert): Accept only one argument.
1097 2006-05-05 David Edelsohn <edesohn@gnu.org>
1099 * config/rs6000/rs6000.md: Mark all "X" constraints for clobbered
1100 scratch with output modifier.
1102 2006-05-04 David Edelsohn <edelsohn@gnu.org>
1105 * config/rs6000/rs6000.md (stmsi_power): Mark clobber constraint
1106 with output modifier.
1108 2006-05-04 Richard Sandiford <richard@codesourcery.com>
1111 * config/mips/mips.c (mips_symbolic_address_p): Return true
1112 for SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL, SYMBOL_TPREL,
1113 SYMBOL_GOTTPREL, and SYMBOL_TLS.
1115 2006-05-04 Richard Guenther <rguenther@suse.de>
1117 PR tree-optimization/14287
1118 PR tree-optimization/14844
1119 PR tree-optimization/19792
1120 PR tree-optimization/21608
1121 PR tree-optimization/27090
1122 * tree-ssa-pre.c (try_combine_conversion): New function.
1123 (compute_avail): After constructing the value-handle
1124 expression, use try_combine_conversion to combine NOP_EXPRs
1125 with previous value-handle expressions and use the result if it
1128 2006-05-04 Joseph S. Myers <joseph@codesourcery.com>
1130 * config/mips/linux64.h (DWARF_OFFSET_SIZE): Remove.
1132 2006-05-04 Jan Hubicka <jh@suse.cz>
1135 * cgraphunit.c (verify_cgraph_node): Fix cgraph_hash testing.
1137 2006-05-04 Bernd Schmidt <bernd.schmidt@analog.com>
1139 * config/bfin/predicates.md (const01_rtx): Tell generator programs
1140 that this only matches CONST_INTs. All users changed to VOIDmode
1143 * config/bfin/bfin.c: Include "optabs.h".
1144 (bfin_rtx_costs): Some costs for vector operations, to allow combine
1146 (enum bfin_builtins): Add a number of fractional and vector builtins.
1147 (bfin_init_builtins): Likewise.
1148 (struct builtin_description, bdesc_2arg, bdesc_1arg): New.
1149 (safe_vector_operand, bfin_expand_binop_builtin,
1150 bfin_expand_unop_builtin): New functions.
1151 (bfin_expand_builtin): Handle the new builtins.
1152 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1155 2006-05-04 Leehod Baruch <leehod@il.ibm.com>
1158 * Makefile.in (OBJS-common): Add see.o.
1159 (see.o): Add dependencies.
1160 * common.opt (fsee): New flag for the see optimization was added.
1161 * opts.c (flag_see): Initialized.
1162 * passes.c (init_optimization_passes, pass_see): New pass.
1163 * rtl.h (see_main): Declaration as extern.
1164 * timevar.def (TV_SEE): New.
1165 * tree-pass.h (pass_see): Declaration as extern.
1166 * invoke.texi (-fsee): Document.
1167 * recog.c (validate_simplify_insn): New function.
1168 * recog.h (validate_simplify_insn): Declaration as extern.
1169 * df-problems.c (df_chain_dump): Check for NULL.
1171 2006-05-04 Kenneth Zadeck <zadeck@naturalbridge.com>
1172 Daniel Berlin <dberlin@dberlin.org>
1174 * cfgrtl.c (insert_insn_bb_end_new): New function.
1175 * basic-block.h (insert_insn_bb_end_new): Declaration as extern.
1177 2006-05-04 Leehod Baruch <leehod.baruch@weizmann.ac.il>
1179 * df.h (struct web_entry): Moved from web.c.
1180 (union_defs): Declaration as extern.
1181 (unionfind_root): Likewise.
1182 (unionfind_union): Likewise.
1183 * web.c (struct web_entry): Moved to df.h.
1184 (unionfind_root): Remove static declaration.
1185 (unionfind_union): Likewise.
1186 (union_defs): Likewise and generalize to use callback function.
1187 (web_main): Update arguments for union_defs function call.
1189 2006-05-04 Richard Guenther <rguenther@suse.de>
1191 PR tree-optimization/26447
1192 * tree-ssa-pre.c (realify_fake_stores): For necessary loads
1193 produce SSA_NAME copies before the store stmt to avoid
1194 breaking exception handling.
1196 2006-05-04 Jakub Jelinek <jakub@redhat.com>
1199 * gimplify.c (omp_is_private): If var is shared in some outer context,
1200 return false instead of true. Stop searching on parallel context
1203 2006-05-03 Alexandre Oliva <aoliva@redhat.com>
1206 * coverage.c: Use get_gcov_unsigned_t() instead of
1207 unsigned_type_node all over.
1209 2006-05-02 Andrew MacLeod <amacleod@redhat.com>
1211 PR tree-optimization/27381
1212 * tree-phinodes.c (remove_phi_arg_num): When moving a phi argument,
1213 maintain the same immediate_use links.
1214 * tree-ssa-operands.c (dump_immediate_uses_for): Show iteration marker
1215 node rather than segfaulting.
1217 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1220 * gimplify.c (gimplify_scan_omp_clauses): Compare OMP_CLAUSE_CODE
1221 rather than TREE_CODE to OMP_CLAUSE_REDUCTION. Set also GOVD_SEEN
1222 bit for OMP_CLAUSE_REDUCTION_PLACEHOLDER.
1224 2006-05-02 Daniel Berlin <dberlin@dberlin.org>
1226 Fix PR tree-optimization/26626
1227 * tree-ssa-structalias.c (compute_points_to_sets): For now, solve
1229 * tree-ssa-operands.c (access_can_touch_variable): Allow
1230 typecasting through union pointers.
1232 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1235 * omp-low.c (maybe_lookup_decl_in_outer_ctx): New function.
1236 (build_outer_var_ref): Use maybe_lookup_decl_in_outer_ctx
1237 to find if var will be a global variable even in the nested context.
1238 (omp_copy_decl): Only check for global variable at the end, it might
1239 be overridden in outer contexts.
1240 (scan_sharing_clauses): For global variables don't create a field.
1241 (lower_rec_input_clauses): Do nothing for global shared variables.
1242 Emit a barrier at the end of ILIST if there were any decls in both
1243 firstprivate and lastprivate clauses.
1244 (lower_send_clauses): Do nothing for global variables except for
1247 2006-05-02 Zdenek Dvorak <dvorakz@suse.cz>
1249 * tree.c (unsigned_type_for, signed_type_for): Make sure a type
1250 of the correct signedness is returned.
1252 2006-05-02 Jeff Law <law@redhat.com>
1254 PR tree-optimization/27364
1255 * tree-vrp.c (vrp_int_const_binop): Fix detection of overflow from
1256 multiply expressions.
1258 2006-05-02 Tom Tromey <tromey@redhat.com>
1260 * tree-flow-inline.h (op_iter_init_phiuse): Fixed typo.
1262 2006-05-02 Kazu Hirata <kazu@codesourcery.com>
1265 * arm.c (arm_output_mi_thunk): Use pc-relative addressing when
1266 -mthumb -fPIC are used.
1268 2006-05-02 Stanislaw Skowronek <skylark@linux-mips.org>
1269 Joshua Kinard <kumba@gentoo.org>
1272 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Avoid 32-bit moves
1273 with 64-bit pointers.
1275 2006-05-02 Paul Brook <paul@codesourcery.com>
1277 * config/arm/arm.c (add_minipool_forward_ref): Check if insn
1279 (create_fix_barrier): Check that a suitable barrier location is
1281 (arm_reorg): Include ftmp->address in allowable range of addresses.
1283 2006-05-02 David Billinghurst <David.Billinghurst@riotinto.com>
1286 * ada/env.c (__gnat_clearenv): Use unsetenv() to clear environment
1289 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1292 * gimplify.c (gimplify_scan_omp_clauses): Handle INDIRECT_REF
1293 around RESULT_DECL for result passed by reference.
1294 (gimplify_expr): Call omp_notice_variable when RESULT_DECL is seen.
1295 * omp-low.c (use_pointer_for_field): Don't look at
1296 DECL_HAS_VALUE_EXPR_P for RESULT_DECLs.
1297 (scan_omp_1): Call remap_decl on RESULT_DECLs.
1298 (lower_rec_input_clauses): Don't allocate VLA memory for the second
1299 time or var for passing by reference for
1300 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses. Allow creation of
1301 TREE_ADDRESSABLE variables when passing by reference.
1303 * omp-low.c (dump_omp_region): Fix output formatting.
1306 * omp-low.c (remove_exit_barrier): Handle NULL exit_bb.
1307 (expand_omp_parallel): Likewise.
1308 * tree-cfg.c (move_sese_region_to_fn): Likewise.
1311 * omp-low.c (lower_omp_sections): Call maybe_catch_exception
1312 on statement list containing also constructors and destructors.
1313 (lower_omp_single, lower_omp_for, lower_omp_parallel): Likewise.
1316 * except.c (duplicate_eh_regions): Fix clearing of
1317 cfun->eh->region_array entries.
1319 2006-05-01 DJ Delorie <dj@redhat.com>
1321 * configure.ac (gcc_cv_nm): Don't use an in-tree nm if
1323 (gcc_cv_objdump): Likewise.
1324 * configure: Regenerated.
1326 2006-05-01 Kazu Hirata <kazu@codesourcery.com>
1329 * config/arm/vfp.md (*arm_movdi_vfp): Correct the output
1330 templates for case 3 and 4.
1332 2006-05-01 DJ Delorie <dj@redhat.com>
1334 * vec.c: Include bconfig.h when appropriate.
1335 * Makefile.in (build/vec.o): Adjust dependencies.
1336 * mkconfig.sh: Make sure config.h isn't used for build machine
1339 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
1341 * tree-into-ssa.c (phis_to_rewrite, blocks_with_phis_to_rewrite): New
1343 (mark_phi_for_rewrite): New function.
1344 (insert_phi_nodes_for, mark_use_interesting): Call
1345 mark_phi_for_rewrite.
1346 (rewrite_update_phi_arguments): Traverse only phis in phis_to_rewrite.
1347 (update_ssa): Initialize and free phis_to_rewrite.
1349 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
1351 PR rtl-optimization/27291
1352 * loop-doloop.c (add_test, doloop_modify): Handle the case condition is
1353 folded to a constant.
1355 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
1357 PR tree-optimization/27283
1358 * tree-ssa-loop-ivopts.c (struct nfe_cache_elt): Store just trees,
1359 not whole # of iteration descriptions.
1360 (niter_for_exit): Return just # of iterations. Fail if # of iterations
1361 uses abnormal ssa name.
1362 (niter_for_single_dom_exit): Ditto.
1363 (find_induction_variables, may_eliminate_iv): Expect niter_for_exit to
1364 return just the number of iterations.
1366 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
1368 PR tree-optimization/27144
1369 * tree-ssa-loop-niter.c (derive_constant_upper_bound): New function.
1370 (record_estimate): Only record constant upper bound.
1371 (infer_loop_bounds_from_undefined): Call
1372 compute_estimated_nb_iterations just once.
1373 (proved_non_wrapping_p): Renamed to ...
1374 (n_of_executions_at_most): ... this. Expect bound to be a constant.
1375 (convert_step_widening, scev_probably_wraps_p): Call
1376 n_of_executions_at_most instead of proved_non_wrapping_p.
1377 (substitute_in_loop_info): Do not replace values in bounds.
1378 * cfgloop.h (struct nb_iter_bound): Remove "additional" field. Update
1381 2006-05-01 Richard Henderson <rth@redhat.com>
1384 * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Move after
1385 c_parser_skip_to_pragma_eol. Convert to switch statement. Handle
1388 2006-05-01 Roger Sayle <roger@eyesopen.com>
1390 * c-typeck.c (parser_build_binary_op): Don't call the function
1391 unsigned_conversion_warning to spot operand/result type overflow.
1392 (build_binary_op): Instead, call convert_and_check instead of
1393 convert to report the problem when the operands are promoted.
1394 * c-common.c (unsigned_conversion_warning): Make static.
1395 * c-common.h (unsigned_conversion_warning): Delete prototype.
1397 2006-05-01 Richard Guenther <rguenther@suse.de>
1399 PR tree-optimization/26726
1400 * tree-ssa-loop-ivopts.c (idx_find_step): Mark source of the
1402 (find_interesting_uses_address): ... we work around here
1403 by folding INDIRECT_REFs in the substituted base.
1405 2006-05-01 Diego Novillo <dnovillo@redhat.com>
1407 * omp-low.c (dump_omp_region): Add newlines.
1409 2006-04-30 Roger Sayle <roger@eyesopen.com>
1411 * common.opt (Woverflow): New command line option.
1412 * c-common.c (constant_expression_warning): Check warn_overflow.
1413 (overflow_waring): Pass OPT_Woverflow to warning.
1414 (unsigned_conversion_warning): Likewise.
1415 (convert_and_check): Likewise.
1416 * doc/invoke.texi: Document new command line option.
1418 2006-04-30 David Edelsohn <edelsohn@gnu.org>
1420 * config/rs6000/rs6000.c (rs6000_override_options): Enable
1421 TARGET_NO_FP_IN_TOC for section anchors.
1422 (optimization_options): Enable section anchors for all
1423 non-"Objective" languages.
1425 2006-04-28 Eric Christopher <echristo@apple.com>
1427 * config/darwin-c.c (darwin_ms_struct): Move this
1428 (darwin_set_default_type_attributes): and this...
1429 * config/darwin.c: ... here.
1430 * config/darwin.h (darwin_ms_struct): Declare.
1432 2006-04-28 Andrew MacLeod <amacleod@redhat.com>
1434 * tree-ssa-dom.c (propagate_rhs_into_lhs): Fix assert clause.
1436 2006-04-28 Roger Sayle <roger@eyesopen.com>
1439 * c-typeck.c (struct spelling): Make I an unsigned HOST_WIDE_INT.
1440 (push_array_bounds): Delete prototype. Change BOUNDS argument to
1441 an unsigned HOST_WIDE_INT.
1442 (print_spelling): Use HOST_WIDE_INT_PRINT_UNSIGNED to output the
1444 (really_start_incremental_init): No need to call convert because
1445 bitsize_zero_node is already of type bitsizetype.
1446 (push_init_level): Extract the value of constructor_index as an
1447 unsigned HOST_WIDE_INT quantity, using tree_low_cst.
1448 (process_init_element): Likewise.
1450 2006-04-28 Joseph S. Myers <joseph@codesourcery.com>
1452 * gcc.c (process_command): Add program name to GCC_EXEC_PREFIX
1453 value before passing to make_relative_prefix.
1455 2006-04-28 Alan Modra <amodra@bigpond.net.au>
1458 * builtins.c (expand_builtin_memset): Expand val in original mode.
1460 2006-04-27 Eric Christopher <echristo@apple.com>
1462 * target-def.h (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Bracket
1463 with #ifndef/#endif.
1464 * config/darwin-c.c (darwin_ms_struct): New.
1465 (darwin_pragma_ms_struct): Ditto.
1466 (darwin_set_default_type_attributes): Ditto.
1467 * config/darwin-protos.h (darwin_pragma_ms_struct): Declare.
1468 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS):
1469 Register ms_struct pragma.
1470 * config/i386/darwin.h (REGISTER_TARGET_PRAGMAS): Declare.
1471 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Ditto.
1472 * config/rs6000/rs6000.c (rs6000_set_default_type_attributes): Call
1473 darwin_set_default_type_attributes if TARGET_MACHO.
1475 2006-04-27 Andrew MacLeod <amacleod@redhat.com>
1477 PR tree-optimization/26854
1478 * tree-vrp.c (remove_range_assertions): Use new Immuse iterator.
1479 * doc/tree-ssa.texi: Update immuse iterator documentation.
1480 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Use new iterator.
1481 * tree-ssa-dom.c (propagate_rhs_into_lhs): Use new iterator.
1482 * tree-flow-inline.h (end_safe_imm_use_traverse, end_safe_imm_use_p,
1483 first_safe_imm_use, next_safe_imm_use): Remove.
1484 (end_imm_use_stmt_p): New. Check for end of immuse stmt traversal.
1485 (end_imm_use_stmt_traverse): New. Terminate immuse stmt traversal.
1486 (move_use_after_head): New. Helper function to sort immuses in a stmt.
1487 (link_use_stmts_after): New. Link all immuses in a stmt consescutively.
1488 (first_imm_use_stmt): New. Get first stmt in an immuse list.
1489 (next_imm_use_stmt): New. Get next stmt in an immuse list.
1490 (first_imm_use_on_stmt): New. Get first immuse on a stmt.
1491 (end_imm_use_on_stmt_p): New. Check for end of immuses on a stmt.
1492 (next_imm_use_on_stmt): New. Move to next immuse on a stmt.
1493 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Use new iterator.
1494 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use new iterator.
1495 (perfect_nestify): Use new iterator.
1496 * tree-vect-transform.c (vect_create_epilog_for_reduction): Use new
1498 * tree-flow.h (struct immediate_use_iterator_d): Add comments.
1499 (next_imm_name): New field in struct immediate_use_iterator_d.
1500 (FOR_EACH_IMM_USE_SAFE, BREAK_FROM_SAFE_IMM_USE): Remove.
1501 (FOR_EACH_IMM_USE_STMT, BREAK_FROM_IMM_USE_STMT,
1502 FOR_EACH_IMM_USE_ON_STMT): New immediate use iterator macros.
1503 * tree-cfg.c (replace_uses_by): Use new iterator.
1504 * tree-ssa-threadedge.c (lhs_of_dominating_assert): Use new iterator.
1505 * tree-ssa-operands.c (correct_use_link): Remove.
1506 (finalize_ssa_use_ops): No longer call correct_use_link.
1508 2006-04-27 Stuart Hastings <stuart@apple.com>
1510 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): New.
1511 * config/t-darwin (crt3.o): Use it.
1512 * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Remove
1513 'pmode', use Pmode instead of SImode for SYMBOL_REF.
1514 * config/rs6000/rs6000.md (call_indirect_nonlocal_sysv,
1515 call_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
1516 call_value_nonlocal_sysv): Suffix with the "P" macro for 32/64
1519 2006-04-27 Roger Sayle <roger@eyesopen.com>
1521 * expmed.c (store_fixed_bit_field): If we're not optimizing for
1522 size, force the intermediate into a new pseudo rather instead of
1523 performing both a bitwise AND and a bitwise IOR in memory.
1525 2006-04-27 Richard Guenther <rguenther@suse.de>
1527 PR rtl-optimization/26685
1528 * params.def (PARAM_MAX_CSE_INSNS): Correct typo that named
1529 this one "max-flow-memory-locations".
1531 2006-04-27 Richard Guenther <rguenther@suse.de>
1533 PR tree-optimization/25148
1534 * tree-vrp.c (compare_values): Remove code dealing with
1535 comparisons against type min/max value. Honour overflow
1536 and negative constants in code dealing with comparisons
1537 of plus and minus expressions.
1538 (value_inside_range): Use fold_binary with LE_EXPR and
1539 GE_EXPR rather than compare_values.
1541 2006-04-27 Dirk Mueller <dmueller@suse.de>
1543 * config/i386/xmmintrin.h (_mm_shuffle_pi16): Declare
1546 2006-04-26 Kenneth Zadeck <zadeck@naturalbridge.com>
1548 * basic-block.h (safe_insert_insn_on_edge): Removed.
1549 * cfgrtl.c (mark_killed_regs, safe_insert_insn_on_edge): Removed.
1551 2006-04-26 David Edelsohn <edelsohn@gnu.org>
1552 Paolo Bonzini <bonzini@gnu.org>
1555 * combine.c (simplify_and_const_int_1): Use gen_int_mode.
1556 (simplify_and_const_int): Same.
1558 2006-04-26 Aldy Hernandez <aldyh@redhat.com>
1560 * tree-ssa-dse.c (dse_optimize_stmt): Remove unused variable USE.
1562 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1565 * cgraph.c (cgraph_varpool_finalize_decl): Don't call
1566 cgraph_varpool_assemble_pending_decls if -fopenmp, unless
1567 cgraph_global_info_ready.
1570 * tree-cfg.c (find_outermost_region_in_block): Handle RESX_EXPR.
1573 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for if
1574 either decl or init is error_mark_node.
1577 * tree-flow.h (struct omp_region): Add sched_kind.
1578 * omp-low.c (expand_parallel_call): Use region->inner->sched_kind
1579 instead of extracting omp for data.
1580 (expand_omp_for): Save extracted sched_kind.
1582 2006-04-25 Roger Sayle <roger@eyesopen.com>
1584 * expmed.c (store_bit_field): Also check whether the bitsize is
1585 valid for the machine's "insv" instruction before moving the
1586 target into a pseudo for use with the insv.
1587 * config/i386/predicates.md (const8_operand): New predicate.
1588 * config/i386/i386.md (extv, extzv, insv): Use the new
1589 const8_operand predicate where appropriate.
1591 2006-04-25 DJ Delorie <dj@redhat.com>
1593 * doc/install.texi (Specific): Clarify that this is not a list of
1594 supported hosts or targets.
1596 2006-04-25 Richard Sandiford <richard@codesourcery.com>
1598 PR rtl-optimization/26725
1599 * cfgrtl.c (rtl_redirect_edge_and_branch_force): Set the source
1600 block's BB_DIRTY flag.
1602 2006-04-25 Geoffrey Keating <geoffk@apple.com>
1604 * dwarf2out.c (size_of_locs): Don't fill dw_loc_addr if there
1607 * dwarf2asm.c (dw2_asm_output_data): Don't generate RTL just
1608 to print an integer.
1610 2006-04-25 David Edelsohn <edelsohn@gnu.org>
1612 * varasm.c (align_variable): New function.
1613 (get_block_for_decl): Apply align_variable to DECL before
1614 calculating section information.
1615 (assemble_variable): Split out alignment computation.
1617 2006-04-25 Andreas Krebbel <krebbel1@de.ibm.com>
1619 * expmed.c (store_bit_field): Handle paradoxical subregs on big endian
1622 2006-04-25 Bernd Schmidt <bernd.schmidt@analog.com>
1624 * genmodes.c (make_vector_mode): Allow making VECTOR_MODE_INT of a
1625 MODE_PARTIAL_INT mode.
1626 * config/bfin/bfin-modes.def: Add V2PDI and V2SI.
1627 * config/bfin/bfin.c (print_operand): Add macflag and mac/msu modifiers
1629 (hard_regno_mode_ok): V2PDImode is ok for accumulators.
1630 * config/bfin/bfin.h (CLASS_MAX_NREGS, HARD_REGNO_NREGS): Handle
1632 * config/bfin/predicates.md (const01_operand, vec_shift_operand):
1634 * config/bfin/bfin.md (UNSPEC_MUL_WITH_FLAG, UNSPEC_MAC_WITH_FLAG):
1636 (MACFLAG_NONE, MACFLAG_T, MACFLAG_FU, MACFLAG_TFU, MACFLAG_IS,
1637 MACFLAG_IU, MACFLAG_W32, MACFLAG_M, MACFLAG_S2RND, MACFLAG_ISS2,
1638 MACFLAG_IH): Likewise.
1639 (movstricthi_1): Renamed from "*movstricthi".
1640 (load_accumulator, load_accumulator_pair, movsi_insv, insv,
1641 ssaddsi3, sssubsi3, ssnegsi2, signbitssi2, smaxhi3, sminhi3,
1642 abshi2, neghi2, ssneghi2, signbitshi2, movhi_low2high,
1643 movhi_high2high, movhi_low2low, movhi_high2low, movhiv2hi_low,
1644 movhiv2hi_high, composev2hi, movv2hi_hi, movv2hi_hi_low,
1645 movv2hi_hi_high, ssaddhi3, sssubhi3, ssaddv2hi3, sssubv2hi3,
1646 addsubv2hi3, subaddv2hi3, ssaddsubv2hi3, sssubaddv2hi3,
1647 sublohiv2hi3, subhilov2hi3, sssublohiv2hi3, sssubhilov2hi3,
1648 addlohiv2hi3, addhilov2hi3, ssaddlohiv2hi3, ssaddhilov2hi3,
1649 mulhisi_ll, mulhisi_lh, mulhisi_hl, mulhisi_hh, ssnegv2hi2,
1650 ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3, packv2hi,
1651 flag_mulhi, flag_mulhisi_parts, flag_machi, flag_machi_acconly,
1652 flag_macinithi, flag_macinit1hi, flag_mulv2hi, flag_mulv2hi_parts,
1653 flag_macv2hi_parts, flag_macv2hi_parts_acconly,
1654 flag_macinitv2hi_parts, flag_macinit1v2hi_parts): New patterns.
1656 * doc/rtl.texi (ss_ashift): Improve wording.
1658 2006-04-24 Geoffrey Keating <geoffk@apple.com>
1660 * dwarf2out.c (verify_marks_clear): New.
1661 (prune_unused_types): Call verify_marks_clear initially, not
1664 2006-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
1666 * rtl.def (SS_ASHIFT, SS_NEG): New codes.
1667 * doc/rtl.texi: Document them.
1668 * simplify-rtx.c (simplify_unary_operation,
1669 simplify_binary_operation_1): Don't abort when we see them.
1671 2006-04-24 Mark Mitchell <mark@codesourcery.com>
1674 2006-04-23 Mark Mitchell <mark@codesourcery.com>
1675 * configure.ac: Completely disregard languages that are not
1677 * configure: Regenerated.
1679 2006-04-24 Andrew Pinski <pinskia@gcc.gnu.org>
1680 Richard Guenther <rguenther@suse.de>
1682 PR tree-optimization/27236
1683 * tree-inline.c (copy_body_r): Make sure to copy
1684 TREE_THIS_VOLATILE flag.
1686 2006-04-24 Richard Guenther <rguenther@suse.de>
1689 * tree-complex.c (update_parameter_components): Don't handle
1690 unused parameters which have no default def.
1692 2006-04-24 Andrew Pinski <pinskia@gcc.gnu.org>
1693 Richard Guenther <rguenther@suse.de>
1695 PR tree-optimization/27218
1696 * tree-inline.c (expand_call_inline): Strip useless type
1697 conversions for the return slot address.
1699 2006-04-24 Richard Guenther <rguenther@suse.de>
1701 * cfgloop.h (struct loops): Remove unused field array. Reorder
1703 (LOOP_PREFETCH): Remove.
1705 2006-04-24 Richard Guenther <rguenther@suse.de>
1707 PR tree-optimization/22525
1708 * value-prof.c (tree_mod_pow2): Remove unnecessary temporary
1709 variable, adjust types of generated expressions.
1711 2006-04-23 H.J. Lu <hongjiu.lu@intel.com>
1713 * Makefile.in (c-convert.o): Add dependency on $(TARGET_H)
1714 (tree-vect-patterns.o): Likewise.
1716 (cselib.o): Likewise.
1717 (loop-doloop.o): Likewise.
1718 (regclass.o): Likewise.
1719 (reload1.o): Likewise.
1720 (explow.o): Replace target.h with $(TARGET_H).
1721 (ipa-prop.o): Likewise.
1722 (ipa-cp.o): Likewise.
1723 (ipa-inline.o): Likewise.
1724 (reorg.o): Likewise.
1725 (reg-stack.o): Likewise.
1727 2006-04-23 Eric Botcazou <ebotcazou@adacore.com>
1729 * tree-tailcall.c (pass_tail_recursion): Use gate_tail_calls too.
1731 2006-04-23 Mark Mitchell <mark@codesourcery.com>
1733 * print-tree.c (print_node): Print DECL_BIT_FIELD_TYPE.
1735 * configure.ac: Completely disregard languages that are not
1737 * configure: Regenerated.
1740 * c-common.h (c_build_bitfield_integer_type): Declare.
1741 * c-decl.c (c_build_bitfield_integer_type): Move to ...
1742 * c-common.c (c_build_bitfield_integer_type): ... here.
1744 2006-04-23 Roger Sayle <roger@eyesopen.com>
1747 * config/fr30/fr30.md (define_split): Avoid calling gen_lowpart on
1748 a SImode SUBREG of a floating point register after no_new_pseudos.
1750 2006-04-23 Roger Sayle <roger@eyesopen.com>
1752 * config/fr30/fr30.md (addsi_small_int): Use REGNO_PTR_FRAME_P to
1753 identify potentially eliminable registers to additionally catch
1754 VIRTUAL_INCOMING_ARGS_REGNUM.
1755 (addsi3): Update the conditions on when to use addsi_small_int.
1757 2006-04-23 Roger Sayle <roger@eyesopen.com>
1760 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Check REGNO for
1761 STACK_POINTER_RTX and FRAME_POINTER_RTX instead of comparing the
1762 rtx to stack_pointer_rtx or frame_pointer_rtx directly.
1764 2006-04-23 Eric Botcazou <ebotcazou@adacore.com>
1766 * fold-const.c (range_predecessor): Use operand_equal_p
1767 as the predicate for equality.
1768 (range_successor): Likewise.
1770 2006-04-22 Kazu Hirata <kazu@codesourcery.com>
1773 * config/soft-fp/op-common.h: Fix a typo.
1775 2006-04-22 Frank Ch. Eigler <fche@redhat.com>
1778 * common.opt (flag_mudflap_threads): Overload flag_mudflap.
1779 * tree-mudflap.c (flag_mudflap_threads): Derive from flag_mudflap.
1781 2006-04-22 Kazu Hirata <kazu@codesourcery.com>
1783 * config/soft-fp/op-common.h, double-int.h, tree-ssa-dom.c:
1785 * doc/tm.texi: Fix a typo.
1787 2006-04-21 Geoffrey Keating <geoffk@apple.com>
1789 * dwarf2out.c (struct die_struct): Document that die_sib makes
1790 a circular linked list.
1791 (FOR_EACH_CHILD): New.
1792 (reverse_die_lists): Delete.
1793 (reverse_all_dies): Delete.
1794 (add_dwarf_attr): Correct documentation.
1795 (remove_child_with_prev): New.
1796 (remove_child_TAG): Update for change to die_struct, use
1797 remove_child_with_prev.
1798 (add_child_die): Update for change to die_struct.
1799 (splice_child_die): Use remove_child_with_prev and add_child_die.
1800 (print_die): Use FOR_EACH_CHILD.
1801 (die_checksum): Likewise.
1802 (assign_symbol_names): Likewise.
1803 (output_location_lists): Likewise.
1804 (build_abbrev_table): Likewise.
1805 (calc_die_sizes): Likewise.
1806 (mark_dies): Likewise.
1807 (unmark_dies): Likewise.
1808 (unmark_all_dies): Likewise.
1809 (output_die): Likewise.
1810 (prune_unused_types_mark): Likewise.
1811 (prune_unused_types_walk): Likewise.
1812 (same_die_p): Update for change to die_struct.
1813 (break_out_includes): Likewise.
1814 (prune_unused_types_prune): Likewise.
1815 (add_sibling_attributes): Use FOR_EACH_CHILD, simplify logic.
1816 (prune_unmark_dies): Use FOR_EACH_CHILD, don't clear die_mark if
1818 (dwarf2out_finish): Don't call reverse_all_dies.
1820 2006-04-21 Eric Christopher <echristo@apple.com>
1822 * df-core.c, tree-outof-ssa.c, config/i386/i386.c: Fix typos
1823 in comments and function names.
1825 2006-04-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1828 * c-typeck.c (digest_init): Robustify.
1830 * c-typeck.c (pop_init_level): Simplify.
1832 2006-04-21 Steve Ellcey <sje@cup.hp.com>
1834 * config/pa/t-pa64: Add dependencies on $(GCC_PASSES).
1836 2006-04-21 Paul Brook <paul@codesourcery.com>
1838 * config/arm/arm.c (arm_override_options): Error on iWMMXt and
1839 hardware floating point.
1841 2006-04-21 David Edelsohn <edelsohn@gnu.org>
1843 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Add sfp to
1846 2006-04-21 Nick Clifton <nickc@redhat.com>
1848 * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Include
1851 2006-04-21 Alan Modra <amodra@bigpond.net.au>
1854 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
1855 C++ lang type in traceback table for Objective-C++.
1857 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Update comment.
1859 2006-04-20 H.J. Lu <hongjiu.lu@intel.com>
1861 * config/i386/i386.c (asm_preferred_eh_data_format): Reformat.
1863 2006-04-20 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1866 * tree-mudflap.c (mudflap_finish_file): Skip function when there
1867 were errors. Remove check for erroneous objects.
1869 2006-04-20 Jeff Law <law@redhat.com>
1871 PR tree-optimization/26854
1872 * tree-ssa-dse.c (dse_optimize_stmt): Avoid num_imm_uses when
1873 checking for zero or one use.
1874 * tree-ssa-dom.c (propagate_rhs_into_lhs): Similarly.
1875 * tree-cfgcleanup.c (merge_phi_nodes): Similarly.
1876 * tree-ssa-reassoc.c (negate_value): Similarly.
1877 (reassociate_bb): Similarly.
1879 2006-04-20 Jakub Jelinek <jakub@redhat.com>
1881 * c-pretty-print.c (pp_c_direct_abstract_declarator): Print
1882 TYPE_MAX_VALUE (TYPE_DOMAIN (t)) + 1 for ARRAY_TYPE rather
1883 than plain TYPE_MAX_VALUE (TYPE_DOMAIN (t)).
1885 2006-04-20 Alan Modra <amodra@bigpond.net.au>
1887 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Consume all
1888 fp regs if the last fp arg doesn't fit in regs.
1890 2006-04-20 Kaz Kojima <kkojima@gcc.gnu.org>
1893 * config/sh/sh.md (movsicc_true+3): Tweak condition for the case
1894 that the last insn has the REG_INC note.
1896 2006-04-19 Carlos O'Donell <carlos@codesourcery.com>
1897 Nathan Sidwell <nathan@codesourcery.com>
1900 * stor-layout.c (update_alignment_for_field): Do not align
1902 (place_union_field): Place union field at the start of the union.
1903 (place_field): Move ERROR_MARK check later, and use the current
1904 allocation position to maintain monotonicity.
1906 2006-04-19 Zdenek Dvorak <dvorakz@suse.cz>
1908 * dominance.c: Include timevar.h.
1909 (calculate_dominance_info): Use TV_DOMINANCE.
1910 * timevar.def (TV_DOMINANCE): New timevar.
1911 * Makefile.in (dominance.o): Add TIMEVAR_H dependency.
1913 2006-04-19 Andreas Krebbel <krebbel1@de.ibm.com>
1915 PR rtl-optimization/14261
1916 * ifcvt.c (noce_emit_move_insn): Call store_bit_field if the resulting
1917 move would be an INSV insn.
1918 (noce_process_if_block): Don't optimize if the destination is a
1919 ZERO_EXTRACT which can't be handled by noce_emit_move_insn.
1921 2006-04-19 Andreas Krebbel <krebbel1@de.ibm.com>
1923 * config/s390/s390.md: Add comments with the instructions emitted
1924 by an insn pattern if macros are used.
1926 2006-04-19 Alan Modra <amodra@bigpond.net.au>
1928 PR rtl-optimization/26026
1929 * fold-const.c (fold_binary): Optimize div and mod where the divisor
1930 is a known power of two shifted left a variable amount.
1932 2006-04-18 Geoffrey Keating <geoffk@apple.com>
1934 * dwarf2out.c (prune_unused_types_update_strings): Don't add strings
1935 to hash table twice when the debug_str section has SECTION_MERGE.
1937 2006-04-18 Joseph S. Myers <joseph@codesourcery.com>
1939 * config/soft-fp: New directory. From glibc.
1940 * config/soft-fp/t-softfp: New.
1941 * config/soft-fp/README: New.
1942 * mklibgcc.in: Handle LIB2FUNCS_EXCLUDE.
1943 * Makefile.in (LIB2FUNCS_EXCLUDE, SFP_MACHINE): New.
1944 (libgcc.mk): Pass LIB2FUNCS_EXCLUDE.
1945 (LIBGCC_DEPS): Add $(SFP_MACHINE).
1946 * config.gcc: Use rs6000/t-fprules-fpbit or
1947 rs6000/t-fprules-softfp and soft-fp/t-softfp together with
1949 * config/rs6000/sfp-machine.h: New. Based on glibc.
1950 * config/rs6000/t-fprules-fpbit, config/rs6000/t-fprules-softfp:
1952 * config/rs6000/t-fprules: Remove fp-bit rules.
1953 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Use +=.
1954 * config/rs6000/t-linux64: Likewise. Remove duplicates from
1955 LIB2FUNCS_EXTRA. Remove fp-bit rules.
1956 (softfp_wrap_start, softfp_wrap_end): New.
1958 2006-04-18 DJ Delorie <dj@redhat.com>
1960 * config/m32c/m32c.h (PTRDIFF_TYPE): Define.
1962 2006-04-18 Devang Patel <dpatel@apple.com>
1964 * doc/invoke.texi (-Wuninitialized): Clarify -O connection.
1966 2006-04-18 Nick Clifton <nickc@redhat.com>
1968 * config/sh/t-symbian: Add rule to build sh-c.o
1969 * config/sh/symbian.c (sh_symbian_mark_dllexport): Replace use
1970 of DECL_NON_ADDR_CONST_P with DECL_DLLIMPORT_P.
1971 (sh_symbian_encode_section_info): Likewise.
1973 2006-04-18 Andreas Krebbel <krebbel1@de.ibm.com>
1975 * builtins.c (expand_builtin_strcmp): Cover label definition of
1976 do_libcall with HAVE_cmpstrnsi.
1978 2006-04-18 Kazu Hirata <kazu@codesourcery.com>
1980 * function.c (temp_slots_at_level, max_slot_level): Use VEC
1982 * function.h (temp_slot_p): New.
1983 (function): Change the type of x_used_temp_slots to
1984 VEC(temp_slot_p,gc) *.
1986 2006-04-18 Nick Clifton <nickc@redhat.com>
1988 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove reference to
1989 flag_strength_reduce.
1991 * doc/tm.texi (TARGET_SECTION_TYPE_FLAGS): Fix typo.
1993 2006-04-18 Paolo Bonzini <bonzini@gnu.org>
1997 Partial revert of revision 112637
1998 2006-04-03 Paolo Bonzini <bonzini@gnu.org>
1999 Dale Johannesen <dalej@apple.com>
2002 * regclass.c (struct reg_pref): Update documentation.
2003 (regclass): Set prefclass to NO_REGS if memory is the best option.
2004 (record_reg_classes): Cope with a prefclass set to NO_REGS.
2006 2006-04-18 Paolo Bonzini <bonzini@gnu.org>
2008 PR tree-optimization/26821
2009 * tree-ssa-math-opts.c (get_constant_one): New.
2010 (insert_reciprocals): Use it.
2012 2006-04-17 Geoffrey Keating <geoffk@apple.com>
2014 * dwarf2out.c (free_AT): Delete.
2015 (remove_AT): Update string ref counts.
2016 (remove_child_TAG): Don't call free_die.
2018 (break_out_includes): Don't call free_die on DW_TAG_GNU_BINCL
2019 or DW_TAG_GNU_EINCL.
2020 (prune_unused_types_walk_attribs): Reset string refcounts.
2021 (prune_unused_types_update_strings): New.
2022 (prune_unused_types_prune): Don't make unnecessary stores. Don't
2023 call free_die. Do call prune_unused_types_update_strings.
2024 (prune_unused_types): Empty debug_str_hash.
2026 2006-04-17 Roger Sayle <roger@eyesopen.com>
2028 * expr.c (expand_assignment): Optimize away no-op moves where the
2029 source and destination are equal and have no side-effects.
2031 2006-04-17 Richard Guenther <rguenther@suse.de>
2034 * reload.c (push_reload): Guard calls to get_secondary_mem
2037 2006-04-16 Kazu Hirata <kazu@codesourcery.com>
2039 * alias.c (reg_base_value, old_reg_base_value): Change the
2040 type to VEC(rtx,gc) *.
2041 (REG_BASE_VALUE, find_base_value, record_set,
2042 init_alias_analysis): Use VEC instead of VARRAY.
2044 * alias.c (alias_sets): Change the type to
2045 VEC(alias_set_entry,gc) *.
2046 (get_alias_set_entry, new_alias_set, record_alias_subset): Use
2047 VEC instead of VARRAY.
2048 (last_alias_set): Remove.
2050 * cgraph.h (cgraph_edge_p): New.
2051 Update the prototype of cgraph_function_versioning.
2052 * cgraphunit.c (cgraph_copy_node_for_versioning,
2053 cgraph_function_versioning): Use VEC instead of VARRAY.
2054 * ipa-cp.c (ipcp_insert_stage): Likewise.
2056 2006-04-16 Roger Sayle <roger@eyesopen.com>
2059 * fold-const.c (fold_ternary): When converting "A ? B : C" into either
2060 "A op B" or "A op C", we may need to convert A to the type of B and C.
2062 2006-04-16 Adam Nemet <anemet@caviumnetworks.com>
2064 * target.h (struct gcc_target): Add mode_rep_extended.
2065 * rtlanal.c (num_sign_bit_copies_in_rep): New global.
2066 (init_num_sign_bit_copies_in_rep): Initialize it using
2068 (truncate_to_mode): Use it.
2069 (init_rtlanal): Call init_num_sign_bit_copies_in_rep.
2070 * targhooks.h (default_mode_rep_extended): Declare it.
2071 * targhooks.c (default_mode_rep_extended): Define it.
2072 * target-def.h (TARGET_MODE_REP_EXTENDED): New macro. Default to
2073 default_mode_rep_extended.
2074 (TARGET_INITIALIZER): Include it.
2075 * doc/tm.texi (Misc): Document it.
2076 * config/mips/mips.c (TARGET_TRUNCATED_TO_MODE): Override it.
2077 (mips_truncated_to_mode): New function.
2079 2006-04-16 Roger Sayle <roger@eyesopen.com>
2082 * expr.c (compress_float_constant): Copy the narrow constant into
2083 a new pseudo before extending it to its final width.
2085 2006-04-16 Roger Sayle <roger@eyesopen.com>
2086 Andrew Pinski <pinskia@gcc.gnu.org>
2087 Dale Johannesen <dalej@apple.com>
2090 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Add
2091 special case code to implement V8HImode and V16QImode with SSE2.
2093 2006-04-15 Roger Sayle <roger@eyesopen.com>
2095 * config/i386/i386.c (ix86_va_start): Ensure all integer constant
2096 trees are constructed with a suitable tree type.
2098 2006-04-15 Roger Sayle <roger@eyesopen.com>
2100 * tree.c (integer_zerop): Ignore TREE_CONSTANT_OVERFLOW.
2101 (integer_onep): Likewise.
2102 (integer_all_onesp): Likewise.
2103 (integer_pow2p): Likewise.
2104 (integer_nonzerop): Likewise.
2105 (real_zerop): Likewise.
2106 (real_onep): Likewise.
2107 (real_twop): Likewise.
2108 (real_minus_onep): Likewise.
2109 (int_size_in_bytes): Likewise.
2110 (host_integerp): Likewise.
2112 2006-04-15 Kazu Hirata <kazu@codesourcery.com>
2114 * cfgcleanup.c, config/dfp-bit.c, expr.c, fold-const.c,
2115 jump.c, mips-tfile.c, omp-low.c, sched-int.h,
2116 tree-ssa-loop-prefetch.c, tree-vrp.c: Fix comment typos.
2118 * tree-ssa-structalias.h (alias_info): Remove num_references.
2120 2006-04-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2122 * pa.md (output_bb patterns): Shorten long branch alternatives by 4.
2123 (output_bvb patterns): Likewise.
2124 * pa.c (output_bb): Use 'bb' insn for long branch case.
2125 (output_bvb): Likewise use '{bvb|bb}' for long branch case.
2126 (output_dbra): Use '{comb|cmpb}' for long branch case for alternative
2127 1. Correct length operand for alternatives 1 and 2.
2128 (output_movb): Use '{comb|cmpb}' for long branch case for alternatives
2129 1, 2 and 3. Correct length operand for alternatives 1, 2 and 3.
2131 2006-04-14 Roger Sayle <roger@eyesopen.com>
2133 * tree-cfg.c (make_edges, make_omp_sections_edges, move_stmt_r,
2134 is_ctrl_altering_stmt): Reinstate RTH's changes from r112935 that
2135 were accidentally reverted by r112959.
2137 2006-04-15 Jakub Jelinek <jakub@redhat.com>
2140 * except.h (eh_region_outermost): New prototype.
2141 * except.c (eh_region_outermost): New function.
2142 * tree-cfg.c (find_outermost_region_in_block): Use it.
2144 2006-04-14 Kazu Hirata <kazu@codesourcery.com>
2146 * local-alloc.c (rest_of_handle_local_alloc): Use VEC instead
2148 * reload1.c (reg_equiv_memory_loc_varray): Rename to
2149 reg_equiv_memory_loc_vec. Change the type to VEC(rtx,gc) *.
2150 (init_reload, reload): Use VEC instead of VARRAY.
2151 * reload.h: Update the prototype for
2152 reg_equiv_memory_loc_varray.
2154 2006-04-14 Alexey Starovoytov <alexey.starovoytov@sun.com>
2155 Eric Botcazou <ebotcazou@libertysurf.fr>
2157 * config/sparc/sparc.c (emit_and_preserve): Allocate space for the
2160 2005-04-13 Uros Bizjak <uros@kss-loka.si>
2163 * builtins.c (expand_builtin_int_roundingfn): Use expand_normal()
2164 to expand fallback builtin function call.
2166 2006-04-14 Alan Modra <amodra@bigpond.net.au>
2169 * builtins.c: (expand_builtin_memset): Stabilize args before expansion
2170 and emit libcall here in case the builtin fails.
2171 (expand_builtin_strcmp): Always emit the libcall here on failure.
2173 2006-04-14 Kazu Hirata <kazu@codesourcery.com>
2175 * basic-block.h (REG_BASIC_BLOCK): Use VEC instead of VARRAY.
2176 * flow.c (reg_n_info): Change the type to
2177 VEC(reg_info_p,heap) *.
2178 * regclass.c (allocate_reg_info, free_reg_info): Use VEC
2180 * regs.h (reg_info_p): New.
2181 (REG_N_REFS, REG_FREQ, REG_N_SETS, REG_N_DEATHS,
2182 REG_N_CALLS_CROSSED, REG_N_THROWING_CALLS_CROSSED,
2183 REG_LIVE_LENGTH, REGNO_FIRST_UID, REGNO_LAST_UID): Use VEC
2186 2006-04-13 Eric Botcazou <ebotcazou@adacore.com>
2188 * params.def (PARAM_MAX_SCHED_READY_INSNS): New parameter,
2190 * params.h (MAX_SCHED_READY_INSNS): New macro.
2191 * haifa-sched.c: (queue_to_ready): Re-queue insns for the next cycle
2192 past MAX_SCHED_READY_INSNS during the first scheduling pass.
2193 (schedule_block): Delay insns past MAX_SCHED_READY_INSNS in
2194 the ready list for 1 cycle during the first scheduling pass.
2195 * doc/invoke.texi (--param): New parameter max-sched-ready-insns.
2197 2006-04-13 Richard Henderson <rth@redhat.com>
2200 * gimple-low.c (lower_omp_directive): Remove dead code.
2201 (lower_stmt): Do nothing except for openmp, except for OMP_PARALLEL.
2202 * gimplify.c (gimplify_expr): Update for OMP_RETURN, OMP_CONTINUE.
2203 * omp-low.c (struct omp_region): Move to tree-flow.h.
2204 (root_omp_region): Export.
2205 (omp_regions, lookup_omp_region): Remove.
2206 (determine_parallel_type): Update for struct omp_region changes.
2207 (dump_omp_region): Dump regions with block numbers.
2208 (new_omp_region): Take type and block instead of stmt; malloc
2210 (free_omp_region_1, free_omp_regions): New.
2211 (expand_parallel_call): Take entry_stmt as argument; update for
2212 changes to omp_region.
2213 (remove_exit_barrier): Rewrite to update OMP_RETURN_NOWAIT.
2214 (remove_exit_barriers): New.
2215 (expand_omp_parallel): Update for struct omp_region changes.
2216 (expand_omp_synch): Likewise.
2217 (expand_omp): Likewise.
2218 (expand_omp_for_static_nochunk): Likewise; update for OMP_CONTINUE.
2219 (expand_omp_for_static_chunk): Likewise.
2220 (expand_omp_for): Likewise.
2221 (expand_omp_for_generic): Likewise; emit the proper GOMP_loop_end call.
2222 (expand_omp_sections): Similarly, with GOMP_sections_end.
2223 (expand_omp_single): New.
2224 (build_omp_regions_1): Update for OMP_CONTINUE.
2225 (execute_expand_omp): Call remove_exit_barriers, free_omp_regions.
2226 (lower_omp_sections): Expand with OMP_CONTINUE, do not collect
2227 OMP_SECTIONS_SECTIONS.
2228 (lower_omp_single_simple): Don't emit barrier here.
2229 (lower_omp_single_copy): Likewise.
2230 (lower_omp_single): Fix bindings, and lower to straightline now.
2231 (lower_omp_master, lower_omp_ordered): Likewise.
2232 (lower_omp_critical): Likewise.
2233 (lower_omp_for): Likewise. Emit OMP_CONTINUE.
2234 * tree-cfg.c (make_edges): Collect an omp_region tree, use it for
2235 omp edges, free it afterward.
2236 (make_omp_sections_edges): Remove.
2237 (is_ctrl_altering_stmt): Don't bother checking flag_openmp.
2238 (move_stmt_r): Handle OMP_CONTINUE.
2239 * tree-flow.h (struct omp_region): Move from omp-low.c. Switch
2240 statement pointers to basic blocks. Add type member.
2241 (root_omp_region, new_omp_region, free_omp_regions): Declare.
2242 * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN, OMP_CONTINUE.
2243 * tree-inline.c (estimate_num_insns_1): Likewise.
2244 * tree-pretty-print.c (dump_generic_node): Likewise.
2245 * tree-ssa-operands.c (get_expr_operands): Likewise.
2246 * tree.def (OMP_SECTIONS): Remove OMP_SECTIONS_SECTIONS operand.
2247 (OMP_RETURN): Rename from OMP_RETURN_EXPR.
2248 (OMP_CONTINUE): New.
2249 * tree.h (OMP_DIRECTIVE_P): Add OMP_CONTINUE.
2250 (OMP_SECTIONS_SECTIONS): Remove.
2251 (OMP_SECTION_LAST): New.
2252 (OMP_RETURN_NOWAIT): New.
2254 2006-04-13 Roger Sayle <roger@eyesopen.com>
2256 * fold-const.c (native_encode_vector, native_interpret_real):
2257 Correct obvious mistakes in the previous check-in.
2259 2006-04-13 Roger Sayle <roger@eyesopen.com>
2261 * fold-const.c (native_encode_expr): New function to encode
2262 the target representation of an INTEGER_CST, REAL_CST, COMPLEX_CST
2263 or VECTOR_CST into a specified buffer.
2264 (native_encode_int): New function.
2265 (native_encode_real): New function.
2266 (native_encode_complex): New function.
2267 (native_encode_vector): New function.
2268 (native_interpret_expr): Inverse of native_encode_expr to convert
2269 a target representation into an INTEGER_CST, REAL_CST etc...
2270 (native_interpret_int): New function.
2271 (native_interpret_real): New function.
2272 (native_interpret_complex): New function.
2273 (native_interpret_vector): New function.
2274 (fold_view_convert_expr): New function to constant fold/evaluate
2275 a VIEW_CONVERT_EXPR of a suitable constant expression.
2276 (fold_unary) <VIEW_CONVERT_EXPR>: Call fold_view_convert_expr.
2277 Change call of build1 to fold_build1 when constructing a
2280 2006-04-13 Paolo Bonzini <bonzini@gnu.org>
2281 Ulrich Weigand <uweigand@de.ibm.com>
2284 * config/rs6000/rs6000.h (EASY_VECTOR_15_ADD_SELF): Require n
2287 2006-04-13 Alan Modra <amodra@bigpond.net.au>
2290 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
2291 optimize to lo_sum for DFmode if !TARGET_FPRS.
2293 2006-04-12 Kazu Hirata <kazu@codesourcery.com>
2295 * tree-ssa-alias.c (set_initial_properties, init_alias_info,
2296 delete_alias_info, compute_flow_sensitive_aliasing,
2297 group_aliases): Use VEC instead of VARRAY.
2298 * tree-ssa-structalias.c (update_alias_info): Likewise.
2299 * tree-ssa-structalias.h (alias_info): Change the type of
2300 processed_ptrs to VEC(tree,heap) *.
2302 2006-04-12 J"orn Rennecke <joern.rennecke@st.com>
2305 * config/sh/lib1funcs.h: New file, broken out of:
2306 * config/sh/lib1funcs.asm.
2307 * config/sh/lib1funcs.h (DR00, DR01, DR20, DR21, DR40, DR41):
2309 * config/sh/lib1funcs.asm (udivsi3_i4): Use them.
2310 * config/sh/lib1funcs-Os-4-200.asm: New file.
2311 * config/sh/embed-elf.h (LIBGCC_SPEC): Use -lgcc-Os-4-200.
2312 * config/sh/t-sh (OPT_EXTRA_PARTS): New variable.
2313 (EXTRA_MULTILIB_PARTS): Include it.
2314 ($(T)sdivsi3_i4i-Os-4-200.o): New rule.
2315 ($(T)udivsi3_i4i-Os-4-200.o, $(T)libgcc-Os-4-200.a): Likewise.
2316 * config/sh/t-superh (EXTRA_MULTILIB_PARTS): Include OPT_EXTRA_PARTS.
2317 * config/sh/sh.h (OVERRIDE_OPTIONS): Recognize -mdiv=call-table for
2320 2006-04-12 Kazu Hirata <kazu@codesourcery.com>
2322 * Makefile.in (TREE_SSA_LIVE_H): Add vecprim.h.
2323 * tree-ssa-live.c (tpa_init, tpa_remove_partition, tpa_delete,
2324 tpa_compact, root_var_init, type_var_init): Use VEC instead of
2326 * tree-ssa-live.h: Include vecprim.h.
2327 (tree_partition_associator_d): Change the type of
2328 first_partition to VEC(int,heap) *.
2329 (tpa_first_partition): Use VEC instead of VARRAY.
2331 * Makefile.in (GTFILES): Move functions.h after tree.h.
2332 * function.c (reset_block_changes, record_block_change,
2333 check_block_change, free_block_changes): Use VEC instead of
2335 * function.h (function): Change the type of
2336 ib_boundaries_block to VEC(tree,gc) *.
2337 * tree-inline.c (copy_cfg_body): Initialize
2338 ib_boundaries_block to NULL instead of (varray_type) 0.
2340 2006-04-12 Roger Sayle <roger@eyesopen.com>
2342 * expr.c (emit_group_store): Correct operand order in call to
2343 subreg_lowpart_offset. Always create paradoxical SUBREGs with
2344 a SUBREG_BYTE of zero.
2346 2006-04-12 Richard Guenther <rguenther@suse.de>
2348 * profile.c (compute_branch_probabilities): Remove code
2349 encapsulated in !ir_type (), which are remanents of the
2350 removed RTL profiling code.
2351 * rtl-profile.c: Remove.
2353 2006-04-12 Alan Modra <amodra@bigpond.net.au>
2355 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Update
2356 magic NULL_RTX comment.
2357 (function_arg): Store entire fp arg to mem if any part should go
2359 (rs6000_arg_partial_bytes): Adjust for above change.
2361 2006-04-11 Roger Sayle <roger@eyesopen.com>
2363 * dwarf2out.c (output_call_frame_info): Create debug_frame_section
2364 if it hasn't been initialized by dwarf2out_init.
2366 2006-04-11 John David Anglin <dava.anglin@nrc-cnrc.gc.ca>
2368 * pa.md (MAX_12BIT_OFFSET, MAX_17BIT_OFFSET): Define and use new
2369 symbolic constants in branch patterns.
2371 2006-04-11 Roger Sayle <roger@eyesopen.com>
2373 * caller-save.c: #include "addresses.h" after #include "tm_p.h".
2375 2006-04-11 Richard Sandiford <richard@codesourcery.com>
2377 PR rtl-optimization/27073
2378 * gcse.c (try_replace_reg): Revert last change. Continue to search
2379 for both REG_EQUAL and REG_EQUIV notes, but only perform replacements
2382 2006-04-11 Eric Botcazou <ebotcazou@libertysurf.fr>
2384 * config/sparc/sparc.c (function_arg_slotno) <BLKmode>: Handle
2385 aggregate types other than record and union types.
2386 (function_arg): Likewise.
2387 (function_arg_pass_by_reference): In 64-bit mode, return 0 for
2389 (function_value): In 64-bit mode, return objects that require it
2392 2006-04-11 Roger Sayle <roger@eyesopen.com>
2394 * dwarf2out.c (premark_used_types): Remove problematic prototype.
2396 2006-04-11 Jakub Jelinek <jakub@redhat.com>
2398 * gcc.c (LINK_COMMAND_SPEC): Move link_gomp after %o.
2400 2006-04-03 Jeff Law <law@redhat.com>
2403 * tree-ssa-copy.c (may_propagate_copy): Test flow sensitive
2404 alias information too.
2406 2006-04-10 Mike Frysinger <vapier@gentoo.org>
2408 * Makefile.in (gcc-cross): Add $(exeext) to target name.
2410 2006-04-10 Aldy Hernandez <aldyh@redhat.com>
2413 * dwarf2out.c (struct die_struct): Add die_perennial_p field.
2414 (premark_used_types_helper): New.
2415 (premark_used_types): New.
2416 (gen_subprogram_die): Call premark_used_types.
2417 (prune_unused_types_walk): Do not prune perennial dies.
2418 * function.c (used_types_insert): New.
2419 * function.h (struct function): Add used_types_hash field.
2420 (used_types_insert): Add prototype.
2421 * Makefile.in (FUNCTION_H): Depend on HASHTAB_H.
2422 * c-parser.c (c_parser_cast_expression): Save casted types in used
2425 2006-04-11 Mark Mitchell <mark@codesourcery.com>
2428 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Test
2429 rs6000_explicit_options.float_gprs.
2431 2006-04-10 Roger Sayle <roger@eyesopen.com>
2433 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Renamed
2434 from ix86_expand_vector_init_low_nonzero. Take an additional
2435 one_var argument indicating which element is non-zero. Support
2436 one_var != 0 for V4SFmode and V4SImode by permuting the result.
2437 (ix86_expand_vector_init): Call ix86_expand_vector_init_one_nonzero
2438 with one_var instead of ix86_expand_vector_init_low_nonzero.
2440 2006-04-10 Kazu Hirata <kazu@codesourcery.com>
2442 * Makefile.in (tree-into-ssa.o, tree-outof-ssa.o,
2443 tree-ssa-live.o, tree-ssa-alias.o, function.o, df-problems.o,
2444 global.o, cfglayout.o, lambda-code.o, reg-stack.o,
2445 build/genextract.o): Depend on vecprim.h.
2446 * cfglayout.c, df-problems.c, function.c, genextract.c,
2447 global.c, lambda-code.c, reg-stack.c, tree-into-ssa.c,
2448 tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Include
2452 2006-04-10 Geoffrey Keating <geoffk@apple.com>
2454 * dwarf2out.c (struct dw_attr_struct): Remove dw_attr_next.
2455 Declare VECs of this type.
2456 (struct die_struct): Make field die_attr a VEC of dw_attr_struct.
2457 (remove_children): Delete.
2458 (add_dwarf_attr): Use VEC routines.
2459 (add_AT_flag): Update for changes to add_dwarf_attr.
2460 (add_AT_int): Likewise.
2461 (add_AT_unsigned): Likewise.
2462 (add_AT_long_long): Likewise.
2463 (add_AT_vec): Likewise.
2464 (add_AT_string): Likewise.
2465 (add_AT_die_ref): Likewise.
2466 (add_AT_fde_ref): Likewise.
2467 (add_AT_loc): Likewise.
2468 (add_AT_loc_list): Likewise.
2469 (add_AT_addr): Likewise.
2470 (add_AT_lbl_id): Likewise.
2471 (add_AT_lineptr): Likewise.
2472 (add_AT_macptr): Likewise.
2473 (add_AT_offset): Likewise.
2474 (add_AT_range_list): Likewise.
2475 (get_AT): Use VEC_iterate.
2476 (remove_AT): Use VEC_ordered_remove.
2477 (free_die): Fold remove_children into here; have it use VEC_iterate.
2478 (print_die): Use VEC_iterate on attrs.
2479 (reverse_die_lists): Don't reverse attr lists.
2480 (die_checksum): Use VEC_iterate on attrs.
2481 (same_die_p): Likewise.
2482 (output_location_lists): Likewise.
2483 (build_abbrev_table): Likewise.
2484 (size_of_die): Likewise.
2485 (unmark_all_dies): Likewise.
2486 (output_abbrev_section): Likewise.
2487 (output_die): Likewise.
2488 (prune_unused_types_walk_attribs): Likewise.
2490 2006-04-10 Eric Botcazou <ebotcazou@libertysurf.fr>
2492 * doc/install.texi (*-*-solaris2*): Point to the configure page.
2494 2006-04-10 Jakub Jelinek <jakub@redhat.com>
2497 * dwarf2out.c (is_symbol_die): Return true also for namespaces.
2499 2006-04-09 Roger Sayle <roger@eyesopen.com>
2501 * expr.c (store_constructor): Don't bother clearing target if
2502 we're about to assign a vector to it using vec_init_optab.
2504 2006-04-10 Daniel Berlin <dberlin@dberlin.org>
2506 * tree-ssa-alias.c (lhs_may_store_to): New function.
2507 (recalculate_used_alone): Handle LHS of calls.
2509 2006-04-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2513 * config.gcc (hppa*64*-*-hpux11*): Add 'libgcc_stub.a' to extra_parts.
2514 * pa64-hpux.h (LIB_SPEC): Correct typo. Don't append milli.a.
2515 (LINK_GCC_C_SEQUENCE_SPEC): Define. Append milli.a here.
2516 (PA_CXA_FINALIZE_STUB, PA_JV_REGISTERCLASSES_STUB): Delete defines.
2517 (PA_INIT_FINI_HACK): Rename to PA_CRTBEGIN_HACK.
2518 (PA_CRTBEGIN_HACK): Ensure __do_global_ctors_aux is placed in text
2519 section. Delete PA_CXA_FINALIZE_STUB and PA_JV_REGISTERCLASSES_STUB
2520 stubs. Add ".align 8" directives before all ".dword" directives.
2521 (GTHREAD_USE_WEAK): Revise comment.
2522 (TARGET_ATTRIBUTE_WEAK): Define.
2523 * pa/t-pa64 (LIBGCCSTUB_OBJS): Add new rules for stublib.c, rfi-stub.o,
2524 dfi-stub.o, cxaf-stub.o and jvrc-stub.o.
2525 * stublib.c: New file.
2530 * pa.md (cbranch patterns): Revise arguments used in calls to
2531 output_cbranch, output_bb and output_bvd. Add long branch length
2533 (fbranch patterns): Handle long branches.
2534 (jump): Revise length check. Revise arguments for output_lbranch call.
2535 Add long branch length attributes.
2536 (decrement_and_branch_until_zero): Add long branch length attributes.
2537 (output_movb, output_parallel_addb and output_parallel_movb patterns):
2538 Likewise. Revise arguments for output_parallel_addb and
2539 output_parallel_movb calls.
2540 * pa-protos.h (output_cbranch, output_lbranch, output_bb, output_bvb,
2541 output_parallel_movb and output_parallel_addb): Update prototypes.
2542 * pa.c (output_cbranch): Revise arguments. Correct handling of
2543 nullification in long branches.
2544 (output_lbranch): Add new argument to control extraction of delay
2546 (output_bb): Handle long branches.
2547 (output_bvb, output_dbra, output_movb, output_parallel_movb,
2548 output_parallel_addb): Likewise.
2550 2006-04-09 Richard Sandiford <richard@codesourcery.com>
2552 PR rtl-optimization/27073
2553 * gcse.c (try_replace_reg): Just propagate into REG_EQUAL notes,
2556 2006-04-08 Daniel Berlin <dberlin@dberlin.org>
2558 * tree.h (tree_memory_tag): Add old_used_alone.
2559 (SMT_OLD_USED_ALONE): New macro.
2560 * tree-ssa-alias.c (recalculate_used_alone): Stop
2561 marking things for renaming unnecessarily.
2563 2006-04-08 Kazu Hirata <kazu@codesourcery.com>
2565 * builtins.c, config/arm/arm.c, config/i386/cygwin.h,
2566 config/i386/i386.c, config/ia64/ia64.c, config/s390/fixdfdi.h,
2567 config/sh/sh.c, config/sh/sh.h, df-scan.c, except.c,
2568 haifa-sched.c, optabs.c, rtl.h, sched-deps.c, sched-int.h,
2569 sched-rgn.c, tree-inline.h, tree-ssa-dom.c,
2570 tree-ssa-loop-prefetch.c, tree-ssa-operands.c,
2571 tree-vect-patterns.c, tree-vrp.c: Fix comment typos. Follow
2572 spelling convensions.
2573 * config/ia64/ia64.opt, doc/contrib.texi, doc/invoke.texi,
2574 doc/passes.texi, doc/tm.texi, doc/tree-ssa.texi: Fix comment
2575 typos. Follow spelling conventions.
2577 2006-04-07 DJ Delorie <dj@redhat.com>
2579 * config/m32c/m32c.c (m32c_function_arg): Structures are always
2580 passed on the stack.
2581 (m32c_init_cumulative_args): When a function returns a structure,
2582 always pass the pointer to that return area on the stack.
2583 (m32c_function_arg_advance): Don't increment the parameter number
2584 if we're processing the returned structure pointer.
2585 (pushm_info): Reverse order of registers.
2587 2006-04-07 Sebastian Pop <pop@cri.ensmp.fr>
2589 * tree-ssa-loop-niter.c (inverse, number_of_iterations_ne,
2590 assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
2591 number_of_iterations_le, number_of_iterations_cond, find_loop_niter,
2592 estimate_numbers_of_iterations_loop): Use build_int_cst instead of
2594 * tree-chrec.c (chrec_fold_multiply_poly_poly,
2595 chrec_fold_multiply): Same.
2596 * tree-ssa-loop-ivopts.c (strip_offset_1, force_expr_to_var_cost,
2597 force_expr_to_var_cost): Same.
2598 * tree-mudflap.c (mf_xform_derefs_1): Same.
2599 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Same.
2601 2006-04-07 David Edelsohn <edelsohn@gnu.org>
2603 * config/rs6000/rs6000.c (rs6000_rtx_costs) <CONST_DOUBLE>: Do not
2604 treat CONST_DOUBLE as INTVAL. and64_2_operands require an extra
2607 2006-04-07 Jan Hubicka <jh@suse.cz>
2609 * ipa-inline.c (cgraph_early_inlining): Collect garbage.
2611 2006-04-07 Richard Guenther <rguenther@suse.de>
2613 PR tree-optimization/26135
2614 * tree-ssa-copy.c (stmt_may_generate_copy): Handle memory
2615 loads for store copy-prop.
2616 (copy_prop_visit_stmt): Likewise.
2618 2006-04-05 Robert Millan <robertmh@gnu.org>
2620 * config/i386/linux.h: Add a comment to mark macros that are
2621 being overriden in config/k*bsd-gnu.h.
2622 * config/kfreebsd-gnu.h: Redefine GLIBC_DYNAMIC_LINKER instead of
2624 * config/knetbsd-gnu.h: Ditto.
2626 2006-04-06 Jan Hubicka <jh@suse.cz>
2630 * coverage.c (coverage_checksum_string): Reorganize loop to not read
2633 2006-04-06 Mike Stump <mrs@apple.com>
2635 * builtins.c (expand_builtin_longjmp):Use #ifdef instead of #if
2636 for HAVE_nonlocal_goto to be consistent.
2637 (expand_builtin_nonlocal_goto): Likewise.
2638 (expand_builtin_strcmp): Use #ifdef instead of #if
2639 for HAVE_cmpstrnsi to be consistent.
2641 2006-04-05 DJ Delorie <dj@redhat.com>
2643 * config/m32c/m32c.h (INCOMING_FRAME_SP_OFFSET): Adjust for m16c
2646 2006-04-05 Bernd Schmidt <bernd.schmidt@analog.com>
2648 * config/bfin/bfin.c (bfin_legitimate_address_p): Disallow
2649 got-relative addressing for anything but SImode.
2651 * config/bfin/lib1funcs.asm (modsi): P1/P2 can be call-clobbered
2652 even if the calling function doesn't modify them.
2654 2006-04-05 Richard Guenther <rguenther@suse.de>
2656 PR tree-optimization/26919
2657 * ipa-inline.c (cgraph_decide_inlining_incrementally): Fix argument
2658 to cgraph_estimate_size_after_inlining.
2660 2006-04-05 Alan Modra <amodra@bigpond.net.au>
2662 * reload.c (find_dummy_reload): Fix typo in 2006-04-03 change.
2664 2006-04-05 Sebastian Pop <pop@cri.ensmp.fr>
2666 PR tree-optimization/26996
2667 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Don't analyze
2668 VECTOR_TYPE variables.
2670 2006-04-05 Richard Guenther <rguenther@suse.de>
2672 PR tree-optimization/26763
2673 * fold-const.c (fold_comparison): Move folding of
2674 PTR + CST CMP PTR + CST ...
2675 (fold_binary): ... here. Fold only for EQ_EXPR and NE_EXPR.
2677 2006-04-05 Gerald Pfeifer <gerald@pfeifer.com>
2679 * doc/install.texi (Prerequisites): Refine some wording on
2680 bootstrapping and ksh.
2681 Move the version numbers of DejaGnu here from the testing section
2682 and fix casing of names.
2683 Fix markup and clarify wording for autogen requirements.
2684 Refer to GCJ instead of just java.
2685 Refer to SVN instead of CVS.
2686 Describe diffutils as useful instead of necessary.
2687 (Downloading the source): Refer to SVN instead of CVS.
2688 Adjust a link to our web site accordingly.
2689 (Configuration): Fix casing of Bison.
2690 (Building): Refer to SVN instead of CVS.
2691 Fix a sentence on the use of Bison and remove duplicate (and
2692 incorrect) version number of Bison requirement.
2693 Remove one redundant list of packages needed for building.
2694 (Specific): Avoid reference to CVS.
2696 2006-04-04 Eric Christopher <echristo@apple.com>
2698 * config/rs6000/rs6000.c (TARGET_MS_BITFIELD_LAYOUT_P): Define.
2699 (TARGET_USE_MS_BITFIELD_LAYOUT): Ditto.
2700 (rs6000_handle_struct_attribute): New.
2701 (rs6000_ms_bitfield_layout_p): Ditto.
2703 2006-04-04 Geoffrey Keating <geoffk@apple.com>
2705 * config/darwin-crt3.c (atexit): Pass &__dso_handle rather than
2706 NULL for dso parameter to atexit_common.
2708 2006-04-04 Eric Christopher <echristo@apple.com>
2710 * config/i386/i386.c (machopic_output_stub): Output \t
2711 between instructions and operands.
2713 2006-04-04 David Edelsohn <edelsohn@gnu.org>
2715 * config/rs6000/rs6000.c (num_insns_constant_wide): Change
2716 satisfies_constraint_[IL] to explicit tests on value.
2718 2006-04-04 Sebastian Pop <pop@cri.ensmp.fr>
2720 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
2721 set_nb_iterations_in_loop): Use build_int_cst instead of
2723 * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Use
2724 build_int_cst instead of convert.
2726 2006-04-04 Carlos O'Donell <carlos@codesourcery.com>
2728 * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document
2729 new value 2 for incoming.
2730 * function.c (expand_function_start): Call struct_value_rtx
2732 * config/sparc/sparc.md: Comment updated_return.
2733 * config/sparc/sparc.opt: Add -mstd-struct-return option.
2734 * config/sparc/sparc.c (sparc_struct_value_rtx): Use standard
2735 struct return if sparc_std_struct_return and incoming is 2.
2736 (print_operand): Do not adjust return if
2737 sparc_std_struct_return.
2739 2006-04-04 Roger Sayle <roger@eyesopen.com>
2741 * builtins.c (fold_builtin_sprintf): Use fold_convert instead of
2742 convert in the middle-end.
2743 * expr.c (store_expr, store_constructor, get_inner_reference,
2744 expand_expr_real_1, string_constant, try_casesi, try_tablejump):
2746 * tree.c (build_range_type): Likewise.
2748 2006-04-04 Tom Tromey <tromey@redhat.com>
2750 * doc/install.texi (Prerequisites): Mention jar.
2752 2006-04-04 Daniel Berlin <dberlin@dberlin.org>
2754 * doc/tree-ssa.texi (Preserving the virtual ssa form): New
2757 2006-04-04 Matthias Klose <doko@debian.org>
2759 * Makefile.in (unprotoize.o): Same dependencies as for protoize.o.
2760 * Makefile.in (s-macro_list): Conform to POSIX rules in single quoted
2763 2006-04-03 Geoffrey Keating <geoffk@apple.com>
2765 * doc/extend.texi (Function Attributes): Rewrite visibility
2766 attribute documentation.
2767 * doc/invoke.texi (C++ Dialect Options): Rewrite
2768 -fvisibility-inlines-hidden documentation to describe something
2769 entirely different, although in practise compatible.
2770 (Code Gen Options): Warn about system headers in -fvisibility=
2773 * doc/extend.texi (Other Builtins): Document that
2774 __builtin_nan is a compile-time constant only when its argument
2777 2006-04-03 Adam Nemet <anemet@caviumnetworks.com>
2779 * simplify-rtx.c (simplify_unary_operation_1) <TRUNCATE>: When
2780 trying to remove TRUNCATE check if all bits outside the new mode
2781 are identical to the sign bit.
2783 2006-04-03 Jeff Law <law@redhat.com>
2785 * tree-ssa-dom.c (propagate_rhs_into_lhs): Avoid useless folding
2786 and operand scanning in some common cases.
2788 2006-04-03 Paolo Bonzini <bonzini@gnu.org>
2789 Dale Johannesen <dalej@apple.com>
2792 * regclass.c (struct reg_pref): Update documentation.
2793 (regclass): Set prefclass to NO_REGS if memory is the best option.
2794 (record_reg_classes): Cope with a prefclass set to NO_REGS.
2795 * reload.c (find_reloads): Take PREFERRED_OUTPUT_RELOAD_CLASS
2796 into account. For non-registers, equate an empty preferred
2797 reload class to a `!' in the constraint; move the if clause to
2798 do so after those that reject the insn.
2799 (push_reload): Allow PREFERRED_*_RELOAD_CLASS to liberally
2801 (find_dummy_reload): Likewise.
2802 * doc/tm.texi (Register Classes): Document what it means
2803 if PREFERRED_*_RELOAD_CLASS return NO_REGS.
2804 * config/i386/i386.c (ix86_preferred_reload_class): Force
2805 using SSE registers (and return NO_REGS for floating-point
2806 constants) if math is done with SSE.
2807 (ix86_preferred_output_reload_class): New.
2808 * config/i386/i386-protos.h (ix86_preferred_output_reload_class): New.
2809 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): New.
2810 * config/i386/i386.md: Remove # register preferences.
2812 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
2815 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
2816 chrec_is_positive, set_nb_iterations_in_loop): Use a variable for
2817 the type of nb_iter.
2818 (instantiate_parameters_1): Convert the operands before calling
2819 chrec_fold_minus, chrec_fold_plus, or chrec_fold_multiply.
2820 * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Same.
2822 2006-04-02 Roger Sayle <roger@eyesopen.com>
2824 * builtins.c (dummy_object): Use build_int_cst instead of convert.
2825 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use fold_convert
2827 * dojump.c (do_jump): Likewise.
2828 * expr.h (ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE): Likewise.
2829 * gimplify.c (gimple_boolify, gimplify_init_constructor,
2830 gimplify_boolean_expr): Likewise.
2831 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
2832 * varasm.c (array_size_for_constructor): Likewise.
2833 * tree-object-size.c (compute_object_offset): Likewise.
2835 2006-04-02 Roger Sayle <roger@eyesopen.com>
2838 * expr.c (emit_group_store): Check whether simplify_gen_subreg returns
2839 NULL_RTX, indicating it couldn't create a valid paradoxical subreg.
2841 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
2843 PR tree-optimization/26939
2844 * tree-chrec.c (chrec_merge): Use eq_evolutions_p.
2846 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
2848 * tree-scalar-evolution.c (add_to_evolution_1): Pass an extra argument
2849 at_stmt. Convert the type of operands before calling
2850 build_polynomial_chrec.
2851 (add_to_evolution): Pass an extra argument at_stmt. Adjust the call to
2853 (follow_ssa_edge_in_rhs): Adjust call to add_to_evolution.
2854 (instantiate_parameters_1): Convert the type of operands before calling
2855 build_polynomial_chrec.
2856 * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
2857 chrec_fold_multiply_poly_poly, chrec_replace_initial_condition,
2858 reset_evolution_in_loop): Insert asserts to check the types of the
2860 (chrec_type): Moved...
2861 (eq_evolutions_p): Use operand_equal_p.
2862 * tree-chrec.h (build_polynomial_chrec): Insert an assert to check
2863 the types of the operands.
2864 (chrec_type): ...here.
2865 * tree-data-ref.c (create_data_ref): Convert the operands before
2866 calling chrec_replace_initial_condition.
2867 (same_access_functions, analyze_subscript_affine_affine,
2868 analyze_miv_subscript, all_chrecs_equal_p): Use eq_evolutions_p.
2869 (compute_subscript_distance, analyze_ziv_subscript,
2870 analyze_siv_subscript_cst_affine, compute_overlap_steps_for_affine_1_2,
2871 analyze_miv_subscript): Convert the operands before calling
2872 chrec_fold_minus or chrec_fold_plus.
2874 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
2876 * tree-data-ref.c (compute_all_dependences): Use a pointer to
2877 the dependence_relations vector.
2878 (compute_data_dependences_for_loop): Adjust call to
2879 compute_all_dependences.
2881 2006-04-01 Roger Sayle <roger@eyesopen.com>
2882 Richard Henderson <rth@redhat.com>
2884 * gimplify.c (gimplify_scan_omp_clauses) <OMP_CLAUSE_IF>: Call
2885 gimple_boolify on the condition before calling gimplify_expr.
2887 2006-03-31 Bob Wilson <bob.wilson@acm.org>
2889 * config/xtensa/lib1funcs.asm: Rename abi_entry/abi_return macros
2890 to leaf_entry/leaf_return. Change leaf_entry to add 16 bytes to
2891 the frame size. Update to use the new macros.
2892 * config/xtensa/ieee754-sf.S: Use new leaf_entry/leaf_return macros.
2893 * config/xtensa/ieee754-df.S: Likewise.
2895 2006-03-31 Richard Henderson <rth@redhat.com>
2897 * tree-cfg.c (make_ctrl_stmt_edges, make_exit_edges): Merge into...
2898 (make_edges): ... here. Control fallthru creation with a local
2899 variable. Do not play with fake edges.
2900 (make_omp_sections_edges): Don't set EDGE_ABNORMAL.
2901 (make_goto_expr_edges): Don't play with fake edges. Make for_call
2904 2006-04-01 Joseph S. Myers <joseph@codesourcery.com>
2906 * dwarf2.h (DW64_CIE_ID): Define.
2907 * dwarf2out.c (DWARF_CIE_ID): Define.
2908 (output_call_frame_info): Output 0xffffffff before standard 8-byte
2909 length header. Use DWARF_CIE_ID.
2910 (value_format): Use DW_FORM_data4 or DW_FORM_data8 for
2911 dw_val_class_loc_list depending on DWARF_OFFSET_SIZE.
2913 2006-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
2915 * config/sh/linux-atomic.asm: New file.
2916 * config/sh/t-linux (LIB2FUNCS_EXTRA): Add linux-atomic.asm.
2918 2006-03-31 DJ Delorie <dj@redhat.com>
2920 * config/m32c/cond.md: Set condition flags properly throughout.
2921 * config/m32c/minmax.md: Likewise.
2922 * config/m32c/prologue.md: Likewise.
2923 * config/m32c/bitops.md: Likewise.
2924 * config/m32c/muldiv.md: Likewise.
2925 * config/m32c/mov.md: Likewise.
2926 * config/m32c/addsub.md: Likewise.
2927 * config/m32c/m32c.md: Likewise.
2928 * config/m32c/jump.md: Likewise.
2929 * config/m32c/shift.md: Likewise.
2931 * config/m32c/cond.md (cmp<mode>): Call m32c_output_compare to
2932 conditionally output the pattern for this.
2933 * config/m32c/m32c.c (flags_needed_for_conditional): New.
2934 (m32c_compare_redundant): New.
2935 (m32c_output_compare): New.
2936 * config/m32c/m32c-protos.h (m32c_output_compare): New.
2938 * config/m32c/m32c.c (m32c_prepare_shift): Fix logic to clobber
2939 dest, not src. Allow other 4-byte modes.
2941 2006-03-30 Denis Chertykov <denisc@overta.ru>
2943 * doc/md.texi: Refer to avr/constraints.md instead of
2946 2006-03-30 Roger Sayle <roger@eyesopen.com>
2948 * expr.c (emit_group_store): Make BYTEPOS a HOST_WIDE_INT to
2949 signed vs. unsigned comparison failures on some hosts.
2951 2006-03-31 Alan Modra <amodra@bigpond.net.au>
2954 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Limit 2003-12-08
2955 change to FLOAT_REGS.
2957 * config/rs6000/rs6000.c (rs6000_explicit_options): Add ieee.
2958 (rs6000_override_options): Use it.
2959 (rs6000_handle_option): Set it. Set rs6000_explicit_options.abi
2960 only for -mabi=spe/no-spe and -mabi=altivec.
2962 2006-03-30 Geoffrey Keating <geoffk@apple.com>
2964 * config/darwin.h (LINK_COMMAND_SPEC): Don't try to protect %S with
2967 2006-03-30 Carlos O'Donell <carlos@codesourcery.com>
2969 * Makefile.in: Rename docdir to gcc_docdir.
2971 2006-03-30 Roger Sayle <roger@eyesopen.com>
2974 * expr.c (emit_group_store): Optimize group stores into a pseudo
2975 register by using a paradoxical subreg to initialize the destination
2976 if the first or last member of the group specifies a "low part".
2978 2006-03-30 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2981 * rtl.def (DEPS_LIST): Change type of the second operand to 'int'.
2982 * target.h (struct gcc_target.speculate_insn): Change type of the
2983 second parameter to 'int'.
2984 * lists.c (alloc_DEPS_LIST): Change signature. Update reference to
2985 the second operand of the DEPS_LIST.
2986 (copy_DEPS_LIST_list): Update reference to the second operand of the
2988 * rtl.h (alloc_DEPS_LIST): Update signature.
2989 * sched-int.h (ds_t): Change typedef to 'int'.
2990 (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
2992 2006-03-30 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2994 * haifa-sched.c (try_ready): Change condition to restore
2995 non-speculative pattern of the instruction.
2996 (process_insn_depend_be_in_spec): Code to keep probability of the
2997 speculative dependence non-decreasing.
2999 2006-03-30 Jie Zhang <jie.zhang@analog.com>
3001 * config/bfin/bfin.c (single_move_for_strmov): Renamed to...
3002 (single_move_for_movmem): ... this. Also change all uses.
3003 (bfin_expand_strmov): Renamed to...
3004 (bfin_expand_movmem): ... this. Also change all uses.
3005 * config/bfin/bfin.md (movstrsi): Renamed to...
3006 (movstrsi): ...this.
3008 2006-03-30 Paolo Bonzini <bonzini@gnu.org>
3010 PR tree-optimization/26830
3012 * tree-ssa-copy.c (copy_prop_visit_assignment): Do not check loop depth.
3013 (copy_prop_visit_stmt): Remove write-only variable ann.
3014 (init_copy_prop): Check variable loop depth here. Do not simulate
3015 memory-tag and virtual operand PHIs except for store copy prop.
3017 2006-03-30 Richard Guenther <rguenther@suse.de>
3019 * config/i386/i386.c: Remove builtins for SSE2 ABI intrinsic
3020 variants with double arguments.
3022 2006-03-29 David Edelsohn <edelsohn@gnu.org>
3024 * genpreds.c (write_tm_constrs_h): Delete variable p.
3025 * genconditions.c (write_header): Add tm-constrs.h to included
3027 * genpeep.c (main): Add toplev.h to included headers.
3028 * Makefile.in (build/gencondmd.o): Add tm-constrs.h dependency.
3029 (build/genpeep.o): Add toplev.h dependency.
3030 * config/rs6000/constraints.md: Add "W" constraint.
3032 2006-03-29 Roger Sayle <roger@eyesopen.com>
3034 * stor-layout.c (mode_for_size_tree): Remove restiction on type
3035 sizes by correctly testing whether the size fits a host integer.
3036 (initialize_sizetypes): Use set_min_and_max_values_for_integral_type
3037 to correctly set TYPE_MIN_VALUE and TYPE_MAX_VALUE to the full
3038 SImode range for the default sizetype and bitsizetype.
3040 2006-03-29 Roger Sayle <roger@eyesopen.com>
3042 * convert.c (convert_to_pointer): Preserve the TREE_OVERFLOW
3043 and TREE_CONSTANT_OVERFLOW bits of the argument. Return
3044 quickly if the argument is already of the correct type.
3045 Call fold_build1 instead of build1. Tidy up blank lines.
3047 2006-03-29 David Edelsohn <edelsohn@gnu.org>
3049 * genemit.c (main): Add tm-constrs.h to included headers.
3050 * genoutput.c (output_prologue): Add tm-constrs.h to included headers.
3051 * genpeep.c (main): Add tm-constrs.h to included headers.
3052 * genpreds.c (write_satisfies_constraint_fns): Rename to ...
3053 (write_tm_constrs_h): this and write complete file.
3054 (write_tm_preds_h): Do not emit satisfies_constraint fns.
3055 (write_insn_preds_c): Add tm-constrs.h to included headers.
3056 (gen_constrs): New variable.
3057 (parse_option): Parse "-c".
3058 (main): Invoke write_tm_constrs_h.
3059 * genrecog.c (write_header): Add tm-constrs.h to included headers.
3060 * Makefile.in (STAGECOPYSTUFF): Add tm-constrs.h.
3061 (object_out_file): Add tm-constrs.h dependency.
3062 (insn-emit.o): Same.
3063 (insn-output.o): Same.
3064 (insn-peep.o): Same.
3065 (insn-preds.o): Same.
3066 (insn-recog.o): Same.
3067 (tm-constsr.h): New target.
3068 (s-constrs-h): New target.
3070 * config/rs6000/constraints.md: New file.
3071 * config/rs6000/rs6000.c: Include tm-constrs.h.
3072 (num_insn_constant_wide): Convert to satisfies_constraint.
3073 (rs6000_rtx_costs): Convert to satisfies_constraint.
3074 * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Delete.
3075 (CONST_OK_FOR_LETTER_P): Delete.
3076 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3077 (EXTRA_CONSTRAINT): Delete.
3078 (EXTRA_MEMORY_CONSTRAINT): Delete.
3079 (EXTRA_ADDRESS_CONSTRAINT): Delete.
3080 * config/rs6000/predicates.md: Convert to satisfies_constraint.
3081 * config/rs6000/rs6000.md: Include constraints.md. Convert to
3082 satisfies_constraint.
3084 * config/i386/i386.c: Include tm-constrs.h.
3086 2006-03-29 Sebastian Pop <pop@cri.ensmp.fr>
3088 * tree-loop-linear.c (compute_data_dependences_for_loop): Adjust calls.
3089 * tree-data-ref.c (find_data_references_in_loop,
3090 compute_data_dependences_for_loop): Use pointers to VEC.
3091 (analyze_all_data_dependences): Adjust calls.
3092 * tree-data-ref.h (find_data_references_in_loop,
3093 compute_data_dependences_for_loop): Adjust declarations.
3094 * tree-vect-analyze.c (vect_analyze_data_refs): Adjust call to
3095 compute_data_dependences_for_loop.
3097 2006-03-29 Paul Brook <paul@codesourcery.com>
3099 * config/arm/vfp.md (movsf_vfp): Disparage w<->r alternatives.
3102 2006-03-29 Sebastian Pop <pop@cri.ensmp.fr>
3104 PR tree-optimization/26859
3105 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Avoid
3107 (convert_step): Remove TREE_OVERFLOW and TREE_CONSTANT_OVERFLOW flags
3108 for the step after fold_convert.
3110 2006-03-29 Paul Brook <paul@codesourcery.com>
3112 * reload1.c (choose_reload_regs): Check for all RTX_AUTOINC operators.
3113 (inc_for_reload): Handle PRE_MODIFY and POST_MODIFY addresses.
3115 2006-03-29 Paul Brook <paul@codesourcery.com>
3118 * targhooks.c (default_narrow_bitfield): New fuction.
3119 * targhooks.h (default_narrow_bitfield): add prototype.
3120 * target.h (gcc_target): Add narrow_volatile_bitfield.
3121 * target-def.h (TARGET_NARROW_VOLATILE_BITFIELD): Define.
3122 * stor-layout.c (get_best_mode): Use targetm.narrow_volatile_bitfield.
3123 * doc/tm.texi: Document TARGET_NARROW_VOLATILE_BITFIELDS.
3124 * config/arm/arm.c (TARGET_NARROW_VOLATILE_BITFIELD): Define.
3126 2006-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
3128 * config.gcc (s390-*-linux-*, s390x-*-linux*): Add t-dfprules to
3130 * config/s390/s390.c (S390_scalar_mode_supported_p): New function.
3131 (NR_C_MODES): Add TDmode, DDmode and SDmode.
3132 (s390_output_pool_entry, ): Accept MODE_DECIMAL_FLOAT.
3133 (s390_hard_regno_mode_ok): Disallow TDmode in integer regs.
3134 (s390_function_arg_float): Allow SDmode and DDmode values to be
3135 passed in floating point registers.
3136 (s390_function_arg_integer, s390_function_value): Replace MODE_FLOAT
3137 check with SCALAR_FLOAT_MODE_P.
3138 (TARGET_SCALAR_MODE_SUPPORTED_P): Define target macro.
3140 2006-03-28 Zdenek Dvorak <dvorakz@suse.cz>
3142 PR tree-optimization/25985
3143 * tree-ssa-loop-niter.c (number_of_iterations_le,
3144 number_of_iterations_ne): Make comments more precise.
3145 (number_of_iterations_cond): Add only_exit argument. Use the
3146 fact that signed variables do not overflow only when only_exit
3148 (loop_only_exit_p): New.
3149 (number_of_iterations_exit): Pass result of loop_only_exit_p to
3150 number_of_iterations_cond.
3152 2006-03-28 Zdenek Dvorak <dvorakz@suse.cz>
3154 PR tree-optimization/26643
3155 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not handle
3158 2006-03-28 Kaz Kojima <kkojima@gcc.gnu.org>
3160 * config/sh/sh.md (udivsi3_i4_int): Clobber MACH_REG and MACL_REG.
3161 (divsi3_i4_int): Likewise.
3163 2006-03-28 Roger Sayle <roger@eyesopen.com>
3165 * expr.c (emit_group_store): Only create a new pseudo reg if the
3166 quantity it needs to hold isn't already a suitable pseudo.
3168 2006-03-28 Jeff Law <law@redhat.com>
3170 * timevar.def (TV_TREE_PHI_CPROP): New timevar.
3171 * tree-ssa-dom.c (pass_phi_only_cprop): Use it.
3173 2006-03-28 Roger Sayle <roger@eyesopen.com>
3175 * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & Y) ^ Y as
3176 the equivalent ~X & Y, and the symmetry related transformations.
3177 (fold_binary) <BIT_AND_EXPR>: Similarly, fold (X ^ Y) & Y as
3178 ~X & Y, and symmetry related transforms.
3180 2006-03-28 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3182 Revert my 2006-03-27 patches.
3184 2006-03-28 Roger Sayle <roger@eyesopen.com>
3186 * fold-const.c (fold_unary) <NOP_EXPR>: Fold (T1)(~(T2)X) as
3187 ~(T1)X, when T1 and T2 are integer types of the same precision
3188 and (T2)X isn't an extension.
3190 2006-03-28 Jeff Law <law@redhat.com>
3192 PR tree-optimization/26796
3193 * tree-ssa-dom.c (propagate_rhs_into_lhs): Queue blocks which
3194 need EH edge cleanups rather than purging them immediately.
3195 (eliminate_degenerate_phis): Handle queued EH cleanups.
3197 2006-03-28 Daniel Berlin <dberlin@dberlin.org>
3199 * tree-ssa-alias.c (create_sft): Initially inherit TREE_ADDRESSABLE
3202 2006-03-27 Roger Sayle <roger@eyesopen.com>
3205 * fold-const.c (fold_binary) <MINUS_EXPR>: Call fold_convert to
3206 cast BIT_NOT_EXPR operand to the correct type.
3208 2006-03-27 Sebastian Pop <pop@cri.ensmp.fr>
3210 * tree-loop-linear.c: Don't include varray.h.
3211 (gather_interchange_stats, try_interchange_loops,
3212 linear_transform_loops): Use VEC instead of VARRAY.
3213 * lambda-mat.c: Don't include varray.h.
3214 * tree-chrec.c: Same.
3215 * lambda-trans.c: Same.
3216 * tree-vectorizer.c (new_loop_vec_info, destroy_loop_vec_info): Use
3217 VEC instead of VARRAY.
3218 * tree-vectorizer.h: Idem.
3219 * tree-data-ref.c (dump_data_references,
3220 dump_data_dependence_relations, dump_dist_dir_vectors, dump_ddrs,
3221 initialize_data_dependence_relation, finalize_ddr_dependent,
3222 compute_all_dependences, find_data_references_in_loop,
3223 compute_data_dependences_for_loop, analyze_all_data_dependences,
3224 free_dependence_relation, free_dependence_relations,
3225 free_data_refs): Idem.
3226 * tree-data-ref.h (data_reference_p, subscript_p): New.
3227 (data_dependence_relation, DDR_SUBSCRIPT, DDR_NUM_SUBSCRIPTS): Use
3228 VEC instead of VARRAY.
3229 (DDR_SUBSCRIPTS_VECTOR_INIT): Removed.
3230 (find_data_references_in_loop, compute_data_dependences_for_loop,
3231 dump_ddrs, dump_dist_dir_vectors, dump_data_references,
3232 dump_data_dependence_relations, free_dependence_relations,
3233 free_data_refs): Adjust declaration.
3234 (lambda_transform_legal_p): Move declaration here...
3235 * tree-vect-analyze.c (vect_analyze_data_ref_dependences,
3236 vect_compute_data_refs_alignment, vect_verify_datarefs_alignment,
3237 vect_enhance_data_refs_alignment, vect_analyze_data_ref_accesses,
3238 vect_analyze_data_refs): Use VEC instead of VARRAY.
3239 * lambda.h (lambda_transform_legal_p): ...from here.
3240 * lambda-code.c (lambda_transform_legal_p): Use VEC instead of VARRAY.
3241 * tree-vect-transform.c (vect_update_inits_of_drs): Idem.
3242 * Makefile.in (tree-loop-linear.o, lambda-mat.o, lambda-trans.o,
3243 tree-chrec.o): Don't depend on VARRAY_H.
3245 2006-03-27 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3247 * rtl.def (Copyright): Update date.
3248 (DEPS_LIST): Change type of the second operand to 'int'.
3249 * target.h (Copyright): Update date.
3250 (struct gcc_target.speculate_insn): Change type of the second parameter
3252 * lists.c (Copyright): Update date.
3253 (alloc_DEPS_LIST): Change signature. Update reference to the second
3254 operand of the DEPS_LIST.
3255 (copy_DEPS_LIST_list): Update reference to the second operand of the
3257 * rtl.h (Copyright): Update date.
3258 (alloc_DEPS_LIST): Update signature.
3259 * sched-int.h (Copyright): Update date.
3260 (ds_t): Change typedef to 'int'.
3261 (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
3263 2006-03-27 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3265 * haifa-sched.c (Copyright): Update date.
3266 (try_ready): Change condition to restore non-speculative pattern
3268 (process_insn_depend_be_in_spec): Code to keep probability of the
3269 speculative dependence non-decreasing.
3271 2006-03-27 Bernd Schmidt <bernd.schmidt@analog.com>
3273 * regrename.c (replace_oldest_value_addr): Initialize a variable to
3274 shut up the compiler.
3276 2006-03-27 J"orn Rennecke <joern.rennecke@st.com>
3278 * config/sh/t-sh ($(T)libic_invalidate_array_4-100.a): Fix rule
3279 to use lib prefix for target.
3280 ($(T)libic_invalidate_array_4-200.a): Likewise.
3281 ($(T)libic_invalidate_array_4a.a): Likewise.
3283 2006-03-27 Andrew Stubbs <andrew.stubbs@st.com>
3284 J"orn Rennecke <joern.rennecke@st.com>
3286 * superh.opt: New file.
3287 * sh.c (boardtype, osruntime): Remove.
3288 * superh.h (SUBTARGET_OPTIONS): Remove.
3289 * config.gcc (sh*-superh-elf): Add sh/superh.opt to extra_options.
3291 * config.gcc (sh*-*-*): Don't use c-c ranges for tr. Quote sed
3292 arguments with ^ and/or [].
3294 * config.gcc (sh-*-*): Add quoting to account for quirk of
3296 Replace == with = in enable_incomplete_targets test.
3298 * config/sh/superh.h (SUBTARGET_LINK_SPEC): Replace LITTLE_ENDIAN_BIT
3299 with MASK_LITTLE_ENDIAN.
3301 * config.gcc (sh*-superh-elf): Add sh/superh.h to tm_file.
3302 * config/sh/sh.opt: Added to some comments.
3303 * config/sh/superh.h: Removed some chaff.
3305 * config/sh/sh.opt: Add m4-[1234]00* options.
3306 * config/sh/sh.c (sh_handle_option): Likewise.
3307 * config/sh/t-sh (IC_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Define.
3308 (ic_invalidate_array_4-100.o): New rule.
3309 ($(T)libic_invalidate_array_4-100.a): Likewise.
3310 (ic_invalidate_array_4-200.o): Likewise.
3311 ($(T)libic_invalidate_array_4-200.a): Likewise.
3312 (ic_invalidate_array_4a.o): Likewise.
3313 ($(T)libic_invalidate_array_4a.a): Likewise.
3314 * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Add IC_EXTRA_PARTS.
3315 * config/sh/embed-elf.h (LIBGCC_SPEC): Add clauses for m4-100*,
3317 * config/sh/crt1.asm: Merged in profiling code.
3318 * config/sh/superh.h (STARTFILE_SPEC): Override.
3319 * config/sh/t-superh: Override EXTRA_MULTILIB_PARTS.
3320 Add rules for $(T)crt1-mmu.o, $(T)gcrt1-mmu.o and $(T)gcrt1.o.
3321 * config.gcc (sh*-superh-elf): Add t-superh to tmake_file.
3323 * t-sh (MULTILIB_MATCHES): Add sh4-[1245]00* variants.
3324 * config/sh/t-superh: Removed now-redundant MULTILIB_OPTIONS /
3325 MULTILIB_DIRNAMES / MULTILIB_MATCHES settings.
3327 * sh.opt (mpretend-cmove): New option.
3328 * sh.h (OPERRIDE_OPTIONS): Switch it off if not TARGET_SH1.
3329 * sh.md (movsicc_t_false, movsicc_t_tru): New patterns.
3330 (movsicc): Add TARGET_PRETEND_CMOVE code.
3332 2006-03-27 Andreas Krebbel <krebbel1@de.ibm.com>
3334 * config/s390/s390-protos.h (s390_hard_regno_mode_ok,
3335 s390_class_max_nregs): New function prototypes.
3336 * config/s390/s390.c (REGNO_PAIR_OK): New macro.
3337 (s390_hard_regno_mode_ok, s390_class_max_nregs): New functions.
3338 * config/s390/s390.h (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK,
3339 CLASS_MAX_NREGS): Macro bodies replaced by function calls.
3341 2006-03-26 Geoffrey Keating <geoffk@apple.com>
3343 * dwarf2out.c (add_location_or_const_value_attribute): Call
3344 tree_add_const_value_attribute if nothing else works.
3345 (reference_to_unused): New.
3346 (rtl_for_decl_init): Use reference_to_unused to decide whether
3347 to output an initializer.
3349 2006-03-27 Alan Modra <amodra@bigpond.net.au>
3352 * config/rs6000/rs6000.md (DF reg move peephole): Prevent
3353 peephole removing spe frob_di_df_2.
3355 2006-03-26 Sebastian Pop <pop@cri.ensmp.fr>
3357 * tree-data-ref.c: Rename DDR_SIZE_VECT to DDR_NB_LOOPS.
3358 (subscript_dependence_tester_1): Declared.
3359 (print_dir_vectors, print_dist_vectors): New.
3360 (debug_data_dependence_relation): New.
3361 (dump_data_dependence_relation): Print more details.
3362 (initialize_data_dependence_relation): Initialize DDR_LOOP_NEST.
3363 (analyze_subscript_affine_affine): Don't ICE when gcd_alpha_beta is 0.
3364 (save_dist_v, save_dir_v, add_outer_distances,
3365 build_classic_dist_vector_1): New.
3366 (build_classic_dist_vector): Rewrite to work on DDR_LOOP_NEST.
3367 Don't test for lambda_vector_lexico_pos.
3368 (same_access_functions, add_multivariate_self_dist,
3369 add_other_self_distances, dir_from_dist): New.
3370 (build_classic_dir_vector): Replace implementation almost identical to
3371 build_classic_dist_vector with a walk of DDR_DIST_VECTS with a call to
3373 (subscript_dependence_tester_1): New.
3374 (subscript_dependence_tester): Handle the lexicographically negative
3375 distance vectors by recomputing the dependence relation.
3376 (compute_affine_dependence): Remove parameter loop_nest_depth.
3377 (compute_self_dependence): Don't call compute_subscript_distance.
3378 (compute_all_dependences): Remove parameters nb_loops, loop_nest_depth.
3379 Add a parameter for the loop_nest.
3380 (find_loop_nest_1, find_loop_nest): New.
3381 (compute_data_dependences_for_loop): Compute the loop nest, and give
3382 up if the nest is not well formed.
3383 * tree-data-ref.h (loop_p): New.
3384 (struct data_dependence_relation): Replace size_vect field with
3385 loop_nest, a vec of loops.
3386 (DDR_SIZE_VECT): Renamed DDR_NB_LOOPS.
3387 (DDR_LOOP_NEST): New.
3388 (print_dir_vectors, print_dist_vectors,
3389 debug_data_dependence_relation): Declared.
3390 (index_in_loop_nest): New.
3391 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Use
3392 DDR_LOOP_NEST and index_in_loop_nest to determine the dependence
3395 2006-03-25 Adam Nemet <anemet@caviumnetworks.com>
3397 * simplify-rtx.c (simplify_relational_operation): Call
3398 simplify_relational_operation_1 even if mode is VOIDmode.
3400 2006-03-25 Daniel Berlin <dberlin@dberlin.org>
3402 PR tree-optimization/26804
3403 * tree.h (DECL_CALL_CLOBBERED): New macro.
3404 (tree_decl_common): Add call_clobbered_flag.
3405 * tree-flow-inline.h (is_call_clobbered): Use DECL_CALL_CLOBBERED.
3406 (mark_call_clobbered): Set DECL_CALL_CLOBBERED.
3407 (clear_call_clobbered): Clear DECL_CALL_CLOBBERED.
3408 (mark_non_addressable): Ditto.
3409 * tree-ssa.c (verify_call_clobbered): New function.
3410 (verify_alias_info): Use it.
3411 * tree-pass.h (pass_reset_cc_flags): New prototype.
3412 * tree-ssa-alias.c (pass_reset_cc_flags): New structure.
3413 (reset_cc_flags): New function.
3414 * passes.c (init_optimization_passes): Call reset_cc_flags after
3415 initializing referenced_vars.
3417 2006-03-25 Uros Bizjak <uros@kss-loka.si>
3418 Roger Sayle <roger@eyesopen.com>
3421 * fold-const.c (fold_binary) [RDIV_EXPR]: Do not optimize A / A
3422 to 1.0 for non-real operands. Implement A / A optimization for
3425 2006-03-25 H.J. Lu <hongjiu.lu@intel.com>
3427 * config/i386/i386.c (size_cost): Correct the comment for
3428 cost of storing fp registers.
3429 (i386_cost): Likewise.
3430 (i486_cost): Likewise.
3431 (pentium_cost): Likewise.
3432 (pentiumpro_cost): Likewise.
3433 (k6_cost): Likewise.
3434 (athlon_cost): Likewise.
3435 (k8_cost): Likewise.
3436 (pentium4_cost): Likewise.
3437 (nocona_cost): Likewise.
3438 (generic64_cost): Likewise.
3439 (generic32_cost): Likewise.
3441 2006-03-24 Denis Chertykov <denisc@overta.ru>
3443 * config/avr/avr-protos.h (extra_constraint): Delete.
3444 (extra_constraint_Q): New declaration.
3445 * config/avr/constraints.md: New file.
3446 * config/avr/avr.md: Include it.
3447 (REG_X, REG_Y, REG_Z, REG_W): New constants.
3448 (TMP_REGNO, ZERO_REGNO): Likewise.
3449 (UNSPEC_STRLEN, UNSPEC_INDEX_JMP): Likewise.
3450 * config/avr/avr.c (avr_reg_class_from_letter): Delete.
3451 (extra_constraint): Delete.
3452 (extra_constraint_Q): Test for memory constraint 'Q'.
3453 * config/avr/avr.h (REG_X,REG_Y,REG_Z,REG_W): Delete.
3454 (REG_CLASS_FROM_LETTER): Delete.
3455 (CONST_OK_FOR_LETTER_P): Delete.
3456 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3457 (EXTRA_CONSTRAINT): Delete.
3458 (TMP_REGNO): Delete.
3459 (ZERO_REGNO): Delete.
3461 2006-03-24 Jeff Law <law@redhat.com>