1 2006-05-23 Alexandre Oliva <aoliva@redhat.com>
3 * simplify-rtx.c (simplify_subreg): Adjust REG_OFFSET for
4 big-endian paradoxical subregs.
5 * var-tracking.c (struct micro_operation_def): Document that,
6 for modify micro operations, insn is the subsequent instruction.
7 (var_reg_delete_and_set, var_mem_delete_and_set): Split into...
8 (var_reg_set, var_mem_set): ... new functions.
9 (add_stores): Record subsequent insn.
10 (compute_bb_dataflow): Use new functions for MO_USE.
11 (emit_notes_in_bb): Use new functions for MO_USE. Emit use
12 notes after the insn, and modify notes before the insn known
13 to be the subsequent one.
14 (vt_initialize): Invert sorting of MO_CLOBBERs and MO_SETs.
16 2006-05-23 Kazu Hirata <kazu@codesourcery.com>
19 * config/i386/i386.c (ix86_expand_builtin): Use
20 gen_sse3_monitor64 for TARGET_64BIT.
22 2006-05-22 Kenneth Zadeck <zadeck@naturalbridge.com>
24 PR rtl-optimization/26375
25 PR rtl-optimization/26855
26 * df-problems (df_ru_bb_local_compute_process_def): Removed update
28 (df_ru_bb_local_compute): Reversed statements and removed bogus
29 comment explaining why they should be in wrong order.
30 (df_ru_dump, df_rd_dump): Enhanced debug info.
31 * modulo-sched.c (sms_schedule, tree_opt_pass pass_sms): Enhanced
33 * ddg.c (add_deps_for_def): Converted use of reaching defs to
34 reaching uses and fixed space problem.
36 2006-05-23 Jan Hubicka <jh@suse.cz>
38 * cgraphunit.c (decide_is_function_needed): Also nested functions
39 and functions declared inline can be optimized out at -O0.
41 2006-05-22 Gerald Pfeifer <gerald@pfeifer.com>
43 * doc/install.texi (Configuration): Remove reference to CrossGCC
44 FAQ which was hijacked.
47 2006-05-22 Kazu Hirata <kazu@codesourcery.com>
50 * config/i386/i386.c (ix86_expand_branch): Jump to simple if
51 ix86_compare_emitted is non-NULL.
53 2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
56 * stmt.c (expand_asm_operands): Skip asm statement with erroneous
59 2006-05-22 Richard Sandiford <richard@codesourcery.com>
61 PR rtl-optimization/25514
62 * combine.c (replaced_rhs_insn): New variable.
63 (combine_instructions): Set replaced_rhs_insn when trying to replace
64 a SET_SRC with a REG_EQUAL note.
65 (distribute_notes): Use replaced_rhs_insn when determining the live
66 range of a REG_DEAD register.
68 2006-18-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
69 Anatoly Sokolov <aesok@post.ru>
71 * config/avr/avr.c (avr_mcu_types): Add support for attiny261,
72 attiny461, attiny861, attiny25, attiny45, attiny85, attiny24,
73 attiny44, attiny84, at90pwm2, at90pwm3, atmega165p, atmega169p,
74 atmega164p, atmega324p, atmega644p, atmega644, atmega329,
75 atmega3290, atmega649, atmega6490, atmega406, atmega640,
76 atmega1280, atmega1281, at90can32, at90can64, at90usb646,
77 at90usb647, at90usb1286 and at90usb1287 devices.
78 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
79 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
81 2006-05-22 Richard Sandiford <richard@codesourcery.com>
83 * mklibgcc.in (lib2funcs): Remove _floatdidf from initial assignment.
85 2006-05-22 Richard Guenther <rguenther@suse.de>
88 2006-01-31 Richard Guenther <rguenther@suse.de>
89 Paolo Bonzini <bonzini@gnu.org>
91 * doc/install.texi (--disable-libgcc-math): Document.
93 2006-05-22 Richard Guenther <rguenther@suse.de>
96 2006-01-31 Richard Guenther <rguenther@suse.de>
98 * doc/invoke.texi (-msselibm): Document.
99 * target.h (expand_library_builtin): New target hook.
100 * builtins.c (expand_builtin): Use expand_library_builtin.
101 (default_expand_library_builtin): New function.
102 * gcc.c (LINK_GCC_MATH_SPEC): Define.
103 (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
104 (link_gcc_math_spec): Declare.
105 (static_specs): Add link_gcc_math_spec.
106 * expr.h (default_expand_library_builtin): Declare.
107 * target-def.h (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
108 (TARGET_INITIALIZER): Add TARGET_EXPAND_LIBRARY_BUILTIN.
109 * config/i386/i386.h: Provide LINK_GCC_MATH_SPEC.
110 * config/i386/i386.opt (msselibm): New target option.
111 * config/i386/i386.c (ix86_builtin_function_variants): New array.
112 (ix86_init_sse_abi_builtins): New function.
113 (ix86_expand_library_builtin): Likewise.
114 (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
115 (override_options): Handle error conditions wrt -msselibm.
116 (ix86_builtins): Add function codes for SSE2 ABI builtins.
117 (ix86_init_builtins): Call ix86_init_sse_abi_builtins.
118 * doc/extend.texi (__builtin_sse2_*): Document new target specific
121 2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
124 * c-common.c (self_promoting_args_p): Skip erroneous args.
127 * c-decl.c (finish_struct): Skip erroneous fields.
129 2006-05-22 Nick Clifton <nickc@redhat.com>
131 * config/cris/cris.opt (march): Remove VarExists attribute.
132 (max-stackframe=): Likewise.
134 2006-05-22 Kazu Hirata <kazu@codesourcery.com>
136 * doc/rtl.texi: Fix a typo.
137 * see.c: Fix comment typos.
139 * tree-ssa-structalias.h (alias_info): Remove num_references.
141 2006-05-21 Mike Stump <mrs@apple.com>
143 * config/darwin-c.c (BAD): Conditionalize on OPT_Wpragmas.
145 (darwin_pragma_options): Use BAD instead.
146 (darwin_pragma_unused): Likewise.
147 (darwin_pragma_ms_struct): Likewise.
149 2006-05-21 David Edelsohn <edelsohn@gnu.org>
151 * config/rs6000/rs6000.md (floatsitf2): Remove constraints.
153 2006-05-21 Kazu Hirata <kazu@codesourcery.com>
155 PR rtl-optimization/27671
156 * simplify-rtx.c (simplify_relational_operation_1): Fix
157 simplifications of (eq/ne (xor x y) y) and
160 PR tree-optimization/26622.
161 * fold-const.c (fold_ternary) <COND_EXPR>: Call fold_convert
164 2006-05-21 Bernhard Fischer <aldot@gcc.gnu.org>
166 * tree-cfg.c: Prune whitespace.
167 (debug_tree_cfg): Point to correct header containing the
170 2006-05-21 Bernhard Fischer <aldot@gcc.gnu.org>
173 * cgraphunit.c (verify_cgraph_node): Typo in error message.
175 2006-05-20 Andrew Pinski <pinskia@physics.uc.edu>
178 * cgraphunit.c (cgraph_optimize): Don't run ipa passes if error
179 or sorry count is non zero.
181 2006-05-20 Andreas Schwab <schwab@suse.de>
183 * config/pa/pa-linux.h (STRING_ASM_OP): Prepend and append a tab.
185 2006-05-19 Daniel Berlin <dberlin@dberlin.org>
186 Kenneth Zadeck <zadeck@naturalbridge.com>
188 PR rtl-optimization/26855
190 * df-scan.c (mw_reg_pool, mw_link_pool): New allocation pools for
192 (df_scan_alloc): Added code to properly handle multiword hard
193 registers and add all_blocks parameter.
194 (df_scan_free_internal, df_insn_refs_delete, df_ref_record): Added
195 code to properly handle multiword hard registers.
196 (df_rescan_blocks): Added code to remove deleted blocks from
198 (df_ref_create_structure, df_ref_record): Added code to properly
200 (df_ref_record_1): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER
201 and set DF_REF_PARTIAL.
202 (df_defs_record): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER.
203 (df_uses_record): Added DF_REF_PARTIAL for subreg.
204 (df_scan_add_problem): Added flags parameter.
205 (df_ref_create_structure): Changed switching structure.
206 (df_bb_refs_record): Fixed case where duplicate artificial refs
207 were created. Changed location of flags.
208 (df_record_entry_block_defs): Added code to make stack pointer
209 live in entry block. Refined cases where frame pointer is needed.
210 Changed location of flags.
211 (df_record_exit_block_uses, df_insn_refs_record): Changed location of flags.
212 (df_set_state): Removed function.
213 (df_grow_reg_info, df_reg_chain_unlink, df_ref_remove,
214 df_insn_create_insn_record, df_insn_refs_delete,
215 df_ref_create_structure): Formatting changes.
216 * df-core.c (df_mvs_dump, df_set_flags, df_clear_flags,
217 df_delete_basic_block): New function.
218 (df_init): Changed location of flags.
219 (df_add_problem): Added flags parameter and the way flags are
221 (df_insn_uid_debug, df_ref_debug, debug_df_defno, debug_df_ref,
222 debug_df_chain): Improved debugging output.
223 (df_insn_debug, df_insn_uid_debug): Added multiword reg support.
224 (df_refs_chain_dump): Removed df parameter.
225 (df_iterative_dataflow): Added consistency check.
226 (df_prune_to_subcfg): Made public.
227 (df_analyze_problem): Added blocks_to_init parameter and made
229 (df_ref_record, df_bb_refs_record, df_mark_reg,
230 df_record_exit_block_uses): Whitespace changes.
231 (df_dump): Whitespace changes.
232 * df.h: Some reordering to remove forward references.
233 (df_ref_flags.DF_REF_MW_HARDREG, DF_REF_PARTIAL,
234 DF_REF_MUST_CLOBBER, DF_REF_MAY_CLOBBER): New fields.
235 (df_ref_flags.DF_REF_CLOBBER): Deleted field.
236 (dataflow.flags): New field.
237 (df.flag): Deleted field.
238 (df_alloc_function): Added additional bitmap parameter.
239 (df_dependent_problem_function): New type.
240 (df_problem.changeable_flags): New field.
241 (df_ref_flags.DF_REF_DIES_AFTER_THIS_USE, DF_SCAN_INITIAL,
242 DF_SCAN_GLOBAL, DF_SCAN_POST_ALLOC, df_state): Removed.
243 (df_mw_hardreg): New struct.
244 (DF_INSN_UID_MWS): New macro.
245 (df_refs_chain_dump, df_ref_debug, df_chain_dump): Removed df
247 (df_add_problem, df_ru_add_problem, df_rd_add_problem,
248 df_lr_add_problem, df_ur_add_problem, df_urec_add_problem,
249 df_ri_add_problem, df_scan_add_problem): Added flags parameter.
250 (df_set_state): Removed function.
251 (df_set_flags, df_clear_flags, df_delete_basic_block) New functions.
252 * df-problems.c (df_chain_dump): Removed df parameter.
253 (df_ru_alloc, df_rd_alloc, df_lr_alloc, df_ur_alloc,
254 df_urec_alloc, df_chain_alloc, df_ri_alloc): Added all blocks
256 (df_ru_alloc, df_rd_alloc): Now resets all blocks.
257 (df_rd_bb_local_compute_process_def, df_ur_bb_local_compute,
258 df_chain_create_bb, df_create_unused_note, df_ri_bb_compute):
259 Split DF_REF_CLOBBER into DF_REF_MAY_CLOBBER and
260 DF_REF_MUST_CLOBBER cases.
261 (df_ru_bb_local_compute_process_def,
262 df_rd_bb_local_compute_process_def, df_lr_bb_local_compute,
263 df_lr_bb_local_compute, df_ur_bb_local_compute,
264 df_chain_create_bb): Made subreg aware.
265 (df_ru_bb_local_compute, df_rd_bb_local_compute,
266 df_lr_bb_local_compute, df_lr_bb_local_compute,
267 df_chain_create_bb): Cleanup to use proper macros.
268 (df_ur_local_finalize, df_urec_local_finalize): Removed unnecessary
269 code to fixup bitvectors.
270 (df_ri_alloc): Cleared lifetime.
271 (df_ignore_stack_reg, df_kill_notes, df_set_notes_for_mw,
272 df_create_unused_note): New function.
273 (df_ri_bb_compute, df_ri_compute): Added code to create/update
274 REG_DEAD and REG_UNUSED notes as well as register information.
275 (df_ru_dump, df_rd_dump, df_lr_dump, df_ur_dump, df_urec_dump,
276 df_chains_dump): Fixed crash if problem was never run.
277 (df_ru_add_problem, df_rd_add_problem, df_lr_add_problem,
278 df_ur_add_problem, df_urec_add_problem, df_chain_add_problem,
279 df_ri_add_problem): Processes flags in uniform manner.
280 (df_ru_alloc, df_ru_local_compute, df_ru_confluence_n, df_ru_free,
281 df_ru_dump, df_rd_local_compute, df_rd_confluence_n, df_rd_free,
282 df_rd_dump, df_urec_free_bb_info): Formatting changes.
283 (df_ru_free_bb_info, df_ru_bb_local_compute, df_ru_dump,
284 df_rd_free_bb_info, df_rd_bb_local_compute_process_def,
285 df_rd_bb_local_compute, df_rd_dump, df_lr_free_bb_info,
286 df_lr_bb_local_compute, df_lr_local_compute, df_ur_free_bb_info,
287 df_ur_dump, df_urec_free_bb_info, df_urec_dump,
288 df_chain_create_bb, df_ri_bb_compute): Whitespace changes.
289 * modulo-sched.c (sms_schedule): Added flag parameter to calls.
290 * see.c (see_initialize_data): Ditto.
291 * final.c (rest_of_clean_state) Added regstack_completed.
292 * rtl.h (regstack_completed): Ditto.
293 * reg-stack.c (regstack_completed): Ditto.
295 2006-05-19 Mike Stump <mrs@apple.com>
297 * c-tree.h (default_conversion): Remove.
298 * c-common.h (default_conversion): Add.
300 2006-05-19 Zdenek Dvorak <dvorakz@suse.cz>
302 * tree-vrp.c (valid_value_p): New function.
303 (adjust_range_with_scev): Fail if the value of bound is not
306 2006-05-19 Richard Sandiford <richard@codesourcery.com>
308 * config/mips/linux-unwind.h: Include <asm/unistd.h>
309 (mips_fallback_frame_state): Use syscall numbers to determine
310 the appropriate li instruction for the current ABI. Only use
311 __NR_sigreturn for o32.
313 2006-05-19 Nicolas Setton <setton@adacore.com>
315 * langhooks.h (struct lang_hooks): Add dwarf_name language hook.
316 * langhooks.c (lhd_dwarf_name): New function.
317 * langhooks-def.h (lhd_dwarf_name): Declare.
318 (LANG_HOOKS_DWARF_NAME): New macro, defaults to lhd_dwarf_name.
319 * dwarf2out.c (dwarf2_name): Use the dwarf_name language hook.
320 * ada/misc.c (gnat_dwarf_name): New function.
321 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
323 2006-05-19 Richard Sandiford <richard@codesourcery.com>
325 * libgcc2.c (MIN_UNITS_PER_WORD): Move default definition from
327 (LIBGCC2_UNITS_PER_WORD): Provide default definition, using old
328 MIN_UNITS_PER_WORD logic from libgcc2.h. Do nothing if
329 LIBGCC2_UNITS_PER_WORD > MIN_UNITS_PER_WORD.
330 * libgcc2.h (MIN_UNITS_PER_WORD): Remove definition from here.
331 Use LIBGCC2_UNITS_PER_WORD rather than MIN_UNITS_PER_WORD to
332 determine the size of Wtype, etc.
333 * mklibgcc.in (LIB2_SIDITI_CONV_FUNCS): New argument.
334 (swfloatfuncs): New variable.
335 (dwfloatfuncs): Likewise.
336 (lib2funcs): Remove floating-point conversion functions from
337 initial assignment. Use LIB2_SIDITI_CONV_FUNCS to determine
338 the set of conversion routines needed. Allow entries to specify
339 an object name, filename and word size. Update users accordingly.
340 * Makefile.in (libgcc.mk): Pass LIB2_SIDITI_CONV_FUNCS.
341 * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Define.
345 2006-02-08 Roger Sayle <roger@eyesopen.com>
348 * config/fixtfdi.c: New libgcc source file.
349 * config/fixunstfdi.c: New source file.
350 * config/floatditf.c: New source file.
351 * config/floatunditf.c: New souce file.
352 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Include the new source
353 files above instead of config/mips/_tilib.c.
354 * config/mips/t-linux64 (LIB2FUNCS_EXTRA): Likewise.
356 2006-05-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
358 * pa/t-hpux-shlib (SHLIB_LINK): Remove `-lc'.
359 * pa/pa-hpux11.h (LIB_SPEC): Update comment.
361 2006-05-18 Mike Stump <mrs@apple.com>
363 Fix up vla, vm and [*] sematics.
369 * c-tree.h (struct c_arg_info): Add had_vla_unspec.
370 (c_vla_unspec_p): Add.
372 * c-decl.c (struct c_scope): Add had_vla_unspec.
373 (build_array_declarator): Add support for [*].
374 (grokdeclarator): Likewise.
375 (grokparms): Likewise.
376 (get_parm_info): Likewise.
377 * c-objc-common.c (c_vla_unspec_p): Likewise.
378 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Likewise.
379 * c-parser.c (c_parser_typeof_specifier): Evaluate arguments to
380 typeof when argument is a variably modified type not inside sizeof or alignof.
381 (c_parser_direct_declarator_inner): Propagate errors.
382 (c_parser_sizeof_expression): Add support for [*].
383 (c_parser_parms_declarator): Initialize had_vla_unspec.
384 (c_parser_parms_list_declarator): Likewise.
385 * c-typeck.c (c_vla_type_p): Add.
386 (composite_type): Add support for vla compositing.
387 (comptypes_internal): Add support for vla compatibility.
388 (c_expr_sizeof_expr): Evaluate vla arguments.
389 * tree.c (variably_modified_type_p): Update comment for [*].
391 2006-05-18 Michael Matz <matz@suse.de>
394 * config.host: Make assignments to host_xmake_file cumulative.
395 * config.host (*-darwin*): Test $host, not $target.
397 2006-05-12 Stuart Hastings <stuart@apple.com>
399 * config/i386/i386.opt (-mstackrealign): New flag.
400 * config/i386/i386.c (force_align_arg_pointer): New attribute.
401 (ix86_handle_cconv_attribute): Emit error when
402 force_align_arg_pointer attribute collides with too many regparms.
403 (ix86_function_regparm): Limit regparms when used with
404 force_align_arg_pointer attribute. (ix86_internal_arg_pointer):
405 Support stack-realigning prologue in non-main functions. Emit
406 warning for nested functions under -mstackrealign, emit error for
407 nested functions with force_align_arg_pointer attribute.
408 * doc/extend.texi (force_align_arg_pointer): Document it.
409 * doc/invoke.texi (-mstackrealign): Document it.
411 2006-05-17 Kazu Hirata <kazu@codesourcery.com>
413 PR rtl-optimization/27477
414 * combine.c (try_combine): Don't split a parallel consisting
415 of two sets into two individual sets if both sets reference
418 2006-05-17 H.J. Lu <hongjiu.lu@intel.com>
420 * config/arm/arm.opt (target_fpe_name): Remove VarExists.
421 * config/rs6000/rs6000.opt (TARGET_NO_FP_IN_TOC): Likewise.
423 * doc/options.texi (VarExists): Updated.
425 2006-05-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
427 * unwind-dw2.c: Add declarations for uw_update_context and
429 * pa/hpux-unwind.h (pa_fallback_frame_state): When an export stub is
430 detected, advance frame state and context once to skip over stub.
432 2006-05-17 Sebastian Pop <pop@cri.ensmp.fr>
436 * tree-loop-linear.c (linear_transform_loops): Don't test perfect_nest_p.
437 Call rewrite_into_loop_closed_ssa only when something changed.
438 * lambda.h (gcc_loopnest_to_lambda_loopnest): Update declaration.
439 * lambda-code.c (can_convert_to_perfect_nest): Declared.
440 (gcc_loopnest_to_lambda_loopnest): Removed need_perfect_nest parameter.
441 Test for perfect_nest_p here. Fix formating.
442 (replace_uses_equiv_to_x_with_y): Fix formating.
443 (stmt_uses_op): Removed.
444 (can_convert_to_perfect_nest): Removed loopivs parameter.
445 Complete the test by checking the scalar dependences.
446 (perfect_nestify): Remove the test for can_convert_to_perfect_nest.
449 2005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>
452 From Dan Kegel <dank@kegel.com>:
453 * Makefile.in: Strip "dir/../" combinations from SYSTEM_INCLUDE_DIR.
455 2006-05-17 Eric Botcazou <ebotcazou@adacore.com>
457 * tree.c (variably_modified_type_p) <ARRAY_TYPE>: Return true
458 if the element type is variably modified without recursing.
460 2006-05-17 Sebastian Pop <pop@cri.ensmp.fr>
463 * tree-loop-linear.c (try_interchange_loops): Test for
466 2006-05-17 Zdenek Dvorak <dvorakz@suse.cz>
468 PR tree-optimization/27548
469 * tree-scalar-evolution.c (scev_const_prop): Do not prolong life
470 range of ssa names that appear on abnormal edges.
471 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Export.
472 * tree-flow.h (contains_abnormal_ssa_name_p): Declare.
474 2005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>
477 * expr.c (safe_from_p): Handle CONSTRUCTOR again.
479 2006-05-17 Jakub Jelinek <jakub@redhat.com>
482 * tree.h (OMP_PARALLEL_COMBINED): Define.
483 * gimplify.c (struct gimplify_omp_ctx): Add is_combined_parallel field.
484 (new_omp_context): Add is_combined_parallel argument.
485 (gimplify_scan_omp_clauses): Add in_combined_parallel argument, adjust
486 new_omp_context caller.
487 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
488 Adjust gimplify_scan_omp_clauses callers.
489 (omp_is_private): Issue errors if iteration variable is firstprivate
490 or reduction in the current context.
491 * c-parser.c (c_parser_omp_parallel): Set OMP_PARALLEL_COMBINED
492 on combined parallel workshare constructs.
494 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
496 * Makefile.in (GCC_OBJS): Replace options.o with gcc-options.o.
497 (gcc-options.o): New rule.
499 * optc-gen.awk: Protect variables for gcc-options.o with
500 #ifdef GCC_DRIVER/#endif.
502 2006-05-16 Daniel Berlin <dberlin@dberlin.org>
504 Fix PR tree-optimization/27373
505 * tree-ssa-forwprop.c: (forward_propagate_addr_expr_1): Add argument.
506 (forward_propagate_addr_expr): Update call.
508 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
510 * doc/options.texi: Move the Negative option.
512 2006-05-16 Richard Guenther <rguenther@suse.de>
514 PR tree-optimization/22303
515 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle reads
517 (evaluate_stmt): Fall back to fold_const_aggregate_ref, if
518 ccp_fold did not simplify the statement.
520 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
523 * Makefile.in (GCC_OBJS): New.
524 (OBJS-common): Add opts-common.o.
525 (xgcc$(exeext)): Replace gcc.o with $(GCC_OBJS).
526 (cpp$(exeext)): Likewise.
527 (gcc.o): Also depend on opts.h.
528 (opts-common.o): New.
530 * common.opt (gcoff): Add Negative(gdwarf-2).
531 (gdwarf-2): Add Negative(gstabs).
532 (gstabs): Add Negative(gstabs+).
533 (gstabs+): Add Negative(gvms).
534 (gvms): Add Negative(gxcoff).
535 (gxcoff): Add Negative(gxcoff+).
536 (gxcoff+): Add Negative(gcoff).
537 * config/i386/i386.opt (m32): Add Negative(m64).
538 (m64): Add Negative(m32).
540 * doc/options.texi: Document the Negative option.
542 * gcc.c: Include "opts.h".
543 (main): Call prune_options after expandargv.
545 * optc-gen.awk: Generate common declarations for all flag
546 variables in options.c. Output the neg_index field.
548 * opts.c (find_opt): Moved to ...
549 * opts-common.c: Here. New file.
551 * opts.h (cl_option): Add a neg_index field.
553 (prune_options): Likewise.
555 2006-05-16 Jakub Jelinek <jakub@redhat.com>
558 * omp-low.c (expand_omp_parallel): Don't assert
559 .OMP_DATA_I = &.OMP_DATA_O is the first statement in the block,
560 instead search for it.
563 * gimplify.c (gimplify_omp_for): Remove assertion that iteration var
566 2006-05-16 Andreas Schwab <schwab@suse.de>
568 * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Add missing @end
571 2006-05-15 Roger Sayle <roger@eyesopen.com>
574 * config/i386/i386.c (legitimate_constant_p) <CONST_DOUBLE>: TImode
575 integer constants other than zero are only legitimate on TARGET_64BIT.
576 <CONST_VECTOR> Only zero vectors are legitimate.
577 (ix86_cannot_force_const_mem): Integral and vector constants can
578 always be put in the constant pool.
580 2006-05-16 DJ Delorie <dj@redhat.com>
582 * crtstuff.c (__dso_handle): Set section from
583 TARGET_LBIGCC_SDATA_SECTION if defined.
584 * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Document.
585 * config/mips/mips.h (TARGET_LIBGCC_SDATA_SECTION): Define.
587 2006-05-16 Danny Smith <dannysmith@users.sourceforge.net>
590 * config.host (i[34567]86-*-mingw*): Append i386/x-mingw32 to
593 2006-05-16 Ben Elliston <bje@au.ibm.com>
595 * tree-cfg.c (split_edge_bb_loc): Remove unused variable `src'.
597 2006-05-15 Per Bothner <per@bothner.com>
599 * tree.c: (last_annotated_node): Use sources_locus typedef.
600 This permits bootstrapping with --enable-mapped-location.
602 2006-05-15 Zdenek Dvorak <dvorakz@suse.cz>
604 PR tree-optimization/26830
605 * tree-into-ssa.c (struct ssa_name_info): Add age field.
606 (info_for_ssa_name, current_info_for_ssa_name_age,
607 blocks_to_update): New variables.
608 (get_ssa_name_ann): Use info_for_ssa_name instead of SSA_NAME_AUX.
609 (clear_ssa_name_info, initialize_flags_in_bb,
610 mark_block_for_update): New functions.
611 (mark_def_sites, rewrite_stmt): Assert that blocks_to_update is NULL.
612 (insert_phi_nodes_for, mark_use_interesting, prepare_block_for_update,
613 prepare_def_site_for): Use mark_block_for_update.
614 (mark_def_interesting): Assert that the processed block is marked in
615 blocks_to_update. Do not take blocks argument.
616 (prepare_use_sites_for, prepare_names_to_update): Do not take blocks
618 (rewrite_update_init_block, rewrite_update_stmt): Only process
619 blocks with statements to rewrite.
620 (delete_update_ssa): Do not clear SSA_NAME_AUX.
621 (update_ssa): Initialize and free blocks_to_update. Do not
622 clear flags on statements. Do not use blocks bitmap.
623 * tree.h (SSA_NAME_AUX): Removed.
624 (struct tree_ssa_name): Removed aux field.
625 * print-tree.c (print_node): Do not print SSA_NAME_AUX.
627 2006-05-15 Richard Guenther <rguenther@suse.de>
629 PR tree-optimization/27603
630 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
631 Do computations in original type.
633 2006-05-15 Mircea Namolaru <namolaru@il.ibm.com>
635 * see.c: Code style changes such as redundant paranthesis,
636 redundant intialization of local variables etc.
637 (see_main): Declared now as static.
638 * doc/invoke.texi: Update that -fsee is not enabled by
641 2006-05-15 Jakub Jelinek <jakub@redhat.com>
643 * omp-low.c (check_omp_nesting_restrictions): New function.
644 (scan_omp_1): Call it.
647 * omp-low.c (build_outer_var_ref): If VAR is reference in orphaned
648 construct, return *VAR.
650 2006-05-14 Kaz Kojima <kkojima@gcc.gnu.org>
652 PR rtl-optimization/27406
653 * bt-load.c (migrate_btr_def): Skip the block having abnormal
656 2006-05-14 Roger Sayle <roger@eyesopen.com>
658 PR rtl-optimization/27538
659 * combine.c (expand_compound_operation): Call gen_lowpart
660 before calling simplify_shift_const.
662 2006-05-14 Roger Sayle <roger@eyesopen.com>
664 PR rtl-optimization/22563
665 * expmed.c (store_fixed_bit_field): When using AND and IOR to store
666 a fixed width bitfield, always force the intermediates into psuedos.
668 2006-05-14 Bernhard Fischer <aldot@gcc.gnu.org>
671 * mkconfig.sh: Use operator = instead of == for test.
673 2006-05-13 Nick Clifton <nickc@redhat.com>
675 * dwarf2out.c (dbx_reg_number): Check return value from
676 LEAF_REG_REMAP and only use it if it is valid.
677 (multiple_reg_loc_descriptor): Likewise.
679 2006-05-13 Richard Guenther <rguenther@suse.de>
681 * config.host <i[34567]86-*-cygwin*>: Append i386/x-cygwin to
684 2006-05-13 Steven Bosscher <stevenb.gcc@gmail.com>
686 * df-core.c (df_bb_regno_last_use_find): Do not look for dataflow
687 information attached to non-INSNs such as NOTEs.
688 (df_bb_regno_first_def_find, df_bb_regno_last_def_find): Likewise.
690 2006-05-12 Andreas Krebbel <krebbel1@de.ibm.com>
692 * config/s390/s390.c (s390_const_ok_for_constraint_p): Disallow -4G for
694 * config/s390/s390.md: Adjust comment describing On constraint.
696 2006-05-11 Jan Hubicka <jh@suse.cz>
698 * cgraphunit.c (decide_is_function_needed): Don't force always_inline
701 2006-05-11 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
704 * fold-const.c (size_binop): Move sanity check for arguments to
705 the beginning of the function.
708 * fold-const.c (tree_expr_nonnegative_p): Return early on invalid
711 2006-05-11 Richard Guenther <rguenther@suse.de>
714 * fold-const.c (fold_unary): Handle intermediate conversion
715 to a pointer type like intermediate conversion to an integer
716 type in folding of (T1)(T2)var to var.
717 Match the code to the comment in the final conversion for
718 (T1)(T2)var to (T1)var regarding to type precision. Rather
719 than disallow T1 being of pointer type, assert that both T1
720 and var are of pointer type or not. Make sure not to fall
721 over the frontends lazyness wrt array to pointer decay though.
723 2006-05-10 Richard Earnshaw <rearnsha@arm.com>
725 * arm.c (arm_struct_value_rtx): Delete.
726 (TARGET_STRUCT_VALUE_RTX): Use the default definition.
727 (arm_init_cumulative_args): Always initialize nregs to zero.
729 2006-05-10 Richard Guenther <rguenther@suse.de>
731 PR tree-optimization/27532
732 * tree-object-size.c (plus_expr_object_size): Fix typo.
734 2006-05-10 Kazu Hirata <kazu@codesourcery.com>
737 * config/m68k/m68k.md (ashrdi_const32, ashrdi_const32_mem,
738 ashrdi_const, ashrdi3): Use a scratch register.
740 2006-05-10 Richard Guenther <rguenther@suse.de>
742 PR tree-optimization/27302
743 * fold-const.c (operand_equal_p): For two comparisons,
744 try comparison of one comparison code swapped if that yields
747 2006-05-10 Ben Elliston <bje@au.ibm.com>
749 * tree-pretty-print.c (pretty_print_string): No need to handle
750 '\0' as a special character.
752 * tree.h: Include "hashtab.h".
753 (iterative_hash_expr): Use hashval_t in its prototype.
754 * Makefile.in (TREE_H): Add $(HASHTAB_H).
756 2006-05-09 Steve Ellcey <sje@cup.hp.com>
759 * config.gcc (hppa[12]*-*-hpux10*): Set gas to yes.
760 (hppa*64*-*-hpux11*): Ditto.
761 (hppa[12]*-*-hpux11*): Ditto.
763 2006-05-09 David Edelsohn <edelsohn@gnu.org>
766 * config/rs6000/aix41.h (TARGET_64BIT): Define.
768 2006-05-09 Michael Matz <matz@suse.de>
770 * config.host (<i[34567]86-*-*, x86_64-*-*>): Set
771 host_extra_gcc_objs and host_xmake_file.
772 (<*-*-linux*>): Don't overwrite host_xmake_file.
773 * gcc.c (static_spec_functions): Add EXTRA_SPEC_FUNCTIONS.
774 * config/i386/i386.h (EXTRA_SPEC_FUNCTIONS): Define.
775 (host_detect_local_cpu): Declare.
776 (CC1_CPU_SPEC): Add -march=native and -mtune=native cases.
777 * config/i386/i386.c (override_options): Handle -mtune=native
779 * config/i386/x-i386: New file.
780 * config/i386/driver-i386.c: New file.
781 * doc/invoke.texi (<i386 and x86-64 Options>): Describe
784 2006-05-09 Dirk Mueller <dmueller@suse.de>
785 Richard Guenther <rguenther@suse.de>
788 * fold-const.c (fold_read_from_constant_string): Relax check
789 for matching types to matching modes.
791 2006-05-09 Zdenek Dvorak <dvorakz@suse.cz>
793 PR rtl-optimization/27335
794 * loop-unroll.c (peel_loops_completely): Use loops->parray to walk the
797 2006-05-08 Chao-ying Fu <fu@mips.com>
798 Richard Sandiford <richard@codesourcery.com>
800 * config/mips/mips-ps-3d.md (scc_ps, s<code>_ps): New patterns.
801 (vcondv2sf, sminv2sf3, smaxv2sf3): Likewise.
802 * config/mips/mips.md (UNSPEC_SCC): New constant.
803 * config/mips/mips-protos.h (mips_expand_vcondv2sf): Declare.
804 * config/mips/mips.c (mips_reverse_fp_cond_p): New function.
805 (mips_emit_compare): Use it.
806 (mips_expand_vcondv2sf): New function.
808 2006-05-08 Daniel Berlin <dberlin@dberlin.org>
810 Fix PR tree-optimization/27093
811 * tree-ssa-alias.c (recalculate_used_alone): Mark variables for
812 renaming when they become not-used_alone.
814 2006-05-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
816 * hpux-unwind.h (pa_fallback_frame_state): Handle return parameter
817 relocation and relocation stubs.
819 2006-05-08 Eric Christopher <echristo@apple.com>
821 * unwind-dw2-fde-darwin.c (examine_objects): Only check data
824 2006-05-08 Jan Hubicka <jh@suse.cz>
827 * cgraphunit.c (decide_is_function_needed): When not optimizing even
828 unused static functions are needed.
830 2006-05-08 Roger Sayle <roger@eyesopen.com>
833 * reload.c (find_reloads_toplev): Only return the simplified SUBREG
834 of a reg_equiv_constant if the result is a legitimate constant.
836 2006-05-08 Uros Bizjak <uros@kss-loka.si>
839 * config/i386/i386.c (ix86_rtx_costs) [FLOAT_EXTEND]: For
840 standard 80387 constants, raise the cost to prevent
841 compress_float_constant() to generate load from memory.
843 2006-05-08 Kazu Hirata <kazu@codesourcery.com>
845 * config/arm/constraints.md (c): Fix a typo.
847 * see.c, tree-flow-inline.h, tree-phinodes.c: Fix comment
850 2006-05-07 H.J. Lu <hongjiu.lu@intel.com>
853 * config/i386/pmmintrin.h (_mm_monitor): Remove macro. Use
855 (_mm_mwait): Likewise.
857 * config/i386/sse.md (sse3_mwait): Replace "mwait\t%0, %1" with
859 (sse3_monitor): Make it 32bit only.
860 (sse3_monitor64): New. 64bit monitor.
862 2006-05-07 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
865 * config/i386/i386.c (classify_argument): Skip fields with invalid
868 2006-05-07 Richard Guenther <rguenther@suse.de>
870 PR tree-optimization/27409
871 * tree-ssa-structalias.c (get_constraint_for_component_ref):
872 Do not try to find zero-sized subvars.
874 2006-05-07 Richard Guenther <rguenther@suse.de>
876 PR tree-optimization/27136
877 * tree-ssa-loop-niter.c (get_val_for): Correct function
878 comment, assert requirements.
879 (loop_niter_by_eval): Stop processing if the iterated
880 value did not simplify.
882 2006-05-07 Mircea Namolaru <namolaru@il.ibm.com>
884 * opts.c (flag_see): remove its setting at -O3.
886 2006-05-07 Richard Earnshaw <rearnsha@arm.com>
888 * genpeep.c (main): Make insn-peep.c depend on flags.h.
889 * arm/constraints.md: New file.
890 * arm.h (REG_CLASS_FROM_LETTER_P): Delete.
891 (CONST_OK_FOR_ARM_LETTER, CONST_OK_FOR_THUMB_LETTER)
892 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_ARM_LETTER)
893 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT_STR_ARM)
894 (CONSTRAINT_LEN, EXTRA_CONSTRAINT_THUMB, EXTRA_CONSTRAINT_STR)
895 (EXTRA_MEMORY_CONSTRAINT): Likewise.
896 * arm.md: Include constraints.md.
897 (thumb_movsi_insn): Use satisfies_constraint_J.
898 (movhi, movqi): Use satisfies_constraint_I.
900 2006-04-29 Anatoly Sokolov <aesok@post.ru>
902 * config/avr/avr.h (CRT_BINUTILS_SPECS): Fixed crt* file name
903 for atmeg a645 device.
905 2006-05-06 Richard Guenther <rguenther@suse.de>
907 PR tree-optimization/27151
908 * tree-vect-transform.c (vectorizable_condition): Punt on
909 values that have a different type than the condition.
911 2006-05-03 Aldy Hernandez <aldyh@redhat.com>
914 * c-parser.c (c_parser_cast_expression): Only insert casts into
915 hash table if pointer.
916 * function.c (used_types_insert_helper): Rename from
918 (used_types_insert): Call used_types_insert_helper.
919 * function.h (used_types_insert): Accept only one argument.
921 2006-05-05 David Edelsohn <edesohn@gnu.org>
923 * config/rs6000/rs6000.md: Mark all "X" constraints for clobbered
924 scratch with output modifier.
926 2006-05-04 David Edelsohn <edelsohn@gnu.org>
929 * config/rs6000/rs6000.md (stmsi_power): Mark clobber constraint
930 with output modifier.
932 2006-05-04 Richard Sandiford <richard@codesourcery.com>
935 * config/mips/mips.c (mips_symbolic_address_p): Return true
936 for SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL, SYMBOL_TPREL,
937 SYMBOL_GOTTPREL, and SYMBOL_TLS.
939 2006-05-04 Richard Guenther <rguenther@suse.de>
941 PR tree-optimization/14287
942 PR tree-optimization/14844
943 PR tree-optimization/19792
944 PR tree-optimization/21608
945 PR tree-optimization/27090
946 * tree-ssa-pre.c (try_combine_conversion): New function.
947 (compute_avail): After constructing the value-handle
948 expression, use try_combine_conversion to combine NOP_EXPRs
949 with previous value-handle expressions and use the result if it
952 2006-05-04 Joseph S. Myers <joseph@codesourcery.com>
954 * config/mips/linux64.h (DWARF_OFFSET_SIZE): Remove.
956 2006-05-04 Jan Hubicka <jh@suse.cz>
959 * cgraphunit.c (verify_cgraph_node): Fix cgraph_hash testing.
961 2006-05-04 Bernd Schmidt <bernd.schmidt@analog.com>
963 * config/bfin/predicates.md (const01_rtx): Tell generator programs
964 that this only matches CONST_INTs. All users changed to VOIDmode
967 * config/bfin/bfin.c: Include "optabs.h".
968 (bfin_rtx_costs): Some costs for vector operations, to allow combine
970 (enum bfin_builtins): Add a number of fractional and vector builtins.
971 (bfin_init_builtins): Likewise.
972 (struct builtin_description, bdesc_2arg, bdesc_1arg): New.
973 (safe_vector_operand, bfin_expand_binop_builtin,
974 bfin_expand_unop_builtin): New functions.
975 (bfin_expand_builtin): Handle the new builtins.
976 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
979 2006-05-04 Leehod Baruch <leehod@il.ibm.com>
982 * Makefile.in (OBJS-common): Add see.o.
983 (see.o): Add dependencies.
984 * common.opt (fsee): New flag for the see optimization was added.
985 * opts.c (flag_see): Initialized.
986 * passes.c (init_optimization_passes, pass_see): New pass.
987 * rtl.h (see_main): Declaration as extern.
988 * timevar.def (TV_SEE): New.
989 * tree-pass.h (pass_see): Declaration as extern.
990 * invoke.texi (-fsee): Document.
991 * recog.c (validate_simplify_insn): New function.
992 * recog.h (validate_simplify_insn): Declaration as extern.
993 * df-problems.c (df_chain_dump): Check for NULL.
995 2006-05-04 Kenneth Zadeck <zadeck@naturalbridge.com>
996 Daniel Berlin <dberlin@dberlin.org>
998 * cfgrtl.c (insert_insn_bb_end_new): New function.
999 * basic-block.h (insert_insn_bb_end_new): Declaration as extern.
1001 2006-05-04 Leehod Baruch <leehod.baruch@weizmann.ac.il>
1003 * df.h (struct web_entry): Moved from web.c.
1004 (union_defs): Declaration as extern.
1005 (unionfind_root): Likewise.
1006 (unionfind_union): Likewise.
1007 * web.c (struct web_entry): Moved to df.h.
1008 (unionfind_root): Remove static declaration.
1009 (unionfind_union): Likewise.
1010 (union_defs): Likewise and generalize to use callback function.
1011 (web_main): Update arguments for union_defs function call.
1013 2006-05-04 Richard Guenther <rguenther@suse.de>
1015 PR tree-optimization/26447
1016 * tree-ssa-pre.c (realify_fake_stores): For necessary loads
1017 produce SSA_NAME copies before the store stmt to avoid
1018 breaking exception handling.
1020 2006-05-04 Jakub Jelinek <jakub@redhat.com>
1023 * gimplify.c (omp_is_private): If var is shared in some outer context,
1024 return false instead of true. Stop searching on parallel context
1027 2006-05-03 Alexandre Oliva <aoliva@redhat.com>
1030 * coverage.c: Use get_gcov_unsigned_t() instead of
1031 unsigned_type_node all over.
1033 2006-05-02 Andrew MacLeod <amacleod@redhat.com>
1035 PR tree-optimization/27381
1036 * tree-phinodes.c (remove_phi_arg_num): When moving a phi argument,
1037 maintain the same immediate_use links.
1038 * tree-ssa-operands.c (dump_immediate_uses_for): Show iteration marker
1039 node rather than segfaulting.
1041 2006-05-03 Jakub Jelinek <jakub@redhat.com>
1044 * gimplify.c (gimplify_scan_omp_clauses): Compare OMP_CLAUSE_CODE
1045 rather than TREE_CODE to OMP_CLAUSE_REDUCTION. Set also GOVD_SEEN
1046 bit for OMP_CLAUSE_REDUCTION_PLACEHOLDER.
1048 2006-05-02 Daniel Berlin <dberlin@dberlin.org>
1050 Fix PR tree-optimization/26626
1051 * tree-ssa-structalias.c (compute_points_to_sets): For now, solve
1053 * tree-ssa-operands.c (access_can_touch_variable): Allow
1054 typecasting through union pointers.
1056 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1059 * omp-low.c (maybe_lookup_decl_in_outer_ctx): New function.
1060 (build_outer_var_ref): Use maybe_lookup_decl_in_outer_ctx
1061 to find if var will be a global variable even in the nested context.
1062 (omp_copy_decl): Only check for global variable at the end, it might
1063 be overridden in outer contexts.
1064 (scan_sharing_clauses): For global variables don't create a field.
1065 (lower_rec_input_clauses): Do nothing for global shared variables.
1066 Emit a barrier at the end of ILIST if there were any decls in both
1067 firstprivate and lastprivate clauses.
1068 (lower_send_clauses): Do nothing for global variables except for
1071 2006-05-02 Zdenek Dvorak <dvorakz@suse.cz>
1073 * tree.c (unsigned_type_for, signed_type_for): Make sure a type
1074 of the correct signedness is returned.
1076 2006-05-02 Jeff Law <law@redhat.com>
1078 PR tree-optimization/27364
1079 * tree-vrp.c (vrp_int_const_binop): Fix detection of overflow from
1080 multiply expressions.
1082 2006-05-02 Tom Tromey <tromey@redhat.com>
1084 * tree-flow-inline.h (op_iter_init_phiuse): Fixed typo.
1086 2006-05-02 Kazu Hirata <kazu@codesourcery.com>
1089 * arm.c (arm_output_mi_thunk): Use pc-relative addressing when
1090 -mthumb -fPIC are used.
1092 2006-05-02 Stanislaw Skowronek <skylark@linux-mips.org>
1093 Joshua Kinard <kumba@gentoo.org>
1096 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Avoid 32-bit moves
1097 with 64-bit pointers.
1099 2006-05-02 Paul Brook <paul@codesourcery.com>
1101 * config/arm/arm.c (add_minipool_forward_ref): Check if insn
1103 (create_fix_barrier): Check that a suitable barrier location is
1105 (arm_reorg): Include ftmp->address in allowable range of addresses.
1107 2006-05-02 David Billinghurst <David.Billinghurst@riotinto.com>
1110 * ada/env.c (__gnat_clearenv): Use unsetenv() to clear environment
1113 2006-05-02 Jakub Jelinek <jakub@redhat.com>
1116 * gimplify.c (gimplify_scan_omp_clauses): Handle INDIRECT_REF
1117 around RESULT_DECL for result passed by reference.
1118 (gimplify_expr): Call omp_notice_variable when RESULT_DECL is seen.
1119 * omp-low.c (use_pointer_for_field): Don't look at
1120 DECL_HAS_VALUE_EXPR_P for RESULT_DECLs.
1121 (scan_omp_1): Call remap_decl on RESULT_DECLs.
1122 (lower_rec_input_clauses): Don't allocate VLA memory for the second
1123 time or var for passing by reference for
1124 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses. Allow creation of
1125 TREE_ADDRESSABLE variables when passing by reference.
1127 * omp-low.c (dump_omp_region): Fix output formatting.
1130 * omp-low.c (remove_exit_barrier): Handle NULL exit_bb.
1131 (expand_omp_parallel): Likewise.
1132 * tree-cfg.c (move_sese_region_to_fn): Likewise.
1135 * omp-low.c (lower_omp_sections): Call maybe_catch_exception
1136 on statement list containing also constructors and destructors.
1137 (lower_omp_single, lower_omp_for, lower_omp_parallel): Likewise.
1140 * except.c (duplicate_eh_regions): Fix clearing of
1141 cfun->eh->region_array entries.
1143 2006-05-01 DJ Delorie <dj@redhat.com>
1145 * configure.ac (gcc_cv_nm): Don't use an in-tree nm if
1147 (gcc_cv_objdump): Likewise.
1148 * configure: Regenerated.
1150 2006-05-01 Kazu Hirata <kazu@codesourcery.com>
1153 * config/arm/vfp.md (*arm_movdi_vfp): Correct the output
1154 templates for case 3 and 4.
1156 2006-05-01 DJ Delorie <dj@redhat.com>
1158 * vec.c: Include bconfig.h when appropriate.
1159 * Makefile.in (build/vec.o): Adjust dependencies.
1160 * mkconfig.sh: Make sure config.h isn't used for build machine
1163 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
1165 * tree-into-ssa.c (phis_to_rewrite, blocks_with_phis_to_rewrite): New
1167 (mark_phi_for_rewrite): New function.
1168 (insert_phi_nodes_for, mark_use_interesting): Call
1169 mark_phi_for_rewrite.
1170 (rewrite_update_phi_arguments): Traverse only phis in phis_to_rewrite.
1171 (update_ssa): Initialize and free phis_to_rewrite.
1173 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
1175 PR rtl-optimization/27291
1176 * loop-doloop.c (add_test, doloop_modify): Handle the case condition is
1177 folded to a constant.
1179 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
1181 PR tree-optimization/27283
1182 * tree-ssa-loop-ivopts.c (struct nfe_cache_elt): Store just trees,
1183 not whole # of iteration descriptions.
1184 (niter_for_exit): Return just # of iterations. Fail if # of iterations
1185 uses abnormal ssa name.
1186 (niter_for_single_dom_exit): Ditto.
1187 (find_induction_variables, may_eliminate_iv): Expect niter_for_exit to
1188 return just the number of iterations.
1190 2006-05-01 Zdenek Dvorak <dvorakz@suse.cz>
1192 PR tree-optimization/27144
1193 * tree-ssa-loop-niter.c (derive_constant_upper_bound): New function.
1194 (record_estimate): Only record constant upper bound.
1195 (infer_loop_bounds_from_undefined): Call
1196 compute_estimated_nb_iterations just once.
1197 (proved_non_wrapping_p): Renamed to ...
1198 (n_of_executions_at_most): ... this. Expect bound to be a constant.
1199 (convert_step_widening, scev_probably_wraps_p): Call
1200 n_of_executions_at_most instead of proved_non_wrapping_p.
1201 (substitute_in_loop_info): Do not replace values in bounds.
1202 * cfgloop.h (struct nb_iter_bound): Remove "additional" field. Update
1205 2006-05-01 Richard Henderson <rth@redhat.com>
1208 * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Move after
1209 c_parser_skip_to_pragma_eol. Convert to switch statement. Handle
1212 2006-05-01 Roger Sayle <roger@eyesopen.com>
1214 * c-typeck.c (parser_build_binary_op): Don't call the function
1215 unsigned_conversion_warning to spot operand/result type overflow.
1216 (build_binary_op): Instead, call convert_and_check instead of
1217 convert to report the problem when the operands are promoted.
1218 * c-common.c (unsigned_conversion_warning): Make static.
1219 * c-common.h (unsigned_conversion_warning): Delete prototype.
1221 2006-05-01 Richard Guenther <rguenther@suse.de>
1223 PR tree-optimization/26726
1224 * tree-ssa-loop-ivopts.c (idx_find_step): Mark source of the
1226 (find_interesting_uses_address): ... we work around here
1227 by folding INDIRECT_REFs in the substituted base.
1229 2006-05-01 Diego Novillo <dnovillo@redhat.com>
1231 * omp-low.c (dump_omp_region): Add newlines.
1233 2006-04-30 Roger Sayle <roger@eyesopen.com>
1235 * common.opt (Woverflow): New command line option.
1236 * c-common.c (constant_expression_warning): Check warn_overflow.
1237 (overflow_waring): Pass OPT_Woverflow to warning.
1238 (unsigned_conversion_warning): Likewise.
1239 (convert_and_check): Likewise.
1240 * doc/invoke.texi: Document new command line option.
1242 2006-04-30 David Edelsohn <edelsohn@gnu.org>
1244 * config/rs6000/rs6000.c (rs6000_override_options): Enable
1245 TARGET_NO_FP_IN_TOC for section anchors.
1246 (optimization_options): Enable section anchors for all
1247 non-"Objective" languages.
1249 2006-04-28 Eric Christopher <echristo@apple.com>
1251 * config/darwin-c.c (darwin_ms_struct): Move this
1252 (darwin_set_default_type_attributes): and this...
1253 * config/darwin.c: ... here.
1254 * config/darwin.h (darwin_ms_struct): Declare.
1256 2006-04-28 Andrew MacLeod <amacleod@redhat.com>
1258 * tree-ssa-dom.c (propagate_rhs_into_lhs): Fix assert clause.
1260 2006-04-28 Roger Sayle <roger@eyesopen.com>
1263 * c-typeck.c (struct spelling): Make I an unsigned HOST_WIDE_INT.
1264 (push_array_bounds): Delete prototype. Change BOUNDS argument to
1265 an unsigned HOST_WIDE_INT.
1266 (print_spelling): Use HOST_WIDE_INT_PRINT_UNSIGNED to output the
1268 (really_start_incremental_init): No need to call convert because
1269 bitsize_zero_node is already of type bitsizetype.
1270 (push_init_level): Extract the value of constructor_index as an
1271 unsigned HOST_WIDE_INT quantity, using tree_low_cst.
1272 (process_init_element): Likewise.
1274 2006-04-28 Joseph S. Myers <joseph@codesourcery.com>
1276 * gcc.c (process_command): Add program name to GCC_EXEC_PREFIX
1277 value before passing to make_relative_prefix.
1279 2006-04-28 Alan Modra <amodra@bigpond.net.au>
1282 * builtins.c (expand_builtin_memset): Expand val in original mode.
1284 2006-04-27 Eric Christopher <echristo@apple.com>
1286 * target-def.h (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Bracket
1287 with #ifndef/#endif.
1288 * config/darwin-c.c (darwin_ms_struct): New.
1289 (darwin_pragma_ms_struct): Ditto.
1290 (darwin_set_default_type_attributes): Ditto.
1291 * config/darwin-protos.h (darwin_pragma_ms_struct): Declare.
1292 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS):
1293 Register ms_struct pragma.
1294 * config/i386/darwin.h (REGISTER_TARGET_PRAGMAS): Declare.
1295 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Ditto.
1296 * config/rs6000/rs6000.c (rs6000_set_default_type_attributes): Call
1297 darwin_set_default_type_attributes if TARGET_MACHO.
1299 2006-04-27 Andrew MacLeod <amacleod@redhat.com>
1301 PR tree-optimization/26854
1302 * tree-vrp.c (remove_range_assertions): Use new Immuse iterator.
1303 * doc/tree-ssa.texi: Update immuse iterator documentation.
1304 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Use new iterator.
1305 * tree-ssa-dom.c (propagate_rhs_into_lhs): Use new iterator.
1306 * tree-flow-inline.h (end_safe_imm_use_traverse, end_safe_imm_use_p,
1307 first_safe_imm_use, next_safe_imm_use): Remove.
1308 (end_imm_use_stmt_p): New. Check for end of immuse stmt traversal.
1309 (end_imm_use_stmt_traverse): New. Terminate immuse stmt traversal.
1310 (move_use_after_head): New. Helper function to sort immuses in a stmt.
1311 (link_use_stmts_after): New. Link all immuses in a stmt consescutively.
1312 (first_imm_use_stmt): New. Get first stmt in an immuse list.
1313 (next_imm_use_stmt): New. Get next stmt in an immuse list.
1314 (first_imm_use_on_stmt): New. Get first immuse on a stmt.
1315 (end_imm_use_on_stmt_p): New. Check for end of immuses on a stmt.
1316 (next_imm_use_on_stmt): New. Move to next immuse on a stmt.
1317 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Use new iterator.
1318 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use new iterator.
1319 (perfect_nestify): Use new iterator.
1320 * tree-vect-transform.c (vect_create_epilog_for_reduction): Use new
1322 * tree-flow.h (struct immediate_use_iterator_d): Add comments.
1323 (next_imm_name): New field in struct immediate_use_iterator_d.
1324 (FOR_EACH_IMM_USE_SAFE, BREAK_FROM_SAFE_IMM_USE): Remove.
1325 (FOR_EACH_IMM_USE_STMT, BREAK_FROM_IMM_USE_STMT,
1326 FOR_EACH_IMM_USE_ON_STMT): New immediate use iterator macros.
1327 * tree-cfg.c (replace_uses_by): Use new iterator.
1328 * tree-ssa-threadedge.c (lhs_of_dominating_assert): Use new iterator.
1329 * tree-ssa-operands.c (correct_use_link): Remove.
1330 (finalize_ssa_use_ops): No longer call correct_use_link.
1332 2006-04-27 Stuart Hastings <stuart@apple.com>
1334 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): New.
1335 * config/t-darwin (crt3.o): Use it.
1336 * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Remove
1337 'pmode', use Pmode instead of SImode for SYMBOL_REF.
1338 * config/rs6000/rs6000.md (call_indirect_nonlocal_sysv,
1339 call_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
1340 call_value_nonlocal_sysv): Suffix with the "P" macro for 32/64
1343 2006-04-27 Roger Sayle <roger@eyesopen.com>
1345 * expmed.c (store_fixed_bit_field): If we're not optimizing for
1346 size, force the intermediate into a new pseudo rather instead of
1347 performing both a bitwise AND and a bitwise IOR in memory.
1349 2006-04-27 Richard Guenther <rguenther@suse.de>
1351 PR rtl-optimization/26685
1352 * params.def (PARAM_MAX_CSE_INSNS): Correct typo that named
1353 this one "max-flow-memory-locations".
1355 2006-04-27 Richard Guenther <rguenther@suse.de>
1357 PR tree-optimization/25148
1358 * tree-vrp.c (compare_values): Remove code dealing with
1359 comparisons against type min/max value. Honour overflow
1360 and negative constants in code dealing with comparisons
1361 of plus and minus expressions.
1362 (value_inside_range): Use fold_binary with LE_EXPR and
1363 GE_EXPR rather than compare_values.
1365 2006-04-27 Dirk Mueller <dmueller@suse.de>
1367 * config/i386/xmmintrin.h (_mm_shuffle_pi16): Declare
1370 2006-04-26 Kenneth Zadeck <zadeck@naturalbridge.com>
1372 * basic-block.h (safe_insert_insn_on_edge): Removed.
1373 * cfgrtl.c (mark_killed_regs, safe_insert_insn_on_edge): Removed.
1375 2006-04-26 David Edelsohn <edelsohn@gnu.org>
1376 Paolo Bonzini <bonzini@gnu.org>
1379 * combine.c (simplify_and_const_int_1): Use gen_int_mode.
1380 (simplify_and_const_int): Same.
1382 2006-04-26 Aldy Hernandez <aldyh@redhat.com>
1384 * tree-ssa-dse.c (dse_optimize_stmt): Remove unused variable USE.
1386 2006-04-26 Jakub Jelinek <jakub@redhat.com>
1389 * cgraph.c (cgraph_varpool_finalize_decl): Don't call
1390 cgraph_varpool_assemble_pending_decls if -fopenmp, unless
1391 cgraph_global_info_ready.
1394 * tree-cfg.c (find_outermost_region_in_block): Handle RESX_EXPR.
1397 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for if
1398 either decl or init is error_mark_node.
1401 * tree-flow.h (struct omp_region): Add sched_kind.
1402 * omp-low.c (expand_parallel_call): Use region->inner->sched_kind
1403 instead of extracting omp for data.
1404 (expand_omp_for): Save extracted sched_kind.
1406 2006-04-25 Roger Sayle <roger@eyesopen.com>
1408 * expmed.c (store_bit_field): Also check whether the bitsize is
1409 valid for the machine's "insv" instruction before moving the
1410 target into a pseudo for use with the insv.
1411 * config/i386/predicates.md (const8_operand): New predicate.
1412 * config/i386/i386.md (extv, extzv, insv): Use the new
1413 const8_operand predicate where appropriate.
1415 2006-04-25 DJ Delorie <dj@redhat.com>
1417 * doc/install.texi (Specific): Clarify that this is not a list of
1418 supported hosts or targets.
1420 2006-04-25 Richard Sandiford <richard@codesourcery.com>
1422 PR rtl-optimization/26725
1423 * cfgrtl.c (rtl_redirect_edge_and_branch_force): Set the source
1424 block's BB_DIRTY flag.
1426 2006-04-25 Geoffrey Keating <geoffk@apple.com>
1428 * dwarf2out.c (size_of_locs): Don't fill dw_loc_addr if there
1431 * dwarf2asm.c (dw2_asm_output_data): Don't generate RTL just
1432 to print an integer.
1434 2006-04-25 David Edelsohn <edelsohn@gnu.org>
1436 * varasm.c (align_variable): New function.
1437 (get_block_for_decl): Apply align_variable to DECL before
1438 calculating section information.
1439 (assemble_variable): Split out alignment computation.
1441 2006-04-25 Andreas Krebbel <krebbel1@de.ibm.com>
1443 * expmed.c (store_bit_field): Handle paradoxical subregs on big endian
1446 2006-04-25 Bernd Schmidt <bernd.schmidt@analog.com>
1448 * genmodes.c (make_vector_mode): Allow making VECTOR_MODE_INT of a
1449 MODE_PARTIAL_INT mode.
1450 * config/bfin/bfin-modes.def: Add V2PDI and V2SI.
1451 * config/bfin/bfin.c (print_operand): Add macflag and mac/msu modifiers
1453 (hard_regno_mode_ok): V2PDImode is ok for accumulators.
1454 * config/bfin/bfin.h (CLASS_MAX_NREGS, HARD_REGNO_NREGS): Handle
1456 * config/bfin/predicates.md (const01_operand, vec_shift_operand):
1458 * config/bfin/bfin.md (UNSPEC_MUL_WITH_FLAG, UNSPEC_MAC_WITH_FLAG):
1460 (MACFLAG_NONE, MACFLAG_T, MACFLAG_FU, MACFLAG_TFU, MACFLAG_IS,
1461 MACFLAG_IU, MACFLAG_W32, MACFLAG_M, MACFLAG_S2RND, MACFLAG_ISS2,
1462 MACFLAG_IH): Likewise.
1463 (movstricthi_1): Renamed from "*movstricthi".
1464 (load_accumulator, load_accumulator_pair, movsi_insv, insv,
1465 ssaddsi3, sssubsi3, ssnegsi2, signbitssi2, smaxhi3, sminhi3,
1466 abshi2, neghi2, ssneghi2, signbitshi2, movhi_low2high,
1467 movhi_high2high, movhi_low2low, movhi_high2low, movhiv2hi_low,
1468 movhiv2hi_high, composev2hi, movv2hi_hi, movv2hi_hi_low,
1469 movv2hi_hi_high, ssaddhi3, sssubhi3, ssaddv2hi3, sssubv2hi3,
1470 addsubv2hi3, subaddv2hi3, ssaddsubv2hi3, sssubaddv2hi3,
1471 sublohiv2hi3, subhilov2hi3, sssublohiv2hi3, sssubhilov2hi3,
1472 addlohiv2hi3, addhilov2hi3, ssaddlohiv2hi3, ssaddhilov2hi3,
1473 mulhisi_ll, mulhisi_lh, mulhisi_hl, mulhisi_hh, ssnegv2hi2,
1474 ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3, packv2hi,
1475 flag_mulhi, flag_mulhisi_parts, flag_machi, flag_machi_acconly,
1476 flag_macinithi, flag_macinit1hi, flag_mulv2hi, flag_mulv2hi_parts,
1477 flag_macv2hi_parts, flag_macv2hi_parts_acconly,
1478 flag_macinitv2hi_parts, flag_macinit1v2hi_parts): New patterns.
1480 * doc/rtl.texi (ss_ashift): Improve wording.
1482 2006-04-24 Geoffrey Keating <geoffk@apple.com>
1484 * dwarf2out.c (verify_marks_clear): New.
1485 (prune_unused_types): Call verify_marks_clear initially, not
1488 2006-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
1490 * rtl.def (SS_ASHIFT, SS_NEG): New codes.
1491 * doc/rtl.texi: Document them.
1492 * simplify-rtx.c (simplify_unary_operation,
1493 simplify_binary_operation_1): Don't abort when we see them.
1495 2006-04-24 Mark Mitchell <mark@codesourcery.com>
1498 2006-04-23 Mark Mitchell <mark@codesourcery.com>
1499 * configure.ac: Completely disregard languages that are not
1501 * configure: Regenerated.
1503 2006-04-24 Andrew Pinski <pinskia@gcc.gnu.org>
1504 Richard Guenther <rguenther@suse.de>
1506 PR tree-optimization/27236
1507 * tree-inline.c (copy_body_r): Make sure to copy
1508 TREE_THIS_VOLATILE flag.
1510 2006-04-24 Richard Guenther <rguenther@suse.de>
1513 * tree-complex.c (update_parameter_components): Don't handle
1514 unused parameters which have no default def.
1516 2006-04-24 Andrew Pinski <pinskia@gcc.gnu.org>
1517 Richard Guenther <rguenther@suse.de>
1519 PR tree-optimization/27218
1520 * tree-inline.c (expand_call_inline): Strip useless type
1521 conversions for the return slot address.
1523 2006-04-24 Richard Guenther <rguenther@suse.de>
1525 * cfgloop.h (struct loops): Remove unused field array. Reorder
1527 (LOOP_PREFETCH): Remove.
1529 2006-04-24 Richard Guenther <rguenther@suse.de>
1531 PR tree-optimization/22525
1532 * value-prof.c (tree_mod_pow2): Remove unnecessary temporary
1533 variable, adjust types of generated expressions.
1535 2006-04-23 H.J. Lu <hongjiu.lu@intel.com>
1537 * Makefile.in (c-convert.o): Add dependency on $(TARGET_H)
1538 (tree-vect-patterns.o): Likewise.
1540 (cselib.o): Likewise.
1541 (loop-doloop.o): Likewise.
1542 (regclass.o): Likewise.
1543 (reload1.o): Likewise.
1544 (explow.o): Replace target.h with $(TARGET_H).
1545 (ipa-prop.o): Likewise.
1546 (ipa-cp.o): Likewise.
1547 (ipa-inline.o): Likewise.
1548 (reorg.o): Likewise.
1549 (reg-stack.o): Likewise.
1551 2006-04-23 Eric Botcazou <ebotcazou@adacore.com>
1553 * tree-tailcall.c (pass_tail_recursion): Use gate_tail_calls too.
1555 2006-04-23 Mark Mitchell <mark@codesourcery.com>
1557 * print-tree.c (print_node): Print DECL_BIT_FIELD_TYPE.
1559 * configure.ac: Completely disregard languages that are not
1561 * configure: Regenerated.
1564 * c-common.h (c_build_bitfield_integer_type): Declare.
1565 * c-decl.c (c_build_bitfield_integer_type): Move to ...
1566 * c-common.c (c_build_bitfield_integer_type): ... here.
1568 2006-04-23 Roger Sayle <roger@eyesopen.com>
1571 * config/fr30/fr30.md (define_split): Avoid calling gen_lowpart on
1572 a SImode SUBREG of a floating point register after no_new_pseudos.
1574 2006-04-23 Roger Sayle <roger@eyesopen.com>
1576 * config/fr30/fr30.md (addsi_small_int): Use REGNO_PTR_FRAME_P to
1577 identify potentially eliminable registers to additionally catch
1578 VIRTUAL_INCOMING_ARGS_REGNUM.
1579 (addsi3): Update the conditions on when to use addsi_small_int.
1581 2006-04-23 Roger Sayle <roger@eyesopen.com>
1584 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Check REGNO for
1585 STACK_POINTER_RTX and FRAME_POINTER_RTX instead of comparing the
1586 rtx to stack_pointer_rtx or frame_pointer_rtx directly.
1588 2006-04-23 Eric Botcazou <ebotcazou@adacore.com>
1590 * fold-const.c (range_predecessor): Use operand_equal_p
1591 as the predicate for equality.
1592 (range_successor): Likewise.
1594 2006-04-22 Kazu Hirata <kazu@codesourcery.com>
1597 * config/soft-fp/op-common.h: Fix a typo.
1599 2006-04-22 Frank Ch. Eigler <fche@redhat.com>
1602 * common.opt (flag_mudflap_threads): Overload flag_mudflap.
1603 * tree-mudflap.c (flag_mudflap_threads): Derive from flag_mudflap.
1605 2006-04-22 Kazu Hirata <kazu@codesourcery.com>
1607 * config/soft-fp/op-common.h, double-int.h, tree-ssa-dom.c:
1609 * doc/tm.texi: Fix a typo.
1611 2006-04-21 Geoffrey Keating <geoffk@apple.com>
1613 * dwarf2out.c (struct die_struct): Document that die_sib makes
1614 a circular linked list.
1615 (FOR_EACH_CHILD): New.
1616 (reverse_die_lists): Delete.
1617 (reverse_all_dies): Delete.
1618 (add_dwarf_attr): Correct documentation.
1619 (remove_child_with_prev): New.
1620 (remove_child_TAG): Update for change to die_struct, use
1621 remove_child_with_prev.
1622 (add_child_die): Update for change to die_struct.
1623 (splice_child_die): Use remove_child_with_prev and add_child_die.
1624 (print_die): Use FOR_EACH_CHILD.
1625 (die_checksum): Likewise.
1626 (assign_symbol_names): Likewise.
1627 (output_location_lists): Likewise.
1628 (build_abbrev_table): Likewise.
1629 (calc_die_sizes): Likewise.
1630 (mark_dies): Likewise.
1631 (unmark_dies): Likewise.
1632 (unmark_all_dies): Likewise.
1633 (output_die): Likewise.
1634 (prune_unused_types_mark): Likewise.
1635 (prune_unused_types_walk): Likewise.
1636 (same_die_p): Update for change to die_struct.
1637 (break_out_includes): Likewise.
1638 (prune_unused_types_prune): Likewise.
1639 (add_sibling_attributes): Use FOR_EACH_CHILD, simplify logic.
1640 (prune_unmark_dies): Use FOR_EACH_CHILD, don't clear die_mark if
1642 (dwarf2out_finish): Don't call reverse_all_dies.
1644 2006-04-21 Eric Christopher <echristo@apple.com>
1646 * df-core.c, tree-outof-ssa.c, config/i386/i386.c: Fix typos
1647 in comments and function names.
1649 2006-04-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1652 * c-typeck.c (digest_init): Robustify.
1654 * c-typeck.c (pop_init_level): Simplify.
1656 2006-04-21 Steve Ellcey <sje@cup.hp.com>
1658 * config/pa/t-pa64: Add dependencies on $(GCC_PASSES).
1660 2006-04-21 Paul Brook <paul@codesourcery.com>
1662 * config/arm/arm.c (arm_override_options): Error on iWMMXt and
1663 hardware floating point.
1665 2006-04-21 David Edelsohn <edelsohn@gnu.org>
1667 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Add sfp to
1670 2006-04-21 Nick Clifton <nickc@redhat.com>
1672 * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Include
1675 2006-04-21 Alan Modra <amodra@bigpond.net.au>
1678 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
1679 C++ lang type in traceback table for Objective-C++.
1681 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Update comment.
1683 2006-04-20 H.J. Lu <hongjiu.lu@intel.com>
1685 * config/i386/i386.c (asm_preferred_eh_data_format): Reformat.
1687 2006-04-20 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1690 * tree-mudflap.c (mudflap_finish_file): Skip function when there
1691 were errors. Remove check for erroneous objects.
1693 2006-04-20 Jeff Law <law@redhat.com>
1695 PR tree-optimization/26854
1696 * tree-ssa-dse.c (dse_optimize_stmt): Avoid num_imm_uses when
1697 checking for zero or one use.
1698 * tree-ssa-dom.c (propagate_rhs_into_lhs): Similarly.
1699 * tree-cfgcleanup.c (merge_phi_nodes): Similarly.
1700 * tree-ssa-reassoc.c (negate_value): Similarly.
1701 (reassociate_bb): Similarly.
1703 2006-04-20 Jakub Jelinek <jakub@redhat.com>
1705 * c-pretty-print.c (pp_c_direct_abstract_declarator): Print
1706 TYPE_MAX_VALUE (TYPE_DOMAIN (t)) + 1 for ARRAY_TYPE rather
1707 than plain TYPE_MAX_VALUE (TYPE_DOMAIN (t)).
1709 2006-04-20 Alan Modra <amodra@bigpond.net.au>
1711 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Consume all
1712 fp regs if the last fp arg doesn't fit in regs.
1714 2006-04-20 Kaz Kojima <kkojima@gcc.gnu.org>
1717 * config/sh/sh.md (movsicc_true+3): Tweak condition for the case
1718 that the last insn has the REG_INC note.
1720 2006-04-19 Carlos O'Donell <carlos@codesourcery.com>
1721 Nathan Sidwell <nathan@codesourcery.com>
1724 * stor-layout.c (update_alignment_for_field): Do not align
1726 (place_union_field): Place union field at the start of the union.
1727 (place_field): Move ERROR_MARK check later, and use the current
1728 allocation position to maintain monotonicity.
1730 2006-04-19 Zdenek Dvorak <dvorakz@suse.cz>
1732 * dominance.c: Include timevar.h.
1733 (calculate_dominance_info): Use TV_DOMINANCE.
1734 * timevar.def (TV_DOMINANCE): New timevar.
1735 * Makefile.in (dominance.o): Add TIMEVAR_H dependency.
1737 2006-04-19 Andreas Krebbel <krebbel1@de.ibm.com>
1739 PR rtl-optimization/14261
1740 * ifcvt.c (noce_emit_move_insn): Call store_bit_field if the resulting
1741 move would be an INSV insn.
1742 (noce_process_if_block): Don't optimize if the destination is a
1743 ZERO_EXTRACT which can't be handled by noce_emit_move_insn.
1745 2006-04-19 Andreas Krebbel <krebbel1@de.ibm.com>
1747 * config/s390/s390.md: Add comments with the instructions emitted
1748 by an insn pattern if macros are used.
1750 2006-04-19 Alan Modra <amodra@bigpond.net.au>
1752 PR rtl-optimization/26026
1753 * fold-const.c (fold_binary): Optimize div and mod where the divisor
1754 is a known power of two shifted left a variable amount.
1756 2006-04-18 Geoffrey Keating <geoffk@apple.com>
1758 * dwarf2out.c (prune_unused_types_update_strings): Don't add strings
1759 to hash table twice when the debug_str section has SECTION_MERGE.
1761 2006-04-18 Joseph S. Myers <joseph@codesourcery.com>
1763 * config/soft-fp: New directory. From glibc.
1764 * config/soft-fp/t-softfp: New.
1765 * config/soft-fp/README: New.
1766 * mklibgcc.in: Handle LIB2FUNCS_EXCLUDE.
1767 * Makefile.in (LIB2FUNCS_EXCLUDE, SFP_MACHINE): New.
1768 (libgcc.mk): Pass LIB2FUNCS_EXCLUDE.
1769 (LIBGCC_DEPS): Add $(SFP_MACHINE).
1770 * config.gcc: Use rs6000/t-fprules-fpbit or
1771 rs6000/t-fprules-softfp and soft-fp/t-softfp together with
1773 * config/rs6000/sfp-machine.h: New. Based on glibc.
1774 * config/rs6000/t-fprules-fpbit, config/rs6000/t-fprules-softfp:
1776 * config/rs6000/t-fprules: Remove fp-bit rules.
1777 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Use +=.
1778 * config/rs6000/t-linux64: Likewise. Remove duplicates from
1779 LIB2FUNCS_EXTRA. Remove fp-bit rules.
1780 (softfp_wrap_start, softfp_wrap_end): New.
1782 2006-04-18 DJ Delorie <dj@redhat.com>
1784 * config/m32c/m32c.h (PTRDIFF_TYPE): Define.
1786 2006-04-18 Devang Patel <dpatel@apple.com>
1788 * doc/invoke.texi (-Wuninitialized): Clarify -O connection.
1790 2006-04-18 Nick Clifton <nickc@redhat.com>
1792 * config/sh/t-symbian: Add rule to build sh-c.o
1793 * config/sh/symbian.c (sh_symbian_mark_dllexport): Replace use
1794 of DECL_NON_ADDR_CONST_P with DECL_DLLIMPORT_P.
1795 (sh_symbian_encode_section_info): Likewise.
1797 2006-04-18 Andreas Krebbel <krebbel1@de.ibm.com>
1799 * builtins.c (expand_builtin_strcmp): Cover label definition of
1800 do_libcall with HAVE_cmpstrnsi.
1802 2006-04-18 Kazu Hirata <kazu@codesourcery.com>
1804 * function.c (temp_slots_at_level, max_slot_level): Use VEC
1806 * function.h (temp_slot_p): New.
1807 (function): Change the type of x_used_temp_slots to
1808 VEC(temp_slot_p,gc) *.
1810 2006-04-18 Nick Clifton <nickc@redhat.com>
1812 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove reference to
1813 flag_strength_reduce.
1815 * doc/tm.texi (TARGET_SECTION_TYPE_FLAGS): Fix typo.
1817 2006-04-18 Paolo Bonzini <bonzini@gnu.org>
1821 Partial revert of revision 112637
1822 2006-04-03 Paolo Bonzini <bonzini@gnu.org>
1823 Dale Johannesen <dalej@apple.com>
1826 * regclass.c (struct reg_pref): Update documentation.
1827 (regclass): Set prefclass to NO_REGS if memory is the best option.
1828 (record_reg_classes): Cope with a prefclass set to NO_REGS.
1830 2006-04-18 Paolo Bonzini <bonzini@gnu.org>
1832 PR tree-optimization/26821
1833 * tree-ssa-math-opts.c (get_constant_one): New.
1834 (insert_reciprocals): Use it.
1836 2006-04-17 Geoffrey Keating <geoffk@apple.com>
1838 * dwarf2out.c (free_AT): Delete.
1839 (remove_AT): Update string ref counts.
1840 (remove_child_TAG): Don't call free_die.
1842 (break_out_includes): Don't call free_die on DW_TAG_GNU_BINCL
1843 or DW_TAG_GNU_EINCL.
1844 (prune_unused_types_walk_attribs): Reset string refcounts.
1845 (prune_unused_types_update_strings): New.
1846 (prune_unused_types_prune): Don't make unnecessary stores. Don't
1847 call free_die. Do call prune_unused_types_update_strings.
1848 (prune_unused_types): Empty debug_str_hash.
1850 2006-04-17 Roger Sayle <roger@eyesopen.com>
1852 * expr.c (expand_assignment): Optimize away no-op moves where the
1853 source and destination are equal and have no side-effects.
1855 2006-04-17 Richard Guenther <rguenther@suse.de>
1858 * reload.c (push_reload): Guard calls to get_secondary_mem
1861 2006-04-16 Kazu Hirata <kazu@codesourcery.com>
1863 * alias.c (reg_base_value, old_reg_base_value): Change the
1864 type to VEC(rtx,gc) *.
1865 (REG_BASE_VALUE, find_base_value, record_set,
1866 init_alias_analysis): Use VEC instead of VARRAY.
1868 * alias.c (alias_sets): Change the type to
1869 VEC(alias_set_entry,gc) *.
1870 (get_alias_set_entry, new_alias_set, record_alias_subset): Use
1871 VEC instead of VARRAY.
1872 (last_alias_set): Remove.
1874 * cgraph.h (cgraph_edge_p): New.
1875 Update the prototype of cgraph_function_versioning.
1876 * cgraphunit.c (cgraph_copy_node_for_versioning,
1877 cgraph_function_versioning): Use VEC instead of VARRAY.
1878 * ipa-cp.c (ipcp_insert_stage): Likewise.
1880 2006-04-16 Roger Sayle <roger@eyesopen.com>
1883 * fold-const.c (fold_ternary): When converting "A ? B : C" into either
1884 "A op B" or "A op C", we may need to convert A to the type of B and C.
1886 2006-04-16 Adam Nemet <anemet@caviumnetworks.com>
1888 * target.h (struct gcc_target): Add mode_rep_extended.
1889 * rtlanal.c (num_sign_bit_copies_in_rep): New global.
1890 (init_num_sign_bit_copies_in_rep): Initialize it using
1892 (truncate_to_mode): Use it.
1893 (init_rtlanal): Call init_num_sign_bit_copies_in_rep.
1894 * targhooks.h (default_mode_rep_extended): Declare it.
1895 * targhooks.c (default_mode_rep_extended): Define it.
1896 * target-def.h (TARGET_MODE_REP_EXTENDED): New macro. Default to
1897 default_mode_rep_extended.
1898 (TARGET_INITIALIZER): Include it.
1899 * doc/tm.texi (Misc): Document it.
1900 * config/mips/mips.c (TARGET_TRUNCATED_TO_MODE): Override it.
1901 (mips_truncated_to_mode): New function.
1903 2006-04-16 Roger Sayle <roger@eyesopen.com>
1906 * expr.c (compress_float_constant): Copy the narrow constant into
1907 a new pseudo before extending it to its final width.
1909 2006-04-16 Roger Sayle <roger@eyesopen.com>
1910 Andrew Pinski <pinskia@gcc.gnu.org>
1911 Dale Johannesen <dalej@apple.com>
1914 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Add
1915 special case code to implement V8HImode and V16QImode with SSE2.
1917 2006-04-15 Roger Sayle <roger@eyesopen.com>
1919 * config/i386/i386.c (ix86_va_start): Ensure all integer constant
1920 trees are constructed with a suitable tree type.
1922 2006-04-15 Roger Sayle <roger@eyesopen.com>
1924 * tree.c (integer_zerop): Ignore TREE_CONSTANT_OVERFLOW.
1925 (integer_onep): Likewise.
1926 (integer_all_onesp): Likewise.
1927 (integer_pow2p): Likewise.
1928 (integer_nonzerop): Likewise.
1929 (real_zerop): Likewise.
1930 (real_onep): Likewise.
1931 (real_twop): Likewise.
1932 (real_minus_onep): Likewise.
1933 (int_size_in_bytes): Likewise.
1934 (host_integerp): Likewise.
1936 2006-04-15 Kazu Hirata <kazu@codesourcery.com>
1938 * cfgcleanup.c, config/dfp-bit.c, expr.c, fold-const.c,
1939 jump.c, mips-tfile.c, omp-low.c, sched-int.h,
1940 tree-ssa-loop-prefetch.c, tree-vrp.c: Fix comment typos.
1942 * tree-ssa-structalias.h (alias_info): Remove num_references.
1944 2006-04-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1946 * pa.md (output_bb patterns): Shorten long branch alternatives by 4.
1947 (output_bvb patterns): Likewise.
1948 * pa.c (output_bb): Use 'bb' insn for long branch case.
1949 (output_bvb): Likewise use '{bvb|bb}' for long branch case.
1950 (output_dbra): Use '{comb|cmpb}' for long branch case for alternative
1951 1. Correct length operand for alternatives 1 and 2.
1952 (output_movb): Use '{comb|cmpb}' for long branch case for alternatives
1953 1, 2 and 3. Correct length operand for alternatives 1, 2 and 3.
1955 2006-04-14 Roger Sayle <roger@eyesopen.com>
1957 * tree-cfg.c (make_edges, make_omp_sections_edges, move_stmt_r,
1958 is_ctrl_altering_stmt): Reinstate RTH's changes from r112935 that
1959 were accidentally reverted by r112959.
1961 2006-04-15 Jakub Jelinek <jakub@redhat.com>
1964 * except.h (eh_region_outermost): New prototype.
1965 * except.c (eh_region_outermost): New function.
1966 * tree-cfg.c (find_outermost_region_in_block): Use it.
1968 2006-04-14 Kazu Hirata <kazu@codesourcery.com>
1970 * local-alloc.c (rest_of_handle_local_alloc): Use VEC instead
1972 * reload1.c (reg_equiv_memory_loc_varray): Rename to
1973 reg_equiv_memory_loc_vec. Change the type to VEC(rtx,gc) *.
1974 (init_reload, reload): Use VEC instead of VARRAY.
1975 * reload.h: Update the prototype for
1976 reg_equiv_memory_loc_varray.
1978 2006-04-14 Alexey Starovoytov <alexey.starovoytov@sun.com>
1979 Eric Botcazou <ebotcazou@libertysurf.fr>
1981 * config/sparc/sparc.c (emit_and_preserve): Allocate space for the
1984 2005-04-13 Uros Bizjak <uros@kss-loka.si>
1987 * builtins.c (expand_builtin_int_roundingfn): Use expand_normal()
1988 to expand fallback builtin function call.
1990 2006-04-14 Alan Modra <amodra@bigpond.net.au>
1993 * builtins.c: (expand_builtin_memset): Stabilize args before expansion
1994 and emit libcall here in case the builtin fails.
1995 (expand_builtin_strcmp): Always emit the libcall here on failure.
1997 2006-04-14 Kazu Hirata <kazu@codesourcery.com>
1999 * basic-block.h (REG_BASIC_BLOCK): Use VEC instead of VARRAY.
2000 * flow.c (reg_n_info): Change the type to
2001 VEC(reg_info_p,heap) *.
2002 * regclass.c (allocate_reg_info, free_reg_info): Use VEC
2004 * regs.h (reg_info_p): New.
2005 (REG_N_REFS, REG_FREQ, REG_N_SETS, REG_N_DEATHS,
2006 REG_N_CALLS_CROSSED, REG_N_THROWING_CALLS_CROSSED,
2007 REG_LIVE_LENGTH, REGNO_FIRST_UID, REGNO_LAST_UID): Use VEC
2010 2006-04-13 Eric Botcazou <ebotcazou@adacore.com>
2012 * params.def (PARAM_MAX_SCHED_READY_INSNS): New parameter,
2014 * params.h (MAX_SCHED_READY_INSNS): New macro.
2015 * haifa-sched.c: (queue_to_ready): Re-queue insns for the next cycle
2016 past MAX_SCHED_READY_INSNS during the first scheduling pass.
2017 (schedule_block): Delay insns past MAX_SCHED_READY_INSNS in
2018 the ready list for 1 cycle during the first scheduling pass.
2019 * doc/invoke.texi (--param): New parameter max-sched-ready-insns.
2021 2006-04-13 Richard Henderson <rth@redhat.com>
2024 * gimple-low.c (lower_omp_directive): Remove dead code.
2025 (lower_stmt): Do nothing except for openmp, except for OMP_PARALLEL.
2026 * gimplify.c (gimplify_expr): Update for OMP_RETURN, OMP_CONTINUE.
2027 * omp-low.c (struct omp_region): Move to tree-flow.h.
2028 (root_omp_region): Export.
2029 (omp_regions, lookup_omp_region): Remove.
2030 (determine_parallel_type): Update for struct omp_region changes.
2031 (dump_omp_region): Dump regions with block numbers.
2032 (new_omp_region): Take type and block instead of stmt; malloc
2034 (free_omp_region_1, free_omp_regions): New.
2035 (expand_parallel_call): Take entry_stmt as argument; update for
2036 changes to omp_region.
2037 (remove_exit_barrier): Rewrite to update OMP_RETURN_NOWAIT.
2038 (remove_exit_barriers): New.
2039 (expand_omp_parallel): Update for struct omp_region changes.
2040 (expand_omp_synch): Likewise.
2041 (expand_omp): Likewise.
2042 (expand_omp_for_static_nochunk): Likewise; update for OMP_CONTINUE.
2043 (expand_omp_for_static_chunk): Likewise.
2044 (expand_omp_for): Likewise.
2045 (expand_omp_for_generic): Likewise; emit the proper GOMP_loop_end call.
2046 (expand_omp_sections): Similarly, with GOMP_sections_end.
2047 (expand_omp_single): New.
2048 (build_omp_regions_1): Update for OMP_CONTINUE.
2049 (execute_expand_omp): Call remove_exit_barriers, free_omp_regions.
2050 (lower_omp_sections): Expand with OMP_CONTINUE, do not collect
2051 OMP_SECTIONS_SECTIONS.
2052 (lower_omp_single_simple): Don't emit barrier here.
2053 (lower_omp_single_copy): Likewise.
2054 (lower_omp_single): Fix bindings, and lower to straightline now.
2055 (lower_omp_master, lower_omp_ordered): Likewise.
2056 (lower_omp_critical): Likewise.
2057 (lower_omp_for): Likewise. Emit OMP_CONTINUE.
2058 * tree-cfg.c (make_edges): Collect an omp_region tree, use it for
2059 omp edges, free it afterward.
2060 (make_omp_sections_edges): Remove.
2061 (is_ctrl_altering_stmt): Don't bother checking flag_openmp.
2062 (move_stmt_r): Handle OMP_CONTINUE.
2063 * tree-flow.h (struct omp_region): Move from omp-low.c. Switch
2064 statement pointers to basic blocks. Add type member.
2065 (root_omp_region, new_omp_region, free_omp_regions): Declare.
2066 * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN, OMP_CONTINUE.
2067 * tree-inline.c (estimate_num_insns_1): Likewise.
2068 * tree-pretty-print.c (dump_generic_node): Likewise.
2069 * tree-ssa-operands.c (get_expr_operands): Likewise.
2070 * tree.def (OMP_SECTIONS): Remove OMP_SECTIONS_SECTIONS operand.
2071 (OMP_RETURN): Rename from OMP_RETURN_EXPR.
2072 (OMP_CONTINUE): New.
2073 * tree.h (OMP_DIRECTIVE_P): Add OMP_CONTINUE.
2074 (OMP_SECTIONS_SECTIONS): Remove.
2075 (OMP_SECTION_LAST): New.
2076 (OMP_RETURN_NOWAIT): New.
2078 2006-04-13 Roger Sayle <roger@eyesopen.com>
2080 * fold-const.c (native_encode_vector, native_interpret_real):
2081 Correct obvious mistakes in the previous check-in.
2083 2006-04-13 Roger Sayle <roger@eyesopen.com>
2085 * fold-const.c (native_encode_expr): New function to encode
2086 the target representation of an INTEGER_CST, REAL_CST, COMPLEX_CST
2087 or VECTOR_CST into a specified buffer.
2088 (native_encode_int): New function.
2089 (native_encode_real): New function.
2090 (native_encode_complex): New function.
2091 (native_encode_vector): New function.
2092 (native_interpret_expr): Inverse of native_encode_expr to convert
2093 a target representation into an INTEGER_CST, REAL_CST etc...
2094 (native_interpret_int): New function.
2095 (native_interpret_real): New function.
2096 (native_interpret_complex): New function.
2097 (native_interpret_vector): New function.
2098 (fold_view_convert_expr): New function to constant fold/evaluate
2099 a VIEW_CONVERT_EXPR of a suitable constant expression.
2100 (fold_unary) <VIEW_CONVERT_EXPR>: Call fold_view_convert_expr.
2101 Change call of build1 to fold_build1 when constructing a
2104 2006-04-13 Paolo Bonzini <bonzini@gnu.org>
2105 Ulrich Weigand <uweigand@de.ibm.com>
2108 * config/rs6000/rs6000.h (EASY_VECTOR_15_ADD_SELF): Require n
2111 2006-04-13 Alan Modra <amodra@bigpond.net.au>
2114 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
2115 optimize to lo_sum for DFmode if !TARGET_FPRS.
2117 2006-04-12 Kazu Hirata <kazu@codesourcery.com>
2119 * tree-ssa-alias.c (set_initial_properties, init_alias_info,
2120 delete_alias_info, compute_flow_sensitive_aliasing,
2121 group_aliases): Use VEC instead of VARRAY.
2122 * tree-ssa-structalias.c (update_alias_info): Likewise.
2123 * tree-ssa-structalias.h (alias_info): Change the type of
2124 processed_ptrs to VEC(tree,heap) *.
2126 2006-04-12 J"orn Rennecke <joern.rennecke@st.com>
2129 * config/sh/lib1funcs.h: New file, broken out of:
2130 * config/sh/lib1funcs.asm.
2131 * config/sh/lib1funcs.h (DR00, DR01, DR20, DR21, DR40, DR41):
2133 * config/sh/lib1funcs.asm (udivsi3_i4): Use them.
2134 * config/sh/lib1funcs-Os-4-200.asm: New file.
2135 * config/sh/embed-elf.h (LIBGCC_SPEC): Use -lgcc-Os-4-200.
2136 * config/sh/t-sh (OPT_EXTRA_PARTS): New variable.
2137 (EXTRA_MULTILIB_PARTS): Include it.
2138 ($(T)sdivsi3_i4i-Os-4-200.o): New rule.
2139 ($(T)udivsi3_i4i-Os-4-200.o, $(T)libgcc-Os-4-200.a): Likewise.
2140 * config/sh/t-superh (EXTRA_MULTILIB_PARTS): Include OPT_EXTRA_PARTS.
2141 * config/sh/sh.h (OVERRIDE_OPTIONS): Recognize -mdiv=call-table for
2144 2006-04-12 Kazu Hirata <kazu@codesourcery.com>
2146 * Makefile.in (TREE_SSA_LIVE_H): Add vecprim.h.
2147 * tree-ssa-live.c (tpa_init, tpa_remove_partition, tpa_delete,
2148 tpa_compact, root_var_init, type_var_init): Use VEC instead of
2150 * tree-ssa-live.h: Include vecprim.h.
2151 (tree_partition_associator_d): Change the type of
2152 first_partition to VEC(int,heap) *.
2153 (tpa_first_partition): Use VEC instead of VARRAY.
2155 * Makefile.in (GTFILES): Move functions.h after tree.h.
2156 * function.c (reset_block_changes, record_block_change,
2157 check_block_change, free_block_changes): Use VEC instead of
2159 * function.h (function): Change the type of
2160 ib_boundaries_block to VEC(tree,gc) *.
2161 * tree-inline.c (copy_cfg_body): Initialize
2162 ib_boundaries_block to NULL instead of (varray_type) 0.
2164 2006-04-12 Roger Sayle <roger@eyesopen.com>
2166 * expr.c (emit_group_store): Correct operand order in call to
2167 subreg_lowpart_offset. Always create paradoxical SUBREGs with
2168 a SUBREG_BYTE of zero.
2170 2006-04-12 Richard Guenther <rguenther@suse.de>
2172 * profile.c (compute_branch_probabilities): Remove code
2173 encapsulated in !ir_type (), which are remanents of the
2174 removed RTL profiling code.
2175 * rtl-profile.c: Remove.
2177 2006-04-12 Alan Modra <amodra@bigpond.net.au>
2179 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Update
2180 magic NULL_RTX comment.
2181 (function_arg): Store entire fp arg to mem if any part should go
2183 (rs6000_arg_partial_bytes): Adjust for above change.
2185 2006-04-11 Roger Sayle <roger@eyesopen.com>
2187 * dwarf2out.c (output_call_frame_info): Create debug_frame_section
2188 if it hasn't been initialized by dwarf2out_init.
2190 2006-04-11 John David Anglin <dava.anglin@nrc-cnrc.gc.ca>
2192 * pa.md (MAX_12BIT_OFFSET, MAX_17BIT_OFFSET): Define and use new
2193 symbolic constants in branch patterns.
2195 2006-04-11 Roger Sayle <roger@eyesopen.com>
2197 * caller-save.c: #include "addresses.h" after #include "tm_p.h".
2199 2006-04-11 Richard Sandiford <richard@codesourcery.com>
2201 PR rtl-optimization/27073
2202 * gcse.c (try_replace_reg): Revert last change. Continue to search
2203 for both REG_EQUAL and REG_EQUIV notes, but only perform replacements
2206 2006-04-11 Eric Botcazou <ebotcazou@libertysurf.fr>
2208 * config/sparc/sparc.c (function_arg_slotno) <BLKmode>: Handle
2209 aggregate types other than record and union types.
2210 (function_arg): Likewise.
2211 (function_arg_pass_by_reference): In 64-bit mode, return 0 for
2213 (function_value): In 64-bit mode, return objects that require it
2216 2006-04-11 Roger Sayle <roger@eyesopen.com>
2218 * dwarf2out.c (premark_used_types): Remove problematic prototype.
2220 2006-04-11 Jakub Jelinek <jakub@redhat.com>
2222 * gcc.c (LINK_COMMAND_SPEC): Move link_gomp after %o.
2224 2006-04-03 Jeff Law <law@redhat.com>
2227 * tree-ssa-copy.c (may_propagate_copy): Test flow sensitive
2228 alias information too.
2230 2006-04-10 Mike Frysinger <vapier@gentoo.org>
2232 * Makefile.in (gcc-cross): Add $(exeext) to target name.
2234 2006-04-10 Aldy Hernandez <aldyh@redhat.com>
2237 * dwarf2out.c (struct die_struct): Add die_perennial_p field.
2238 (premark_used_types_helper): New.
2239 (premark_used_types): New.
2240 (gen_subprogram_die): Call premark_used_types.
2241 (prune_unused_types_walk): Do not prune perennial dies.
2242 * function.c (used_types_insert): New.
2243 * function.h (struct function): Add used_types_hash field.
2244 (used_types_insert): Add prototype.
2245 * Makefile.in (FUNCTION_H): Depend on HASHTAB_H.
2246 * c-parser.c (c_parser_cast_expression): Save casted types in used
2249 2006-04-11 Mark Mitchell <mark@codesourcery.com>
2252 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Test
2253 rs6000_explicit_options.float_gprs.
2255 2006-04-10 Roger Sayle <roger@eyesopen.com>
2257 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Renamed
2258 from ix86_expand_vector_init_low_nonzero. Take an additional
2259 one_var argument indicating which element is non-zero. Support
2260 one_var != 0 for V4SFmode and V4SImode by permuting the result.
2261 (ix86_expand_vector_init): Call ix86_expand_vector_init_one_nonzero
2262 with one_var instead of ix86_expand_vector_init_low_nonzero.
2264 2006-04-10 Kazu Hirata <kazu@codesourcery.com>
2266 * Makefile.in (tree-into-ssa.o, tree-outof-ssa.o,
2267 tree-ssa-live.o, tree-ssa-alias.o, function.o, df-problems.o,
2268 global.o, cfglayout.o, lambda-code.o, reg-stack.o,
2269 build/genextract.o): Depend on vecprim.h.
2270 * cfglayout.c, df-problems.c, function.c, genextract.c,
2271 global.c, lambda-code.c, reg-stack.c, tree-into-ssa.c,
2272 tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Include
2276 2006-04-10 Geoffrey Keating <geoffk@apple.com>
2278 * dwarf2out.c (struct dw_attr_struct): Remove dw_attr_next.
2279 Declare VECs of this type.
2280 (struct die_struct): Make field die_attr a VEC of dw_attr_struct.
2281 (remove_children): Delete.
2282 (add_dwarf_attr): Use VEC routines.
2283 (add_AT_flag): Update for changes to add_dwarf_attr.
2284 (add_AT_int): Likewise.
2285 (add_AT_unsigned): Likewise.
2286 (add_AT_long_long): Likewise.
2287 (add_AT_vec): Likewise.
2288 (add_AT_string): Likewise.
2289 (add_AT_die_ref): Likewise.
2290 (add_AT_fde_ref): Likewise.
2291 (add_AT_loc): Likewise.
2292 (add_AT_loc_list): Likewise.
2293 (add_AT_addr): Likewise.
2294 (add_AT_lbl_id): Likewise.
2295 (add_AT_lineptr): Likewise.
2296 (add_AT_macptr): Likewise.
2297 (add_AT_offset): Likewise.
2298 (add_AT_range_list): Likewise.
2299 (get_AT): Use VEC_iterate.
2300 (remove_AT): Use VEC_ordered_remove.
2301 (free_die): Fold remove_children into here; have it use VEC_iterate.
2302 (print_die): Use VEC_iterate on attrs.
2303 (reverse_die_lists): Don't reverse attr lists.
2304 (die_checksum): Use VEC_iterate on attrs.
2305 (same_die_p): Likewise.
2306 (output_location_lists): Likewise.
2307 (build_abbrev_table): Likewise.
2308 (size_of_die): Likewise.
2309 (unmark_all_dies): Likewise.
2310 (output_abbrev_section): Likewise.
2311 (output_die): Likewise.
2312 (prune_unused_types_walk_attribs): Likewise.
2314 2006-04-10 Eric Botcazou <ebotcazou@libertysurf.fr>
2316 * doc/install.texi (*-*-solaris2*): Point to the configure page.
2318 2006-04-10 Jakub Jelinek <jakub@redhat.com>
2321 * dwarf2out.c (is_symbol_die): Return true also for namespaces.
2323 2006-04-09 Roger Sayle <roger@eyesopen.com>
2325 * expr.c (store_constructor): Don't bother clearing target if
2326 we're about to assign a vector to it using vec_init_optab.
2328 2006-04-10 Daniel Berlin <dberlin@dberlin.org>
2330 * tree-ssa-alias.c (lhs_may_store_to): New function.
2331 (recalculate_used_alone): Handle LHS of calls.
2333 2006-04-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2337 * config.gcc (hppa*64*-*-hpux11*): Add 'libgcc_stub.a' to extra_parts.
2338 * pa64-hpux.h (LIB_SPEC): Correct typo. Don't append milli.a.
2339 (LINK_GCC_C_SEQUENCE_SPEC): Define. Append milli.a here.
2340 (PA_CXA_FINALIZE_STUB, PA_JV_REGISTERCLASSES_STUB): Delete defines.
2341 (PA_INIT_FINI_HACK): Rename to PA_CRTBEGIN_HACK.
2342 (PA_CRTBEGIN_HACK): Ensure __do_global_ctors_aux is placed in text
2343 section. Delete PA_CXA_FINALIZE_STUB and PA_JV_REGISTERCLASSES_STUB
2344 stubs. Add ".align 8" directives before all ".dword" directives.
2345 (GTHREAD_USE_WEAK): Revise comment.
2346 (TARGET_ATTRIBUTE_WEAK): Define.
2347 * pa/t-pa64 (LIBGCCSTUB_OBJS): Add new rules for stublib.c, rfi-stub.o,
2348 dfi-stub.o, cxaf-stub.o and jvrc-stub.o.
2349 * stublib.c: New file.
2354 * pa.md (cbranch patterns): Revise arguments used in calls to
2355 output_cbranch, output_bb and output_bvd. Add long branch length
2357 (fbranch patterns): Handle long branches.
2358 (jump): Revise length check. Revise arguments for output_lbranch call.
2359 Add long branch length attributes.
2360 (decrement_and_branch_until_zero): Add long branch length attributes.
2361 (output_movb, output_parallel_addb and output_parallel_movb patterns):
2362 Likewise. Revise arguments for output_parallel_addb and
2363 output_parallel_movb calls.
2364 * pa-protos.h (output_cbranch, output_lbranch, output_bb, output_bvb,
2365 output_parallel_movb and output_parallel_addb): Update prototypes.
2366 * pa.c (output_cbranch): Revise arguments. Correct handling of
2367 nullification in long branches.
2368 (output_lbranch): Add new argument to control extraction of delay
2370 (output_bb): Handle long branches.
2371 (output_bvb, output_dbra, output_movb, output_parallel_movb,
2372 output_parallel_addb): Likewise.
2374 2006-04-09 Richard Sandiford <richard@codesourcery.com>
2376 PR rtl-optimization/27073
2377 * gcse.c (try_replace_reg): Just propagate into REG_EQUAL notes,
2380 2006-04-08 Daniel Berlin <dberlin@dberlin.org>
2382 * tree.h (tree_memory_tag): Add old_used_alone.
2383 (SMT_OLD_USED_ALONE): New macro.
2384 * tree-ssa-alias.c (recalculate_used_alone): Stop
2385 marking things for renaming unnecessarily.
2387 2006-04-08 Kazu Hirata <kazu@codesourcery.com>
2389 * builtins.c, config/arm/arm.c, config/i386/cygwin.h,
2390 config/i386/i386.c, config/ia64/ia64.c, config/s390/fixdfdi.h,
2391 config/sh/sh.c, config/sh/sh.h, df-scan.c, except.c,
2392 haifa-sched.c, optabs.c, rtl.h, sched-deps.c, sched-int.h,
2393 sched-rgn.c, tree-inline.h, tree-ssa-dom.c,
2394 tree-ssa-loop-prefetch.c, tree-ssa-operands.c,
2395 tree-vect-patterns.c, tree-vrp.c: Fix comment typos. Follow
2396 spelling convensions.
2397 * config/ia64/ia64.opt, doc/contrib.texi, doc/invoke.texi,
2398 doc/passes.texi, doc/tm.texi, doc/tree-ssa.texi: Fix comment
2399 typos. Follow spelling conventions.
2401 2006-04-07 DJ Delorie <dj@redhat.com>
2403 * config/m32c/m32c.c (m32c_function_arg): Structures are always
2404 passed on the stack.
2405 (m32c_init_cumulative_args): When a function returns a structure,
2406 always pass the pointer to that return area on the stack.
2407 (m32c_function_arg_advance): Don't increment the parameter number
2408 if we're processing the returned structure pointer.
2409 (pushm_info): Reverse order of registers.
2411 2006-04-07 Sebastian Pop <pop@cri.ensmp.fr>
2413 * tree-ssa-loop-niter.c (inverse, number_of_iterations_ne,
2414 assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
2415 number_of_iterations_le, number_of_iterations_cond, find_loop_niter,
2416 estimate_numbers_of_iterations_loop): Use build_int_cst instead of
2418 * tree-chrec.c (chrec_fold_multiply_poly_poly,
2419 chrec_fold_multiply): Same.
2420 * tree-ssa-loop-ivopts.c (strip_offset_1, force_expr_to_var_cost,
2421 force_expr_to_var_cost): Same.
2422 * tree-mudflap.c (mf_xform_derefs_1): Same.
2423 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Same.
2425 2006-04-07 David Edelsohn <edelsohn@gnu.org>
2427 * config/rs6000/rs6000.c (rs6000_rtx_costs) <CONST_DOUBLE>: Do not
2428 treat CONST_DOUBLE as INTVAL. and64_2_operands require an extra
2431 2006-04-07 Jan Hubicka <jh@suse.cz>
2433 * ipa-inline.c (cgraph_early_inlining): Collect garbage.
2435 2006-04-07 Richard Guenther <rguenther@suse.de>
2437 PR tree-optimization/26135
2438 * tree-ssa-copy.c (stmt_may_generate_copy): Handle memory
2439 loads for store copy-prop.
2440 (copy_prop_visit_stmt): Likewise.
2442 2006-04-05 Robert Millan <robertmh@gnu.org>
2444 * config/i386/linux.h: Add a comment to mark macros that are
2445 being overriden in config/k*bsd-gnu.h.
2446 * config/kfreebsd-gnu.h: Redefine GLIBC_DYNAMIC_LINKER instead of
2448 * config/knetbsd-gnu.h: Ditto.
2450 2006-04-06 Jan Hubicka <jh@suse.cz>
2454 * coverage.c (coverage_checksum_string): Reorganize loop to not read
2457 2006-04-06 Mike Stump <mrs@apple.com>
2459 * builtins.c (expand_builtin_longjmp):Use #ifdef instead of #if
2460 for HAVE_nonlocal_goto to be consistent.
2461 (expand_builtin_nonlocal_goto): Likewise.
2462 (expand_builtin_strcmp): Use #ifdef instead of #if
2463 for HAVE_cmpstrnsi to be consistent.
2465 2006-04-05 DJ Delorie <dj@redhat.com>
2467 * config/m32c/m32c.h (INCOMING_FRAME_SP_OFFSET): Adjust for m16c
2470 2006-04-05 Bernd Schmidt <bernd.schmidt@analog.com>
2472 * config/bfin/bfin.c (bfin_legitimate_address_p): Disallow
2473 got-relative addressing for anything but SImode.
2475 * config/bfin/lib1funcs.asm (modsi): P1/P2 can be call-clobbered
2476 even if the calling function doesn't modify them.
2478 2006-04-05 Richard Guenther <rguenther@suse.de>
2480 PR tree-optimization/26919
2481 * ipa-inline.c (cgraph_decide_inlining_incrementally): Fix argument
2482 to cgraph_estimate_size_after_inlining.
2484 2006-04-05 Alan Modra <amodra@bigpond.net.au>
2486 * reload.c (find_dummy_reload): Fix typo in 2006-04-03 change.
2488 2006-04-05 Sebastian Pop <pop@cri.ensmp.fr>
2490 PR tree-optimization/26996
2491 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Don't analyze
2492 VECTOR_TYPE variables.
2494 2006-04-05 Richard Guenther <rguenther@suse.de>
2496 PR tree-optimization/26763
2497 * fold-const.c (fold_comparison): Move folding of
2498 PTR + CST CMP PTR + CST ...
2499 (fold_binary): ... here. Fold only for EQ_EXPR and NE_EXPR.
2501 2006-04-05 Gerald Pfeifer <gerald@pfeifer.com>
2503 * doc/install.texi (Prerequisites): Refine some wording on
2504 bootstrapping and ksh.
2505 Move the version numbers of DejaGnu here from the testing section
2506 and fix casing of names.
2507 Fix markup and clarify wording for autogen requirements.
2508 Refer to GCJ instead of just java.
2509 Refer to SVN instead of CVS.
2510 Describe diffutils as useful instead of necessary.
2511 (Downloading the source): Refer to SVN instead of CVS.
2512 Adjust a link to our web site accordingly.
2513 (Configuration): Fix casing of Bison.
2514 (Building): Refer to SVN instead of CVS.
2515 Fix a sentence on the use of Bison and remove duplicate (and
2516 incorrect) version number of Bison requirement.
2517 Remove one redundant list of packages needed for building.
2518 (Specific): Avoid reference to CVS.
2520 2006-04-04 Eric Christopher <echristo@apple.com>
2522 * config/rs6000/rs6000.c (TARGET_MS_BITFIELD_LAYOUT_P): Define.
2523 (TARGET_USE_MS_BITFIELD_LAYOUT): Ditto.
2524 (rs6000_handle_struct_attribute): New.
2525 (rs6000_ms_bitfield_layout_p): Ditto.
2527 2006-04-04 Geoffrey Keating <geoffk@apple.com>
2529 * config/darwin-crt3.c (atexit): Pass &__dso_handle rather than
2530 NULL for dso parameter to atexit_common.
2532 2006-04-04 Eric Christopher <echristo@apple.com>
2534 * config/i386/i386.c (machopic_output_stub): Output \t
2535 between instructions and operands.
2537 2006-04-04 David Edelsohn <edelsohn@gnu.org>
2539 * config/rs6000/rs6000.c (num_insns_constant_wide): Change
2540 satisfies_constraint_[IL] to explicit tests on value.
2542 2006-04-04 Sebastian Pop <pop@cri.ensmp.fr>
2544 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
2545 set_nb_iterations_in_loop): Use build_int_cst instead of
2547 * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Use
2548 build_int_cst instead of convert.
2550 2006-04-04 Carlos O'Donell <carlos@codesourcery.com>
2552 * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document
2553 new value 2 for incoming.
2554 * function.c (expand_function_start): Call struct_value_rtx
2556 * config/sparc/sparc.md: Comment updated_return.
2557 * config/sparc/sparc.opt: Add -mstd-struct-return option.
2558 * config/sparc/sparc.c (sparc_struct_value_rtx): Use standard
2559 struct return if sparc_std_struct_return and incoming is 2.
2560 (print_operand): Do not adjust return if
2561 sparc_std_struct_return.
2563 2006-04-04 Roger Sayle <roger@eyesopen.com>
2565 * builtins.c (fold_builtin_sprintf): Use fold_convert instead of
2566 convert in the middle-end.
2567 * expr.c (store_expr, store_constructor, get_inner_reference,
2568 expand_expr_real_1, string_constant, try_casesi, try_tablejump):
2570 * tree.c (build_range_type): Likewise.
2572 2006-04-04 Tom Tromey <tromey@redhat.com>
2574 * doc/install.texi (Prerequisites): Mention jar.
2576 2006-04-04 Daniel Berlin <dberlin@dberlin.org>
2578 * doc/tree-ssa.texi (Preserving the virtual ssa form): New
2581 2006-04-04 Matthias Klose <doko@debian.org>
2583 * Makefile.in (unprotoize.o): Same dependencies as for protoize.o.
2584 * Makefile.in (s-macro_list): Conform to POSIX rules in single quoted
2587 2006-04-03 Geoffrey Keating <geoffk@apple.com>
2589 * doc/extend.texi (Function Attributes): Rewrite visibility
2590 attribute documentation.
2591 * doc/invoke.texi (C++ Dialect Options): Rewrite
2592 -fvisibility-inlines-hidden documentation to describe something
2593 entirely different, although in practise compatible.
2594 (Code Gen Options): Warn about system headers in -fvisibiltity=
2597 * doc/extend.texi (Other Builtins): Document that
2598 __builtin_nan is a compile-time constant only when its argument
2601 2006-04-03 Adam Nemet <anemet@caviumnetworks.com>
2603 * simplify-rtx.c (simplify_unary_operation_1) <TRUNCATE>: When
2604 trying to remove TRUNCATE check if all bits outside the new mode
2605 are identical to the sign bit.
2607 2006-04-03 Jeff Law <law@redhat.com>
2609 * tree-ssa-dom.c (propagate_rhs_into_lhs): Avoid useless folding
2610 and operand scanning in some common cases.
2612 2006-04-03 Paolo Bonzini <bonzini@gnu.org>
2613 Dale Johannesen <dalej@apple.com>
2616 * regclass.c (struct reg_pref): Update documentation.
2617 (regclass): Set prefclass to NO_REGS if memory is the best option.
2618 (record_reg_classes): Cope with a prefclass set to NO_REGS.
2619 * reload.c (find_reloads): Take PREFERRED_OUTPUT_RELOAD_CLASS
2620 into account. For non-registers, equate an empty preferred
2621 reload class to a `!' in the constraint; move the if clause to
2622 do so after those that reject the insn.
2623 (push_reload): Allow PREFERRED_*_RELOAD_CLASS to liberally
2625 (find_dummy_reload): Likewise.
2626 * doc/tm.texi (Register Classes): Document what it means
2627 if PREFERRED_*_RELOAD_CLASS return NO_REGS.
2628 * config/i386/i386.c (ix86_preferred_reload_class): Force
2629 using SSE registers (and return NO_REGS for floating-point
2630 constants) if math is done with SSE.
2631 (ix86_preferred_output_reload_class): New.
2632 * config/i386/i386-protos.h (ix86_preferred_output_reload_class): New.
2633 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): New.
2634 * config/i386/i386.md: Remove # register preferences.
2636 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
2639 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
2640 chrec_is_positive, set_nb_iterations_in_loop): Use a variable for
2641 the type of nb_iter.
2642 (instantiate_parameters_1): Convert the operands before calling
2643 chrec_fold_minus, chrec_fold_plus, or chrec_fold_multiply.
2644 * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Same.
2646 2006-04-02 Roger Sayle <roger@eyesopen.com>
2648 * builtins.c (dummy_object): Use build_int_cst instead of convert.
2649 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use fold_convert
2651 * dojump.c (do_jump): Likewise.
2652 * expr.h (ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE): Likewise.
2653 * gimplify.c (gimple_boolify, gimplify_init_constructor,
2654 gimplify_boolean_expr): Likewise.
2655 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
2656 * varasm.c (array_size_for_constructor): Likewise.
2657 * tree-object-size.c (compute_object_offset): Likewise.
2659 2006-04-02 Roger Sayle <roger@eyesopen.com>
2662 * expr.c (emit_group_store): Check whether simplify_gen_subreg returns
2663 NULL_RTX, indicating it couldn't create a valid paradoxical subreg.
2665 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
2667 PR tree-optimization/26939
2668 * tree-chrec.c (chrec_merge): Use eq_evolutions_p.
2670 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
2672 * tree-scalar-evolution.c (add_to_evolution_1): Pass an extra argument
2673 at_stmt. Convert the type of operands before calling
2674 build_polynomial_chrec.
2675 (add_to_evolution): Pass an extra argument at_stmt. Adjust the call to
2677 (follow_ssa_edge_in_rhs): Adjust call to add_to_evolution.
2678 (instantiate_parameters_1): Convert the type of operands before calling
2679 build_polynomial_chrec.
2680 * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
2681 chrec_fold_multiply_poly_poly, chrec_replace_initial_condition,
2682 reset_evolution_in_loop): Insert asserts to check the types of the
2684 (chrec_type): Moved...
2685 (eq_evolutions_p): Use operand_equal_p.
2686 * tree-chrec.h (build_polynomial_chrec): Insert an assert to check
2687 the types of the operands.
2688 (chrec_type): ...here.
2689 * tree-data-ref.c (create_data_ref): Convert the operands before
2690 calling chrec_replace_initial_condition.
2691 (same_access_functions, analyze_subscript_affine_affine,
2692 analyze_miv_subscript, all_chrecs_equal_p): Use eq_evolutions_p.
2693 (compute_subscript_distance, analyze_ziv_subscript,
2694 analyze_siv_subscript_cst_affine, compute_overlap_steps_for_affine_1_2,
2695 analyze_miv_subscript): Convert the operands before calling
2696 chrec_fold_minus or chrec_fold_plus.
2698 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
2700 * tree-data-ref.c (compute_all_dependences): Use a pointer to
2701 the dependence_relations vector.
2702 (compute_data_dependences_for_loop): Adjust call to
2703 compute_all_dependences.
2705 2006-04-01 Roger Sayle <roger@eyesopen.com>
2706 Richard Henderson <rth@redhat.com>
2708 * gimplify.c (gimplify_scan_omp_clauses) <OMP_CLAUSE_IF>: Call
2709 gimple_boolify on the condition before calling gimplify_expr.
2711 2006-03-31 Bob Wilson <bob.wilson@acm.org>
2713 * config/xtensa/lib1funcs.asm: Rename abi_entry/abi_return macros
2714 to leaf_entry/leaf_return. Change leaf_entry to add 16 bytes to
2715 the frame size. Update to use the new macros.
2716 * config/xtensa/ieee754-sf.S: Use new leaf_entry/leaf_return macros.
2717 * config/xtensa/ieee754-df.S: Likewise.
2719 2006-03-31 Richard Henderson <rth@redhat.com>
2721 * tree-cfg.c (make_ctrl_stmt_edges, make_exit_edges): Merge into...
2722 (make_edges): ... here. Control fallthru creation with a local
2723 variable. Do not play with fake edges.
2724 (make_omp_sections_edges): Don't set EDGE_ABNORMAL.
2725 (make_goto_expr_edges): Don't play with fake edges. Make for_call
2728 2006-04-01 Joseph S. Myers <joseph@codesourcery.com>
2730 * dwarf2.h (DW64_CIE_ID): Define.
2731 * dwarf2out.c (DWARF_CIE_ID): Define.
2732 (output_call_frame_info): Output 0xffffffff before standard 8-byte
2733 length header. Use DWARF_CIE_ID.
2734 (value_format): Use DW_FORM_data4 or DW_FORM_data8 for
2735 dw_val_class_loc_list depending on DWARF_OFFSET_SIZE.
2737 2006-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
2739 * config/sh/linux-atomic.asm: New file.
2740 * config/sh/t-linux (LIB2FUNCS_EXTRA): Add linux-atomic.asm.
2742 2006-03-31 DJ Delorie <dj@redhat.com>
2744 * config/m32c/cond.md: Set condition flags properly throughout.
2745 * config/m32c/minmax.md: Likewise.
2746 * config/m32c/prologue.md: Likewise.
2747 * config/m32c/bitops.md: Likewise.
2748 * config/m32c/muldiv.md: Likewise.
2749 * config/m32c/mov.md: Likewise.
2750 * config/m32c/addsub.md: Likewise.
2751 * config/m32c/m32c.md: Likewise.
2752 * config/m32c/jump.md: Likewise.
2753 * config/m32c/shift.md: Likewise.
2755 * config/m32c/cond.md (cmp<mode>): Call m32c_output_compare to
2756 conditionally output the pattern for this.
2757 * config/m32c/m32c.c (flags_needed_for_conditional): New.
2758 (m32c_compare_redundant): New.
2759 (m32c_output_compare): New.
2760 * config/m32c/m32c-protos.h (m32c_output_compare): New.
2762 * config/m32c/m32c.c (m32c_prepare_shift): Fix logic to clobber
2763 dest, not src. Allow other 4-byte modes.
2765 2006-03-30 Denis Chertykov <denisc@overta.ru>
2767 * doc/md.texi: Refer to avr/constraints.md instead of
2770 2006-03-30 Roger Sayle <roger@eyesopen.com>
2772 * expr.c (emit_group_store): Make BYTEPOS a HOST_WIDE_INT to
2773 signed vs. unsigned comparison failures on some hosts.
2775 2006-03-31 Alan Modra <amodra@bigpond.net.au>
2778 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Limit 2003-12-08
2779 change to FLOAT_REGS.
2781 * config/rs6000/rs6000.c (rs6000_explicit_options): Add ieee.
2782 (rs6000_override_options): Use it.
2783 (rs6000_handle_option): Set it. Set rs6000_explicit_options.abi
2784 only for -mabi=spe/no-spe and -mabi=altivec.
2786 2006-03-30 Geoffrey Keating <geoffk@apple.com>
2788 * config/darwin.h (LINK_COMMAND_SPEC): Don't try to protect %S with
2791 2006-03-30 Carlos O'Donell <carlos@codesourcery.com>
2793 * Makefile.in: Rename docdir to gcc_docdir.
2795 2006-03-30 Roger Sayle <roger@eyesopen.com>
2798 * expr.c (emit_group_store): Optimize group stores into a pseudo
2799 register by using a paradoxical subreg to initialize the destination
2800 if the first or last member of the group specifies a "low part".
2802 2006-03-30 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2805 * rtl.def (DEPS_LIST): Change type of the second operand to 'int'.
2806 * target.h (struct gcc_target.speculate_insn): Change type of the
2807 second parameter to 'int'.
2808 * lists.c (alloc_DEPS_LIST): Change signature. Update reference to
2809 the second operand of the DEPS_LIST.
2810 (copy_DEPS_LIST_list): Update reference to the second operand of the
2812 * rtl.h (alloc_DEPS_LIST): Update signature.
2813 * sched-int.h (ds_t): Change typedef to 'int'.
2814 (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
2816 2006-03-30 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2818 * haifa-sched.c (try_ready): Change condition to restore
2819 non-speculative pattern of the instruction.
2820 (process_insn_depend_be_in_spec): Code to keep probability of the
2821 speculative dependence non-decreasing.
2823 2006-03-30 Jie Zhang <jie.zhang@analog.com>
2825 * config/bfin/bfin.c (single_move_for_strmov): Renamed to...
2826 (single_move_for_movmem): ... this. Also change all uses.
2827 (bfin_expand_strmov): Renamed to...
2828 (bfin_expand_movmem): ... this. Also change all uses.
2829 * config/bfin/bfin.md (movstrsi): Renamed to...
2830 (movstrsi): ...this.
2832 2006-03-30 Paolo Bonzini <bonzini@gnu.org>
2834 PR tree-optimization/26830
2836 * tree-ssa-copy.c (copy_prop_visit_assignment): Do not check loop depth.
2837 (copy_prop_visit_stmt): Remove write-only variable ann.
2838 (init_copy_prop): Check variable loop depth here. Do not simulate
2839 memory-tag and virtual operand PHIs except for store copy prop.
2841 2006-03-30 Richard Guenther <rguenther@suse.de>
2843 * config/i386/i386.c: Remove builtins for SSE2 ABI intrinsic
2844 variants with double arguments.
2846 2006-03-29 David Edelsohn <edelsohn@gnu.org>
2848 * genpreds.c (write_tm_constrs_h): Delete variable p.
2849 * genconditions.c (write_header): Add tm-constrs.h to included
2851 * genpeep.c (main): Add toplev.h to included headers.
2852 * Makefile.in (build/gencondmd.o): Add tm-constrs.h dependency.
2853 (build/genpeep.o): Add toplev.h dependency.
2854 * config/rs6000/constraints.md: Add "W" constraint.
2856 2006-03-29 Roger Sayle <roger@eyesopen.com>
2858 * stor-layout.c (mode_for_size_tree): Remove restiction on type
2859 sizes by correctly testing whether the size fits a host integer.
2860 (initialize_sizetypes): Use set_min_and_max_values_for_integral_type
2861 to correctly set TYPE_MIN_VALUE and TYPE_MAX_VALUE to the full
2862 SImode range for the default sizetype and bitsizetype.
2864 2006-03-29 Roger Sayle <roger@eyesopen.com>
2866 * convert.c (convert_to_pointer): Preserve the TREE_OVERFLOW
2867 and TREE_CONSTANT_OVERFLOW bits of the argument. Return
2868 quickly if the argument is already of the correct type.
2869 Call fold_build1 instead of build1. Tidy up blank lines.
2871 2006-03-29 David Edelsohn <edelsohn@gnu.org>
2873 * genemit.c (main): Add tm-constrs.h to included headers.
2874 * genoutput.c (output_prologue): Add tm-constrs.h to included headers.
2875 * genpeep.c (main): Add tm-constrs.h to included headers.
2876 * genpreds.c (write_satisfies_constraint_fns): Rename to ...
2877 (write_tm_constrs_h): this and write complete file.
2878 (write_tm_preds_h): Do not emit satisfies_constraint fns.
2879 (write_insn_preds_c): Add tm-constrs.h to included headers.
2880 (gen_constrs): New variable.
2881 (parse_option): Parse "-c".
2882 (main): Invoke write_tm_constrs_h.
2883 * genrecog.c (write_header): Add tm-constrs.h to included headers.
2884 * Makefile.in (STAGECOPYSTUFF): Add tm-constrs.h.
2885 (object_out_file): Add tm-constrs.h dependency.
2886 (insn-emit.o): Same.
2887 (insn-output.o): Same.
2888 (insn-peep.o): Same.
2889 (insn-preds.o): Same.
2890 (insn-recog.o): Same.
2891 (tm-constsr.h): New target.
2892 (s-constrs-h): New target.
2894 * config/rs6000/constraints.md: New file.
2895 * config/rs6000/rs6000.c: Include tm-constrs.h.
2896 (num_insn_constant_wide): Convert to satisfies_constraint.
2897 (rs6000_rtx_costs): Convert to satisfies_constraint.
2898 * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Delete.
2899 (CONST_OK_FOR_LETTER_P): Delete.
2900 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
2901 (EXTRA_CONSTRAINT): Delete.
2902 (EXTRA_MEMORY_CONSTRAINT): Delete.
2903 (EXTRA_ADDRESS_CONSTRAINT): Delete.
2904 * config/rs6000/predicates.md: Convert to satisfies_constraint.
2905 * config/rs6000/rs6000.md: Include constraints.md. Convert to
2906 satisfies_constraint.
2908 * config/i386/i386.c: Include tm-constrs.h.
2910 2006-03-29 Sebastian Pop <pop@cri.ensmp.fr>
2912 * tree-loop-linear.c (compute_data_dependences_for_loop): Adjust calls.
2913 * tree-data-ref.c (find_data_references_in_loop,
2914 compute_data_dependences_for_loop): Use pointers to VEC.
2915 (analyze_all_data_dependences): Adjust calls.
2916 * tree-data-ref.h (find_data_references_in_loop,
2917 compute_data_dependences_for_loop): Adjust declarations.
2918 * tree-vect-analyze.c (vect_analyze_data_refs): Adjust call to
2919 compute_data_dependences_for_loop.
2921 2006-03-29 Paul Brook <paul@codesourcery.com>
2923 * config/arm/vfp.md (movsf_vfp): Disparage w<->r alternatives.
2926 2006-03-29 Sebastian Pop <pop@cri.ensmp.fr>
2928 PR tree-optimization/26859
2929 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Avoid
2931 (convert_step): Remove TREE_OVERFLOW and TREE_CONSTANT_OVERFLOW flags
2932 for the step after fold_convert.
2934 2006-03-29 Paul Brook <paul@codesourcery.com>
2936 * reload1.c (choose_reload_regs): Check for all RTX_AUTOINC operators.
2937 (inc_for_reload): Handle PRE_MODIFY and POST_MODIFY addresses.
2939 2006-03-29 Paul Brook <paul@codesourcery.com>
2942 * targhooks.c (default_narrow_bitfield): New fuction.
2943 * targhooks.h (default_narrow_bitfield): add prototype.
2944 * target.h (gcc_target): Add narrow_volatile_bitfield.
2945 * target-def.h (TARGET_NARROW_VOLATILE_BITFIELD): Define.
2946 * stor-layout.c (get_best_mode): Use targetm.narrow_volatile_bitfield.
2947 * doc/tm.texi: Document TARGET_NARROW_VOLATILE_BITFIELDS.
2948 * config/arm/arm.c (TARGET_NARROW_VOLATILE_BITFIELD): Define.
2950 2006-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
2952 * config.gcc (s390-*-linux-*, s390x-*-linux*): Add t-dfprules to
2954 * config/s390/s390.c (S390_scalar_mode_supported_p): New function.
2955 (NR_C_MODES): Add TDmode, DDmode and SDmode.
2956 (s390_output_pool_entry, ): Accept MODE_DECIMAL_FLOAT.
2957 (s390_hard_regno_mode_ok): Disallow TDmode in integer regs.
2958 (s390_function_arg_float): Allow SDmode and DDmode values to be
2959 passed in floating point registers.
2960 (s390_function_arg_integer, s390_function_value): Replace MODE_FLOAT
2961 check with SCALAR_FLOAT_MODE_P.
2962 (TARGET_SCALAR_MODE_SUPPORTED_P): Define target macro.
2964 2006-03-28 Zdenek Dvorak <dvorakz@suse.cz>
2966 PR tree-optimization/25985
2967 * tree-ssa-loop-niter.c (number_of_iterations_le,
2968 number_of_iterations_ne): Make comments more precise.
2969 (number_of_iterations_cond): Add only_exit argument. Use the
2970 fact that signed variables do not overflow only when only_exit
2972 (loop_only_exit_p): New.
2973 (number_of_iterations_exit): Pass result of loop_only_exit_p to
2974 number_of_iterations_cond.
2976 2006-03-28 Zdenek Dvorak <dvorakz@suse.cz>
2978 PR tree-optimization/26643
2979 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not handle
2982 2006-03-28 Kaz Kojima <kkojima@gcc.gnu.org>
2984 * config/sh/sh.md (udivsi3_i4_int): Clobber MACH_REG and MACL_REG.
2985 (divsi3_i4_int): Likewise.
2987 2006-03-28 Roger Sayle <roger@eyesopen.com>
2989 * expr.c (emit_group_store): Only create a new pseudo reg if the
2990 quantity it needs to hold isn't already a suitable pseudo.
2992 2006-03-28 Jeff Law <law@redhat.com>
2994 * timevar.def (TV_TREE_PHI_CPROP): New timevar.
2995 * tree-ssa-dom.c (pass_phi_only_cprop): Use it.
2997 2006-03-28 Roger Sayle <roger@eyesopen.com>
2999 * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & Y) ^ Y as
3000 the equivalent ~X & Y, and the symmetry related transformations.
3001 (fold_binary) <BIT_AND_EXPR>: Similarly, fold (X ^ Y) & Y as
3002 ~X & Y, and symmetry related transforms.
3004 2006-03-28 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3006 Revert my 2006-03-27 patches.
3008 2006-03-28 Roger Sayle <roger@eyesopen.com>
3010 * fold-const.c (fold_unary) <NOP_EXPR>: Fold (T1)(~(T2)X) as
3011 ~(T1)X, when T1 and T2 are integer types of the same precision
3012 and (T2)X isn't an extension.
3014 2006-03-28 Jeff Law <law@redhat.com>
3016 PR tree-optimization/26796
3017 * tree-ssa-dom.c (propagate_rhs_into_lhs): Queue blocks which
3018 need EH edge cleanups rather than purging them immediately.
3019 (eliminate_degenerate_phis): Handle queued EH cleanups.
3021 2006-03-28 Daniel Berlin <dberlin@dberlin.org>
3023 * tree-ssa-alias.c (create_sft): Initially inherit TREE_ADDRESSABLE
3026 2006-03-27 Roger Sayle <roger@eyesopen.com>
3029 * fold-const.c (fold_binary) <MINUS_EXPR>: Call fold_convert to
3030 cast BIT_NOT_EXPR operand to the correct type.
3032 2006-03-27 Sebastian Pop <pop@cri.ensmp.fr>
3034 * tree-loop-linear.c: Don't include varray.h.
3035 (gather_interchange_stats, try_interchange_loops,
3036 linear_transform_loops): Use VEC instead of VARRAY.
3037 * lambda-mat.c: Don't include varray.h.
3038 * tree-chrec.c: Same.
3039 * lambda-trans.c: Same.
3040 * tree-vectorizer.c (new_loop_vec_info, destroy_loop_vec_info): Use
3041 VEC instead of VARRAY.
3042 * tree-vectorizer.h: Idem.
3043 * tree-data-ref.c (dump_data_references,
3044 dump_data_dependence_relations, dump_dist_dir_vectors, dump_ddrs,
3045 initialize_data_dependence_relation, finalize_ddr_dependent,
3046 compute_all_dependences, find_data_references_in_loop,
3047 compute_data_dependences_for_loop, analyze_all_data_dependences,
3048 free_dependence_relation, free_dependence_relations,
3049 free_data_refs): Idem.
3050 * tree-data-ref.h (data_reference_p, subscript_p): New.
3051 (data_dependence_relation, DDR_SUBSCRIPT, DDR_NUM_SUBSCRIPTS): Use
3052 VEC instead of VARRAY.
3053 (DDR_SUBSCRIPTS_VECTOR_INIT): Removed.
3054 (find_data_references_in_loop, compute_data_dependences_for_loop,
3055 dump_ddrs, dump_dist_dir_vectors, dump_data_references,
3056 dump_data_dependence_relations, free_dependence_relations,
3057 free_data_refs): Adjust declaration.
3058 (lambda_transform_legal_p): Move declaration here...
3059 * tree-vect-analyze.c (vect_analyze_data_ref_dependences,
3060 vect_compute_data_refs_alignment, vect_verify_datarefs_alignment,
3061 vect_enhance_data_refs_alignment, vect_analyze_data_ref_accesses,
3062 vect_analyze_data_refs): Use VEC instead of VARRAY.
3063 * lambda.h (lambda_transform_legal_p): ...from here.
3064 * lambda-code.c (lambda_transform_legal_p): Use VEC instead of VARRAY.
3065 * tree-vect-transform.c (vect_update_inits_of_drs): Idem.
3066 * Makefile.in (tree-loop-linear.o, lambda-mat.o, lambda-trans.o,
3067 tree-chrec.o): Don't depend on VARRAY_H.
3069 2006-03-27 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3071 * rtl.def (Copyright): Update date.
3072 (DEPS_LIST): Change type of the second operand to 'int'.
3073 * target.h (Copyright): Update date.
3074 (struct gcc_target.speculate_insn): Change type of the second parameter
3076 * lists.c (Copyright): Update date.
3077 (alloc_DEPS_LIST): Change signature. Update reference to the second
3078 operand of the DEPS_LIST.
3079 (copy_DEPS_LIST_list): Update reference to the second operand of the
3081 * rtl.h (Copyright): Update date.
3082 (alloc_DEPS_LIST): Update signature.
3083 * sched-int.h (Copyright): Update date.
3084 (ds_t): Change typedef to 'int'.
3085 (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
3087 2006-03-27 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3089 * haifa-sched.c (Copyright): Update date.
3090 (try_ready): Change condition to restore non-speculative pattern
3092 (process_insn_depend_be_in_spec): Code to keep probability of the
3093 speculative dependence non-decreasing.
3095 2006-03-27 Bernd Schmidt <bernd.schmidt@analog.com>
3097 * regrename.c (replace_oldest_value_addr): Initialize a variable to
3098 shut up the compiler.
3100 2006-03-27 J"orn Rennecke <joern.rennecke@st.com>
3102 * config/sh/t-sh ($(T)libic_invalidate_array_4-100.a): Fix rule
3103 to use lib prefix for target.
3104 ($(T)libic_invalidate_array_4-200.a): Likewise.
3105 ($(T)libic_invalidate_array_4a.a): Likewise.
3107 2006-03-27 Andrew Stubbs <andrew.stubbs@st.com>
3108 J"orn Rennecke <joern.rennecke@st.com>
3110 * superh.opt: New file.
3111 * sh.c (boardtype, osruntime): Remove.
3112 * superh.h (SUBTARGET_OPTIONS): Remove.
3113 * config.gcc (sh*-superh-elf): Add sh/superh.opt to extra_options.
3115 * config.gcc (sh*-*-*): Don't use c-c ranges for tr. Quote sed
3116 arguments with ^ and/or [].
3118 * config.gcc (sh-*-*): Add quoting to account for quirk of
3120 Replace == with = in enable_incomplete_targets test.
3122 * config/sh/superh.h (SUBTARGET_LINK_SPEC): Replace LITTLE_ENDIAN_BIT
3123 with MASK_LITTLE_ENDIAN.
3125 * config.gcc (sh*-superh-elf): Add sh/superh.h to tm_file.
3126 * config/sh/sh.opt: Added to some comments.
3127 * config/sh/superh.h: Removed some chaff.
3129 * config/sh/sh.opt: Add m4-[1234]00* options.
3130 * config/sh/sh.c (sh_handle_option): Likewise.
3131 * config/sh/t-sh (IC_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Define.
3132 (ic_invalidate_array_4-100.o): New rule.
3133 ($(T)libic_invalidate_array_4-100.a): Likewise.
3134 (ic_invalidate_array_4-200.o): Likewise.
3135 ($(T)libic_invalidate_array_4-200.a): Likewise.
3136 (ic_invalidate_array_4a.o): Likewise.
3137 ($(T)libic_invalidate_array_4a.a): Likewise.
3138 * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Add IC_EXTRA_PARTS.
3139 * config/sh/embed-elf.h (LIBGCC_SPEC): Add clauses for m4-100*,
3141 * config/sh/crt1.asm: Merged in profiling code.
3142 * config/sh/superh.h (STARTFILE_SPEC): Override.
3143 * config/sh/t-superh: Override EXTRA_MULTILIB_PARTS.
3144 Add rules for $(T)crt1-mmu.o, $(T)gcrt1-mmu.o and $(T)gcrt1.o.
3145 * config.gcc (sh*-superh-elf): Add t-superh to tmake_file.
3147 * t-sh (MULTILIB_MATCHES): Add sh4-[1245]00* variants.
3148 * config/sh/t-superh: Removed now-redundant MULTILIB_OPTIONS /
3149 MULTILIB_DIRNAMES / MULTILIB_MATCHES settings.
3151 * sh.opt (mpretend-cmove): New option.
3152 * sh.h (OPERRIDE_OPTIONS): Switch it off if not TARGET_SH1.
3153 * sh.md (movsicc_t_false, movsicc_t_tru): New patterns.
3154 (movsicc): Add TARGET_PRETEND_CMOVE code.
3156 2006-03-27 Andreas Krebbel <krebbel1@de.ibm.com>
3158 * config/s390/s390-protos.h (s390_hard_regno_mode_ok,
3159 s390_class_max_nregs): New function prototypes.
3160 * config/s390/s390.c (REGNO_PAIR_OK): New macro.
3161 (s390_hard_regno_mode_ok, s390_class_max_nregs): New functions.
3162 * config/s390/s390.h (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK,
3163 CLASS_MAX_NREGS): Macro bodies replaced by function calls.
3165 2006-03-26 Geoffrey Keating <geoffk@apple.com>
3167 * dwarf2out.c (add_location_or_const_value_attribute): Call
3168 tree_add_const_value_attribute if nothing else works.
3169 (reference_to_unused): New.
3170 (rtl_for_decl_init): Use reference_to_unused to decide whether
3171 to output an initializer.
3173 2006-03-27 Alan Modra <amodra@bigpond.net.au>
3176 * config/rs6000/rs6000.md (DF reg move peephole): Prevent
3177 peephole removing spe frob_di_df_2.
3179 2006-03-26 Sebastian Pop <pop@cri.ensmp.fr>
3181 * tree-data-ref.c: Rename DDR_SIZE_VECT to DDR_NB_LOOPS.
3182 (subscript_dependence_tester_1): Declared.
3183 (print_dir_vectors, print_dist_vectors): New.
3184 (debug_data_dependence_relation): New.
3185 (dump_data_dependence_relation): Print more details.
3186 (initialize_data_dependence_relation): Initialize DDR_LOOP_NEST.
3187 (analyze_subscript_affine_affine): Don't ICE when gcd_alpha_beta is 0.
3188 (save_dist_v, save_dir_v, add_outer_distances,
3189 build_classic_dist_vector_1): New.
3190 (build_classic_dist_vector): Rewrite to work on DDR_LOOP_NEST.
3191 Don't test for lambda_vector_lexico_pos.
3192 (same_access_functions, add_multivariate_self_dist,
3193 add_other_self_distances, dir_from_dist): New.
3194 (build_classic_dir_vector): Replace implementation almost identical to
3195 build_classic_dist_vector with a walk of DDR_DIST_VECTS with a call to
3197 (subscript_dependence_tester_1): New.
3198 (subscript_dependence_tester): Handle the lexicographically negative
3199 distance vectors by recomputing the dependence relation.
3200 (compute_affine_dependence): Remove parameter loop_nest_depth.
3201 (compute_self_dependence): Don't call compute_subscript_distance.
3202 (compute_all_dependences): Remove parameters nb_loops, loop_nest_depth.
3203 Add a parameter for the loop_nest.
3204 (find_loop_nest_1, find_loop_nest): New.
3205 (compute_data_dependences_for_loop): Compute the loop nest, and give
3206 up if the nest is not well formed.
3207 * tree-data-ref.h (loop_p): New.
3208 (struct data_dependence_relation): Replace size_vect field with
3209 loop_nest, a vec of loops.
3210 (DDR_SIZE_VECT): Renamed DDR_NB_LOOPS.
3211 (DDR_LOOP_NEST): New.
3212 (print_dir_vectors, print_dist_vectors,
3213 debug_data_dependence_relation): Declared.
3214 (index_in_loop_nest): New.
3215 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Use
3216 DDR_LOOP_NEST and index_in_loop_nest to determine the dependence
3219 2006-03-25 Adam Nemet <anemet@caviumnetworks.com>
3221 * simplify-rtx.c (simplify_relational_operation): Call
3222 simplify_relational_operation_1 even if mode is VOIDmode.
3224 2006-03-25 Daniel Berlin <dberlin@dberlin.org>
3226 PR tree-optimization/26804
3227 * tree.h (DECL_CALL_CLOBBERED): New macro.
3228 (tree_decl_common): Add call_clobbered_flag.
3229 * tree-flow-inline.h (is_call_clobbered): Use DECL_CALL_CLOBBERED.
3230 (mark_call_clobbered): Set DECL_CALL_CLOBBERED.
3231 (clear_call_clobbered): Clear DECL_CALL_CLOBBERED.
3232 (mark_non_addressable): Ditto.
3233 * tree-ssa.c (verify_call_clobbered): New function.
3234 (verify_alias_info): Use it.
3235 * tree-pass.h (pass_reset_cc_flags): New prototype.
3236 * tree-ssa-alias.c (pass_reset_cc_flags): New structure.
3237 (reset_cc_flags): New function.
3238 * passes.c (init_optimization_passes): Call reset_cc_flags after
3239 initializing referenced_vars.
3241 2006-03-25 Uros Bizjak <uros@kss-loka.si>
3242 Roger Sayle <roger@eyesopen.com>
3245 * fold-const.c (fold_binary) [RDIV_EXPR]: Do not optimize A / A
3246 to 1.0 for non-real operands. Implement A / A optimization for
3249 2006-03-25 H.J. Lu <hongjiu.lu@intel.com>
3251 * config/i386/i386.c (size_cost): Correct the comment for
3252 cost of storing fp registers.
3253 (i386_cost): Likewise.
3254 (i486_cost): Likewise.
3255 (pentium_cost): Likewise.
3256 (pentiumpro_cost): Likewise.
3257 (k6_cost): Likewise.
3258 (athlon_cost): Likewise.
3259 (k8_cost): Likewise.
3260 (pentium4_cost): Likewise.
3261 (nocona_cost): Likewise.
3262 (generic64_cost): Likewise.
3263 (generic32_cost): Likewise.
3265 2006-03-24 Denis Chertykov <denisc@overta.ru>
3267 * config/avr/avr-protos.h (extra_constraint): Delete.
3268 (extra_constraint_Q): New declaration.
3269 * config/avr/constraints.md: New file.
3270 * config/avr/avr.md: Include it.
3271 (REG_X, REG_Y, REG_Z, REG_W): New constants.
3272 (TMP_REGNO, ZERO_REGNO): Likewise.
3273 (UNSPEC_STRLEN, UNSPEC_INDEX_JMP): Likewise.
3274 * config/avr/avr.c (avr_reg_class_from_letter): Delete.
3275 (extra_constraint): Delete.
3276 (extra_constraint_Q): Test for memory constraint 'Q'.
3277 * config/avr/avr.h (REG_X,REG_Y,REG_Z,REG_W): Delete.
3278 (REG_CLASS_FROM_LETTER): Delete.
3279 (CONST_OK_FOR_LETTER_P): Delete.
3280 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3281 (EXTRA_CONSTRAINT): Delete.
3282 (TMP_REGNO): Delete.
3283 (ZERO_REGNO): Delete.
3285 2006-03-24 Jeff Law <law@redhat.com>
3287 * tree-ssa-dom.c (propagate_rhs_into_lhs): Don't call update_stmt
3288 directly. Call mark_new_vars_to_rename slightly earlier.
3290 2006-03-24 Geoffrey Keating <geoffk@apple.com>
3292 * dwarf2out.c (is_c_family): Understand new DWARF3 language types.
3294 (gen_compile_unit_die): Use new language types for Objective-C and
3296 (dwarf2out_decl): Use is_cxx rather than testing explicitly against
3297 DW_LANG_C_plus_plus.
3300 * config/t-darwin (crt3.o): Work around bug 26840.
3301 * config/darwin-crt3.c: Rewrite.
3302 * config/darwin.h (STARTFILE_SPEC): Don't use -l for crt3.o.
3304 2006-03-24 Carlos O'Donell <carlos@codesourcery.com>
3306 * doc/invoke.texi: Document -femit-class-debug-always
3307 * common.opt: Add -femit-class-debug-always.
3309 2006-03-24 Andreas Krebbel <krebbel1@de.ibm.com>
3311 * config/s390/s390.c (s390_decompose_address): Allow SImode for
3312 index and base register.
3313 (s390_expand_plug_operand, legitimate_address_p, preferred_la_operand_p,
3314 print_operand_address, print_operand): Replaced REG_OK_FOR_BASE_STRICT_P
3315 with REGNO_OK_FOR_BASE_P and REG_OK_FOR_INDEX_STRICT_P with
3316 REGNO_OK_FOR_INDEX_P.
3317 * config/s390/s390.h (REGNO_OK_FOR_INDEX_P): Replaced check with
3319 (REG_OK_FOR_INDEX_NONSTRICT_P, REG_OK_FOR_BASE_NONSTRICT_P,
3320 REG_OK_FOR_INDEX_STRICT_P, REG_OK_FOR_BASE_STRICT_P, REG_OK_FOR_INDEX_P,
3321 REG_OK_FOR_BASE_P): Definitions removed.
3323 2006-03-24 Jakub Jelinek <jakub@redhat.com>
3326 * gimplify.c (gimplify_bind_expr): Only call omp_add_variable on
3327 non-global variables that don't have DECL_SEEN_IN_BIND_EXPR_P bit
3328 set yet or weren't marked as local yet.
3330 2006-03-24 Bernd Schmidt <bernd.schmidt@analog.com>
3332 * regrename.c (scan_rtx_address): Initialize a variable to shut up
3335 2006-03-24 Eric Botcazou <ebotcazou@adacore.com>
3337 * config/rs6000/rs6000-protos.h (rs6000_offsettable_memref_p): Declare.
3338 (rs6000_legitimate_small_data_p): Delete.
3339 * config/rs6000/rs6000.c (rs6000_offsettable_memref_p): New predicate.
3340 (rs6000_legitimate_small_data_p): Rename to legitimate_small_data_p
3341 and make static. Add forward declaration. Update uses.
3342 (rs6000_split_multireg_move): Use rs6000_offsettable_memref_p instead
3343 of offsettable_memref_p.
3344 * config/rs6000/rs6000.md (movdf_hardfloat32): Revert 2005-08-23 fix.
3345 Use rs6000_offsettable_memref_p instead of a less accurate predicate.
3347 2006-03-24 Jeff Law <law@redhat.com>
3349 * tree-ssa-dom.c (propagate_rhs_into_lhs): Temporarily work
3350 around bug in immediate-use iterator.
3352 2006-03-24 Alan Modra <amodra@bigpond.net.au>
3355 * config/rs6000/darwin-ldouble.c: Don't compile when __NO_FPRS__
3356 or __LITTLE_ENDIAN__.
3358 2006-03-23 J"orn Rennecke <joern.rennecke@st.com>
3360 * config/sh/divtab-sh4.c, config/sh/divcost-analysis: New files.
3361 * config/sh/lib1funcs.asm (div_table): Add !__SH5__ variant.
3362 * config/sh/t-sh (LIB1ASMFUNCS): Add _div_table.
3363 * config/sh/sh.opt (mdiv=): Amend description.
3364 * config/sh/sh.h (TARGET_DIVIDE_CALL_DIV1): New macro.
3365 (TARGET_DIVIDE_CALL_FP, TARGET_DIVIDE_CALL_TABLE): Likewise.
3366 (sh_divide_strategy_e): Add new members SH_DIV_CALL_DIV1,
3367 SH_DIV_CALL_FP, SH_DIV_CALL_TABLE and SH_DIV_INTRINSIC.
3368 (OVERRIDE_OPTIONS): Also process sh_div_str for TARGET_SH1.
3369 Calculate sh_divsi3_libfunc using TARGET_DIVIDE_* macros.
3370 * config/sh/sh.md (udivsi3_i4_int, divsi3_i4_int): New patterns.
3371 (udivsi3, divsi3): Use them. Check TARGET_DIVIDE_CALL_TABLE /
3372 TARGET_DIVIDE_CALL_FP.
3374 2006-03-23 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3376 * haifa-sched.c (choose_ready): Fix type of the local variable.
3377 Move local variables. Add comment.
3378 (check_reg_live): Change signature. Make callable from debugger.
3379 * sched-int.h (check_reg_live): Update signature.
3380 * sched-ebb.c (check_reg_live): Update parameters.
3381 * sched-rgn.c (check_reg_live): Ditto.
3382 (region_head_or_leaf_p): Check pointer before dereferencing.
3383 * config/ia64/ia64.c (ia64_set_sched_flags): Disable data speculation
3384 before reload on optimization levels below 1.
3386 2006-03-23 Richard Henderson <rth@redhat.com>
3388 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject
3392 * config/alpha/predicates.md (local_symbolic_operand): Reject
3395 2006-03-23 Andrew Pinski <pinskia@physics.uc.edu>
3398 * tree-ssa-pre.c (create_value_expr_from): Don't reject
3399 expressions which have overflowed constants.
3401 2006-03-23 Zdenek Dvorak <dvorakz@suse.cz>
3403 * cse.c (cse_end_of_basic_block): Do not check for LOOP_END note.
3405 2006-03-23 Zdenek Dvorak <dvorakz@suse.cz>
3407 * cfgloopmanip.c (create_loop_notes): Removed.
3408 * final.c (final_scan_insn): Do not handle loop notes.
3409 * jump.c (squeeze_notes): Ditto.
3410 * cfglayout.c (skip_insns_after_block,
3411 duplicate_insn_chain): Ditto.
3412 * cfgcleanup.c (rest_of_handle_jump2): Do not call
3414 * cfgloop.h (create_loop_notes): Declaration removed.
3416 2006-03-23 Richard Sandiford <richard@codesourcery.com>
3418 * varasm.c (output_constant_pool): Restore fnname and fndecl
3420 (assemble_start_function): Adjust call accordingly.
3421 (assemble_end_function): Likewise.
3423 2006-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3426 * tree-mudflap.c (mudflap_finish_file): Skip erroneous objects.
3429 * tree-mudflap.c (mf_xform_derefs_1): Return early on error_mark_node.
3431 2006-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3434 * system.h (ICE_EXIT_CODE): New macro.
3435 * diagnostic.c (diagnostic_count_diagnostic): Exit with ICE_EXIT_CODE.
3436 (diagnostic_action_after_output): Likewise.
3437 * gcc.c (fatal_ice): New function.
3438 (execute): Use it instead of fatal.
3439 (fancy_abort): Likewise.
3440 * doc/invoke.texi (-pass-exit-codes): Document return code for ICEs.
3442 2006-03-22 Jeff Law <law@redhat.com>
3444 * loop-unroll.c (analyze_iv_to_split_insn): Handle
3445 iv_analyze_result returning false.
3447 2006-03-22 Jie Zhang <jie.zhang@analog.com>
3449 * config/bfin/bfin.h (ASM_FORMAT_PRIVATE_NAME): Remove.
3451 2006-03-22 Richard Henderson <rth@redhat.com>
3454 * except.c (duplicate_eh_regions_0): New.
3455 (duplicate_eh_region_1): Duplicate the children of the node as
3456 well as the node itself. Link them up properly.
3457 (duplicate_eh_region_2): Merge into ...
3458 (duplicate_eh_regions): ... here. Take copy_region argument, and
3459 copy only a sub-tree if asked. Simplify copying and fixup.
3460 (eh_region_outer_p): New.
3461 * except.h (duplicate_eh_regions): Update decl.
3462 (eh_region_outer_p): Declare.
3463 * omp-low.c (lower_omp_single): Fix eh region placement wrt OMP_RETURN.
3464 (lower_omp_master): Likewise.
3465 (lower_omp_ordered): Likewise.
3466 * tree-cfg.c (struct move_stmt_d): Add new_label_map.
3467 (move_stmt_r): Use it to remap labels. Handle recursion vs
3468 remap_decls_p properly.
3469 (move_block_to_fn): Pass in new_label_map. Remap RESX_EXPR.
3470 (find_outermost_region_in_block): New.
3471 (new_label_mapper): New.
3472 (move_sese_region_to_fn): Copy eh information to the new function
3474 * tree-inline.c (copy_cfg_body): Update for new duplicate_eh_regions
3476 * tree-pretty-print.c (dump_generic_node): Dump RESX_EXPR region
3479 2006-03-22 Richard Sandiford <richard@codesourcery.com>
3481 * doc/md.texi (-mshared): Mention that -mshared code can be linked
3482 into shared libraries.
3484 2006-03-22 Richard Sandiford <richard@codesourcery.com>
3486 * doc/md.texi: Refer to i386/constraints.md instead of
3488 * config/i386/constraints.md: New file, extracted from...
3489 * config/i386/predicates.md: ...here.
3490 * config/i386/i386.md: Include constraints.md.
3492 2006-03-21 Jason Merrill <jason@redhat.com>
3494 * builtins.c (expand_builtin_fork_or_exec): Fix pasto.
3497 * expr.c (init_block_move_fn): Force default visibility.
3498 (init_block_clear_fn): Likewise.
3499 * builtins.c (expand_builtin_fork_or_exec): Likewise.
3500 * targhooks.c (default_external_stack_protect_fail): Likewise.
3502 2006-03-21 Richard Sandiford <richard@codesourcery.com>
3504 * config/mips/predicates.md (const_call_insn_operand): Allow direct
3505 calls to locally-defined functions if TARGET_ABSOLUTE_ABICALLS.
3506 * config/mips/mips.md (jal_macro): Test TARGET_ABSOLUTE_ABICALLS.
3507 Use TARGET_OLDABI instead of !TARGET_NEWABI.
3508 (loadgp): Use mips_current_loadgp_style.
3509 (loadgp_noshared): New pattern.
3510 (sibcall_internal): Use MIPS_CALL.
3511 (sibcall_value_internal): Likewise.
3512 (sibcall_value_multiple_internal): Likewise.
3513 (call_internal): Likewise.
3514 (call_value_internal): Likewise.
3515 (call_value_multiple_internal): Likewise.
3516 (call_split): Use MIPS_CALL and add an 'S' constraint.
3517 (call_value_split): Likewise.
3518 (call_value_multiple_split): Likewise.
3519 * config/mips/mips.opt (-mabicalls): Tweak docstring.
3520 (-mshared): New option.
3521 * config/mips/mips-protos.h (mips_loadgp_style): New enum.
3522 (mips_current_loadgp_style): Declare.
3523 * config/mips/mips.c (mips_classify_symbol): Avoid using
3524 SYMBOL_GOT_LOCAL if TARGET_ABSOLUTE_ABICALLS. Use SYMBOL_GENERAL
3525 rather than SYMBOL_GOT_GLOBAL for locally-binding symbols if
3526 TARGET_ABSOLUTE_ABICALLS.
3527 (override_options): Adjust comments. Improve the warning that is
3528 issued when -mabicalls and -G are used together.
3529 (mips_file_start): Remove comment.
3530 (mips_current_loadgp_style): New function.
3531 (mips_gnu_local_gp): New variable.
3532 (mips_emit_loadgp): Use mips_current_loadgp_style. Handle
3534 (mips_output_function_prologue): Use mips_current_laodgp_style.
3535 (mips_expand_prologue): Call mips_emit_loadgp before emitting
3536 the cprestore instruction.
3537 (mips_extra_live_on_entry): Fix reversed test. Don't make $25
3538 live for TARGET_ABSOLUTE_ABICALLS.
3539 * config/mips/mips.h (TARGET_ABSOLUTE_ABICALLS): New macro.
3540 (ASM_SPEC): Pass down -mshared and -mno-shared.
3541 (MIPS_CALL): New macro.
3542 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove __ABICALLS__
3544 * doc/invoke.texi (-mabicalls): Update documentation.
3545 (-mshared): Document.
3547 2006-03-21 Steve Ellcey <sje@cup.hp.com>
3549 * config/ia64/unwind-hpux.c: New file.
3550 * config/ia64/t-hpux: Add unwind-hpux.c to libgcc.
3552 2006-03-21 Steve Ellcey <sje@cup.hp.com>
3555 * config/pa/pa64-hpux.h (LIB_SPEC): Fix for -mt and -pthread options.
3557 2006-03-21 Jeff Law <law@redhat.com>
3559 * tree-vrp.c (extract_range_from_unary_expr): Derive ranges for
3560 type conversions of a VR_VARYING source to a wider type.
3562 2006-03-21 Eric Botcazou <ebotcazou@libertysurf.fr>
3564 * config.gcc (i[34567]86-*-solaris2*): Add config/sol2-10.h to
3565 tm_file on Solaris 10 and later.
3566 (sparc64-*-solaris2*): Likewise.
3567 (sparc-*-solaris2*): Likewise.
3568 * config/sol26.h: Rename to config/sol2-6.h.
3569 * config/sol2-10.h: New file.
3571 2006-03-21 Andrew Pinski <pinskia@physics.uc.edu>
3574 * tree-ssa-pre.c (create_component_ref_by_pieces):
3577 2006-03-21 Jakub Jelinek <jakub@redhat.com>
3580 * tree.c (get_callee_fndecl): If CALL is error_mark_node,
3581 return it immediately.
3583 2006-03-21 Michael Matz <matz@suse.de>
3585 * genautomata.c (<struct state>, num_out_arcs, presence_signature):
3587 (remove_arc, add_arc): Update num_out_arcs member.
3588 (set_out_arc_insns_equiv_num): Returns nothing instead of number
3590 (cache_presence): New function.
3591 (compare_states_for_equiv): New function.
3592 (state_is_differed): Don't take number of outargs, adjust callers.
3593 Use new invariant for speeding up.
3594 (init_equiv_class): Create initial classes based on sorted
3596 (partition_equiv_class): Don't track out_arcs_num.
3597 (evaluate_equiv_classes): Call cache_presence on all states and
3600 2006-03-21 Bernd Schmidt <bernd.schmidt@analog.com>
3602 * config/bfin/bfin-protos.h (bfin_dsp_memref_p): Declare.
3603 * config/bfin/bfin.c (bfin_dsp_memref_p): New function.
3604 (bfin_valid_reg_p): Test for pseudos explicitly and use only
3605 REGNO_MODE_CODE_OK_FOR_BASE_P. New args MODE and OUTER_CODE; all
3607 * config/bfin/bfin.h (PREG_P): Use P_REGNO_P.
3608 (IREG_P, P_REGNO_P, I_REGNO_P): New macros.
3609 (enum reg_class, REG_CLASS_CONTENTS): Add IPREGS.
3610 (BASE_REG_CLASS, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
3611 REGNO_OK_FOR_BASE_STRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): Delete
3613 (IREG_POSSIBLE_P, MODE_CODE_BASE_REG_CLASS,
3614 REGNO_MODE_CODE_OK_FOR_BASE_P): New macros.
3615 (REGNO_REG_CLASS): ARGP is in PREGS.
3616 * config/bfin/bfin.md (movhi_insn): Allow for addresses containing
3618 (zero_extendhisi2, extendhisi2): Likewise; changed to define_and_split
3619 to deal with those addresses.
3620 * addresses.h: New file.
3621 * caller-save.c: Include "addresses.h".
3622 (init_caller_save): Use new base_reg_class function.
3623 * rtl-factoring.c: Include "addresses.h".
3624 (recompute_gain_for_pattern_seq): Use new function ok_for_base_p_1.
3625 * recog.c: Include "addresses.h".
3626 (preprocess_constraints): Use new base_reg_class function.
3627 * regrename.c: Include "addresses.h".
3628 (scan_rtx_address): Use new regno_ok_for_base_p and base_reg_class
3629 functions. Keep track of a new var INDEX_CODE to compute valid
3631 (replace_oldest_value_addr): Likewise.
3632 (replace_oldest_value_mem): Use base_reg_class.
3633 * reload.c: Include "addresses.h".
3634 (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Delete macros.
3635 (find_reloads): Use new base_reg_class function.
3636 (find_reloads_address): Likewise; also use regno_ok_for_base_p.
3637 (find_reloads_address_1): Likewise. New args OUTER_CODE and INDEX_CODE;
3638 all callers and prototype changed.
3639 * reload1.c: Include "addresses.h".
3640 (maybe_fix_stack_asms): Use base_reg_class.
3641 * regclass.c: Include "addresses.h".
3642 (ok_for_index_p_nonstrict, ok_for_base_p_nonstrict): New functions.
3643 (init_reg_autoinc): Use new base_reg_class function.
3644 (record_reg_classes): Likewise.
3645 (record_address_regs): Delete arg CLASS; add args CONTEXT, MODE,
3646 OUTER_CODE and INDEX_CODE. All callers and prototype changed.
3647 Use new args to compute necessary class.
3649 * Makefile.in (regclass.o, reload.o, reload1.o, caller-save.o, recog.o,
3650 regrename.o, rtl-factoring.o): Update dependencies.
3651 * doc/tm.texi (MODE_CODE_BASE_REG_CLASS): Document.
3652 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
3653 (REG_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_REG_BASE_P,
3654 REG_OK_FOR_INDEX_P): Delete documentation.
3656 2006-03-21 Alexey Starovoytov <alexey.starovoytov@sun.com>
3658 * config.gcc (sparc-*-solaris2*): Change the default CPU setting
3659 from V7 to V9 for Solaris 7 and above.
3661 2006-03-21 Toon Moene <toon@moene.indiv.nluug.nl>
3663 * doc/invoke.texi: Document new flag -fargument-noalias-anything.
3664 * tree-ssa-alias.c (may_alias_p): If flag_argument_noalias > 2,
3665 argument pointers may not alias any other storage.
3666 * common.opt: Define option -fargument-noalias-anything.
3667 * tree-ssa-structalias.c (intra_create_variable_infos): Fortran
3668 alias semantics is specified by flag_argument_noalias > 2.
3670 2006-03-20 Jeff Law <law@redhat.com>
3672 * tree-pass.h (pass_phi_only_copy_prop): Delete.
3673 (pass_phi_only_cprop): Declare.
3674 * passes.c (init_optimization_passes): Replace pass_phi_only_copy_prop
3676 * tree-ssa-dom.c (degenerate_phi_result): New function.
3677 (remove_stmt_or_phi, get_lhs_or_phi_result): Likewise.
3678 (get_rhs_or_phi_arg, propagate_rhs_into_lhs): Likewise.
3679 (eliminate_const_or_copy, eliminate_degenerate_phis_1): Likewise.
3680 (eliminate_degenerate_phis): Likewise.
3681 (pass_phi_only_cprop): New pass descriptor.
3682 * tree-ssa-copy.c (init_copy_prop): Lose PHIS_ONLY argument and
3683 support code. Callers updated.
3684 (execute_copy_prop, do_copy_prop): Likewise and corresponding changes.
3685 (store_copy_prop): Likewise.
3686 (do_phi_only_copy_prop, pass_phi_only_copy_prop): Remove.
3688 2006-03-20 Jason Merrill <jason@redhat.com>
3691 * c-pragma.c (visstack): Move out of handle_pragma_visibility.
3692 (push_visibility, pop_visibility): Likewise.
3693 * c-pragma.h: Declare them.
3695 2006-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
3697 * config/sh/sh.c (untangle_mova): Initialize n_addr and n_target.
3699 * config/sh/sh.c (find_regmode_weight): Change the type of the first
3700 parameter and use get_ebb_head_tail.
3701 (sh_md_init_global): Adjust uses of find_regmode_weight.
3703 2006-03-20 Steven Bosscher <stevenb.gcc@gmail.com>
3705 * function.h (struct function) <x_tail_recursion_reentry>:
3706 Rename to x_stack_check_probe_note.
3707 (tail_recursion_reentry): Rename to stack_check_probe_note.
3708 * function.c: Replace tail_recursion_reentry with
3709 stack_check_probe_note everywhere.
3710 (expand_function_start): Only emit a note for
3711 stack_check_probe_note with -fstack-protect.
3712 * stmt.c (expand_case): Don't emit NOTE_INSN_DELETED notes.
3714 * emit-rtl.c (remove_unnecessary_notes): Remove.
3715 (pass_remove_unnecessary_notes): Remove.
3716 * rtl.h (remove_unnecessary_notes): Remove prototype.
3717 * final.c (final_start_function): Don't call remove_unnecessary_notes.
3718 * tree-pass.h (pass_remove_unnecessary_notes): Remove.
3719 * passes.c (pass_remove_unnecessary_notes): Don't run it.
3721 2006-03-20 Andrew Pinski <pinskia@physics.uc.edu>
3724 * tree-ssa-pre (phi_translate): Handle ARRAY_REF's operands.
3725 (valid_in_set): Handle ARRAY_REF.
3726 Change "if min_variant or VH" to asserts.
3727 (create_component_ref_by_pieces): Handle ARRAY_REF.
3728 (create_expression_by_pieces): Likewise.
3729 (can_PRE_operation): ARRAY_REFs can now be PRE'd.
3731 2006-03-20 David Edelsohn <edelsohn@gnu.org>
3733 * genpreds.c (write_insn_extra_address_constraint): Argument `c'
3734 is operand of switch, not str[0].
3736 2006-03-20 Alan Modra <amodra@bigpond.net.au>
3738 * config/rs6000/rs6000.c (rs6000_handle_option): Use
3739 TARGET_NO_FP_IN_TOC inside #ifdef TARGET_USES_SYSV4_OPT too.
3741 2006-03-19 David Edelsohn <edelsohn@gnu.org>
3743 * genpreds.c (write_tm_preds_h): Add semicolon and newline at
3744 end of insn_extra_address_constraint declaration.
3746 2006-03-19 David Edelsohn <edelsohn@gnu.org>
3748 * config/rs6000/rs6000.opt (no-fp-in-toc): Use Var not Mask.
3749 (no-sum-in-toc): Same.
3750 * config/rs6000/rs6000.c (rs6000_handle_option): Use new
3752 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
3753 NO_FP_IN_TOC for -fPIC instead of mask.
3755 * config/rs6000/t-aix43 (T_ADAFLAGS): Delete.
3756 (BOOT_LDFLAGS): Delete.
3758 * config/rs6000/t-aix52: Same.
3760 * config/rs6000/rs6000.md (store_multiple_power): Delete.
3761 (stmsi[345678]_power): New.
3763 2006-03-17 Steve Ellcey <sje@cup.hp.com>
3765 * config/ia64/ia64.opt: Add empty line to end of file.
3767 2006-03-17 Richard Guenther <rguenther@suse.de>
3770 * builtins.c (get_pointer_alignment): For component style references
3771 adjust alignment to the component type alignment. Make sure
3772 to adjust alignment for component access of constants.
3774 2006-03-17 David Edelsohn <edelsohn@gnu.org>
3776 * config/rs6000/rs6000.md (strlensi): Emit barrier after
3779 2006-03-17 Paul Brook <paul@codesourcery.com>
3781 * doc/install.texi: Docuemnt --with-mode.
3782 * config.gcc: Add --with-mode for arm*-*-*.
3783 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "mode".
3785 2006-03-17 J"orn Rennecke <joern.rennecke@st.com>
3787 * sh.c (max_labelno_before_reorg): New variable.
3788 (sh_reorg): Initialize it.
3789 (find_barrier): Check max_labelno_before_reorg before using
3790 label_to_alignment. Take length of explicit alignment insns
3791 into account. When seeing a UNSPECV_CONST_END, return it.
3793 * sh.c (fixup_mova): Set mode of affected label to QImode.
3794 (untangle_mova): New function.
3795 (find_barrier): Use it. Check mode of label before decrementing
3797 (sh_reorg): Likewise.
3798 Set mode of all insns back to VOIDmode.
3800 * sh.c (MOVA_LABELREF): New macro.
3801 (mova_p, fixup_mova, sh_reorg): Use it.
3802 (find_barrier, sh_reorg): Don't count num_mova back to 0 unless
3803 ADDR_DIFF_VEC matches mova.
3805 2006-03-17 Steven Bosscher <stevenb.gcc@gmail.com>
3807 * dwarf2asm.c (dw2_asm_output_offset): Mark 'base' argument
3808 with ATTRIBUTE_UNUSED.
3810 2006-03-17 Alexandre Oliva <aoliva@redhat.com>
3812 * dwarf2out.c (dwarf2out_stack_adjust): Always track the stack
3813 pointer, instead of assuming it is possible to derive the
3814 correct args size from a call insn.
3816 2006-03-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3818 * rtl.h (CONST_INT_P): Define.
3819 * config/vax/vax.c (print_operand_address): Use CONST_INT_P()
3820 instead of GET_CODE(x) == CONST_INT.
3821 (vax_rtx_costs): Likewise.
3822 (vax_output_int_move): Likewise.
3823 (vax_output_int_add): Likewise.
3824 (legitimate_constant_address_p): Likewise.
3825 (index_term_p): Likewise.
3826 * config/vax/vax.h (PRINT_OPERAND): Likewise.
3827 * config/vax/vax.md (and<mode>3): Likewise.
3828 (ashrsi3): Likewise.
3830 (movstricthi): Likewise.
3831 (movstrictqi): Likewise.
3832 (rotrsi3): Likewise.
3833 (five unnamed insns): Likewise.
3835 2006-03-16 Geoffrey Keating <geoffk@apple.com>
3837 * doc/tm.texi (SDB and DWARF): Add extra parameter to
3838 ASM_OUTPUT_DWARF_OFFSET. Use @var to indicate metavariables.
3839 * dwarf2asm.h (dw2_asm_output_offset): Add section parameter.
3840 * dwarf2asm.c (dw2_asm_output_offset): Add base section parameter.
3841 Pass to ASM_OUTPUT_DWARF_OFFSET.
3842 * dwarf2out.c (debug_frame_section): New.
3843 (output_call_frame_info): Use debug_frame_section. Pass it to
3844 dw2_asm_output_offset.
3845 (output_die): Pass appropriate section to dw2_asm_output_offset.
3846 (output_compilation_unit_header): Likewise.
3847 (output_pubnames): Likewise.
3848 (output_aranges): Likewise.
3849 (enum dw_val_class): Break dw_val_class_lbl_offset into
3850 dw_val_class_lineptr and dw_val_class_macptr.
3851 (add_AT_lbl_offset): Delete.
3852 (add_AT_lineptr): New.
3853 (add_AT_macptr): New.
3854 (AT_lbl): Expect a lineptr or macptr.
3855 (print_die): Handle dw_val_class_lineptr and dw_val_class_macptr.
3856 (attr_checksum): Likewise.
3857 (same_dw_val_p): Likewise.
3858 (size_of_die): Likewise.
3859 (value_format): Likewise.
3860 (output_die): Likewise.
3861 (dwarf2out_finish): Call add_AT_lineptr and add_AT_macptr instead of
3863 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
3864 * config/i386/i386.c (x86_file_start): Call darwin_file_start.
3865 * config/darwin-protos.h (darwin_file_start): New.
3866 (darwin_asm_output_dwarf_offset): New.
3867 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
3868 * config/rs6000/rs6000.c (rs6000_darwin_file_start): Call
3870 * config/darwin.c (darwin_emit_unwind_label): Don't output label
3871 if not EH section; simplify.
3872 (darwin_file_start): New.
3873 (darwin_asm_output_dwarf_offset): New.
3874 * config/darwin.h (DEBUG_FRAME_SECTION): In __DWARF segment,
3876 (DEBUG_INFO_SECTION): Likewise.
3877 (DEBUG_ABBREV_SECTION): Likewise.
3878 (DEBUG_ARANGES_SECTION): Likewise.
3879 (DEBUG_MACINFO_SECTION): Likewise.
3880 (DEBUG_LINE_SECTION): Likewise.
3881 (DEBUG_LOC_SECTION): Likewise.
3882 (DEBUG_PUBNAMES_SECTION): Likewise.
3883 (DEBUG_STR_SECTION): Likewise.
3884 (DEBUG_RANGES_SECTION): Likewise.
3885 (FRAME_BEGIN_LABEL): Must start with 'L' in debug section.
3886 (ASM_OUTPUT_DWARF_OFFSET): New.
3888 2006-03-16 Joseph S. Myers <joseph@codesourcery.com>
3890 * config.gcc (tm_defines): Always add to previous value rather
3893 2006-03-16 Richard Sandiford <richard@codesourcery.com>
3895 * config/mips/predicates.md (splittable_const_int_operand): New,
3896 split from move_operand.
3897 (splittable_symbolic_operand): New.
3898 (move_operand): Add commentary. Use splittable_const_int_operand.
3899 Inline mips_atomic_symbolic_constant_p.
3900 * config/mips/mips.md: Add combine splitters for handling moves
3901 of splittable_const_int_operands and splittable_symbolic_operands.
3902 * config/mips/mips-protos.h (mips_atomic_symbolic_constant_p): Delete.
3903 (mips_split_symbol): Declare.
3904 (mips_move_integer): Declare.
3905 * config/mips/mips.c (mips_split_p): Make global.
3906 (TARGET_MIN_ANCHOR_OFFSET): Override default.
3907 (TARGET_MAX_ANCHOR_OFFSET): Likewise.
3908 (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
3909 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Likewise.
3910 (mips_offset_within_object_p): Handle block symbols.
3911 (mips_atomic_symbolic_constant_p): Delete.
3912 (mips_cannot_force_const_mem): Return false for constants that
3913 mips_legitimize_move can handle.
3914 (mips_use_blocks_for_constant_p): New function.
3915 (mips_split_symbol): Make global.
3916 (mips_move_integer): Likewise. Add a temporary register argument.
3917 (mips_legitimize_const_move): Use splittable_const_int_operand and
3918 splittable_symbolic_operand.
3919 (mips_use_anchors_for_symbol_p): New function.
3920 * config/mips/mips.h: Protect externs with !USED_FOR_TARGET.
3921 (mips_split_p): Declare.
3923 2006-03-16 Richard Sandiford <richard@codesourcery.com>
3925 * config.gcc (mips64*-*-linux*): Keep existing tm_defines.
3926 (mips*-*-linux*): Likewise.
3928 2006-03-16 Roger Sayle <roger@eyesopen.com>
3929 Daniel Speyer <dspeyer@wam.umd.edu>
3932 * tree-dump.c (dump_real): New function.
3933 (dequeue_and_dump) <REAL_CST>: Use it to dump FP constants.
3934 * Makefile.in (REAL_H): New macro for dependencies on real.h.
3935 (tree-dump.o): Add $(REAL_H) to the dependencies.
3937 2006-03-16 Roger Sayle <roger@eyesopen.com>
3940 * real.c (real_from_string): If the mantissa is zero, don't bother
3941 parsing the exponent as the result should always be zero.
3943 2006-03-16 Andreas Krebbel <krebbel1@de.ibm.com>
3945 * simplify-rtx.c (simplify_plus_minus): Simplify within CONST terms.
3947 2006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3949 * config/ia64/ia64.c (stops_p): Added explicit initialization.
3950 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec,
3951 ia64_h_i_d_extended, ia64_set_sched_flags, ia64_speculate_insn,
3952 ia64_needs_block_p, ia64_gen_check, ia64_sched_init_global,
3953 ia64_sched_finish_global): New static functions to implement
3954 hooks from gcc_target.sched.
3955 (spec_check_no, max_uid, pending_data_specs): New static variables.
3956 (ia64_mode_to_int, ia64_gen_spec_insn, ia64_spec_check_p,
3957 ia64_spec_check_src_p): New static functions.
3958 (ia64_adjust_cost): Renamed to ia64_adjust_cost_2.
3959 (TARGET_SCHED_ADJUST_COST): Removed.
3960 (TARGET_SCHED_ADJUST_COST_2, TARGET_SCHED_INIT_GLOBAL,
3961 TARGET_SCHED_FINISH_GLOBAL, TARGET_SCHED_H_I_D_EXTENDED,
3962 TARGET_SCHED_SPECULATE_INSN, TARGET_SCHED_NEEDS_BLOCK_P,
3963 TARGET_SCHED_GEN_CHECK,
3964 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
3965 TARGET_SCHED_SET_SCHED_FLAGS): New macros.
3966 (update_set_flags, group_barrier_needed, set_src_needs_barrier):
3967 Fixed to handle speculation checks.
3968 (rtx_needs_barrier): Fixed to handle speculative loads and
3970 (ia64_variable_issue): Added code to count speculative loads and their
3972 (ia64_first_cycle_multipass_dfa_lookahead_guard): Fixed to handle
3974 (enum SPEC_MODES, enum SPEC_GEN_LD_MAP, SPEC_GEN_CHECK_OFFSET):
3976 (SPEC_GEN_EXTEND_OFFSET, SPEC_N, SPEC_GEN_CHECK_MUTATION_OFFSET):
3978 (ia64_ld_address_bypass_p): Fixed to handle speculative loads.
3979 (ia64_reorg): Reset stops_p to NULL after it is freed.
3980 * config/ia64/ia64.md (UNSPEC_LDA, UNSPEC_LDS, UNSPEC_LDSA,
3981 UNSPEC_LDCCLR, UNSPEC_CHKACLR, UNSPEC_CHKS): New constants.
3982 (itanium_class): chk_s renamed to chk_s_i. New constants: chk_s_f,
3984 (data_speculative, control_speculative, check_load): New attributes.
3985 (mov<mode>_advanced, mov<mode>_speculative,
3986 mov<mode>_speculative_advanced, zero_extend<mode>di2_advanced,
3987 zero_extend<mode>di2_speculative,
3988 zero_extend<mode>di2_speculative_advanced): New patterns for
3989 data and control speculative loads.
3990 (mov<mode>_clr, zero_extend<mode>di2_clr): New patterns for
3992 (advanced_load_check_clr_<mode>, speculation_check_<mode>):
3993 New pattern for data and control speculation checks.
3994 (MODE, MODE_FOR_EXTEND, output_a, output_s, output_sa, output_c_clr,
3995 ld_reg_constr, ldc_reg_constr, chk_reg_constr, mem_constr,
3996 reg_pred_prefix, ld_class, chka_class, chks_class, attr_yes):
3997 Auxiliary definitions for the patterns.
3998 * config/ia64/itanium1.md (1_fldc, 1_fldpc, 1_ldc, 1_chk_s_f, 1_chk_a,
3999 1b_fldc, 1b_fldpc, 1b_ldc, 1b_chk_s_f, 1b_chk_a): New resource
4001 (1_fld, 1_fldp, 1_ld, 1b_fld, 1b_fldp, 1b_ld): Add a condition
4003 (1_chk_s, 1b_chk_s): Renamed to 1_chk_s_i, 1b_chk_s_i.
4004 * config/ia64/itanium2.md (2_flda, 2_fldc, 2_fldpc, 2_ldc, 2_chk_s_f,
4005 2_chk_a, 2b_flda, 2b_fldc, 2b_fldpc, 2b_ldc, 2b_chk_s_f, 2b_chk_a):
4006 New resource constraints.
4007 (2_fld, 2_fldp, 2_ld, 2b_fld, 2b_fldp, 2b_ld): Add a condition
4009 (2_chk_s, 2b_chk_s): Renamed to 2_chk_s_i, 2b_chk_s_i.
4010 * config/ia64/ia64.opt (msched-br-data-spec, msched-ar-data-spec,
4011 msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
4012 msched-in-control-spec, msched-ldc, msched-control-ldc,
4013 msched-spec-verbose, msched-prefer-non-data-spec-insns,
4014 msched-prefer-non-control-spec-insns,
4015 msched-count-spec-in-critical-path): New flags to tune speculative
4017 * doc/invoke.texi (msched-br-data-spec, msched-ar-data-spec,
4018 msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
4019 msched-in-control-spec, msched-ldc, msched-control-ldc,
4020 msched-spec-verbose, msched-prefer-non-data-spec-insns,
4021 msched-prefer-non-control-spec-insns,
4022 msched-count-spec-in-critical-path): Document new flags.
4024 2006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
4026 * target.h (struct spec_info_def): New opaque declaration.
4027 (struct gcc_target.sched): New fields: adjust_cost_2, h_i_d_extended,