1 2008-01-22 Jakub Jelinek <jakub@redhat.com>
4 * tree.c (build_type_attribute_qual_variant): Call
5 build_qualified_type if attributes are equal, but quals are not.
7 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
11 * flags.h (warn_strict_aliasing): Remove.
12 (warn_strict_overflow): Remove.
13 * opts.c (warn_strict_aliasing): Remove.
14 (warn_strict_overflow): Remove.
15 * c-opts.c (c_common_handle_option): -Wall only sets
16 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
17 (c_common_post_options): Give default values to -Wstrict-aliasing
18 and -Wstrict-overflow if they are uninitialized.
19 * common.opt (Wstrict-aliasing): Specify Var and Init.
20 (Wstrict-overflow): Likewise.
22 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
24 PR rtl-optimization/26854
25 PR rtl-optimization/34400
26 PR rtl-optimization/34884
27 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
29 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
30 (df_rd_bb_info.expanded_lr_out): Deleted
31 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
32 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
33 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
34 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
35 Removed code to allocate, initialize or free expanded_lr_out.
36 (df_rd_bb_local_compute_process_def): Restructured to make more
38 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
39 sets if the sets are being trimmed.
41 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
44 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
46 * configure: Regenerated.
48 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
51 * tree-pass.h (pass_build_alias): New pass.
52 * tree-ssa-alias.c (gate_build_alias): New.
53 (pass_build_alias): New.
54 * passes.c (init_optimization_passes): Add pass_build_alias after
55 pass_create_structure_vars.
57 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
59 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
60 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
61 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
62 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
63 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
64 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
65 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
66 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
67 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
68 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
69 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
70 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
71 * config/s390/s390.md (FP_ALL): New mode iterator.
72 (_d): New mode attribute.
73 ("*signbit<mode>2>"): Changed mode of first operand.
74 ("isinf<mode>2"): Changed mode of first operand.
75 ("*TDC_insn"): Adaptation for DFP modes.
77 2008-01-22 Ben Elliston <bje@au.ibm.com>
79 * tree.c (check_qualified_type): Improve function description.
81 2008-01-21 Jason Merrill <jason@redhat.com>
84 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
85 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
88 2008-01-21 DJ Delorie <dj@redhat.com>
90 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
93 2008-01-21 Richard Guenther <rguenther@suse.de>
96 * tree-cfg.c (verify_expr): Allow all invariant expressions
97 instead of just constant class ones as reference argument.
98 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
99 like any other constant.
100 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
102 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
104 * regmove.c (fixup_match_1): Update call crossed frequencies.
106 2008-01-21 Richard Guenther <rguenther@suse.de>
109 * tree-inline.c (setup_one_parameter): Deal with mismatched
110 types using a VIEW_CONVERT_EXPR.
112 2008-01-21 Alon Dayan <alond@il.ibm.com>
113 Olga Golovanevsky <olga@il.ibm.com>
115 PR tree-optimization/34701
116 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
117 when the structure size is not a power of 2.
119 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
121 * doc/install.texi: Add doc for --enable-checking=df.
123 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
125 PR rtl-optimization/34808
126 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
128 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
130 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
133 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
135 PR rtl-optimization/26854
136 PR rtl-optimization/34400
137 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
139 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
140 (df_rd_bb_info.expanded_lr_out): New.
141 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
142 * loop_iv.c (iv_analysis_loop_init): Ditto.
143 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
144 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
145 Added code to allocate, initialize or free expanded_lr_out.
146 (df_rd_bb_local_compute_process_def): Restructured to make
148 (df_rd_confluence_n): Add code to do nothing with fake edges and
149 code to no apply invalidate_by_call sets if the sets are being trimmed.
150 (df_lr_local_finalize): Renamed to df_lr_finalize.
151 (df_live_local_finalize): Renamed to df_live_finalize.
153 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
156 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
157 deciding whether to use reciprocal instructions.
159 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
161 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
162 dwarf2out_note_section_used if cold_text_section is NULL.
164 2008-01-19 Jakub Jelinek <jakub@redhat.com>
166 PR gcov-profile/34610
167 * tree-cfg.c (make_edges): Mark both outgoing edges from
168 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
169 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
170 from OMP_FOR and OMP_CONTINUE outgoing edges.
172 * tree-profile.c (tree_profiling): Return early if
173 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
175 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
176 from cfun to child_cfun.
177 * function.h (struct function): Add after_tree_profile bit.
179 2008-01-19 Anatoly Sokolov <aesok@post.ru>
181 * config/avr/avr.S (_exit): Disable interrupt.
183 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
184 Steven Bosscher <stevenb.gcc@gmail.com>
186 PR rtl-optimization/26854
187 PR rtl-optimization/34400
188 * df-problems.c (df_live_scratch): New scratch bitmap.
189 (df_live_alloc): Allocate df_live_scratch when doing df_live.
190 (df_live_reset): Clear the proper bitmaps.
191 (df_live_bb_local_compute): Only process the artificial defs once
192 since the order is not important.
193 (df_live_init): Init the df_live sets only with the variables
195 (df_live_transfer_function): Use the df_lr sets to prune the
196 df_live sets as they are being computed.
197 (df_live_free): Free df_live_scratch.
199 2008-01-18 Ian Lance Taylor <iant@google.com>
201 * common.opt: Add fmerge-debug-strings.
202 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
203 flag_merge_debug_strings rather than flag_merge_constants.
204 * doc/invoke.texi (Option Summary): Mention
205 -fmerge-debug-strings.
206 (Debugging Options): Document -fmerge-debug-strings.
208 2008-01-18 Ian Lance Taylor <iant@google.com>
211 * tree.h (DECL_IS_OPERATOR_NEW): Define.
212 (struct tree_function_decl): Add new field operator_new_flag.
213 * tree-inline.c (expand_call_inline): When inlining a call to
214 operator new, force the return value to go into a variable, and
215 set DECL_NO_TBAA_P on that variable.
216 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
218 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
221 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
222 DWARF2_DEBUGGING_INFO.
223 (dwarf2out_note_section_used): Ditto. Add prototype.
224 (have_multiple_function_sections, text_section_used,
225 cold_text_section_used, *cold_text_sections): Move declarations
228 2007-01-17 Bob Wilson <bob.wilson@acm.org>
230 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
231 field and add signal_ra.
232 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
233 assignments to frame state pc. Move end of stack check after
234 MD_FALLBACK_FRAME_STATE_FOR.
235 (uw_update_context_1): Use frame state signal_regs if set, instead
236 of checking signal_frame flag.
237 (uw_update_context): Use frame state signal_ra if set.
238 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
239 * config/xtensa/linux-unwind.h: New file.
241 2007-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
243 * modulo-sched.c (get_sched_window): Fix comment typo.
245 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
247 PR tree-optimization/34648
248 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
250 2008-01-17 Anatoly Sokolov <aesok@post.ru>
252 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
253 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
255 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
257 PR rtl-optimization/34400
258 * df-core.c (df_worklist_dataflow_overeager,
259 df_worklist_dataflow_doublequeue): New functions.
260 (df_worklist_dataflow): Two different worklist solvers.
261 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
264 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
267 * doc/invoke.texi: Document the dependence on pthread for fopenmp
268 and ftree-parallelize-loops.
270 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
272 PR rtl-optimization/34826
273 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
275 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
277 * global.c (find_reg): Mark the eh regs as used if necessary.
278 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
279 * ra.h (struct allocno): no_eh_reg field added. Changed
280 no_stack_reg type to bitfield.
282 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
284 * tree.c (substitute_in_expr): Add missing 'break'.
286 2008-01-17 Richard Guenther <rguenther@suse.de>
288 PR tree-optimization/34825
289 * tree-ssa-math-opts.c (is_division_by): Do not recognize
290 x / x as division to handle.
292 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
294 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
295 "-pthread" is specified.
296 * pa-hpux11.h (LIB_SPEC): Likewise.
298 2007-01-16 Janis Johnson <janis187@us.ibm.com>
299 Peter Bergner <bergner@vnet.ibm.com>
301 PR rtl-optimization/33796
302 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
304 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
307 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
309 * pa-hpux10.h (LINK_SPEC): Likewise.
310 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
312 2008-01-16 Richard Guenther <rguenther@suse.de>
315 * fold-const.c (fold_convert_const_int_from_int): Do not
316 set overflow if that occured only because of a sign extension
317 change when converting from/to a sizetype with the same
318 precision and signedness.
320 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
323 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
324 location address to the correct place. Update copyright year.
326 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
328 * lambda-code.c (lambda_transform_legal_p): Handle the case of
329 no dependences in the dependence_relations vector.
331 2008-01-16 Jan Hubicka <jh@suse.cz>
333 PR rtl-optimization/31396
334 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
335 * cfg.c (dump_reg_info): Print it.
336 * regs.h (struct reg_info_t): add freq_calls_crossed.
337 (REG_FREQ_CALLS_CROSSED): New macro.
338 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
339 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
340 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
341 regmove_optimize): Update call crossed frequencies.
342 * local-alloc.c (struct qty): Add freq_calls_crossed.
343 (alloc_qty): Copute freq_calls_crossed.
344 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
345 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
346 * ra.h (struct allocno): Add freq_calls_crossed.
348 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
350 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
351 libgomp when compiling with ftree-parallelize-loops.
352 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
354 2008-01-16 Richard Guenther <rguenther@suse.de>
356 PR tree-optimization/34769
357 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
358 * tree.c (int_cst_value): Instead make this function more
359 permissive in what it accepts as valid input. Document this
360 function always sign-extends the value.
362 2008-01-16 Jakub Jelinek <jakub@redhat.com>
363 Richard Guenther <rguenther@suse.de>
366 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
367 (gimple_fold_indirect_ref_rhs): ... this.
368 (gimple_fold_indirect_ref): New function with foldings
369 that preserve lvalueness.
370 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
371 * tree-flow.h (gimple_fold_indirect_ref): Declare.
372 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
373 to fold an INDIRECT_REF, fall back to the old use of
376 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
378 * tree-data-ref.c (subscript_dependence_tester_1): Call
379 free_conflict_function.
380 (compute_self_dependence): Same.
382 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
385 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
386 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
388 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
389 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
390 for DWARF2_UNWIND_INFO targets.
392 2008-01-16 Richard Guenther <rguenther@suse.de>
395 * c-typeck.c (common_pointer_type): Do not merge inconsistent
396 type qualifiers for function types.
398 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
400 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
401 loop_iterator li from previous commit.
403 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
405 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
407 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
409 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
410 (parallelize_loops): Don't parallelize irreducible components.
412 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
415 * c-opts (c_common_post_options): Do not enable CPP
416 flag_pedantic_errors by default.
418 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
420 PR rtl-optimization/31944
421 * cse.c (remove_pseudo_from_table): New function.
422 (merge_equiv_classes): Use above function to remove pseudo-registers.
423 (invalidate): Likewise.
425 2008-01-13 Richard Guenther <rguenther@suse.de>
428 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
429 instead of TYPE_MODE to deal with calls from expand_one_error_var.
431 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
433 * gcse.c (cprop_jump): Call validate_unshare_change instead of
434 validate_change to unshare the source of the PC set.
436 2008-01-12 Jan Hubicka <jh@suse.cz>
439 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
440 references above array bounds. This might trigger bounds checks for
443 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
445 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
446 new_replaceable_dependencies.
448 2008-01-12 Doug Kwan <dougkwan@google.com>
450 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
451 instead of OPT_Wreturn_type in warning due to ignored return type
453 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
454 options included in -Wextra.
455 * c.opt: New option -Wignored_qualifiers.
456 * doc/invoke.texi (Warning Options, -Wextra): Add new option
458 (-Wignored-qualifiers): Document.
459 (-Wreturn-type): Remove description of functionality now handled
460 by -Wignored-qualifiers.
462 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
465 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
466 NOP_EXPR if it is between integral types with the same precision.
468 2008-01-12 Jan Hubicka <jh@suse.cz>
471 * invoke.texi (max-inline-recursive-depth): Fix default value.
473 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
475 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
478 2008-01-11 Bob Wilson <bob.wilson@acm.org>
480 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
482 2008-01-11 James E. Wilson <wilson@specifix.com>
485 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
487 2008-01-11 Anatoly Sokolov <aesok@post.ru>
489 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
490 save/restore frame pointer register and don't use 'call-prologues'
491 optimization in function with "OS_task" attribute.
493 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
496 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
497 when copying to memory.
499 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
501 PR rtl-optimization/30905
502 * cfgcleanup.c: Include dce.h
503 (crossjumps_occured): New global variable.
504 (try_crossjump_bb): Exit loop after finding a fallthru edge.
505 If something changed, set crossjumps_occured to true.
506 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
507 Don't add/remove fake edges to exit here...
508 (cleanup_cfg): ...but do it here, when crossjumping.
509 Run a fast DCE when successful crossjumps occured in the latest
510 iteration of try_optimize_cfg.
512 2008-01-11 Richard Guenther <rguenther@suse.de>
514 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
515 (struct vn_unary_op_s): Likewise.
516 (vn_reference_insert): Free old reference on hash collision.
518 2008-01-10 Raksit Ashok <raksit@google.com>
520 PR rtl-optimization/27971
521 * combine.c (find_split_point): Split PLUS expressions which are
522 inside a MEM rtx, and whose first operand is complex.
524 2008-01-10 DJ Delorie <dj@redhat.com>
526 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
527 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
528 (m32c_hard_regno_ok): Call the underlying function.
530 2008-01-10 Richard Guenther <rguenther@suse.de>
533 * tree-cfg.c (tree_merge_blocks): Do not go through the
534 full-blown folding and stmt updating path if we just deal
535 with virtual operands.
536 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
537 test for abnormal SSA_NAMEs.
539 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
542 * reload.c (push_reload): Add assertions. All constants from
543 reg_equiv_constant should have been used for replacing the respective
545 (find_reloads_address): Invoke find_reloads_address_part for
546 constant taken from the reg_equiv_constant array.
548 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
550 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
551 field (valnum) the first in the struct. Replace bools with
554 2008-01-10 Richard Guenther <rguenther@suse.de>
556 PR tree-optimization/34651
557 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
558 types and ordering for masking and converting.
560 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
562 PR tree-optimization/34017
563 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
564 also for PHI_NODE expressions.
566 2008-01-09 Jan Hubicka <jh@suse.cz>
568 PR tree-optimization/34708
569 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
570 based on number of case labels.
571 (init_inline_once): Remove switch_cost.
572 * tree-inline.h (eni_weights_d): Remove switch_cost.
574 2008-01-09 Richard Guenther <rguenther@suse.de>
575 Andrew Pinski <andrew_pinski@playstation.sony.com>
578 * gimplify.c (gimplify_cond_expr): Do not create an addressable
579 temporary if an rvalue is ok or an lvalue is not required.
581 2008-01-09 Richard Guenther <rguenther@suse.de>
584 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
587 2008-01-09 Richard Guenther <rguenther@suse.de>
590 * tree.c (host_integerp): Check for sizetype only if the
591 type is an integer type.
593 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
596 * opts.c (decode_options): Disable inlining of functions called
597 once if not in unit-at-a-time mode.
599 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
601 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
603 2008-01-08 Richard Guenther <rguenther@suse.de>
606 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
607 out early if the result will be unused.
609 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
614 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
615 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
618 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
620 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
621 for vectorization tuned.
623 2008-01-08 Richard Guenther <rguenther@suse.de>
625 PR tree-optimization/34683
626 * tree-ssa-operands.c (operand_build_cmp): Export.
627 * tree-ssa-operands.h (operand_build_cmp): Declare.
628 * tree-vn.c (vuses_compare): Remove.
629 (sort_vuses): Use operand_build_cmp.
630 (sort_vuses_heap): Likewise.
631 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
632 to re-use old VEC if available. Do not sort already sorted VUSEs.
633 (vdefs_to_vec): Do not sort already sorted VDEFs.
635 2008-01-08 Jakub Jelinek <jakub@redhat.com>
638 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
640 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
643 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
644 limitations of reciprocal sequences on x86 targets.
646 2008-01-08 Richard Guenther <rguenther@suse.de>
648 PR tree-optimization/34683
649 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
651 2008-01-07 Jakub Jelinek <jakub@redhat.com>
654 * config/darwin.c (darwin_mergeable_string_section): Don't use
655 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
657 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
660 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
661 negxf2. Macroize expander using X87MODEF mode iterator. Change
662 predicates of op0 and op1 to register_operand.
663 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
664 expander using X87MODEF mode iterator. Change predicates of
665 op0 and op1 to register_operand.
666 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
667 corresponding patterns and macroize using MODEF macro. Change
668 predicates of op0 and op1 to register_operand and remove
669 "m" constraint. Disparage "r" alternative with "!".
670 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
671 macroize using X87MODEF macro. Change predicates of op0 and op1
672 to register_operand and remove "m" constraint. Disparage "r"
673 alternative with "!".
674 (absneg splitter with memory operands): Remove.
675 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
676 patterns and macroize using X87MODEF mode iterator.
677 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
678 Change predicate of op1 to register_operand.
679 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
682 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
684 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
686 2008-01-07 Richard Guenther <rguenther@suse.de>
688 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
691 2008-01-07 Richard Guenther <rguenther@suse.de>
693 PR tree-optimization/34683
694 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
695 VOPs of the needed size to save memory. Use VEC_quick_push
696 to save compile-time.
697 (vdefs_to_vec): Likewise.
699 2008-01-07 Sa Liu <saliu@de.ibm.com>
701 * config/spu/spu.md (divdf3): Genetate inline code for double
702 division. The implementation doesn't handle INF or NAN, therefore it
703 only applies when -ffinite-math-only is given.
705 2008-01-06 Paolo Carlini <pcarlini@suse.de>
708 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
709 * doc/cpp.texi ([Common Predefined Macros]): Document.
711 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
713 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
714 order to use commutative addition instead of subtraction.
716 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
717 Mircea Namolaru <namolaru@il.ibm.com>
718 Vladimir Yanovsky <yanov@il.ibm.com>
719 Revital Eres <eres@il.ibm.com>
721 PR tree-optimization/34263
722 * tree-outof-ssa.c (process_single_block_loop_latch,
723 contains_tree_r): New functions.
724 (analyze_edges_for_bb): Call process_single_block_loop_latch
725 function to empty single-basic-block latch block if possible.
727 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
729 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
731 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
733 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
735 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
737 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
739 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
741 2008-01-05 Jakub Jelinek <jakub@redhat.com>
743 PR tree-optimization/34618
744 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
747 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
750 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
751 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
752 Update copyright year.
754 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
755 Update copyright year.
756 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
759 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
761 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
762 edge does not point to current bb before changing need_assert.
764 2008-01-04 Richard Guenther <rguenther@suse.de>
767 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
768 for verifying purposes if they are is_gimple_min_invariant.
770 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
772 PR tree-optimization/34448
773 PR tree-optimization/34465
774 * gimplify.c (gimplify_init_constructor): Add new parameter
775 notify_temp_creation. Use it.
776 (gimplify_modify_expr_rhs): Take volatiles into account when
777 optimizing constructors.
778 Do not optimize constructors if gimplify_init_constructor will dump to
780 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
781 * gcc.c-torture/compile/pr34448.c: New.
783 2008-01-04 Jakub Jelinek <jakub@redhat.com>
785 PR gcov-profile/34609
786 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
787 return_slot if result is TREE_ADDRESSABLE.
789 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
791 * config/mips/mips.md (sqrt_condition): Tweak comment.
792 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
794 2008-01-03 Tom Tromey <tromey@redhat.com>
797 * c-common.c (c_type_hash): Handle VLAs.
799 2008-01-03 Jan Hubicka <jh@suse.cz>
801 PR tree-optimization/31081
802 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
803 0 when inlining and not inlining to first basic block.
804 (remap_decl): When var is initialized to 0, don't set default_def.
805 (expand_call_inline): Set entry_bb.
806 * tree-inline.h (copy_body_data): Add entry_bb.
808 2008-01-03 Jakub Jelinek <jakub@redhat.com>
811 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
814 PR tree-optimization/29484
815 * tree-inline.c (inline_forbidden_p_2): New function.
816 (inline_forbidden_p): Disallow inlining if some static var
817 has an address of a local LABEL_DECL in its initializer.
818 * doc/extend.texi (Labels as Values): Document &&foo behaviour
821 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
823 PR tree-optimization/34635
824 * tree-data-ref.c (add_other_self_distances): Make sure that the
825 evolution step is constant.
827 2008-01-03 Jakub Jelinek <jakub@redhat.com>
830 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
832 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
834 * tree-sra.c (scalarize_init): Insert the generate_element_init
835 statements after the generate_element_zero statements.
837 2008-01-02 Richard Guenther <rguenther@suse.de>
841 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
842 for very large number of operands instead of ICEing.
844 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
847 * gcc/config/i386/i386.c (ix86_expand_prologue): Save red-zone
850 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
852 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
855 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
858 * tree-mudflap.c (mx_register_decls): Guard warning by
859 !DECL_ARTIFICIAL check.
861 2008-01-01 Jakub Jelinek <jakub@redhat.com>
863 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
864 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
865 sse5_perm<mode>): Fix constraints.