1 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
6 * pa-hpux10.h (LINK_SPEC): Likewise.
7 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
9 2008-01-16 Richard Guenther <rguenther@suse.de>
12 * fold-const.c (fold_convert_const_int_from_int): Do not
13 set overflow if that occured only because of a sign extension
14 change when converting from/to a sizetype with the same
15 precision and signedness.
17 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
20 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
21 location address to the correct place. Update copyright year.
23 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
25 * lambda-code.c (lambda_transform_legal_p): Handle the case of
26 no dependences in the dependence_relations vector.
28 2008-01-16 Jan Hubicka <jh@suse.cz>
30 PR rtl-optimization/31396
31 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
32 * cfg.c (dump_reg_info): Print it.
33 * regs.h (struct reg_info_t): add freq_calls_crossed.
34 (REG_FREQ_CALLS_CROSSED): New macro.
35 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
36 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
37 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
38 regmove_optimize): Update call crossed frequencies.
39 * local-alloc.c (struct qty): Add freq_calls_crossed.
40 (alloc_qty): Copute freq_calls_crossed.
41 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
42 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
43 * ra.h (struct allocno): Add freq_calls_crossed.
45 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
47 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
48 libgomp when compiling with ftree-parallelize-loops.
49 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
51 2008-01-16 Richard Guenther <rguenther@suse.de>
53 PR tree-optimization/34769
54 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
55 * tree.c (int_cst_value): Instead make this function more
56 permissive in what it accepts as valid input. Document this
57 function always sign-extends the value.
59 2008-01-16 Jakub Jelinek <jakub@redhat.com>
60 Richard Guenther <rguenther@suse.de>
63 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
64 (gimple_fold_indirect_ref_rhs): ... this.
65 (gimple_fold_indirect_ref): New function with foldings
66 that preserve lvalueness.
67 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
68 * tree-flow.h (gimple_fold_indirect_ref): Declare.
69 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
70 to fold an INDIRECT_REF, fall back to the old use of
73 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
75 * tree-data-ref.c (subscript_dependence_tester_1): Call
76 free_conflict_function.
77 (compute_self_dependence): Same.
79 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
82 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
83 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
85 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
86 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
87 for DWARF2_UNWIND_INFO targets.
89 2008-01-16 Richard Guenther <rguenther@suse.de>
92 * c-typeck.c (common_pointer_type): Do not merge inconsistent
93 type qualifiers for function types.
95 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
97 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
98 loop_iterator li from previous commit.
100 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
102 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
104 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
106 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
107 (parallelize_loops): Don't parallelize irreducible components.
109 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
112 * c-opts (c_common_post_options): Do not enable CPP
113 flag_pedantic_errors by default.
115 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
117 PR rtl-optimization/31944
118 * cse.c (remove_pseudo_from_table): New function.
119 (merge_equiv_classes): Use above function to remove pseudo-registers.
120 (invalidate): Likewise.
122 2008-01-13 Richard Guenther <rguenther@suse.de>
125 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
126 instead of TYPE_MODE to deal with calls from expand_one_error_var.
128 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
130 * gcse.c (cprop_jump): Call validate_unshare_change instead of
131 validate_change to unshare the source of the PC set.
133 2008-01-12 Jan Hubicka <jh@suse.cz>
136 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
137 references above array bounds. This might trigger bounds checks for
140 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
142 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
143 new_replaceable_dependencies.
145 2008-01-12 Doug Kwan <dougkwan@google.com>
147 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
148 instead of OPT_Wreturn_type in warning due to ignored return type
150 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
151 options included in -Wextra.
152 * c.opt: New option -Wignored_qualifiers.
153 * doc/invoke.texi (Warning Options, -Wextra): Add new option
155 (-Wignored-qualifiers): Document.
156 (-Wreturn-type): Remove description of functionality now handled
157 by -Wignored-qualifiers.
159 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
162 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
163 NOP_EXPR if it is between integral types with the same precision.
165 2008-01-12 Jan Hubicka <jh@suse.cz>
168 * invoke.texi (max-inline-recursive-depth): Fix default value.
170 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
172 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
175 2008-01-11 Bob Wilson <bob.wilson@acm.org>
177 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
179 2008-01-11 James E. Wilson <wilson@specifix.com>
182 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
184 2008-01-11 Anatoly Sokolov <aesok@post.ru>
186 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
187 save/restore frame pointer register and don't use 'call-prologues'
188 optimization in function with "OS_task" attribute.
190 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
193 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
194 when copying to memory.
196 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
198 PR rtl-optimization/30905
199 * cfgcleanup.c: Include dce.h
200 (crossjumps_occured): New global variable.
201 (try_crossjump_bb): Exit loop after finding a fallthru edge.
202 If something changed, set crossjumps_occured to true.
203 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
204 Don't add/remove fake edges to exit here...
205 (cleanup_cfg): ...but do it here, when crossjumping.
206 Run a fast DCE when successful crossjumps occured in the latest
207 iteration of try_optimize_cfg.
209 2008-01-11 Richard Guenther <rguenther@suse.de>
211 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
212 (struct vn_unary_op_s): Likewise.
213 (vn_reference_insert): Free old reference on hash collision.
215 2008-01-10 Raksit Ashok <raksit@google.com>
217 PR rtl-optimization/27971
218 * combine.c (find_split_point): Split PLUS expressions which are
219 inside a MEM rtx, and whose first operand is complex.
221 2008-01-10 DJ Delorie <dj@redhat.com>
223 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
224 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
225 (m32c_hard_regno_ok): Call the underlying function.
227 2008-01-10 Richard Guenther <rguenther@suse.de>
230 * tree-cfg.c (tree_merge_blocks): Do not go through the
231 full-blown folding and stmt updating path if we just deal
232 with virtual operands.
233 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
234 test for abnormal SSA_NAMEs.
236 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
239 * reload.c (push_reload): Add assertions. All constants from
240 reg_equiv_constant should have been used for replacing the respective
242 (find_reloads_address): Invoke find_reloads_address_part for
243 constant taken from the reg_equiv_constant array.
245 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
247 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
248 field (valnum) the first in the struct. Replace bools with
251 2008-01-10 Richard Guenther <rguenther@suse.de>
253 PR tree-optimization/34651
254 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
255 types and ordering for masking and converting.
257 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
259 PR tree-optimization/34017
260 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
261 also for PHI_NODE expressions.
263 2008-01-09 Jan Hubicka <jh@suse.cz>
265 PR tree-optimization/34708
266 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
267 based on number of case labels.
268 (init_inline_once): Remove switch_cost.
269 * tree-inline.h (eni_weights_d): Remove switch_cost.
271 2008-01-09 Richard Guenther <rguenther@suse.de>
272 Andrew Pinski <andrew_pinski@playstation.sony.com>
275 * gimplify.c (gimplify_cond_expr): Do not create an addressable
276 temporary if an rvalue is ok or an lvalue is not required.
278 2008-01-09 Richard Guenther <rguenther@suse.de>
281 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
284 2008-01-09 Richard Guenther <rguenther@suse.de>
287 * tree.c (host_integerp): Check for sizetype only if the
288 type is an integer type.
290 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
293 * opts.c (decode_options): Disable inlining of functions called
294 once if not in unit-at-a-time mode.
296 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
298 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
300 2008-01-08 Richard Guenther <rguenther@suse.de>
303 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
304 out early if the result will be unused.
306 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
311 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
312 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
315 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
317 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
318 for vectorization tuned.
320 2008-01-08 Richard Guenther <rguenther@suse.de>
322 PR tree-optimization/34683
323 * tree-ssa-operands.c (operand_build_cmp): Export.
324 * tree-ssa-operands.h (operand_build_cmp): Declare.
325 * tree-vn.c (vuses_compare): Remove.
326 (sort_vuses): Use operand_build_cmp.
327 (sort_vuses_heap): Likewise.
328 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
329 to re-use old VEC if available. Do not sort already sorted VUSEs.
330 (vdefs_to_vec): Do not sort already sorted VDEFs.
332 2008-01-08 Jakub Jelinek <jakub@redhat.com>
335 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
337 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
340 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
341 limitations of reciprocal sequences on x86 targets.
343 2008-01-08 Richard Guenther <rguenther@suse.de>
345 PR tree-optimization/34683
346 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
348 2008-01-07 Jakub Jelinek <jakub@redhat.com>
351 * config/darwin.c (darwin_mergeable_string_section): Don't use
352 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
354 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
357 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
358 negxf2. Macroize expander using X87MODEF mode iterator. Change
359 predicates of op0 and op1 to register_operand.
360 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
361 expander using X87MODEF mode iterator. Change predicates of
362 op0 and op1 to register_operand.
363 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
364 corresponding patterns and macroize using MODEF macro. Change
365 predicates of op0 and op1 to register_operand and remove
366 "m" constraint. Disparage "r" alternative with "!".
367 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
368 macroize using X87MODEF macro. Change predicates of op0 and op1
369 to register_operand and remove "m" constraint. Disparage "r"
370 alternative with "!".
371 (absneg splitter with memory operands): Remove.
372 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
373 patterns and macroize using X87MODEF mode iterator.
374 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
375 Change predicate of op1 to register_operand.
376 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
379 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
381 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
383 2008-01-07 Richard Guenther <rguenther@suse.de>
385 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
388 2008-01-07 Richard Guenther <rguenther@suse.de>
390 PR tree-optimization/34683
391 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
392 VOPs of the needed size to save memory. Use VEC_quick_push
393 to save compile-time.
394 (vdefs_to_vec): Likewise.
396 2008-01-07 Sa Liu <saliu@de.ibm.com>
398 * config/spu/spu.md (divdf3): Genetate inline code for double
399 division. The implementation doesn't handle INF or NAN, therefore it
400 only applies when -ffinite-math-only is given.
402 2008-01-06 Paolo Carlini <pcarlini@suse.de>
405 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
406 * doc/cpp.texi ([Common Predefined Macros]): Document.
408 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
410 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
411 order to use commutative addition instead of subtraction.
413 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
414 Mircea Namolaru <namolaru@il.ibm.com>
415 Vladimir Yanovsky <yanov@il.ibm.com>
416 Revital Eres <eres@il.ibm.com>
418 PR tree-optimization/34263
419 * tree-outof-ssa.c (process_single_block_loop_latch,
420 contains_tree_r): New functions.
421 (analyze_edges_for_bb): Call process_single_block_loop_latch
422 function to empty single-basic-block latch block if possible.
424 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
426 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
428 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
430 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
432 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
434 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
436 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
438 2008-01-05 Jakub Jelinek <jakub@redhat.com>
440 PR tree-optimization/34618
441 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
444 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
447 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
448 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
449 Update copyright year.
451 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
452 Update copyright year.
453 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
456 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
458 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
459 edge does not point to current bb before changing need_assert.
461 2008-01-04 Richard Guenther <rguenther@suse.de>
464 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
465 for verifying purposes if they are is_gimple_min_invariant.
467 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
469 PR tree-optimization/34448
470 PR tree-optimization/34465
471 * gimplify.c (gimplify_init_constructor): Add new parameter
472 notify_temp_creation. Use it.
473 (gimplify_modify_expr_rhs): Take volatiles into account when
474 optimizing constructors.
475 Do not optimize constructors if gimplify_init_constructor will dump to
477 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
478 * gcc.c-torture/compile/pr34448.c: New.
480 2008-01-04 Jakub Jelinek <jakub@redhat.com>
482 PR gcov-profile/34609
483 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
484 return_slot if result is TREE_ADDRESSABLE.
486 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
488 * config/mips/mips.md (sqrt_condition): Tweak comment.
489 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
491 2008-01-03 Tom Tromey <tromey@redhat.com>
494 * c-common.c (c_type_hash): Handle VLAs.
496 2008-01-03 Jan Hubicka <jh@suse.cz>
498 PR tree-optimization/31081
499 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
500 0 when inlining and not inlining to first basic block.
501 (remap_decl): When var is initialized to 0, don't set default_def.
502 (expand_call_inline): Set entry_bb.
503 * tree-inline.h (copy_body_data): Add entry_bb.
505 2008-01-03 Jakub Jelinek <jakub@redhat.com>
508 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
511 PR tree-optimization/29484
512 * tree-inline.c (inline_forbidden_p_2): New function.
513 (inline_forbidden_p): Disallow inlining if some static var
514 has an address of a local LABEL_DECL in its initializer.
515 * doc/extend.texi (Labels as Values): Document &&foo behaviour
518 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
520 PR tree-optimization/34635
521 * tree-data-ref.c (add_other_self_distances): Make sure that the
522 evolution step is constant.
524 2008-01-03 Jakub Jelinek <jakub@redhat.com>
527 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
529 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
531 * tree-sra.c (scalarize_init): Insert the generate_element_init
532 statements after the generate_element_zero statements.
534 2008-01-02 Richard Guenther <rguenther@suse.de>
538 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
539 for very large number of operands instead of ICEing.
541 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
544 * gcc/config/i386/i386.c (ix86_expand_prologue): Save red-zone
547 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
549 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
552 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
555 * tree-mudflap.c (mx_register_decls): Guard warning by
556 !DECL_ARTIFICIAL check.
558 2008-01-01 Jakub Jelinek <jakub@redhat.com>
560 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
561 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
562 sse5_perm<mode>): Fix constraints.