1 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
2 Nathan Froyd <froydnj@codesourcery.com>
4 * coverage.c (build_fn_info_value): Call build_constructor instead of
5 build_constructor_from_list.
6 (build_ctr_info_value): Likewise.
7 (build_gcov_info): Likewise.
9 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
11 * tree.c (build_constructor): Compute TREE_CONSTANT for the
12 resultant constructor.
13 (build_constructor_single): Don't set TREE_CONSTANT.
14 (build_constructor_from_list): Don't compute TREE_CONSTANT.
16 2010-05-12 Jan Hubicka <jh@suse.cz>
18 * cgraph.h (struct varpool_node): Add aux.
19 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
20 * varpool.c (varpool_remove_node): Do not remove initializer.
21 (varpool_reset_queue): Export.
22 (varpool_finalize_decl): Volatile vars are forced to be output.
23 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
25 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
26 process_references, varpool_can_remove_if_no_refs): New functions.
27 (cgraph_remove_unreachable_nodes): Handle variables too.
29 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
32 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
34 2010-05-12 Jakub Jelinek <jakub@redhat.com>
37 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
38 change value of ORT_TASK.
39 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
40 (omp_notice_threadprivate_variable): New function.
41 (omp_notice_variable): Call it for threadprivate variables.
42 If enclosing ctx is a task, print enclosing task rather than
43 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
44 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
45 if task has untied clause.
48 * dwarf2out.c (base_type_die): Don't add name attribute here.
49 (modified_type_die): Instead of sizetype use
50 its underlying original type. If a DW_TAG_base_type doesn't
51 have name added, add __unknown__.
52 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
53 always call force_type_die instead.
55 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
57 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
58 for __stack_chk_guard.
60 2010-05-11 Jakub Jelinek <jakub@redhat.com>
62 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
63 don't call start_source_file debug hook here...
64 (finish_options): ... but here, after outputting predefined and
65 command line defines and undefs.
68 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
70 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
71 optimizing away empty bb with no successors, move over its
72 footer chain to fallthru predecessor.
73 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
74 (rtl_split_edge): For asm goto call patch_jump_insn even if
75 splitting fallthru edge.
78 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
79 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
80 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
81 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
85 * c-parser.c (c_parser_expression): Mark LHS of a comma
86 expression as read if it is a decl, handled component or
87 COMPOUND_EXPR with that on the RHS.
88 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
89 if it is a decl or handled component.
91 2010-05-11 Jan Hubicka <jh@suse.cz>
93 * lto-symtab.c (lto_symtab_free): New function.
94 * lto-streamer.h (lto_symtab_free): Declare.
96 2010-05-11 Jan Hubicka <jh@suse.cz>
98 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
99 that if function is needed it is reachable.
100 (lto_output_node): See if it the function is reachable or referenced.
101 (output_cgraph): Update call of lto_output_node.
102 * lto-streamer.h (reachable_from_other_partition_p): Declare.
104 2010-05-11 Jan Hubicka <jh@suse.cz>
106 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
109 2010-05-11 Jan Hubicka <jh@suse.cz>
111 PR tree-optimize/44063
112 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of queue.
113 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
115 (estimate_function_body_sizes): Compute sizes even when disregarding.
117 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
119 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
121 2010-05-11 Jan Hubicka <jh@suse.cz>
123 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
126 2010-05-11 Jan Hubicka <jh@suse.cz>
128 * matrix-reorg.c (matrix_reorg): Rebuild edges.
130 2010-05-11 Jan Hubicka <jh@suse.cz>
132 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
133 lto_streamer_cache_delete): Put nodes into heap.
134 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
137 2010-05-11 Jan Hubicka <jh@suse.cz>
139 * cgraphbuild.c (cgraph_rebuild_references): New.
140 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
142 * cgraph.h (cgraph_rebuild_references): Declare.
143 * tree-inline.c (tree_function_versioning): Use it.
144 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
146 2010-05-11 Jan Hubicka <jh@suse.cz>
148 * cgraph.c: Include ipa-utils.h
149 (cgraph_create_virtual_clone): Update references.
150 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
152 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
154 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
155 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
158 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
160 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
162 2010-05-11 Jakub Jelinek <jakub@redhat.com>
164 * gcc.c (execute): For -### don't quote arguments that
165 contain just alphanumerics and _/-. characters.
166 * doc/invoke.texi: Document that change for -###.
169 * df-problems.c (struct dead_debug): Add to_rescan field.
170 (dead_debug_init): Clear to_rescan field.
171 (dead_debug_finish): Rescan all debug insns in to_rescan
172 bitmap and free the bitmap.
173 (dead_debug_insert_before): Instead of rescanning debug insns
174 immediately queue their rescanning until dead_debug_finish.
175 (df_note_bb_compute): After dead_debug_add do continue instead
178 2010-05-10 Jakub Jelinek <jakub@redhat.com>
181 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
182 clear also INSN_REG_USE_LIST.
184 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
186 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
188 2010-05-10 Jan Hubicka <jh@suse.cz>
190 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally commited change.
192 2010-05-10 Jan Hubicka <jh@suse.cz>
194 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries): Allocate
196 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
197 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
198 (lto_streamer_cache_create): Init alloc pool.
199 (lto_streamer_cache_delete): Free alloc pool.
200 * lto-streamer.h: Include alloc pool.
201 (lto_streamer_cache_d): Use alloc pool.
202 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
204 2010-05-10 Jan Hubicka <jh@suse.cz>
206 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
207 * cgraphbuild.c: Include except.h
208 (record_type_list, record_eh_tables): New function.
209 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
211 2010-05-10 Jan Hubicka <jh@suse.cz>
213 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
214 __frame_dummy_init_array_entry, force_to_data): Attribute as used
217 2010-05-10 Michael Matz <matz@suse.de>
219 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
220 (can_reassociate_p): Use FLOAT_TYPE_P.
221 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
222 (vect_force_simple_reduction): ... this.
223 * tree-parloops.c (gather_scalar_reductions): Use
224 vect_force_simple_reduction.
225 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
226 vect_is_simple_reduction, add modify argument, if true rewrite
228 (vect_is_simple_reduction, vect_force_simple_reduction): New
230 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
232 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
233 Vladimir Makarov <vmakarov@redhat.com>
235 PR rtl-optimization/44012
236 * ira-build.c (remove_unnecessary_allocnos): Nullify
237 regno_allocno_map of the removed allocno.
239 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
241 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
243 * configure: Regenerate.
245 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
247 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
249 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
250 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
252 * configure: Regenerate.
254 2010-05-10 Richard Guenther <rguenther@suse.de>
256 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
257 marked if the entry identifier is marked.
259 2010-05-10 Richard Guenther <rguenther@suse.de>
261 * c-common.c (struct c_common_attributes): Add fnspec attribute.
262 (handle_fnspec_attribute): New function.
263 * gimple.h (gimple_call_return_flags): Declare.
264 (gimple_call_arg_flags): Likewise.
265 * gimple.c (gimple_call_arg_flags): New function.
266 (gimple_call_return_flags): Likewise.
267 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
269 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
271 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
272 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
274 (make_heapvar_for): ... this new function.
275 (handle_rhs_call): Handle fnspec attribute argument specifiers.
276 (handle_lhs_call): Likewise.
277 (find_func_aliases): Adjust.
279 2010-05-10 Richard Guenther <rguenther@suse.de>
281 PR tree-optimization/44050
282 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
284 2010-05-10 Wei Guozhi <carrot@google.com>
287 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
289 2010-05-09 Joseph Myers <joseph@codesourcery.com>
292 * c-typeck.c (lookup_field): Take a type directly. Update
294 (build_component_ref): Update call to lookup_field.
295 (set_init_label): Use lookup_field to find initialized field.
296 Handle returned list of fields like a sequence of designators.
298 2010-05-09 Richard Guenther <rguenther@suse.de>
301 * fold-const.c (tree_single_nonzero_warnv_p): Properly
302 handle &FUNCTION_DECL.
304 2010-05-09 Joseph Myers <joseph@codesourcery.com>
307 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
308 structures and unions recursively.
309 (detect_field_duplicates): Move duplicate detection with a hash to
310 detect_field_duplicates_hash. Always use a hash if anonymous
311 structures or unions are present.
312 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
315 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
318 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
319 detect Atom, Core 2 and Core i7.
321 2010-05-09 Richard Guenther <rguenther@suse.de>
323 * gcc.c (store_arg): Handle temporary file deletion for
326 2010-05-09 Richard Guenther <rguenther@suse.de>
329 * ipa-inline.c (estimate_function_body_sizes): Return after
330 disregarding inline limits.
332 2010-05-09 Richard Guenther <rguenther@suse.de>
334 * gcc.c (store_arg): Revert last change.
336 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
339 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
340 (optimize_ops_list): Call it.
342 2010-05-08 Richard Guenther <rguenther@suse.de>
344 PR tree-optimization/44030
345 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
346 NECESSARY flag if we propagate from a inserted expression.
348 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
350 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
351 domain types as equal if they are both PLACEHOLDER_EXPRs.
353 2010-05-08 Richard Guenther <rguenther@suse.de>
355 * lto-wrapper.c (run_gcc): Remove linker output from
356 command line for LTRANS invocation.
358 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
360 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
361 lto-macho as lto_binary_reader.
362 * target.h (struct gcc_target): New hooks lto_start and lto_end.
363 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
364 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
365 in lto_start and lto_end calls.
366 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
368 (scan_prog_file): Update is_elf_or_coff call.
369 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
371 * collect2.c (main): Fix enum comparison.
373 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
375 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
376 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
377 and TARGET_ASM_LTO_END.
378 * darwin.c: Include obstack.h and lto-streamer.h.
379 (lto_section_names_offset, lto_section_names_obstack,
380 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
382 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
383 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
385 (darwin_asm_lto_end): New function. Restore asm_out_file.
386 (darwin_asm_named_section): For LTO sections, replace the name with
387 the offset of the section name in a string table, and build this
389 (darwin_file_start): Initialize global vars for LTO support.
390 (darwin_file_end): If output to asm_out_file was redirected, append it
391 to the proper asm_out_file here. Add the section names section.
393 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
395 * c-pragma.c (pending_weak_d, pending_weak): New.
396 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
397 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
398 handle_pragma_weak): Update the uses of pending_weaks.
400 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
402 PR documentation/44016
403 * doc/standards.texi (Standards): Link to unversioned
404 cxx0x_status.html page.
406 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
409 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
410 in addition to TREE_USED, to avoid "set but unused" warnings.
412 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
414 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
415 (is_loop_prefetching_profitable): Do not insert prefetches
416 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
417 times the prefetch ahead distance.
419 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
421 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
422 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
423 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
426 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
428 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
429 a diagnostic info when the insn-to-mem ratio is too small.
431 2010-05-07 Richard Guenther <rguenther@suse.de>
433 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
435 (store_arg): Queue temp_filename for deletion instead of
438 2010-05-07 Richard Guenther <rguenther@suse.de>
440 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
441 (run_gcc): Handle LTRANS phase invocation.
442 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
444 2010-05-07 Jakub Jelinek <jakub@redhat.com>
446 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
447 this is also meaningful on PARM_DECLs and RESULT_DECLs.
449 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
451 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
453 2010-05-07 Richard Guenther <rguenther@suse.de>
455 PR tree-optimization/44020
456 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
457 code when PRE is not yet initialized.
459 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
461 * config/mips/dbxmdebug.h: Remove.
462 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
464 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
466 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
467 with null pointer and also warn about ordered comparison of zero with
470 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
472 * graphite-blocking.c
473 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
474 * graphite-clast-to-gimple.c
475 (clast_to_gcc_expression): Same.
476 (precision_for_value): Same.
477 (precision_for_interval): Same.
478 (gcc_type_for_interval): Same.
479 (graphite_create_new_guard): Same.
480 (compute_bounds_for_level): Same.
481 (graphite_create_new_loop_guard): Same.
482 * graphite-interchange.c
483 (build_linearized_memory_access): Same.
484 (pdr_stride_in_loop): Same.
485 (memory_strides_in_loop_1): Same.
486 (memory_strides_in_loop): Same.
487 (extend_scattering): Same.
488 (psct_scattering_dim_for_loop_depth): Same.
489 (pbb_number_of_iterations): Same.
491 (debug_iteration_domains): Same.
493 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
494 (ppl_set_inhomogeneous_gmp): Same.
495 (ppl_strip_loop): Same.
496 (ppl_lexico_compare_linear_expressions): Same.
497 (ppl_read_polyhedron_matrix): Same.
498 (ppl_max_for_le_pointset): Same.
500 (ppl_read_polyhedron_matrix): Same.
501 (tree_int_to_gmp): Same.
502 (gmp_cst_to_tree): Same.
503 (ppl_set_inhomogeneous): Same.
504 (ppl_set_inhomogeneous_tree): Same.
505 (ppl_set_coef): Same.
506 (ppl_set_coef_tree): Same.
507 * graphite-sese-to-poly.c
508 (build_pbb_scattering_polyhedrons): Same.
509 (build_scop_scattering): Same.
510 (scan_tree_for_params_right_scev): Same.
511 (scan_tree_for_params): Same.
512 (find_params_in_bb): Same.
513 (find_scop_parameters): Same.
514 (add_upper_bounds_from_estimated_nit): Same.
515 (build_loop_iteration_domains): Same.
516 (add_condition_to_domain): Same.
517 (pdr_add_memory_accesses): Same.
519 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
521 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
522 CLooG's value_* macros to their respective mpz_* counterparts.
523 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
524 (graphite_create_new_loop_guard): Same.
525 * graphite-interchange.c (build_linearized_memory_access): Same.
526 (pdr_stride_in_loop): Same.
527 (memory_strides_in_loop_1): Same.
528 (1st_interchange_profitable_p): Same.
529 * graphite-poly.c (extend_scattering): Same.
530 (psct_scattering_dim_for_loop_depth): Same.
531 (pbb_number_of_iterations): Same.
532 (pbb_number_of_iterations_at_time): Same.
533 * graphite-poly.h (new_1st_loop): Same.
534 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
535 (oppose_constraint): Same.
536 (insert_constraint_into_matrix): Same.
537 (ppl_set_inhomogeneous_gmp): Same.
538 (ppl_set_coef_gmp): Same.
539 (ppl_strip_loop): Same.
540 (ppl_lexico_compare_linear_expressions): Same.
541 (ppl_max_for_le_pointset): Same.
542 (ppl_min_for_le_pointset): Same.
543 (ppl_build_realtion): Same.
544 * graphite-ppl.h (gmp_cst_to_tree): Same.
545 (ppl_set_inhomogeneous): Same.
546 (ppl_set_inhomogeneous_tree): Same.
547 (ppl_set_coef): Same.
548 (ppl_set_coef_tree): Same.
549 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
550 (build_scop_scattering): Same.
551 (add_value_to_dim): Same.
552 (scan_tree_for_params_right_scev): Same.
553 (scan_tree_for_params_int): Same.
554 (scan_tree_for_params): Same.
555 (find_params_in_bb): Same.
556 (find_scop_parameters): Same.
557 (add_upper_bounds_from_estimated_nit): Same.
558 (build_loop_iteration_domains): Same.
559 (create_linear_expr_from_tree): Same.
560 (add_condition_to_domain): Same.
561 (pdr_add_memory_accesses): Same.
563 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
564 Jason Merrill <jason@redhat.com>
566 * c-common.c (c_common_reswords): Add nullptr.
567 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
568 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
569 (gen_type_die_with_usage): Likewise.
570 * dbxout.c (dbxout_type): Likewise.
571 * sdbout.c (plain_type_1): Likewise.
573 2010-05-06 Jason Merrill <jason@redhat.com>
575 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
576 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
578 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
580 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
581 stripping WITH_SIZE_EXPR.
582 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
585 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
587 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
588 list of obsolete configurations.
589 Disabled check for obsolete configurations.
590 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
591 Removed support for previous versions.
592 * config/mips/iris.h: Removed.
593 * config/mips/iris5.h: Removed.
594 * config/mips/iris6.h: Merged old iris.h contents.
595 (TARGET_IRIX): Removed.
596 (DRIVER_SELF_SPECS): Removed mabi=32.
597 (IDENT_ASM_OP): Removed undef.
598 (STARTFILE_SPEC): Removed mabi=32.
599 (ENDFILE_SPEC): Likewise.
600 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
601 (MACHINE_TYPE): Update for IRIX 6.5.
602 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
603 TARGET_IRIX by TARGET_IRIX6.
604 (mips_file_start): Likewise.
605 (mips_output_external): Remove IRIX 5/6 O32 support.
606 (mips_output_function_prologue): Likewise.
607 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
609 (TARGET_CPU_CPP_BUILTINS): Likewise.
610 (TARGET_IRIX): Removed.
611 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
612 (MULTILIB_DIRNAMES): Removed 32.
613 (MULTILIB_OSDIRNAMES): Removed ../lib.
614 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
615 (Specific, mips-sgi-irix5): Document removal.
616 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
617 Remove references to older IRIX 6 releases and the O32 ABI.
619 2010-05-06 Jakub Jelinek <jakub@redhat.com>
622 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
623 instead of DF_REF_REAL_REG.
625 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
628 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
629 handling to still return true for x64 targets.
631 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
633 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
635 2010-05-06 Jan Hubicka <jh@suse.cz>
637 PR tree-optimization/43791
638 * ipa-inline.c (update_caller_keys): Remove bogus
639 disregard_inline_limits check.
641 2010-05-06 Michael Matz <matz@suse.de>
643 PR tree-optimization/43984
644 * tree-ssa-pre.c (inserted_phi_names): Remove.
645 (inserted_exprs): Change to bitmap.
646 (create_expression_by_pieces): Set bits, don't append to vector.
647 (insert_into_preds_of_block): Don't handle inserted_phi_names.
648 (eliminate): Don't look at inserted_phi_names, remove deleted
649 insns from inserted_exprs.
650 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
651 (init_pre, fini_pre): Allocate and free bitmaps.
652 (execute_pre): Insert insns on edges before elimination.
654 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
656 * tree.c (initializer_zerop): Handle STRING_CST.
658 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
661 * doc/invoke.texi (Wimplicit): Document as C only.
662 * opts.c (common_handle_option): Add argument kind.
663 (handle_option): Rename as read_cmdline_option. Factor out code to...
664 (handle_option): ... here. New.
665 (handle_options): Rename as read_cmdline_options.
666 (decode_options): Update call.
667 (set_option): Use option index instead of option pointer. Classify
668 diagnostics correctly.
669 (enable_warning_as_error): Call handle_option.
670 * opts.h (set_option): Update declaration.
671 (handle_option): Declare.
672 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
673 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
674 * c-opts.c (set_Wimplicit): Delete.
675 (c_family_lang_mask): New static constant.
676 (c_common_handle_option): Add argument kind. Use handle_option
677 instead of set_Wimplicit.
678 (c_common_post_options): warn_implicit and warn_implicit_int
679 are disabled by default.
680 * c-common.c (warn_implicit): Do not define here.
681 * c-common.h (warn_implicit): Do not declare here.
682 (c_common_handle_option): Update declaration.
683 * lto-opts.c (lto_reissue_options): Update call to set_option.
685 2010-05-06 Richard Guenther <rguenther@suse.de>
687 PR tree-optimization/43571
688 * domwalk.c (walk_dominator_tree): Walk the dominator
689 sons in more optimal order.
691 2010-05-06 Richard Guenther <rguenther@suse.de>
693 PR tree-optimization/43934
694 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
695 (stmt_cost): Likewise.
696 (extract_true_false_args_from_phi): New helper.
697 (determine_max_movement): For PHI nodes verify we can hoist them
698 and compute their cost.
699 (determine_invariantness_stmt): Handle PHI nodes.
700 (move_computations_stmt): Likewise. Hoist PHI nodes in
701 if-converted form using COND_EXPRs.
702 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
703 (tree_ssa_lim): Likewise.
704 * tree-flow.h (tree_ssa_lim): Adjust prototype.
705 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
707 2010-05-06 Richard Guenther <rguenther@suse.de>
709 PR tree-optimization/43987
710 * tree-ssa-structalias.c (could_have_pointers): For possibly
711 address-taken variables force pointers to be recorded.
712 (create_variable_info_for_1): Likewise.
713 (push_fields_onto_fieldstack): Pass in wheter all fields
715 (find_func_aliases): Query types instead of vars whether
716 they contain pointers where appropriate.
718 2010-05-06 Jan Hubicka <jh@suse.cz>
720 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
721 (record_reference, mark_address, mark_load, mark_store): Record
723 (record_references_in_initializer): Update call of record_references.
724 (rebuild_cgraph_edges): Remove all references before rebuiding.
725 * cgraph.c (cgraph_create_node): Clear ref list.
726 (cgraph_remove_node): Remove references.
727 (dump_cgraph_node): Dump references.
728 (cgraph_clone_node): Clone references.
729 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
730 (struct cgraph_node, varpool_node): Add ref_lst.
731 * ipa-ref.c: New file.
732 * ipa-ref.h: New file.
733 * ipa-ref-inline.h: New file.
734 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
735 (referenced_from_other_partition_p): New function.
736 (lto_output_varpool_node): Take set arugment; call
737 referenced_from_other_partition.
738 (lto_output_ref): New.
739 (add_references): New.
741 (output_cgraph): Compute boundary based on references; output refs.
742 (output_varpool): Accept cgraph_node_set argument.
745 (input_cgraph): Call input_refs.
746 * lto-section-in.c (lto_section_name): Add refs.
747 * Makefile.in: (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
748 (ipa-ref.o): New file.
749 * varpool.c (varpool_node): Clear ipa ref list.
750 (varpool_remove_node): Remove references.
751 (dump_varpool_node): Dump references.
752 (varpool_assemble_decl): Only compile finalized ones.
753 (varpool_extra_name_alias): Initialize ref list.
754 * lto-streamer.c (lto-get_section_name): Add .refs section.
755 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
756 (referenced_from_other_partition_p): Declared.
758 2010-05-06 Ira Rosen <irar@il.ibm.com>
760 PR tree-optimization/43901
761 * tree-vect-stmts.c (vectorizable_call): Assert that vector
762 type is not NULL if it's transformation phase, and return
763 FALSE if it's analysis.
764 (vectorizable_conversion, vectorizable_operation,
765 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
767 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
769 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
771 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
773 * config/mips/mips-protos.h
774 (mips_small_register_classes_for_mode_p): Delete prototype.
776 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
778 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
779 * config/arm/arm.c (multiple_operation_profitable_p,
780 compute_offset_order): New static functions.
781 (load_multiple_sequence, store_multiple_sequence): Use them.
782 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
783 memory offsets, not register numbers.
784 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
786 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
788 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
789 (get_pending_sizes, put_pending_size, put_pending_sizes):
790 Update the uses of pending_sizes.
791 * c-decl.c (store_parm_decls): Likewise.
792 * c-tree.h (struct c_arg_info): Likewise.
793 * tree.h: Update the prototype for get_pending_sizes and
796 2010-05-05 Jason Merrill <jason@redhat.com>
799 * c-common.c (handle_aligned_attribute): Respect
800 ATTR_FLAG_TYPE_IN_PLACE.
803 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
804 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
805 (TARGET_INITIALIZER): Use it.
806 * c-common.c (attribute_takes_identifier_p): Call it.
807 * c-common.h: Update prototype.
808 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
809 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
811 2010-05-05 Jakub Jelinek <jakub@redhat.com>
814 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
815 DW_ID_down_case for Fortran compilation units.
817 2010-05-05 Jan Hubicka <jh@suse.cz>
819 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
822 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
824 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
825 a variable-sized RESULT_DECL.
827 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
829 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
831 2010-05-05 Jason Merrill <jason@redhat.com>
834 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
836 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
838 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
839 Jakub Jelinek <jakub@redhat.com>
842 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
843 (dead_debug_init, dead_debug_finish): New functions.
844 (dead_debug_add, dead_debug_insert_before): Likewise.
845 (df_note_bb_compute): Initialize a dead_debug object, add dead
846 debug uses to it, insert debug bind insns before death insns,
847 reset debug insns that refer to pending uses at the end.
848 * rtl.h (make_debug_expr_from_rtl): New prototype.
849 * varasm.c (make_debug_expr_from_rtl): New function.
851 2010-05-05 Jan Hubicka <jh@suse.cz>
853 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
854 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
855 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
856 lto_varpool_encoder_deref, lto_varpool_encoder_size,
857 lto_varpool_encoder_encode_initializer_p,
858 lto_set_varpool_encoder_encode_initializer): New functions.
859 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
861 (input_varpool_node): Do not always set analyzed.
862 (input_cgraph_1): Return vector of cgraph nodes.
863 (input_varpool_1): Return vector of varpools.
864 (input_cgraph): Free the vectors.
865 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
866 output only initializers needed.
867 (lto_output): Only call output_cgraph.
868 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
869 * lto-section-out.c (lto_new_out_decl_state): Initialize
870 state->varpool_node_encoder.
871 * lto-streamer.h (lto_varpool_encoder_d): New.
872 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
873 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
874 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
875 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
876 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
878 (output_varpool, input_varpool): Remove declarations.
880 2010-05-05 Jan Hubicka <jh@suse.cz>
882 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
883 with body can prevail.
885 2010-05-05 Jan Hubicka <jh@suse.cz>
887 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
890 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
892 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
894 * gengtype.h (erro_at_line): Constify pos argument.
896 * gengtype.c: Include hashtab.h.
897 (enum gc_used): Document GC_MAYBE_POINTED_TO.
898 (error_at_line): Constify pos argument.
899 (do_typedef): Initialize p->opt field.
900 (get_file_gtfilename): Fix comment typo.
901 (struct walk_type_data): Constify line field.
902 (get_output_file_for_structure): New function.
903 (write_local_func_for_structure): Constify orig_s argument.
904 Use get_output_file_for_structure.
905 (write_func_for_structure): Use get_output_file_for_structure.
906 (INDENT): New define.
907 (dump_pair, dump_type, dump_type_list, dump_typekind)
908 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
909 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
911 (seen_types): New variable.
912 (main): New variable do_dump. Process "-d" command line option.
913 Call dump_everything if dump requested.
915 2010-05-05 Jakub Jelinek <jakub@redhat.com>
917 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
918 in a temporary instead of invoking the macro multiple times.
919 (track_expr_p): Likewise.
921 2010-05-04 Neil Vachharajani <nvachhar@google.com>
923 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
925 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
926 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
927 conditions for printing notes.
928 * common.opt (-Wcoverage-mismatch): Allow negative, default to
929 true, update documentation.
930 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
932 2010-05-04 Jakub Jelinek <jakub@redhat.com>
935 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
938 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
941 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
942 (*sse_prologue_save_insn1): Likewise.
943 (SSE prologue save splitter): Likewise.
945 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
947 * tree.c (free_lang_data_in_one_sizepos): New inline function.
948 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
949 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
950 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
951 all decls. Call it on DECL_FIELD_OFFSET of fields.
952 (find_decls_types_r): Follow DECL_VALUE_EXPR.
953 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
955 2010-05-04 Martin Jambor <mjambor@suse.cz>
957 * tree-sra.c (build_access_from_expr_1): The first parameter type
958 changed to simple tree.
959 (build_access_from_expr): Likewise, gsi parameter was eliminated.
960 (scan_assign_result): Renamed to assignment_mod_result, enum elements
962 (build_accesses_from_assign): Removed all parameters except for a
963 simple gimple statement. Now returns a simple bool.
964 (scan_function): All non-analysis parts moved to separate functions
965 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
966 parameters and updated both callers.
967 (sra_modify_expr): Removed parameter data.
968 (sra_modify_function_body): New function.
969 (perform_intra_sra): Call sra_modify_function_body to modify the
971 (replace_removed_params_ssa_names): Parameter data changed into
973 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
974 changed the parameter dont_convert to convert with the opposite
976 (sra_ipa_modify_assign): Parameter data changed into adjustments
977 vector, return value changed to bool.
978 (ipa_sra_modify_function_body): New function.
979 (sra_ipa_reset_debug_stmts): Updated a comment.
980 (modify_function): Use ipa_sra_modify_function_body to modify function
983 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
986 * alias.c (true_dependence): Handle the same VALUE in x and mem.
987 (canon_true_dependence): Likewise.
988 (write_dependence_p): Likewise.
990 2010-05-04 Jan Hubicka <jh@suse.cz>
992 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
993 * cgraphbuild.c: Include ipa-utils.h
994 (record_reference_ctx): New struct.
995 (record_reference): Simplify to work on initializers; not statements.
996 (mark_address, mark_load, mark_store): New.
997 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
999 (record_references_in_initializer): Update use of record_reference.
1000 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
1003 2010-05-04 Jan Hubicka <jh@suse.cz>
1005 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
1006 node will be removed anyway.
1007 (lto_varpool_replace_node): Allow also unanalyzed nodes;
1008 relink aliases of node into prevailing node.
1009 * varpool.c (varpool_remove_node): Remove aliases properly;
1010 when removing node, remove all its aliases too; remove DECL_INITIAL
1011 of removed node; ggc_free the varpool node.
1013 2010-05-04 Richard Guenther <rguenther@suse.de>
1015 PR tree-optimization/43879
1016 * tree-ssa-structalias.c (alias_get_name): Use
1017 DECL_ASSEMBLER_NAME if available.
1018 (create_function_info_for): Return the varinfo node.
1019 (ipa_pta_execute): Associate same-body aliases and extra names
1020 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
1022 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
1024 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
1026 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
1029 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
1030 only if HONOR_REG_ALLOC_ORDER is not defined.
1032 2010-05-04 Richard Guenther <rguenther@suse.de>
1034 PR tree-optimization/43949
1035 * tree-vrp.c (extract_range_from_binary_expr): Only handle
1038 2010-04-26 Jason Merrill <jason@redhat.com>
1040 * c.opt (-fstrict-enums): New.
1041 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
1043 2010-05-03 David Ung <davidu@mips.com>
1044 James E. Wilson <wilson@codesourcery.com>
1046 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
1047 emit the trap instruction before the divide for TUNE_74K.
1049 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
1051 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
1052 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
1053 based on the above, for new target hook.
1055 * hooks.c (hook_bool_mode_true): New generic hook.
1056 * hooks.h (hook_bool_mode_true): Add prototype.
1058 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
1060 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
1061 target hook, set to hook_bool_mode_false.
1062 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
1063 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
1064 with targetm.small_register_classes_for_mode_p.
1065 (find_reusable_reload): Likewise.
1066 (combine_reloads): Likewise.
1067 * reload1.c (reload_as_needed): Likewise.
1068 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
1069 * ifcvt.c (noce_process_if_block, check_cond_move_block,
1070 dead_or_predicable): Likewise.
1071 * regmove.c (optimize_reg_copy_1): Likewise.
1072 * calls.c (prepare_call_address): Likewise.
1073 (precompute_register_parameters): Likewise.
1075 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
1077 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
1078 implementation of the hook that considers all register classes
1079 small except for SH64.
1080 (sh_override_options): Use the new hook.
1081 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
1084 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
1086 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
1087 implementation of the hook that considers all register classes
1089 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
1092 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
1094 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
1095 implementation of the hook that considers all register classes
1097 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
1100 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
1102 * config/m32c/m32c.h: Likewise.
1103 * config/pdp11/pdp11.h: Likewise.
1104 * config/avr/avr.h: Likewise.
1105 * config/xtensa/xtensa.h: Likewise.
1106 * config/m68hc11/m68hc11.h: Likewise.
1107 * config/mn10300/mn10300.h: Likewise.
1108 * config/mcore/mcore.h: Likewise.
1109 * config/h8300/h8300.h: Likewise.
1110 * config/bfin/bfin.h: Likewise.
1112 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
1113 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
1115 2010-05-03 Anatoly Sokolov <aesok@post.ru>
1117 * double-int.h (tree_to_double_int): Remove macro.
1118 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
1119 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
1120 (tree_to_double_int): New function.
1121 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
1123 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
1125 2010-05-03 Richard Guenther <rguenther@suse.de>
1127 PR tree-optimization/43971
1128 * tree-ssa-structalias.c (get_constraint_for_1): Fix
1129 constraints in the !flag_delete_null_pointer_checks case.
1131 2010-05-03 Jakub Jelinek <jakub@redhat.com>
1134 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
1135 result mode matches original rtl mode.
1137 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
1140 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
1142 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
1144 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
1145 when processing flag options.
1147 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
1149 * gcov-iov.c (main): Change format string placeholder
1150 from %#08x to 0x%08x.
1151 * genchecksum.c (dosum): Change format string placeholder
1152 from %#02x to 0x%02x.
1154 2010-05-02 Richard Guenther <rguenther@suse.de>
1156 PR tree-optimization/43879
1157 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
1159 2010-05-02 Bruno Haible <bruno@clisp.org>
1161 * doc/extend.texi (Function Attributes): Fix a typo.
1163 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
1166 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
1167 placeholder from 0x%x to %#x.
1168 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
1169 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
1170 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
1171 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
1172 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
1173 * config/i386/i386.c (ix86_target_string): Ditto.
1174 * config/i386/i386.c (output_pic_addr_const): Ditto.
1175 (print_operand): Ditto.
1177 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
1179 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
1180 placeholder from 0x%x to %#x.
1181 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
1182 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
1183 (ASM_OUTPUT_DEBUG_DATA): Ditto.
1184 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
1185 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
1186 * optc-gen.awk: Ditto.
1187 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
1188 (HOST_WIDE_INT_PRINT_HEX): Ditto.
1189 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
1190 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
1192 2010-05-01 Anatoly Sokolov <aesok@post.ru>
1194 * target.h (struct calls): Add function_value_regno_p field.
1195 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
1196 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
1197 * targhooks.c (default_function_value_regno_p): New function.
1198 * targhooks.h (default_function_value_regno_p): Declare function.
1199 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
1200 * builtins.c. (apply_result_size): (Ditto.).
1201 * combine.c. (likely_spilled_retval_p): (Ditto.).
1202 * mode-switching.c. Include 'target.h'.
1203 (create_pre_exit): Use function_value_regno_p hook.
1204 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
1205 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
1206 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
1208 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
1209 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
1210 (ix86_function_value_regno_p): Declare as static, change argument
1211 type to const unsigned int.
1212 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
1214 2010-05-01 Richard Guenther <rguenther@suse.de>
1216 PR tree-optimization/43949
1217 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
1219 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
1221 2010-05-01 Anatoly Sokolov <aesok@post.ru>
1223 * rtl.h (CONST_DOUBLE_P): Define.
1224 (rtx_to_double_int): Declare.
1225 * emit-rtl.c (rtx_to_double_int): New function.
1226 * dwarf2out.c (insert_double): New function.
1227 (loc_descriptor, add_const_value_attribute): Clean up, use
1228 rtx_to_double_int and insert_double functions.
1230 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
1232 * doc/extend.texi (Inline): Add missing return keyword to examples.
1233 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
1236 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
1238 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
1239 the variable part of the offset as well. Use highest_pow2_factor for
1240 all alignment checks.
1242 2010-04-30 Richard Guenther <rguenther@suse.de>
1244 PR tree-optimization/43879
1245 * tree-ssa-structalias.c (type_could_have_pointers): Functions
1248 2010-04-30 Jan Hubicka <jh@suse.cz>
1250 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
1252 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
1254 2010-04-30 Jan Hubicka <jh@suse.cz>
1256 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
1258 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
1259 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
1260 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
1261 cgraph_node_set_needs_ltrans_p): Remove.
1263 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
1265 * sdbout.c: Include vec.h, do not include varray.h.
1266 (deferred_global_decls, sdbout_global_decl,
1267 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
1268 * toplev.c: Do not include varray.h.
1269 (dump_memory_report): Do not dump VARRAY statistics.
1270 * gengtype.c (open_base_file): Ignore varray.h.
1271 * Makefile.in: Update for abovementioned changes.
1272 Remove all traces of varray.c and varray.h.
1273 * varray.c: Remove file.
1274 * varray.h: Remove file.
1276 2010-04-30 Jan Hubicka <jh@suse.cz>
1278 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
1281 2010-04-30 Jan Hubicka <jh@suse.cz>
1283 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
1286 2010-04-30 Richard Guenther <rguenther@suse.de>
1288 * tree-ssa-structalias.c (get_constraint_for_1): Generate
1289 constraints for CONSTRUCTOR.
1291 2010-04-30 Richard Guenther <rguenther@suse.de>
1294 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
1295 first after all lowering passes.
1297 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
1299 * toplev.c: Include varray.h for statistics dumping.
1300 * tree.h: Do not declare varray_head_tag.
1301 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
1302 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
1303 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
1304 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
1305 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
1306 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
1307 c-common.c, c-common.h, reg-stack.c, basic-block.h,
1308 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
1310 * Makefile.in: Update for abovementioned changes.
1312 2010-04-30 Jakub Jelinek <jakub@redhat.com>
1315 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
1317 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
1319 * config/picochip/picochip.c (picochip_legitimize_address): Define.
1320 Use this function to do machine-specific conversion.
1321 (picochip_legitimize_reload_address): Likewise.
1322 (picochip_legitimate_address_p): Check valid base register only if
1324 (picochip_check_conditional_copy): Check for modw only if opnd is
1326 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
1327 to call the function in c.
1328 * config/picochip/picochip-protos.h
1329 (picochip_legitimize_reload_address): Define.
1330 * config/picochip/picochip.md (supported_compare1): Define.
1332 2010-04-30 Jan Hubicka <jh@suse.cz>
1334 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
1335 (cgraph_global_info): Remove inlined.
1336 (LTO_cgraph_tag_names): Remove.
1337 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
1338 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
1339 simplify cgraph tags and document.
1340 (lto_output_node): Use only LTO_cgraph_unavail_node and
1341 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
1342 for_functions_valid, global info, process and output flags.
1343 (input_overwrite_node): Initialize estimated stack size and
1344 estimated growth. Do not read flags we no longer store.
1345 (input_node): Likewise do not read info no longer stored.
1346 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
1349 2010-04-30 Richard Guenther <rguenther@suse.de>
1351 PR tree-optimization/43879
1352 * tree-ssa-structalias.c (get_constraint_for_1): Properly
1353 handle non-zero initializers.
1355 2010-04-30 Richard Guenther <rguenther@suse.de>
1357 * builtins.c (fold_builtin_1): Delete free (0).
1359 2010-04-29 Jan Hubicka <jh@suse.cz>
1361 * gengtype.c (open_base_files): Add lto-streamer.h
1362 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
1363 (pass_ipa_cp): GGC collect.
1364 * toplev. (compile_file): Do not output symbols.
1365 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
1366 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
1367 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
1368 * lto-section-in.c: Include ggc.h
1369 (lto_new_in_decl_state): Alloc in GGC.
1370 (lto_delete_in_decl_state): Likewise.
1371 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
1374 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
1377 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
1378 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
1379 (HONOR_REG_ALLOC_ORDER): Describe new macro.
1380 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
1381 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
1382 account only if HONOR_REG_ALLOC_ORDER is not defined.
1383 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
1384 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
1386 2010-04-29 Jon Grant <04@jguk.org>
1388 * collect2.c (vflag): Change type from int to bool.
1390 (helpflag): New global bool.
1391 (main): Set vflag and debug with boolean, not integer truth values.
1392 Accept new "--help" option and output usage text if found.
1393 * collect2.h (vflag): Update prototype.
1396 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
1399 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
1401 2010-04-29 Richard Guenther <rguenther@suse.de>
1404 * plugin.h (invoke_plugin_callbacks): Annotate arguments
1405 with ATTRIBUTE_UNUSED.
1407 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
1410 * config/i386/i386.c (get_some_local_dynamic_name): Replace
1411 INSN_P with NONDEBUG_INSN_P.
1412 (distance_non_agu_define): Likewise.
1413 (distance_agu_use): Likewise.
1415 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
1417 From Dominique d'Humieres <dominiq@lps.ens.fr>
1419 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
1422 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
1424 * plugin.h (invoke_plugin_callbacks): New inline function.
1425 * plugin.c (flag_plugin_added): New global flag.
1426 (add_new_plugin): Initialize above flag.
1427 (invoke_plugin_callbacks): Rename to ...
1428 (invoke_plugin_callbacks_full): ... this.
1430 2010-04-28 Jan Hubicka <jh@suse.cz>
1432 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
1433 (lto_varpool_replace_node): New.
1434 (lto_symtab_resolve_symbols): Resolve varpool nodes.
1435 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
1436 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
1437 * cgraph.h (varpool_node_ptr): New type.
1438 (varpool_node_ptr): New vector.
1439 (varpool_node_set_def): New structure.
1440 (varpool_node_set): New type.
1441 (varpool_node_set): New vector.
1442 (varpool_node_set_element_def): New structure.
1443 (varpool_node_set_element, const_varpool_node_set_element): New types.
1444 (varpool_node_set_iterator): New type.
1445 (varpool_node): Add prev pointers, add used_from_other_partition,
1447 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
1448 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
1449 varpool_get_node, varpool_remove_node): Declare.
1450 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
1451 varpool_node_set_size): New inlines.
1452 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
1453 * tree-pass.h (varpool_node_set_def): Forward declare.
1454 (ipa_opt_pass_d): Summary writting takes vnode sets too.
1455 (ipa_write_optimization_summaries): Update prototype.
1456 * ipa-cp.c (ipcp_write_summary): Update.
1457 * ipa-reference.c (ipa_reference_write_summary): Update.
1458 * lto-cgraph.c (lto_output_varpool_node): New static function.
1459 (output_varpool): New function.
1460 (input_varpool_node): New static function.
1461 (input_varpool_1): New function.
1462 (input_cgraph): Input varpool.
1463 * ipa-pure-const.c (pure_const_write_summary): Update.
1464 * lto-streamer-out.c (lto_output): Update, output varpool too.
1465 (write_global_stream): Kill WPA hack.
1466 (produce_asm_for_decls): Update.
1467 (output_alias_pair_p): Handle variables.
1468 (output_unreferenced_globals): Output only needed partition of varpool.
1469 * ipa-inline.c (inline_write_summary): Update.
1470 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
1472 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
1473 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
1474 varpool_node_set_new, varpool_node_set_add,
1475 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
1476 debug_varpool_node_set): New functions.
1477 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
1478 (execute_one_pass): Process new decls too.
1479 (ipa_write_summaries_2): Pass around vsets.
1480 (ipa_write_summaries_1): Likewise.
1481 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
1483 (ipa_write_optimization_summaries_1): Pass around vsets.
1484 (ipa_write_optimization_summaries): Likewise.
1485 * varpool.c (varpool_get_node): New.
1486 (varpool_node): Update doubly linked lists.
1487 (varpool_remove_node): New.
1488 (dump_varpool_node): More dumping.
1489 (varpool_enqueue_needed_node): Update doubly linked lists.
1490 (decide_is_variable_needed): Kill ltrans hack.
1491 (varpool_finalize_decl): Kill lto hack.
1492 (varpool_assemble_decl): Skip decls in other partitions.
1493 (varpool_assemble_pending_decls): Update doubly linkes lists.
1494 (varpool_empty_needed_queue): Likewise.
1495 (varpool_extra_name_alias): Likewise.
1496 * lto-streamer.c (lto_get_section_name): Add vars section.
1497 * lto-streamer.h (lto_section_type): Update.
1498 (output_varpool, input_varpool): Declare.
1500 2010-04-28 Mike Stump <mikestump@comcast.net>
1502 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
1504 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
1506 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
1507 record or union type with RECORD_OR_UNION_TYPE_P predicate.
1508 (lto_input_ts_type_tree_pointers): Likewise.
1509 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
1510 (lto_output_ts_type_tree_pointers): Likewise.
1512 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
1514 Uniquization of constants at the Tree level
1515 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
1516 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
1518 (tree_output_constant_def): Declare.
1519 * gimplify.c (gimplify_init_constructor): When using block copy, first
1520 uniquize the constant constructor on the RHS.
1521 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
1522 DECL_IN_CONSTANT_POOL flag.
1523 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
1524 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
1526 (assemble_variable): Deal with symbols belonging to the tree constant
1528 (get_constant_section): Add ALIGN parameter and simplify.
1529 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
1530 (assemble_constant_contents): Use the expression of the VAR_DECL.
1531 (output_constant_def_contents): Use the alignment of the VAR_DECL.
1532 (tree_output_constant_def): New global function.
1533 (mark_constant): Use the expression of the VAR_DECL.
1534 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
1536 (output_object_block): Likewise and assemble the expression.
1538 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
1540 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
1541 hash_tree, eq_tree): New tree hash table.
1542 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
1543 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
1544 lto_orig_address_remove): Reimplement.
1546 2010-04-28 Xinliang David Li <davidxl@google.com>
1549 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
1550 (compute_uninit_opnds_pos): New function.
1551 (is_non_loop_exit_postdominating): New function.
1552 (compute_control_dep_chain): New function.
1553 (find_pdom): New function.
1554 (convert_control_dep_chain_into_preds): New function.
1555 (find_predicates): New function.
1556 (find_control_equiv_block): New function.
1557 (collect_phi_def_edges): New function.
1558 (find_def_preds): New function.
1559 (find_dom): New function.
1560 (dump_predicates): New function.
1561 (get_cmp_code): New function.
1562 (is_value_included_in): New function.
1563 (find_matching_predicate_in_rest_chains): New function.
1564 (use_pred_not_overlap_with_undef_path_pred): New function.
1565 (is_use_properly_guarded): New function.
1566 (normalize_cond_1): New function.
1567 (is_and_or_or): New function.
1568 (normalize_cond): New function.
1569 (is_gcond_subset_of): New function.
1570 (is_subset_of_any): New function.
1571 (is_or_set_subset_of): New function.
1572 (is_and_set_subset_of): New function.
1573 (is_norm_cond_subset_of): New function.
1574 (is_pred_expr_subset_of): New function.
1575 (is_pred_chain_subset_of): New function.
1576 (is_included_in): New function.
1577 (is_superset_of): New function.
1578 (find_uninit_use): New function.
1579 (warn_uninitialized_phi): New function.
1580 (compute_possibly_undefined_names): New function.
1581 (ssa_undefined_value_p): New function.
1582 (execute_late_warn_uninitialized): New function.
1583 * tree-ssa.c (ssa_undefined_value_p): Removed.
1584 (warn_uninit): Changed to extern.
1585 (warn_uninitialized_phi): Removed.
1586 (warn_uninitialized_vars): Changed to extern.
1587 (execute_late_warn_uninitialized): Removed
1588 * tree-flow.h: Add new prototypes.
1589 * timevar.def: Add new time variable.
1590 * Makefile.in: Add new build file.
1592 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
1594 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
1597 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1600 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
1602 2010-04-28 Martin Jambor <mjambor@suse.cz>
1604 * cgraph.h (struct cgraph_node): New field indirect_calls.
1605 (struct cgraph_indirect_call_info): New type.
1606 (struct cgraph_edge): Removed field indirect_call. New fields
1607 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
1608 (cgraph_create_indirect_edge): Declare.
1609 (cgraph_make_edge_direct): Likewise.
1610 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
1611 * ipa-prop.h (struct ipa_param_call_note): Removed.
1612 (struct ipa_node_params): Removed field param_calls.
1613 (ipa_create_all_structures_for_iinln): Declare.
1614 * cgraph.c: Described indirect edges and uids in initial comment.
1615 (cgraph_add_edge_to_call_site_hash): New function.
1616 (cgraph_edge): Search also among the indirect edges, use
1617 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
1618 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
1619 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
1621 (initialize_inline_failed): Assign a reason to indirect edges.
1622 (cgraph_create_edge_1): New function.
1623 (cgraph_create_edge): Moved some functionality to
1624 cgraph_create_edge_1.
1625 (cgraph_create_indirect_edge): New function.
1626 (cgraph_edge_remove_callee): Add an assert checking for
1628 (cgraph_edge_remove_caller): Special-case indirect edges.
1629 (cgraph_remove_edge): Likewise.
1630 (cgraph_set_edge_callee): New function.
1631 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
1632 (cgraph_make_edge_direct): New function.
1633 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
1634 the declaration of the call statement matches.
1635 (cgraph_node_remove_callees): Special-case indirect edges.
1636 (cgraph_clone_edge): Likewise.
1637 (cgraph_clone_node): Clone also the indirect edges.
1638 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
1639 indirect_call, dump count of indirect_calls edges.
1640 * ipa-prop.c (iinlining_processed_edges): New variable.
1641 (ipa_note_param_call): Create indirect edges instead of
1642 creating notes. New parameter node.
1643 (ipa_analyze_call_uses): New parameter node, pass it on to
1644 ipa_note_param_call.
1645 (ipa_analyze_stmt_uses): Likewise.
1646 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
1647 (print_edge_addition_message): Work on edges rather than on notes.
1648 (update_call_notes_after_inlining): Likewise, renamed to
1649 update_indirect_edges_after_inlining.
1650 (ipa_create_all_structures_for_iinln): New function.
1651 (ipa_free_node_params_substructures): Do not free notes.
1652 (ipa_edge_duplication_hook): Propagate bits within
1653 iinlining_processed_edges bitmap.
1654 (ipa_node_duplication_hook): Do not duplicate notes.
1655 (free_all_ipa_structures_after_ipa_cp): Renamed to
1656 ipa_free_all_structures_after_ipa_cp.
1657 (free_all_ipa_structures_after_iinln): Renamed to
1658 ipa_free_all_structures_after_iinln.
1659 (ipa_write_param_call_note): Removed.
1660 (ipa_read_param_call_note): Removed.
1661 (ipa_write_indirect_edge_info): New function.
1662 (ipa_read_indirect_edge_info): Likewise.
1663 (ipa_write_node_info): Do not stream notes, do stream information
1665 (ipa_read_node_info): Likewise.
1666 (lto_ipa_fixup_call_notes): Removed.
1667 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
1668 * ipa-inline.c (pass_ipa_inline): Likewise.
1669 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
1670 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
1671 * tree-inline.c (copy_bb): Removed an unnecessary double check for
1673 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
1675 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
1676 (output_cgraph): Stream also indirect edges.
1677 (lto_output_edge): Added capability to stream indirect edges.
1678 (input_edge): Likewise.
1679 (input_cgraph_1): Likewise.
1680 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
1683 2010-04-28 Richard Guenther <rguenther@suse.de>
1685 PR tree-optimization/43879
1686 PR tree-optimization/43909
1687 * tree-ssa-structalias.c (struct variable_info): Add
1688 only_restrict_pointers flag.
1689 (new_var_info): Initialize it. Increment stats.total_vars here.
1690 (create_function_info_for): Do not increment stats.total_vars here.
1691 (get_function_part_constraint): Fix build with C++.
1692 (insert_into_field_list): Remove.
1693 (push_fields_onto_fieldstack): Properly merge fields.
1694 (create_variable_info_for): Split and simplify.
1695 (create_variable_info_for_1): New piece.
1696 (intra_create_variable_infos): Properly make restrict constraints
1699 2010-04-28 Richard Guenther <rguenther@suse.de>
1702 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
1704 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
1705 Jan Hubicka <hubicka@ucw.cz>
1707 * doc/invoke.texi (-Wsuggest-attribute=const,
1708 -Wsuggest-attribute=pure): Document.
1709 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
1710 (function_always_visible_to_compiler_p,
1711 suggest_attribute, warn_function_pure, warn_function_const):
1713 (check_call): Improve debug info.
1714 (analyze_function): Do not check availability.
1715 (add_new_function): Check availability.
1716 (propagate): Output warnings.
1717 (skip_function_for_local_pure_const): New function.
1718 (local_pure_const): Use it; output warnings.
1719 * common.opt (Wsuggest-attribute=const,
1720 Wsuggest-attribute=pure): New.
1722 2010-04-27 Jakub Jelinek <jakub@redhat.com>
1724 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
1725 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
1726 or DW_CFA_def_cfa_offset{,_sf}.
1728 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
1730 * tree.h: Fix truncated long macros.
1732 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
1734 * collect2.c (TARGET_64BIT): Redefine to target's default.
1735 * tlink.c: Likewise.
1736 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
1737 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
1738 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
1739 for underscoring __USER_LABEL_PREFIX__.
1740 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
1741 (SUB_LINK_ENTRY32): New.
1742 (SUB_LINK_ENTRY64): New.
1743 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
1744 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
1745 (SUB_LINK_ENTRY64): New.
1746 (SUB_LINK_ENTRY): New.
1747 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
1748 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
1749 x64 target is choosen.
1750 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
1751 * configure: Regenerated.
1752 * configure.ac (leading-mingw64-underscores): Option added.
1754 2010-04-27 Jan Hubicka <jh@suse.cz>
1756 * doc/invoke.texi (-fipa-profile): Document.
1757 * opts.c (decode_options): Enable ipa-profile at -O1.
1758 * timevar.def (TV_IPA_PROFILE): Define.
1759 * common.opt (fipa-profile): Add.
1760 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
1762 (cgraph_propagate_frequency): Handle only local ones.
1763 * tree-pass.h (pass_ipa_profile): Declare.
1764 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
1765 (pass_ipa_profile): Use TV_IPA_PROFILE.
1766 * ipa.c (ipa_profile): New function.
1767 (gate_ipa_profile): Likewise.
1768 (pass_ipa_profile): New global variable.
1769 * passes.c (pass_ipa_profile): New.
1771 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
1773 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
1775 2010-04-27 Martin Jambor <mjambor@suse.cz>
1778 * ipa.c (dissolve_same_comdat_group_list): New function.
1779 (function_and_variable_visibility): Call
1780 dissolve_same_comdat_group_list when comdat group contains external or
1782 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
1783 lists are circular and that they contain only DECL_ONE_ONLY nodes.
1785 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
1787 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
1788 (const_hash_1) <VECTOR_CST>: New case.
1789 (compare_constant) <VECTOR_CST>: Likewise.
1790 <ADDR_EXPR>: Deal with LABEL_REFs.
1791 (copy_constant) <VECTOR_CST>: New case.
1793 2010-04-27 Jan Hubicka <jh@suse.cz>
1795 * cgraph.c (cgraph_propagate_frequency): New function.
1796 * cgraph.h (cgraph_propagate_frequency): Declare.
1797 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
1798 cgraph_propagate_frequency.
1800 2010-04-27 Jakub Jelinek <jakub@redhat.com>
1802 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
1804 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
1807 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
1808 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
1809 here to determine which regs to push and how much stack to reserve.
1811 2010-04-27 Jie Zhang <jie@codesourcery.com>
1813 * doc/gimple.texi (gimple_statement_with_ops): Remove
1814 addresses_taken field.
1815 (gimple_statement_with_memory_ops): Likewise.
1817 2010-04-27 Jan Hubicka <jh@suse.cz>
1819 * tree-inline.c (eni_inlining_weights): Remove.
1820 (estimate_num_insns): Special case more builtins.
1822 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
1825 * c-typeck.c (build_binary_op): Move forward check for comparison
1826 pointer with null pointer constant and adjust the diagnostic message.
1828 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
1831 * configure.ac (gcc_cv_as_section_has_align): Set if installed
1832 binutils supports extended .section directive needed by LTO, or
1833 warn if older binutils found.
1834 (LTO_BINARY_READER): New AC_SUBST'd variable.
1835 (LTO_USE_LIBELF): Likewise.
1836 * gcc/config.gcc (lto_binary_reader): New target-specific configure
1838 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
1839 (LTO_USE_LIBELF): Likewise.
1840 * configure: Regenerate.
1842 * collect2.c (is_elf): Rename from this ...
1843 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
1844 object files in addition to ELF-formatted ones.
1845 (scan_prog_file): Caller updated. Also allow for LTO info marker
1846 symbol to be prefixed or not by an extra underscore.
1848 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
1849 * config/i386/winnt.c: Also #include lto-streamer.h
1850 (i386_pe_asm_named_section): Specify 1-byte section alignment for
1852 (i386_pe_asm_output_aligned_decl_common): Add comment.
1853 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
1855 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
1858 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
1859 Add missing earlyclobber for second alternative.
1861 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
1863 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
1864 bits for artificial defs at the top of the block.
1865 * fwprop.c (single_def_use_enter_block): Don't call it.
1867 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
1870 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
1871 instead of "$gcc_cv_objdump -T".
1872 Use "-undefined dynamic_lookup" on darwin.
1873 * gcc/configure: Regenerate.
1875 2010-04-26 Jakub Jelinek <jakub@redhat.com>
1878 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
1880 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
1882 * c-parser.c (struct c_token): Move location field up.
1883 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
1884 (struct c_declspecs): Convert typespec_word, storage_class, and
1885 default_int_p into bitfields.
1886 (struct c_declarator): Move loc field up.
1888 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
1890 * cfgloop.h (struct loop): Move can_be_parallel field up.
1891 * ipa-prop.h (struct ip_node_params): Move bitfields up.
1892 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
1894 (struct iv_cand): Convert pos field into a bitfield.
1895 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
1897 (struct _stmt_vec_info): Shuffle fields for better packing.
1899 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
1901 * varasm.c (IN_NAMED_SECTION): Remove guard.
1902 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
1903 (IN_NAMED_SECTION_P): ...this.
1904 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
1905 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
1907 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
1909 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
1910 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
1911 of shadowing it. Fix comments.
1913 2010-04-26 Jan Hubicka <jh@suse.cz>
1915 * cgraph.c (cgraph_create_node): Set node frequency to normal.
1916 (cgraph_clone_node): Copy function frequency.
1917 * cgraph.h (node_frequency): New enum
1918 (struct cgraph_node): Add.
1919 * final.c (rest_of_clean_state): Update.
1920 * lto-cgraph.c (lto_output_node): Output node frequency.
1921 (input_overwrite_node): Input node frequency.
1922 * tre-ssa-loop-ivopts (computation_cost): Update.
1923 * lto-streamer-out.c (output_function): Do not output function
1925 * predict.c (maybe_hot_frequency_p): Update and handle functions
1927 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
1929 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
1930 (compute_function_frequency): Set noreturn functions to be executed
1932 (choose_function_section): Update.
1933 * lto-streamer-in.c (input_function): Do not input function frequency.
1934 * function.c (allocate_struct_function): Do not initialize function
1936 * function.h (function_frequency): Remove.
1937 (struct function): Remove function frequency.
1938 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
1939 (try_update): Update.
1940 * tree-inline.c (initialize_cfun): Do not update function frequency.
1941 * passes.c (pass_init_dump_file): Update.
1942 * i386.c (ix86_compute_frame_layout): Update.
1943 (ix86_pad_returns): Update.
1945 2010-04-26 Jie Zhang <jie@codesourcery.com>
1947 PR tree-optimization/43833
1948 * tree-vrp.c (range_int_cst_p): New.
1949 (range_int_cst_singleton_p): New.
1950 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
1951 when both operands are constants. Use range_int_cst_p in
1954 2010-04-26 Jan Hubicka <jh@suse.cz>
1956 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
1958 2010-04-26 Richard Guenther <rguenther@suse.de>
1961 * gimple.c (gimple_decl_printable_name): Deal gracefully
1962 with a NULL DECL_NAME.
1964 2010-04-26 Richard Guenther <rguenther@suse.de>
1967 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
1968 if emitting debug information and it is either a function
1969 or a namespace decl.
1971 2010-04-26 Ira Rosen <irar@il.ibm.com>
1973 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
1974 determine if the statement is vectorizable, and a macro to access it.
1975 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
1976 Skip statements that can't be vectorized. If the analysis fails,
1977 mark the statement as unvectorizable if vectorizing basic block.
1978 (vect_compute_data_refs_alignment): Likewise.
1979 (vect_verify_datarefs_alignment): Skip statements marked as
1980 unvectorizable. Add print.
1981 (vect_analyze_group_access): Skip statements that can't be
1982 vectorized. If the analysis fails, mark the statement as
1983 unvectorizable if vectorizing basic block.
1984 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
1985 * tree-vect-stmts.c (vectorizable_store): Fix the number of
1986 generated stmts for SLP.
1987 (new_stmt_vec_info): Initialize the new field.
1988 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
1989 statements marked as unvectorizable.
1991 2010-04-25 Joseph Myers <joseph@codesourcery.com>
1993 * c-common.c (flag_isoc1x): New.
1994 (flag_isoc99): Update comment.
1995 * c-common.h (flag_isoc1x): New.
1996 (flag_isoc99): Update comment.
1997 * c-cppbuiltin.c (builtin_define_float_constants): Also define
1998 __<type>_DECIMAL_DIG__.
1999 * c-opts.c (set_std_c1x): New.
2000 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
2001 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
2002 * c.opt (-std=c1x, -std=gnu1x): New options.
2003 * doc/cpp.texi: Mention -std=c1x.
2004 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
2005 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
2006 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
2007 * doc/standards.texi: Mention C1X.
2008 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
2009 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
2010 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
2013 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
2015 * config/i386/gmon-sol2.c (_mcleanup): Change format string
2016 placeholder from 0x%x to %#x.
2017 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
2018 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
2019 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
2020 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
2021 * config/i386/i386.c (ix86_target_string): Ditto.
2022 (output_pic_addr_const): Ditto.
2023 (print_operand): Ditto.
2025 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
2027 * combine.c (find_split_point): Add third argument. Use it
2028 to find nested multiply-accumulate instructions. Adjust calls.
2029 (try_combine): Adjust call to find_split_point.
2031 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
2033 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
2035 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
2037 PR tree-optimization/41442
2038 * fold-const.c (merge_truthop_with_opposite_arm): New function.
2039 (fold_binary_loc): Call it.
2041 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
2043 * toplev.c (general_init): Set default for fdiagnostics-show-option.
2044 * opts.c (common_handle_option): Allow disabling it.
2045 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
2047 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
2049 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
2050 between modes if both types are integral.
2052 2010-04-23 Richard Guenther <rguenther@suse.de>
2054 PR tree-optimization/43572
2055 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
2057 2010-04-23 Richard Guenther <rguenther@suse.de>
2060 * tree-inline.c (tree_can_inline_p): Also check compatibility
2063 2010-04-23 Martin Jambor <mjambor@suse.cz>
2065 PR tree-optimization/43846
2066 * tree-sra.c (struct access): New flag grp_assignment_read.
2067 (build_accesses_from_assign): Set grp_assignment_read.
2068 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
2069 (enum mark_read_status): New type.
2070 (analyze_access_subtree): Propagate grp_assignment_read, create
2071 accesses also if both direct_read and root->grp_assignment_read.
2073 2010-04-23 Martin Jambor <mjambor@suse.cz>
2076 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
2077 function does not have type attributes.
2079 2010-04-23 Richard Guenther <rguenther@suse.de>
2082 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
2085 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2087 * sese.h (create_if_region_on_edge): Remove.
2089 * sese.c (create_if_region_on_edge): Make static.
2091 * tree-inline.c: Do not include ggc.h.
2093 * expr.c: Do not include ggc.h.
2095 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
2098 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
2101 * config/sh/sh.c (find_barrier): Don't emit a constant pool
2102 in the middle of insns for casesi_worker_2.
2104 2010-04-22 David Edelsohn <edelsohn@gnu.org>
2106 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
2108 2010-04-22 Ira Rosen <irar@il.ibm.com>
2110 PR tree-optimization/43842
2111 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
2112 loop unrolling in update of exit phis. Fix comment.
2113 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
2114 least two reduction statements in the loop before starting SLP
2117 2010-04-22 Nick Clifton <nickc@redhat.com>
2119 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
2121 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
2123 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
2126 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2128 * tree-parloops.c (loop_parallel_p): New argument
2129 parloop_obstack. Pass it down.
2130 (parallelize_loops): New variable parloop_obstack. Initialize it,
2131 pass it down, free it.
2133 * tree-loop-linear.c (linear_transform_loops): Pass down
2136 * tree-data-ref.h (lambda_compute_access_matrices): New argument
2137 of type struct obstack *.
2139 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
2140 scratch_obstack. Initialize it, pass down, free it.
2142 * lambda.h (lambda_loop_new): Remove.
2143 (lambda_matrix_new, lambda_matrix_inverse)
2144 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
2145 argument of type struct obstack *.
2147 * lambda-trans.c (lambda_trans_matrix_new): New argument
2148 lambda_obstack. Pass it down, use obstack allocation for ret.
2149 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
2152 * lambda-mat.c (lambda_matrix_get_column)
2153 (lambda_matrix_project_to_null): Remove.
2154 (lambda_matrix_new): New argument lambda_obstack. Use obstack
2156 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
2159 * lambda-code.c (lambda_loop_new): New function.
2160 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
2161 (lambda_compute_auxillary_space, lambda_compute_target_space)
2162 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
2163 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
2164 (build_access_matrix): New argument lambda_obstack. Use obstack
2166 (lambda_compute_step_signs, lambda_compute_access_matrices): New
2167 argument lambda_obstack. Pass it down.
2169 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
2171 * optabs.h (expand_widening_mult): Declare.
2173 2010-04-22 Richard Guenther <rguenther@suse.de>
2175 PR tree-optimization/43845
2176 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
2177 lookup the CALL_EXPR function and arguments.
2179 2010-04-22 Nick Clifton <nickc@redhat.com>
2181 * config/stormy16/stormy16.c
2182 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
2183 * config/stormy16/stormy16.h: Tidy up formatting.
2184 (DONT_USE_BUILTIN_SETJMP): Remove definition.
2185 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
2186 (ineqbranchsi): Delete pattern.
2187 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
2188 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
2189 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
2190 stormy16-lib2-ucmpsi2.c.
2192 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
2194 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
2195 df_simulate_find_noclobber_defs as appropriate. Keep track of an
2196 extra set merge_set_noclobber, and use it to relax the final test
2198 * df.h (df_simulate_find_noclobber_defs): Declare.
2199 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
2201 (df_simulate_find_noclobber_defs): New function.
2203 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
2205 * config/i386/i386.md: Use {} around multi-line preparation statements.
2207 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2209 * c-tree.h (push_init_level, pop_init_level, set_init_index)
2210 (process_init_element): New argument of type struct obstack *.
2212 * c-typeck.c (push_init_level, pop_init_level, set_designator)
2213 (set_init_index, set_init_label, set_nonincremental_init)
2214 (set_nonincremental_init_from_string, find_init_member)
2215 (output_init_element, output_pending_init_elements)
2216 (process_init_element): New argument braced_init_obstack. Pass it
2218 (push_range_stack, add_pending_init): New argument
2219 braced_init_obstack. Use obstack allocation.
2221 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
2222 braced_init_obstack. Pass it down.
2223 (c_parser_braced_init): New variables ret, braced_init_obstack.
2224 Initialize obstack, pass it down and finally free it.
2226 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
2229 * tree-pass.h (pass_optimize_widening_mul): Declare.
2230 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
2231 gate_optimize_widening_mul): New static functions.
2232 (pass_optimize_widening_mul): New.
2233 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
2234 <case MULT_EXPR>: Remove support for widening multiplies.
2235 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
2236 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
2237 simplify_gen_unary rather than directly building extensions.
2238 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
2240 * expmed.c (expand_widening_mult): New function.
2241 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
2243 2010-04-21 Jan Hubicka <jh@suse.cz>
2245 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
2246 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
2247 * lto-wpa-fixup.c: Remove.
2248 * Makefile.in (lto-wpa-fixup.o): Remove.
2249 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
2250 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
2251 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
2253 2010-04-21 Jan Hubicka <jh@suse.cz>
2255 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
2256 add write_optimization_summary, read_optimization_summary.
2257 (ipa_write_summaries_of_cgraph_node_set): Remove.
2258 (ipa_write_optimization_summaries): Declare.
2259 (ipa_read_optimization_summaries): Declare.
2260 * ipa-cp.c (pass_ipa_cp): Update.
2261 * ipa-reference.c (pass_ipa_reference): Update.
2262 * ipa-pure-const.c (pass_ipa_pure_const): Update.
2263 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
2265 * ipa-inline.c (pass_ipa_inline): Update.
2266 * ipa.c (pass_ipa_whole_program): Update.
2267 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
2268 * passes.c (ipa_write_summaries_1): Do not test wpa.
2269 (ipa_write_optimization_summaries_1): New.
2270 (ipa_write_optimization_summaries): New.
2271 (ipa_read_summaries): Do not test ltrans.
2272 (ipa_read_optimization_summaries_1): New.
2273 (ipa_read_optimization_summaries): New.
2275 2010-04-21 Jan Hubicka <jh@suse.cz>
2277 * lto-cgraph.c (lto_output_node): Do not output comdat groups
2279 (output_cgraph): Do not arrange comdat groups for boundary nodes.
2281 2010-04-21 Jakub Jelinek <jakub@redhat.com>
2284 * dwarf2out.c (add_name_and_src_coords_attributes): Add
2285 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
2287 2010-04-21 Jan Hubicka <jh@suse.cz>
2289 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
2291 2010-04-21 Jan Hubicka <jh@suse.cz>
2293 * varpool.c (decide_is_variable_needed): Variable is always needed
2296 2010-04-21 Jan Hubicka <jh@suse.cz>
2298 * opts.c (decode_options): Enable pure-const pass for whopr.
2300 2010-04-21 Jan Hubicka <jh@suse.cz>
2302 * cgraph.c (dump_cgraph_node): Dump also assembler name.
2303 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
2305 (cgraph_decide_inlining): Do not expect callee to be removed in all
2308 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
2310 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
2312 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
2314 * config/i386/i386.md (x86_shrd): Add athlon_decode and
2315 amdfam10_decode attributes.
2317 2010-04-21 Jakub Jelinek <jakub@redhat.com>
2320 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
2321 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
2322 (lower_copyprivate_clauses): Use private var in outer
2323 context instead of original var. Make sure the types
2324 are correct for VLAs.
2326 2010-04-21 Richard Guenther <rguenther@suse.de>
2328 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
2329 to non-pointer objects.
2331 2010-04-21 Jakub Jelinek <jakub@redhat.com>
2333 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
2334 last chain entry if it starts with the still current label.
2335 (add_location_or_const_value_attribute): Check that
2336 loc_list->first->next is NULL instead of comparing ->first with ->last.
2337 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
2338 to add_var_loc_to_decl.
2340 * dwarf2out.c (output_call_frame_info): For dw_cie_version
2341 >= 4 add also address size and segment size fields into CIE header.
2343 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
2344 long as address size is the same as sizeof (void *) and
2346 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
2347 address size or segment size is unexpected, return DW_EH_PE_omit.
2348 (classify_object_over_fdes): If get_cie_encoding returned
2349 DW_EH_PE_omit, return -1.
2350 (init_object): If classify_object_over_fdes returned -1,
2351 pretend there were no FDEs at all.
2353 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
2355 * config/i386/i386.md (bswap<mode>2): Macroize expander from
2356 bswap{si,di}2 using SWI48 mode iterator.
2357 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
2358 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
2359 set modrm attribute of bswap insn to 0 and remove length attribute.
2360 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
2361 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
2362 set mode attribute to <MODE> and remove length attribute.
2364 2010-04-20 James E. Wilson <wilson@codesourcery.com>
2366 PR rtl-optimization/43520
2367 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
2368 zero available registers.
2370 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2372 * builtins.c (fold_builtin_cproj): Fold more cases.
2374 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2376 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
2377 (fold_builtin_1): Fold builtin cproj.
2378 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
2379 Use ATTR_CONST_NOTHROW_LIST.
2381 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
2383 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
2384 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
2385 ffsi2_no_cmove for !TARGET_CMOVE.
2386 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
2387 (ffssi2): Remove expander.
2388 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
2390 (ctz<mode>2): Ditto from ctz{si,di}2.
2391 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
2393 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
2396 2010-04-20 Jakub Jelinek <jakub@redhat.com>
2398 * dwarf2out.c (AT_linkage_name): Define.
2399 (clone_as_declaration): Handle DW_AT_linkage_name.
2400 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
2401 of DW_AT_MIPS_linkage_name.
2402 (move_linkage_attr): Likewise.
2403 (dwarf2out_finish): Likewise.
2405 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
2408 * fold-const.c (fold_comparison): New folding rule.
2410 2010-04-20 Anatoly Sokolov <aesok@post.ru>
2412 * double-int.h (double_int_setbit): Declare.
2413 * double-int.c (double_int_setbit): New function.
2414 * rtl.h (immed_double_int_const): Declare.
2415 * emit-rtl.c (immed_double_int_const): New function.
2416 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
2417 and immed_double_int_const functions.
2418 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
2419 expand_copysign_bit): (Ditto.).
2420 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
2421 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
2422 * dojump.c (prefer_and_bit_test): (Ditto.).
2423 * expr.c (convert_modes, reduce_to_bit_field_precision,
2424 const_vector_from_tree): (Ditto.).
2425 * expmed.c (mask_rtx, lshift_value): (Ditto.).
2427 2010-04-20 Jan Hubicka <jh@suse.cz>
2429 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
2430 (dump_cgraph_node): Dump new flags.
2431 * cgraph.h (struct cgraph_node): Add flags
2432 reachable_from_other_partition and in_other_partition.
2433 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
2434 other partition can not be removed.
2435 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
2436 the other partition must be output; silence sanity checking on
2437 leaking functions bodies from other paritition.
2438 * lto-cgraph.c (reachable_from_other_partition_p): New function.
2439 (lto_output_node): Output new flags; do not sanity check that inline
2440 clones are output; drop lto_forced_extern_inline_p code; do not mock
2441 visibility flags at partition boundaries.
2442 (add_node_to): New function.
2443 (output_cgraph): Use it to sort functions so masters appear before
2445 (input_overwrite_node): Input new flags.
2446 * passes.c (ipa_write_summaries): Do not call
2447 lto_new_extern_inline_states.
2448 * lto-section-out.c (forced_extern_inline,
2449 lto_new_extern_inline_states lto_delete_extern_inline_states,
2450 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
2451 * lto-streamer.h (lto_new_extern_inline_states,
2452 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
2453 lto_forced_extern_inline_p): Kill.
2455 2010-04-20 Richard Guenther <rguenther@suse.de>
2457 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
2458 from vars that can have pointers.
2459 (process_constraint): Dump useless constraints.
2461 2010-04-20 Richard Guenther <rguenther@suse.de>
2463 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
2464 (dump_sa_points_to_info): Remove asserts.
2465 (init_base_vars): nothing_id isn't an escape point nor does it
2468 2010-04-20 Jakub Jelinek <jakub@redhat.com>
2470 * tree.h (TYPE_REF_IS_RVALUE): Define.
2471 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
2472 should_move_die_to_comdat, prune_unused_types_walk): Handle
2473 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
2474 (modified_type_die, gen_reference_type_die): Emit
2475 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
2476 if TYPE_REF_IS_RVALUE and -gdwarf-4.
2478 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2481 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
2482 calls for -fpic -m31 if they have been sibcall optimized.
2484 2010-04-19 James E. Wilson <wilson@codesourcery.com>
2486 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
2487 ar.lc fixed and call-used.
2489 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
2491 2010-04-19 Jan Hubicka <jh@suse.cz>
2493 * opts.c (decode_options): Disable whpr incompatible passes.
2494 * lto/lto.c (lto_1_to_1_map): Skip clones.
2495 (read_cgraph_and_symbols): Do not mark everything as needed.
2496 (do_whole_program_analysis): Do map only after optimizing;
2497 set proper cgraph_state; use passmanager.
2499 2010-04-19 DJ Delorie <dj@redhat.com>
2501 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
2502 POINTER_PLUS_EXPR and fix them.
2504 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
2506 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
2507 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
2508 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
2509 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
2510 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
2511 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
2512 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
2513 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
2514 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
2515 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
2516 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
2518 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
2520 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
2521 (check_cond_move_block): Likewise.
2522 (cond_move_process_if_block): Likewise.
2523 (noce_find_if_block): Improve formatting.
2524 (find_if_header): Pass 0 to memset and tweak conditions.
2525 (cond_exec_find_if_block): Fix long lines and tweak conditions.
2527 2010-04-19 Jakub Jelinek <jakub@redhat.com>
2529 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
2533 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
2534 with non-local decl doesn't need chain.
2536 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
2538 * ira-color.c (allocno_reload_assign): Avoid accumulating
2539 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
2541 2010-04-19 Martin Jambor <mjambor@suse.cz>
2543 * gimple.h (create_tmp_reg): Declare.
2544 * gimplify.c (create_tmp_reg): New function.
2545 (gimplify_return_expr): Use create_tmp_reg.
2546 (gimplify_omp_atomic): Likewise.
2547 (gimple_regimplify_operands): Likewise.
2548 * tree-dfa.c (make_rename_temp): Likewise.
2549 * tree-predcom.c (predcom_tmp_var): Likewise.
2550 (reassociate_to_the_same_stmt): Likewise.
2551 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
2552 (get_replaced_param_substitute): Likewise.
2553 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
2554 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
2555 * tree-ssa-pre.c (get_representative_for): Likewise.
2556 (create_expression_by_pieces): Likewise.
2557 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
2558 (create_tailcall_accumulator): Likewise.
2560 2010-04-19 Martin Jambor <mjambor@suse.cz>
2562 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
2564 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
2566 2010-04-19 Richard Guenther <rguenther@suse.de>
2568 PR tree-optimization/43796
2569 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
2570 from SCEV in the lattice.
2571 (vrp_visit_phi_node): Dump change.
2573 2010-04-19 Richard Guenther <rguenther@suse.de>
2575 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
2576 * configure: Re-generated.
2578 2010-04-19 Richard Guenther <rguenther@suse.de>
2580 PR tree-optimization/43783
2581 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
2582 constant ARRAY_REF operands two and three if possible.
2584 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
2587 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
2589 2010-04-19 Jie Zhang <jie@codesourcery.com>
2592 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
2594 2010-04-19 Ira Rosen <irar@il.ibm.com>
2596 PR tree-optimization/37027
2597 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
2598 and macro to access it.
2599 (vectorizable_reduction): Add argument.
2600 (vect_get_slp_defs): Likewise.
2601 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
2602 statements for possible use in SLP.
2603 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
2604 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
2605 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
2607 (vectorizable_reduction): Likewise.
2608 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
2610 (vectorizable_type_demotion, vectorizable_type_promotion,
2611 vectorizable_store): Likewise.
2612 (vect_analyze_stmt): Update call to vectorizable_reduction.
2613 (vect_transform_stmt): Likewise.
2614 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
2615 (vect_build_slp_tree): Fix indentation. Check that there are no loads
2616 from different interleaving chains in same node.
2617 (vect_slp_rearrange_stmts): New function.
2618 (vect_supported_load_permutation_p): Allow load permutations for
2619 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
2620 inside SLP nodes if necessary.
2621 (vect_analyze_slp_instance): Handle reductions.
2622 (vect_analyze_slp): Try to build SLP instances originating from groups
2624 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
2625 (vect_get_constant_vectors): Create initial vectors for reductions
2626 according to reduction code. Add new argument.
2627 (vect_get_slp_defs): Add new argument, pass it to
2628 vect_get_constant_vectors.
2629 (vect_schedule_slp_instance): Remove SLP tree root statements.
2631 2010-04-19 Jakub Jelinek <jakub@redhat.com>
2633 * tree.h (ENUM_IS_SCOPED): Define.
2634 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
2635 for ENUM_IS_SCOPED enums.
2637 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
2639 * fold-const.c (fold_comparison): Use ssizetype.
2640 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2641 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
2642 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
2643 * tree-object-size.c (compute_object_sizes): Use size_type_node.
2645 * tree.h (initialize_sizetypes): Remove parameter.
2646 (build_common_tree_nodes): Remove second parameter.
2647 * stor-layout.c (initialize_sizetypes): Remove parameter.
2648 Always create an unsigned type.
2649 (set_sizetype): Assert that the passed type is unsigned and simplify.
2650 * tree.c (build_common_tree_nodes): Remove second parameter.
2651 Adjust call to initialize_sizetypes.
2652 * c-decl.c (c_init_decl_processing): Remove second argument in call to
2653 build_common_tree_nodes.
2655 2010-04-18 Matthias Klose <doko@ubuntu.com>
2657 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
2659 2010-04-18 Ira Rosen <irar@il.ibm.com>
2661 PR tree-optimization/43771
2662 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
2663 load permutation doesn't have gaps.
2665 2010-04-18 Jan Hubicka <jh@suse.cz>
2667 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
2668 (sse_prologue_save_insn expander): Use new pattern.
2669 (sse_prologue_save_insn1): New pattern and splitter.
2670 (sse_prologue_save_insn): Update to deal also with 64bit aligned
2672 * i386.c (setup_incoming_varargs_64): Do not compute jump
2674 (ix86_gimplify_va_arg): Update alignment needed.
2675 (ix86_local_alignment): Do not align all local arrays to 128bit.
2677 2010-04-17 Jan Hubicka <jh@suse.cz>
2679 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
2681 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
2683 * arm.md (negdi2): Remove redundant code to force values into a
2686 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
2688 * arm/bpabi.S: Add EABI alignment attributes to objects.
2689 * arm/bpabi-v6m.S: Likewise.
2690 * arm/crti.asm: Likewise.
2691 * arm/crtn.asm: Likewise.
2692 * arm/lib1funcs.asm: Likewise.
2693 * arm/libunwind.S: Likewise.
2695 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
2697 * arm-protos.h (tune_params): New structure.
2698 * arm.c (current_tune): New variable.
2699 (arm_constant_limit): Delete.
2700 (struct processors): Add pointer to the tune parameters.
2701 (arm_slowmul_tune): New tuning option.
2702 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
2703 (all_cores): Adjust to pick up the tuning model.
2704 (arm_constant_limit): New function.
2705 (arm_override_options): Select the appropriate tuning model. Delete
2706 initialization of arm_const_limit.
2707 (arm_split_constant): Use the new constant-limit model.
2708 (arm_rtx_costs): Pick up the current tuning model.
2709 * arm.md (is_strongarm, is_xscale): Delete.
2710 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
2711 for Xscale variant architectures.
2712 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
2714 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2716 * config/arm/arm.c (arm_gen_constant): Remove unused variable
2718 (arm_rtx_costs_1): Remove unused variable extra_cost.
2719 (arm_unwind_emit_set): Use variable offset.
2720 (thumb1_output_casesi): Remove unused variable flags.
2722 2010-04-16 Jeff Law <law@redhat.com>
2724 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
2725 needing assignment rather than doing a two-phase assignment. Remove
2726 unused variable 'm'.
2728 2010-04-16 Jakub Jelinek <jakub@redhat.com>
2731 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
2733 2010-04-16 Doug Kwan <dougkwan@google.com>
2735 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
2736 (next_operand_entry_id): New static variable.
2737 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
2738 (add_to_ops_vec): Assigned unique ID to operand entry.
2739 (struct oecount_s): New field ID.
2740 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
2741 (undistribute_ops_list): Assign unique IDs to oecounts.
2742 (init_reassoc): reset next_operand_entry_id.
2744 2010-04-16 Doug Kwan <dougkwan@google.com>
2746 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
2747 missing left parenthesis.
2749 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
2751 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
2752 *btdi_rex64 using SWI48 mode iterator.
2753 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
2754 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
2755 *jcc_btdi_mask_rex64.
2757 2010-04-16 Anatoly Sokolov <aesok@post.ru>
2759 * double-int.h (tree_to_double_int): Convert to macro.
2760 * double-int.c (tree_to_double_int): Remove.
2762 2010-04-16 Jakub Jelinek <jakub@redhat.com>
2765 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
2766 with want_address 2 and in case a single element list might be
2767 possible, call it again with want_address 0.
2769 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2771 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
2772 case 'W' print operands for HI mode.
2773 * config/h8300/h8300.h (Y0, Y2) : New constraints.
2774 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
2775 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
2776 * config/h8300/predicate.md (bit_register_indirect_operand): New.
2778 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
2780 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
2781 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
2782 #xx:3 and #xx:4 mode.
2784 * config/h8300/h8300.md (inverted load with HImode dest): Add
2785 support for H8300SX.
2787 * config/h8300/predicate.md (bit_operand): Allow immediate values that
2788 satisfy 'U' constraint.
2790 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2792 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
2793 * configure: Regenerate.
2794 * config.in: Regenerate.
2795 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
2798 2010-04-16 Richard Guenther <rguenther@suse.de>
2800 * tree.h (struct tree_decl_minimal): Move pt_uid ...
2801 (struct tree_decl_common): ... here.
2802 (DECL_PT_UID): Adjust.
2803 (SET_DECL_PT_UID): Likewise.
2804 (DECL_PT_UID_SET_P): Likewise.
2806 2010-04-16 Richard Guenther <rguenther@suse.de>
2808 PR tree-optimization/43572
2809 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
2810 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
2811 * tree-flow.h (is_call_clobbered): Remove.
2812 * tree-flow-inline.h (is_call_clobbered): Likewise.
2813 * tree-dfa.c (dump_variable): Do not dump call clobber state.
2814 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
2815 (execute_return_slot_opt): Adjust.
2816 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
2817 check for call clobbered vars here.
2818 (find_tail_calls): Move tailcall verification to the
2821 2010-04-16 Diego Novillo <dnovillo@google.com>
2823 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
2825 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
2828 * config/arm/arm.md (cbranchqi4): New pattern.
2829 * config/arm/predicates.md (const0_operand,
2830 cbranchqi4_comparison_operator): New predicates.
2832 2010-04-16 Richard Guenther <rguenther@suse.de>
2834 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
2835 (dump_gimple_stmt): Likewise.
2837 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
2839 * recog.h (struct recog_data): New field is_operator.
2840 (struct insn_operand_data): New field is_operator.
2841 * recog.c (extract_insn): Set recog_data.is_operator.
2842 * genoutput.c (output_operand_data): Emit code to set the
2844 * reload.c (find_reloads): Use it rather than testing for an
2845 empty constraint string.
2848 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
2849 If the previous insn is a cbranchsi4_insn with the same arguments,
2850 omit the compare instruction.
2852 * config/arm/arm.md (addsi3_cbranch): If destination is a high
2853 register, inputs must be low registers and we need a low register
2854 scratch. Handle alternative 2 like alternative 3.
2856 2010-04-16 Jakub Jelinek <jakub@redhat.com>
2858 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
2859 don't call get_addr on both. If one expression is a VALUE and
2860 the other a REG, check VALUE's locs if the REG isn't among them.
2862 2010-04-16 Christian Bruel <christian.bruel@st.com>
2864 * config/sh/sh.h (sh_frame_pointer_required): New function.
2865 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
2866 (flag_omit_frame_pointer) Set.
2867 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
2868 (rounded_frame_size): Adjust size with outgoing_args_size.
2869 (sh_set_return_address): Must return from stack pointer.
2870 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
2871 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
2872 (ACCUMULATE_OUTGOING_ARGS): Define.
2873 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
2874 * gcc/config/sh/sh.opt: (maccumulate-outgoing-args): New option.
2876 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
2879 * config/sh/sh.c (sh_legitimize_reload_address): Use
2880 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
2881 Remove a unneeded check for offset_base.
2883 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
2885 * configure: Regenerated.
2887 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2889 * config/s390/s390.c (s390_call_save_register_used): Switch back
2890 to HARD_REGNO_NREGS.
2892 2010-04-15 Richard Guenther <rguenther@suse.de>
2894 * alias.c (alias_set_subset_of): Handle alias-set zero
2897 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
2898 Julian Brown <julian@codesourcery.com>
2900 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
2901 alternatives according to use of high and low regs.
2902 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
2903 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
2904 optimizing for size on Thumb-2.
2906 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
2908 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
2910 2010-04-15 Richard Guenther <rguenther@suse.de>
2912 * tree-ssa-structalias.c (struct variable_info): Add
2914 (new_var_info): Initialize it.
2915 (dump_constraints): Support printing last added constraints.
2916 (debug_constraints): Adjust.
2917 (dump_constraint_graph): Likewise.
2918 (make_heapvar_for): Check for NULL cfun.
2919 (get_function_part_constraint): New function.
2920 (get_fi_for_callee): Likewise.
2921 (find_func_aliases): Properly implement IPA PTA constraints.
2922 (process_ipa_clobber): New function.
2923 (find_func_clobbers): Likewise.
2924 (insert_into_field_list_sorted): Remove.
2925 (create_function_info_for): Properly allocate vars for IPA mode.
2926 Do not use insert_into_field_list_sorted.
2927 (create_variable_info_for): Properly generate constraints for
2928 global vars in IPA mode.
2929 (dump_solution_for_var): Always dump the solution.
2930 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
2931 (find_what_var_points_to): Adjust.
2932 (pt_solution_set): Change.
2933 (pt_solution_ior_into): New function.
2934 (pt_solution_empty_p): Export.
2935 (pt_solution_includes_global): Adjust.
2936 (pt_solution_includes_1): Likewise.
2937 (pt_solutions_intersect_1): Likewise.
2938 (dump_sa_points_to_info): Check some invariants.
2939 (solve_constraints): Move constraint dumping ...
2940 (compute_points_to_sets): ... here.
2941 (ipa_pta_execute): ... and here.
2942 (compute_may_aliases): Do not re-compute points-to info
2943 locally if IPA info is available.
2944 (ipa_escaped_pt): New global var.
2945 (ipa_pta_execute): Properly implement IPA PTA.
2946 * tree-into-ssa.c (dump_decl_set): Support dumping
2947 decls not in referenced-vars.
2948 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
2949 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
2950 (dump_points_to_solution): Likewise.
2951 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
2952 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
2953 (remap_gimple_stmt): Reset call clobber/use information if necessary.
2954 (copy_decl_to_var): Copy DECL_PT_UID.
2955 (copy_result_decl_to_var): Likewise.
2956 * tree.c (make_node_stat): Initialize DECL_PT_UID.
2957 (copy_node_stat): Copy it.
2958 * tree.h (DECL_PT_UID): New macro.
2959 (SET_DECL_PT_UID): Likewise.
2960 (DECL_PT_UID_SET_P): Likewise.
2961 (struct tree_decl_minimal): Add pt_uid member.
2962 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
2963 (pt_solution_empty_p): Declare.
2964 (pt_solution_set): Adjust.
2965 (ipa_escaped_pt): Declare.
2966 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
2967 * gimple-pretty-print.c (pp_points_to_solution): New function.
2968 (dump_gimple_call): Dump call clobber/use information.
2969 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
2970 * tree-pass.h (TDF_ALIAS): New dump option.
2971 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
2972 * doc/invoke.texi (-fipa-pta): Update documentation.
2974 2010-04-15 Richard Guenther <rguenther@suse.de>
2976 * Makefile.in (OBJS-common): Add gimple-fold.o.
2977 (gimple-fold.o): New rule.
2978 * tree.h (maybe_fold_offset_to_reference,
2979 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
2981 * gimple.h: ... here.
2982 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
2983 may_propagate_address_into_dereference): Move prototypes ...
2984 * gimple.h: ... here.
2985 * tree-ssa-ccp.c (get_symbol_constant_value,
2986 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
2987 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
2988 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
2989 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
2990 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
2991 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
2992 gimplify_and_update_call_from_tree): Move ...
2993 * gimple-fold.c: ... here. New file.
2994 (ccp_fold_builtin): Rename to ...
2995 (gimple_fold_builtin): ... this.
2996 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
2998 2010-04-15 Richard Guenther <rguenther@suse.de>
3000 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
3001 fit_double_type, force_fit_type_double, add_double_with_sign,
3002 neg_double, mul_double_with_sign, lshift_double, rshift_double,
3003 lrotate_double, rrotate_double, div_and_round_double): Move ...
3004 * double-int.c: ... here.
3005 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
3006 add_double, neg_double, mul_double_with_sign, mul_double,
3007 lshift_double, rshift_double, lrotate_double, rrotate_double,
3008 div_and_round_double): Move prototypes ...
3009 * double-int.h: ... here.
3011 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
3014 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
3015 matching constraints to ensure inputs match the output.
3017 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
3020 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
3021 in an input-only operand.
3023 2010-04-15 Anatoly Sokolov <aesok@post.ru>
3025 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
3026 (double_int_not, double_int_lshift, double_int_rshift): Declare.
3027 (double_int_negative_p): Convert to static inline function.
3028 * double-int.c (double_int_lshift, double_int_lshift): New functions.
3029 (double_int_negative_p): Remove.
3030 * tree.h (lshift_double, rshift_double):
3031 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
3032 * fold-const.c (fold_convert_const_int_from_real,
3033 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
3034 (lshift_double): Change type of arith argument to bool.
3035 (rshift_double): Change type of arith argument to bool. Correct
3037 * expmed.c (mask_rtx, lshift_value): (Ditto.).
3039 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
3042 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
3043 at the start and end of the then/else blocks, and omit them from the
3045 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
3046 argument; all callers changed. Pass zero to old_insns_match_p instead.
3047 (flow_find_head_matching_sequence): New function.
3048 (old_insns_match_p): Check REG_EH_REGION notes for calls.
3049 * basic-block.h (flow_find_cross_jump,
3050 flow_find_head_matching_sequence): Declare functions.
3052 2010-04-14 Jason Merrill <jason@redhat.com>
3055 * c-common.c (attribute_takes_identifier_p): New fn.
3056 * c-common.h: Declare it.
3058 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
3060 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
3062 (*udivmod<mode>4): Ditto.
3064 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
3066 * config/i386/i386.md (maxmin_int): Rename code attribute from
3067 maxminiprefix and update all users.
3068 (maxmin_float): Ditto from maxminfprefix.
3069 (logic): Ditto from logicprefix.
3070 (absneg_mnemonic): Ditto from absnegprefix.
3071 * config/i386/mmx.md: Update all users of maxminiprefix,
3072 maxminfprefix and logicprefix for rename.
3073 * config/i386/sse.md: Ditto.
3074 * config/i386/sync.md (sync_<code><mode>): Update for
3077 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
3080 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
3081 warnings converted to errors.
3083 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
3085 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
3086 used insn_type variable.
3087 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
3088 to avoid set-but-not-used warning.
3090 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
3092 * df-core.c (df_ref_debug): Change format string placeholder
3094 * dwarf2asm.c (dw2_asm_output_data_raw,
3095 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
3096 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
3097 * dwarf2out.c (output_cfi, output_cfi_directive,
3098 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
3099 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
3101 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
3102 * print-rtl.c (print_rtx): Ditto.
3104 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3107 * builtins.c (expand_builtin_pow_root): New function to expand pow
3108 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
3109 series of sqrt and cbrt calls under -ffast-math.
3110 (expand_builtin_pow): Call it.
3112 2010-04-14 Michael Matz <matz@suse.de>
3114 PR tree-optimization/42963
3115 * tree-cfg.c (touched_switch_bbs): New static variable.
3116 (group_case_labels_stmt): New function broken out from ...
3117 (group_case_labels): ... here, use the above.
3118 (start_recording_case_labels): Allocate touched_switch_bbs.
3119 (end_recording_case_labels): Deallocate it, call
3120 group_case_labels_stmt.
3121 (gimple_redirect_edge_and_branch): Remember index of affected BB.
3123 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
3125 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
3128 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
3130 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
3132 2010-04-13 Jan Hubicka <jh@suse.cz>
3134 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
3135 of optimized out static functions.
3136 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
3137 cost computation. Also sanity check for overflows.
3138 (update_caller_keys): Update cgraph_edge_badness call; properly
3139 update fibheap and sanity check that it is up to date.
3140 (add_new_edges_to_heap): Update cgraph_edge_badness.
3141 (cgraph_decide_inlining_of_small_function): Likewise;
3142 add sanity checking that badness in heap is up to date;
3143 improve dumping of reason; Update badness of calls to the
3144 offline copy of function currently inlined; dump badness
3145 of functions not inlined because of unit growth limits.
3147 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
3150 * c-common.c (pointer_int_sum): Disregard overflow that occured only
3151 because of sign-extension change when converting to sizetype here...
3152 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
3154 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
3155 the folding to constants. Remove redundant final conversion.
3156 (fold_binary) <associate>: Do not associate if the re-association of
3157 constants alone overflows.
3158 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
3159 to the end of the list.
3160 (multiple_of_p) <COND_EXPR>: New case.
3162 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3164 * opt-functions.awk (opt_sanitized_name): New.
3166 * optc-gen.awk: Use it
3167 * opth-gen.awk: Use it.
3169 2010-04-13 Martin Jambor <mjambor@suse.cz>
3171 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
3172 (sra_modify_assign): Delete stmts loading dead data even if racc has no
3173 children. Call replace_uses_with_default_def_ssa_name to handle
3176 2010-04-13 Michael Matz <matz@suse.de>
3179 * builtins.c (expand_builtin_interclass_mathfn): Also create
3180 a register if the predicate doesn't match.
3182 2010-04-13 Diego Novillo <dnovillo@google.com>
3184 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
3185 * c-pch.c: Include timevar.h.
3186 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
3187 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
3188 * ggc-common.c: Include timevar.h.
3189 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
3190 * timevar.def (TV_PCH_SAVE): Define.
3191 (TV_PCH_CPP_SAVE): Define.
3192 (TV_PCH_PTR_REALLOC): Define.
3193 (TV_PCH_PTR_SORT): Define.
3194 (TV_PCH_RESTORE): Define.
3195 (TV_PCH_CPP_RESTORE): Define.
3197 2010-04-13 Michael Matz <matz@suse.de>
3199 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
3201 (can_reassociate_p): New function.
3202 (break_up_subtract_bb, reassociate_bb): Use it.
3204 2010-04-13 Richard Guenther <rguenther@suse.de>
3207 * builtins.c (c_readstr): Fix assert.
3209 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
3211 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
3212 when generating cltd insn.
3214 (*ashl<mode>3_1): Remove special handling for register operand 2.
3215 (*ashlsi3_1_zext): Ditto.
3216 (*ashlhi3_1): Ditto.
3217 (*ashlhi3_1_lea): Ditto.
3218 (*ashlqi3_1): Ditto.
3219 (*ashlqi3_1_lea): Ditto.
3220 (*<shiftrt_insn><mode>3_1): Ditto.
3221 (*<shiftrt_insn>si3_1_zext): Ditto.
3222 (*<shiftrt_insn>qi3_1_slp): Ditto.
3223 (*<rotate_insn><mode>3_1): Ditto.
3224 (*<rotate_insn>si3_1_zext): Ditto.
3225 (*<rotate_insn>qi3_1_slp): Ditto.
3227 2010-04-13 Richard Guenther <rguenther@suse.de>
3229 * tree-ssa-structalias.c (callused_id): Remove.
3230 (call_stmt_vars): New.
3231 (get_call_vi): Likewise.
3232 (lookup_call_use_vi): Likewise.
3233 (lookup_call_clobber_vi): Likewise.
3234 (get_call_use_vi): Likewise.
3235 (get_call_clobber_vi): Likewise.
3236 (make_transitive_closure_constraints): Likewise.
3237 (handle_const_call): Adjust to do per-call call-used handling.
3238 (handle_pure_call): Likewise.
3239 (find_what_var_points_to): Remove general callused handling.
3240 (init_base_vars): Likewise.
3241 (init_alias_vars): Initialize call_stmt_vars.
3242 (compute_points_to_sets): Process call-used and call-clobbered
3243 vars for call statements.
3244 (delete_points_to_sets): Free call_stmt_vars.
3246 2010-04-13 Richard Guenther <rguenther@suse.de>
3248 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
3249 Only add RW dependence for dependence distance zero.
3250 Adjust maximal vectorization factor according to dependences.
3251 Move alignment handling ...
3252 (vect_find_same_alignment_drs): ... here. New function.
3253 (vect_analyze_data_ref_dependences): Adjust.
3254 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
3255 (vect_analyze_data_refs): Adjust minimal vectorization factor
3256 according to data references.
3257 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
3258 dependences before determining the vectorization factor.
3259 Analyze alignment after determining the vectorization factor.
3260 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
3261 dependences before alignment.
3262 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
3264 (vect_analyze_data_refs): Likewise.
3265 (MAX_VECTORIZATION_FACTOR): New define.
3267 2010-04-13 Duncan Sands <baldrick@free.fr>
3269 * except.h (lang_eh_type_covers): Remove.
3270 * except.c (lang_eh_type_covers): Likewise.
3272 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3273 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3275 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
3276 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
3277 UNITS_PER_LONG where it is ABI relevant.
3278 (s390_return_addr_rtx): Likewise.
3279 (s390_back_chain_rtx): Likewise.
3280 (s390_frame_area): Likewise.
3281 (s390_frame_info): Likewise.
3282 (s390_initial_elimination_offset): Likewise.
3283 (save_gprs): Likewise.
3284 (s390_emit_prologue): Likewise.
3285 (s390_emit_epilogue): Likewise.
3286 (s390_function_arg_advance): Likewise.
3287 (s390_function_arg): Likewise.
3288 (s390_va_start): Likewise.
3289 (s390_gimplify_va_arg): Likewise.
3290 (s390_function_profiler): Likewise.
3291 (s390_optimize_prologue): Likewise.
3292 (s390_rtx_costs): Likewise.
3293 (s390_secondary_reload): Likewise.
3294 (s390_promote_function_mode): Likewise.
3295 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
3296 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
3297 registers available.
3298 (s390_unwind_word_mode): New function.
3299 (s390_function_value): Split 64 bit values into register pair if
3300 used as return value.
3301 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
3302 function call parameters. Handle parallels.
3303 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
3304 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
3305 (DWARF_CIE_DATA_ALIGNMENT): New macro.
3306 (s390_expand_setmem): Remove unused variable src_addr.
3307 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
3308 deal with 64 bit registers.
3309 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
3310 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
3311 (UNITS_PER_LONG): New macro.
3312 * libjava/include/s390-signal.h: Define extended ucontext
3313 structure containing the upper halfs of the 64 bit registers.
3315 2010-04-13 Simon Baldwin <simonb@google.com>
3317 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
3319 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
3321 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
3322 rvalue on the RHS if the LHS is of a non-renamable type.
3323 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
3325 2010-04-13 Matthias Klose <doko@ubuntu.com>
3327 * gcc.c (cc1_options): Handle -iplugindir before processing
3328 the cc1 spec. Only add -iplugindir once.
3329 (cpp_unique_options): Add -iplugindir option if -fplugin* options
3331 * common.opt (iplugindir): Remove `Separate' property, initialize.
3332 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
3334 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
3335 (distclean): Remove plugin dir.
3336 * doc/invoke.texi: Document -iplugindir.
3338 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
3340 * doc/plugins.texi (Loading Plugins): Document short
3341 -fplugin=foo option.
3342 (Plugin API): Mention default_plugin_dir_name function.
3344 * gcc.c (find_file_spec_function): Add new declaration.
3345 (static_spec_func): Use it for "find-file".
3346 (find_file_spec_function): Add new function.
3347 (cc1_options): Add -iplugindir option if -fplugin* options found.
3349 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
3351 * plugin.c (add_new_plugin): Updated comment, and handle short
3353 (default_plugin_dir_name): Added new function.
3355 * common.opt (iplugindir): New option to set the plugin directory.
3357 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
3359 * config/i386/i386.md (any_rotate): New code iterator.
3360 (rotate_insn): New code attribute.
3362 (SWIM124): New mode iterator.
3363 (<rotate_insn>ti3): New expander.
3364 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
3365 any_rotate code iterator.
3366 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
3367 using any_rotate code iterator and SWIM124 mode iterator.
3368 (ix86_rotlti3): New insn_and_split pattern.
3369 (ix86_rotrti3): Ditto.
3370 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
3371 ix86_rotl{di,ti}3 patterns.
3372 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
3373 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
3374 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
3375 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
3376 code iterator and SWI mode iterator.
3377 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
3378 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
3380 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
3381 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
3382 (bswap rotatert splitter): Add splitter.
3383 (bswap splitter): Macroize splitter using any_rotate code iterator.
3384 Add insn predicate to split only for TARGET_USE_XCHGB or when
3385 optimizing function for size.
3387 2010-04-12 Steve Ellcey <sje@cup.hp.com>
3389 * config/pa/pa.c (emit_move_sequence): Remove use of
3390 deleted variable flag_argument_noalias.
3392 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3394 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
3396 Add to unsupported targets list.
3397 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
3398 sparc*-sun-solaris2.[567]* from target lists.
3399 * configure: Regenerate.
3400 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
3402 Remove Solaris 7 patch references.
3403 (Specific, sparc-sun-solaris2.7): Removed.
3404 (sparc-sun-solaris2*): Update Solaris 7 example.
3405 (sparc64-*-solaris2*): Likewise.
3407 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3409 * config.build (alpha*-dec-osf4*): Remove.
3410 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
3411 of obsolete configurations.
3412 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
3414 * config/alpha/t-osf4: Renamed to ...
3415 * config/alpha/t-osf5: ... this.
3416 * config/alpha/osf.h: Renamed to ...
3417 * config/alpha/osf5.h: ... this.
3418 Merged old osf5.h contents.
3420 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
3421 (EXTRA_SPECS): Removed.
3422 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
3423 reflect removal of Tru64 UNIX V4.0/V5.0 support.
3426 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3428 * doc/contrib.texi (Contributors, Rainer Orth): Update.
3430 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
3433 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
3434 __thiscall convention.
3436 2010-04-12 Steve Ellcey <sje@cup.hp.com>
3438 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
3440 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
3442 2010-04-12 Steve Ellcey <sje@cup.hp.com>
3444 * function.c (assign_parms_initialize_all): Add unused attribute
3447 2010-04-12 Richard Guenther <rguenther@suse.de>
3449 * gsstruct.def (GSS_CALL): New.
3450 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
3451 * gimple.h: Include tree-ssa-alias.h.
3452 (struct gimple_statement_call): New.
3453 (union gimple_statement_struct_d): Add gimple_call member.
3454 (gimple_call_reset_alias_info): Declare.
3455 (gimple_call_use_set): New function.
3456 (gimple_call_clobber_set): Likewise.
3457 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
3458 * gimple.c (gimple_call_reset_alias_info): New function.
3459 (gimple_build_call_1): Call it.
3460 * lto-streamer-in.c (input_gimple_stmt): Likewise.
3461 * tree-inline.c (remap_gimple_stmt): Likewise.
3462 (expand_call_inline): Remove callused handling.
3463 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
3464 * tree-dfa.c (dump_variable): Likewise.
3465 * tree-parloops.c (parallelize_loops): Likewise.
3466 * tree-ssa.c (init_tree_ssa): Likewise.
3467 (delete_tree_ssa): Likewise.
3468 * tree-flow-inline.h (is_call_used): Remove.
3469 * tree-flow.h (struct gimple_df): Remove callused member.
3470 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
3471 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
3472 (ref_maybe_used_by_call_p_1): Simplify.
3473 (call_may_clobber_ref_p_1): Likewise.
3474 * tree-ssa-structalias.c (compute_points_to_sets): Set
3475 the call stmt used and clobbered sets.
3476 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
3477 (find_tail_calls): Verify the tail call.
3479 2010-04-12 Richard Guenther <rguenther@suse.de>
3481 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
3482 single-iteration always-inline inlining.
3483 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
3484 (cgraph_decide_inlining): Do not handle always-inline specially.
3485 (try_inline): Remove always-inline cycle detection special case.
3486 Do not recurse on always-inlines.
3487 (cgraph_early_inlining): Do not iterate if not optimizing.
3488 (cgraph_gate_early_inlining): remove.
3489 (pass_early_inline): Run unconditionally.
3490 (gate_cgraph_decide_inlining): New function.
3491 (pass_ipa_inline): Use it. Do not run the IPA inliner if
3492 not inlining or optimizing.
3493 (cgraph_decide_inlining_of_small_functions): Also consider
3494 always-inline functions.
3495 (cgraph_default_inline_p): Return true for nodes which should
3496 disregard inline limits.
3497 (estimate_function_body_sizes): Assume zero size and time for
3498 nodes which are marked as disregarding inline limits.
3499 (cgraph_decide_recursive_inlining): Do not perform recursive
3500 inlining on always-inline nodes.
3502 2010-04-12 Jakub Jelinek <jakub@redhat.com>
3505 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
3506 for exprs satisfying handled_component_p.
3508 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
3510 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
3511 non-constant aggregate elements.
3513 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
3514 is a real initialization.
3516 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
3519 * c-decl.c (start_function): Move forward check for nested function.
3521 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
3523 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
3524 * config/sh/sh.c: Include reload.h.
3525 (sh_legitimize_reload_address): New.
3526 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
3527 sh_legitimize_reload_address.
3529 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
3531 * config/sh/sh.md (*movqi_pop): New insn pattern.
3532 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
3534 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
3536 * config/i386/i386.md (any_shiftrt): New code iterator.
3537 (shiftrt_insn): New code attribute.
3539 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
3540 using any_shiftrt code iterator.
3541 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
3542 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
3543 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
3544 pattern from corresponding peephole2 patterns.
3545 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
3546 using any_shiftrt code iterator.
3547 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
3548 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
3549 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
3550 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
3551 *{ashr,lshr}<mode>3_cmp_zext.
3552 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
3554 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
3556 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
3558 (*lshr<mode>3_cconly): Ditto.
3560 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
3562 * config/i386/i386.md (lshr<mode>3): Macroize expander from
3563 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
3564 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
3565 pattern from *lshr{di,ti}3_1 and corresponding splitters using
3567 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
3568 from corresponding peephole2 patterns.
3569 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
3570 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
3571 and *lshrdi3_1_rex64 using SWI mode iterator.
3572 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
3573 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
3574 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
3575 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
3576 and *lshrdi3_cmp_rex64 using SWI mode iterator.
3577 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
3578 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
3579 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
3580 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
3583 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
3585 * config/i386/i386.md (ashr<mode>3): Macroize expander from
3586 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
3587 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
3588 pattern from *ashr{di,ti}3_1 and corresponding splitters using
3590 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
3591 from corresponding peephole2 patterns.
3592 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
3593 (ashrsi3_cvt): Rename from ashrsi3_31.
3594 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
3595 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
3596 and x86_64_shift_adj_3 using SWI48 mode iterator.
3597 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
3598 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
3599 and *ashrdi3_1_rex64 using SWI mode iterator.
3600 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
3601 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
3602 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
3603 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
3604 and *ashrdi3_cmp_rex64 using SWI mode iterator.
3605 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
3606 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
3607 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
3608 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
3610 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
3611 * config/i386/i386.c (ix86_split_ashr): Update for renamed
3612 x86_shift<mode>_adj_3 expanders.
3614 2010-04-10 Wei Guozhi <carrot@google.com>
3617 * config/arm/arm.c (arm_pic_static_addr): New function.
3618 (legitimize_pic_address): Call arm_pic_static_addr when it detects
3620 (arm_output_addr_const_extra): Output expression for new pattern.
3621 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
3623 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
3625 * ira-costs.c (record_reg_classes): Ignore alternatives that are
3628 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
3629 * web.c: Include "insn-config.h" and "recog.h".
3630 (union_match_dups): New function.
3631 (web_main): Call it.
3632 (union_defs): Don't try to recognize match_dups.
3634 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
3635 if doing so would replace the entire pattern.
3637 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
3641 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
3642 and splitter pattern. Change splitter operand 1 predicate to
3645 2010-04-09 Martin Jambor <mjambor@suse.cz>
3647 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
3648 lattices are addresses of CONST_DECLs with the same initial value.
3649 (ipcp_print_all_lattices): Print values of CONST_DECLs.
3650 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
3652 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
3653 Bernd Schmidt <bernds@codesourcery.com>
3655 * loop-invariant.c (replace_uses): New static function.
3656 (move_invariant_reg): Use it to ensure we can replace the uses.
3658 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
3660 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
3662 (picochip_override_options): Enable section anchors only above -O1.
3663 (picochip_reorg): Fixed a couple of build warnings.
3665 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3667 * configure.ac (plugin -rdynamic test): Log result.
3668 * configure: Regenerate.
3669 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
3670 (RDYNAMIC_SPEC): Define.
3671 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
3673 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3675 * configure.ac: Determine Sun ld version numbers.
3676 (comdat_group): Restrict GNU ld version checks to gld.
3677 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
3678 (enable_comdat): Support --enable-comdat.
3679 * configure: Regenerate.
3680 * doc/install.texi (Configuration): Document --enable-comdat.
3682 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3684 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
3685 * config/sol2-gld.h: ... here.
3686 * config.gcc (sparc*-*-solaris2*): Reflect this.
3687 (i[34567]86-*-solaris2*): Use it.
3689 2010-04-09 Steve Ellcey <sje@cup.hp.com>
3691 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
3693 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
3695 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3698 * diagnostic.c (diagnostic_initialize): Initialize
3699 some_warnings_are_errors.
3700 (diagnostic_finish): New.
3701 (diagnostic_action_after_output): Call it before exiting.
3702 (diagnostic_report_diagnostic): Do not print message here. Set
3703 some_warnings_are_errors.
3704 * diagnostic.h (diagnostic_context): Delete
3705 issue_warnings_are_errors_message. Add some_warnings_are_errors.
3706 (diagnostic_finish): Declare.
3707 * toplev.c (toplev_main): Call it before exit.
3709 2010-04-09 Jason Merrill <jason@redhat.com>
3712 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
3713 for incomplete type.
3716 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
3717 based on a warning flag.
3719 2010-04-09 Richard Guenther <rguenther@suse.de>
3721 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
3723 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
3726 * varasm.c (default_assemble_visibility): Wrap vars that are
3727 set, but unused, by targets without GAS.
3728 * config/rs6000/rs6000.c: (paired_emit_vector_compare):
3729 Remove set, but unused, vars.
3730 (rs6000_legitimize_tls_address): Likewise.
3731 (altivec_expand_dst_builtin): Likewise.
3732 * config/darwin.c (machopic_classify_symbol): Likewise.
3733 (machopic_indirection_name): Likewise.
3735 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
3737 * config/i386/i386.md (DWI): New mode iterator.
3738 (S): New mode attribute.
3739 (shift_operand): Ditto.
3740 (shift_immediate_operand): Ditto.
3741 (ashl_input_operand): Ditto.
3742 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
3743 using SDWIM mode iterator.
3744 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
3745 pattern from *ashl{di,ti}3_1 and corresponding splitters using
3747 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
3748 from corresponding peephole2 patterns.
3749 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
3750 and x86_64_shift_adj_1 using SWI48 mode iterator.
3751 (x86_shift<mode>_adj_2): Ditto.
3752 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
3753 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
3754 using SWI48 mode iterator.
3755 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
3756 *ashldi3_cmp_rex64 using SWI mode iterator.
3757 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
3758 *ashldi3_cconly_rex64 using SWI mode iterator.
3759 * config/i386/i386.c (ix86_split_ashl): Update for renamed
3760 x86_shift<mode>_adj_{1,2}.
3761 (ix86_split_ashr): Ditto.
3762 (ix86_split_lshr): Ditto.
3764 2010-04-09 Richard Guenther <rguenther@suse.de>
3766 * target.h (builtin_conversion): Pass in input and output types.
3767 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
3768 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
3769 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
3770 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
3772 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
3774 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
3776 2010-04-09 Richard Guenther <rguenther@suse.de>
3779 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
3781 2010-04-09 Richard Guenther <rguenther@suse.de>
3783 * tree-vectorizer.h (struct _stmt_vec_info): Document
3784 that vectype is the type of the LHS.
3785 (supportable_widening_operation, supportable_narrowing_operation):
3786 Get both input and output vector types as arguments.
3787 (vect_is_simple_use_1): Declare.
3788 (get_same_sized_vectype): Likewise.
3789 * tree-vect-loop.c (vect_determine_vectorization_factor):
3790 Set STMT_VINFO_VECTYPE to the vector type of the def.
3791 (vectorizable_reduction): Adjust.
3792 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
3793 Adjust. Specify the output vector type.
3794 (vect_pattern_recog_1): Adjust.
3795 * tree-vect-stmts.c (get_same_sized_vectype): New function.
3796 (vectorizable_call): Adjust.
3797 (vectorizable_conversion): Likewise.
3798 (vectorizable_operation): Likewise.
3799 (vectorizable_type_demotion): Likewise.
3800 (vectorizable_type_promotion): Likewise.
3801 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
3803 (vect_is_simple_use_1): New function.
3804 (supportable_widening_operation): Get both input and output
3806 (supportable_narrowing_operation): Likewise.
3807 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
3809 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
3811 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
3812 __thiscall and _thiscall as predefined macros.
3813 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
3814 thiscall attribute handling.
3815 (ix86_comp_type_attributes): Likewise.
3816 (ix86_function_regparm): Likewise.
3817 (ix86_return_pops_args): Likewise.
3818 (init_cumulative_args): Likewise.
3819 (find_drap_reg): Likewise.
3820 (ix86_static_chain): Likewise.
3821 (x86_this_parameter): Likewise.
3822 (x86_output_mi_thunk): Likewise.
3823 (ix86_attribute_table): Add description for thiscall attribute.
3824 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
3825 * doc/extend.texi: Add documentation for thiscall.
3827 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3830 * c.opt (Wint-to-pointer-cast): Available in C++.
3831 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
3833 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
3835 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
3836 * calls.c (expand_call): Pass the function type to aggregate_value_p.
3837 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
3838 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
3839 function type instead. Reorder and simplify checks.
3841 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
3843 2010-04-08 Jing Yu <jingyu@google.com>
3844 Zdenek Dvorak <ook@ucw.cz>
3846 PR tree-optimization/42720
3847 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
3848 loop unswitch conditions here from ...
3849 (tree_unswitch_single_loop): ... here.
3851 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
3853 * tree-if-conv.c: Fix comments and simplify logic.
3855 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
3857 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
3858 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
3859 (main_tree_if_conversion): Update call to tree_if_conversion.
3861 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3864 * doc/invoke.texi (-b,-V): Delete.
3865 * doc/tm.texi: Do not mention -b.
3866 * gcc.c (display_help): Delete -b and -V.
3867 (process_command): Delete -b and -V.
3868 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
3870 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
3871 Wolfgang Gellerich <gellerich@de.ibm.com>
3873 Implement target hook for loop unrolling
3874 * target.h (loop_unroll_adjust): Add a new target hook function.
3875 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
3876 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
3877 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
3878 (s390_loop_unroll_adjust): Implement the new target hook for s390.
3879 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
3881 (decide_unroll_stupid): Likewise.
3883 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3886 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
3888 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3890 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
3891 (Specific, *-*-solaris2*): Likewise.
3892 Don't prefer Sun as over GNU as.
3894 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
3896 * config/s390/s390.c (override_options): Adjust the z10
3897 defaults for max-unroll-times, max-completely-peeled-insns
3898 and max-completely-peel-times.
3900 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3902 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
3903 instructions for z10.
3904 (s390_expand_setmem): Likewise.
3905 (s390_expand_cmpmem): Likewise.
3907 2010-04-08 Richard Guenther <rguenther@suse.de>
3909 PR tree-optimization/43679
3910 * tree-ssa-pre.c (eliminate): Only propagate copies.
3912 2010-04-08 Jakub Jelinek <jakub@redhat.com>
3915 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
3916 set but not used variable warning.
3918 2010-04-08 Wei Guozhi <carrot@google.com>
3921 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
3922 (arm_size_rtx_costs): Call the new function when optimized for size.
3924 2010-04-08 Jakub Jelinek <jakub@redhat.com>
3927 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
3928 op0 is not a MEM, just return NULL instead of assertion
3930 (discover_nonconstant_array_refs): Don't walk debug stmts.
3932 2010-04-08 Doug Kwan <dougkwan@google.com>
3934 * configure.ac: Recognize gold and do not use its version number
3935 to test ld features.
3936 * configure: Regenerate.
3938 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
3941 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
3942 (negate_value): Move code to push elements to broken_up_substracts ...
3943 (eliminate_plus_minus_pair): ... here. Push operands that have no
3944 negative pair to plus_negates.
3945 (repropagate_negates, init_reassoc, fini_reassoc): Update.
3947 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3949 * doc/install.texi (Configuration): Move description of
3950 --enable-lto, --with-libelf*, --enable-gold from Java section to
3953 * doc/generic.texi (Working with declarations)
3954 (Function Properties, C and C++ Trees): Fix typos.
3955 * doc/sourcebuild.texi (Top Level): Likewise.
3957 2010-04-07 Jakub Jelinek <jakub@redhat.com>
3960 * tree.h (DECL_READ_P): Define.
3961 (struct tree_decl_common): Add decl_read_flag.
3962 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
3963 a set but not used warning.
3964 (merge_decls): Merge DECL_READ_P flag.
3965 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
3966 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
3967 * c-common.c (handle_used_attribute, handle_unused_attribute):
3969 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
3971 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
3973 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
3974 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
3975 c_parser_binary_expression, c_parser_cast_expression,
3976 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
3977 Call default_function_array_read_conversion instead of
3978 default_function_array_conversion where needed.
3979 (c_parser_unary_expression, c_parser_conditional_expression,
3980 c_parser_postfix_expression_after_primary, c_parser_initelt):
3981 Likewise. Call mark_exp_read where needed.
3982 (c_parser_statement_after_labels, c_parser_asm_operands,
3983 c_parser_typeof_specifier, c_parser_sizeof_expression,
3984 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
3986 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
3988 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
3989 (warn_unused_but_set_parameter): Default to warn_unused
3991 * doc/invoke.texi: Document -Wunused-but-set-variable and
3992 -Wunused-but-set-parameter.
3994 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
3995 used count variable.
3996 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
3997 when operandN variables aren't used in the body of the expander
3999 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
4000 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
4001 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
4002 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
4003 FOR_EACH_IMM_USE_ON_STMT): Likewise.
4004 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
4005 * tree.c (PROCESS_ARG): Likewise.
4007 2010-04-07 Simon Baldwin <simonb@google.com>
4009 * diagnostic.h (diagnostic_override_option_index): New macro to
4010 set a diagnostic's option_index.
4011 * c-tree.h (c_cpp_error): Add warning reason argument.
4012 * opts.c (_warning_as_error_callback): New.
4013 (register_warning_as_error_callback): Store callback for
4014 warnings enabled via enable_warning_as_error.
4015 (enable_warning_as_error): Call callback, minor code tidy.
4016 * opts.h (register_warning_as_error_callback): Declare.
4017 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
4018 response to -Werror=.
4019 (c_common_init_options): Register warning_as_error_callback in opts.c.
4020 * common.opt: Add -Wno-cpp option.
4021 * c-common.c (struct reason_option_codes_t): Map cpp warning
4022 reason codes to gcc option indexes.
4023 * (c_option_controlling_cpp_error): New function, lookup the gcc
4024 option index for a cpp warning reason code.
4025 * (c_cpp_error): Add warning reason argument, call
4026 c_option_controlling_cpp_error for diagnostic_override_option_index.
4027 * doc/invoke.texi: Document -Wno-cpp.
4029 2010-04-07 Richard Guenther <rguenther@suse.de>
4031 * ipa-reference.c (mark_load): Use get_base_address.
4032 (mark_store): Likewise.
4034 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
4035 inserting GIMPLE_NOPs into the IL.
4036 * tree-ssa-structalias.c (get_constraint_for_component_ref):
4037 Explicitly strip handled components and indirect references.
4039 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
4040 folding address expressions.
4041 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
4042 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
4043 operand_equal_p to compare decls.
4044 (ptr_deref_may_alias_decl_p): Likewise.
4045 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
4046 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
4047 Handle reversed comparison ops.
4048 * tree-sra.c (asm_visit_addr): Use get_base_address.
4049 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
4050 * ipa-reference.c (mark_address): Use get_base_address.
4052 2010-04-07 Richard Guenther <rguenther@suse.de>
4054 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
4055 Propagate constants everywhere.
4057 2010-04-07 Jakub Jelinek <jakub@redhat.com>
4060 * tree.c (MAX_INT_CACHED_PREC): Define.
4061 (nonstandard_integer_type_cache): New array.
4062 (build_nonstandard_integer_type): Cache results for precision
4063 <= MAX_INT_CACHED_PREC.
4065 2010-04-07 Richard Guenther <rguenther@suse.de>
4067 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
4068 -fargument-noalias-global, -fargument-noalias-anything): Remove.
4069 * common.opt: Likewise.
4070 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
4071 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
4072 (nonoverlapping_memrefs_p): Likewise.
4073 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
4074 * opts.c (common_handle_option): Handle OPT_fargument_alias,
4075 OPT_fargument_noalias, OPT_fargument_noalias_anything and
4076 OPT_fargument_noalias_global for backward compatibility.
4078 2010-04-07 Richard Guenther <rguenther@suse.de>
4080 PR tree-optimization/43270
4081 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
4082 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
4083 * tree-ssa-pre.c (phi_translate_1): Adjust.
4084 (fully_constant_expression): Split out vn_reference handling to ...
4085 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
4086 Fold reads from constant strings.
4087 (vn_reference_lookup): Handle fully constant references.
4088 (vn_reference_lookup_pieces): Likewise.
4089 * Makefile.in (expmed.o-warn): Add -Wno-error.
4091 2010-04-07 Martin Jambor <mjambor@suse.cz>
4093 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
4095 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
4098 * gcc.c: Add -static-libstdc++ to list of recognized options.
4100 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4102 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
4104 2010-04-07 Richard Guenther <rguenther@suse.de>
4107 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
4108 bases build simple mem attributes to retain points-to information.
4110 2010-04-07 Richard Guenther <rguenther@suse.de>
4113 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
4114 preserve points-to related information.
4116 2010-04-07 Richard Guenther <rguenther@suse.de>
4119 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
4120 discard plain indirect references.
4121 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
4122 * tree.c (tree_nop_conversion): Likewise.
4124 2010-04-07 Dodji Seketeli <dodji@redhat.com>
4127 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
4129 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
4131 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
4132 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
4134 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
4136 * tree-if-conv.c: Fix indentation and comments.
4138 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
4140 * tree-if-conv.c: Sort static functions in topological order.
4142 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
4144 * tree-if-conv.c: Fix indentation and comments.
4146 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
4149 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
4150 lang_hooks.types.type_for_size instead of
4151 build_nonstandard_integer_type.
4152 When converting an unsigned type to signed, double its precision.
4153 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
4154 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
4155 (graphite_create_new_loop_guard): When ub + 1 wraps around,
4158 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
4161 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
4162 POINTER_PLUS_EXPR for pointer types.
4164 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
4167 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
4168 * graphite-clast-to-gimple.c: Include langhooks.h.
4169 (max_signed_precision_type): New.
4170 (max_precision_type): Takes two types as arguments.
4171 (precision_for_value): New.
4172 (precision_for_interval): New.
4173 (gcc_type_for_interval): New.
4174 (gcc_type_for_value): New.
4175 (gcc_type_for_clast_term): New.
4176 (gcc_type_for_clast_red): New.
4177 (gcc_type_for_clast_bin): New.
4178 (gcc_type_for_clast_expr): Split up into several functions.
4179 (gcc_type_for_clast_eq): Rewritten.
4180 (compute_bounds_for_level): New.
4181 (compute_type_for_level_1): New.
4182 (compute_type_for_level): New.
4183 (gcc_type_for_cloog_iv): Removed.
4184 (gcc_type_for_iv_of_clast_loop): Rewritten.
4185 (graphite_create_new_loop): Compute the lower and upper bound types
4186 with gcc_type_for_clast_expr.
4187 (graphite_create_new_loop_guard): Same.
4188 (find_cloog_iv_in_expr): Removed.
4189 (compute_cloog_iv_types_1): Removed.
4190 (compute_cloog_iv_types): Removed.
4191 (gloog): Do not call compute_cloog_iv_types.
4192 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
4194 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
4195 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
4196 (GBB_CLOOG_IV_TYPES): Removed.
4198 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
4200 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
4201 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
4202 (detect_commutative_reduction): Same.
4204 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
4206 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
4207 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
4209 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
4210 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
4211 (rewrite_commutative_reductions_out_of_ssa): Same.
4212 * passes.c (execute_function_todo): Call verify_ssa for every pass
4213 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
4214 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
4215 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
4216 with an extra argument.
4217 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
4218 verify_ssa only when the extra argument is true.
4219 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
4220 with an extra argument.
4221 (tree_transform_and_unroll_loop): Same.
4223 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
4225 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
4226 for all the passes of the LNO having LOOP_CLOSED_SSA.
4227 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
4228 * tree-loop-distribution.c (pass_loop_distribution): Same.
4229 * tree-pass.h (TODO_verify_loops): Removed.
4230 * tree-ssa-loop.c (pass_tree_loop_init): Same.
4232 (pass_tree_unswitch): Same.
4233 (pass_predcom): Same.
4234 (pass_vectorize): Same.
4235 (pass_linear_transform): Same.
4236 (pass_graphite_transforms): Same.
4237 (pass_iv_canon): Same.
4238 (pass_complete_unroll): Same.
4239 (pass_complete_unrolli): Same.
4240 (pass_parallelize_loops): Same.
4241 (pass_loop_prefetch): Same.
4242 (pass_iv_optimize): Same.
4244 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
4247 * passes.c (init_optimization_passes): Move pass_lim before
4248 pass_copy_prop and pass_dce_loop.
4250 2010-04-06 Jakub Jelinek <jakub@redhat.com>
4253 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
4254 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
4255 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
4256 MULTI_* defines for 4 argument vpermil2p* builtins.
4258 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
4260 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
4261 * config/i386/i386.c (x86_maybe_negate_const_int): New.
4262 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
4263 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
4264 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
4265 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
4266 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
4267 Use x86_maybe_negate_const_int to output insn mnemonic.
4268 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
4269 check from instruction predicate. Update comments.
4270 * config/i386/sync.md (sync_add<mode>): Use
4271 x86_maybe_negate_const_int to output insn mnemonic.
4273 2010-04-06 Jan Hubicka <jh@suse.cz>
4275 PR tree-optimization/42906
4276 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
4277 IGNORE_SELF argument. Set visited_control_parents for fully
4279 (find_obviously_necessary_stmts): Update call of
4280 mark_control_dependent_edges_necessary.
4281 (propagate_necessity): Likewise. Handle PHI edges more curefully.
4283 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
4285 * config/i386/i386.md: Remove comment about 'e' and 'E'
4288 2010-04-06 Richard Guenther <rguenther@suse.de>
4290 PR tree-optimization/43627
4291 * tree-vrp.c (extract_range_from_unary_expr): Widenings
4292 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
4295 2010-04-06 Jakub Jelinek <jakub@redhat.com>
4297 * BASE-VER: Change to 4.6.0.
4300 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
4303 2010-04-06 Richard Guenther <rguenther@suse.de>
4306 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
4308 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4310 * doc/invoke.texi (Optimize Options): Document that LTO
4311 won't remove object access purely due to incompatible
4314 2010-04-04 Matthias Klose <doko@ubuntu.com>
4316 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
4317 Initialize variable.
4319 2010-04-03 Richard Guenther <rguenther@suse.de>
4322 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
4323 require a non-NULL MEM_OFFSET.
4325 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
4327 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
4328 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
4329 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
4330 config/alpha/predicates.md, config/arm/arm.md,
4331 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
4332 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
4333 config/darwin9.h, config/darwin.c, config/darwin.h,
4334 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
4335 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
4336 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
4337 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
4338 config/mips/mips.md, config/mn10300/mn10300.c,
4339 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
4340 config/rs6000/aix.h, config/rs6000/dfp.md,
4341 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
4342 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
4343 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
4344 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
4345 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
4346 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
4347 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
4348 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
4349 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
4350 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
4351 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
4352 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
4353 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
4354 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
4355 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
4356 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
4357 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
4358 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
4359 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
4360 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
4361 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
4362 opt-functions.awk, opth-gen.awk, params.def, passes.c,
4363 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
4364 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
4365 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
4366 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
4367 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
4368 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
4369 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
4370 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
4371 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
4372 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
4373 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
4374 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
4375 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
4376 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
4378 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4381 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
4382 * aclocal.m4: Regenerate.
4384 2010-04-02 Richard Guenther <rguenther@suse.de>
4386 PR tree-optimization/43629
4387 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
4388 if we have seen a constant value.
4390 2010-04-02 Joseph Myers <joseph@codesourcery.com>
4392 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
4394 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
4397 * arm.c (legitimize_tls_address): Adjust call to
4398 gen_tls_load_dot_plus_four.
4399 (arm_note_pic_base): New function.
4400 (arm_cannot_copy_insn_p): Use it.
4401 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
4404 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4409 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4411 * Makefile.in ($(out_object_file)): Depend on
4412 gt-$(basename $(notdir $(out_file))).h.
4414 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
4416 * config.gcc (lm32-*-rtems*): Add t-lm32.
4418 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
4420 * config.gcc: Add lm32-*-rtems*.
4421 * config/lm32/rtems.h: New file.
4423 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
4426 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
4428 2010-04-01 Jakub Jelinek <jakub@redhat.com>
4430 * dwarf2out.c (output_compilation_unit_header): For
4431 -gdwarf-4 use version 4 instead of version 3.
4432 (output_line_info): For version 4 and above emit additional
4433 maximum ops per insn header field.
4434 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
4436 * dwarf2out.c (is_c_family, is_java): Remove.
4437 (lower_bound_default): New function.
4438 (add_bound_info, gen_descr_array_type_die): Use it.
4440 2010-04-01 Dodji Seketeli <dodji@redhat.com>
4443 * dwarf2out.c (gen_variable_die): Allow debug info for variable
4444 re-declaration when it happens in a function.
4446 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
4448 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
4449 (cgraph_remove_function_insertion_hook): Same.
4450 (cgraph_call_function_insertion_hooks): Same.
4452 2010-04-01 Richard Guenther <rguenther@suse.de>
4455 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
4456 and TREE_THIS_VOLATILE.
4457 (copy_ref_info): Likewise.
4458 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
4459 * tree.c (build6_stat): Ignore side-effects of all but arg5
4460 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
4463 2010-04-01 Richard Guenther <rguenther@suse.de>
4465 PR tree-optimization/43607
4466 * ipa-type-escape.c (check_call): Do not access non-existing
4469 2010-04-01 Richard Guenther <rguenther@suse.de>
4473 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
4474 Jack Howarth <howarth@bromo.med.uc.edu>
4476 * tree-profile.c (tree_init_ic_make_global_vars): Make static
4479 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4481 * doc/install.texi (Prerequisites): Document libelf usability on
4482 IRIX 5/6 and Solaris 2.
4483 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
4484 Update GNU as, GNU ld requirements.
4485 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
4486 Document Sun Studio compiler download.
4487 Update and simplify as, ld recommendations.
4488 (Specific, *-*-solaris2.7): Note obsoletion, removal.
4490 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4492 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
4493 with_tune_32 to pentium4.
4495 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
4497 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
4499 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4501 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
4502 obsoletion, removal.
4504 Document GNU as requirement.
4505 Update configure requirements.
4506 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
4507 Recomment IRIX 6.5.18+.
4508 Document IDF/IDL requirement.
4509 Document GNU as requirement.
4510 Document GNU ld bootstrap failure.
4511 Remove freeware.sgi.com reference.
4513 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4515 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
4516 UNIX V4.0, V5.0 obsoletion, removal.
4517 Remove --with-gc=simple reference.
4518 Update VM requirements during bootstrap.
4519 Remove -oldas bootstrap description.
4520 Update binutils reference.
4521 Remove comparison failure note.
4523 2010-03-31 Richard Guenther <rguenther@suse.de>
4524 Zdenek Dvorak <ook@ucw.cz>
4525 Sebastian Pop <sebastian.pop@amd.com>
4528 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
4529 with multiple arguments.
4530 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
4532 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
4534 * graphite-dependences.c (print_pddr): Call print_pdr with an
4536 * graphite-poly.c (debug_pdr): Add an extra argument for the
4539 (print_pbb_domain): Same.
4541 (print_scop_context): Same.
4543 (print_cloog): Same.
4544 (debug_pbb_domain): Same.
4548 (debug_scop_context): Same.
4550 (debug_cloog): Same.
4551 (print_scop_params): Same.
4552 (debug_scop_params): Same.
4553 (print_iteration_domain): Same.
4554 (print_iteration_domains): Same.
4555 (debug_iteration_domain): Same.
4556 (debug_iteration_domains): Same.
4557 (print_scattering_function): Same.
4558 (print_scattering_functions): Same.
4559 (debug_scattering_function): Same.
4560 (debug_scattering_functions): Same.
4561 * graphite-poly.h (debug_pdr): Update declaration.
4563 (print_pbb_domain): Same.
4565 (print_scop_context): Same.
4567 (print_cloog): Same.
4568 (debug_pbb_domain): Same.
4572 (debug_scop_context): Same.
4574 (debug_cloog): Same.
4575 (print_scop_params): Same.
4576 (debug_scop_params): Same.
4577 (print_iteration_domain): Same.
4578 (print_iteration_domains): Same.
4579 (debug_iteration_domain): Same.
4580 (debug_iteration_domains): Same.
4581 (print_scattering_function): Same.
4582 (print_scattering_functions): Same.
4583 (debug_scattering_function): Same.
4584 (debug_scattering_functions): Same.
4586 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
4588 * graphite-poly.c (print_scattering_function_1): New.
4589 (print_scattering_function): Call it.
4590 (print_scop_params): Remove spaces at the end of lines.
4593 * graphite-poly.h (print_cloog): Declared.
4594 (debug_cloog): Declared.
4596 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
4598 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
4600 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
4601 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
4602 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
4603 to switch between adding the IV bump in loop->latch or in loop->header.
4605 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
4607 * graphite-poly.c (print_scattering_function): Pretty print following
4610 (print_pbb_domain): Same.
4611 (dump_gbb_cases): Same.
4612 (dump_gbb_conditions): Same.
4615 (print_scop_params): Same.
4616 (print_scop_context): Same.
4618 (print_pbb_body): New.
4619 (lst_indent_to): New.
4620 (print_lst): Start new lines with a #.
4621 * graphite-poly.h (pbb_bb): New.
4622 (pbb_index): Use pbb_bb.
4623 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
4625 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
4627 2010-03-31 Jakub Jelinek <jakub@redhat.com>
4629 * dwarf2out.c (size_of_die): For -gdwarf-4 use
4630 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
4631 and 0 instead of 1 for dw_val_class_flag.
4632 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
4633 dw_val_class_range_list, dw_val_class_loc_list,
4634 dw_val_class_lineptr and dw_val_class_macptr, use
4635 DW_FORM_flag_present for dw_val_class_flag and
4636 DW_FORM_exprloc for dw_val_class_loc.
4637 (output_die): For -gdwarf-4 print dw_val_class_loc
4638 size as uleb128 instead of 1 or 2 bytes and don't print
4639 anything for dw_val_class_flag.
4641 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
4642 instead of cselib_lookup following by tweaking locs->setting_insn.
4645 * cselib.c (cselib_process_insn): Clear cselib_current_insn
4646 even before returning from label, setjmp call or volatile asm
4649 2010-03-31 Richard Guenther <rguenther@suse.de>
4652 * cgraphunit.c (cgraph_output_in_order): Do not allocate
4653 temporary data on stack.
4655 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4657 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
4658 (PUSHSECTION_ASM_OP): Remove.
4659 (POPSECTION_ASM_OP): Remove.
4660 (PUSHSECTION_FORMAT): Remove.
4661 * config/sol2.h (PUSHSECTION_FORMAT): Define.
4662 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
4663 * config/sol2.c (solaris_output_init_fini): Use it.
4665 2010-03-31 Jie Zhang <jie@codesourcery.com>
4668 * opt-functions.awk (var_type_struct): Use signed char type
4669 for simple variables.
4671 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4673 * config/sol2.c: Include output.h.
4674 (solaris_assemble_visibility): New function.
4675 * config/t-sol2 (sol2.o): Add output.h dependency.
4676 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
4677 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
4680 2010-03-31 Jakub Jelinek <jakub@redhat.com>
4683 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
4684 V2SImode or XFmode on PRE_DEC.
4687 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
4690 2010-03-31 Jie Zhang <jie@codesourcery.com>
4693 * reload.h (caller_save_initialized_p): Declare.
4694 * toplev.c (backend_init_target): Don't call
4695 init_caller_save but set caller_save_initialized_p to false.
4696 * caller-save.c (caller_save_initialized_p): Define.
4697 (init_caller_save): Check caller_save_initialized_p.
4698 * ira.c (ira): Call init_caller_save if flag_caller_saves.
4700 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4703 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
4704 and soft-fp/t-softfp to tmake_file.
4705 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
4706 (LIBGCC2_TF_CEXT): Define.
4709 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
4712 * cselib.c (n_useless_values): Document handling of debug locs.
4713 (n_useless_debug_values, n_debug_values): New variables.
4714 (new_elt_loc_list): Don't add to debug values, keep count.
4715 (promote_debug_loc): New.
4716 (cselib_reset_table): Zero new variables.
4717 (entry_and_rtx_equal_p): Promote debug locs.
4718 (discard_useless_locs): Increment n_useless_debug_values for
4720 (remove_useless_values): Adjust n_useless_values and n_debug_values
4721 with n_useless_debug_values.
4722 (add_mem_for_addr): Promote debug locs.
4723 (cselib_lookup_mem): Likewise.
4724 (cselib_lookup_addr): Renamed to...
4725 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
4726 (cselib_log_lookup): ... this. Turn into...
4727 (cselib_lookup_addr): ... new wrapper.
4728 (cselib_lookup_from_insn): New.
4729 (cselib_invalidate_regno): Increment n_useless_debug_values for
4731 (cselib_invalidate_mem): Likewise.
4732 (cselib_process_insn): Take n_deleted and n_debug_values into
4733 account to guard remove_useless_value call.
4734 (cselib_finish): Zero n_useless_debug_values.
4735 * cselib.h (cselib_lookup_from_insn): Declare.
4736 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
4737 (sched_analyze_2): Likewise.
4739 2010-03-30 Jakub Jelinek <jakub@redhat.com>
4741 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
4743 (adjust_mems): Replace narrowing SUBREG of expression containing
4744 just PLUS, MINUS, MULT and ASHIFT of registers and constants
4745 with operations in the narrower mode.
4748 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
4749 regs_invalidated_by_call instead all call_used_reg_set registers.
4751 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
4754 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
4755 pointer comparisons with types_compatible_p.
4756 * tree-vect-stmts.c (vectorizable_call): Same.
4757 (vectorizable_condition): Same.
4759 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4761 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
4762 stack check if the mask would be zero.
4764 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
4765 Jack Howarth <howarth@bromo.med.uc.edu>
4767 * tree-profile.c (tree_init_ic_make_global_vars): Make static
4770 2010-03-30 Joseph Myers <joseph@codesourcery.com>
4773 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
4775 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
4776 Include ___unordxf2 and ___unordtf2.
4777 * config/i386/libgcc-glibc.ver: Do not define inheritance from
4780 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
4782 * config/lm32/t-lm32: New file.
4783 * config.gcc: Use the above file when targetting lm32.
4785 2010-03-28 Duncan Sands <baldrick@free.fr>
4787 * Makefile.in (PLUGIN_HEADERS): Add except.h.
4789 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
4792 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
4793 Improve vectorization cost model diagnostic.
4795 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
4798 * tree-vect-data-refs.c (vect_analyze_data_refs): When
4799 compute_data_dependences_for_loop returns false, early exit
4800 and output an extra diagnostic for the failed data reference
4803 2010-03-29 Richard Guenther <rguenther@suse.de>
4805 PR tree-optimization/43560
4806 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
4807 (can_sm_ref_p): Treat stores to readonly locations as trapping.
4809 2010-03-29 Jie Zhang <jie@codesourcery.com>
4812 * toplev.c (process_options): Set optimization_default_node
4813 and optimization_current_node.
4814 * opts.c (decode_options): Don't set optimization_default_node
4815 and optimization_current_node.
4817 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
4819 * config/rtems.h: Abandon -qrtems_debug.
4821 2010-03-28 Jan Hubicka <jh@suse.cz>
4823 PR tree-optimization/43505
4824 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
4825 map should not be copied.
4827 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4830 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
4831 cdtors, set DECL_PRESERVE_P.
4832 * ipa.c (cgraph_externally_visible_p): Return true if declaration
4835 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
4837 PR tree-optimization/43528
4838 * stor-layout.c (place_field): Check that constant fits into
4839 unsigned HWI when skipping calculation of MS bitfield layout.
4841 2010-03-27 Jan Hubicka <jh@suse.cz>
4844 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
4845 notice_global_symbol work.
4847 2010-03-27 Jakub Jelinek <jakub@redhat.com>
4849 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
4850 instead of dwarf2out_decl.
4851 (struct var_loc_node): Remove section_label field.
4852 (dwarf2out_function_decl): New function.
4853 (dwarf2out_var_location): Don't set section_label field.
4854 (dwarf2out_begin_function): Don't empty decl_loc_table here.
4856 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4858 PR tree-optimization/43544
4859 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
4860 First argument for builtin vectorized function hook is now a
4861 tree to be able to distinguish between machine specific and
4863 * targhooks.c (default_builtin_vectorized_function): Ditto.
4864 * targhooks.h (default_builtin_vectorized_function): Ditto.
4865 * target.h (struct gcc_target): Ditto.
4866 * tree-vect-stmts.c (vectorizable_function): Ditto.
4867 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
4868 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
4871 2010-03-26 Joseph Myers <joseph@codesourcery.com>
4874 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
4875 nested binding iff it is a FUNCTION_DECL.
4876 (store_parm_decls_newstyle): Pass nested=true to bind for
4877 FUNCTION_DECLs amongst parameters.
4879 2010-03-26 Jakub Jelinek <jakub@redhat.com>
4881 * var-tracking.c (vt_expand_loc_callback): Don't run
4882 cselib_expand_value_rtx_cb in dummy mode if
4883 cselib_dummy_expand_value_rtx_cb returned false.
4885 * var-tracking.c (emit_note_insn_var_location): For one part
4886 notes with offset 0, don't add EXPR_LIST around the location.
4887 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
4888 add_location_or_const_value_attribute): Adjust for that change.
4891 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
4892 into first operand and location into second.
4893 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
4894 dw_cfi_oprnd_loc for DW_CFA_expression.
4895 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
4896 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
4897 assume first argument is regnum and second argument is location.
4899 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
4902 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
4903 of scratch register to DImode. Split to DImode comparison operator.
4904 Use SImode subreg of scratch register in the multiplication.
4905 (*cmp_sadd_sidi): Ditto.
4906 (*cmp_ssub_si): Ditto.
4907 (*cmp_ssub_sidi): Ditto.
4909 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
4912 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
4913 Remove invalid assert and wrong comment.
4915 2010-03-26 Jakub Jelinek <jakub@redhat.com>
4918 * flags.h (final_insns_dump_p): New extern.
4919 * final.c (final_insns_dump_p): New variable.
4920 (rest_of_clean_state): Set it before -fdump-final-insns=
4921 dumping, clear afterwards.
4922 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
4923 MEM_ALIAS_SET on MEMs.
4925 2010-03-26 David S. Miller <davem@davemloft.net>
4927 * configure.ac: Fix sparc GOTDATA_OP bug check.
4928 * configure: Rebuild.
4930 2010-03-26 Alan Modra <amodra@gmail.com>
4932 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
4934 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4936 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
4937 TLS_SECTION_ASM_FLAG.
4939 2010-03-25 Jakub Jelinek <jakub@redhat.com>
4942 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
4943 Clear first_function_block_is_cold.
4946 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
4947 argument if the argument is truth_value_p.
4949 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
4951 * config/rs6000/constraints.md: Update copyright year for my changes.
4954 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
4955 used in reg+reg addressing, swap registers.
4957 2010-03-24 Jakub Jelinek <jakub@redhat.com>
4960 * target.h (struct gcc_target): Add code_end hook.
4961 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
4963 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
4964 * toplev.c (compile_file): Call targetm.asm_out.code_end
4965 hook before unwind info/debug info output.
4966 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
4967 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
4968 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
4969 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
4970 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
4971 * config/i386/i386.c (ix86_file_end): Renamed to...
4972 (ix86_code_end): ... this. Make static. Don't call
4973 file_end_indicate_exec_stack. Emit unwind info using
4974 final_start_function/final_end_function.
4975 (darwin_x86_file_end): Remove.
4976 (TARGET_ASM_CODE_END): Define.
4977 * config/i386/i386.h (TARGET_ASM_FILE_END,
4978 NEED_INDICATE_EXEC_STACK): Don't define.
4979 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
4980 (TARGET_ASM_FILE_END): Define to darwin_file_end.
4981 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
4982 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
4985 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
4986 at the beginning and final_end_function at the end.
4987 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
4989 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4991 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
4992 and Sun as TLS syntax.
4993 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
4994 * configure: Regenerate.
4995 * config.in: Regenerate.
4996 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
4997 (default_elf_asm_named_section): Use it.
4998 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
4999 (i386_output_dwarf_dtprel): Likewise.
5000 (output_addr_const_extra): Likewise.
5001 (output_pic_addr_const): Lowercase @GOTTPOFF.
5002 (output_addr_const_extra): Likewise.
5003 (output_pic_addr_const): Lowercase @GOTNTPOFF.
5004 (output_addr_const_extra): Likewise.
5005 (output_pic_addr_const): Lowercase @INDNTPOFF.
5006 (output_addr_const_extra): Likewise.
5007 (output_pic_addr_const): Lowercase @NTPOFF.
5008 (output_addr_const_extra): Likewise.
5009 (output_pic_addr_const): Lowercase @TPOFF.
5010 (output_addr_const_extra): Likewise.
5011 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
5012 (*tls_global_dynamic_64): Likewise.
5013 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
5014 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
5016 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
5017 (ASM_OUTPUT_TLS_COMMON): Use it.
5018 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
5021 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
5022 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
5023 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
5024 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
5025 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
5026 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
5028 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5030 * config/i386/i386.c (override_options): Don't accept
5031 -mtls-dialect=sun any longer.
5032 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
5033 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
5034 (*tls_local_dynamic_base_32_sun): Likewise.
5035 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
5037 2010-03-24 Jakub Jelinek <jakub@redhat.com>
5040 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
5041 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
5044 * ira.c (adjust_cleared_regs): New function.
5045 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
5049 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
5051 * expr.c (expand_expr_real): Restore previous
5052 curr_insn_source_location and curr_insn_block after
5053 expand_expr_real_1 call.
5054 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
5055 instead of expand_expr_real_1.
5057 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
5059 PR rtl-optimization/43413
5060 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
5063 2010-03-22 James E. Wilson <wilson@codesourcery.com>
5066 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
5067 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
5069 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
5071 * config/i386/i386.c (ix86_target_string): Add -mfma.
5072 Fix a typo in comment.
5074 2010-03-22 Mike Stump <mikestump@comcast.net>
5077 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
5078 Don't overly align based upon packed packed fields.
5080 2010-03-22 Jason Merrill <jason@redhat.com>
5082 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
5083 Use () rather than [], and move before the element type.
5085 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5087 * doc/configfiles.texi (Configuration Files): Removed
5088 fixinc/Makefile*, intl/Makefile.*.
5089 * doc/makefile.texi: Fixed markup. Abstract from version
5090 control system used.
5091 (Makefile): Removed obsolete gcc/java/parse.y example.
5092 * doc/sourcebuild.texi: Likewise.
5093 (Top Level): Added config, gnattools, libdecnumber, libgcc,
5094 libgomp, libssp. Removed fastjar.
5095 (Miscellaneous Docs): Clarify location.
5096 Added COPYING3, COPYING3.LIB.
5097 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
5099 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5102 * config/i386/i386.c (x86_function_profiler)
5103 [!NO_PROFILE_COUNTERS]: Fix typo.
5104 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
5107 2010-03-22 Janis Johnson <janis187@us.ibm.com>
5108 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5110 * doc/sourcebuild.texi (Test Directives): Split into six
5111 subsections, with most of the current text in new subsections
5112 Directives, Selectors, and Final Actions.
5113 (Directives): Split list of test directives into multiple
5115 (Selectors): Describe use and syntax of selectors.
5116 (Effective-Target Keywords): Describe all existing keywords.
5117 (Add Options): Describe features for dg-add-options.
5118 (Require Support): Describe variants of dg-require-support.
5119 (Final Actions): Describe commands to use in dg-final.
5121 2010-03-22 Michael Matz <matz@suse.de>
5124 * recog.c (validate_replace_rtx_group): Replace also in
5125 REG_EQUAL and REG_EQUIV notes.
5127 2010-03-22 Richard Guenther <rguenther@suse.de>
5129 PR tree-optimization/43390
5130 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
5131 sure vector extracts are type correct.
5133 2010-03-22 Richard Guenther <rguenther@suse.de>
5136 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
5137 x * sqrt (x) even when optimizing for size if the target
5138 has native support for sqrt.
5140 2010-03-22 Jakub Jelinek <jakub@redhat.com>
5142 * varasm.c (make_decl_rtl_for_debug): Also clear
5143 flag_mudflap for the duration of make_decl_rtl call.
5146 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
5147 locs from preserved VALUEs.
5149 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5152 * pa.md (movmemsi): Set align to one if zero.
5153 (movmemdi): Likewise.
5155 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
5158 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
5159 with their corresponding prologue pushes.
5161 2010-03-20 Andrew Pinski <pinskia@gmail.com>
5164 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
5165 at the begining or end.
5166 (spu_expand_epilogue): Likewise.
5168 2010-03-20 Richard Guenther <rguenther@suse.de>
5170 PR rtl-optimization/43438
5171 * combine.c (make_extraction): Properly zero-/sign-extend an
5172 extraction of the low part of a CONST_INT. Also handle
5175 2010-03-19 Mike Stump <mikestump@comcast.net>
5177 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
5178 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
5179 (override_options): Use SUBTARGET32_DEFAULT_CPU.
5181 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
5184 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
5187 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
5189 PR rtl-optimization/42258
5190 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
5191 use that may match DEF.
5194 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
5195 the cost of loading the constant rather than assuming
5197 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
5198 outer code is AND, do the same tests as the andsi3 expander and
5199 return COSTS_N_INSNS (1) if and is cheap.
5201 * optabs.c (avoid_expensive_constant): Fix formatting.
5203 2010-03-19 Michael Matz <matz@suse.de>
5206 * attribs.c (decl_attributes): When rebuilding a function pointer
5207 type use the same qualifiers as the original pointer type.
5209 2010-03-19 Martin Jambor <mjambor@suse.cz>
5211 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
5212 and is_gimple_ip_invariant_address.
5214 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5217 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5219 * config/arm/arm.c (arm_override_options): Turn off
5220 flag_dwarf2_cfi_asm for AAPCS variants.
5222 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5225 * config/arm/arm.c (emit_multi_reg_push): Update comments.
5226 Use PRE_MODIFY instead of PRE_DEC.
5227 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
5228 (vfp_emit_fstmd): Likewise.
5230 2010-03-19 Michael Matz <matz@suse.de>
5233 * builtins.c (expand_builtin_interclass_mathfn,
5234 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
5237 2010-03-19 Richard Guenther <rguenther@suse.de>
5239 PR tree-optimization/43415
5240 * tree-ssa-pre.c (phi_translate): Split out worker to ...
5241 (phi_translate_1): ... this.
5242 (phi_translate): Move all caching here. Cache all NARY
5243 and REFERENCE translations.
5245 2010-03-19 David S. Miller <davem@davemloft.net>
5247 With help from Eric Botcazou.
5248 * config/sparc/sparc.c: Include dwarf2out.h.
5249 (emit_pic_helper): Delete.
5250 (pic_helper_symbol_name): Delete.
5251 (pic_helper_emitted_p): Delete.
5252 (pic_helper_needed): New.
5253 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
5254 (get_pc_thunk_name): New.
5255 (load_pic_register): Remove 'delay_pic_helper' arg. Use
5256 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
5257 Set pic_helper_needed to true. Don't call emit_pic_helper.
5258 (sparc_expand_prologue): Update load_pic_register call.
5259 (sparc_output_mi_thunk): Likewise.
5260 (sparc_file_end): Emit a hidden comdat symbol for the PIC
5261 thunk if possible. Output CFI information as needed.
5263 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5264 Jack Howarth <howarth@bromo.med.uc.edu>
5267 * config/i386/i386.h: Fix ABI on darwin x86-32.
5269 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
5271 * tree.h: Declare make_decl_rtl_for_debug.
5272 * varasm.c (make_decl_rtl_for_debug): New.
5273 * dwarf2out.c (rtl_for_decl_location): Call it.
5274 * cfgexpand.c (expand_debug_expr): Call it.
5276 2010-03-18 Jakub Jelinek <jakub@redhat.com>
5279 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
5283 * var-tracking.c (vt_init_cfa_base): Do nothing if
5284 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
5286 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
5289 * var-tracking.c (canonicalize_vars_star): New.
5290 (dataflow_post_merge_adjust): Use it.
5292 2010-03-18 Jakub Jelinek <jakub@redhat.com>
5295 * var-tracking.c (non_suitable_const): New function.
5296 (add_uses): For DEBUG_INSNs with constants, don't record any
5297 value, instead just the constant value itself.
5298 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
5299 is not VAR_LOC_UNKNOWN_P, set var to the constant.
5300 (emit_notes_in_bb): Likewise.
5301 (emit_note_insn_var_location): For onepart variables if
5302 cur_loc is a VOIDmode constant, use DECL_MODE.
5304 2010-03-18 Martin Jambor <mjambor@suse.cz>
5307 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
5308 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
5309 all non-clones. Moved call redirection...
5310 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
5311 (cgraph_materialize_all_clones): Dispose of all
5312 combined_args_to_skip bitmaps.
5313 (verify_cgraph_node): Do not check for edges pointing to wrong
5314 nodes in inline clones.
5315 * tree-inline.c (copy_bb): Call
5316 cgraph_redirect_edge_call_stmt_to_callee.
5317 * ipa.c (cgraph_remove_unreachable_nodes): Call
5318 cgraph_node_remove_callees even when there are used clones.
5320 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
5322 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
5324 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
5327 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
5330 2010-03-18 Michael Matz <matz@suse.de>
5333 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
5334 into sqrt(x) if we need to preserve signed zeros.
5336 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
5337 Eric Botcazou <ebotcazou@adacore.com>
5339 PR rtl-optimization/43360
5340 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
5341 note if we don't know its invariant status.
5343 2010-03-18 Michael Matz <matz@suse.de>
5345 PR tree-optimization/43402
5346 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
5347 PHI chains of ssa names registered for update.
5349 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
5352 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
5353 non-offsettable and pre_modify update addressing.
5354 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
5355 and "2" alternatives "#".
5356 (*movdd_softfloat32): Make all alternatives "#";
5357 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
5358 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
5359 (*movdf_softfloat32): Make all alternatives "#";
5360 (movdi): Use the new DIFD mode iterator to create a common splitter
5361 for movdi, movdf and movdd patterns.
5363 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
5365 * common.opt (dumpdir): Remove redundant tab.
5367 2010-03-17 Martin Jambor <mjambor@suse.cz>
5369 PR tree-optimization/43347
5370 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
5371 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
5373 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
5375 PR rtl-optimization/42216
5376 * regrename.c (create_new_chain): New function, broken out from...
5377 (scan_rtx_reg): ... here. Call it. Handle the case where we are
5378 appending a use to an empty chain.
5379 (build_def_use): Remove previous changes that convert OP_INOUT to
5380 OP_OUT operands; instead detect the case where an OP_INOUT operand
5381 uses a previously untracked register and create an empty chain for it.
5383 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5385 * doc/extend.texi (Function Attributes): Rewrite unfinished
5386 sentence in ms_abi documentation.
5388 2010-03-17 Alan Modra <amodra@gmail.com>
5390 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
5391 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
5392 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
5393 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
5395 2010-03-16 Richard Henderson <rth@redhat.com>
5398 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
5399 (lower_try_finally): Save and restore eh_seq around the expansion
5402 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
5404 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
5405 statements before splitting block.
5407 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5409 * doc/sourcebuild.texi (Testsuites): Fix markup.
5410 Use pathnames relative to gcc/testsuite.
5411 (Test Directives): Move description of how timeout is determined.
5412 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
5413 (C Tests): Correct gcc.misc-tests directory.
5414 Framework tests now live in gcc.test-framework.
5416 2010-03-16 Richard Guenther <rguenther@suse.de>
5419 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
5420 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
5422 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
5423 Alexandre Oliva <aoliva@redhat.com>
5425 PR tree-optimization/42917
5426 * lambda-code.c (remove_iv): Skip debug statements.
5427 (lambda_loopnest_to_gcc_loopnest): Likewise.
5428 (not_interesting_stmt): Debug statements are not interesting.
5430 2010-03-16 Jakub Jelinek <jakub@redhat.com>
5434 * cselib.c (cselib_preserve_constants,
5435 cfa_base_preserved_val): New static variables.
5436 (preserve_only_constants): New function.
5437 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
5438 clear its REG_VALUES. If cselib_preserve_constants, don't
5439 empty the whole hash table, but preserve there VALUEs with constants,
5440 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
5441 (cselib_preserve_cfa_base_value): New function.
5442 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
5443 (cselib_init): Change argument to int bitfield. Set
5444 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
5446 (cselib_finish): Clear cselib_preserve_constants and
5447 cfa_base_preserved_val.
5448 * cselib.h (enum cselib_record_what): New enum.
5449 (cselib_init): Change argument to int.
5450 (cselib_preserve_cfa_base_value): New prototype.
5451 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
5452 * dse.c (dse_step1): Likewise.
5453 * cfgcleanup.c (thread_jump): Likewise.
5454 * sched-deps.c (sched_analyze): Likewise.
5455 * gcse.c (local_cprop_pass): Likewise.
5456 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
5457 If FN is non-NULL, call the callback always and whenever it returns
5458 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
5459 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
5460 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
5461 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
5462 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
5463 * var-tracking.c: Include recog.h.
5464 (bb_stack_adjust_offset): Remove.
5465 (vt_stack_adjustments): Don't call it, instead just gather the
5466 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
5467 (adjust_stack_reference): Remove.
5468 (compute_cfa_pointer): New function.
5469 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
5470 (struct adjust_mem_data): New type.
5471 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
5473 (get_address_mode): New function.
5474 (replace_expr_with_values): Use it.
5475 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
5476 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
5477 (adjust_sets): Remove.
5478 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
5479 Use get_address_mode.
5480 (get_adjusted_src): Remove.
5481 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
5482 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
5483 (add_with_sets): Don't call adjust_sets.
5484 (fp_setter, vt_init_cfa_base): New functions.
5485 (vt_initialize): Change return type to bool. Move most of pool etc.
5486 initialization to the beginning of the function from end. Pass
5487 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
5488 If !frame_pointer_needed, call vt_stack_adjustment before mos
5489 vector is filled, call vt_init_cfa_base if argp/framep has been
5490 eliminated to sp. If frame_pointer_needed and argp/framep has
5491 been eliminated to hard frame pointer, set
5492 hard_frame_pointer_adjustment and call vt_init_cfa_base after
5493 encountering fp setter in the prologue. For MO_ADJUST, call
5494 log_op_type before pusing the op into mos vector, not afterwards.
5495 Call adjust_insn before cselib_process_insn/add_with_sets,
5496 call cancel_changes (0) afterwards.
5497 (variable_tracking_main_1): Adjust for vt_initialize calling
5498 vt_stack_adjustments and returning whether it succeeded or not.
5500 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
5502 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
5505 2010-03-15 Jakub Jelinek <jakub@redhat.com>
5507 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
5509 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
5510 drap_reg has not been set.
5512 2010-03-15 Michael Matz <matz@suse.de>
5515 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
5516 use it to expand block copies.
5517 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
5518 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
5519 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
5521 2010-03-15 Richard Guenther <rguenther@suse.de>
5523 PR tree-optimization/43367
5524 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
5527 2010-03-15 Richard Guenther <rguenther@suse.de>
5529 PR tree-optimization/43317
5530 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
5532 2010-03-15 Martin Jambor <mjambor@suse.cz>
5534 PR tree-optimization/43141
5535 * tree-sra.c (create_abstract_origin): New function.
5536 (modify_function): Call create_abstract_origin.
5538 2010-03-15 Chris Demetriou <cgd@google.com>
5540 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
5543 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
5546 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
5547 call insert_out_of_ssa_copy for default definitions.
5549 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
5551 * graphite-clast-to-gimple.c (my_long_long): Defined.
5552 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
5553 * graphite-sese-to-poly.c (my_long_long): Defined.
5554 (scop_ivs_can_be_represented): Use it.
5556 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
5558 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
5559 graphite-max-bbs-per-function, and loop-block-tile-size.
5560 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
5562 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
5564 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
5566 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
5567 forward declaration.
5568 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
5569 (add_upper_bounds_from_estimated_nit): New.
5570 (build_loop_iteration_domains): Use it.
5572 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
5574 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
5576 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
5579 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
5580 should be an INTEGER_CST. Also handle CASE_CONVERT.
5582 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
5584 * graphite.c (graphite_initialize): To bound the number of bbs per
5585 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
5586 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
5587 * doc/invoke.texi: Document it.
5589 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
5591 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
5592 * graphite-sese-to-poly.h (build_poly_scop): Same.
5594 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
5596 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
5597 the number of parameters in the scop. Use as an upper bound
5598 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
5599 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
5600 * doc/invoke.texi: Document it.
5602 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
5604 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
5605 * doc/c-tree.texi: Remove.
5606 * doc/generic.texi: Merge c-tree.texi here.
5607 * doc/gccint.texi (Trees): Remove menu entry.
5608 (c-tree.texi): Remove @include.
5609 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
5610 * doc/languages.texi (Reading RTL): Ditto.
5612 2010-03-12 Steve Ellcey <sje@cup.hp.com>
5615 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
5617 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
5620 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
5621 code added to work around reload clobbering CONST insns.
5623 2010-03-12 Jakub Jelinek <jakub@redhat.com>
5625 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
5626 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
5627 (cselib_preserve_only_values): Remove retain argument, don't
5628 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
5629 * cselib.h (cselib_preserve_only_values): Remove retain argument.
5630 * var-tracking.c (micro_operation): Move insn field before union.
5631 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
5632 (struct variable_tracking_info_def): Remove n_mos field, change
5633 mos into a vector of micro_operations.
5634 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
5635 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
5636 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
5637 changing into a vector.
5638 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
5639 come before all other uops generated by add_stores.
5640 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
5642 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
5643 a vector. Run just one pass over the bbs instead of separate counting
5644 and computation phase.
5645 (vt_finalize): Free VTI (bb)->mos vector instead of array.
5648 * tree-inline.c (remap_decls): Put old_var rather than origin_var
5649 into *nonlocalized_list vector.
5650 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
5651 even if origin is non-NULL.
5652 (gen_variable_die): Likewise.
5653 (process_scope_var): Don't change origin.
5654 (gen_decl_die): Likewise.
5655 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
5656 before adding new edges instead of after it, fix moving over
5659 2010-03-11 David S. Miller <davem@davemloft.net>
5661 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
5663 * configure: Rebuild.
5665 2010-03-11 Martin Jambor <mjambor@suse.cz>
5667 PR tree-optimization/43257
5668 * tree.c (assign_assembler_name_if_neeeded): New function.
5669 (free_lang_data_in_cgraph): Assembler name assignment moved to the
5671 * tree.h (assign_assembler_name_if_neeeded): Declare.
5672 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
5673 the function if needed.
5675 2010-03-11 Chris Demetriou <cgd@google.com>
5677 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
5678 include/stdint-gcc.h, and include/stdint.h world-readable.
5680 2010-03-11 Richard Guenther <rguenther@suse.de>
5682 PR tree-optimization/43255
5683 * tree-vrp.c (process_assert_insertions_for): Do not insert
5684 asserts for trivial conditions.
5686 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5688 PR tree-optimization/43280
5689 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
5690 generation. Move calculation of size out of the if branch.
5691 (find_bswap): Modify compare number generation.
5693 2010-03-11 Richard Guenther <rguenther@suse.de>
5696 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
5697 (input_gimple_stmt): Fixup handled component types during
5698 operand read. Also fix up decls in ADDR_EXPRs.
5700 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
5702 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
5703 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
5705 2010-03-10 Jan Hubicka <jh@suse.cz>
5708 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
5709 * varasm.c (get_variable_section): Don't do that here...
5710 (make_decl_rtl): ... and here.
5711 (do_assemble_alias): Produce decl RTL.
5712 (assemble_alias): Likewise.
5714 2010-03-10 Jakub Jelinek <jakub@redhat.com>
5717 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
5718 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
5720 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
5721 (based_loc_descr): Only express drap or vdrap regno based expressions
5722 using DW_OP_fbreg when not optimizing.
5723 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
5724 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
5725 REG_CFA_SET_VDRAP note.
5727 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
5729 PR tree-optimization/43236
5730 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
5731 error in calculation of base address in reverse iteration case.
5732 (generate_builtin): Take number of latch executions if the statement
5735 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
5738 * tree-eh.c: Include pointer-set.h.
5739 (lower_eh_dispatch): Filter out duplicate case labels and
5740 remove the unneeded edge when the label is unused. Return
5741 true when some edges are removed.
5742 (execute_lower_eh_dispatch): When any lowering resulted in
5743 removing an edge, also delete unreachable blocks.
5745 2010-03-10 Jakub Jelinek <jakub@redhat.com>
5748 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
5749 UNSPEC_MACHOPIC_OFFSET.
5751 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
5754 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
5755 (m68k_delegitimize_address): New function.
5757 2010-03-09 Jakub Jelinek <jakub@redhat.com>
5760 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
5763 * var-tracking.c (adjust_sets): New function.
5764 (count_with_sets, add_with_sets): Use it.
5765 (get_adjusted_src): New inline function.
5766 (add_stores): Use it.
5769 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
5770 call cselib_dummy_expand_value_rtx_cb instead of
5771 cselib_expand_value_rtx_cb.
5774 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
5775 * config/i386/i386.c: Include debug.h and dwarf2out.h.
5776 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
5777 and .cfi_endproc around the pic thunks.
5778 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
5779 all queued unwind info register saves are saved before the call.
5780 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
5781 considered as sp-=4 for unwind info and the pop as sp+=4 which
5782 also clobbers dest, but doesn't actually restore it.
5785 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
5786 RTX_FRAME_RELATED_P.
5788 2010-03-09 Jie Zhang <jie@codesourcery.com>
5790 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
5791 whitespaces in output template.
5793 2010-03-09 Jie Zhang <jie@codesourcery.com>
5795 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
5798 2010-03-08 Jakub Jelinek <jakub@redhat.com>
5800 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
5801 builtins.exp in a separate job.
5803 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
5805 * graphite-sese-to-poly.c (add_param_constraints): Use
5806 lower_bound_in_type and upper_bound_in_type.
5808 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
5810 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
5811 instead of unsigned_type_node.
5813 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
5814 Reza Yazdani <reza.yazdani@amd.com>
5817 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
5818 on pointer type parameters.
5820 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
5824 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
5825 handle conversions from pointer to integers.
5826 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
5827 induction variable, to be able to work with code generated by CLooG.
5828 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
5829 (build_poly_scop): Bail out if we cannot codegen a loop.
5831 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
5833 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
5834 code generation with gloog_error.
5836 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
5838 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
5839 Call fold_convert on all the returned values.
5840 (expand_scalar_variables_expr): Pass to
5841 expand_scalar_variables_ssa_name the type of the resulting expression.
5843 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
5845 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
5846 ppl_min_for_le_pointset.
5847 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
5848 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
5850 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
5852 * graphite-dependences.c (map_into_dep_poly): Removed.
5853 (dependence_polyhedron_1): Use combine_context_id_scat.
5855 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
5857 * graphite-poly.h (struct poly_scattering): Add layout documentation.
5858 (struct poly_bb): Same.
5859 (combine_context_id_scat): New.
5861 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
5864 * sese.c (name_defined_in_loop_p): Return false for default
5867 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
5869 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
5870 and clean up the logic.
5872 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
5874 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
5877 2010-03-08 Jakub Jelinek <jakub@redhat.com>
5879 * var-tracking.c (remove_cselib_value_chains): Define only for
5881 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
5882 delete_slot_part, emit_notes_for_differences_1): Don't call
5883 remove_cselib_value_chains here.
5884 (set_slot_part, emit_notes_for_differences_2): Don't call
5885 add_cselib_value_chains here.
5886 (preserved_values): New vector.
5887 (preserve_value): New function.
5888 (add_uses, add_stores, vt_add_function_parameters): Use it
5889 instead of cselib_preserve_value.
5890 (changed_values_stack): New vector.
5891 (check_changed_vars_0): New function.
5892 (check_changed_vars_1, check_changed_vars_2): Use it.
5893 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
5894 changed_values_stack VALUEs.
5895 (vt_emit_notes): For all preserved_values call
5896 add_cselib_value_chains. If ENABLE_CHECKING call
5897 remove_cselib_value_chains before verifying value_chains is empty.
5898 Initialize and free changed_values_stack.
5899 (vt_initialize): Initialize preserved_values.
5900 (vt_finalize): Free preserved_values.
5902 2010-03-08 Richard Guenther <rguenther@suse.de>
5904 PR tree-optimization/43269
5905 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
5908 2010-03-08 Martin Jambor <mjambor@suse.cz>
5910 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
5911 (ipa_is_param_called): Removed.
5912 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
5913 (ipa_print_node_params): Do not print the called flag.
5914 (ipa_write_node_info): Do not stream the called flag.
5915 (ipa_read_node_info): Likewise.
5917 2010-03-07 Jakub Jelinek <jakub@redhat.com>
5920 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
5921 * cselib.c (struct expand_value_data): Add dummy field.
5922 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
5924 (cselib_dummy_expand_value_rtx_cb): New function.
5925 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
5927 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
5928 * var-tracking.c: Include pointer-set.h.
5929 (variable): Change n_var_parts to char from int. Add
5930 cur_loc_changed and in_changed_variables fields.
5931 (variable_canonicalize): Remove.
5932 (shared_var_p): New inline function.
5933 (unshare_variable): Maintain cur_loc_changed and
5934 in_changed_variables fields. If var was in changed_variables,
5935 replace it there with new_var. Just copy cur_loc instead of
5936 resetting it to something else.
5937 (variable_union): Don't recompute cur_loc. Use shared_var_p.
5938 (dataflow_set_union): Don't call variable_canonicalize.
5939 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
5940 of their DEBUG_EXPR_TREE_DECLs.
5941 (canonicalize_loc_order_check): Verify that cur_loc is NULL
5942 and in_changed_variables and cur_loc_changed is false.
5943 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
5944 and cur_loc_changed. Don't update cur_loc here.
5945 (variable_merge_over_src): Don't call variable_canonicalize.
5946 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
5947 removing loc that is equal to cur_loc, clear cur_loc,
5948 set cur_loc_changed and ensure variable_was_changed is called.
5949 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
5950 compare pointers in cur_loc check, if it is equal to loc,
5951 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
5952 (variable_different_p): Remove compare_current_location argument,
5953 don't compare cur_loc.
5954 (dataflow_set_different_1): Adjust variable_different_p caller.
5955 (variable_was_changed): If dv had some var in changed_variables
5956 already, reset in_changed_variables flag for it and propagate
5957 cur_loc_changed over to the new variable. On empty var
5958 always set cur_loc_changed. Set in_changed_variables on whatever
5959 var is added to changed_variables.
5960 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
5961 Use shared_var_p. When removing loc that is equal to cur_loc,
5962 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
5963 end, don't set it to something else, just call variable_was_changed.
5964 (delete_slot_part): Use shared_var_p. When cur_loc equals to
5965 loc being removed, clear cur_loc and set cur_loc_changed.
5966 Set cur_loc_changed if all locations have been removed.
5967 (struct expand_loc_callback_data): New type.
5968 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
5969 allocated. Always create SUBREGs if simplify_subreg failed.
5970 Prefer to use cur_loc, when that fails and still in
5971 changed_variables (and seen first time) recompute it. Set
5972 cur_loc_changed of variables which had to change cur_loc and
5973 compute elcd->cur_loc_changed if any of the subexpressions used
5974 had to change cur_loc.
5975 (vt_expand_loc): Adjust to pass arguments in
5976 expand_loc_callback_data structure.
5977 (vt_expand_loc_dummy): New function.
5978 (emitted_notes): New variable.
5979 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
5980 that weren't used for any other decl in current
5981 emit_notes_for_changes call call vt_expand_loc_dummy to update
5982 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
5983 first loc_chain location if NULL before. Always use just
5984 cur_loc instead of first loc_chain location. When cur_loc_changed
5985 is false, when not --enable-checking=rtl just don't emit any note.
5986 When rtl checking, compute the note and assert it is the same
5987 as previous note. Clear cur_loc_changed and in_changed_variables
5988 at the end before removing from changed_variables.
5989 (check_changed_vars_3): New function.
5990 (emit_notes_for_changes): Traverse changed_vars to call
5991 check_changed_vars_3 on each changed var.
5992 (emit_notes_for_differences_1): Clear cur_loc_changed and
5993 in_changed_variables. Recompute cur_loc of new_var.
5994 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
5995 (vt_emit_notes): Initialize and destroy emitted_notes.
5997 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
5999 PR rtl-optimization/42220
6000 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
6001 Use verify_reg_tracked to determine if we should use OP_OUT rather
6003 (build_def_use): If we see an in-out operand for a register that we
6004 know nothing about, treat is an output if possible, fail the block if
6007 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
6010 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
6013 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
6016 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
6017 uses of relevant DEFs that are dead outside the loop too.
6019 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
6021 * var-tracking.c (dataflow_set_merge): Swap src and src2.
6023 2010-01-13 Jakub Jelinek <jakub@redhat.com>
6025 * var-tracking.c (values_to_unmark): New variable.
6026 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
6027 values_to_unmark vector. Moved body to...
6028 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
6029 instead queue it into values_to_unmark vector.
6030 (vt_find_locations): Free values_to_unmark vector.
6032 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
6034 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
6035 (site.exp): Export them when plugins are enabled.
6037 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
6040 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
6042 (chrec_fold_multiply): Same.
6044 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
6047 * c-decl.c (build_compound_literal): Return early if init is
6050 2010-03-04 Martin Jambor <mjambor@suse.cz>
6052 PR tree-optimization/43164
6053 PR tree-optimization/43191
6054 * tree-sra.c (type_consists_of_records_p): Reject records with
6055 zero-size bit-fields at the end.
6057 2010-03-04 Mike Stump <mikestump@comcast.net>
6059 * Makefile.in (TAGS): Remove *.y.
6061 2010-03-04 Richard Guenther <rguenther@suse.de>
6063 PR tree-optimization/40761
6064 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
6066 (my_rev_post_order_compute): New function.
6067 (init_pre): Call it.
6069 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
6072 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
6073 decrease the cost of an IV candidate when the cost is infinite.
6075 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6077 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
6078 Use '3DNow!' for the extension of that name, ensure normal space
6080 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
6082 2010-03-03 Jeff Law <law@redhat.com>
6084 * PR middle-end/32693
6085 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
6086 than gen_rtx_SUBREG.
6087 (extract_bit_field_1): Likewise.
6089 2010-03-03 Janis Johnson <janis187@us.ibm.com>
6091 * doc/sourcebuild.texi (Test directives): Document that arguments
6092 include-opts and exclude-opts are now optional for dg-skip-if,
6093 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
6095 2010-03-03 Jason Merrill <jason@redhat.com>
6098 * cgraph.h (varpool_node): Add extra_name field.
6099 * varpool.c (varpool_extra_name_alias): New.
6100 (varpool_assemble_decl): Emit extra name aliases.
6101 (varpool_mark_needed_node): Look past an extra name alias.
6102 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
6103 * lto-streamer-in.c (lto_input_tree): Read it.
6104 * lto-streamer-out.c (output_unreferenced_globals): Write it.
6106 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
6108 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
6109 (sparc*-*-solaris2*): ...this.
6111 2010-03-03 Jakub Jelinek <jakub@redhat.com>
6114 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
6115 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
6116 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
6117 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
6120 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
6121 fallthrough to default handling, just with want_address 0 instead of 2.
6122 For single element lists, add_AT_loc directly, otherwise create an
6123 artificial variable DIE and stick location list to it.
6126 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
6127 (VAL_EXPR_HAS_REVERSE): Define.
6128 (reverse_op): New function.
6129 (add_stores): For reversible operations add an extra MO_VAL_USE.
6131 2010-03-02 Jason Merrill <jason@redhat.com>
6133 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
6135 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
6137 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
6138 (sparc64-*-linux*): Likewise.
6139 (sparc64-*-solaris2*): Include assembler files before linker ones.
6140 (sparc-*-solaris2*): Simplify and reorder to match previous case.
6141 * config/sparc/gas.h: Delete.
6142 * config/sparc/sol2-64.h: Add copyright notice.
6143 * config/sparc/sol2-gas-bi.h: Likewise.
6144 * config/sparc/sol2-gld.h: Likewise.
6145 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
6146 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
6147 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
6148 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
6149 (sparc_elf_asm_named_section): Rename into...
6150 (sparc_solaris_elf_asm_named_section): ...this. Always define.
6152 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
6154 * config/alpha/alpha.c (override_options): Fix -mtune error message.
6156 2010-03-02 Jeff Law <law@redhat.com>
6159 * reload1.c (rtx_p, substitute_stack): Declare.
6160 (substitute): Record addresses of changed rtxs.
6161 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
6162 Restore the original rtx when complete.
6163 (reload): Free subsitute_stack when complete.
6165 2010-03-02 Janis Johnson <janis187@us.ibm.com>
6167 * doc/gccint.texi (menu): Add Testsuites as a chapter.
6168 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
6170 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
6171 LTO Testing, gcov Testing, profopt Testing, compat Testing,
6172 Torture Tests): Change from subsection to section.
6174 2010-03-02 Jakub Jelinek <jakub@redhat.com>
6175 Steven Bosscher <steven@gcc.gnu.org>
6177 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
6180 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
6183 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
6184 the assignment from the new induction variable to the assignment
6185 of the value from the original loop PHI function.
6187 2010-03-01 Janis Johnson <janis187@us.ibm.com>
6188 Daniel Jacobowitz <dan@codesourcery.com>
6190 * doc/sourcebuild.texi (Test directives): Clarify options to
6193 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6195 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
6196 Disable cfi directives unless GCC and gas agree on using read-only
6197 .eh_frame sections for 64-bit.
6198 * configure: Regenerate.
6200 2010-03-01 Richard Guenther <rguenther@suse.de>
6202 PR tree-optimization/43220
6203 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
6204 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
6206 2010-03-01 Richard Guenther <rguenther@suse.de>
6207 Martin Jambor <mjambor@suse.cz>
6210 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
6211 gimplified parameters.
6213 2010-03-01 Christian Bruel <christian.bruel@st.com>
6215 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
6217 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
6219 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
6221 2010-03-01 Richard Guenther <rguenther@suse.de>
6224 * expr.c (expand_assignment): Use the alias-oracle to tell
6225 if the rhs aliases the result decl.
6227 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6230 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
6231 to sol_gt_pch_get_address.
6232 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
6233 64-bit, SPARC and x86.
6234 (sol_gt_pch_get_address): New function.
6236 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
6238 * toplev.h (inform_n, error_n): Declare.
6239 * diagnostic.c (inform_n, error_n): New function.
6241 2010-03-01 Jakub Jelinek <jakub@redhat.com>
6243 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
6244 has no rtl yet when processing local_decls, queue it and recheck
6245 if deferred stack allocation hasn't assigned it rtl.
6247 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
6249 * config/sh/sh.c (unspec_bbr_uid): New.
6250 (gen_block_redirect): Use it instead of INSN_UID.
6251 (gen_far_branch): Likewise.
6253 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
6255 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
6256 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
6258 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6260 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
6261 (Warning Options): -Wno-conversion-null is valid for
6262 Objective-C++ as well.
6263 * doc/tm.texi (Named Address Spaces): Likewise.
6264 * doc/plugins.texi (Plugins): Replace TABs with spaces.
6265 * doc/tree-ssa.texi (Tree SSA): Likewise.
6267 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
6270 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
6271 by default. Don't set the default arch for
6272 i[34567]86-*-darwin*|x86_64-*-darwin*.
6274 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
6277 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
6278 default. Set the default 32bit/64bit archs with $with_arch
6279 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
6281 2010-02-27 Richard Guenther <rguenther@suse.de>
6283 PR tree-optimization/43186
6284 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
6285 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
6286 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
6287 unroller iterations.
6289 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
6291 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
6292 required and i[34567]86-*-* targets don't support 64bit ISA.
6294 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
6297 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
6300 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
6302 * config.gcc: Set the default arch at least to Prescott for
6303 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
6304 if SSE math is enabled.
6306 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
6308 * diagnostic.c (diagnostic_initialize): Update.
6309 (diagnostic_report_diagnostic): Test inhibit_notes_p for
6311 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
6312 (diagnostic_inhibit_notes): New.
6313 * toplev.c (process_options): inhibit notes with -fcompare-debug.
6315 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
6318 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
6319 * doc/standards.texi: Likewise.
6320 * doc/extend.texi: Likewise.
6321 * doc/trouble.texi: Likewise.
6322 * doc/cppopts.texi: Likewise.
6323 * doc/install.texi: Likewise.
6324 * c.opt (std=c90,std=gnu90): New options.
6325 * c-opts.c (c_common_handle_option): Handle them.
6327 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
6330 * c-decl.c (undeclared_variable): Use an informative note.
6332 2010-02-26 Richard Guenther <rguenther@suse.de>
6334 PR tree-optimization/43186
6335 * gimple.h (gimple_fold): Remove.
6336 * gimple.c (gimple_fold): Remove. Inline into single user ...
6337 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
6338 Try harder for conditions.
6340 2010-02-26 Jakub Jelinek <jakub@redhat.com>
6343 * function.c (used_types_insert): Don't skip through named pointer
6344 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
6345 and it is different from the main variant's type.
6347 2010-02-26 Nick Clifton <nickc@redhat.com>
6349 * config/rx/rx.md (sminsi3): Remove bogus alternative.
6351 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
6353 * config.gcc: Support --with-fpmath=sse for x86.
6355 * config/i386/ssemath.h: New.
6357 * doc/install.texi (--with-fpmath=sse): Documented.
6359 2010-02-26 Richard Guenther <rguenther@suse.de>
6361 PR tree-optimization/43188
6362 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
6363 vector types of over-aligned element type.
6365 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
6368 * config/i386/i386.c (expand_vec_perm_blend): Use correct
6369 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
6371 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6373 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
6375 2010-02-26 Jakub Jelinek <jakub@redhat.com>
6377 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
6378 * var-tracking.c: Include diagnostic.h.
6379 (debug_dv): New function.
6380 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
6383 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
6384 (add_value_chain, add_value_chains, remove_value_chain,
6385 remove_value_chains): Handle DEBUG_EXPRs.
6386 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
6389 * regcprop.c (struct queued_debug_insn_change): New type.
6390 (struct value_data_entry): Add debug_insn_changes field.
6391 (struct value_data): Add n_debug_insn_changes field.
6392 (debug_insn_changes_pool): New variable.
6393 (free_debug_insn_changes, apply_debug_insn_changes,
6394 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
6395 (kill_value_one_regno): Call free_debug_insn_changes if needed.
6396 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
6398 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
6400 (copyprop_hardreg_forward_1): Don't call apply_change_group for
6401 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
6402 changes, call cprop_find_used_regs via note_stores.
6403 (copyprop_hardreg_forward): When copying vd from predecessor
6404 which has any queued DEBUG_INSN changes, make sure the pointers are
6405 cleared. At the end call df_analyze and then if there are any
6406 DEBUG_INSN changes queued at the end of some basic block for still
6407 live registers, apply them.
6408 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
6410 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
6412 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
6415 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
6417 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
6418 targets. Set the default with_cpu/with_arch from arch/cpu.
6419 Allow x86-64 and native for with_cpu/with_arch.
6421 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
6423 * ebitmap.c: Change calls to verify_popcount with calls to
6424 sbitmap_verify_popcount.
6425 (ebitmap_clear_bit): Fixed map->cacheindex test and
6426 map>cache update when bit clearing results in an empty
6429 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
6432 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
6433 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
6434 and support both V2DF and V2DI modes.
6435 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
6436 support both V2DF and V2DI modes.
6437 (general): Delete trailing whitespace from a few patterns.
6439 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6440 V2DF/V2DI interleave high/low builtins.
6442 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
6445 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
6446 interleave high/low functions.
6448 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
6450 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
6451 #pragma extern_prefix.
6453 2010-02-25 Jakub Jelinek <jakub@redhat.com>
6456 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
6457 BLKmode, assert op0 is a MEM and just adjust its mode.
6460 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
6461 if bitpos isn't multiple of mode's bitsize.
6463 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
6465 * c.opt (-ftemplate-depth=): New.
6466 (-ftemplate-depth-): Deprecate.
6467 * optc-gen.awk: Handle -ftemplate-depth=.
6468 * opth-gen.awk: Likewise.
6469 * c-opts.c (c_common_handle_option): Likewise.
6470 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
6472 2010-02-24 Jason Merrill <jason@redhat.com>
6474 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
6476 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6478 * cfg.c (alloc_aux_for_block): Remove inline.
6479 (alloc_aux_for_edge): Likewise.
6481 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6483 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
6485 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6487 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
6488 * config/i386/sol2-gas.h: New file.
6489 * config.gcc (i[34567]86-*-solaris2*): Use it.
6491 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
6494 * c-typeck.c (ep_convert_and_check): New.
6495 (build_conditional_expr): Use it.
6496 (build_binary_op): Likewise.
6498 2010-02-24 Jakub Jelinek <jakub@redhat.com>
6500 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
6503 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
6504 bounds even for -O+.
6505 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
6506 expr needs to have DECL_NAME set.
6508 2010-02-24 Nick Clifton <nickc@redhat.com>
6510 * config/mep/mep.c: Include gimple.h.
6511 (mep_function_uses_sp): Delete unused function.
6512 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
6513 parameters. Use unsigned integers to count args. Return a
6514 NULL_RTX instead of an error_mark_node. Toidy up formatting.
6516 2010-02-23 Jakub Jelinek <jakub@redhat.com>
6519 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
6520 greater or equal to nelt instead of 2 * nelt.
6521 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
6524 2010-02-23 Jason Merrill <jason@redhat.com>
6527 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
6528 in cfun->local_decls even if they have register types.
6531 * stor-layout.c (place_field): Don't warn about unnecessary
6532 DECL_PACKED if the type is packed.
6534 2010-02-23 Jakub Jelinek <jakub@redhat.com>
6537 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
6538 GOTOFF relocs, even when the base reg isn't pic pointer.
6540 2010-02-23 Michael Matz <matz@suse.de>
6543 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
6544 (expand_gimple_basic_block): Generate and use debug temps if there
6545 are debug uses left after the last real use of TERed ssa names.
6546 Unlink debug immediate uses when they are expanded.
6548 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
6551 * config/i386/i386.c (override_options): Reorganise to provide
6552 better error messages.
6554 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
6557 * graphite-scop-detection.c (create_single_exit_edge): Move
6558 the call to find_single_exit_edge to....
6559 (create_sese_edges): ...here. Don't handle multiple edges
6560 exiting the function.
6561 (build_graphite_scops): Don't handle multiple edges
6562 exiting the function.
6564 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
6567 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
6568 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
6570 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
6573 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
6575 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
6578 * c-typeck.c (convert_arguments): Print declaration location.
6579 * c-common.c (validate_nargs): Rename as
6580 builtin_function_validate_nargs.
6581 (check_builtin_function_arguments): Update.
6583 2010-02-22 Richard Guenther <rguenther@suse.de>
6586 * tree-inline.c (declare_return_variable): Use the type of
6587 the call stmt lhs if available.
6589 2010-02-22 Duncan Sands <baldrick@free.fr>
6591 * passes.c (register_pass): Always consider all pass lists when
6592 ref_pass_instance_number is zero.
6594 2010-02-22 Richard Guenther <rguenther@suse.de>
6596 PR tree-optimization/42749
6597 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
6598 parameter. Do arithmetic in the original type.
6599 (update_accumulator_with_ops): Likewise.
6600 (adjust_accumulator_values): Adjust.
6602 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6604 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
6605 (QI to BLKmode splitter): New splitter.
6607 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
6609 * config/i386/i386.c (initial_ix86_tune_features): Turn on
6610 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
6612 2010-02-22 Richard Guenther <rguenther@suse.de>
6614 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
6616 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
6618 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
6619 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
6620 ($(T)crti.o, $(T)crtn.o): Remove rules.
6622 2010-02-21 Tobias Burnus <burnus@net-b.de>
6625 * doc/invoke.texi (-fassociative-math): Document that this
6626 option is automatically enabled for Fortran.
6628 2010-02-20 David S. Miller <davem@davemloft.net>
6630 * configure.ac: Test if linker and assembler properly support
6631 GOTDATA_OP relocations.
6632 * configure: Rebuild.
6633 * config.in: Likewise.
6634 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
6635 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
6636 (movsi_high_pic): Likewise.
6637 (movdi_lo_sum_pic): Likewise.
6638 (movdi_high_pic): Likewise.
6639 (movsi_pic_gotdata_op): New pattern.
6640 (movdi_pic_gotdata_op): Likewise.
6641 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
6642 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
6644 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
6647 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
6648 attribute to ssemul.
6649 (xop_mulv2div2di3_high): Ditto.
6651 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6654 * c.opt (Wconversion-null): New option.
6655 * doc/invoke.texi (Wconversion-null): Document.
6657 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
6659 * common.opt (Wlarger-than-): Add Undocumented.
6661 2010-02-19 Mike Stump <mikestump@comcast.net>
6663 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
6665 2010-02-19 Jason Merrill <jason@redhat.com>
6668 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
6669 * configure: Likewise.
6671 2010-02-20 Alan Modra <amodra@gmail.com>
6674 * cgraph.h (cgraph_make_decl_local): Declare.
6675 * cgraph.c (cgraph_make_decl_local): New function.
6676 (cgraph_make_node_local): Use it.
6677 * cgraphunit.c (cgraph_function_versioning): Likewise.
6678 * ipa.c (function_and_variable_visibility): Likewise.
6680 2010-02-19 Jakub Jelinek <jakub@redhat.com>
6683 * except.c (sjlj_emit_function_enter): Don't call
6684 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
6686 * rtl.h (add_reg_br_prob_note): Remove prototype.
6688 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
6691 * c-common.c (conversion_warning): Remove widening conversions
6692 before checking the conversion of integers to reals.
6694 2010-02-19 Mike Stump <mikestump@comcast.net>
6697 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
6700 * cgraphunit.c (process_function_and_variable_attributes): Check
6701 DECL_PRESERVE_P instead of looking up attribute "used".
6702 * ipa-pure-const.c (check_decl): Likewise.
6703 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
6704 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
6705 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
6706 instead of attribute "used".
6707 * config/sol2-c.c (solaris_pragma_init): Likewise.
6708 (solaris_pragma_fini): Likewise.
6710 2010-02-19 Jakub Jelinek <jakub@redhat.com>
6712 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
6713 Use XCNEW instead of xcalloc.
6714 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
6715 XNEW instead of xmalloc.
6716 (get_fields): Use XNEWVEC instead of xmalloc.
6719 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
6720 populate vars array.
6721 (create_new_general_access): For debug stmts just reset value.
6722 (get_stmt_accesses): For accesses within debug stmts just record them
6723 using add_access_to_acc_sites instead of preventing the peeling or
6724 counting them as accesses.
6727 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
6729 2010-02-19 Richard Guenther <rguenther@suse.de>
6731 PR tree-optimization/42916
6732 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
6735 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
6737 * configure.ac: Replace all uses of changequote in macro arguments
6738 with proper quoting.
6740 2010-02-19 Jakub Jelinek <jakub@redhat.com>
6743 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
6745 2010-02-19 Richard Guenther <rguenther@suse.de>
6747 PR tree-optimization/42944
6748 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
6749 test for aliasing with errno.
6751 2010-02-19 Jakub Jelinek <jakub@redhat.com>
6754 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
6755 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
6756 * dojump.c: Include output.h.
6757 (inv): New inline function.
6758 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
6759 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
6760 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
6761 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
6762 argument, pass it down to other calls.
6763 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
6764 add REG_BR_PROB note to the conditional jump.
6765 * cfgexpand.c (add_reg_br_prob_note): Removed.
6766 (expand_gimple_cond): Don't call it, add the probability
6767 as last argument to jumpif_1/jumpifnot_1.
6768 * Makefile.in (dojump.o): Depend on output.h.
6769 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
6771 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
6772 * stmt.c (do_jump_if_equal): Likewise.
6773 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
6774 * loop-unswitch.c (compare_and_jump_seq): Likewise.
6775 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
6777 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
6778 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
6779 jumpifnot_1 callers.
6780 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
6782 (store_expr): Adjust jumpifnot caller.
6783 (store_constructor): Adjust jumpif caller.
6786 * gimplify.c (gimple_boolify): For __builtin_expect call
6787 gimple_boolify also on its first argument.
6789 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
6791 * configure.ac (gnu-unique-object): Wrap regexps using [] in
6793 (__stack_chk_fail): Ditto. Remove quadrigraphs.
6794 * configure: Regenerated.
6796 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6798 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
6799 lang_hooks.types_compatible_p instead of comptypes.
6801 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
6803 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
6804 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
6805 if __prefer_thumb__ is defined.
6807 2010-02-18 Martin Jambor <mjambor@suse.cz>
6809 PR tree-optimization/43066
6810 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
6811 array with zero-sized element type.
6813 2010-02-18 Jakub Jelinek <jakub@redhat.com>
6815 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
6816 rtx, allocate struct var_loc_node here and return it to the
6817 caller, and only if it is actually needed.
6818 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
6819 move it earlier and return immediately if it returns NULL.
6821 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
6823 * config/sparc/gas.h: New file. Restore
6824 TARGET_ASM_NAMED_SECTION to its ELF default.
6825 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
6827 * config/sparc/sparc.c (sparc_elf_asm_named_section):
6828 Likewise. Add ATTRIBUTE_UNUSED to prototype.
6829 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
6830 after sparc/sysv4.h.
6832 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
6834 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
6836 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
6838 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
6839 patterns from predicated pattern.
6841 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
6844 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
6845 for insn mnemonic suffix.
6847 2010-02-17 Richard Guenther <rguenther@suse.de>
6849 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
6852 2010-02-17 Jakub Jelinek <jakub@redhat.com>
6855 * caller-save.c (save_call_clobbered_regs): If BB ends with
6856 a DEBUG_INSN, move any notes in between last real insn and the last
6857 DEBUG_INSN after the last DEBUG_INSN.
6859 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
6861 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
6862 Fix return type. Fix argument type. Explain meaning of return value.
6864 2010-02-16 Richard Guenther <rguenther@suse.de>
6866 PR tree-optimization/41043
6867 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
6868 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
6870 (vrp_visit_phi_node): ... but only for loop PHI nodes.
6872 2010-02-16 Ira Rosen <irar@il.ibm.com>
6874 PR tree-optimization/43074
6875 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
6876 * tree-vect-loop.c (vect_analyze_loop_operations): Add
6877 vectorizable cycles in hybrid SLP check.
6878 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
6880 2010-02-16 Richard Guenther <rguenther@suse.de>
6882 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
6883 (true_dependence): If memrefs_conflict_p computes must-alias
6884 trust it. Move TBAA check after offset-based disambiguation.
6885 (canon_true_dependence): Likewise.
6887 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
6889 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
6890 * doc/invoke.texi: Document it.
6891 * var-tracking.c: Include toplev.h and params.h.
6892 (vt_find_locations): Return bool indicating success. Compute
6893 hash sizes unconditionally. Check new parameter, report.
6894 (variable_tracking_main_1): Check vt_find_locations results and
6895 retry. Renamed from...
6896 (variable_tracking_main): ... this. New wrapper to preserve
6897 flag_var_tracking_assignments.
6898 * Makefile.in (var-tracking.o): Adjust dependencies.
6900 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
6901 Jakub Jelinek <jakub@redhat.com>
6904 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
6905 if weak_import attribute is present.
6906 * config/darwin.c (machopic_select_section): Likewise.
6908 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
6910 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
6911 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
6912 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
6913 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
6915 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
6918 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
6921 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
6922 Rewrite text to refer to the names.
6924 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
6926 * config/i386/i386-builtin-types.def
6927 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
6928 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
6929 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
6930 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
6931 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
6932 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
6933 IX86_BUILTIN_VPERMIL2PS256.
6934 (MULTI_ARG_4_DF2_DI_I): Defined.
6935 (MULTI_ARG_4_DF2_DI_I1): Defined.
6936 (MULTI_ARG_4_SF2_SI_I): Defined.
6937 (MULTI_ARG_4_SF2_SI_I1): Defined.
6938 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
6939 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
6940 __builtin_ia32_vpermil2ps256.
6941 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
6942 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
6943 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
6944 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
6945 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
6946 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
6947 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
6948 CODE_FOR_xop_vpermil2v8sf3.
6949 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
6950 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
6951 * config/i386/xopintrin.h (_mm_permute2_pd): New.
6952 (_mm256_permute2_pd): New.
6953 (_mm_permute2_ps): New.
6954 (_mm256_permute2_ps): New.
6956 2010-02-15 Nick Clifton <nickc@redhat.com>
6958 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
6959 boolean parameters. Use emit_jump_insn when emitting a pop
6960 instruction containing a return insn.
6961 (push): Use 'true' rather than '1' as second parameter to F.
6962 (h8300_expand_prologue): Likewise.
6963 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
6964 (h8300_expand_epilogue): Likewise.
6966 2010-02-15 Richard Guenther <rguenther@suse.de>
6969 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
6972 2010-02-15 Nick Clifton <nickc@redhat.com>
6974 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
6977 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
6979 * intl.c (fake_ngettext): New function.
6980 * intl.h (fake_ngettext): Declare.
6981 (ngettext): Define macro.
6982 * collect2.c (notice_translated): New function.
6983 (main): Use notice_translated and ngettext.
6984 * collect2.h (notice_translated): Declare.
6986 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
6988 * reorg.c (delete_computation): Comment fixes.
6989 * caller-save.c (setup_save_areas): Idem.
6990 * sel-sched-dump.c (dump_lv_set): Idem.
6993 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6995 * config/s390/s390.c (s390_sched_init): New function.
6996 (TARGET_SCHED_INIT): Target hook defined.
6998 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
6999 Jack Howarth <howarth@bromo.med.uc.edu>
7000 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
7003 Partial revert of unintended change in fix for PR41605.
7004 * config/darwin.h: Fix typo.
7005 * config/darwin9.h: Same.
7007 2010-02-11 Jakub Jelinek <jakub@redhat.com>
7009 * c-pch.c (pch_init): Clear v.
7011 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
7014 * graphite-scop-detection.c (graphite_can_represent_scev): Call
7015 graphite_can_represent_init for MULT_EXPR.
7017 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
7021 * graphite-sese-to-poly.c (remove_phi): New.
7022 (translate_scalar_reduction_to_array): Call remove_phi.
7024 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
7027 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
7028 * graphite-clast-to-gimple.h (gloog): Update declaration.
7029 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
7030 * graphite-poly.h (struct poly_bb): Add missing comments.
7031 (struct scop): Add poly_scop_p field.
7033 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
7034 * graphite.c (graphite_transform_loops): Build the polyhedral
7035 representation for each scop before code generation.
7036 * sese.c (rename_variables_in_operand): Removed.
7037 (rename_variables_in_expr): Return the renamed expression.
7038 (rename_sese_parameters): New.
7039 * sese.h (rename_sese_parameters): Declared.
7041 2010-02-11 Richard Guenther <rguenther@suse.de>
7043 PR tree-optimization/42998
7044 * tree-ssa-pre.c (create_expression_by_pieces): Treat
7045 POINTER_PLUS_EXPR properly.
7047 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
7048 Changpeng Fang <changpeng.fang@amd.com>
7051 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
7052 the cost of an IV candidate when the IV is used in a test against zero.
7054 * gcc.dg/tree-ssa/ivopts-3.c: New.
7056 2010-02-11 Richard Guenther <rguenther@suse.de>
7059 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
7060 pointer-vs-decl case by swapping refs. Handle some cases
7061 of pointer-vs-decl disambiguations more conservatively.
7062 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
7063 to false after expanding.
7065 2010-02-11 Richard Guenther <rguenther@suse.de>
7068 * gcc.c (process_command): Handle LTO file@offset case more
7071 2010-02-11 Jakub Jelinek <jakub@redhat.com>
7073 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
7074 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
7076 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
7078 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
7079 if MEM's mode size isn't DWARF2_ADDR_SIZE.
7080 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
7081 Optimize eq/ne comparisons when both arguments are known to be
7083 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
7084 Don't mask operands unnecessarily if they are known to be already
7087 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
7089 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
7092 2010-02-10 Richard Guenther <rguenther@suse.de>
7094 PR tree-optimization/43017
7095 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
7096 for wrapping signed arithmetic.
7098 2010-02-10 Jakub Jelinek <jakub@redhat.com>
7101 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
7102 if no debug info should be emitted for it.
7104 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
7106 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
7107 note when flag_exceptions is set.
7109 2010-02-10 Duncan Sands <baldrick@free.fr>
7111 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
7113 2010-02-10 Richard Guenther <rguenther@suse.de>
7116 * tree.c (get_unwidened): Handle constants.
7117 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
7119 2010-02-10 Martin Jambor <mjambor@suse.cz>
7122 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
7123 check for variable argument counts independently.
7125 2010-02-10 Christian Bruel <christian.bruel@st.com>
7128 * config/sh/sh.c (find_barrier): Increase length for non delayed
7129 conditional branches.
7131 2010-02-10 Christian Bruel <christian.bruel@st.com>
7133 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
7135 2010-02-10 Jakub Jelinek <jakub@redhat.com>
7137 * builtins.c (set_builtin_user_assembler_name): Also handle
7138 ffs if int is smaller than word.
7140 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
7143 * ira-conflicts.c (get_dup): Remove.
7144 (process_reg_shuffles): Add new parameter. Use it as an
7145 additional guard for copy generation.
7146 (add_insn_allocno_copies): Rewrite.
7148 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
7150 * common.opt (fsched2-use-traces): Preserved for backward
7152 * doc/invoke.texi: Remove the documentation about option
7153 -fsched2-use-traces.
7154 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
7155 flag_sched2_use_traces.
7156 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
7157 the backward compatibility flag section.
7159 2010-02-09 Richard Guenther <rguenther@suse.de>
7161 PR tree-optimization/43008
7162 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
7163 make HEAP variables initialized from global memory if they
7164 are not known builtin functions.
7165 (find_func_aliases): Adjust.
7167 2010-02-09 Richard Guenther <rguenther@suse.de>
7169 PR tree-optimization/43000
7170 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
7171 arithmetic manually.
7173 2010-02-08 Jakub Jelinek <jakub@redhat.com>
7175 PR tree-optimization/42931
7176 * tree-loop-linear.c (try_interchange_loops): Don't call
7177 double_int_mul if estimated_loop_iterations failed.
7179 2010-02-08 Martin Jambor <mjambor@suse.cz>
7182 * tree-sra.c (build_accesses_from_assign): Do not mark in
7183 should_scalarize_away_bitmap if stmt has volatile ops.
7184 (sra_modify_assign): Do not process assigns piecemeal if if stmt
7187 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
7189 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
7191 2010-02-07 Adam Nemet <adambnmet@gmail.com>
7193 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
7196 2010-02-07 Andrew Pinski <pinskia@gmail.com>
7199 * df-core.c (df_finish_pass): Change type of saved_flags to int.
7201 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
7204 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
7205 to unknown_dependence.
7206 (graphite_legal_transform_dr): Handle the unknown_dependence.
7207 (graphite_carried_dependence_level_k): Same.
7209 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
7211 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
7213 2010-02-07 Richard Guenther <rguenther@suse.de>
7216 * expr.c (get_inner_reference): Always initialize *pbitsize.
7218 2010-02-07 Richard Guenther <rguenther@suse.de>
7221 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
7222 new ARRAY_REFs on variable size element or minimal index arrays.
7224 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
7225 gimple_fold_indirect_ref.
7227 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
7230 * arm.c (arm_override_options): Just return if the user has specified
7231 an invalid fpu name.
7233 2010-02-03 Jason Merrill <jason@redhat.com>
7236 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
7237 i386_pe_maybe_record_exported_symbol.
7239 2010-02-05 Steve Ellcey <sje@cup.hp.com>
7242 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
7243 (pa_delegitimize_address): New function.
7245 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
7247 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
7248 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
7250 2010-02-05 Richard Guenther <rguenther@suse.de>
7253 * lto-streamer-in.c (get_resolution): Deal with references
7254 to undefined functions.
7256 2010-02-05 Richard Guenther <rguenther@suse.de>
7258 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
7259 (fold_const_aggregate_ref): Likewise.
7260 (ccp_fold_stmt): Substitute loads.
7261 (maybe_fold_reference): Verify types before substituting.
7263 (fold_gimple_assign): Unshare properly.
7264 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
7266 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
7268 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
7269 for rs6000_gen_cell_microcode.
7271 2010-02-04 Richard Guenther <rguenther@suse.de>
7273 PR rtl-optimization/42952
7274 * dse.c (const_or_frame_p): Remove MEM handling.
7276 2010-02-04 Nick Clifton <nickc@redhat.com>
7278 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
7279 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
7280 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
7281 (mn10300_asm_output_mi_thunk): New function.
7282 (mn10300_can_output_mu_thunk): New function.
7283 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
7284 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
7285 (FUNCTION_ARG): Delete incorrect comment.
7287 2010-02-03 Jason Merrill <jason@redhat.com>
7290 * fold-const.c (operand_equal_p): Handle erroneous types.
7292 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
7294 * config/h8300/h8300.md (can_delay): Fix attibute condition.
7296 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
7298 PR rtl-optimization/42941
7299 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
7302 2010-02-03 Jason Merrill <jason@redhat.com>
7305 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
7307 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
7310 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
7311 (cselib_reset_table): Renamed from...
7312 (cselib_reset_table_with_next_value): ... this.
7313 (cselib_get_next_uid): Renamed from...
7314 (cselib_get_next_unknown_value): ... this.
7315 * cselib.c (next_uid): Renamed from...
7316 (next_unknown_value): ... this.
7317 (cselib_clear_table): Adjust.
7318 (cselib_reset_table): Adjust. Renamed from...
7319 (cselib_reset_table_with_next_value): ... this.
7320 (cselib_get_next_uid): Adjust. Renamed from...
7321 (cselib_get_next_unknown_value): ... this.
7322 (get_value_hash): Use hash.
7323 (cselib_hash_rtx): Likewise.
7324 (new_cselib_val): Adjust. Set and dump uid.
7325 (cselib_lookup_mem): Pass next_uid as hash.
7326 (cselib_subst_to_values): Likewise.
7327 (cselib_log_lookup): Dump uid.
7328 (cselib_lookup): Pass next_uid as hash. Adjust.
7329 (cselib_process_insn): Adjust.
7330 (cselib_init): Initialize next_uid.
7331 (cselib_finish): Adjust.
7332 (dump_cselib_table): Likewise.
7333 * dse.c (canon_address): Dump value uid.
7334 * print-rtl.c (print_rtx): Print value uid.
7335 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
7337 (dv_uid): New function, sort of renamed from...
7338 (dv_htab_hash): ... this, reimplemented in terms of it and...
7339 (dv_uid2hash): ... this. New.
7340 (variable_htab_eq): Drop excess assertions.
7341 (tie_break_pointers): Removed.
7342 (canon_value_cmp): Compare uids.
7343 (variable_post_merge_New_vals): Print uids.
7344 (vt_add_function_parameters): Adjust.
7345 (vt_initialize): Reset table. Adjust.
7347 2010-02-03 Richard Guenther <rguenther@suse.de>
7349 PR tree-optimization/42944
7350 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
7351 (call_may_clobber_ref_p_1): Likewise. Properly handle
7352 malloc and calloc clobbering errno.
7354 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
7356 * doc/invoke.texi: Fix name of sched1 dump.
7358 * opts.c (decode_options): Set flag_tree_switch_conversion
7359 only conditionally on optimize >= 2.
7361 * gcse.c: Assorted comment fixes in pass description.
7363 2010-02-03 Anthony Green <green@moxielogic.com>
7365 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
7366 nop padding in order to maintain alignment of storage location of
7367 target function address.
7368 (moxie_trampoline_init): Store target function address at newly
7370 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
7372 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
7374 2010-02-03 Richard Guenther <rguenther@suse.de>
7377 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
7379 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7381 * config.gcc: Reenable check for obsolete targets.
7382 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
7383 mips-sgi-irix6.[0-4]*.
7385 2010-02-02 Nick Clifton <nickc@redhat.com>
7387 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
7388 constant size of 4 as being the same as 0.
7389 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
7390 can take values in the range 0..4.
7392 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
7395 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
7396 as _darwin10_Unwind_FindEnclosingFunction().
7397 * libgcc-libsystem.ver: New.
7399 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
7402 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
7403 implicitly set registers.
7405 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
7407 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
7408 (arm_override_options): Allow automatic selection of the thread
7409 pointer register if thumb2.
7410 (legitimize_pic_address): Improve code sequences for Thumb2.
7411 (arm_call_tls_get_addr): Likewise.
7412 (legitimize_tls_address): Likewise.
7413 * arm.md (pic_load_addr_arm): Delete. Replace with ...
7414 (pic_load_addr_32bit): ... this. New named pattern.
7415 * thumb2.md (pic_load_addr_thumb2): Delete.
7416 (pic_load_dot_plus_four): Delete.
7417 (tls_load_dot_plus_four): New named pattern.
7419 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7422 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
7423 Document fix for TLS bug.
7425 2010-01-31 Richard Guenther <rguenther@suse.de>
7427 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
7428 conservatively correct.
7430 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7434 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7436 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
7438 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7440 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
7442 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
7444 * config.gcc: Adjust order of makefile fragments for mingw targets.
7446 2010-01-31 Richard Guenther <rguenther@suse.de>
7449 * gimplify.c (gimplify_init_constructor): For volatile LHS
7450 initialize a temporary.
7452 2010-01-31 Matthias Klose <doko@ubuntu.com>
7454 * configure.ac: Fix __stack_chk_fail check for cross builds configured
7456 * configure: Regenerate.
7458 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
7460 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
7461 the same alias set and their sizes different constantness.
7462 (aliasing_component_refs_p): Revert 2009-10-24 change.
7464 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7466 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
7469 2010-01-29 Richard Guenther <rguenther@suse.de>
7471 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
7472 Assert we successfully updated the call.
7474 2010-01-29 Jakub Jelinek <jakub@redhat.com>
7476 PR rtl-optimization/42889
7477 * df.h (df_set_bb_dirty_nonlr): New prototype.
7478 * df-core.c (df_set_bb_dirty_nonlr): New function.
7479 * df-scan.c (df_insn_rescan): Call it instead of
7480 df_set_bb_dirty for DEBUG_INSNs.
7482 2010-01-29 Richard Guenther <rguenther@suse.de>
7485 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
7486 quadratic behavior in most cases.
7488 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
7491 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
7492 in the call to gen_x86_movsicc_0_m1.
7494 2010-01-28 Richard Guenther <rguenther@suse.de>
7496 PR tree-optimization/42871
7497 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
7499 2010-01-28 Richard Guenther <rguenther@suse.de>
7501 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
7502 into call arguments.
7504 2010-01-28 Richard Guenther <rguenther@suse.de>
7507 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
7508 the forwarder if the destination is an EH landing pad.
7510 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
7512 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
7513 block list passed to gimple_duplicate_sese_tail.
7514 (parallelize_loops): Avoid parallelization when the function
7516 Avoid parallelization when the preheader is IRREDUCIBLE.
7517 Try to optimize when estimated_loop_iterations_int is unresolved.
7518 Add the loop's location to the dump file.
7519 * tree-cfg.c (add_phi_args_after_redirect): Remove.
7520 (gimple_duplicate_sese_tail): Remove the check for the latch.
7521 Redirect nexits to the exit block.
7522 Remove handling of the incoming edges to the latch.
7523 Redirect the backedge from the copied latch to the exit bb.
7525 2010-01-28 Michael Matz <matz@suse.de>
7528 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
7529 Wrap force_reg into a sequence, emit it before user.
7531 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
7533 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
7535 (arm_legacy_rev): Likewise.
7536 (thumb_legacy_rev): Likewise.
7538 2010-01-27 Jakub Jelinek <jakub@redhat.com>
7540 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
7541 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
7542 on MEM's address failed, try avoid_constant_pool_reference and
7543 recurse if it returned something different.
7544 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
7545 address, try avoid_constant_pool_reference and recurse if it
7546 returned something different.
7547 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
7548 address and avoid_constant_pool_reference returned something
7549 different, don't set have_address.
7551 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
7554 * var-tracking.c (val_store): Add modified argument, obey it.
7556 (count_uses): Move down logging of main.
7557 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
7558 don't need resolution.
7559 (emit_notes_in_bb): Likewise.
7561 2010-01-27 Richard Guenther <rguenther@suse.de>
7564 * tree-inline.c (remap_decl): Delay remapping of SSA name
7565 default definitions until we need them.
7567 2010-01-27 Jakub Jelinek <jakub@redhat.com>
7569 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
7570 (rs6000_delegitimize_address): New function.
7572 * config/s390/s390.c (s390_delegitimize_address): Call
7573 delegitimize_mem_from_attrs.
7576 * tree-inline.c (cannot_copy_type_1): Removed.
7577 (copy_forbidden): Don't forbid copying of functions containing
7578 records/unions with variable length fields.
7580 2010-01-27 Christian Bruel <christian.bruel@st.com>
7584 * config/sh/sh.c (find_barrier): Increase length for non delayed
7585 conditional branches.
7587 2010-01-27 Matthias Klose <doko@ubuntu.com>
7589 * configure.ac (gnu-unique-object): Fix ldd version check.
7590 * configure: Regenerate.
7592 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7594 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
7596 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
7597 Test for HAVE_GNU_AS value.
7599 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7601 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
7602 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
7603 INT64_TYPE): Define.
7604 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
7605 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
7606 INT_LEAST64_TYPE): Define.
7607 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
7608 UINT_LEAST64_TYPE): Define.
7609 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
7610 INT_FAST64_TYPE): Define.
7611 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
7612 UINT_FAST64_TYPE): Define.
7613 (INTMAX_TYPE, UINTMAX_TYPE): Define.
7614 (INTPTR_TYPE, UINTPTR_TYPE): Define.
7615 (SIG_ATOMIC_TYPE): Define.
7617 2010-01-26 Richard Guenther <rguenther@suse.de>
7619 * df-scan.c (df_scan_set_bb_info): Remove assert.
7620 (df_insn_rescan_debug_internal): Merge asserts.
7621 (df_install_ref): Likewise.
7622 (df_mark_reg): Use bitmap_set_range.
7623 (df_hard_reg_used_p): Remove assert.
7624 (df_hard_reg_used_count): Likewise.
7626 2010-01-26 Richard Guenther <rguenther@suse.de>
7628 PR rtl-optimization/42685
7629 * web.c (web_main): Ignore DEBUG_INSNs.
7631 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
7633 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
7635 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
7636 Fix types of fndecl and arglist parameters.
7638 2010-01-26 Richard Guenther <rguenther@suse.de>
7641 * tree-eh.c (unsplit_eh): Skip debug insns.
7643 2010-01-26 Richard Guenther <rguenther@suse.de>
7645 PR tree-optimization/42250
7646 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
7648 2010-01-26 Jakub Jelinek <jakub@redhat.com>
7651 * omp-low.c (expand_omp_sections): Only use single_pred if
7652 l2_bb is single_pred_p.
7654 2010-01-25 Christian Bruel <christian.bruel@st.com>
7657 * config/sh/sh.c (find_barrier): Increase length for non delayed
7658 conditional branches.
7659 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
7661 2010-01-24 David S. Miller <davem@davemloft.net>
7663 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
7664 define if not using GAS.
7665 * config/sparc/sparc.c (sparc_elf_asm_named_section):
7666 Likewise. Delete SECTION_MERGE code, which is only applicable
7669 2010-01-24 Mark Mitchell <mark@codesourcery.com>
7672 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
7673 mangling of va_list in system headers.
7675 2010-01-23 Toon Moene <toon@moene.org>
7677 * tree-predcom.c (combine_chains): Return NULL, not false.
7679 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
7681 * tree-loop-distribution.c (distribute_loop): Fix declaration and
7682 initialization of variable res to agree with return type.
7684 2010-01-22 Steve Ellcey <sje@cup.hp.com>
7686 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
7687 * tree-sra.c: Add include of expr.h.
7689 2010-01-22 Jakub Jelinek <jakub@redhat.com>
7691 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
7692 insert the debug stmt on the single non-EH edge from the stmt.
7694 2010-01-22 Richard Henderson <rth@redhat.com>
7697 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
7698 the RHS until after generate_subtree_copies has insertted its
7699 code before the current statement.
7701 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
7703 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
7705 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
7707 2010-01-21 Martin Jambor <mjambor@suse.cz>
7709 PR tree-optimization/42585
7710 * tree-sra.c (struct access): New field grp_total_scalarization.
7711 (dump_access): Dump the new field.
7712 (should_scalarize_away_bitmap): New variable.
7713 (cannot_scalarize_away_bitmap): Likewise.
7714 (sra_initialize): Allocate new bitmaps.
7715 (sra_deinitialize): Free new bitmaps.
7716 (create_access_1): New function.
7717 (create_access): Parts moved to create_access_1.
7718 (type_consists_of_records_p): New function.
7719 (completely_scalarize_record): Likewise.
7720 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
7721 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
7722 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
7724 (analyze_all_variable_accesses): Completely scalarize small eligible
7727 2010-01-21 Martin Jambor <mjambor@suse.cz>
7729 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
7731 2010-01-21 Andrew Haley <aph@redhat.com>
7733 * gcc.c (process_command): Move lang_specific_driver before
7734 setting cc_libexec_prefix.
7736 2010-01-21 Richard Guenther <rguenther@suse.de>
7739 * fold-const.c (negate_expr_p): Pretend only negative
7740 real constants are easily negatable.
7742 2010-01-20 Janis Johnson <janis187@us.ibm.com>
7743 Jason Merrill <jason@redhat.com>
7745 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
7746 (TYPE_TRANSPARENT_AGGR): this, for union and record.
7747 * calls.c (initialize argument_information): Handle it.
7748 * c-common.c (handle_transparent_union_attribute): Use new name.
7749 * c-decl.c (finish_struct): Ditto.
7750 * c-typeck.c (type_lists_compatible_p): Ditto.
7751 (convert_for_assignment): Use new name and also handle record.
7752 * function.c (aggregate_value_p): Handle it.
7753 (pass_by_reference): Ditto.
7754 (assign_parm_data_types): Ditto.
7755 * print-tree.c (print_node): Ditto.
7756 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
7757 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
7758 * tree.c (first_field): New fn.
7760 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
7763 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
7764 even when linking statically, for now.
7766 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
7769 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
7770 without a cselib val.
7771 (count_uses): Accept MO_VAL_SET with no val on stores.
7772 (add_stores): Likewise.
7774 2010-01-20 Jakub Jelinek <jakub@redhat.com>
7776 * var-tracking.c (check_value_val): Add a compile time assertion.
7777 (dv_is_decl_p): Simplify.
7778 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
7779 gcc_assert if ENABLE_CHECKING.
7781 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
7784 * var-tracking.c: Include tree-flow.h.
7785 (mem_dies_at_call): New.
7786 (dataflow_set_preserve_mem_locs): Use it.
7787 (dataflow_set_remove_mem_locs): Likewise.
7788 (dump_var): Renamed from dump_variable. Adjust all callers.
7789 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
7790 * Makefile.in (var-tracking.o): Adjust deps.
7792 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
7794 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
7796 2010-01-20 Richard Guenther <rguenther@suse.de>
7798 PR tree-optimization/42717
7799 * tree-ssa-dce.c (get_live_post_dom): Remove.
7800 (forward_edge_to_pdom): Take an arbitrary edge to copy
7801 degenerate PHI args from.
7802 (remove_dead_stmt): Use the first post-dominator even if it
7803 does not contain live statements as redirection destination.
7805 2010-01-20 Richard Guenther <rguenther@suse.de>
7807 * tree-inline.c (estimate_num_insns): Handle EH builtins.
7809 2010-01-20 Jakub Jelinek <jakub@redhat.com>
7811 * sel-sched.c (create_speculation_check): Remove set but not used
7813 (try_transformation_cache): Remove set but not used variable ds.
7814 (calculate_privileged_insns): Remove set but not used variables
7815 cur_insn and min_spec_insn.
7816 (find_best_expr): Remove set but not used variable avail_n.
7817 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
7819 * cgraphunit.c (assemble_thunk): Remove set but not used variable
7821 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
7822 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
7825 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
7828 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
7829 cpu types. Add support for *-sse3 cpu types.
7830 (x86_64-*-*): Ditto.
7832 2010-01-20 Jakub Jelinek <jakub@redhat.com>
7835 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
7836 argument, call initializer_constant_valid_p_1 instead of
7837 initializer_constant_valid_p, pass CACHE to it, return NULL
7838 immediately if first call returns NULL.
7839 (initializer_constant_valid_p_1): New function.
7840 (initializer_constant_valid_p): Use it.
7842 2010-01-20 Thomas Quinot <quinot@adacore.com>
7844 * tree.def (PLACEHOLDER_EXPR): Fix comment.
7846 2010-01-20 Jakub Jelinek <jakub@redhat.com>
7848 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
7849 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
7850 (loc_list_from_tree): Don't handle unsigned division. Handle
7851 signed modulo using DW_OP_{over,over,div,mul,minus}.
7852 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
7853 modulo instead of signed.
7855 2010-01-20 DJ Delorie <dj@redhat.com>
7857 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
7859 (h8300_emit_stack_adjustment): Propogate it.
7861 (h8300_expand_prologue): Likewise.
7862 (h8300_expand_epilogue): Likewise.
7864 2010-01-19 Michael Matz <matz@suse.de>
7866 PR tree-optimization/41783
7867 * tree-data-ref.c (toplevel): Include flags.h.
7868 (dump_data_dependence_relation): Also dump the inputs if the
7869 result will be unknown.
7870 (split_constant_offset_1): Look through some conversions.
7871 * tree-predcom.c (determine_roots_comp): Restart a new chain if
7872 the offset from last element is too large.
7873 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
7874 (reassociate_to_the_same_stmt): Handle vector registers.
7875 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
7877 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
7878 wide_prolog_niters argument, emit widening instructions.
7879 (vect_do_peeling_for_alignment): Adjust caller, use widened
7880 variant of the iteration cound.
7881 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
7883 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7886 * config/arm/neon-testgen.m (emit_automatics): New parameter
7887 features. Adjust for Fixed_return_reg feature.
7888 (test_intrinsic): Call emit_automatics with new feature.
7889 * config/arm/neon.ml: Update copyright years.
7890 (features): New Fixed_return_reg feature.
7891 (ops): Update feature for Vget_low.
7893 2010-01-19 Jakub Jelinek <jakub@redhat.com>
7895 PR tree-optimization/42719
7896 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
7900 * fwprop.c (all_uses_available_at): Return false if def_set dest
7901 is a REG that is used in def_insn.
7903 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
7905 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
7907 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
7910 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
7912 * target.h (struct gcc_target) <secondary_reload>: Change type
7913 of last argument to secondary_reload_info *.
7915 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
7918 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
7919 memory references with unaligned offsets. Remove CQImode handling.
7920 (unaligned_memory_operand): Return 1 for memory references with
7921 unaligned offsets. Remove CQImode handling.
7923 2010-01-18 Richard Guenther <rguenther@suse.de>
7926 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
7929 2010-01-18 Richard Guenther <rguenther@suse.de>
7931 PR tree-optimization/42781
7932 * tree-ssa-structalias.c (find_what_var_points_to): Skip
7933 restrict processing only if the original variable was artificial.
7935 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
7937 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
7938 find number of popped argument bytes.
7940 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
7941 Fix the text that describes the return value for invalid insns.
7943 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
7945 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
7946 Clarify what 'cost of the -dependence' is. Fix quoting.
7948 * toplev.c (default_get_pch_validity): Rename argument to "sz".
7949 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
7951 2010-01-17 Jakub Jelinek <jakub@redhat.com>
7953 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
7954 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
7956 2010-01-17 Richard Guenther <rguenther@suse.de>
7959 * function.c (split_complex_args): Take a VEC to modify.
7960 (assign_parms_augmented_arg_list): Build a VEC instead of
7961 a chain of PARM_DECLs.
7962 (assign_parms_unsplit_complex): Take a VEC of arguments.
7963 Do not fixup unmodified parms.
7964 (assign_parms): Deal with the VEC.
7965 (gimplify_parameters): Likewise.
7967 2010-01-17 Richard Guenther <rguenther@suse.de>
7969 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
7970 node existence check.
7971 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
7972 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
7973 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
7974 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
7975 (gimple_execute_on_growing_pred): Likewise.
7977 2010-01-17 Richard Guenther <rguenther@suse.de>
7979 PR tree-optimization/42773
7980 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
7981 (compute_antic_aux): Likewise.
7982 (compute_partial_antic_aux): Likewise.
7984 2010-01-17 Jie Zhang <jie.zhang@analog.com>
7987 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
7990 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
7992 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
7995 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
7996 Fix markup for strict argument.
7998 (TARGET_SCHED_REORDER2): Fix argument types.
8000 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
8001 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
8003 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
8004 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
8006 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
8009 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
8010 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
8011 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
8012 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
8013 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
8015 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
8017 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
8019 (TARGET_ASM_RELOC_RW_MASK): Add return type.
8020 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
8022 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
8024 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
8027 (TARGET_ASM_NAMED_SECTION): Fix argument list.
8029 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
8030 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
8032 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
8034 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
8036 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
8037 referring to it. Fix language.
8039 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
8041 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
8043 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
8045 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
8047 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
8048 '@var{stream}. Remove stray 'and'.
8050 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
8052 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
8054 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
8056 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
8057 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
8059 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
8060 Fix description of return value.
8061 Rename argument "sz" to "len."
8063 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
8064 Clarify meaning of 'true' return value.
8066 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
8068 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
8069 rep_mode versus mode_rep.
8071 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
8073 (TARGET_BUILTIN_DECL): Fix name.
8075 (TARGET_COMMUTATIVE_P): Fix type of first argument.
8077 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
8079 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
8081 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
8083 (TARGET_RELAXED_ORDERING): Use @deftypevr.
8085 (TARGET_GET_DRAP_RTX): Note that this is a hook.
8088 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
8089 Rename argument tm_fn to md_fn.
8091 (TARGET_OPTION_PRINT): Fix argument list.
8093 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
8096 * config/i386/i386.c (ix86_fixup_binary_operands):
8097 Revert FMA4 fixup of operands.
8099 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8102 * Makefile.in (write_entries_to_file, install-plugin):
8103 Use \012 instead of \n with tr.
8105 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
8107 * configure.ac (HAVE_AS_REF): New C macro.
8108 * configure: Regenerate.
8109 * config.in: Likewise.
8110 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
8112 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
8115 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
8117 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
8119 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
8121 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
8123 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
8125 (TARGET_IN_SMALL_DATA_P): Fix argument type.
8127 (TARGET_BINDS_LOCAL_P): Fix argument type.
8129 (TARGET_ASM_FILE_END): Use prototype.
8131 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
8133 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
8135 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
8137 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
8139 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
8140 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
8142 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
8143 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
8145 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
8146 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
8147 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
8148 (TARGET_ADDR_SPACE_CONVERT): Likewise.
8150 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
8152 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
8154 (TARGET_INIT_BUILTINS): Use prototype.
8156 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
8157 Put 'const char *' in braces. Fix parameter types.
8158 (TARGET_INVALID_CONVERSION): Fix parameter types.
8159 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
8160 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
8162 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
8165 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
8167 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
8169 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
8171 * doc/tm.texi (TARGET_HELP): Fix return type.
8173 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
8174 in braces. Fix argument types.
8176 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
8178 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
8180 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
8182 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
8183 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
8185 (TARGET_MANGLE_TYPE): Fix argument types.
8187 (TARGET_IRA_COVER_CLASSES): Use prototype.
8189 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
8191 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
8193 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
8195 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
8197 (TARGET_CALLEE_COPIES): Fix argument types.
8199 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
8201 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
8203 (TARGET_FUNCTION_VALUE): Fix argument types.
8205 (TARGET_RETURN_IN_MSB): Fix argument type.
8207 (TARGET_RETURN_IN_MEMORY): Fix argument types.
8209 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
8211 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
8213 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
8214 agree with return type.
8216 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
8218 2010-01-15 Jing Yu <jingyu@google.com>
8220 PR rtl-optimization/42691
8221 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
8222 a pseudo to a constant and are merged, and adjust comments.
8224 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
8226 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
8228 2010-01-15 Richard Guenther <rguenther@suse.de>
8231 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
8232 labels of computed or non-local gotos to the destination.
8233 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
8234 landing pad label is the first label.
8236 2010-01-15 Richard Guenther <rguenther@suse.de>
8238 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
8240 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8243 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
8244 to allow generation of the xssqrtdp instruction on power7.
8245 (sqrtdf2_fpr): Ditto.
8247 2010-01-14 Jakub Jelinek <jakub@redhat.com>
8250 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
8251 functions with noreturn attribute.
8254 * varasm.c (declare_weak): Add weak attribute to decl if it
8255 doesn't have one already.
8256 (assemble_external): Only add decls to weak_decls if they also
8257 have weak attribute.
8259 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
8261 * var-tracking.c (var_reg_delete): Don't delete the association
8262 between REGs and values or one-part variables if the register
8265 2010-01-14 Jakub Jelinek <jakub@redhat.com>
8268 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
8269 because its first operand is a non-localized variable.
8271 2010-01-14 Martin Jambor <mjambor@suse.cz>
8273 PR tree-optimization/42706
8274 * tree-sra.c (encountered_recursive_call): New variable.
8275 (encountered_unchangable_recursive_call): Likewise.
8276 (sra_initialize): Initialize both new variables.
8277 (callsite_has_enough_arguments_p): New function.
8278 (scan_function): Call decl and flags check only for IPA-SRA, check
8279 whether there is a recursive call and whether it has enough arguments.
8280 (all_callers_have_enough_arguments_p): New function.
8281 (convert_callers): Look for recursive calls only when
8282 encountered_recursive_call is set.
8283 (ipa_early_sra): Bail out either if
8284 !all_callers_have_enough_arguments_p or
8285 encountered_unchangable_recursive_call.
8287 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
8289 * sel-sched.c: Add 2010 to copyright years.
8290 * sel-sched-ir.c: Likewise.
8291 * sel-sched-ir.h: Likewise.
8293 2010-01-14 Martin Jambor <mjambor@suse.cz>
8295 PR tree-optimization/42714
8296 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
8297 constructors specially.
8299 2010-01-14 Andi Kleen <ak@linux.intel.com>
8301 * config/i386/drivers-i386.c (detect_caches_intel):
8302 Add l2sizekb parameter and fill in.
8303 (host_detect_local_cpu): Add l2sizekb, fill in.
8304 Add Atom small cache heuristic.
8306 2010-01-14 Andi Kleen <ak@linux.intel.com>
8308 * config/i386/drivers-i386.c (detect_caches_cpuid4):
8309 Add level3 parameter and fill in.
8310 (detect_caches_intel): Handle level3 cache.
8312 2010-01-14 Andi Kleen <ak@linux.intel.com>
8314 * config/i386/drivers-i386.c (host_detect_local_cpu):
8315 Fix core duo detection.
8317 2010-01-14 Andi Kleen <ak@linux.intel.com>
8319 * config/i386/drivers-i386.c (host_detect_local_cpu):
8322 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
8324 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
8325 (rs6000_variable_issue_1): this. Use...
8326 (rs6000_variable_issue): here. Reimplement. Print debug info.
8328 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
8330 * sel-sched-ir.c (sel_restore_other_notes): Rename to
8331 sel_restore_notes. Update all callers. Call reemit_notes
8334 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
8336 PR rtl-optimization/42246
8337 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
8340 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
8342 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
8343 all successors is the same as number of successors in current region.
8345 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
8347 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
8348 to rename is not separable. Otherwise check that its LHS is not NULL.
8350 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
8352 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
8354 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
8356 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
8357 available registers when failed to discover LHS register class.
8358 Fix indentation. Update comment.
8360 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
8361 Alexander Monakov <amonakov@ispras.ru>
8363 PR rtl-optimization/42389
8364 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
8366 (advance_state_on_fence): Likewise.
8367 (sel_target_adjust_priority): Print debug output only when
8368 sched_verbose >= 4, not 2.
8369 (get_expr_cost): Do not issue all unique insns on the next cycle.
8370 (fill_insns): Initialize can_issue_more from the value saved
8372 * sel-sched-ir.c (flist_add): New parameter issue_more.
8373 Init FENCE_ISSUE_MORE with it.
8374 (merge_fences): Likewise.
8375 (init_fences): Update call to flist_add.
8376 (add_to_fences, add_clean_fence_to_fences)
8377 (add_dirty_fence_to_fences): Likewise.
8378 (move_fence_to_fences): Update call to merge_fences.
8379 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
8381 * sel-sched-ir.h (struct _fence): New field issue_more.
8382 (FENCE_ISSUE_MORE): New accessor macro.
8384 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
8386 PR rtl-optimization/42388
8387 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
8388 that have no predecessors nor successors. Do not call move_bb_info
8389 for empty blocks outside of current region.
8391 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
8393 PR rtl-optimization/42294
8394 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
8395 * sel-sched.c (move_exprs_to_boundary): Transitively add all
8396 originators' originators.
8398 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
8400 PR rtl-optimization/39453
8401 PR rtl-optimization/42246
8402 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
8404 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
8406 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
8407 Alexander Monakov <amonakov@ispras.ru>
8410 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
8411 (maybe_tidy_empty_bb): ... here. Make static. Add new
8412 argument. Update all callers.
8413 (tidy_control_flow): ... and here. Recompute topological order
8414 of basic blocks in region if necessary.
8415 (sel_redirect_edge_and_branch): Change return type. Return true
8416 if topological order might have been invalidated.
8417 (purge_empty_blocks): Export and move from...
8418 * sel-sched.c (purge_empty_blocks): ... here.
8419 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
8420 (maybe_tidy_empty_bb): Delete prototype.
8421 (purge_empty_blocks): Declare.
8423 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
8425 PR rtl-optimization/42249
8426 * sel-sched.c (try_replace_dest_reg): When chosen register
8427 and original register is the same, do not bail out early, but
8428 still check all original insns for validity of replacing destination
8429 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
8432 2010-01-14 Jakub Jelinek <jakub@redhat.com>
8435 Port from no-undefined-overflow branch:
8436 2009-03-09 Richard Guenther <rguenther@suse.de>
8438 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
8440 2010-01-14 Richard Guenther <rguenther@suse.de>
8443 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
8445 2010-01-14 Ira Rosen <irar@il.ibm.com>
8447 PR tree-optimization/42709
8448 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
8449 as scalar type in creation of constant vector operand.
8451 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8454 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
8455 (check-parallel-%): Match `testsuite' directory component only
8458 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
8460 PR translation/39521
8461 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
8464 2010-01-13 Richard Guenther <rguenther@suse.de>
8466 PR tree-optimization/42730
8467 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
8470 2010-01-13 Steve Ellcey <sje@cup.hp.com>
8473 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
8474 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
8477 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
8479 * config/bfin/libgcc-bfin.ver: Regenerate based on current
8480 libgcc-std.ver. Add entries for ___smulsi3_highpart and
8481 ___umulsi3_highpart.
8483 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
8484 rather than schedule_insns if the pass is enabled.
8486 2010-01-13 Martin Jambor <mjambor@suse.cz>
8488 PR tree-optimization/42704
8489 * tree-sra.c (sra_modify_assign): Do not delete assignments to
8492 2010-01-13 Martin Jambor <mjambor@suse.cz>
8494 PR tree-optimization/42703
8495 * tree-sra.c (analyze_access_subtree): Check that we can build a
8496 reference to the original data within the aggregate.
8498 2010-01-13 Richard Guenther <rguenther@suse.de>
8500 PR tree-optimization/42705
8501 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
8503 2010-01-13 Richard Guenther <rguenther@suse.de>
8506 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
8508 2010-01-13 Jakub Jelinek <jakub@redhat.com>
8511 * var-tracking.c (values_to_unmark): New variable.
8512 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
8513 values_to_unmark vector. Moved body to...
8514 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
8515 instead queue it into values_to_unmark vector.
8516 (vt_find_locations): Free values_to_unmark vector.
8518 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
8520 * config/s390/s390.c (override_options): Set
8521 default of max-pending-list-length to 256
8523 2010-01-13 Richard Guenther <rguenther@suse.de>
8526 * tree-pass.h (PROP_gimple_lcx): New.
8527 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
8528 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
8529 before the final cleanup_eh.
8530 (dump_properties): Dump PROP_gimple_lcx.
8531 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
8532 (tree_lower_complex_O0): Remove.
8533 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
8534 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
8535 tree_lower_complex, schedule TODO_update_ssa.
8536 * lto-streamer-out.c (output_function): Stream the functions
8538 * lto-streamer-in.c (input_function): Likewise.
8539 (lto_read_body): Do not override them here.
8541 2010-01-12 Joseph Myers <joseph@codesourcery.com>
8544 * c-typeck.c (build_c_cast): Fold value cast to union type before
8545 wrapping it in a CONSTRUCTOR.
8547 2010-01-12 Jakub Jelinek <jakub@redhat.com>
8549 PR rtl-optimization/42699
8550 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
8553 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8555 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
8556 SUBTARGET_WARN_UNUSED_SPEC): Move ...
8557 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
8558 SUBTARGET_WARN_UNUSED_SPEC): ... here
8559 * config/mips/iris5.h (LIBGCC_SPEC): Define.
8561 2010-01-12 Julian Brown <julian@codesourcery.com>
8563 * config/arm/neon-schedgen.ml (Utils): Don't try to
8564 open missing module.
8565 (find_with_result): New.
8567 2010-01-12 Jakub Jelinek <jakub@redhat.com>
8570 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
8571 sharing when canonicalizing ({lt,ge}u (plus a b) b).
8573 PR tree-optimization/42645
8574 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
8575 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
8576 decl_map, set processing_debug_stmt to -1 and return name without
8579 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
8581 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
8582 binutils version, and reword target configuration description.
8584 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
8586 * config/avr/avr.h (LINKER_NAME): Remove.
8588 2010-01-11 Janis Johnson <janis187@us.ibm.com>
8591 * config/rs6000/rs6000.c (rs6000_override_options): On targets
8592 that support VSX, warn for -mno-altivec if vsx is not disabled,
8595 2010-01-11 Joseph Myers <joseph@codesourcery.com>
8596 Shujing Zhao <pearly.zhao@oracle.com>
8598 PR translation/42469
8599 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
8600 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
8601 character between option name and help text.
8602 * c.opt (imultilib): Likewise.
8604 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
8606 * lto-streamer-out.c (output_unreferenced_globals): Output static
8609 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
8611 PR rtl-optimization/42621
8612 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
8613 optimizing for size.
8614 (duplicate_computed_gotos): Remove now-redundant check.
8616 2010-01-10 Steve Ellcey <sje@cup.hp.com>
8619 * configure.ac: Save and restore LDFLAGS and LIBS
8620 * configure: Regenerate.
8622 2010-01-10 Richard Guenther <rguenther@suse.de>
8625 * builtins.c (fold_builtin_strlen): Add type argument and
8626 convert the resulting length to it.
8627 (fold_builtin_1): Adjust.
8629 2010-01-09 Jakub Jelinek <jakub@redhat.com>
8631 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
8632 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
8634 (num_insns_constant_wide): Adjust for that change.
8636 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
8639 * web.c (union_defs): Add used argument, to combine uses of
8641 (entry_register): Adjust type and tests of used argument.
8642 (web_main): Widen used for new use. Pass it to union_defs.
8643 * df.h (union_defs): Adjust prototype.
8645 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
8648 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
8649 uses in new incoming argument. Free body.
8650 (reset_debug_uses_in_loop): New.
8651 (analyze_insn_to_expand_var): Call the latter if the former found
8652 anything. Fix whitespace. Reject invalid dest overlaps before
8653 going through all insns in the loop.
8655 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
8658 * haifa-sched.c (dying_use_p): Debug insns don't count.
8660 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
8663 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
8664 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
8665 (verify_gimple_call): Reject LHS in noreturn calls.
8667 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
8671 * tree-vect-loop-manip.c (adjust_info): New type.
8672 (adjust_vec): New pointer to vector.
8673 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
8674 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
8675 (slpeel_update_phis_for_duplicate_loop): Use them.
8676 (slpeel_update_phi_nodes_for_guard1): Likewise.
8677 (slpeel_update_phi_nodes_for_guard2): Likewise.
8678 (slpeel_tree_peel_loop_to_edge): Likewise.
8679 (vect_update_ivs_after_vectorizer): Likewise.
8681 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
8683 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
8684 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
8686 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
8688 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
8689 bogus uninitialized warning.
8691 2010-01-09 Richard Guenther <rguenther@suse.de>
8694 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
8695 the evolution is compatible with the initial condition.
8697 2010-01-09 Jakub Jelinek <jakub@redhat.com>
8699 * gcc.c (process_command): Update copyright notice dates.
8700 * gcov.c (print_version): Likewise.
8701 * gcov-dump.c (print_version): Likewise.
8702 * mips-tfile.c (main): Likewise.
8703 * mips-tdump.c (main): Likewise.
8705 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
8708 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
8710 (rotlhi3_8): Delete.
8712 (rotlsi3_8): Delete.
8713 (rotlsi3_16): Delete.
8714 (rotlsi3_24): Delete.
8716 (*rotw<mode>3): New.
8717 (*rotb<mode>3): New.
8718 * config/avr/avr.c (avr_rotate_bytes): New function.
8719 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
8721 2010-01-08 Steve Ellcey <sje@cup.hp.com>
8724 * configure.ac: Modify -rdynamic check.
8725 * configure: Regenerate.
8727 2010-01-08 DJ Delorie <dj@redhat.com>
8729 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
8730 register popping order.
8732 2010-01-08 Richard Guenther <rguenther@suse.de>
8735 * c.opt (fsigned-char): Also let LTO handle this option.
8736 (funsigned-char): Likewise.
8738 2010-01-07 Richard Guenther <rguenther@suse.de>
8740 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
8741 (gimple_op): Likewise.
8742 (gimple_op_ptr): Likewise.
8743 (gimple_assign_set_lhs): Remove gcc_assert.
8744 (gimple_assign_set_rhs1): Likewise.
8745 (gimple_assign_set_rhs2): Likewise.
8746 (gimple_call_set_lhs): Likewise.
8747 (gimple_call_set_fn): Likewise.
8748 (gimple_call_set_fndecl): Likewise.
8749 (gimple_call_fndecl): Likewise.
8750 (gimple_call_return_type): Likewise.
8751 (gimple_call_set_chain): Likewise.
8752 (gimple_call_num_args): Likewise.
8753 (gimple_call_set_arg): Likewise.
8754 (gimple_cond_set_code): Likewise.
8755 (gimple_cond_set_lhs): Likewise.
8756 (gimple_cond_set_rhs): Likewise.
8757 (gimple_cond_set_true_label): Likewise.
8758 (gimple_cond_set_false_label): Likewise.
8759 (gimple_label_set_label): Likewise.
8760 (gimple_goto_set_dest): Likewise.
8761 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
8762 (gimple_debug_bind_get_value): Likewise.
8763 (gimple_debug_bind_get_value_ptr): Likewise.
8764 (gimple_debug_bind_set_var): Likewise.
8765 (gimple_debug_bind_set_value): Likewise.
8766 (gimple_debug_bind_reset_value): Likewise.
8767 (gimple_debug_bind_has_value_p): Likewise.
8768 (gimple_return_retval_ptr): Remove gcc_assert.
8769 (gimple_return_retval): Likewise.
8770 (gimple_return_set_retval): Likewise.
8771 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
8772 (safe_referenced_var_iterator): Remove.
8773 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
8774 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
8775 (fill_referenced_var_vec): Remove.
8776 (first_readonly_imm_use): Remove redundant gcc_assert.
8777 (phi_arg_index_from_use): Combine gcc_asserts.
8778 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
8779 (first_imm_use_stmt): Remove redundant gcc_assert.
8780 * tree-cfg.c (verify_gimple_call): Verify function and chain
8781 operands. Verify arguments.
8782 (verify_types_in_gimple_stmt): Verify condition code and labels.
8784 2010-01-07 Richard Guenther <rguenther@suse.de>
8786 PR tree-optimization/42641
8787 * sese.c (rename_map_elt_info): Use the SSA name version, do
8790 2010-01-07 Jakub Jelinek <jakub@redhat.com>
8792 PR tree-optimization/42625
8793 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
8794 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
8796 2010-01-07 Duncan Sands <baldrick@free.fr>
8798 * Makefile.in (PLUGIN_HEADERS): Add version.h.
8800 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
8803 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
8804 note itself is not function_invariant_p.
8806 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
8808 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
8809 Do not add the DF_NOTE problem.
8810 * store-motion.c (execute_rtl_store_motion): Likewise.
8812 2010-01-07 Martin Jambor <mjambor@suse.cz>
8814 PR tree-optimization/42157
8815 * tree-sra.c (compare_access_positions): Stabilize sort if both
8816 accesses have integer types, return zero immediately if they are the
8819 2010-01-06 Richard Henderson <rth@redhat.com>
8822 * haifa-sched.c (add_to_note_list): Merge into ...
8823 (concat_note_lists): ... here, and ...
8824 (unlink_other_notes, rm_other_notes): Merge into...
8825 (remove_notes): ... here. Create REG_SAVE_NOTEs for
8826 NOTE_INSN_EPILOGUE_BEG.
8828 2010-01-06 Richard Guenther <rguenther@suse.de>
8830 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
8831 not inline regular functions into always-inline functions.
8833 2010-01-06 Nick Clifton <nickc@redhat.com>
8835 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
8836 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
8838 (OVERRIDE_OPTIONS): Delete.
8839 (OPTIMIZATION_OPTIONS): Define.
8840 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
8841 * config/rx/rx.c (rx_handle_option): Issue an error message if
8842 -mcpu=rx200 and -fpu are used together.
8843 (rx_set_optimization_options): New function. Issue an error
8844 message if an optimization attribute attempts to reset the FPU/
8845 math optimization pairing.
8846 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
8847 * config/rx/rx.opt: Set the default to 32-bit doubles.
8848 * config/rx/t-rx: Add multilibs for -nofpu option.
8849 * doc/invoke.texi: Update documentation of RX options.
8851 2010-01-06 Richard Guenther <rguenther@suse.de>
8853 * tree-ssa-pre.c (name_to_id): New global.
8854 (alloc_expression_id): Simplify SSA name handling.
8855 (lookup_expression_id): Likewise.
8856 (init_pre): Zero name_to_id.
8857 (fini_pre): Free it.
8859 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
8861 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
8863 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
8866 * config/i386/sse.md (smaxv2di3): New.
8867 (umaxv2di3): Likewise.
8868 (sminv2di3): Likewise.
8869 (uminv2di3): Likewise.
8871 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
8874 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
8875 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
8876 (legitimize_tls_address): Likewise.
8877 (sparc_tls_referenced_p): Likewise.
8878 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
8879 and adjust calls to legitimize_pic_address.
8880 (legitimate_constant_p) Use sparc_tls_referenced_p.
8881 (legitimate_pic_operand_p): Likewise.
8882 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
8883 (sparc_tls_symbol_ref_1): Delete.
8884 (sparc_tls_referenced_p): Make static, recognize specific patterns.
8885 (legitimize_tls_address): Make static, handle CONST patterns.
8886 (legitimize_pic_address): Make static, remove unused parameter and
8887 adjust recursive calls.
8888 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
8889 and adjust call to legitimize_pic_address.
8890 (sparc_output_mi_thunk): Likewise.
8892 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
8893 H.J. Lu <hongjiu.lu@intel.com>
8896 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
8897 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
8898 operands to make them signed.
8901 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
8904 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
8905 GTU to GT for V4SI and V2DI.
8907 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
8908 (umin<mode>3): Removed.
8910 (uminv4si3): Likewise.
8912 2010-01-05 Martin Jambor <mjambor@suse.cz>
8914 PR tree-optimization/42462
8915 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
8916 current_function_decl to helper functions and macros.
8918 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8921 * flags.h: Don't include real.h.
8922 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
8923 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
8924 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
8925 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
8926 * dominance.c: Update copyright.
8927 * gimple.c (walk_gimple_op): Remove inline.
8928 * tree-ssa-reassoc.c: Include real.h.
8929 * Makefile.in (FLAGS_H): Remove $(REAL_H).
8930 (tree-ssa-reassoc.o): Depend on $(REAL_H).
8932 2010-01-05 Nick Clifton <nickc@redhat.com>
8934 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
8935 register to push into the stack frame when the accumulator has to
8936 be saved during interrupts.
8938 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
8940 * doc/invoke.texi: Remove the documentation about option
8942 * common.opt (Wunreachable-code): Preserved for backward
8944 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
8945 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
8946 the backward compatibility flag section.
8948 2010-01-05 Richard Guenther <rguenther@suse.de>
8950 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
8952 2010-01-05 Jakub Jelinek <jakub@redhat.com>
8955 * cfgexpand.c (expand_one_var): Diagnose too large variables.
8957 PR tree-optimization/42508
8958 * tree-sra.c (convert_callers): Check for recursive call
8959 by comparing cgraph nodes instead of decls.
8960 (modify_function): Call ipa_modify_formal_parameters also
8961 on all same_body aliases.
8963 * cgraphunit.c (cgraph_materialize_all_clones): Compare
8964 cgraph nodes when checking for same_body aliases.
8966 2010-01-05 Richard Guenther <rguenther@suse.de>
8968 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
8969 allocation and lookup.
8970 (get_or_alloc_expr_for_constant): Likewise.
8971 (phi_translate): Sink allocation.
8973 2010-01-04 Richard Guenther <rguenther@suse.de>
8975 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
8976 a new entry only if needed.
8977 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
8978 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
8980 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
8982 (phi_translate): Handle CONSTANTs early.
8984 2010-01-04 Martin Jambor <mjambor@suse.cz>
8986 PR tree-optimization/42398
8987 * tree-sra.c (struct access): Removed flag grp_different_types.
8988 (dump_access): Do not dump the removed flag.
8989 (sort_and_splice_var_accesses): Do not set the removed flag.
8990 (sra_modify_expr): Check for type compatibility directly.
8992 2010-01-04 Martin Jambor <mjambor@suse.cz>
8994 PR tree-optimization/42366
8995 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
8996 edges with variable number of parameters.
8997 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
8998 flag instead of asserting it.
8999 (ipa_read_node_info): Read uses_analysis_done flag.
9001 2010-01-04 Richard Guenther <rguenther@suse.de>
9003 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
9004 iterative_hash_* as intended.
9005 (vn_reference_compute_hash): Likewise. Simplify hashing
9007 (vn_reference_lookup_2): Likewise.
9008 (vn_nary_op_compute_hash): Likewise.
9009 (vn_phi_compute_hash): Likewise.
9010 (expressions_equal_p): Remove strange code.
9011 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
9012 (pre_expr_hash): Likewise. Simplify hashing SSA names.
9013 (bitmap_insert_into_set_1): Take value-id as parameter.
9014 (add_to_value): Pass it.
9015 (bitmap_insert_into_set): Likewise.
9016 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
9018 2010-01-04 Jakub Jelinek <jakub@redhat.com>
9021 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
9022 (do_self_spec): For switches with SWITCH_IGNORE set set also
9023 SWITCH_IGNORE_PERMANENTLY.
9024 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
9027 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
9029 * lto-streamer-out.c (output_unreferenced_globals): Output the full
9030 tree of an unreferenced global var.
9032 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
9035 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
9036 GTU to GT for V4SI and V2DI.
9038 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
9039 (umin<mode>3): Removed.
9041 (uminv4si3): Likewise.
9043 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
9046 * collect2.c (main): Turn on trace in collect2 if -v is passed
9049 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
9051 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
9052 description of expression operand.
9054 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
9056 * configure.ac: Add install-html to target_list for Make-hooks.
9057 * configure: Regenerate.
9058 * fortran/Make-lang.in (F95_HTMLFILES): New.
9059 (fortran.html): Use it.
9060 (fortran.install-html): New.
9061 * Makefile.in (install-html): Add lang.install-html.
9062 * java/Make-lang.in (JAVA_HTMLFILES): New.
9063 (java.html): Use it.
9064 (java.install-html): New.
9065 * objc/Make-lang.in (objc.install-html): New.
9066 * objcp/Make-lang.in (obj-c++.install-html): New.
9067 * cp/Make-lang.in (c++.install-html): New.
9068 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
9069 * lto/Make-lang.in (lto.install-html): New.
9071 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
9074 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
9076 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
9078 PR rtl-optimization/41862
9079 * store-motion.c (store_killed_in_insn, compute_store_table,
9080 remove_reachable_equiv_notes, replace_store_insn,
9081 build_store_vectors): Ignore all DEBUG_INSNs.
9083 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
9086 * common.opt: Add dumpdir.
9088 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
9090 (option_map): Add --dumpdir.
9092 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
9094 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
9096 * opts.c (decode_options): Try dump_dir_name first if
9097 dump_base_name isn't an absolute path.
9098 (common_handle_option): Handle OPT_dumpdir.
9100 * toplev.c (dump_dir_name): New.
9101 (print_switch_values): Also ignore -dumpdir.
9103 * toplev.h (dump_dir_name): New.
9105 2010-01-03 Richard Guenther <rguenther@suse.de>
9107 PR tree-optimization/42589
9108 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
9109 double-word expansion of bswap32.
9111 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
9113 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
9114 with BLOCK_FOR_INSN.
9115 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
9116 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
9117 noce_process_if_block): Likewise.
9118 * gcse.c (compute_local_properties, insert_expr_in_table,
9119 insert_set_in_table, canon_list_insert, find_avail_set,
9120 pre_insert_copy_insn): Likewise.
9122 * basic-block.h (BLOCK_NUM): Move from here...
9123 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
9125 2010-01-03 Richard Guenther <rguenther@suse.de>
9127 PR tree-optimization/42438
9128 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
9129 contains_may_not_return_call flag.
9130 (BB_MAY_NOTRETURN): New.
9131 (valid_in_sets): Trapping nary operations are not valid
9132 in blocks that may not return.
9133 (insert_into_preds_of_block): Remove check for trapping expressions.
9134 (compute_avail): Compute also BB_MAY_NOTRETURN.
9136 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
9138 * doc/invoke.texi: Add 2010 to copyright years.
9140 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
9142 * config/sparc/sparc.c: Fix formatting nits.
9144 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
9145 Alexander Monakov <amonakov@ispras.ru>
9147 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
9149 2010-01-02 Richard Guenther <rguenther@suse.de>
9152 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
9153 (simplify_switch_using_ranges): Mark to be removed edges
9156 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9158 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
9160 * collect2.c (scan_libraries): Add missing argument in call to
9163 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
9166 * config/alpha/predicates.md (aligned_memory_operand): Return false
9168 (unaligned_memory_operand): Return true for CQImode.
9169 * config/alpha/alpha.c (get_aligned_mem): Assert that location
9170 doesn not cross aligned SImode word boundary.
9172 2010-01-02 Anatoly Sokolov <aesok@post.ru>
9174 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
9176 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
9177 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
9179 2010-01-02 Richard Guenther <rguenther@suse.de>
9182 * toplev.c (compile_file): Emit LTO marker properly. Change
9184 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
9186 2010-01-01 Richard Guenther <rguenther@suse.de>
9189 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
9191 2010-01-01 Richard Guenther <rguenther@suse.de>
9194 * c-decl.c (grokdeclarator): For zero-size arrays force
9195 structural equality checks as layout_type does.
9197 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
9199 * builtins.c: Update copyright to 2010.
9201 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
9204 * lto-streamer-out.c (produce_asm): Revert the last change.
9205 (copy_function): Likewise.
9207 * lto-streamer.c (lto_get_section_name): Skip any leading
9210 2010-01-01 Richard Guenther <rguenther@suse.de>
9213 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
9217 Copyright (C) 2010 Free Software Foundation, Inc.
9219 Copying and distribution of this file, with or without modification,
9220 are permitted in any medium without royalty provided the copyright
9221 notice and this notice are preserved.