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