1 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3 * config/spu/spu-elf.h (ASM_SPEC): Remove.
5 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
7 PR rtl-optimization/46856
8 * postreload.c (reload_combine_recognize_const_pattern): Do not
9 separate cc0 setter and user on cc0 targets.
11 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
15 passed a VOID_TYPE expression, immediately emit an error and
16 return error_mark_node.
18 2011-01-26 Jeff Law <law@redhat.com>
20 PR rtl-optimization/47464
21 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
22 rather than may_trap_p as needed.
24 2011-01-26 DJ Delorie <dj@redhat.com>
26 PR rtl-optimization/46878
27 * combine.c (insn_a_feeds_b): Check for the implicit cc0
28 setter/user dependency as well.
30 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
32 PR rtl-optimization/44469
33 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
34 after removing trivially dead basic blocks.
36 2011-01-26 Joseph Myers <joseph@codesourcery.com>
38 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
39 * config/frv/frv.h (LINK_SPEC): Likewise.
40 * config/i386/netware.h (LINK_SPEC): Likewise.
41 * config/m68k/linux.h (ASM_SPEC): Likewise.
42 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
43 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
44 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
45 * config/sparc/linux.h (ASM_SPEC): Likewise.
46 * config/sparc/linux64.h (ASM_SPEC): Likewise.
47 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
49 2011-01-26 Joseph Myers <joseph@codesourcery.com>
51 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
52 * config/frv/frv.h (ASM_SPEC): Likewise.
53 * config/m68k/linux.h (ASM_SPEC): Likewise.
54 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
55 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
56 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
57 * config/sparc/linux.h (ASM_SPEC): Likewise.
58 * config/sparc/linux64.h (ASM_SPEC): Likewise.
59 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
61 2011-01-26 Joseph Myers <joseph@codesourcery.com>
63 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
64 * config/frv/frv.h (LINK_SPEC): Likewise.
65 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
67 2011-01-26 Joseph Myers <joseph@codesourcery.com>
69 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
70 * config/frv/frv.h (ASM_SPEC): Likewise.
71 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
72 * config/m68k/linux.h (ASM_SPEC): Likewise.
73 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
74 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
75 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
76 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
77 * config/sparc/linux.h (ASM_SPEC): Likewise.
78 * config/sparc/linux64.h (ASM_SPEC): Likewise.
79 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
80 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
82 2011-01-26 Steve Ellcey <sje@cup.hp.com>
85 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
87 (vec_extract_evenodd_help): Ditto.
88 (vec_extract_evenv4hi): Ditto.
89 (vec_extract_oddv4hi): Ditto.
90 (vec_interleave_lowv2si): Ditto.
91 (vec_interleave_highv2si): Ditto.
92 (vec_extract_evenv2si): Ditto.
93 (vec_extract_oddv2si: Ditto.
94 (vec_pack_trunc_v2si): Ditto.
96 2011-01-22 Jan Hubicka <jh@suse.cz>
99 * cgraph.h (cgraph_local_info): New field can_change_signature.
100 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
101 signature can change.
102 (ipcp_estimate_growth): Call sequence simplify only if calle signature
104 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
105 (cgraph_function_versioning): We can not change signature of functions
106 that don't allow that.
107 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
108 (lto_input_node): Likewise.
109 * ipa-inline.c (compute_inline_parameters): Compute local.can_change_signature.
110 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
111 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on functions
112 that can not change signature.
113 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
114 init_cumulative_args): Do not use local calling conventions for functions
115 that can not change signature.
117 2011-01-22 Jan Hubicka <jh@suse.cz>
119 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
121 2011-01-26 Richard Guenther <rguenther@suse.de>
123 PR tree-optimization/47190
124 * cgraphunit.c (process_common_attributes): New function.
125 (process_function_and_variable_attributes): Use it.
127 2011-01-26 Richard Guenther <rguenther@suse.de>
130 * cgraphbuild.c (record_eh_tables): Record reference to personality
133 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
136 * sel-sched.c (moveup_expr): Don't let debug insns prevent
137 non-debug insns from moving up.
139 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
142 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
143 t-dlldir{,-x} fragment for build and add it to tmake_file.
144 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
145 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
146 * config/i386/t-dlldir: New file.
147 (SHLIB_DLLDIR): Define.
148 * config/i386/t-dlldir-x: New file.
149 (SHLIB_DLLDIR): Define.
150 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
151 (SHLIB_INSTALL): Use it.
153 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
156 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
157 lower bound of the allowed Thumb-2 coprocessor load/store
158 index range to -256. Add explaining comment.
160 2011-01-25 Ian Lance Taylor <iant@google.com>
162 * godump.c (go_define): Improve lexing of macro expansion to only
163 accept expressions which match Go spec.
165 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
168 * tree.c (handle_dll_attribute): Handle it.
169 * doc/extend.texi (@item dllexport): Mention it.
170 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
172 2011-01-25 Ian Lance Taylor <iant@google.com>
174 PR tree-optimization/26854
175 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
176 (decl_jump_unsafe): Move higher in file, with no other change.
177 (bind): Set has_jump_unsafe_decl if appropriate.
178 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
179 (check_earlier_gotos): Likewise.
180 (c_check_switch_jump_warnings): Likewise.
182 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
184 * doc/invoke.texi (Warning Options): Add missing hyphen.
185 (-fprofile-dir): Minor grammatical fixes.
186 (-fbranch-probabilities): Likewise.
188 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
192 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
194 (no_real_insns_p, schedule_block, set_priorities): Drop special
195 treatment of boundary debug insns.
196 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug
198 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
199 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
200 (BOUNDARY_DEBUG_INSN_P): Likewise.
201 (SCHEDULE_DEBUG_INSN_P): Likewise.
202 * sched-rgn.c (init_ready_list): Drop special treatment of
203 boundary debug insns.
204 * final.c (rest_of_clean-state): Clear notes' BB.
206 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
208 * Makefile.in (LAMBDA_H): Removed.
209 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
210 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
211 lambda-trans.o, and tree-loop-linear.o.
212 (lto-symtab.o): Remove dependence on LAMBDA_H.
213 (tree-loop-linear.o): Remove rule.
214 (lambda-mat.o): Same.
215 (lambda-trans.o): Same.
216 (lambda-code.o): Same.
217 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
218 (tree-vect-slp.o): Same.
219 * hwint.h (gcd): Moved here.
220 (least_common_multiple): Same.
221 * lambda-code.c: Removed.
222 * lambda-mat.c: Removed.
223 * lambda-trans.c: Removed.
225 * tree-loop-linear.c: Removed.
226 * lto-symtab.c: Do not include lambda.h.
227 * omega.c (gcd): Removed.
228 * passes.c (init_optimization_passes): Remove pass_linear_transform.
229 * tree-data-ref.c (print_lambda_vector): Moved here.
230 (lambda_vector_copy): Same.
231 (lambda_matrix_copy): Same.
232 (lambda_matrix_id): Same.
233 (lambda_vector_first_nz): Same.
234 (lambda_matrix_row_add): Same.
235 (lambda_matrix_row_exchange): Same.
236 (lambda_vector_mult_const): Same.
237 (lambda_vector_negate): Same.
238 (lambda_matrix_row_negate): Same.
239 (lambda_vector_equal): Same.
240 (lambda_matrix_right_hermite): Same.
241 * tree-data-ref.h: Do not include lambda.h.
242 (lambda_vector): Moved here.
243 (lambda_matrix): Same.
244 (dependence_level): Same.
245 (lambda_transform_legal_p): Removed declaration.
246 (lambda_collect_parameters): Same.
247 (lambda_compute_access_matrices): Same.
248 (lambda_vector_gcd): Same.
249 (lambda_vector_new): Same.
250 (lambda_vector_clear): Same.
251 (lambda_vector_lexico_pos): Same.
252 (lambda_vector_zerop): Same.
253 (lambda_matrix_new): Same.
254 * tree-flow.h (least_common_multiple): Removed declaration.
255 * tree-parloops.c (lambda_trans_matrix): Moved here.
259 (LTM_DENOMINATOR): Same.
260 (lambda_trans_matrix_new): Same.
261 (lambda_matrix_vector_mult): Same.
262 (lambda_transform_legal_p): Same.
263 * tree-pass.h (pass_linear_transform): Removed declaration.
264 * tree-ssa-loop.c (tree_linear_transform): Removed.
265 (gate_tree_linear_transform): Removed.
266 (pass_linear_transform): Removed.
267 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
268 flag_loop_interchange.
270 2011-01-25 Jakub Jelinek <jakub@redhat.com>
272 PR tree-optimization/47265
273 PR tree-optimization/47443
274 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
275 if name still has some uses.
277 2011-01-25 Martin Jambor <mjambor@suse.cz>
279 PR tree-optimization/47382
280 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
281 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
283 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
285 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
286 sjlj_except_unwind_info.
288 2011-01-25 Richard Guenther <rguenther@suse.de>
290 PR tree-optimization/47426
291 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
292 visible functions results escape.
294 2011-01-25 Jakub Jelinek <jakub@redhat.com>
297 * config/arm/arm.c (any_sibcall_uses_r3): New function.
298 (arm_get_frame_offsets): Use it.
300 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
301 Jakub Jelinek <jakub@redhat.com>
303 PR tree-optimization/47271
304 * tree-if-conv.c (bb_postdominates_preds): New.
305 (if_convertible_bb_p): Call bb_postdominates_preds.
306 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
307 (predicate_scalar_phi): Call bb_postdominates_preds.
309 2011-01-25 Nick Clifton <nickc@redhat.com>
311 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
312 * config/rx/rx.c (rx_function_value): Likewise.
313 (rx_promote_function_mode): Likewise.
314 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
315 in order to make it legitimate.
316 * config/rx/rx.md (adddi3_internal): If the second operand is a
317 MEM make sure that the first operand is the same as the result
319 (addsi3_unspec): Delete.
320 (subdi3): Do not accept immediate operands.
321 (subdi3_internal): Likewise.
323 2011-01-25 Jeff Law <law@redhat.com>
325 PR rtl-optimization/37273
326 * ira-costs.c (scan_one_insn): Detect constants living in memory and
327 handle them like argument loads from stack slots. Do not double
328 count memory for memory constants and argument loads from stack slots.
330 2011-01-25 Jakub Jelinek <jakub@redhat.com>
332 PR tree-optimization/47427
333 PR tree-optimization/47428
334 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
335 coalesce if the new root var would be TREE_READONLY.
337 2011-01-25 Richard Guenther <rguenther@suse.de>
340 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
341 correct type for TBAA.
343 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
345 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
346 (close_phi_written_to_memory): Call for_each_index with
347 dr_indices_valid_in_loop.
349 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
351 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
352 when it is initialized.
354 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
356 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
357 call to graphite_find_data_references_in_stmt.
358 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
359 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
360 call to graphite_find_data_references_in_stmt.
361 (analyze_drs_in_stmts): Same.
362 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
363 in which the scalar analysis of indices is performed.
364 (create_data_ref): Same. Update call to dr_analyze_indices.
365 (find_data_references_in_stmt): Update call to create_data_ref.
366 (graphite_find_data_references_in_stmt): Same.
367 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
369 (create_data_ref): Same.
370 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
371 call to create_data_ref.
373 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
375 * graphite-sese-to-poly.c (build_poly_scop): Move
376 rewrite_commutative_reductions_out_of_ssa before
377 find_scop_parameters.
379 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
381 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
382 VAR_DECL, PARM_DECL, and RESULT_DECL.
384 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
386 * graphite-dependences.c (reduction_dr_1): Allow several reductions
388 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
389 that have already been marked as PBB_IS_REDUCTION.
391 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
393 * graphite-scop-detection.c (same_close_phi_node): New.
394 (remove_duplicate_close_phi): New.
395 (make_close_phi_nodes_unique): New.
396 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
398 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
400 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
401 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
402 of both data references to be the same.
404 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
406 * graphite-dependences.c (build_lexicographical_constraint): Remove the
408 (build_lexicographical_constraint): Adjust call to ppl_powerset_is_empty.
409 (dependence_polyhedron): Same.
410 (graphite_legal_transform_dr): Same.
411 (graphite_carried_dependence_level_k): Same.
412 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params parameter.
413 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
415 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
417 * graphite-sese-to-poly.c
418 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
419 (close_phi_written_to_memory): New.
420 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
423 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
425 * doc/install.texi: Update the expected version number of PPL to 0.11.
426 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
427 #if PPL_VERSION_MINOR < 11.
429 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
431 * graphite-dependences.c: Include graphite-cloog-util.h.
432 (new_poly_ddr): Inlined into dependence_polyhedron.
433 (free_poly_ddr): Moved close by new_poly_ddr.
434 (dependence_polyhedron_1): Renamed dependence_polyhedron.
435 Early return NULL when ppl_powerset_is_empty returns true.
436 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
437 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
438 (graphite_legal_transform_dr): Call new_poly_ddr.
439 (graphite_carried_dependence_level_k): Same.
440 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
441 (dot_transformed_deps_stmt_1): Removed.
442 (dot_deps_stmt_1): Call dot_deps_stmt_2.
443 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
444 (dot_deps_1): Call dot_deps_2.
445 * Makefile.in (graphite-dependences.o): Add missing dependence on
446 graphite-cloog-util.h.
448 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
450 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
451 (build_lexicographical_constraint): Same.
452 (dependence_polyhedron_1): Same.
453 (graphite_legal_transform_dr): Same.
454 (graphite_carried_dependence_level_k): Same.
455 * graphite-ppl.c (ppl_powerset_is_empty): New.
456 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
457 * tree-data-ref.c (dump_data_reference): Print the basic block index.
459 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
461 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
462 the "a followed by b" relation and document it.
464 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
466 * graphite-dependences.c (build_lexicographical_constraint): Stop the
467 iteration when the bag of constraints is empty.
469 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
471 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
473 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
475 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
476 nest and two loop depths as parameters.
477 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
480 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
482 * graphite-dependences.c (print_pddr): Call
483 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
485 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
487 * graphite-ppl.c (debug_gmp_value): New.
488 * graphite-ppl.h (debug_gmp_value): Declared.
490 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
492 * doc/install.texi: Document availability of cloog-0.16.
494 2011-01-25 Vladimir Kargov <kargov@gmail.com>
496 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
497 invalid postdominance info.
499 2011-01-24 Jan Hubicka <jh@suse.cz>
502 * doc/extend.texi (weak pragma): Drop claim that it must
503 appear before definition.
504 * varasm.c (merge_weak, declare_weak): Only sanity check
505 that DECL is not output at a time it is declared weak.
507 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
509 * machmode.def: Fixed comments.
511 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
513 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
515 2011-01-24 Paul Koning <ni1d@arrl.net>
517 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
520 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
523 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
524 (block_info): Add scanned and prev.
525 (move_or_delete_vzeroupper_2): Return if the basic block
526 has been scanned and the upper 128bit state is unchanged
528 (move_or_delete_vzeroupper_1): Return true if the exit
530 (move_or_delete_vzeroupper): Visit basic blocks using the
531 work-list based algorithm based on vt_find_locations in
534 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
536 2011-01-24 Nick Clifton <nickc@redhat.com>
538 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
539 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
540 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
541 then define __v850e1__.
542 * doc/invoke.texi: Document -mv850es.
544 2011-01-24 Richard Henderson <rth@redhat.com>
546 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
547 compound unordered comparisons.
548 * config/rx/rx.c (rx_split_fp_compare): Remove.
549 * config/rx/rx-protos.h: Update.
550 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
551 (cbranchsf4): Don't call rx_split_fp_compare.
552 (*cbranchsf4): Use rx_split_cbranch.
553 (*cmpsf): Don't accept "i" constraint.
554 (*conditional_branch): Only valid after reload.
555 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
557 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
560 * config/rs6000/altivec.md (vector constant splitters): Add
561 support for creating vector single precision constants if -mvsx is
562 used and we would create the constant using Altivec primitives.
564 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
565 Richard Sandiford <rdsandiford@googlemail.com>
567 PR rtl-optimization/47166
568 * reload1.c (emit_reload_insns): Disable the spill_reg_store
569 mechanism for PRE_MODIFY and POST_MODIFY.
570 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
573 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
575 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
577 2011-01-22 Jan Hubicka <jh@suse.cz>
580 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
582 2011-01-22 Jan Hubicka <jh@suse.cz>
584 PR tree-optimization/43884
586 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
587 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
589 2011-01-22 Anatoly Sokolov <aesok@post.ru>
591 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
592 * config/s390/s390.c (s390_register_move_cost,
593 s390_memory_move_cost): New.
594 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
596 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
599 * except.c (sjlj_assign_call_site_values): Move setting the
600 crtl->uses_eh_lsda flag to ...
601 (sjlj_mark_call_sites): ... here.
602 (sjlj_emit_function_enter): Support NULL dispatch label.
603 (sjlj_build_landing_pads): In a function with no landing pads
604 that still has must-not-throw regions, generate code to register
605 a personality function with empty LSDA.
607 2011-01-21 Richard Henderson <rth@redhat.com>
609 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
611 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
613 * compare-elim.c: New file.
614 * Makefile.in (OBJS-common): Add it.
615 (compare-elim.o): New.
616 * common.opt (fcompare-elim): New.
617 * opts.c (default_options_table): Add OPT_fcompare_elim.
618 * tree-pass.h (pass_compare_elim_after_reload): New.
619 * passes.c (init_optimization_passes): Add it.
620 * recog.h: Protect against re-inclusion.
621 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
622 * doc/invoke.texi (-fcompare-elim): Document it.
623 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
624 * doc/tm.texi: Rebuild.
626 2011-01-22 Nick Clifton <nickc@redhat.com>
628 * config/rx/rx.md (cstoresf4): Pass comparison operator to
631 2011-01-22 Nick Clifton <nickc@redhat.com>
633 * config/rx/rx.md (UNSPEC_CONST): New.
634 (deallocate_and_return): Wrap the amount popped off the stack in
635 an UNSPEC_CONST in order to stop it being rejected by
637 (pop_and_return): Add a "(return)" rtx.
638 (call): Drop the immediate operand.
639 (call_internal): Likewise.
640 (call_value): Likewise.
641 (call_value_internal): Likewise.
642 (sibcall_internal): Likewise.
643 (sibcall_value_internal): Likewise.
644 (sibcall): Likewise. Generate an explicit call using
646 (sibcall_value): Likewise.
647 (mov<>): FAIL if a constant operand is not legitimate.
648 (addsi3_unpsec): New pattern.
650 * config/rx/rx.c (rx_print_operand_address): Handle UNPSEC
652 (ok_for_max_constant): New function.
653 (gen_safe_add): New function.
654 (rx_expand_prologue): Use gen_safe_add.
655 (rx_expand_epilogue): Likewise.
656 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
659 2011-01-21 Jeff Law <law@redhat.com>
661 PR tree-optimization/47053
662 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
663 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
664 statements are deleted.
665 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
666 is nonempty, then purge dead edges and cleanup the CFG.
668 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
672 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
674 * tree-dfa.c (create_var_ann): Mark variable as used.
676 2011-01-21 Jakub Jelinek <jakub@redhat.com>
679 * except.c (convert_to_eh_region_ranges): Emit queued no-region
680 notes from other section in hot/cold partitioning even if
681 last_action is -3. Increment call_site_base.
683 PR rtl-optimization/47366
684 * fwprop.c (forward_propagate_into): Return bool. If
685 any changes are made, -fnon-call-exceptions is used and
686 REG_EH_REGION note is present, call purge_dead_edges
687 and return true if it purged anything.
688 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
689 any EH edges were purged.
691 2011-01-21 Jeff Law <law@redhat.com>
693 PR rtl-optimization/41619
694 * caller-save.c (setup_save_areas): Break out code to determine
695 which hard regs are live across calls by examining the reload chains
696 so that it is always used.
697 Eliminate code which checked REG_N_CALLS_CROSSED.
699 2011-01-21 Jakub Jelinek <jakub@redhat.com>
701 PR tree-optimization/47355
702 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
703 NOP has non-debug uses beyond PHIs in new_bb.
705 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
708 * cfgexpand.c (account_used_vars_for_block): Only account vars
709 that are annotated as used.
710 (estimated_stack_frame_size): Don't set TREE_USED.
711 * tree-dfa.c (create_var_ann): Mark variable as used.
713 2011-01-21 Richard Guenther <rguenther@suse.de>
716 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
718 2011-01-21 Richard Guenther <rguenther@suse.de>
720 PR tree-optimization/47365
721 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
722 (vn_reference_lookup_pieces): Adjust.
723 (vn_reference_lookup): Likewise.
724 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
725 (vn_reference_lookup_3): Only look through kills if in
727 (vn_reference_lookup_pieces): Adjust.
728 (vn_reference_lookup): Likewise.
729 (visit_reference_op_load): Likewise.
730 (visit_reference_op_store): Likewise.
731 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
732 (compute_avail): Likewise.
733 (eliminate): Likewise.
735 2011-01-21 Jakub Jelinek <jakub@redhat.com>
737 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
738 DECL_IGNORED_P non-reg vars if they are used.
740 PR tree-optimization/47391
741 * varpool.c (const_value_known_p): Return false if
744 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
747 * config/i386/i386.c (ix86_local_alignment): Handle
748 case for va_list_type_node is nil.
749 (ix86_canonical_va_list_type): Likewise.
751 2011-01-21 Alan Modra <amodra@gmail.com>
753 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
754 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
756 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
758 * config/arm/arm.md (define_attr type): Rename f_load
759 and f_store to f_fpa_load and f_fpa_store. Update.
760 (write_conflict): Deal with rename fallout.
761 (*push_fp_multi): Likewise.
762 * config/arm/fpa.md (f_load): Use f_fpa_load.
763 (f_store): Use f_fpa_store.
764 (*movsf_fpa): Likewise.
765 (*movdf_fpa): Likewise.
766 (*movxf_fpa): Likewise.
767 (*thumb2_movsf_fpa): Likewise.
768 (*thumb2_movdf_fpa): Likewise.
769 (*thumb2_movxf_fpa): Likewise.
770 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
771 f_loadd and f_stored.
772 (*thumb2_movdi_vfp): Likewise.
773 (*thumb2_movsf_vfp): Fix attribute to f_loads.
774 (*thumb2_movsi_vfp): Likewise.
775 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
776 Use f_loads instead of f_load.
777 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
779 2011-01-20 Anatoly Sokolov <aesok@post.ru>
781 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
782 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
783 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
784 (xtensa_mode_dependent_address_p): New function.
785 (constantpool_address_p): Make static. Change return type to bool.
786 Change argument type to const_rtx. Use CONST_INT_P predicate.
788 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
791 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
793 2011-01-20 Jakub Jelinek <jakub@redhat.com>
796 * cfgexpand.c (expand_debug_expr): Instead of generating
797 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
800 2011-01-20 Richard Guenther <rguenther@suse.de>
803 * tree-inline.c (remap_gimple_op_r): Recurse manually for
804 the pointer operand of MEM_REFs.
806 2011-01-20 Jakub Jelinek <jakub@redhat.com>
808 PR tree-optimization/46130
809 * ipa-split.c (consider_split): If return_bb contains non-virtual
810 PHIs other than for retval or if split_function would not adjust it,
813 2011-01-20 Richard Guenther <rguenther@suse.de>
815 PR tree-optimization/47167
816 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
817 Revert previous change, only avoid enumeral type changes.
819 2011-01-19 Dodji Seketeli <dodji@redhat.com>
822 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
823 (gen_scheduled_generic_parms_dies): New functions.
824 (gen_struct_or_union_type_die): Schedule template parameters DIEs
825 generation for the end of CU compilation.
826 (dwarf2out_finish): Generate template parameters DIEs here.
828 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
831 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
832 debug bind stmt on merge edges.
834 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
838 * function.c (instantiate_expr): Instantiate incoming rtl of
839 implicit arguments, and recurse on VALUE_EXPRs.
840 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
841 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
843 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
845 * c-parser.c (c_parser_for_statement): Initialize
846 collection_expression.
848 2011-01-19 Joseph Myers <joseph@codesourcery.com>
850 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
852 2011-01-19 Joseph Myers <joseph@codesourcery.com>
854 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
855 (LINK_SHLIB_SPEC): Don't use %(link_path).
856 (SUBTARGET_EXTRA_SPECS): Remove link_path.
858 2011-01-19 Joseph Myers <joseph@codesourcery.com>
860 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
861 (NO_SHARED_LIB_SUPPORT): Remove.
862 (LINK_SHLIB_SPEC): Remove one conditional definition.
864 2011-01-19 Joseph Myers <joseph@codesourcery.com>
866 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
868 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
869 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
870 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
871 %{call_shared} and conditionals on these options not being passed.
872 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
875 2011-01-19 Jakub Jelinek <jakub@redhat.com>
877 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
880 * ipa-split.c: Spelling fixes.
882 2011-01-19 Richard Henderson <rth@redhat.com>
884 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
887 * longlong.h [__mn10300__] (count_leading_zeros): New.
888 [__mn10300__] (umul_ppmm, smul_ppmm): New.
889 [__mn10300__] (add_ssaaaa, subddmmss): New.
890 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
891 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
893 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
895 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
897 2011-01-19 Richard Henderson <rth@redhat.com>
899 * config/mn10300/mn10300.md (addsi3_flags): New.
900 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
901 (subsi3_flags, subc_internal, subdi3): New.
902 (subdi3_internal, *subdi3_degenerate): New.
903 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
905 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
906 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
907 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
908 * config/mn10300/mn10300-protos.h: Update.
909 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
910 (return_ret): Likewise. Rename from return_internal_regs.
911 (return_internal): Remove.
913 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
914 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
915 (mn10300_legitimate_constant_p): Likewise.
916 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
917 (mn10300_frame_size): New.
918 (mn10300_expand_prologue): Use it.
919 (mn10300_expand_epilogue): Likewise.
920 (mn10300_initial_offset): Likewise.
921 * config/mn10300/mn10300-protos.h: Update.
922 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
923 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
924 (prologue, epilogue, return_internal): Tidy output code.
925 (mn10300_store_multiple_operation, return): Likewise.
926 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
927 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
928 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
929 (load_pic, am33_load_pic): New.
930 (mn10300_load_pic0, mn10300_load_pic1): New.
932 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
933 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
934 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
935 (cc_flags_for_mode, cc_flags_for_code): New.
936 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
937 overflow flag is not valid. Validate that the flags we need
938 for the comparison are valid.
939 (mn10300_output_cmp): Remove.
940 (mn10300_output_add): New.
941 (mn10300_select_cc_mode): Use cc_flags_for_code.
942 (mn10300_split_cbranch): New.
943 (mn10300_match_ccmode): New.
944 (mn10300_split_and_operand_count): New.
945 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
947 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
948 (addsi3): ... here. Use mn10300_output_add.
949 (*addsi3_flags): New.
950 (*am33_subsi3, *mn10300_subsi3): Merge...
951 (subsi3): ... here. Use attribute isa.
952 (*subsi3_flags): New.
953 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
955 (*am33_andsi3, *mn10300_andsi3): Merge...
957 (*andsi3_flags): New.
958 (andsi3 splitters): New.
959 (*am33_iorsi3, *mn10300_iorsi3): Merge...
961 (*iorsi3_flags): New.
962 (*am33_xorsi3, *mn10300_xorsi3): Merge...
964 (*xorsi3_flags): New.
965 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
966 (one_cmplsi2): ... here.
967 (*one_cmplsi2_flags): New.
968 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
969 instead of "dax" in constraints. Use mn10300_split_cbranch.
970 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
971 use matching constraints to eliminate a self-comparison.
972 (*integer_conditional_branch): Rename from integer_conditional_branch.
973 Use int_mode_flags to match CC_REG.
974 (*cbranchsi4_btst, *btstsi): New.
975 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
976 mn10300_split_cbranch.
977 (*am33_cmpsf): Rename from am33_cmpsf.
978 (*float_conditional_branch): Rename from float_conditional_branch.
979 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
980 (zero_extendqisi2): ... here.
981 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
982 (zero_extendhisi2): ... here.
983 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
984 (extendqisi2): ... here.
985 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
986 (extendhisi2): ... here.
987 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
989 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
991 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
993 (consecutive add peephole): Remove.
994 * config/mn10300/predicates.md (label_ref_operand): New.
995 (int_mode_flags): New.
996 (CCZN_comparison_operator): New.
998 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
999 (throughput_42_latency_43): New reservation.
1000 (mulsidi3, umulsidi3): New expanders.
1001 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
1002 the MDR register to allocation; separately allocate the low and
1003 high parts of the DImode result.
1004 (umulsidi3_internal): Similarly.
1005 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
1006 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
1007 (udivsi3, umodsi3): Remove.
1008 (udivmodsi4, divmodsi4): New expanders.
1009 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
1010 (*divmodsi4): Simiarly.
1011 (ext_internal): New.
1013 * config/mn10300/constraints.md ("z"): New constraint.
1014 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
1015 (FIXED_REGISTERS): Don't fix MDR.
1016 (CALL_USED_REGSITERS): Reformat nicely.
1017 (REG_ALLOC_ORDER): Add MDR.
1018 (enum regclass): Add MDR_REGS.
1019 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
1020 (IRA_COVER_CLASSES): Add MDR_REGS.
1021 (REGNO_REG_CLASS): Handle MDR_REG.
1022 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
1023 (mn10300_register_move_cost): Likewise.
1024 * config/mn10300/mn10300.md (MDR_REG): New.
1025 (*movsi_internal): Handle moves to/from MDR_REGS.
1027 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
1029 (mn10300_secondary_reload): Tidy combination reload classes.
1030 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
1031 addresses for AM33. Allow symbolic offsets for reg+imm.
1032 (mn10300_regno_in_class_p): New.
1033 (mn10300_legitimize_reload_address): New.
1034 * config/mn10300/mn10300.h (enum reg_class): Remove
1035 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
1036 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
1038 (REG_CLASS_NAMES): Update to match.
1039 (REG_CLASS_CONTENTS): Likewise.
1040 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
1041 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
1042 (REGNO_IN_RANGE_P): Remove.
1043 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
1044 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
1045 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
1046 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
1047 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
1048 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
1049 (REGNO_GENERAL_P): New.
1050 (HAVE_POST_MODIFY_DISP): New.
1051 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
1052 (LEGITIMIZE_RELOAD_ADDRESS): New.
1053 * config/mn10300/mn10300-protos.h: Update.
1055 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
1056 DATA_REGS for AM33 stack-pointer destination.
1057 (mn10300_preferred_output_reload_class): Likewise.
1058 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
1059 into a form appropriate for ...
1060 (TARGET_SECONDARY_RELOAD): New.
1061 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
1062 * config/mn10300/mn10300-protos.h: Update.
1063 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
1064 reload_insi; use the "A" constraint for the scratch; handle AM33
1065 moves of sp to non-address registers.
1067 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
1068 (*movqi_internal): ... here.
1069 (*am33_movhi, *mn10300_movhi): Merge into...
1070 (*movhi_internal): ... here.
1071 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
1072 as the source/destination of moves from/to SP.
1073 (movsf): Only allow for AM33-2.
1074 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
1075 any integer constant constraint. Only allow for AM33-2. Tidy
1076 all of the alternative outputs.
1077 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
1078 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
1080 (udivsi3, umodsi3): New patterns for MN103 only.
1082 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
1084 * doc/tm.texi.in: Spell out that a lack of register class unions
1086 * doc/tm.texi: Regenerate.
1088 2011-01-19 Jakub Jelinek <jakub@redhat.com>
1090 PR rtl-optimization/47337
1091 * dce.c (check_argument_store): New function.
1092 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
1094 PR tree-optimization/47290
1095 * tree-eh.c (infinite_empty_loop_p): New function.
1096 (cleanup_empty_eh): Use it.
1098 2011-01-18 Steve Ellcey <sje@cup.hp.com>
1101 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
1102 (a64_expand_widen_sum): Ditto.
1103 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
1104 (vec_extract_evenodd_help): Ditto.
1105 (vec_extract_evenv4hi): Ditto.
1106 (vec_extract_oddv4hi): Ditto.
1107 (vec_extract_evenv2si): Ditto.
1108 (vec_extract_oddv2si): Ditto.
1109 (vec_extract_evenv2sf): Ditto.
1110 (vec_extract_oddv2sf): Ditto.
1111 (vec_pack_trunc_v4hi: Ditto.
1112 (vec_pack_trunc_v2si): Ditto.
1113 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
1114 (vec_interleave_highv8qi): Ditto.
1116 (vec_extract_oddv8qi): Ditto.
1117 (vec_interleave_lowv4hi): Ditto.
1118 (vec_interleave_highv4hi): Ditto.
1119 (vec_interleave_lowv2si): Ditto.
1120 (vec_interleave_highv2si): Ditto.
1122 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1124 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
1125 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
1126 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
1127 (pa_c_mode_for_suffix): New.
1128 (TARGET_EXPAND_BUILTIN): Define.
1129 (TARGET_C_MODE_FOR_SUFFIX): Define.
1130 (pa_builtins): Define.
1131 (pa_init_builtins): Register __float128 type and init new support
1133 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
1134 * config/pa/quadlib.c (_U_Qfcopysign): New.
1136 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
1139 * explow.c (allocate_dynamic_stack_space): Do not assume more than
1140 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
1143 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1145 PR tree-optimization/47179
1146 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
1147 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
1149 2011-01-18 Richard Guenther <rguenther@suse.de>
1151 PR rtl-optimization/47216
1152 * emit-rtl.c: Include tree-flow.h.
1153 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
1154 of replicating it with different semantics.
1155 * Makefile.in (emit-rtl.o): Adjust.
1157 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1159 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually
1161 (cortex_a9_dp): Handle neon types correctly.
1163 2011-01-18 Jakub Jelinek <jakub@redhat.com>
1165 PR rtl-optimization/47299
1166 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
1167 subtarget. Use normal multiplication if both operands are
1169 * expmed.c (expand_widening_mult): Don't try to optimize constant
1170 multiplication if op0 has VOIDmode. Convert op1 constant to mode
1173 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1175 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
1176 spacing after 'e.g.', typos, comma, hyphenation.
1178 2011-01-17 Richard Henderson <rth@redhat.com>
1180 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
1181 (rx_restricted_mem_operand): New.
1182 (rx_shift_operand): Use register_operand.
1183 (rx_source_operand, rx_compare_operand): Likewise.
1184 * config/rx/rx.md (addsi3_flags): New expander.
1185 (adddi3): Rewrite as expander.
1186 (adc_internal, *adc_flags, adddi3_internal): New patterns.
1187 (subsi3_flags): New expander.
1188 (subdi3): Rewrite as expander.
1189 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
1191 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
1192 (rx_init_builtins): Remove sat builtin.
1193 (rx_expand_builtin): Likewise.
1194 * config/rx/rx.md (ssaddsi3): New.
1195 (*sat): Rename from sat. Represent the CC_REG input.
1197 * config/rx/predicates.md (rshift_operator): New.
1198 * config/rx/rx.c (rx_expand_insv): Remove.
1199 * config/rx/rx-protos.h: Update.
1200 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
1201 operand to the canonical position.
1202 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
1203 (*bitclr, *bitclr_in_memory): Similarly.
1204 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
1205 (insv): Retain the zero_extract in the expansion.
1207 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
1208 (bswaphi2, bitinvert, revw): Likewise.
1210 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
1211 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
1212 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
1213 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
1214 (bitset, bitset_in_memory): Likewise.
1215 (bitinvert, bitinvert_in_memory): Likewise.
1216 (bitclr, bitclr_in_memory): Likewise.
1217 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
1218 (rx_strend, rx_cmpstrn): Likewise.
1219 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
1220 (bitop peep2 patterns): Remove.
1222 * config/rx/rx.c (rx_match_ccmode): New.
1223 * config/rx/rx-protos.h: Update.
1224 * config/rx/rx.md (abssi2): Clobber, don't set flags.
1225 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
1226 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
1227 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
1228 (fix_truncsfsi2, floatsisf2): Likewise.
1229 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
1230 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
1231 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
1232 (*subsi3_flags, *xorsi3_flags): New.
1234 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
1236 * config/rx/rx.c (rx_print_operand): Remove workaround for
1237 unsplit comparison operations.
1239 * config/rx/rx.md (movsicc): Split after reload.
1240 (*movsicc): Merge *movsieq and *movsine via match_operator.
1241 (*stcc): New pattern.
1243 * config/rx/rx.c (rx_float_compare_mode): Remove.
1244 * config/rx/rx.h (rx_float_compare_mode): Remove.
1245 * config/rx/rx.md (cstoresi4): Split after reload.
1246 (*sccc): New pattern.
1248 * config/rx/predicates.md (label_ref_operand): New.
1249 (rx_z_comparison_operator): New.
1250 (rx_zs_comparison_operator): New.
1251 (rx_fp_comparison_operator): New.
1252 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
1253 Validate that the flags are set properly for the comparison.
1254 (rx_gen_cond_branch_template): Remove.
1255 (rx_cc_modes_compatible): Remove.
1256 (mode_from_flags): New.
1257 (flags_from_code): Rename from flags_needed_for_conditional.
1258 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
1259 (rx_select_cc_mode): Likewise.
1260 (rx_split_fp_compare): New.
1261 (rx_split_cbranch): New.
1262 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
1263 (*cbranchsi4): Use match_operator and rx_split_cbranch.
1264 (*cbranchsf4): Similarly.
1265 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
1266 match_operator and rx_split_cbranch.
1267 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
1268 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
1269 (*cmpsi): Rename from cmpsi.
1270 (*tstsi): Rename from tstsi.
1271 (*cmpsf): Rename from cmpsf; use CC_Fmode.
1272 (*conditional_branch): Rename from conditional_branch.
1273 (*reveresed_conditional_branch): Remove.
1274 (b<code>): Remove expander.
1275 * config/rx/rx-protos.h: Update.
1277 * config/rx/rx.c (rx_compare_redundant): Remove.
1278 * config/rx/rx.md (cmpsi): Don't use it.
1279 * config/rx/rx-protos.h: Update.
1281 * config/rx/rx-modes.def (CC_F): New mode.
1282 * config/rx/rx.c (rx_select_cc_mode): New.
1283 * config/rx/rx.h (SELECT_CC_MODE): Use it.
1284 * config/rx/rx-protos.h: Update.
1286 2011-01-17 Richard Henderson <rth@redhat.com>
1288 * except.c (dump_eh_tree): Fix stray ; after for statement.
1290 2011-01-17 Richard Guenther <rguenther@suse.de>
1292 PR tree-optimization/47313
1293 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
1294 handling before copying the body. Properly deal with
1295 by-reference result in SSA form.
1297 2011-01-17 Ian Lance Taylor <iant@google.com>
1300 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
1301 (struct_value_alias_set): Don't define.
1302 (sparc_option_override): Don't set sparc_sr_alias_set and
1303 struct_value_alias_set.
1304 (save_or_restore_regs): Use gen_frame_mem rather than calling
1306 (sparc_struct_value_rtx): Likewise.
1308 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
1311 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
1313 (_mm_maskstore_pd): Likewise.
1314 (_mm_maskload_ps): Likewise.
1315 (_mm_maskstore_ps): Likewise.
1316 (_mm256_maskload_pd): Change mask to __m256i.
1317 (_mm256_maskstore_pd): Likewise.
1318 (_mm256_maskload_ps): Likewise.
1319 (_mm256_maskstore_ps): Likewise.
1321 * config/i386/i386-builtin-types.def: Updated.
1322 (ix86_expand_special_args_builtin): Likewise.
1324 * config/i386/i386.c (bdesc_special_args): Update
1325 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
1326 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
1327 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
1328 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
1330 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
1331 Use <avxpermvecmode> on mask register.
1332 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
1334 2011-01-17 Olivier Hainque <hainque@adacore.com>
1335 Michael Haubenwallner <michael.haubenwallner@salomon.at>
1336 Eric Botcazou <ebotcazou@adacore.com>
1339 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
1340 if <= USHRT_MAX in 32-bit mode.
1342 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1344 * doc/install.texi (Configuration, Specific): Wrap long
1345 lines in examples. Allow line wrapping in long options
1346 and URLs where beneficial for PDF output.
1348 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
1350 * config/mips/mips.c (mips_classify_symbol): Don't return
1351 SYMBOL_PC_RELATIVE for nonlocal labels.
1353 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
1355 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
1357 2011-01-15 Jan Hubicka <jh@suse.cz>
1359 PR tree-optimization/47276
1360 * ipa.c (function_and_variable_visibility): Do not try to mark alias
1361 declarations as needed.
1363 2011-01-15 Martin Jambor <mjambor@suse.cz>
1365 * common.opt (fdevirtualize): New flag.
1366 * doc/invoke.texi (Option Summary): Document it.
1367 * opts.c (default_options_table): Add devirtualize flag.
1368 * ipa-prop.c (detect_type_change): Return immediately if
1369 devirtualize flag is not set.
1370 (detect_type_change_ssa): Likewise.
1371 (compute_known_type_jump_func): Likewise.
1372 (ipa_analyze_virtual_call_uses): Likewise.
1374 2011-01-14 Martin Jambor <mjambor@suse.cz>
1376 PR tree-optimization/45934
1377 PR tree-optimization/46302
1378 * ipa-prop.c (type_change_info): New type.
1379 (stmt_may_be_vtbl_ptr_store): New function.
1380 (check_stmt_for_type_change): Likewise.
1381 (detect_type_change): Likewise.
1382 (detect_type_change_ssa): Likewise.
1383 (compute_complex_assign_jump_func): Check for dynamic type change.
1384 (compute_complex_ancestor_jump_func): Likewise.
1385 (compute_known_type_jump_func): Likewise.
1386 (compute_scalar_jump_functions): Likewise.
1387 (ipa_analyze_virtual_call_uses): Likewise.
1388 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
1390 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1392 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
1393 * config/i386/i386.opt (msse5): New Alias.
1395 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1397 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
1398 * config/sparc/linux64.h (CC1_SPEC): Likewise.
1399 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1400 * config/sparc/sparc.h (CC1_SPEC): Likewise.
1402 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1404 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
1406 * config/sparc/linux64.h (CC1_SPEC): Likewise.
1407 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1408 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
1409 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
1411 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
1413 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1415 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or
1418 2011-01-14 Mike Stump <mikestump@comcast.net>
1420 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
1421 * config/fr30/fr30.md: Likweise
1422 (movsi_push): Likewise.
1423 (movsi_pop): Likewise.
1424 (enter_func): Likewise.
1425 * config/moxie/moxie.md (movsi_push): Likewise.
1426 (movsi_pop): Likewise.
1428 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1430 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
1431 %{no_archive} %{exact_version}.
1432 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
1433 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
1434 %{no_archive} %{exact_version}.
1435 * config/mips/openbsd.h (LINK_SPEC): Likewise.
1436 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
1437 * config/mips/vxworks.h: Likewise.
1439 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1441 * config/microblaze/microblaze.h (ASM_SPEC): Remove
1444 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1446 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
1447 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
1449 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1451 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
1454 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1456 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
1458 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
1459 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
1461 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
1462 Don't handle -shlib.
1464 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1466 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
1467 (CC1_SPEC): Don't handle -profile.
1469 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1471 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
1472 * config/mips/mips.h (CC1_SPEC): Likewise.
1474 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1476 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
1477 * config/mips/mips.h (CC1_SPEC): Likewise.
1479 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1481 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
1482 * config/m32r/linux.h (LINK_SPEC): Likewise.
1483 * config/mips/linux.h (LINK_SPEC): Likewise.
1484 * config/mips/linux64.h (LINK_SPEC): Likewise.
1485 * config/sparc/linux.h (LINK_SPEC): Likewise.
1486 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1487 LINK_SPEC): Likewise.
1488 * config/xtensa/linux.h (LINK_SPEC): Likewise.
1490 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1492 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
1494 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
1496 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1498 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
1499 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
1501 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1503 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
1505 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1507 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
1508 supports -Bstatic/-Bdynamic.
1509 * configure: Regenerate.
1511 2011-01-14 Jan Hubicka <jh@suse.cz>
1512 Jack Howarth <howarth@bromo.med.uc.edu>
1515 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
1516 when checking debug_info_level. Test write_symbols instead of
1517 debug_hooks->var_location when setting flag_var_tracking_uninit.
1519 2011-01-14 Richard Guenther <rguenther@suse.de>
1521 PR tree-optimization/47179
1522 * target.def (ref_may_alias_errno): New target hook.
1523 * targhooks.h (default_ref_may_alias_errno): Declare.
1524 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
1525 (default_ref_may_alias_errno): New function.
1526 * target.h (struct ao_ref_s): Declare.
1527 * tree-ssa-alias.c: Include target.h.
1528 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
1529 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
1530 (targhooks.o): Likewise.
1531 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
1532 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
1534 2011-01-14 Richard Guenther <rguenther@suse.de>
1536 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
1538 2011-01-14 Richard Guenther <rguenther@suse.de>
1540 PR tree-optimization/47280
1541 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
1543 (tree_ssa_forward_propagate_single_use_vars): Deal with
1544 CFG changes from associate_plusminus.
1546 2011-01-14 Richard Guenther <rguenther@suse.de>
1550 2011-01-11 Richard Guenther <rguenther@suse.de>
1552 PR tree-optimization/46076
1553 * tree-ssa.c (useless_type_conversion_p): Conversions from
1554 unprototyped to empty argument list function types are useless.
1556 2011-01-14 Richard Guenther <rguenther@suse.de>
1558 PR tree-optimization/47286
1559 * tree-ssa-structalias.c (new_var_info): Register variables are global.
1561 2011-01-14 Martin Jambor <mjambor@suse.cz>
1564 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
1566 2011-01-13 Anatoly Sokolov <aesok@post.ru>
1568 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
1569 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1570 * config/xtensa/xtensa.c (xtensa_libcall_value,
1571 xtensa_function_value_regno_p): New functions.
1572 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
1574 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
1577 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
1579 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
1580 New function prototype.
1581 * config/i386/winnt.c (i386_pe_assemble_visibility):
1582 Warn only if attribute was specified by user.
1584 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1587 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
1589 (floatunsdidf2_fcfidu): Ditto.
1591 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1593 * config/s390/s390.c (print_operand_address): Replace 'error' with
1594 'output_operand_lossage'.
1595 (print_operand): Likewise.
1597 2011-01-13 Jeff Law <law@redhat.com>
1599 PR rtl-optimization/39077
1600 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
1601 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
1602 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
1603 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
1604 * gcse.c (prune_insertions_deletions): New function.
1605 (compute_pre_data): Use it.
1607 2011-01-13 Dodji Seketeli <dodji@redhat.com>
1610 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
1612 (prune_unused_types_mark): Use it.
1614 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
1616 PR rtl-optimization/45352
1617 * sel-sched.c: Update copyright years.
1618 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1619 in the advancing loop when we have issued issue_rate insns.
1621 2011-01-12 Richard Henderson <rth@redhat.com>
1623 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
1624 (TARGET_MD_ASM_CLOBBERS): New.
1626 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
1627 (TARGET_DELEGITIMIZE_ADDRESS): New.
1629 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
1630 (clzsi2, *bsch): New patterns.
1632 * config/mn10300/mn10300.md (INT): New mode iterator.
1633 (*mov<INT>_clr): New pattern, and peep2 to generate it.
1635 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
1636 flag_split_wide_types.
1638 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
1639 (mn10300_trampoline_init): Rewrite without a template, an immediate
1640 load and a direct branch.
1641 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
1643 2011-01-12 Anatoly Sokolov <aesok@post.ru>
1645 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1646 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
1647 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
1648 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1650 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
1653 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
1656 2011-01-12 Jan Hubicka <jh@suse.cz>
1659 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
1660 (PLUGIN_COND_CLOSE): New macro.
1661 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
1663 2011-01-12 Richard Guenther <rguenther@suse.de>
1666 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
1667 register variables in a MEM_REF.
1669 2011-01-12 Joseph Myers <joseph@codesourcery.com>
1671 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
1672 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
1673 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
1674 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1675 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1676 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
1677 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
1678 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
1679 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
1680 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
1681 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
1682 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
1683 * config/gnu-user.h: New. Copied from linux.h.
1684 (LINUX_TARGET_STARTFILE_SPEC): Rename to
1685 GNU_USER_TARGET_STARTFILE_SPEC.
1686 (LINUX_TARGET_ENDFILE_SPEC): Rename to
1687 GNU_USER_TARGET_ENDFILE_SPEC.
1688 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
1689 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
1690 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
1691 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
1692 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
1693 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
1694 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
1695 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
1696 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
1697 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
1698 * config/arm/linux-eabi.h (CC1_SPEC): Use
1699 GNU_USER_TARGET_CC1_SPEC.
1700 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
1701 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
1702 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
1703 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
1704 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
1705 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
1706 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
1707 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
1709 2011-01-12 Richard Guenther <rguenther@suse.de>
1712 * doc/invoke.texi (ffast-math): Document it is turned on
1715 2011-01-12 Jan Hubicka <jh@suse.cz>
1717 PR tree-optimization/47233
1718 * opts.c (common_handle_option): Disable ipa-reference with profile
1721 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
1723 * c-parser.c (c_parser_objc_at_property_declaration): Improved
1726 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
1728 * c-parser.c (c_lex_one_token): Updated and reindented some
1729 comments. No changes in code.
1731 2011-01-11 Ian Lance Taylor <iant@google.com>
1733 * godump.c (go_output_var): Don't output the variable if there is
1734 already a type with the same name.
1736 2011-01-11 Ian Lance Taylor <iant@google.com>
1738 * godump.c (go_format_type): Don't generate float80.
1740 2011-01-11 Richard Henderson <rth@redhat.com>
1742 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
1743 declaration. Rewrite for both speed and size.
1744 (mn10300_address_cost_1): Remove.
1745 (mn10300_register_move_cost): New.
1746 (mn10300_memory_move_cost): New.
1747 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
1748 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
1749 extensions, shifts, BSWAP, CLZ.
1750 (mn10300_wide_const_load_uses_clr): Remove.
1751 (TARGET_REGISTER_MOVE_COST): New.
1752 (TARGET_MEMORY_MOVE_COST): New.
1753 * config/mn10300/mn10300-protos.h: Update.
1754 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
1756 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
1757 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
1758 * config/mn10300/mn10300-protos.h: Update.
1759 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
1760 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
1761 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
1762 (*test_int_bitfield, *test_byte_bitfield): Remove.
1763 (*bit_test, *subreg_bit_test): Remove.
1764 * config/mn10300/predicates.md (const_8bit_operand): Remove.
1766 * config/mn10300/constraints.md ("c"): Rename from "A".
1767 ("A", "D"): New constraint letters.
1768 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
1769 (fmssf4, fnmasf4, fnmssf4): Likewise.
1771 * config/mn10300/mn10300.md (isa): New attribute.
1772 (enabled): New attribute.
1774 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
1775 (abssf2, negsf2): Define only for hardware fp.
1776 (sqrtsf2): Reformat.
1777 (addsf3, subsf3, mulsf3): Merge expander and insn.
1779 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
1780 (DEBUGGER_AUTO_OFFSET): Remove.
1781 (DEBUGGER_ARG_OFFSET): Remove.
1783 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
1784 Emit register stores with the same offsets as the hardware.
1785 (mn10300_store_multiple_operation): Don't check that the register
1786 save offsets are monotonic.
1787 * config/mn10300/mn10300-protos.h: Update.
1789 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
1791 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
1792 in terms of the value on the stack, not the MDR register.
1794 2011-01-11 Jan Hubicka <jh@suse.cz>
1798 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
1799 (symbol_alias_set_destroy, symbol_alias_set_contains,
1800 propagate_aliases_backward): Declare.
1801 * lto-streamer-out.c (struct sets): New sturcture.
1802 (trivally_defined_alias): New function.
1803 (output_alias_pair_p): Rewrite.
1804 (output_unreferenced_globals): Fix output of alias pairs.
1805 (produce_symtab): Likewise.
1806 * ipa.c (function_and_variable_visibility): Set weak alias destination
1808 * varasm.c (symbol_alias_set_t): Remove.
1809 (symbol_alias_set_destroy): Export.
1810 (propagate_aliases_forward, propagate_aliases_backward): New functions
1812 (compute_visible_aliases): ... this one; remove.
1813 (trivially_visible_alias): New
1814 (trivially_defined_alias): New.
1815 (remove_unreachable_alias_pairs): Rewrite.
1816 (finish_aliases_1): Reorganize code checking if alias is defined.
1817 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
1820 2011-01-11 Richard Guenther <rguenther@suse.de>
1822 PR tree-optimization/46076
1823 * tree-ssa.c (useless_type_conversion_p): Conversions from
1824 unprototyped to empty argument list function types are useless.
1826 2011-01-11 Richard Guenther <rguenther@suse.de>
1829 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
1830 volatile MEMs as MEM_READONLY_P.
1832 2011-01-11 Richard Guenther <rguenther@suse.de>
1834 PR tree-optimization/47239
1835 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
1837 2011-01-11 Jeff Law <law@redhat.com>
1839 PR tree-optimization/47086
1840 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
1841 IVs from statements that might throw.
1843 2011-01-10 Jan Hubicka <jh@suse.cz>
1846 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
1848 2011-01-10 Jan Hubicka <jh@suse.cz>
1851 * profile.c (read_profile_edge_counts): Ignore profile inconistency
1852 when correcting profile.
1854 2011-01-10 Jan Hubicka <jh@suse.cz>
1857 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
1859 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
1860 Restore DECL_FINI_PRIORITY.
1862 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1864 * doc/gimple.texi: Fix quoting of multi-word return values in
1865 @deftypefn statements. Ensure presence of return value. Wrap
1866 overlong @deftypefn lines.
1867 (is_gimple_operand, is_gimple_min_invariant_address): Remove
1868 descriptions of removed functions.
1869 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
1870 of multi-word return value in @deftypefn statement.
1872 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1874 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
1875 (Conditional Expressions, Logical Operators)
1876 (Statement and operand traversals): Do not indent smallexample
1877 code. Fix duplicate function argument in example.
1879 2011-01-10 Jeff Law <law@redhat.com>
1881 PR tree-optimization/47141
1882 * ipa-split.c (split_function): Handle case where we are
1883 returning a value and the return block has a virtual operand phi.
1885 2011-01-10 Jan Hubicka <jh@suse.cz>
1887 PR tree-optimization/47234
1888 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
1889 (pass_feedback_split_functions): Declare.
1890 * passes.c (init_optimization_passes): Add ipa-split as subpass of
1892 * ipa-split.c (gate_split_functions): Update comments; disable
1893 split-functions for profile_arc_flag and branch_probabilities.
1894 (gate_feedback_split_functions): New function.
1895 (execute_feedback_split_functions): New function.
1896 (pass_feedback_split_functions): New global var.
1898 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
1901 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
1902 calling gimple_call_set_cannot_inline.
1904 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
1906 * config/darwin-sections.def: Remove unused section.
1908 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
1911 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
1913 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
1916 * c-parser.c (c_parser_declaration_or_fndef): Improved
1919 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
1921 * config/i386/winnt.c (i386_pe_start_function): Make sure
1922 to switch back to function's section.
1924 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
1928 * plugin.c: Move include of dlfcn.h from here...
1929 * system.h: ... to here.
1931 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1933 * doc/cpp.texi (C++ Named Operators): Fix markup for header
1935 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
1936 two extra empty pages in PDF output.
1938 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
1941 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
1942 for error recovery purposes behave as if it was not specified so
1943 that the default type is usd.
1945 2011-01-07 Jan Hubicka <jh@suse.cz>
1947 PR tree-optmization/46469
1948 * ipa.c (function_and_variable_visibility): Clear needed flags on
1949 nodes with external decls; handle weakrefs merging correctly.
1951 2011-01-07 Joseph Myers <joseph@codesourcery.com>
1953 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
1956 2011-01-07 Jan Hubicka <jh@suse.cz>
1958 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
1959 and no longer claim that gold is required for linker plugin.
1960 * configure: Regenerate.
1961 * gcc.c (PLUGIN_COND): New macro.
1962 (LINK_COMMAND_SPEC): Use it.
1963 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
1964 * config.in (HAVE_LTO_PLUGIN): New.
1965 * configure.ac (--with-lto-plugin): New parameter; autodetect
1968 2011-01-07 Jan Hubicka <jh@suse.cz>
1970 PR tree-optimization/46367
1971 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
1972 when we can update original.
1973 (cgraph_mark_inline_edge): Sanity check.
1974 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
1976 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1978 * config/spu/spu.h (ASM_COMMENT_START): Define.
1980 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
1984 (SWITCH_KEEP_FOR_GCC): Likewise.
1985 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
1986 (do_spec_1): Handle "%>".
1988 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
1990 2011-01-07 Jakub Jelinek <jakub@redhat.com>
1993 * config/i386/i386.c (ix86_delegitimize_address): If
1994 simplify_gen_subreg fails, return orig_x.
1997 * value-prof.c (gimple_stringop_fixed_value): Handle
1998 lhs of the call properly.
2000 2011-01-07 Jan Hubicka <jh@suse.cz>
2003 * lto-opt.c (lto_reissue_options): Set flag_shlib.
2005 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
2007 * target.def (function_switched_text_sections): New hook.
2008 * doc/tm.texi: Regenerated.
2009 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
2010 * final.c (default_function_switched_text_sections): New.
2011 (final_scan_insn): Call function_switched_text_sections when a
2012 mid-function section change occurs.
2013 * output.h (default_function_switched_text_sections): Declare.
2014 * config/darwin-protos.h (darwin_function_switched_text_sections):
2016 * config/darwin.c (darwin_function_switched_text_sections): New.
2017 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
2019 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
2021 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
2022 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
2023 the secondary code fragment when outputting for DWARF == 2.
2025 2011-01-07 Anatoly Sokolov <aesok@post.ru>
2027 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2028 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
2030 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
2031 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2033 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
2036 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
2037 when it is not empty.
2039 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
2042 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
2043 (case ${target}): Add btver1.
2044 * config/i386/driver-i386.c (host_detect_local_cpu): Let
2045 -march=native recognize btver1 processors.
2046 * config/i386/i386-c.c (ix86_target_macros_internal): Add
2047 btver1 def_and_undef
2048 * config/i386/i386.c (struct processor_costs btver1_cost): New
2050 (m_BTVER1): New definition.
2051 (m_AMD_MULTIPLE): Includes m_BTVER1.
2052 (initial_ix86_tune_features): Add btver1 tune.
2053 (processor_target_table): Add btver1 entry.
2054 (static const char *const cpu_names): Add btver1 entry.
2055 (software_prefetching_beneficial_p): Add btver1.
2056 (ix86_option_override_internal): Add btver1 instruction sets.
2057 (ix86_issue_rate): Add btver1.
2058 (ix86_adjust_cost): Add btver1.
2059 * config/i386/i386.h (TARGET_BTVER1): New definition.
2060 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
2061 (enum processor_type): Add PROCESSOR_BTVER1.
2062 * config/i386/i386.md (define_attr "cpu"): Add btver1.
2064 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2067 * config/i386/i386.c (legitimize_tls_address)
2068 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
2069 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
2070 (tls_initial_exec_64_sun): New pattern.
2072 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
2074 * doc/invoke.texi (Overall Options): Improve wording and markup
2075 of the description of -wrapper.
2077 2011-01-06 Joseph Myers <joseph@codesourcery.com>
2079 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
2080 rdynamic, threads): New Driver options.
2082 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2085 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
2086 if coming from .tdata.
2087 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
2089 2011-01-06 Jan Hubicka <jh@suse.cz>
2092 * collect2.c (main): Do not enable LTOmode when plugin is active.
2094 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2097 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
2098 --version output if supported.
2099 * configure: Regenerate.
2101 2011-01-06 Joseph Myers <joseph@codesourcery.com>
2103 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
2106 2011-01-06 Jakub Jelinek <jakub@redhat.com>
2109 * c-convert.c (convert): When converting a complex expression
2110 other than COMPLEX_EXPR to a different complex type, ensure
2111 c_save_expr is called instead of save_expr, unless in_late_binary_op.
2112 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
2113 when converting COMPLEX_TYPE.
2115 2011-01-06 Ira Rosen <irar@il.ibm.com>
2117 PR tree-optimization/47139
2118 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
2119 only the last reduction value is used outside the loop. Update
2122 2011-01-05 Joseph Myers <joseph@codesourcery.com>
2124 * config/rtems.opt: New.
2125 * config.gcc (*-*-rtems*): Use rtems.opt.
2127 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
2129 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
2130 processors do not support 3DNow instructions.
2132 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2134 * config/spu/spu.c (spu_option_override): Set parameter
2135 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
2137 2011-01-05 Jan Hubicka <jh@suse.cz>
2139 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
2140 at the command line.
2142 2011-01-05 Martin Jambor <mjambor@suse.cz>
2145 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
2146 deltas on streamed outgoing edges.
2147 (output_node_opt_summary): Output info for outgoing edges only when
2148 the node is in new parameter set.
2149 (output_cgraph_opt_summary): New parameter set, passed to the two
2150 aforementioned functions. Update its forward declaration and its
2153 2011-01-05 Tom Tromey <tromey@redhat.com>
2155 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
2156 operator to c_finish_omp_atomic.
2157 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
2158 (build_unary_op): Update.
2159 (build_modify_expr): Update.
2160 (build_asm_expr): Update.
2162 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2164 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
2165 newly inserted insns.
2167 (spu_emit_branch_hint): Likewise.
2168 (insert_hbrp_for_ilb_runout): Likewise.
2169 (spu_machine_dependent_reorg): Call df_finish_pass after
2170 schedule_insns returns.
2172 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2174 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
2176 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
2178 PR tree-optimization/47005
2179 * tree-sra.c (struct access): Add 'non_addressable' bit.
2180 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
2181 (decide_one_param_reduction): Return 0 if the parameter is passed by
2182 reference and one of the accesses in the group is non_addressable.
2184 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
2186 PR tree-optimization/47056
2187 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
2188 (mark_load): Likewise. Handle FUNCTION_DECL specially.
2189 (mark_store): Likewise. Pass STMT to ipa_record_reference.
2191 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
2193 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
2194 initializer. Skip view conversions from aggregate types.
2196 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
2199 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
2201 2011-01-04 Philipp Thomas <pth@suse.de>
2203 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
2206 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2208 * function.c (thread_prologue_and_epilogue_insns): Do not crash
2209 on empty epilogue sequences.
2211 2011-01-04 Joseph Myers <joseph@codesourcery.com>
2213 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
2214 non-static): New Driver options.
2216 2011-01-04 Jie Zhang <jie@codesourcery.com>
2219 * gcc.c (default_compilers[]): Set combinable field to 0
2220 for all assembly languages.
2222 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
2224 * config/mips/loongson3a.md: New file.
2225 * config/mips/mips.md: Include loongson3a.md.
2226 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
2229 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
2232 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
2233 instead of convert_memory_address_addr_space on the base expression.
2235 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2237 * config/spu/spu.c (spu_option_override): Update error text
2238 for bad -march= / -mtune= values.
2240 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2242 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
2243 if branch-hint optimization will be performed.
2245 2011-01-03 Jakub Jelinek <jakub@redhat.com>
2247 PR tree-optimization/47148
2248 * ipa-split.c (split_function): Convert arguments to
2249 DECL_ARG_TYPE if possible.
2251 PR tree-optimization/47155
2252 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
2255 PR rtl-optimization/47157
2256 * combine.c (try_combine): If undobuf.other_insn becomes
2257 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
2258 and set *new_direct_jump_p too.
2260 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
2262 PR tree-optimization/47021
2263 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
2265 2011-01-03 Jakub Jelinek <jakub@redhat.com>
2267 * gcc.c (process_command): Update copyright notice dates.
2268 * gcov.c (print_version): Likewise.
2269 * gcov-dump.c (print_version): Likewise.
2270 * mips-tfile.c (main): Likewise.
2271 * mips-tdump.c (main): Likewise.
2273 2011-01-03 Martin Jambor <mjambor@suse.cz>
2275 PR tree-optimization/46801
2276 * tree-sra.c (type_internals_preclude_sra_p): Check whether
2277 aggregate fields start at byte boundary instead of the bit-field flag.
2279 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
2282 * gcc.c (main): Revert revision 168407.
2284 2011-01-03 Martin Jambor <mjambor@suse.cz>
2286 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
2288 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2290 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
2291 vector optab to expand vector/scalar shift, update gimple to vector.
2293 2011-01-03 Martin Jambor <mjambor@suse.cz>
2295 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
2298 2011-01-03 Martin Jambor <mjambor@suse.cz>
2300 PR tree-optimization/46984
2301 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
2303 (cgraph_create_indirect_edge): Fixed line length.
2304 (cgraph_indirect_call_info): Declare.
2305 (cgraph_make_edge_direct) Update declaration.
2306 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
2307 (cgraph_create_indirect_edge): Use it.
2308 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
2310 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
2311 the new thunk_delta representation.
2312 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
2314 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
2315 (ipa_read_indirect_edge_info): Likewise.
2316 * lto-cgraph.c (output_edge_opt_summary): New function.
2317 (output_node_opt_summary): Call it on all outgoing edges.
2318 (input_edge_opt_summary): New function.
2319 (input_node_opt_summary): Call it on all outgoing edges.
2321 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
2324 * gcc.c (main): Don't check have_o when settting combine_inputs.
2326 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
2328 * regrename.c: Add general comment describing the pass.
2329 (struct du_head): Remove 'length' field.
2330 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
2331 (regrename_optimize): Do not sort chains. Rework comments, add others.
2332 Force renaming to the preferred class (if any) in the first pass and do
2333 not consider registers that belong to it in the second pass.
2334 (create_new_chain): Do not set 'length' field.
2335 (scan_rtx_reg): Likewise.
2337 2011-01-02 Jakub Jelinek <jakub@redhat.com>
2339 PR tree-optimization/47140
2340 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
2341 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
2344 PR rtl-optimization/47028
2345 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
2346 parm_birth_insn instead of at the beginning of first bb.
2348 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
2350 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
2351 Remove the word "see" before "@pxref".
2352 * doc/rtl.texi: Remove the word "see" before "@pxref".
2354 2011-01-01 Jan Hubicka <jh@suse.cz>
2356 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
2359 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
2362 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
2365 Copyright (C) 2011 Free Software Foundation, Inc.
2367 Copying and distribution of this file, with or without modification,
2368 are permitted in any medium without royalty provided the copyright
2369 notice and this notice are preserved.