1 2010-04-08 Jakub Jelinek <jakub@redhat.com>
4 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
5 set but not used variable warning.
7 2010-04-08 Wei Guozhi <carrot@google.com>
10 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
11 (arm_size_rtx_costs): Call the new function when optimized for size.
13 2010-04-08 Jakub Jelinek <jakub@redhat.com>
16 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
17 op0 is not a MEM, just return NULL instead of assertion
19 (discover_nonconstant_array_refs): Don't walk debug stmts.
21 2010-04-08 Doug Kwan <dougkwan@google.com>
23 * configure.ac: Recognize gold and do not use its version number
25 * configure: Regenerate.
27 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
30 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
31 (negate_value): Move code to push elements to broken_up_substracts ...
32 (eliminate_plus_minus_pair): ... here. Push operands that have no
33 negative pair to plus_negates.
34 (repropagate_negates, init_reassoc, fini_reassoc): Update.
36 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38 * doc/install.texi (Configuration): Move description of
39 --enable-lto, --with-libelf*, --enable-gold from Java section to
42 * doc/generic.texi (Working with declarations)
43 (Function Properties, C and C++ Trees): Fix typos.
44 * doc/sourcebuild.texi (Top Level): Likewise.
46 2010-04-07 Jakub Jelinek <jakub@redhat.com>
49 * tree.h (DECL_READ_P): Define.
50 (struct tree_decl_common): Add decl_read_flag.
51 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
52 a set but not used warning.
53 (merge_decls): Merge DECL_READ_P flag.
54 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
55 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
56 * c-common.c (handle_used_attribute, handle_unused_attribute):
58 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
60 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
62 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
63 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
64 c_parser_binary_expression, c_parser_cast_expression,
65 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
66 Call default_function_array_read_conversion instead of
67 default_function_array_conversion where needed.
68 (c_parser_unary_expression, c_parser_conditional_expression,
69 c_parser_postfix_expression_after_primary, c_parser_initelt):
70 Likewise. Call mark_exp_read where needed.
71 (c_parser_statement_after_labels, c_parser_asm_operands,
72 c_parser_typeof_specifier, c_parser_sizeof_expression,
73 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
75 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
77 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
78 (warn_unused_but_set_parameter): Default to warn_unused
80 * doc/invoke.texi: Document -Wunused-but-set-variable and
81 -Wunused-but-set-parameter.
83 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
85 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
86 when operandN variables aren't used in the body of the expander
88 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
89 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
90 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
91 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
92 FOR_EACH_IMM_USE_ON_STMT): Likewise.
93 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
94 * tree.c (PROCESS_ARG): Likewise.
96 2010-04-07 Simon Baldwin <simonb@google.com>
98 * diagnostic.h (diagnostic_override_option_index): New macro to
99 set a diagnostic's option_index.
100 * c-tree.h (c_cpp_error): Add warning reason argument.
101 * opts.c (_warning_as_error_callback): New.
102 (register_warning_as_error_callback): Store callback for
103 warnings enabled via enable_warning_as_error.
104 (enable_warning_as_error): Call callback, minor code tidy.
105 * opts.h (register_warning_as_error_callback): Declare.
106 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
107 response to -Werror=.
108 (c_common_init_options): Register warning_as_error_callback in opts.c.
109 * common.opt: Add -Wno-cpp option.
110 * c-common.c (struct reason_option_codes_t): Map cpp warning
111 reason codes to gcc option indexes.
112 * (c_option_controlling_cpp_error): New function, lookup the gcc
113 option index for a cpp warning reason code.
114 * (c_cpp_error): Add warning reason argument, call
115 c_option_controlling_cpp_error for diagnostic_override_option_index.
116 * doc/invoke.texi: Document -Wno-cpp.
118 2010-04-07 Richard Guenther <rguenther@suse.de>
120 * ipa-reference.c (mark_load): Use get_base_address.
121 (mark_store): Likewise.
123 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
124 inserting GIMPLE_NOPs into the IL.
125 * tree-ssa-structalias.c (get_constraint_for_component_ref):
126 Explicitly strip handled components and indirect references.
128 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
129 folding address expressions.
130 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
131 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
132 operand_equal_p to compare decls.
133 (ptr_deref_may_alias_decl_p): Likewise.
134 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
135 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
136 Handle reversed comparison ops.
137 * tree-sra.c (asm_visit_addr): Use get_base_address.
138 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use
140 * ipa-reference.c (mark_address): Use get_base_address.
142 2010-04-07 Richard Guenther <rguenther@suse.de>
144 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
145 Propagate constants everywhere.
147 2010-04-07 Jakub Jelinek <jakub@redhat.com>
150 * tree.c (MAX_INT_CACHED_PREC): Define.
151 (nonstandard_integer_type_cache): New array.
152 (build_nonstandard_integer_type): Cache results for precision
153 <= MAX_INT_CACHED_PREC.
155 2010-04-07 Richard Guenther <rguenther@suse.de>
157 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
158 -fargument-noalias-global, -fargument-noalias-anything): Remove.
159 * common.opt: Likewise.
160 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust
162 * alias.c (base_alias_check): Remove flag_argument_noalias
164 (nonoverlapping_memrefs_p): Likewise.
165 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
166 * opts.c (common_handle_option): Handle OPT_fargument_alias,
167 OPT_fargument_noalias, OPT_fargument_noalias_anything and
168 OPT_fargument_noalias_global for backward compatibility.
170 2010-04-07 Richard Guenther <rguenther@suse.de>
172 PR tree-optimization/43270
173 * tree-vrp.c (check_array_ref): Fix flexible array member
175 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
176 * tree-ssa-pre.c (phi_translate_1): Adjust.
177 (fully_constant_expression): Split out vn_reference handling to ...
178 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
179 Fold reads from constant strings.
180 (vn_reference_lookup): Handle fully constant references.
181 (vn_reference_lookup_pieces): Likewise.
182 * Makefile.in (expmed.o-warn): Add -Wno-error.
184 2010-04-07 Martin Jambor <mjambor@suse.cz>
186 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
188 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
191 * gcc.c: Add -static-libstdc++ to list of recognized options.
193 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
195 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to
198 2010-04-07 Richard Guenther <rguenther@suse.de>
201 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with
202 pointer bases build simple mem attributes to retain
203 points-to information.
205 2010-04-07 Richard Guenther <rguenther@suse.de>
208 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
209 preserve points-to related information.
211 2010-04-07 Richard Guenther <rguenther@suse.de>
214 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
215 discard plain indirect references.
216 * fold-const.c (operand_equal_p): Guard against NULL_TREE
218 * tree.c (tree_nop_conversion): Likewise.
220 2010-04-07 Dodji Seketeli <dodji@redhat.com>
223 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
225 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
227 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
228 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
230 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
232 * tree-if-conv.c: Fix indentation and comments.
234 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
236 * tree-if-conv.c: Sort static functions in topological order.
238 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
240 * tree-if-conv.c: Fix indentation and comments.
242 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
245 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
246 lang_hooks.types.type_for_size instead of build_nonstandard_integer_type.
247 When converting an unsigned type to signed, double its precision.
248 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
249 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
250 (graphite_create_new_loop_guard): When ub + 1 wraps around, use lb <= ub.
252 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
255 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
256 POINTER_PLUS_EXPR for pointer types.
258 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
261 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
262 * graphite-clast-to-gimple.c: Include langhooks.h.
263 (max_signed_precision_type): New.
264 (max_precision_type): Takes two types as arguments.
265 (precision_for_value): New.
266 (precision_for_interval): New.
267 (gcc_type_for_interval): New.
268 (gcc_type_for_value): New.
269 (gcc_type_for_clast_term): New.
270 (gcc_type_for_clast_red): New.
271 (gcc_type_for_clast_bin): New.
272 (gcc_type_for_clast_expr): Split up into several functions.
273 (gcc_type_for_clast_eq): Rewritten.
274 (compute_bounds_for_level): New.
275 (compute_type_for_level_1): New.
276 (compute_type_for_level): New.
277 (gcc_type_for_cloog_iv): Removed.
278 (gcc_type_for_iv_of_clast_loop): Rewritten.
279 (graphite_create_new_loop): Compute the lower and upper bound types
280 with gcc_type_for_clast_expr.
281 (graphite_create_new_loop_guard): Same.
282 (find_cloog_iv_in_expr): Removed.
283 (compute_cloog_iv_types_1): Removed.
284 (compute_cloog_iv_types): Removed.
285 (gloog): Do not call compute_cloog_iv_types.
286 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
288 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
289 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
290 (GBB_CLOOG_IV_TYPES): Removed.
292 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
294 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
295 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
296 (detect_commutative_reduction): Same.
298 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
300 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
301 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
303 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
304 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
305 (rewrite_commutative_reductions_out_of_ssa): Same.
306 * passes.c (execute_function_todo): Call verify_ssa for every pass
307 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
308 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
309 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
310 with an extra argument.
311 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
312 verify_ssa only when the extra argument is true.
313 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
314 with an extra argument.
315 (tree_transform_and_unroll_loop): Same.
317 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
319 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
320 for all the passes of the LNO having LOOP_CLOSED_SSA.
321 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
322 * tree-loop-distribution.c (pass_loop_distribution): Same.
323 * tree-pass.h (TODO_verify_loops): Removed.
324 * tree-ssa-loop.c (pass_tree_loop_init): Same.
326 (pass_tree_unswitch): Same.
327 (pass_predcom): Same.
328 (pass_vectorize): Same.
329 (pass_linear_transform): Same.
330 (pass_graphite_transforms): Same.
331 (pass_iv_canon): Same.
332 (pass_complete_unroll): Same.
333 (pass_complete_unrolli): Same.
334 (pass_parallelize_loops): Same.
335 (pass_loop_prefetch): Same.
336 (pass_iv_optimize): Same.
338 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
341 * passes.c (init_optimization_passes): Move pass_lim before
342 pass_copy_prop and pass_dce_loop.
344 2010-04-06 Jakub Jelinek <jakub@redhat.com>
347 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
348 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
349 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
350 MULTI_* defines for 4 argument vpermil2p* builtins.
352 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
354 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
355 * config/i386/i386.c (x86_maybe_negate_const_int): New.
356 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
357 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
358 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
359 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
360 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
361 Use x86_maybe_negate_const_int to output insn mnemonic.
362 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
363 check from instruction predicate. Update comments.
364 * config/i386/sync.md (sync_add<mode>): Use
365 x86_maybe_negate_const_int to output insn mnemonic.
367 2010-04-06 Jan Hubicka <jh@suse.cz>
369 PR tree-optimization/42906
370 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
371 IGNORE_SELF argument. Set visited_control_parents for fully
373 (find_obviously_necessary_stmts): Update call of
374 mark_control_dependent_edges_necessary.
375 (propagate_necessity): Likewise. Handle PHI edges more curefully.
377 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
379 * config/i386/i386.md: Remove comment about 'e' and 'E'
382 2010-04-06 Richard Guenther <rguenther@suse.de>
384 PR tree-optimization/43627
385 * tree-vrp.c (extract_range_from_unary_expr): Widenings
386 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
389 2010-04-06 Jakub Jelinek <jakub@redhat.com>
391 * BASE-VER: Change to 4.6.0.
394 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
397 2010-04-06 Richard Guenther <rguenther@suse.de>
400 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
402 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
404 * doc/invoke.texi (Optimize Options): Document that LTO
405 won't remove object access purely due to incompatible
408 2010-04-04 Matthias Klose <doko@ubuntu.com>
410 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
413 2010-04-03 Richard Guenther <rguenther@suse.de>
416 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
417 require a non-NULL MEM_OFFSET.
419 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
421 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
422 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
423 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
424 config/alpha/predicates.md, config/arm/arm.md,
425 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
426 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
427 config/darwin9.h, config/darwin.c, config/darwin.h,
428 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
429 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
430 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
431 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
432 config/mips/mips.md, config/mn10300/mn10300.c,
433 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
434 config/rs6000/aix.h, config/rs6000/dfp.md,
435 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
436 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
437 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
438 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
439 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
440 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
441 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
442 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
443 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
444 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
445 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
446 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
447 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
448 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
449 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
450 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
451 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
452 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
453 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
454 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
455 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
456 opt-functions.awk, opth-gen.awk, params.def, passes.c,
457 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
458 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
459 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
460 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
461 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
462 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
463 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
464 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
465 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
466 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
467 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
468 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
469 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
470 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
472 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
475 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
476 * aclocal.m4: Regenerate.
478 2010-04-02 Richard Guenther <rguenther@suse.de>
480 PR tree-optimization/43629
481 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
482 if we have seen a constant value.
484 2010-04-02 Joseph Myers <joseph@codesourcery.com>
486 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for
489 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
492 * arm.c (legitimize_tls_address): Adjust call to
493 gen_tls_load_dot_plus_four.
494 (arm_note_pic_base): New function.
495 (arm_cannot_copy_insn_p): Use it.
496 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
499 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
504 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
506 * Makefile.in ($(out_object_file)): Depend on
507 gt-$(basename $(notdir $(out_file))).h.
509 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
511 * config.gcc (lm32-*-rtems*): Add t-lm32.
513 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
515 * config.gcc: Add lm32-*-rtems*.
516 * config/lm32/rtems.h: New file.
518 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
521 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
523 2010-04-01 Jakub Jelinek <jakub@redhat.com>
525 * dwarf2out.c (output_compilation_unit_header): For
526 -gdwarf-4 use version 4 instead of version 3.
527 (output_line_info): For version 4 and above emit additional
528 maximum ops per insn header field.
529 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
531 * dwarf2out.c (is_c_family, is_java): Remove.
532 (lower_bound_default): New function.
533 (add_bound_info, gen_descr_array_type_die): Use it.
535 2010-04-01 Dodji Seketeli <dodji@redhat.com>
538 * dwarf2out.c (gen_variable_die): Allow debug info for variable
539 re-declaration when it happens in a function.
541 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
543 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
544 (cgraph_remove_function_insertion_hook): Same.
545 (cgraph_call_function_insertion_hooks): Same.
547 2010-04-01 Richard Guenther <rguenther@suse.de>
550 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
551 and TREE_THIS_VOLATILE.
552 (copy_ref_info): Likewise.
553 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
554 * tree.c (build6_stat): Ignore side-effects of all but arg5
555 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
558 2010-04-01 Richard Guenther <rguenther@suse.de>
560 PR tree-optimization/43607
561 * ipa-type-escape.c (check_call): Do not access non-existing
564 2010-04-01 Richard Guenther <rguenther@suse.de>
568 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
569 Jack Howarth <howarth@bromo.med.uc.edu>
571 * tree-profile.c (tree_init_ic_make_global_vars): Make static
574 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
576 * doc/install.texi (Prerequisites): Document libelf usability on
577 IRIX 5/6 and Solaris 2.
578 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
579 Update GNU as, GNU ld requirements.
580 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
581 Document Sun Studio compiler download.
582 Update and simplify as, ld recommendations.
583 (Specific, *-*-solaris2.7): Note obsoletion, removal.
585 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
587 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
588 with_tune_32 to pentium4.
590 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
592 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
594 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
596 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
599 Document GNU as requirement.
600 Update configure requirements.
601 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion,
603 Recomment IRIX 6.5.18+.
604 Document IDF/IDL requirement.
605 Document GNU as requirement.
606 Document GNU ld bootstrap failure.
607 Remove freeware.sgi.com reference.
609 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
611 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
612 UNIX V4.0, V5.0 obsoletion, removal.
613 Remove --with-gc=simple reference.
614 Update VM requirements during bootstrap.
615 Remove -oldas bootstrap description.
616 Update binutils reference.
617 Remove comparison failure note.
619 2010-03-31 Richard Guenther <rguenther@suse.de>
620 Zdenek Dvorak <ook@ucw.cz>
621 Sebastian Pop <sebastian.pop@amd.com>
624 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
625 with multiple arguments.
626 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
628 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
630 * graphite-dependences.c (print_pddr): Call print_pdr with an
632 * graphite-poly.c (debug_pdr): Add an extra argument for the
635 (print_pbb_domain): Same.
637 (print_scop_context): Same.
640 (debug_pbb_domain): Same.
644 (debug_scop_context): Same.
647 (print_scop_params): Same.
648 (debug_scop_params): Same.
649 (print_iteration_domain): Same.
650 (print_iteration_domains): Same.
651 (debug_iteration_domain): Same.
652 (debug_iteration_domains): Same.
653 (print_scattering_function): Same.
654 (print_scattering_functions): Same.
655 (debug_scattering_function): Same.
656 (debug_scattering_functions): Same.
657 * graphite-poly.h (debug_pdr): Update declaration.
659 (print_pbb_domain): Same.
661 (print_scop_context): Same.
664 (debug_pbb_domain): Same.
668 (debug_scop_context): Same.
671 (print_scop_params): Same.
672 (debug_scop_params): Same.
673 (print_iteration_domain): Same.
674 (print_iteration_domains): Same.
675 (debug_iteration_domain): Same.
676 (debug_iteration_domains): Same.
677 (print_scattering_function): Same.
678 (print_scattering_functions): Same.
679 (debug_scattering_function): Same.
680 (debug_scattering_functions): Same.
682 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
684 * graphite-poly.c (print_scattering_function_1): New.
685 (print_scattering_function): Call it.
686 (print_scop_params): Remove spaces at the end of lines.
689 * graphite-poly.h (print_cloog): Declared.
690 (debug_cloog): Declared.
692 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
694 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
696 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
697 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
698 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
699 to switch between adding the IV bump in loop->latch or in loop->header.
701 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
703 * graphite-poly.c (print_scattering_function): Pretty print following
706 (print_pbb_domain): Same.
707 (dump_gbb_cases): Same.
708 (dump_gbb_conditions): Same.
711 (print_scop_params): Same.
712 (print_scop_context): Same.
714 (print_pbb_body): New.
715 (lst_indent_to): New.
716 (print_lst): Start new lines with a #.
717 * graphite-poly.h (pbb_bb): New.
718 (pbb_index): Use pbb_bb.
719 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
721 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
723 2010-03-31 Jakub Jelinek <jakub@redhat.com>
725 * dwarf2out.c (size_of_die): For -gdwarf-4 use
726 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
727 and 0 instead of 1 for dw_val_class_flag.
728 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
729 dw_val_class_range_list, dw_val_class_loc_list,
730 dw_val_class_lineptr and dw_val_class_macptr, use
731 DW_FORM_flag_present for dw_val_class_flag and
732 DW_FORM_exprloc for dw_val_class_loc.
733 (output_die): For -gdwarf-4 print dw_val_class_loc
734 size as uleb128 instead of 1 or 2 bytes and don't print
735 anything for dw_val_class_flag.
737 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
738 instead of cselib_lookup following by tweaking locs->setting_insn.
741 * cselib.c (cselib_process_insn): Clear cselib_current_insn
742 even before returning from label, setjmp call or volatile asm
745 2010-03-31 Richard Guenther <rguenther@suse.de>
748 * cgraphunit.c (cgraph_output_in_order): Do not allocate
749 temporary data on stack.
751 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
753 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
754 (PUSHSECTION_ASM_OP): Remove.
755 (POPSECTION_ASM_OP): Remove.
756 (PUSHSECTION_FORMAT): Remove.
757 * config/sol2.h (PUSHSECTION_FORMAT): Define.
758 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
759 * config/sol2.c (solaris_output_init_fini): Use it.
761 2010-03-31 Jie Zhang <jie@codesourcery.com>
764 * opt-functions.awk (var_type_struct): Use signed char type
765 for simple variables.
767 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
769 * config/sol2.c: Include output.h.
770 (solaris_assemble_visibility): New function.
771 * config/t-sol2 (sol2.o): Add output.h dependency.
772 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
773 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
776 2010-03-31 Jakub Jelinek <jakub@redhat.com>
779 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
780 V2SImode or XFmode on PRE_DEC.
783 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
786 2010-03-31 Jie Zhang <jie@codesourcery.com>
789 * reload.h (caller_save_initialized_p): Declare.
790 * toplev.c (backend_init_target): Don't call
791 init_caller_save but set caller_save_initialized_p to false.
792 * caller-save.c (caller_save_initialized_p): Define.
793 (init_caller_save): Check caller_save_initialized_p.
794 * ira.c (ira): Call init_caller_save if flag_caller_saves.
796 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
799 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
800 and soft-fp/t-softfp to tmake_file.
801 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
802 (LIBGCC2_TF_CEXT): Define.
805 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
808 * cselib.c (n_useless_values): Document handling of debug locs.
809 (n_useless_debug_values, n_debug_values): New variables.
810 (new_elt_loc_list): Don't add to debug values, keep count.
811 (promote_debug_loc): New.
812 (cselib_reset_table): Zero new variables.
813 (entry_and_rtx_equal_p): Promote debug locs.
814 (discard_useless_locs): Increment n_useless_debug_values for
816 (remove_useless_values): Adjust n_useless_values and n_debug_values
817 with n_useless_debug_values.
818 (add_mem_for_addr): Promote debug locs.
819 (cselib_lookup_mem): Likewise.
820 (cselib_lookup_addr): Renamed to...
821 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
822 (cselib_log_lookup): ... this. Turn into...
823 (cselib_lookup_addr): ... new wrapper.
824 (cselib_lookup_from_insn): New.
825 (cselib_invalidate_regno): Increment n_useless_debug_values for
827 (cselib_invalidate_mem): Likewise.
828 (cselib_process_insn): Take n_deleted and n_debug_values into
829 account to guard remove_useless_value call.
830 (cselib_finish): Zero n_useless_debug_values.
831 * cselib.h (cselib_lookup_from_insn): Declare.
832 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
833 (sched_analyze_2): Likewise.
835 2010-03-30 Jakub Jelinek <jakub@redhat.com>
837 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
839 (adjust_mems): Replace narrowing SUBREG of expression containing
840 just PLUS, MINUS, MULT and ASHIFT of registers and constants
841 with operations in the narrower mode.
844 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
845 regs_invalidated_by_call instead all call_used_reg_set registers.
847 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
850 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
851 pointer comparisons with types_compatible_p.
852 * tree-vect-stmts.c (vectorizable_call): Same.
853 (vectorizable_condition): Same.
855 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
857 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
858 stack check if the mask would be zero.
860 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
861 Jack Howarth <howarth@bromo.med.uc.edu>
863 * tree-profile.c (tree_init_ic_make_global_vars): Make static
866 2010-03-30 Joseph Myers <joseph@codesourcery.com>
869 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
871 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
872 Include ___unordxf2 and ___unordtf2.
873 * config/i386/libgcc-glibc.ver: Do not define inheritance from
876 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
878 * config/lm32/t-lm32: New file.
879 * config.gcc: Use the above file when targetting lm32.
881 2010-03-28 Duncan Sands <baldrick@free.fr>
883 * Makefile.in (PLUGIN_HEADERS): Add except.h.
885 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
888 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
889 Improve vectorization cost model diagnostic.
891 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
894 * tree-vect-data-refs.c (vect_analyze_data_refs): When
895 compute_data_dependences_for_loop returns false, early exit
896 and output an extra diagnostic for the failed data reference
899 2010-03-29 Richard Guenther <rguenther@suse.de>
901 PR tree-optimization/43560
902 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
903 (can_sm_ref_p): Treat stores to readonly locations as trapping.
905 2010-03-29 Jie Zhang <jie@codesourcery.com>
908 * toplev.c (process_options): Set optimization_default_node
909 and optimization_current_node.
910 * opts.c (decode_options): Don't set optimization_default_node
911 and optimization_current_node.
913 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
915 * config/rtems.h: Abandon -qrtems_debug.
917 2010-03-28 Jan Hubicka <jh@suse.cz>
919 PR tree-optimization/43505
920 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
921 map should not be copied.
923 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
926 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
927 cdtors, set DECL_PRESERVE_P.
928 * ipa.c (cgraph_externally_visible_p): Return true if declaration
931 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
933 PR tree-optimization/43528
934 * stor-layout.c (place_field): Check that constant fits into
935 unsigned HWI when skipping calculation of MS bitfield layout.
937 2010-03-27 Jan Hubicka <jh@suse.cz>
940 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
941 notice_global_symbol work.
943 2010-03-27 Jakub Jelinek <jakub@redhat.com>
945 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
946 instead of dwarf2out_decl.
947 (struct var_loc_node): Remove section_label field.
948 (dwarf2out_function_decl): New function.
949 (dwarf2out_var_location): Don't set section_label field.
950 (dwarf2out_begin_function): Don't empty decl_loc_table here.
952 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
954 PR tree-optimization/43544
955 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
956 First argument for builtin vectorized function hook is now a
957 tree to be able to distinguish between machine specific and
959 * targhooks.c (default_builtin_vectorized_function): Ditto.
960 * targhooks.h (default_builtin_vectorized_function): Ditto.
961 * target.h (struct gcc_target): Ditto.
962 * tree-vect-stmts.c (vectorizable_function): Ditto.
963 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
964 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
967 2010-03-26 Joseph Myers <joseph@codesourcery.com>
970 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
971 nested binding iff it is a FUNCTION_DECL.
972 (store_parm_decls_newstyle): Pass nested=true to bind for
973 FUNCTION_DECLs amongst parameters.
975 2010-03-26 Jakub Jelinek <jakub@redhat.com>
977 * var-tracking.c (vt_expand_loc_callback): Don't run
978 cselib_expand_value_rtx_cb in dummy mode if
979 cselib_dummy_expand_value_rtx_cb returned false.
981 * var-tracking.c (emit_note_insn_var_location): For one part
982 notes with offset 0, don't add EXPR_LIST around the location.
983 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
984 add_location_or_const_value_attribute): Adjust for that change.
987 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
988 into first operand and location into second.
989 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
990 dw_cfi_oprnd_loc for DW_CFA_expression.
991 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
992 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
993 assume first argument is regnum and second argument is location.
995 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
998 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
999 of scratch register to DImode. Split to DImode comparison operator.
1000 Use SImode subreg of scratch register in the multiplication.
1001 (*cmp_sadd_sidi): Ditto.
1002 (*cmp_ssub_si): Ditto.
1003 (*cmp_ssub_sidi): Ditto.
1005 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
1008 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
1009 Remove invalid assert and wrong comment.
1011 2010-03-26 Jakub Jelinek <jakub@redhat.com>
1014 * flags.h (final_insns_dump_p): New extern.
1015 * final.c (final_insns_dump_p): New variable.
1016 (rest_of_clean_state): Set it before -fdump-final-insns=
1017 dumping, clear afterwards.
1018 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
1019 MEM_ALIAS_SET on MEMs.
1021 2010-03-26 David S. Miller <davem@davemloft.net>
1023 * configure.ac: Fix sparc GOTDATA_OP bug check.
1024 * configure: Rebuild.
1026 2010-03-26 Alan Modra <amodra@gmail.com>
1028 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
1030 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1032 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
1033 TLS_SECTION_ASM_FLAG.
1035 2010-03-25 Jakub Jelinek <jakub@redhat.com>
1038 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
1039 Clear first_function_block_is_cold.
1042 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
1043 argument if the argument is truth_value_p.
1045 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
1047 * config/rs6000/constraints.md: Update copyright year for my changes.
1050 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
1051 used in reg+reg addressing, swap registers.
1053 2010-03-24 Jakub Jelinek <jakub@redhat.com>
1056 * target.h (struct gcc_target): Add code_end hook.
1057 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
1059 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
1060 * toplev.c (compile_file): Call targetm.asm_out.code_end
1061 hook before unwind info/debug info output.
1062 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
1063 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
1064 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
1065 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
1066 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
1067 * config/i386/i386.c (ix86_file_end): Renamed to...
1068 (ix86_code_end): ... this. Make static. Don't call
1069 file_end_indicate_exec_stack. Emit unwind info using
1070 final_start_function/final_end_function.
1071 (darwin_x86_file_end): Remove.
1072 (TARGET_ASM_CODE_END): Define.
1073 * config/i386/i386.h (TARGET_ASM_FILE_END,
1074 NEED_INDICATE_EXEC_STACK): Don't define.
1075 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
1076 (TARGET_ASM_FILE_END): Define to darwin_file_end.
1077 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
1078 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
1081 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
1082 at the beginning and final_end_function at the end.
1083 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
1085 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1087 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
1088 and Sun as TLS syntax.
1089 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
1090 * configure: Regenerate.
1091 * config.in: Regenerate.
1092 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
1093 (default_elf_asm_named_section): Use it.
1094 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
1095 (i386_output_dwarf_dtprel): Likewise.
1096 (output_addr_const_extra): Likewise.
1097 (output_pic_addr_const): Lowercase @GOTTPOFF.
1098 (output_addr_const_extra): Likewise.
1099 (output_pic_addr_const): Lowercase @GOTNTPOFF.
1100 (output_addr_const_extra): Likewise.
1101 (output_pic_addr_const): Lowercase @INDNTPOFF.
1102 (output_addr_const_extra): Likewise.
1103 (output_pic_addr_const): Lowercase @NTPOFF.
1104 (output_addr_const_extra): Likewise.
1105 (output_pic_addr_const): Lowercase @TPOFF.
1106 (output_addr_const_extra): Likewise.
1107 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
1108 (*tls_global_dynamic_64): Likewise.
1109 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
1110 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
1112 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
1113 (ASM_OUTPUT_TLS_COMMON): Use it.
1114 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
1117 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
1118 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
1119 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
1120 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
1121 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
1122 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
1124 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1126 * config/i386/i386.c (override_options): Don't accept
1127 -mtls-dialect=sun any longer.
1128 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
1129 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
1130 (*tls_local_dynamic_base_32_sun): Likewise.
1131 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
1133 2010-03-24 Jakub Jelinek <jakub@redhat.com>
1136 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
1137 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
1140 * ira.c (adjust_cleared_regs): New function.
1141 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
1145 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
1147 * expr.c (expand_expr_real): Restore previous
1148 curr_insn_source_location and curr_insn_block after
1149 expand_expr_real_1 call.
1150 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
1151 instead of expand_expr_real_1.
1153 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
1155 PR rtl-optimization/43413
1156 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
1159 2010-03-22 James E. Wilson <wilson@codesourcery.com>
1162 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
1163 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
1165 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
1167 * config/i386/i386.c (ix86_target_string): Add -mfma.
1168 Fix a typo in comment.
1170 2010-03-22 Mike Stump <mikestump@comcast.net>
1173 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
1174 Don't overly align based upon packed packed fields.
1176 2010-03-22 Jason Merrill <jason@redhat.com>
1178 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
1179 Use () rather than [], and move before the element type.
1181 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1183 * doc/configfiles.texi (Configuration Files): Removed
1184 fixinc/Makefile*, intl/Makefile.*.
1185 * doc/makefile.texi: Fixed markup. Abstract from version
1186 control system used.
1187 (Makefile): Removed obsolete gcc/java/parse.y example.
1188 * doc/sourcebuild.texi: Likewise.
1189 (Top Level): Added config, gnattools, libdecnumber, libgcc,
1190 libgomp, libssp. Removed fastjar.
1191 (Miscellaneous Docs): Clarify location.
1192 Added COPYING3, COPYING3.LIB.
1193 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
1195 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1198 * config/i386/i386.c (x86_function_profiler)
1199 [!NO_PROFILE_COUNTERS]: Fix typo.
1200 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
1203 2010-03-22 Janis Johnson <janis187@us.ibm.com>
1204 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1206 * doc/sourcebuild.texi (Test Directives): Split into six
1207 subsections, with most of the current text in new subsections
1208 Directives, Selectors, and Final Actions.
1209 (Directives): Split list of test directives into multiple
1211 (Selectors): Describe use and syntax of selectors.
1212 (Effective-Target Keywords): Describe all existing keywords.
1213 (Add Options): Describe features for dg-add-options.
1214 (Require Support): Describe variants of dg-require-support.
1215 (Final Actions): Describe commands to use in dg-final.
1217 2010-03-22 Michael Matz <matz@suse.de>
1220 * recog.c (validate_replace_rtx_group): Replace also in
1221 REG_EQUAL and REG_EQUIV notes.
1223 2010-03-22 Richard Guenther <rguenther@suse.de>
1225 PR tree-optimization/43390
1226 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
1227 sure vector extracts are type correct.
1229 2010-03-22 Richard Guenther <rguenther@suse.de>
1232 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
1233 x * sqrt (x) even when optimizing for size if the target
1234 has native support for sqrt.
1236 2010-03-22 Jakub Jelinek <jakub@redhat.com>
1238 * varasm.c (make_decl_rtl_for_debug): Also clear
1239 flag_mudflap for the duration of make_decl_rtl call.
1242 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
1243 locs from preserved VALUEs.
1245 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1248 * pa.md (movmemsi): Set align to one if zero.
1249 (movmemdi): Likewise.
1251 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
1254 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
1255 with their corresponding prologue pushes.
1257 2010-03-20 Andrew Pinski <pinskia@gmail.com>
1260 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
1261 at the begining or end.
1262 (spu_expand_epilogue): Likewise.
1264 2010-03-20 Richard Guenther <rguenther@suse.de>
1266 PR rtl-optimization/43438
1267 * combine.c (make_extraction): Properly zero-/sign-extend an
1268 extraction of the low part of a CONST_INT. Also handle
1271 2010-03-19 Mike Stump <mikestump@comcast.net>
1273 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
1274 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
1275 (override_options): Use SUBTARGET32_DEFAULT_CPU.
1277 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
1280 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
1283 2010-03-19 Bernd Schmidt <bernd.schmidt@codesourcery.com>
1285 PR rtl-optimization/42258
1286 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
1287 use that may match DEF.
1290 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
1291 the cost of loading the constant rather than assuming
1293 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
1294 outer code is AND, do the same tests as the andsi3 expander and
1295 return COSTS_N_INSNS (1) if and is cheap.
1297 * optabs.c (avoid_expensive_constant): Fix formatting.
1299 2010-03-19 Michael Matz <matz@suse.de>
1302 * attribs.c (decl_attributes): When rebuilding a function pointer
1303 type use the same qualifiers as the original pointer type.
1305 2010-03-19 Martin Jambor <mjambor@suse.cz>
1307 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
1308 and is_gimple_ip_invariant_address.
1310 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1313 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1315 * config/arm/arm.c (arm_override_options): Turn off
1316 flag_dwarf2_cfi_asm for AAPCS variants.
1318 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1321 * config/arm/arm.c (emit_multi_reg_push): Update comments.
1322 Use PRE_MODIFY instead of PRE_DEC.
1323 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
1324 (vfp_emit_fstmd): Likewise.
1326 2010-03-19 Michael Matz <matz@suse.de>
1329 * builtins.c (expand_builtin_interclass_mathfn,
1330 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
1333 2010-03-19 Richard Guenther <rguenther@suse.de>
1335 PR tree-optimization/43415
1336 * tree-ssa-pre.c (phi_translate): Split out worker to ...
1337 (phi_translate_1): ... this.
1338 (phi_translate): Move all caching here. Cache all NARY
1339 and REFERENCE translations.
1341 2010-03-19 David S. Miller <davem@davemloft.net>
1343 With help from Eric Botcazou.
1344 * config/sparc/sparc.c: Include dwarf2out.h.
1345 (emit_pic_helper): Delete.
1346 (pic_helper_symbol_name): Delete.
1347 (pic_helper_emitted_p): Delete.
1348 (pic_helper_needed): New.
1349 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
1350 (get_pc_thunk_name): New.
1351 (load_pic_register): Remove 'delay_pic_helper' arg. Use
1352 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
1353 Set pic_helper_needed to true. Don't call emit_pic_helper.
1354 (sparc_expand_prologue): Update load_pic_register call.
1355 (sparc_output_mi_thunk): Likewise.
1356 (sparc_file_end): Emit a hidden comdat symbol for the PIC
1357 thunk if possible. Output CFI information as needed.
1359 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1360 Jack Howarth <howarth@bromo.med.uc.edu>
1363 * config/i386/i386.h: Fix ABI on darwin x86-32.
1365 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
1367 * tree.h: Declare make_decl_rtl_for_debug.
1368 * varasm.c (make_decl_rtl_for_debug): New.
1369 * dwarf2out.c (rtl_for_decl_location): Call it.
1370 * cfgexpand.c (expand_debug_expr): Call it.
1372 2010-03-18 Jakub Jelinek <jakub@redhat.com>
1375 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
1379 * var-tracking.c (vt_init_cfa_base): Do nothing if
1380 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
1382 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
1385 * var-tracking.c (canonicalize_vars_star): New.
1386 (dataflow_post_merge_adjust): Use it.
1388 2010-03-18 Jakub Jelinek <jakub@redhat.com>
1391 * var-tracking.c (non_suitable_const): New function.
1392 (add_uses): For DEBUG_INSNs with constants, don't record any
1393 value, instead just the constant value itself.
1394 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
1395 is not VAR_LOC_UNKNOWN_P, set var to the constant.
1396 (emit_notes_in_bb): Likewise.
1397 (emit_note_insn_var_location): For onepart variables if
1398 cur_loc is a VOIDmode constant, use DECL_MODE.
1400 2010-03-18 Martin Jambor <mjambor@suse.cz>
1403 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
1404 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
1405 all non-clones. Moved call redirection...
1406 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
1407 (cgraph_materialize_all_clones): Dispose of all
1408 combined_args_to_skip bitmaps.
1409 (verify_cgraph_node): Do not check for edges pointing to wrong
1410 nodes in inline clones.
1411 * tree-inline.c (copy_bb): Call
1412 cgraph_redirect_edge_call_stmt_to_callee.
1413 * ipa.c (cgraph_remove_unreachable_nodes): Call
1414 cgraph_node_remove_callees even when there are used clones.
1416 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
1418 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
1420 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
1423 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
1426 2010-03-18 Michael Matz <matz@suse.de>
1429 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
1430 into sqrt(x) if we need to preserve signed zeros.
1432 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
1433 Eric Botcazou <ebotcazou@adacore.com>
1435 PR rtl-optimization/43360
1436 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
1437 note if we don't know its invariant status.
1439 2010-03-18 Michael Matz <matz@suse.de>
1441 PR tree-optimization/43402
1442 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
1443 PHI chains of ssa names registered for update.
1445 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
1448 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
1449 non-offsettable and pre_modify update addressing.
1450 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
1451 and "2" alternatives "#".
1452 (*movdd_softfloat32): Make all alternatives "#";
1453 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
1454 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
1455 (*movdf_softfloat32): Make all alternatives "#";
1456 (movdi): Use the new DIFD mode iterator to create a common splitter
1457 for movdi, movdf and movdd patterns.
1459 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
1461 * common.opt (dumpdir): Remove redundant tab.
1463 2010-03-17 Martin Jambor <mjambor@suse.cz>
1465 PR tree-optimization/43347
1466 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
1467 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
1469 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
1471 PR rtl-optimization/42216
1472 * regrename.c (create_new_chain): New function, broken out from...
1473 (scan_rtx_reg): ... here. Call it. Handle the case where we are
1474 appending a use to an empty chain.
1475 (build_def_use): Remove previous changes that convert OP_INOUT to
1476 OP_OUT operands; instead detect the case where an OP_INOUT operand
1477 uses a previously untracked register and create an empty chain for it.
1479 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1481 * doc/extend.texi (Function Attributes): Rewrite unfinished
1482 sentence in ms_abi documentation.
1484 2010-03-17 Alan Modra <amodra@gmail.com>
1486 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
1487 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
1488 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
1489 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
1491 2010-03-16 Richard Henderson <rth@redhat.com>
1494 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
1495 (lower_try_finally): Save and restore eh_seq around the expansion
1498 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
1500 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
1501 statements before splitting block.
1503 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1505 * doc/sourcebuild.texi (Testsuites): Fix markup.
1506 Use pathnames relative to gcc/testsuite.
1507 (Test Directives): Move description of how timeout is determined.
1508 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
1509 (C Tests): Correct gcc.misc-tests directory.
1510 Framework tests now live in gcc.test-framework.
1512 2010-03-16 Richard Guenther <rguenther@suse.de>
1515 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
1516 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
1518 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
1519 Alexandre Oliva <aoliva@redhat.com>
1521 PR tree-optimization/42917
1522 * lambda-code.c (remove_iv): Skip debug statements.
1523 (lambda_loopnest_to_gcc_loopnest): Likewise.
1524 (not_interesting_stmt): Debug statements are not interesting.
1526 2010-03-16 Jakub Jelinek <jakub@redhat.com>
1530 * cselib.c (cselib_preserve_constants,
1531 cfa_base_preserved_val): New static variables.
1532 (preserve_only_constants): New function.
1533 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
1534 clear its REG_VALUES. If cselib_preserve_constants, don't
1535 empty the whole hash table, but preserve there VALUEs with constants,
1536 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
1537 (cselib_preserve_cfa_base_value): New function.
1538 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
1539 (cselib_init): Change argument to int bitfield. Set
1540 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
1542 (cselib_finish): Clear cselib_preserve_constants and
1543 cfa_base_preserved_val.
1544 * cselib.h (enum cselib_record_what): New enum.
1545 (cselib_init): Change argument to int.
1546 (cselib_preserve_cfa_base_value): New prototype.
1547 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
1548 * dse.c (dse_step1): Likewise.
1549 * cfgcleanup.c (thread_jump): Likewise.
1550 * sched-deps.c (sched_analyze): Likewise.
1551 * gcse.c (local_cprop_pass): Likewise.
1552 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
1553 If FN is non-NULL, call the callback always and whenever it returns
1554 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
1555 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
1556 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
1557 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
1558 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
1559 * var-tracking.c: Include recog.h.
1560 (bb_stack_adjust_offset): Remove.
1561 (vt_stack_adjustments): Don't call it, instead just gather the
1562 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
1563 (adjust_stack_reference): Remove.
1564 (compute_cfa_pointer): New function.
1565 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
1566 (struct adjust_mem_data): New type.
1567 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
1569 (get_address_mode): New function.
1570 (replace_expr_with_values): Use it.
1571 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
1572 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
1573 (adjust_sets): Remove.
1574 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
1575 Use get_address_mode.
1576 (get_adjusted_src): Remove.
1577 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
1578 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
1579 (add_with_sets): Don't call adjust_sets.
1580 (fp_setter, vt_init_cfa_base): New functions.
1581 (vt_initialize): Change return type to bool. Move most of pool etc.
1582 initialization to the beginning of the function from end. Pass
1583 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
1584 If !frame_pointer_needed, call vt_stack_adjustment before mos
1585 vector is filled, call vt_init_cfa_base if argp/framep has been
1586 eliminated to sp. If frame_pointer_needed and argp/framep has
1587 been eliminated to hard frame pointer, set
1588 hard_frame_pointer_adjustment and call vt_init_cfa_base after
1589 encountering fp setter in the prologue. For MO_ADJUST, call
1590 log_op_type before pusing the op into mos vector, not afterwards.
1591 Call adjust_insn before cselib_process_insn/add_with_sets,
1592 call cancel_changes (0) afterwards.
1593 (variable_tracking_main_1): Adjust for vt_initialize calling
1594 vt_stack_adjustments and returning whether it succeeded or not.
1596 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
1598 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
1601 2010-03-15 Jakub Jelinek <jakub@redhat.com>
1603 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
1605 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
1606 drap_reg has not been set.
1608 2010-03-15 Michael Matz <matz@suse.de>
1611 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
1612 use it to expand block copies.
1613 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
1614 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
1615 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
1617 2010-03-15 Richard Guenther <rguenther@suse.de>
1619 PR tree-optimization/43367
1620 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
1623 2010-03-15 Richard Guenther <rguenther@suse.de>
1625 PR tree-optimization/43317
1626 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
1628 2010-03-15 Martin Jambor <mjambor@suse.cz>
1630 PR tree-optimization/43141
1631 * tree-sra.c (create_abstract_origin): New function.
1632 (modify_function): Call create_abstract_origin.
1634 2010-03-15 Chris Demetriou <cgd@google.com>
1636 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
1639 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1642 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
1643 call insert_out_of_ssa_copy for default definitions.
1645 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1647 * graphite-clast-to-gimple.c (my_long_long): Defined.
1648 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
1649 * graphite-sese-to-poly.c (my_long_long): Defined.
1650 (scop_ivs_can_be_represented): Use it.
1652 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1654 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
1655 graphite-max-bbs-per-function, and loop-block-tile-size.
1656 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
1658 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
1660 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1662 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
1663 forward declaration.
1664 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
1665 (add_upper_bounds_from_estimated_nit): New.
1666 (build_loop_iteration_domains): Use it.
1668 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1670 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
1672 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1675 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
1676 should be an INTEGER_CST. Also handle CASE_CONVERT.
1678 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1680 * graphite.c (graphite_initialize): To bound the number of bbs per
1681 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
1682 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
1683 * doc/invoke.texi: Document it.
1685 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1687 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
1688 * graphite-sese-to-poly.h (build_poly_scop): Same.
1690 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1692 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
1693 the number of parameters in the scop. Use as an upper bound
1694 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
1695 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
1696 * doc/invoke.texi: Document it.
1698 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
1700 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
1701 * doc/c-tree.texi: Remove.
1702 * doc/generic.texi: Merge c-tree.texi here.
1703 * doc/gccint.texi (Trees): Remove menu entry.
1704 (c-tree.texi): Remove @include.
1705 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
1706 * doc/languages.texi (Reading RTL): Ditto.
1708 2010-03-12 Steve Ellcey <sje@cup.hp.com>
1711 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
1713 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1716 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
1717 code added to work around reload clobbering CONST insns.
1719 2010-03-12 Jakub Jelinek <jakub@redhat.com>
1721 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
1722 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
1723 (cselib_preserve_only_values): Remove retain argument, don't
1724 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
1725 * cselib.h (cselib_preserve_only_values): Remove retain argument.
1726 * var-tracking.c (micro_operation): Move insn field before union.
1727 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
1728 (struct variable_tracking_info_def): Remove n_mos field, change
1729 mos into a vector of micro_operations.
1730 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
1731 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
1732 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
1733 changing into a vector.
1734 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
1735 come before all other uops generated by add_stores.
1736 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
1738 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
1739 a vector. Run just one pass over the bbs instead of separate counting
1740 and computation phase.
1741 (vt_finalize): Free VTI (bb)->mos vector instead of array.
1744 * tree-inline.c (remap_decls): Put old_var rather than origin_var
1745 into *nonlocalized_list vector.
1746 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
1747 even if origin is non-NULL.
1748 (gen_variable_die): Likewise.
1749 (process_scope_var): Don't change origin.
1750 (gen_decl_die): Likewise.
1751 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
1752 before adding new edges instead of after it, fix moving over
1755 2010-03-11 David S. Miller <davem@davemloft.net>
1757 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
1759 * configure: Rebuild.
1761 2010-03-11 Martin Jambor <mjambor@suse.cz>
1763 PR tree-optimization/43257
1764 * tree.c (assign_assembler_name_if_neeeded): New function.
1765 (free_lang_data_in_cgraph): Assembler name assignment moved to the
1767 * tree.h (assign_assembler_name_if_neeeded): Declare.
1768 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
1769 the function if needed.
1771 2010-03-11 Chris Demetriou <cgd@google.com>
1773 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
1774 include/stdint-gcc.h, and include/stdint.h world-readable.
1776 2010-03-11 Richard Guenther <rguenther@suse.de>
1778 PR tree-optimization/43255
1779 * tree-vrp.c (process_assert_insertions_for): Do not insert
1780 asserts for trivial conditions.
1782 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1784 PR tree-optimization/43280
1785 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
1786 generation. Move calculation of size out of the if branch.
1787 (find_bswap): Modify compare number generation.
1789 2010-03-11 Richard Guenther <rguenther@suse.de>
1792 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
1793 (input_gimple_stmt): Fixup handled component types during
1794 operand read. Also fix up decls in ADDR_EXPRs.
1796 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
1798 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
1799 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
1801 2010-03-10 Jan Hubicka <jh@suse.cz>
1804 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
1805 * varasm.c (get_variable_section): Don't do that here...
1806 (make_decl_rtl): ... and here.
1807 (do_assemble_alias): Produce decl RTL.
1808 (assemble_alias): Likewise.
1810 2010-03-10 Jakub Jelinek <jakub@redhat.com>
1813 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
1814 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
1816 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
1817 (based_loc_descr): Only express drap or vdrap regno based expressions
1818 using DW_OP_fbreg when not optimizing.
1819 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
1820 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
1821 REG_CFA_SET_VDRAP note.
1823 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
1825 PR tree-optimization/43236
1826 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
1827 error in calculation of base address in reverse iteration case.
1828 (generate_builtin): Take number of latch executions if the statement
1831 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
1834 * tree-eh.c: Include pointer-set.h.
1835 (lower_eh_dispatch): Filter out duplicate case labels and
1836 remove the unneeded edge when the label is unused. Return
1837 true when some edges are removed.
1838 (execute_lower_eh_dispatch): When any lowering resulted in
1839 removing an edge, also delete unreachable blocks.
1841 2010-03-10 Jakub Jelinek <jakub@redhat.com>
1844 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1845 UNSPEC_MACHOPIC_OFFSET.
1847 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
1850 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
1851 (m68k_delegitimize_address): New function.
1853 2010-03-09 Jakub Jelinek <jakub@redhat.com>
1856 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
1859 * var-tracking.c (adjust_sets): New function.
1860 (count_with_sets, add_with_sets): Use it.
1861 (get_adjusted_src): New inline function.
1862 (add_stores): Use it.
1865 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
1866 call cselib_dummy_expand_value_rtx_cb instead of
1867 cselib_expand_value_rtx_cb.
1870 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
1871 * config/i386/i386.c: Include debug.h and dwarf2out.h.
1872 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
1873 and .cfi_endproc around the pic thunks.
1874 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
1875 all queued unwind info register saves are saved before the call.
1876 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
1877 considered as sp-=4 for unwind info and the pop as sp+=4 which
1878 also clobbers dest, but doesn't actually restore it.
1881 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
1882 RTX_FRAME_RELATED_P.
1884 2010-03-09 Jie Zhang <jie@codesourcery.com>
1886 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
1887 whitespaces in output template.
1889 2010-03-09 Jie Zhang <jie@codesourcery.com>
1891 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
1894 2010-03-08 Jakub Jelinek <jakub@redhat.com>
1896 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
1897 builtins.exp in a separate job.
1899 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
1901 * graphite-sese-to-poly.c (add_param_constraints): Use
1902 lower_bound_in_type and upper_bound_in_type.
1904 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
1906 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
1907 instead of unsigned_type_node.
1909 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
1910 Reza Yazdani <reza.yazdani@amd.com>
1913 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
1914 on pointer type parameters.
1916 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
1920 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
1921 handle conversions from pointer to integers.
1922 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
1923 induction variable, to be able to work with code generated by CLooG.
1924 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
1925 (build_poly_scop): Bail out if we cannot codegen a loop.
1927 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
1929 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
1930 code generation with gloog_error.
1932 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
1934 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
1935 Call fold_convert on all the returned values.
1936 (expand_scalar_variables_expr): Pass to
1937 expand_scalar_variables_ssa_name the type of the resulting expression.
1939 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
1941 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
1942 ppl_min_for_le_pointset.
1943 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
1944 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
1946 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
1948 * graphite-dependences.c (map_into_dep_poly): Removed.
1949 (dependence_polyhedron_1): Use combine_context_id_scat.
1951 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
1953 * graphite-poly.h (struct poly_scattering): Add layout documentation.
1954 (struct poly_bb): Same.
1955 (combine_context_id_scat): New.
1957 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
1960 * sese.c (name_defined_in_loop_p): Return false for default
1963 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
1965 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
1966 and clean up the logic.
1968 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
1970 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
1973 2010-03-08 Jakub Jelinek <jakub@redhat.com>
1975 * var-tracking.c (remove_cselib_value_chains): Define only for
1977 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
1978 delete_slot_part, emit_notes_for_differences_1): Don't call
1979 remove_cselib_value_chains here.
1980 (set_slot_part, emit_notes_for_differences_2): Don't call
1981 add_cselib_value_chains here.
1982 (preserved_values): New vector.
1983 (preserve_value): New function.
1984 (add_uses, add_stores, vt_add_function_parameters): Use it
1985 instead of cselib_preserve_value.
1986 (changed_values_stack): New vector.
1987 (check_changed_vars_0): New function.
1988 (check_changed_vars_1, check_changed_vars_2): Use it.
1989 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
1990 changed_values_stack VALUEs.
1991 (vt_emit_notes): For all preserved_values call
1992 add_cselib_value_chains. If ENABLE_CHECKING call
1993 remove_cselib_value_chains before verifying value_chains is empty.
1994 Initialize and free changed_values_stack.
1995 (vt_initialize): Initialize preserved_values.
1996 (vt_finalize): Free preserved_values.
1998 2010-03-08 Richard Guenther <rguenther@suse.de>
2000 PR tree-optimization/43269
2001 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
2004 2010-03-08 Martin Jambor <mjambor@suse.cz>
2006 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
2007 (ipa_is_param_called): Removed.
2008 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
2009 (ipa_print_node_params): Do not print the called flag.
2010 (ipa_write_node_info): Do not stream the called flag.
2011 (ipa_read_node_info): Likewise.
2013 2010-03-07 Jakub Jelinek <jakub@redhat.com>
2016 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
2017 * cselib.c (struct expand_value_data): Add dummy field.
2018 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
2020 (cselib_dummy_expand_value_rtx_cb): New function.
2021 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
2023 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
2024 * var-tracking.c: Include pointer-set.h.
2025 (variable): Change n_var_parts to char from int. Add
2026 cur_loc_changed and in_changed_variables fields.
2027 (variable_canonicalize): Remove.
2028 (shared_var_p): New inline function.
2029 (unshare_variable): Maintain cur_loc_changed and
2030 in_changed_variables fields. If var was in changed_variables,
2031 replace it there with new_var. Just copy cur_loc instead of
2032 resetting it to something else.
2033 (variable_union): Don't recompute cur_loc. Use shared_var_p.
2034 (dataflow_set_union): Don't call variable_canonicalize.
2035 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
2036 of their DEBUG_EXPR_TREE_DECLs.
2037 (canonicalize_loc_order_check): Verify that cur_loc is NULL
2038 and in_changed_variables and cur_loc_changed is false.
2039 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
2040 and cur_loc_changed. Don't update cur_loc here.
2041 (variable_merge_over_src): Don't call variable_canonicalize.
2042 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
2043 removing loc that is equal to cur_loc, clear cur_loc,
2044 set cur_loc_changed and ensure variable_was_changed is called.
2045 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
2046 compare pointers in cur_loc check, if it is equal to loc,
2047 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
2048 (variable_different_p): Remove compare_current_location argument,
2049 don't compare cur_loc.
2050 (dataflow_set_different_1): Adjust variable_different_p caller.
2051 (variable_was_changed): If dv had some var in changed_variables
2052 already, reset in_changed_variables flag for it and propagate
2053 cur_loc_changed over to the new variable. On empty var
2054 always set cur_loc_changed. Set in_changed_variables on whatever
2055 var is added to changed_variables.
2056 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
2057 Use shared_var_p. When removing loc that is equal to cur_loc,
2058 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
2059 end, don't set it to something else, just call variable_was_changed.
2060 (delete_slot_part): Use shared_var_p. When cur_loc equals to
2061 loc being removed, clear cur_loc and set cur_loc_changed.
2062 Set cur_loc_changed if all locations have been removed.
2063 (struct expand_loc_callback_data): New type.
2064 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
2065 allocated. Always create SUBREGs if simplify_subreg failed.
2066 Prefer to use cur_loc, when that fails and still in
2067 changed_variables (and seen first time) recompute it. Set
2068 cur_loc_changed of variables which had to change cur_loc and
2069 compute elcd->cur_loc_changed if any of the subexpressions used
2070 had to change cur_loc.
2071 (vt_expand_loc): Adjust to pass arguments in
2072 expand_loc_callback_data structure.
2073 (vt_expand_loc_dummy): New function.
2074 (emitted_notes): New variable.
2075 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
2076 that weren't used for any other decl in current
2077 emit_notes_for_changes call call vt_expand_loc_dummy to update
2078 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
2079 first loc_chain location if NULL before. Always use just
2080 cur_loc instead of first loc_chain location. When cur_loc_changed
2081 is false, when not --enable-checking=rtl just don't emit any note.
2082 When rtl checking, compute the note and assert it is the same
2083 as previous note. Clear cur_loc_changed and in_changed_variables
2084 at the end before removing from changed_variables.
2085 (check_changed_vars_3): New function.
2086 (emit_notes_for_changes): Traverse changed_vars to call
2087 check_changed_vars_3 on each changed var.
2088 (emit_notes_for_differences_1): Clear cur_loc_changed and
2089 in_changed_variables. Recompute cur_loc of new_var.
2090 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
2091 (vt_emit_notes): Initialize and destroy emitted_notes.
2093 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
2095 PR rtl-optimization/42220
2096 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
2097 Use verify_reg_tracked to determine if we should use OP_OUT rather
2099 (build_def_use): If we see an in-out operand for a register that we
2100 know nothing about, treat is an output if possible, fail the block if
2103 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
2106 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
2109 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
2112 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
2113 uses of relevant DEFs that are dead outside the loop too.
2115 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
2117 * var-tracking.c (dataflow_set_merge): Swap src and src2.
2119 2010-01-13 Jakub Jelinek <jakub@redhat.com>
2121 * var-tracking.c (values_to_unmark): New variable.
2122 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
2123 values_to_unmark vector. Moved body to...
2124 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
2125 instead queue it into values_to_unmark vector.
2126 (vt_find_locations): Free values_to_unmark vector.
2128 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
2130 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
2131 (site.exp): Export them when plugins are enabled.
2133 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
2136 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
2138 (chrec_fold_multiply): Same.
2140 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
2143 * c-decl.c (build_compound_literal): Return early if init is
2146 2010-03-04 Martin Jambor <mjambor@suse.cz>
2148 PR tree-optimization/43164
2149 PR tree-optimization/43191
2150 * tree-sra.c (type_consists_of_records_p): Reject records with
2151 zero-size bit-fields at the end.
2153 2010-03-04 Mike Stump <mikestump@comcast.net>
2155 * Makefile.in (TAGS): Remove *.y.
2157 2010-03-04 Richard Guenther <rguenther@suse.de>
2159 PR tree-optimization/40761
2160 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
2162 (my_rev_post_order_compute): New function.
2163 (init_pre): Call it.
2165 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
2168 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
2169 decrease the cost of an IV candidate when the cost is infinite.
2171 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2173 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
2174 Use '3DNow!' for the extension of that name, ensure normal space
2176 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
2178 2010-03-03 Jeff Law <law@redhat.com>
2180 * PR middle-end/32693
2181 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
2182 than gen_rtx_SUBREG.
2183 (extract_bit_field_1): Likewise.
2185 2010-03-03 Janis Johnson <janis187@us.ibm.com>
2187 * doc/sourcebuild.texi (Test directives): Document that arguments
2188 include-opts and exclude-opts are now optional for dg-skip-if,
2189 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
2191 2010-03-03 Jason Merrill <jason@redhat.com>
2194 * cgraph.h (varpool_node): Add extra_name field.
2195 * varpool.c (varpool_extra_name_alias): New.
2196 (varpool_assemble_decl): Emit extra name aliases.
2197 (varpool_mark_needed_node): Look past an extra name alias.
2198 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
2199 * lto-streamer-in.c (lto_input_tree): Read it.
2200 * lto-streamer-out.c (output_unreferenced_globals): Write it.
2202 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
2204 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
2205 (sparc*-*-solaris2*): ...this.
2207 2010-03-03 Jakub Jelinek <jakub@redhat.com>
2210 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
2211 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
2212 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
2213 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
2216 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
2217 fallthrough to default handling, just with want_address 0 instead of 2.
2218 For single element lists, add_AT_loc directly, otherwise create an
2219 artificial variable DIE and stick location list to it.
2222 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
2223 (VAL_EXPR_HAS_REVERSE): Define.
2224 (reverse_op): New function.
2225 (add_stores): For reversible operations add an extra MO_VAL_USE.
2227 2010-03-02 Jason Merrill <jason@redhat.com>
2229 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
2231 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
2233 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
2234 (sparc64-*-linux*): Likewise.
2235 (sparc64-*-solaris2*): Include assembler files before linker ones.
2236 (sparc-*-solaris2*): Simplify and reorder to match previous case.
2237 * config/sparc/gas.h: Delete.
2238 * config/sparc/sol2-64.h: Add copyright notice.
2239 * config/sparc/sol2-gas-bi.h: Likewise.
2240 * config/sparc/sol2-gld.h: Likewise.
2241 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
2242 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
2243 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
2244 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
2245 (sparc_elf_asm_named_section): Rename into...
2246 (sparc_solaris_elf_asm_named_section): ...this. Always define.
2248 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
2250 * config/alpha/alpha.c (override_options): Fix -mtune error message.
2252 2010-03-02 Jeff Law <law@redhat.com>
2255 * reload1.c (rtx_p, substitute_stack): Declare.
2256 (substitute): Record addresses of changed rtxs.
2257 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
2258 Restore the original rtx when complete.
2259 (reload): Free subsitute_stack when complete.
2261 2010-03-02 Janis Johnson <janis187@us.ibm.com>
2263 * doc/gccint.texi (menu): Add Testsuites as a chapter.
2264 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
2266 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
2267 LTO Testing, gcov Testing, profopt Testing, compat Testing,
2268 Torture Tests): Change from subsection to section.
2270 2010-03-02 Jakub Jelinek <jakub@redhat.com>
2271 Steven Bosscher <steven@gcc.gnu.org>
2273 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
2276 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
2279 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
2280 the assignment from the new induction variable to the assignment
2281 of the value from the original loop PHI function.
2283 2010-03-01 Janis Johnson <janis187@us.ibm.com>
2284 Daniel Jacobowitz <dan@codesourcery.com>
2286 * doc/sourcebuild.texi (Test directives): Clarify options to
2289 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2291 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
2292 Disable cfi directives unless GCC and gas agree on using read-only
2293 .eh_frame sections for 64-bit.
2294 * configure: Regenerate.
2296 2010-03-01 Richard Guenther <rguenther@suse.de>
2298 PR tree-optimization/43220
2299 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
2300 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
2302 2010-03-01 Richard Guenther <rguenther@suse.de>
2303 Martin Jambor <mjambor@suse.cz>
2306 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
2307 gimplified parameters.
2309 2010-03-01 Christian Bruel <christian.bruel@st.com>
2311 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
2313 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
2315 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
2317 2010-03-01 Richard Guenther <rguenther@suse.de>
2320 * expr.c (expand_assignment): Use the alias-oracle to tell
2321 if the rhs aliases the result decl.
2323 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2326 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
2327 to sol_gt_pch_get_address.
2328 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
2329 64-bit, SPARC and x86.
2330 (sol_gt_pch_get_address): New function.
2332 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
2334 * toplev.h (inform_n, error_n): Declare.
2335 * diagnostic.c (inform_n, error_n): New function.
2337 2010-03-01 Jakub Jelinek <jakub@redhat.com>
2339 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
2340 has no rtl yet when processing local_decls, queue it and recheck
2341 if deferred stack allocation hasn't assigned it rtl.
2343 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
2345 * config/sh/sh.c (unspec_bbr_uid): New.
2346 (gen_block_redirect): Use it instead of INSN_UID.
2347 (gen_far_branch): Likewise.
2349 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
2351 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
2352 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
2354 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2356 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
2357 (Warning Options): -Wno-conversion-null is valid for
2358 Objective-C++ as well.
2359 * doc/tm.texi (Named Address Spaces): Likewise.
2360 * doc/plugins.texi (Plugins): Replace TABs with spaces.
2361 * doc/tree-ssa.texi (Tree SSA): Likewise.
2363 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
2366 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
2367 by default. Don't set the default arch for
2368 i[34567]86-*-darwin*|x86_64-*-darwin*.
2370 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
2373 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
2374 default. Set the default 32bit/64bit archs with $with_arch
2375 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
2377 2010-02-27 Richard Guenther <rguenther@suse.de>
2379 PR tree-optimization/43186
2380 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
2381 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
2382 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
2383 unroller iterations.
2385 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
2387 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
2388 required and i[34567]86-*-* targets don't support 64bit ISA.
2390 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
2393 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
2396 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
2398 * config.gcc: Set the default arch at least to Prescott for
2399 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
2400 if SSE math is enabled.
2402 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
2404 * diagnostic.c (diagnostic_initialize): Update.
2405 (diagnostic_report_diagnostic): Test inhibit_notes_p for
2407 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
2408 (diagnostic_inhibit_notes): New.
2409 * toplev.c (process_options): inhibit notes with -fcompare-debug.
2411 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
2414 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
2415 * doc/standards.texi: Likewise.
2416 * doc/extend.texi: Likewise.
2417 * doc/trouble.texi: Likewise.
2418 * doc/cppopts.texi: Likewise.
2419 * doc/install.texi: Likewise.
2420 * c.opt (std=c90,std=gnu90): New options.
2421 * c-opts.c (c_common_handle_option): Handle them.
2423 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
2426 * c-decl.c (undeclared_variable): Use an informative note.
2428 2010-02-26 Richard Guenther <rguenther@suse.de>
2430 PR tree-optimization/43186
2431 * gimple.h (gimple_fold): Remove.
2432 * gimple.c (gimple_fold): Remove. Inline into single user ...
2433 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
2434 Try harder for conditions.
2436 2010-02-26 Jakub Jelinek <jakub@redhat.com>
2439 * function.c (used_types_insert): Don't skip through named pointer
2440 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
2441 and it is different from the main variant's type.
2443 2010-02-26 Nick Clifton <nickc@redhat.com>
2445 * config/rx/rx.md (sminsi3): Remove bogus alternative.
2447 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
2449 * config.gcc: Support --with-fpmath=sse for x86.
2451 * config/i386/ssemath.h: New.
2453 * doc/install.texi (--with-fpmath=sse): Documented.
2455 2010-02-26 Richard Guenther <rguenther@suse.de>
2457 PR tree-optimization/43188
2458 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
2459 vector types of over-aligned element type.
2461 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
2464 * config/i386/i386.c (expand_vec_perm_blend): Use correct
2465 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
2467 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2469 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
2471 2010-02-26 Jakub Jelinek <jakub@redhat.com>
2473 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
2474 * var-tracking.c: Include diagnostic.h.
2475 (debug_dv): New function.
2476 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
2479 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
2480 (add_value_chain, add_value_chains, remove_value_chain,
2481 remove_value_chains): Handle DEBUG_EXPRs.
2482 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
2485 * regcprop.c (struct queued_debug_insn_change): New type.
2486 (struct value_data_entry): Add debug_insn_changes field.
2487 (struct value_data): Add n_debug_insn_changes field.
2488 (debug_insn_changes_pool): New variable.
2489 (free_debug_insn_changes, apply_debug_insn_changes,
2490 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
2491 (kill_value_one_regno): Call free_debug_insn_changes if needed.
2492 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
2494 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
2496 (copyprop_hardreg_forward_1): Don't call apply_change_group for
2497 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
2498 changes, call cprop_find_used_regs via note_stores.
2499 (copyprop_hardreg_forward): When copying vd from predecessor
2500 which has any queued DEBUG_INSN changes, make sure the pointers are
2501 cleared. At the end call df_analyze and then if there are any
2502 DEBUG_INSN changes queued at the end of some basic block for still
2503 live registers, apply them.
2504 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
2506 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
2508 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
2511 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
2513 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
2514 targets. Set the default with_cpu/with_arch from arch/cpu.
2515 Allow x86-64 and native for with_cpu/with_arch.
2517 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
2519 * ebitmap.c: Change calls to verify_popcount with calls to
2520 sbitmap_verify_popcount.
2521 (ebitmap_clear_bit): Fixed map->cacheindex test and
2522 map>cache update when bit clearing results in an empty
2525 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
2528 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
2529 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
2530 and support both V2DF and V2DI modes.
2531 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
2532 support both V2DF and V2DI modes.
2533 (general): Delete trailing whitespace from a few patterns.
2535 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2536 V2DF/V2DI interleave high/low builtins.
2538 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
2541 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
2542 interleave high/low functions.
2544 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
2546 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
2547 #pragma extern_prefix.
2549 2010-02-25 Jakub Jelinek <jakub@redhat.com>
2552 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
2553 BLKmode, assert op0 is a MEM and just adjust its mode.
2556 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
2557 if bitpos isn't multiple of mode's bitsize.
2559 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
2561 * c.opt (-ftemplate-depth=): New.
2562 (-ftemplate-depth-): Deprecate.
2563 * optc-gen.awk: Handle -ftemplate-depth=.
2564 * opth-gen.awk: Likewise.
2565 * c-opts.c (c_common_handle_option): Likewise.
2566 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
2568 2010-02-24 Jason Merrill <jason@redhat.com>
2570 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
2572 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2574 * cfg.c (alloc_aux_for_block): Remove inline.
2575 (alloc_aux_for_edge): Likewise.
2577 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2579 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
2581 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2583 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
2584 * config/i386/sol2-gas.h: New file.
2585 * config.gcc (i[34567]86-*-solaris2*): Use it.
2587 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
2590 * c-typeck.c (ep_convert_and_check): New.
2591 (build_conditional_expr): Use it.
2592 (build_binary_op): Likewise.
2594 2010-02-24 Jakub Jelinek <jakub@redhat.com>
2596 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
2599 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
2600 bounds even for -O+.
2601 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
2602 expr needs to have DECL_NAME set.
2604 2010-02-24 Nick Clifton <nickc@redhat.com>
2606 * config/mep/mep.c: Include gimple.h.
2607 (mep_function_uses_sp): Delete unused function.
2608 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
2609 parameters. Use unsigned integers to count args. Return a
2610 NULL_RTX instead of an error_mark_node. Toidy up formatting.
2612 2010-02-23 Jakub Jelinek <jakub@redhat.com>
2615 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
2616 greater or equal to nelt instead of 2 * nelt.
2617 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
2620 2010-02-23 Jason Merrill <jason@redhat.com>
2623 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
2624 in cfun->local_decls even if they have register types.
2627 * stor-layout.c (place_field): Don't warn about unnecessary
2628 DECL_PACKED if the type is packed.
2630 2010-02-23 Jakub Jelinek <jakub@redhat.com>
2633 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
2634 GOTOFF relocs, even when the base reg isn't pic pointer.
2636 2010-02-23 Michael Matz <matz@suse.de>
2639 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
2640 (expand_gimple_basic_block): Generate and use debug temps if there
2641 are debug uses left after the last real use of TERed ssa names.
2642 Unlink debug immediate uses when they are expanded.
2644 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
2647 * config/i386/i386.c (override_options): Reorganise to provide
2648 better error messages.
2650 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
2653 * graphite-scop-detection.c (create_single_exit_edge): Move
2654 the call to find_single_exit_edge to....
2655 (create_sese_edges): ...here. Don't handle multiple edges
2656 exiting the function.
2657 (build_graphite_scops): Don't handle multiple edges
2658 exiting the function.
2660 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
2663 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
2664 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
2666 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
2669 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
2671 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2674 * c-typeck.c (convert_arguments): Print declaration location.
2675 * c-common.c (validate_nargs): Rename as
2676 builtin_function_validate_nargs.
2677 (check_builtin_function_arguments): Update.
2679 2010-02-22 Richard Guenther <rguenther@suse.de>
2682 * tree-inline.c (declare_return_variable): Use the type of
2683 the call stmt lhs if available.
2685 2010-02-22 Duncan Sands <baldrick@free.fr>
2687 * passes.c (register_pass): Always consider all pass lists when
2688 ref_pass_instance_number is zero.
2690 2010-02-22 Richard Guenther <rguenther@suse.de>
2692 PR tree-optimization/42749
2693 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
2694 parameter. Do arithmetic in the original type.
2695 (update_accumulator_with_ops): Likewise.
2696 (adjust_accumulator_values): Adjust.
2698 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2700 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
2701 (QI to BLKmode splitter): New splitter.
2703 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
2705 * config/i386/i386.c (initial_ix86_tune_features): Turn on
2706 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
2708 2010-02-22 Richard Guenther <rguenther@suse.de>
2710 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
2712 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
2714 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
2715 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
2716 ($(T)crti.o, $(T)crtn.o): Remove rules.
2718 2010-02-21 Tobias Burnus <burnus@net-b.de>
2721 * doc/invoke.texi (-fassociative-math): Document that this
2722 option is automatically enabled for Fortran.
2724 2010-02-20 David S. Miller <davem@davemloft.net>
2726 * configure.ac: Test if linker and assembler properly support
2727 GOTDATA_OP relocations.
2728 * configure: Rebuild.
2729 * config.in: Likewise.
2730 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
2731 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
2732 (movsi_high_pic): Likewise.
2733 (movdi_lo_sum_pic): Likewise.
2734 (movdi_high_pic): Likewise.
2735 (movsi_pic_gotdata_op): New pattern.
2736 (movdi_pic_gotdata_op): Likewise.
2737 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
2738 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
2740 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
2743 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
2744 attribute to ssemul.
2745 (xop_mulv2div2di3_high): Ditto.
2747 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2750 * c.opt (Wconversion-null): New option.
2751 * doc/invoke.texi (Wconversion-null): Document.
2753 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2755 * common.opt (Wlarger-than-): Add Undocumented.
2757 2010-02-19 Mike Stump <mikestump@comcast.net>
2759 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
2761 2010-02-19 Jason Merrill <jason@redhat.com>
2764 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
2765 * configure: Likewise.
2767 2010-02-20 Alan Modra <amodra@gmail.com>
2770 * cgraph.h (cgraph_make_decl_local): Declare.
2771 * cgraph.c (cgraph_make_decl_local): New function.
2772 (cgraph_make_node_local): Use it.
2773 * cgraphunit.c (cgraph_function_versioning): Likewise.
2774 * ipa.c (function_and_variable_visibility): Likewise.
2776 2010-02-19 Jakub Jelinek <jakub@redhat.com>
2779 * except.c (sjlj_emit_function_enter): Don't call
2780 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
2782 * rtl.h (add_reg_br_prob_note): Remove prototype.
2784 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
2787 * c-common.c (conversion_warning): Remove widening conversions
2788 before checking the conversion of integers to reals.
2790 2010-02-19 Mike Stump <mikestump@comcast.net>
2793 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
2796 * cgraphunit.c (process_function_and_variable_attributes): Check
2797 DECL_PRESERVE_P instead of looking up attribute "used".
2798 * ipa-pure-const.c (check_decl): Likewise.
2799 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
2800 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
2801 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
2802 instead of attribute "used".
2803 * config/sol2-c.c (solaris_pragma_init): Likewise.
2804 (solaris_pragma_fini): Likewise.
2806 2010-02-19 Jakub Jelinek <jakub@redhat.com>
2808 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
2809 Use XCNEW instead of xcalloc.
2810 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
2811 XNEW instead of xmalloc.
2812 (get_fields): Use XNEWVEC instead of xmalloc.
2815 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
2816 populate vars array.
2817 (create_new_general_access): For debug stmts just reset value.
2818 (get_stmt_accesses): For accesses within debug stmts just record them
2819 using add_access_to_acc_sites instead of preventing the peeling or
2820 counting them as accesses.
2823 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
2825 2010-02-19 Richard Guenther <rguenther@suse.de>
2827 PR tree-optimization/42916
2828 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
2831 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
2833 * configure.ac: Replace all uses of changequote in macro arguments
2834 with proper quoting.
2836 2010-02-19 Jakub Jelinek <jakub@redhat.com>
2839 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
2841 2010-02-19 Richard Guenther <rguenther@suse.de>
2843 PR tree-optimization/42944
2844 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
2845 test for aliasing with errno.
2847 2010-02-19 Jakub Jelinek <jakub@redhat.com>
2850 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
2851 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
2852 * dojump.c: Include output.h.
2853 (inv): New inline function.
2854 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
2855 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
2856 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
2857 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
2858 argument, pass it down to other calls.
2859 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
2860 add REG_BR_PROB note to the conditional jump.
2861 * cfgexpand.c (add_reg_br_prob_note): Removed.
2862 (expand_gimple_cond): Don't call it, add the probability
2863 as last argument to jumpif_1/jumpifnot_1.
2864 * Makefile.in (dojump.o): Depend on output.h.
2865 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
2867 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
2868 * stmt.c (do_jump_if_equal): Likewise.
2869 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
2870 * loop-unswitch.c (compare_and_jump_seq): Likewise.
2871 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
2873 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
2874 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
2875 jumpifnot_1 callers.
2876 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
2878 (store_expr): Adjust jumpifnot caller.
2879 (store_constructor): Adjust jumpif caller.
2882 * gimplify.c (gimple_boolify): For __builtin_expect call
2883 gimple_boolify also on its first argument.
2885 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
2887 * configure.ac (gnu-unique-object): Wrap regexps using [] in
2889 (__stack_chk_fail): Ditto. Remove quadrigraphs.
2890 * configure: Regenerated.
2892 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2894 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
2895 lang_hooks.types_compatible_p instead of comptypes.
2897 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
2899 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
2900 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
2901 if __prefer_thumb__ is defined.
2903 2010-02-18 Martin Jambor <mjambor@suse.cz>
2905 PR tree-optimization/43066
2906 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
2907 array with zero-sized element type.
2909 2010-02-18 Jakub Jelinek <jakub@redhat.com>
2911 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
2912 rtx, allocate struct var_loc_node here and return it to the
2913 caller, and only if it is actually needed.
2914 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
2915 move it earlier and return immediately if it returns NULL.
2917 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
2919 * config/sparc/gas.h: New file. Restore
2920 TARGET_ASM_NAMED_SECTION to its ELF default.
2921 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
2923 * config/sparc/sparc.c (sparc_elf_asm_named_section):
2924 Likewise. Add ATTRIBUTE_UNUSED to prototype.
2925 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
2926 after sparc/sysv4.h.
2928 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
2930 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
2932 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
2934 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
2935 patterns from predicated pattern.
2937 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
2940 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
2941 for insn mnemonic suffix.
2943 2010-02-17 Richard Guenther <rguenther@suse.de>
2945 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
2948 2010-02-17 Jakub Jelinek <jakub@redhat.com>
2951 * caller-save.c (save_call_clobbered_regs): If BB ends with
2952 a DEBUG_INSN, move any notes in between last real insn and the last
2953 DEBUG_INSN after the last DEBUG_INSN.
2955 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
2957 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
2958 Fix return type. Fix argument type. Explain meaning of return value.
2960 2010-02-16 Richard Guenther <rguenther@suse.de>
2962 PR tree-optimization/41043
2963 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
2964 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
2966 (vrp_visit_phi_node): ... but only for loop PHI nodes.
2968 2010-02-16 Ira Rosen <irar@il.ibm.com>
2970 PR tree-optimization/43074
2971 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
2972 * tree-vect-loop.c (vect_analyze_loop_operations): Add
2973 vectorizable cycles in hybrid SLP check.
2974 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
2976 2010-02-16 Richard Guenther <rguenther@suse.de>
2978 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
2979 (true_dependence): If memrefs_conflict_p computes must-alias
2980 trust it. Move TBAA check after offset-based disambiguation.
2981 (canon_true_dependence): Likewise.
2983 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
2985 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
2986 * doc/invoke.texi: Document it.
2987 * var-tracking.c: Include toplev.h and params.h.
2988 (vt_find_locations): Return bool indicating success. Compute
2989 hash sizes unconditionally. Check new parameter, report.
2990 (variable_tracking_main_1): Check vt_find_locations results and
2991 retry. Renamed from...
2992 (variable_tracking_main): ... this. New wrapper to preserve
2993 flag_var_tracking_assignments.
2994 * Makefile.in (var-tracking.o): Adjust dependencies.
2996 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
2997 Jakub Jelinek <jakub@redhat.com>
3000 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
3001 if weak_import attribute is present.
3002 * config/darwin.c (machopic_select_section): Likewise.
3004 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
3006 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
3007 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
3008 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
3009 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
3011 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument types.
3013 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
3016 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
3017 Rewrite text to refer to the names.
3019 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
3021 * config/i386/i386-builtin-types.def
3022 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
3023 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
3024 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
3025 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
3026 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
3027 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
3028 IX86_BUILTIN_VPERMIL2PS256.
3029 (MULTI_ARG_4_DF2_DI_I): Defined.
3030 (MULTI_ARG_4_DF2_DI_I1): Defined.
3031 (MULTI_ARG_4_SF2_SI_I): Defined.
3032 (MULTI_ARG_4_SF2_SI_I1): Defined.
3033 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
3034 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
3035 __builtin_ia32_vpermil2ps256.
3036 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
3037 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
3038 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
3039 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
3040 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
3041 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
3042 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
3043 CODE_FOR_xop_vpermil2v8sf3.
3044 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
3045 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
3046 * config/i386/xopintrin.h (_mm_permute2_pd): New.
3047 (_mm256_permute2_pd): New.
3048 (_mm_permute2_ps): New.
3049 (_mm256_permute2_ps): New.
3051 2010-02-15 Nick Clifton <nickc@redhat.com>
3053 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
3054 boolean parameters. Use emit_jump_insn when emitting a pop
3055 instruction containing a return insn.
3056 (push): Use 'true' rather than '1' as second parameter to F.
3057 (h8300_expand_prologue): Likewise.
3058 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
3059 (h8300_expand_epilogue): Likewise.
3061 2010-02-15 Richard Guenther <rguenther@suse.de>
3064 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
3067 2010-02-15 Nick Clifton <nickc@redhat.com>
3069 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
3072 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
3074 * intl.c (fake_ngettext): New function.
3075 * intl.h (fake_ngettext): Declare.
3076 (ngettext): Define macro.
3077 * collect2.c (notice_translated): New function.
3078 (main): Use notice_translated and ngettext.
3079 * collect2.h (notice_translated): Declare.
3081 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
3083 * reorg.c (delete_computation): Comment fixes.
3084 * caller-save.c (setup_save_areas): Idem.
3085 * sel-sched-dump.c (dump_lv_set): Idem.
3088 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3090 * config/s390/s390.c (s390_sched_init): New function.
3091 (TARGET_SCHED_INIT): Target hook defined.
3093 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
3094 Jack Howarth <howarth@bromo.med.uc.edu>
3095 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3098 Partial revert of unintended change in fix for PR41605.
3099 * config/darwin.h: Fix typo.
3100 * config/darwin9.h: Same.
3102 2010-02-11 Jakub Jelinek <jakub@redhat.com>
3104 * c-pch.c (pch_init): Clear v.
3106 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
3109 * graphite-scop-detection.c (graphite_can_represent_scev): Call
3110 graphite_can_represent_init for MULT_EXPR.
3112 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
3116 * graphite-sese-to-poly.c (remove_phi): New.
3117 (translate_scalar_reduction_to_array): Call remove_phi.
3119 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
3122 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
3123 * graphite-clast-to-gimple.h (gloog): Update declaration.
3124 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
3125 * graphite-poly.h (struct poly_bb): Add missing comments.
3126 (struct scop): Add poly_scop_p field.
3128 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
3129 * graphite.c (graphite_transform_loops): Build the polyhedral
3130 representation for each scop before code generation.
3131 * sese.c (rename_variables_in_operand): Removed.
3132 (rename_variables_in_expr): Return the renamed expression.
3133 (rename_sese_parameters): New.
3134 * sese.h (rename_sese_parameters): Declared.
3136 2010-02-11 Richard Guenther <rguenther@suse.de>
3138 PR tree-optimization/42998
3139 * tree-ssa-pre.c (create_expression_by_pieces): Treat
3140 POINTER_PLUS_EXPR properly.
3142 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
3143 Changpeng Fang <changpeng.fang@amd.com>
3146 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
3147 the cost of an IV candidate when the IV is used in a test against zero.
3149 * gcc.dg/tree-ssa/ivopts-3.c: New.
3151 2010-02-11 Richard Guenther <rguenther@suse.de>
3154 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
3155 pointer-vs-decl case by swapping refs. Handle some cases
3156 of pointer-vs-decl disambiguations more conservatively.
3157 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
3158 to false after expanding.
3160 2010-02-11 Richard Guenther <rguenther@suse.de>
3163 * gcc.c (process_command): Handle LTO file@offset case more
3166 2010-02-11 Jakub Jelinek <jakub@redhat.com>
3168 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
3169 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
3171 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
3173 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
3174 if MEM's mode size isn't DWARF2_ADDR_SIZE.
3175 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
3176 Optimize eq/ne comparisons when both arguments are known to be
3178 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
3179 Don't mask operands unnecessarily if they are known to be already
3182 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
3184 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
3187 2010-02-10 Richard Guenther <rguenther@suse.de>
3189 PR tree-optimization/43017
3190 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
3191 for wrapping signed arithmetic.
3193 2010-02-10 Jakub Jelinek <jakub@redhat.com>
3196 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
3197 if no debug info should be emitted for it.
3199 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
3201 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
3202 note when flag_exceptions is set.
3204 2010-02-10 Duncan Sands <baldrick@free.fr>
3206 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
3208 2010-02-10 Richard Guenther <rguenther@suse.de>
3211 * tree.c (get_unwidened): Handle constants.
3212 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
3214 2010-02-10 Martin Jambor <mjambor@suse.cz>
3217 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
3218 check for variable argument counts independently.
3220 2010-02-10 Christian Bruel <christian.bruel@st.com>
3223 * config/sh/sh.c (find_barrier): Increase length for non delayed
3224 conditional branches.
3226 2010-02-10 Christian Bruel <christian.bruel@st.com>
3228 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
3230 2010-02-10 Jakub Jelinek <jakub@redhat.com>
3232 * builtins.c (set_builtin_user_assembler_name): Also handle
3233 ffs if int is smaller than word.
3235 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
3238 * ira-conflicts.c (get_dup): Remove.
3239 (process_reg_shuffles): Add new parameter. Use it as an
3240 additional guard for copy generation.
3241 (add_insn_allocno_copies): Rewrite.
3243 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
3245 * common.opt (fsched2-use-traces): Preserved for backward
3247 * doc/invoke.texi: Remove the documentation about option
3248 -fsched2-use-traces.
3249 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
3250 flag_sched2_use_traces.
3251 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
3252 the backward compatibility flag section.
3254 2010-02-09 Richard Guenther <rguenther@suse.de>
3256 PR tree-optimization/43008
3257 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
3258 make HEAP variables initialized from global memory if they
3259 are not known builtin functions.
3260 (find_func_aliases): Adjust.
3262 2010-02-09 Richard Guenther <rguenther@suse.de>
3264 PR tree-optimization/43000
3265 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
3266 arithmetic manually.
3268 2010-02-08 Jakub Jelinek <jakub@redhat.com>
3270 PR tree-optimization/42931
3271 * tree-loop-linear.c (try_interchange_loops): Don't call
3272 double_int_mul if estimated_loop_iterations failed.
3274 2010-02-08 Martin Jambor <mjambor@suse.cz>
3277 * tree-sra.c (build_accesses_from_assign): Do not mark in
3278 should_scalarize_away_bitmap if stmt has volatile ops.
3279 (sra_modify_assign): Do not process assigns piecemeal if if stmt
3282 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
3284 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
3286 2010-02-07 Adam Nemet <adambnmet@gmail.com>
3288 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
3291 2010-02-07 Andrew Pinski <pinskia@gmail.com>
3294 * df-core.c (df_finish_pass): Change type of saved_flags to int.
3296 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
3299 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
3300 to unknown_dependence.
3301 (graphite_legal_transform_dr): Handle the unknown_dependence.
3302 (graphite_carried_dependence_level_k): Same.
3304 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
3306 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
3308 2010-02-07 Richard Guenther <rguenther@suse.de>
3311 * expr.c (get_inner_reference): Always initialize *pbitsize.
3313 2010-02-07 Richard Guenther <rguenther@suse.de>
3316 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
3317 new ARRAY_REFs on variable size element or minimal index arrays.
3319 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
3320 gimple_fold_indirect_ref.
3322 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
3325 * arm.c (arm_override_options): Just return if the user has specified
3326 an invalid fpu name.
3328 2010-02-03 Jason Merrill <jason@redhat.com>
3331 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
3332 i386_pe_maybe_record_exported_symbol.
3334 2010-02-05 Steve Ellcey <sje@cup.hp.com>
3337 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
3338 (pa_delegitimize_address): New function.
3340 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
3342 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
3343 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
3345 2010-02-05 Richard Guenther <rguenther@suse.de>
3348 * lto-streamer-in.c (get_resolution): Deal with references
3349 to undefined functions.
3351 2010-02-05 Richard Guenther <rguenther@suse.de>
3353 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
3354 (fold_const_aggregate_ref): Likewise.
3355 (ccp_fold_stmt): Substitute loads.
3356 (maybe_fold_reference): Verify types before substituting.
3358 (fold_gimple_assign): Unshare properly.
3359 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
3361 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
3363 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
3364 for rs6000_gen_cell_microcode.
3366 2010-02-04 Richard Guenther <rguenther@suse.de>
3368 PR rtl-optimization/42952
3369 * dse.c (const_or_frame_p): Remove MEM handling.
3371 2010-02-04 Nick Clifton <nickc@redhat.com>
3373 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3374 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
3375 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
3376 (mn10300_asm_output_mi_thunk): New function.
3377 (mn10300_can_output_mu_thunk): New function.
3378 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
3379 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
3380 (FUNCTION_ARG): Delete incorrect comment.
3382 2010-02-03 Jason Merrill <jason@redhat.com>
3385 * fold-const.c (operand_equal_p): Handle erroneous types.
3387 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
3389 * config/h8300/h8300.md (can_delay): Fix attibute condition.
3391 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
3393 PR rtl-optimization/42941
3394 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
3397 2010-02-03 Jason Merrill <jason@redhat.com>
3400 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
3402 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
3405 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
3406 (cselib_reset_table): Renamed from...
3407 (cselib_reset_table_with_next_value): ... this.
3408 (cselib_get_next_uid): Renamed from...
3409 (cselib_get_next_unknown_value): ... this.
3410 * cselib.c (next_uid): Renamed from...
3411 (next_unknown_value): ... this.
3412 (cselib_clear_table): Adjust.
3413 (cselib_reset_table): Adjust. Renamed from...
3414 (cselib_reset_table_with_next_value): ... this.
3415 (cselib_get_next_uid): Adjust. Renamed from...
3416 (cselib_get_next_unknown_value): ... this.
3417 (get_value_hash): Use hash.
3418 (cselib_hash_rtx): Likewise.
3419 (new_cselib_val): Adjust. Set and dump uid.
3420 (cselib_lookup_mem): Pass next_uid as hash.
3421 (cselib_subst_to_values): Likewise.
3422 (cselib_log_lookup): Dump uid.
3423 (cselib_lookup): Pass next_uid as hash. Adjust.
3424 (cselib_process_insn): Adjust.
3425 (cselib_init): Initialize next_uid.
3426 (cselib_finish): Adjust.
3427 (dump_cselib_table): Likewise.
3428 * dse.c (canon_address): Dump value uid.
3429 * print-rtl.c (print_rtx): Print value uid.
3430 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
3432 (dv_uid): New function, sort of renamed from...
3433 (dv_htab_hash): ... this, reimplemented in terms of it and...
3434 (dv_uid2hash): ... this. New.
3435 (variable_htab_eq): Drop excess assertions.
3436 (tie_break_pointers): Removed.
3437 (canon_value_cmp): Compare uids.
3438 (variable_post_merge_New_vals): Print uids.
3439 (vt_add_function_parameters): Adjust.
3440 (vt_initialize): Reset table. Adjust.
3442 2010-02-03 Richard Guenther <rguenther@suse.de>
3444 PR tree-optimization/42944
3445 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
3446 (call_may_clobber_ref_p_1): Likewise. Properly handle
3447 malloc and calloc clobbering errno.
3449 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
3451 * doc/invoke.texi: Fix name of sched1 dump.
3453 * opts.c (decode_options): Set flag_tree_switch_conversion
3454 only conditionally on optimize >= 2.
3456 * gcse.c: Assorted comment fixes in pass description.
3458 2010-02-03 Anthony Green <green@moxielogic.com>
3460 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
3461 nop padding in order to maintain alignment of storage location of
3462 target function address.
3463 (moxie_trampoline_init): Store target function address at newly
3465 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
3467 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
3469 2010-02-03 Richard Guenther <rguenther@suse.de>
3472 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
3474 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3476 * config.gcc: Reenable check for obsolete targets.
3477 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
3478 mips-sgi-irix6.[0-4]*.
3480 2010-02-02 Nick Clifton <nickc@redhat.com>
3482 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
3483 constant size of 4 as being the same as 0.
3484 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
3485 can take values in the range 0..4.
3487 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
3490 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
3491 as _darwin10_Unwind_FindEnclosingFunction().
3492 * libgcc-libsystem.ver: New.
3494 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
3497 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
3498 implicitly set registers.
3500 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
3502 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
3503 (arm_override_options): Allow automatic selection of the thread
3504 pointer register if thumb2.
3505 (legitimize_pic_address): Improve code sequences for Thumb2.
3506 (arm_call_tls_get_addr): Likewise.
3507 (legitimize_tls_address): Likewise.
3508 * arm.md (pic_load_addr_arm): Delete. Replace with ...
3509 (pic_load_addr_32bit): ... this. New named pattern.
3510 * thumb2.md (pic_load_addr_thumb2): Delete.
3511 (pic_load_dot_plus_four): Delete.
3512 (tls_load_dot_plus_four): New named pattern.
3514 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3517 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
3518 Document fix for TLS bug.
3520 2010-01-31 Richard Guenther <rguenther@suse.de>
3522 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
3523 conservatively correct.
3525 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3529 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3531 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
3533 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3535 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
3537 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
3539 * config.gcc: Adjust order of makefile fragments for mingw targets.
3541 2010-01-31 Richard Guenther <rguenther@suse.de>
3544 * gimplify.c (gimplify_init_constructor): For volatile LHS
3545 initialize a temporary.
3547 2010-01-31 Matthias Klose <doko@ubuntu.com>
3549 * configure.ac: Fix __stack_chk_fail check for cross builds configured
3551 * configure: Regenerate.
3553 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
3555 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
3556 the same alias set and their sizes different constantness.
3557 (aliasing_component_refs_p): Revert 2009-10-24 change.
3559 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3561 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
3564 2010-01-29 Richard Guenther <rguenther@suse.de>
3566 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
3567 Assert we successfully updated the call.
3569 2010-01-29 Jakub Jelinek <jakub@redhat.com>
3571 PR rtl-optimization/42889
3572 * df.h (df_set_bb_dirty_nonlr): New prototype.
3573 * df-core.c (df_set_bb_dirty_nonlr): New function.
3574 * df-scan.c (df_insn_rescan): Call it instead of
3575 df_set_bb_dirty for DEBUG_INSNs.
3577 2010-01-29 Richard Guenther <rguenther@suse.de>
3580 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
3581 quadratic behavior in most cases.
3583 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
3586 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
3587 in the call to gen_x86_movsicc_0_m1.
3589 2010-01-28 Richard Guenther <rguenther@suse.de>
3591 PR tree-optimization/42871
3592 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
3594 2010-01-28 Richard Guenther <rguenther@suse.de>
3596 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
3597 into call arguments.
3599 2010-01-28 Richard Guenther <rguenther@suse.de>
3602 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
3603 the forwarder if the destination is an EH landing pad.
3605 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
3607 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
3608 block list passed to gimple_duplicate_sese_tail.
3609 (parallelize_loops): Avoid parallelization when the function
3611 Avoid parallelization when the preheader is IRREDUCIBLE.
3612 Try to optimize when estimated_loop_iterations_int is unresolved.
3613 Add the loop's location to the dump file.
3614 * tree-cfg.c (add_phi_args_after_redirect): Remove.
3615 (gimple_duplicate_sese_tail): Remove the check for the latch.
3616 Redirect nexits to the exit block.
3617 Remove handling of the incoming edges to the latch.
3618 Redirect the backedge from the copied latch to the exit bb.
3620 2010-01-28 Michael Matz <matz@suse.de>
3623 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
3624 Wrap force_reg into a sequence, emit it before user.
3626 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
3628 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
3630 (arm_legacy_rev): Likewise.
3631 (thumb_legacy_rev): Likewise.
3633 2010-01-27 Jakub Jelinek <jakub@redhat.com>
3635 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
3636 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
3637 on MEM's address failed, try avoid_constant_pool_reference and
3638 recurse if it returned something different.
3639 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
3640 address, try avoid_constant_pool_reference and recurse if it
3641 returned something different.
3642 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
3643 address and avoid_constant_pool_reference returned something
3644 different, don't set have_address.
3646 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
3649 * var-tracking.c (val_store): Add modified argument, obey it.
3651 (count_uses): Move down logging of main.
3652 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
3653 don't need resolution.
3654 (emit_notes_in_bb): Likewise.
3656 2010-01-27 Richard Guenther <rguenther@suse.de>
3659 * tree-inline.c (remap_decl): Delay remapping of SSA name
3660 default definitions until we need them.
3662 2010-01-27 Jakub Jelinek <jakub@redhat.com>
3664 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
3665 (rs6000_delegitimize_address): New function.
3667 * config/s390/s390.c (s390_delegitimize_address): Call
3668 delegitimize_mem_from_attrs.
3671 * tree-inline.c (cannot_copy_type_1): Removed.
3672 (copy_forbidden): Don't forbid copying of functions containing
3673 records/unions with variable length fields.
3675 2010-01-27 Christian Bruel <christian.bruel@st.com>
3679 * config/sh/sh.c (find_barrier): Increase length for non delayed
3680 conditional branches.
3682 2010-01-27 Matthias Klose <doko@ubuntu.com>
3684 * configure.ac (gnu-unique-object): Fix ldd version check.
3685 * configure: Regenerate.
3687 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3689 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
3691 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
3692 Test for HAVE_GNU_AS value.
3694 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3696 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
3697 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
3698 INT64_TYPE): Define.
3699 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
3700 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
3701 INT_LEAST64_TYPE): Define.
3702 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
3703 UINT_LEAST64_TYPE): Define.
3704 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
3705 INT_FAST64_TYPE): Define.
3706 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
3707 UINT_FAST64_TYPE): Define.
3708 (INTMAX_TYPE, UINTMAX_TYPE): Define.
3709 (INTPTR_TYPE, UINTPTR_TYPE): Define.
3710 (SIG_ATOMIC_TYPE): Define.
3712 2010-01-26 Richard Guenther <rguenther@suse.de>
3714 * df-scan.c (df_scan_set_bb_info): Remove assert.
3715 (df_insn_rescan_debug_internal): Merge asserts.
3716 (df_install_ref): Likewise.
3717 (df_mark_reg): Use bitmap_set_range.
3718 (df_hard_reg_used_p): Remove assert.
3719 (df_hard_reg_used_count): Likewise.
3721 2010-01-26 Richard Guenther <rguenther@suse.de>
3723 PR rtl-optimization/42685
3724 * web.c (web_main): Ignore DEBUG_INSNs.
3726 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
3728 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
3730 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
3731 Fix types of fndecl and arglist parameters.
3733 2010-01-26 Richard Guenther <rguenther@suse.de>
3736 * tree-eh.c (unsplit_eh): Skip debug insns.
3738 2010-01-26 Richard Guenther <rguenther@suse.de>
3740 PR tree-optimization/42250
3741 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
3743 2010-01-26 Jakub Jelinek <jakub@redhat.com>
3746 * omp-low.c (expand_omp_sections): Only use single_pred if
3747 l2_bb is single_pred_p.
3749 2010-01-25 Christian Bruel <christian.bruel@st.com>
3752 * config/sh/sh.c (find_barrier): Increase length for non delayed
3753 conditional branches.
3754 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
3756 2010-01-24 David S. Miller <davem@davemloft.net>
3758 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
3759 define if not using GAS.
3760 * config/sparc/sparc.c (sparc_elf_asm_named_section):
3761 Likewise. Delete SECTION_MERGE code, which is only applicable
3764 2010-01-24 Mark Mitchell <mark@codesourcery.com>
3767 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
3768 mangling of va_list in system headers.
3770 2010-01-23 Toon Moene <toon@moene.org>
3772 * tree-predcom.c (combine_chains): Return NULL, not false.
3774 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
3776 * tree-loop-distribution.c (distribute_loop): Fix declaration and
3777 initialization of variable res to agree with return type.
3779 2010-01-22 Steve Ellcey <sje@cup.hp.com>
3781 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
3782 * tree-sra.c: Add include of expr.h.
3784 2010-01-22 Jakub Jelinek <jakub@redhat.com>
3786 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
3787 insert the debug stmt on the single non-EH edge from the stmt.
3789 2010-01-22 Richard Henderson <rth@redhat.com>
3792 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
3793 the RHS until after generate_subtree_copies has insertted its
3794 code before the current statement.
3796 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
3798 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
3800 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
3802 2010-01-21 Martin Jambor <mjambor@suse.cz>
3804 PR tree-optimization/42585
3805 * tree-sra.c (struct access): New field grp_total_scalarization.
3806 (dump_access): Dump the new field.
3807 (should_scalarize_away_bitmap): New variable.
3808 (cannot_scalarize_away_bitmap): Likewise.
3809 (sra_initialize): Allocate new bitmaps.
3810 (sra_deinitialize): Free new bitmaps.
3811 (create_access_1): New function.
3812 (create_access): Parts moved to create_access_1.
3813 (type_consists_of_records_p): New function.
3814 (completely_scalarize_record): Likewise.
3815 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
3816 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
3817 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
3819 (analyze_all_variable_accesses): Completely scalarize small eligible
3822 2010-01-21 Martin Jambor <mjambor@suse.cz>
3824 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
3826 2010-01-21 Andrew Haley <aph@redhat.com>
3828 * gcc.c (process_command): Move lang_specific_driver before
3829 setting cc_libexec_prefix.
3831 2010-01-21 Richard Guenther <rguenther@suse.de>
3834 * fold-const.c (negate_expr_p): Pretend only negative
3835 real constants are easily negatable.
3837 2010-01-20 Janis Johnson <janis187@us.ibm.com>
3838 Jason Merrill <jason@redhat.com>
3840 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
3841 (TYPE_TRANSPARENT_AGGR): this, for union and record.
3842 * calls.c (initialize argument_information): Handle it.
3843 * c-common.c (handle_transparent_union_attribute): Use new name.
3844 * c-decl.c (finish_struct): Ditto.
3845 * c-typeck.c (type_lists_compatible_p): Ditto.
3846 (convert_for_assignment): Use new name and also handle record.
3847 * function.c (aggregate_value_p): Handle it.
3848 (pass_by_reference): Ditto.
3849 (assign_parm_data_types): Ditto.
3850 * print-tree.c (print_node): Ditto.
3851 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
3852 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
3853 * tree.c (first_field): New fn.
3855 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
3858 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
3859 even when linking statically, for now.
3861 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
3864 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
3865 without a cselib val.
3866 (count_uses): Accept MO_VAL_SET with no val on stores.
3867 (add_stores): Likewise.
3869 2010-01-20 Jakub Jelinek <jakub@redhat.com>
3871 * var-tracking.c (check_value_val): Add a compile time assertion.
3872 (dv_is_decl_p): Simplify.
3873 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
3874 gcc_assert if ENABLE_CHECKING.
3876 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
3879 * var-tracking.c: Include tree-flow.h.
3880 (mem_dies_at_call): New.
3881 (dataflow_set_preserve_mem_locs): Use it.
3882 (dataflow_set_remove_mem_locs): Likewise.
3883 (dump_var): Renamed from dump_variable. Adjust all callers.
3884 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
3885 * Makefile.in (var-tracking.o): Adjust deps.
3887 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
3889 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
3891 2010-01-20 Richard Guenther <rguenther@suse.de>
3893 PR tree-optimization/42717
3894 * tree-ssa-dce.c (get_live_post_dom): Remove.
3895 (forward_edge_to_pdom): Take an arbitrary edge to copy
3896 degenerate PHI args from.
3897 (remove_dead_stmt): Use the first post-dominator even if it
3898 does not contain live statements as redirection destination.
3900 2010-01-20 Richard Guenther <rguenther@suse.de>
3902 * tree-inline.c (estimate_num_insns): Handle EH builtins.
3904 2010-01-20 Jakub Jelinek <jakub@redhat.com>
3906 * sel-sched.c (create_speculation_check): Remove set but not used
3908 (try_transformation_cache): Remove set but not used variable ds.
3909 (calculate_privileged_insns): Remove set but not used variables
3910 cur_insn and min_spec_insn.
3911 (find_best_expr): Remove set but not used variable avail_n.
3912 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
3914 * cgraphunit.c (assemble_thunk): Remove set but not used variable
3916 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
3917 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
3920 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
3923 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
3924 cpu types. Add support for *-sse3 cpu types.
3925 (x86_64-*-*): Ditto.
3927 2010-01-20 Jakub Jelinek <jakub@redhat.com>
3930 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
3931 argument, call initializer_constant_valid_p_1 instead of
3932 initializer_constant_valid_p, pass CACHE to it, return NULL
3933 immediately if first call returns NULL.
3934 (initializer_constant_valid_p_1): New function.
3935 (initializer_constant_valid_p): Use it.
3937 2010-01-20 Thomas Quinot <quinot@adacore.com>
3939 * tree.def (PLACEHOLDER_EXPR): Fix comment.
3941 2010-01-20 Jakub Jelinek <jakub@redhat.com>
3943 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
3944 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
3945 (loc_list_from_tree): Don't handle unsigned division. Handle
3946 signed modulo using DW_OP_{over,over,div,mul,minus}.
3947 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
3948 modulo instead of signed.
3950 2010-01-20 DJ Delorie <dj@redhat.com>
3952 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
3954 (h8300_emit_stack_adjustment): Propogate it.
3956 (h8300_expand_prologue): Likewise.
3957 (h8300_expand_epilogue): Likewise.
3959 2010-01-19 Michael Matz <matz@suse.de>
3961 PR tree-optimization/41783
3962 * tree-data-ref.c (toplevel): Include flags.h.
3963 (dump_data_dependence_relation): Also dump the inputs if the
3964 result will be unknown.
3965 (split_constant_offset_1): Look through some conversions.
3966 * tree-predcom.c (determine_roots_comp): Restart a new chain if
3967 the offset from last element is too large.
3968 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
3969 (reassociate_to_the_same_stmt): Handle vector registers.
3970 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
3972 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
3973 wide_prolog_niters argument, emit widening instructions.
3974 (vect_do_peeling_for_alignment): Adjust caller, use widened
3975 variant of the iteration cound.
3976 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
3978 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3981 * config/arm/neon-testgen.m (emit_automatics): New parameter
3982 features. Adjust for Fixed_return_reg feature.
3983 (test_intrinsic): Call emit_automatics with new feature.
3984 * config/arm/neon.ml: Update copyright years.
3985 (features): New Fixed_return_reg feature.
3986 (ops): Update feature for Vget_low.
3988 2010-01-19 Jakub Jelinek <jakub@redhat.com>
3990 PR tree-optimization/42719
3991 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
3995 * fwprop.c (all_uses_available_at): Return false if def_set dest
3996 is a REG that is used in def_insn.
3998 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
4000 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
4002 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
4005 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
4007 * target.h (struct gcc_target) <secondary_reload>: Change type
4008 of last argument to secondary_reload_info *.
4010 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
4013 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
4014 memory references with unaligned offsets. Remove CQImode handling.
4015 (unaligned_memory_operand): Return 1 for memory references with
4016 unaligned offsets. Remove CQImode handling.
4018 2010-01-18 Richard Guenther <rguenther@suse.de>
4021 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
4024 2010-01-18 Richard Guenther <rguenther@suse.de>
4026 PR tree-optimization/42781
4027 * tree-ssa-structalias.c (find_what_var_points_to): Skip
4028 restrict processing only if the original variable was artificial.
4030 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
4032 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
4033 find number of popped argument bytes.
4035 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
4036 Fix the text that describes the return value for invalid insns.
4038 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
4040 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
4041 Clarify what 'cost of the -dependence' is. Fix quoting.
4043 * toplev.c (default_get_pch_validity): Rename argument to "sz".
4044 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
4046 2010-01-17 Jakub Jelinek <jakub@redhat.com>
4048 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
4049 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
4051 2010-01-17 Richard Guenther <rguenther@suse.de>
4054 * function.c (split_complex_args): Take a VEC to modify.
4055 (assign_parms_augmented_arg_list): Build a VEC instead of
4056 a chain of PARM_DECLs.
4057 (assign_parms_unsplit_complex): Take a VEC of arguments.
4058 Do not fixup unmodified parms.
4059 (assign_parms): Deal with the VEC.
4060 (gimplify_parameters): Likewise.
4062 2010-01-17 Richard Guenther <rguenther@suse.de>
4064 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
4065 node existence check.
4066 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
4067 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
4068 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
4069 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
4070 (gimple_execute_on_growing_pred): Likewise.
4072 2010-01-17 Richard Guenther <rguenther@suse.de>
4074 PR tree-optimization/42773
4075 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
4076 (compute_antic_aux): Likewise.
4077 (compute_partial_antic_aux): Likewise.
4079 2010-01-17 Jie Zhang <jie.zhang@analog.com>
4082 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
4085 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
4087 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
4090 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
4091 Fix markup for strict argument.
4093 (TARGET_SCHED_REORDER2): Fix argument types.
4095 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
4096 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
4098 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
4099 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
4101 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
4104 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
4105 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.