1 2011-01-28 Jakub Jelinek <jakub@redhat.com>
4 * varasm.c (force_const_mem): Store copy of x in desc->constant
6 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
7 itself into REG_EQUAL note.
9 2011-01-28 Joseph Myers <joseph@codesourcery.com>
11 * config/freebsd.opt (posix, rdynamic): New Driver options.
13 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
17 * configure: Regenerate.
19 2011-01-27 Joseph Myers <joseph@codesourcery.com>
21 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
22 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
24 2011-01-27 Anatoly Sokolov <aesok@post.ru>
26 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
27 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
28 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
29 (s390_preferred_reload_class): Make static. Change return and
30 'rclass' argument type to reg_class_t.
32 2011-01-27 Jan Hubicka <jh@suse.cz>
35 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
36 (process_function_and_variable_attributes): Check defined weakrefs.
38 2011-01-27 Martin Jambor <mjambor@suse.cz>
40 PR tree-optimization/47228
41 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
44 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
46 * config/spu/spu-elf.h (ASM_SPEC): Remove.
48 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
50 PR rtl-optimization/46856
51 * postreload.c (reload_combine_recognize_const_pattern): Do not
52 separate cc0 setter and user on cc0 targets.
54 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
57 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
58 passed a VOID_TYPE expression, immediately emit an error and
59 return error_mark_node.
61 2011-01-26 Jeff Law <law@redhat.com>
63 PR rtl-optimization/47464
64 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
65 rather than may_trap_p as needed.
67 2011-01-26 DJ Delorie <dj@redhat.com>
69 PR rtl-optimization/46878
70 * combine.c (insn_a_feeds_b): Check for the implicit cc0
71 setter/user dependency as well.
73 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
75 PR rtl-optimization/44469
76 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
77 after removing trivially dead basic blocks.
79 2011-01-26 Joseph Myers <joseph@codesourcery.com>
81 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
82 * config/frv/frv.h (LINK_SPEC): Likewise.
83 * config/i386/netware.h (LINK_SPEC): Likewise.
84 * config/m68k/linux.h (ASM_SPEC): Likewise.
85 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
86 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
87 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
88 * config/sparc/linux.h (ASM_SPEC): Likewise.
89 * config/sparc/linux64.h (ASM_SPEC): Likewise.
90 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
92 2011-01-26 Joseph Myers <joseph@codesourcery.com>
94 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
95 * config/frv/frv.h (ASM_SPEC): Likewise.
96 * config/m68k/linux.h (ASM_SPEC): Likewise.
97 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
98 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
99 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
100 * config/sparc/linux.h (ASM_SPEC): Likewise.
101 * config/sparc/linux64.h (ASM_SPEC): Likewise.
102 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
104 2011-01-26 Joseph Myers <joseph@codesourcery.com>
106 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
107 * config/frv/frv.h (LINK_SPEC): Likewise.
108 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
110 2011-01-26 Joseph Myers <joseph@codesourcery.com>
112 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
113 * config/frv/frv.h (ASM_SPEC): Likewise.
114 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
115 * config/m68k/linux.h (ASM_SPEC): Likewise.
116 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
117 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
118 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
119 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
120 * config/sparc/linux.h (ASM_SPEC): Likewise.
121 * config/sparc/linux64.h (ASM_SPEC): Likewise.
122 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
123 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
125 2011-01-26 Steve Ellcey <sje@cup.hp.com>
128 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
130 (vec_extract_evenodd_help): Ditto.
131 (vec_extract_evenv4hi): Ditto.
132 (vec_extract_oddv4hi): Ditto.
133 (vec_interleave_lowv2si): Ditto.
134 (vec_interleave_highv2si): Ditto.
135 (vec_extract_evenv2si): Ditto.
136 (vec_extract_oddv2si: Ditto.
137 (vec_pack_trunc_v2si): Ditto.
139 2011-01-22 Jan Hubicka <jh@suse.cz>
142 * cgraph.h (cgraph_local_info): New field can_change_signature.
143 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
144 signature can change.
145 (ipcp_estimate_growth): Call sequence simplify only if calle signature
147 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
148 (cgraph_function_versioning): We can not change signature of functions
149 that don't allow that.
150 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
151 (lto_input_node): Likewise.
152 * ipa-inline.c (compute_inline_parameters): Compute local.can_change_signature.
153 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
154 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on functions
155 that can not change signature.
156 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
157 init_cumulative_args): Do not use local calling conventions for functions
158 that can not change signature.
160 2011-01-22 Jan Hubicka <jh@suse.cz>
162 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
164 2011-01-26 Richard Guenther <rguenther@suse.de>
166 PR tree-optimization/47190
167 * cgraphunit.c (process_common_attributes): New function.
168 (process_function_and_variable_attributes): Use it.
170 2011-01-26 Richard Guenther <rguenther@suse.de>
173 * cgraphbuild.c (record_eh_tables): Record reference to personality
176 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
179 * sel-sched.c (moveup_expr): Don't let debug insns prevent
180 non-debug insns from moving up.
182 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
185 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
186 t-dlldir{,-x} fragment for build and add it to tmake_file.
187 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
188 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
189 * config/i386/t-dlldir: New file.
190 (SHLIB_DLLDIR): Define.
191 * config/i386/t-dlldir-x: New file.
192 (SHLIB_DLLDIR): Define.
193 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
194 (SHLIB_INSTALL): Use it.
196 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
199 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
200 lower bound of the allowed Thumb-2 coprocessor load/store
201 index range to -256. Add explaining comment.
203 2011-01-25 Ian Lance Taylor <iant@google.com>
205 * godump.c (go_define): Improve lexing of macro expansion to only
206 accept expressions which match Go spec.
208 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
211 * tree.c (handle_dll_attribute): Handle it.
212 * doc/extend.texi (@item dllexport): Mention it.
213 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
215 2011-01-25 Ian Lance Taylor <iant@google.com>
217 PR tree-optimization/26854
218 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
219 (decl_jump_unsafe): Move higher in file, with no other change.
220 (bind): Set has_jump_unsafe_decl if appropriate.
221 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
222 (check_earlier_gotos): Likewise.
223 (c_check_switch_jump_warnings): Likewise.
225 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
227 * doc/invoke.texi (Warning Options): Add missing hyphen.
228 (-fprofile-dir): Minor grammatical fixes.
229 (-fbranch-probabilities): Likewise.
231 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
235 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
237 (no_real_insns_p, schedule_block, set_priorities): Drop special
238 treatment of boundary debug insns.
239 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug
241 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
242 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
243 (BOUNDARY_DEBUG_INSN_P): Likewise.
244 (SCHEDULE_DEBUG_INSN_P): Likewise.
245 * sched-rgn.c (init_ready_list): Drop special treatment of
246 boundary debug insns.
247 * final.c (rest_of_clean-state): Clear notes' BB.
249 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
251 * Makefile.in (LAMBDA_H): Removed.
252 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
253 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
254 lambda-trans.o, and tree-loop-linear.o.
255 (lto-symtab.o): Remove dependence on LAMBDA_H.
256 (tree-loop-linear.o): Remove rule.
257 (lambda-mat.o): Same.
258 (lambda-trans.o): Same.
259 (lambda-code.o): Same.
260 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
261 (tree-vect-slp.o): Same.
262 * hwint.h (gcd): Moved here.
263 (least_common_multiple): Same.
264 * lambda-code.c: Removed.
265 * lambda-mat.c: Removed.
266 * lambda-trans.c: Removed.
268 * tree-loop-linear.c: Removed.
269 * lto-symtab.c: Do not include lambda.h.
270 * omega.c (gcd): Removed.
271 * passes.c (init_optimization_passes): Remove pass_linear_transform.
272 * tree-data-ref.c (print_lambda_vector): Moved here.
273 (lambda_vector_copy): Same.
274 (lambda_matrix_copy): Same.
275 (lambda_matrix_id): Same.
276 (lambda_vector_first_nz): Same.
277 (lambda_matrix_row_add): Same.
278 (lambda_matrix_row_exchange): Same.
279 (lambda_vector_mult_const): Same.
280 (lambda_vector_negate): Same.
281 (lambda_matrix_row_negate): Same.
282 (lambda_vector_equal): Same.
283 (lambda_matrix_right_hermite): Same.
284 * tree-data-ref.h: Do not include lambda.h.
285 (lambda_vector): Moved here.
286 (lambda_matrix): Same.
287 (dependence_level): Same.
288 (lambda_transform_legal_p): Removed declaration.
289 (lambda_collect_parameters): Same.
290 (lambda_compute_access_matrices): Same.
291 (lambda_vector_gcd): Same.
292 (lambda_vector_new): Same.
293 (lambda_vector_clear): Same.
294 (lambda_vector_lexico_pos): Same.
295 (lambda_vector_zerop): Same.
296 (lambda_matrix_new): Same.
297 * tree-flow.h (least_common_multiple): Removed declaration.
298 * tree-parloops.c (lambda_trans_matrix): Moved here.
302 (LTM_DENOMINATOR): Same.
303 (lambda_trans_matrix_new): Same.
304 (lambda_matrix_vector_mult): Same.
305 (lambda_transform_legal_p): Same.
306 * tree-pass.h (pass_linear_transform): Removed declaration.
307 * tree-ssa-loop.c (tree_linear_transform): Removed.
308 (gate_tree_linear_transform): Removed.
309 (pass_linear_transform): Removed.
310 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
311 flag_loop_interchange.
313 2011-01-25 Jakub Jelinek <jakub@redhat.com>
315 PR tree-optimization/47265
316 PR tree-optimization/47443
317 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
318 if name still has some uses.
320 2011-01-25 Martin Jambor <mjambor@suse.cz>
322 PR tree-optimization/47382
323 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
324 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
326 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
328 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
329 sjlj_except_unwind_info.
331 2011-01-25 Richard Guenther <rguenther@suse.de>
333 PR tree-optimization/47426
334 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
335 visible functions results escape.
337 2011-01-25 Jakub Jelinek <jakub@redhat.com>
340 * config/arm/arm.c (any_sibcall_uses_r3): New function.
341 (arm_get_frame_offsets): Use it.
343 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
344 Jakub Jelinek <jakub@redhat.com>
346 PR tree-optimization/47271
347 * tree-if-conv.c (bb_postdominates_preds): New.
348 (if_convertible_bb_p): Call bb_postdominates_preds.
349 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
350 (predicate_scalar_phi): Call bb_postdominates_preds.
352 2011-01-25 Nick Clifton <nickc@redhat.com>
354 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
355 * config/rx/rx.c (rx_function_value): Likewise.
356 (rx_promote_function_mode): Likewise.
357 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
358 in order to make it legitimate.
359 * config/rx/rx.md (adddi3_internal): If the second operand is a
360 MEM make sure that the first operand is the same as the result
362 (addsi3_unspec): Delete.
363 (subdi3): Do not accept immediate operands.
364 (subdi3_internal): Likewise.
366 2011-01-25 Jeff Law <law@redhat.com>
368 PR rtl-optimization/37273
369 * ira-costs.c (scan_one_insn): Detect constants living in memory and
370 handle them like argument loads from stack slots. Do not double
371 count memory for memory constants and argument loads from stack slots.
373 2011-01-25 Jakub Jelinek <jakub@redhat.com>
375 PR tree-optimization/47427
376 PR tree-optimization/47428
377 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
378 coalesce if the new root var would be TREE_READONLY.
380 2011-01-25 Richard Guenther <rguenther@suse.de>
383 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
384 correct type for TBAA.
386 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
388 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
389 (close_phi_written_to_memory): Call for_each_index with
390 dr_indices_valid_in_loop.
392 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
394 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
395 when it is initialized.
397 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
399 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
400 call to graphite_find_data_references_in_stmt.
401 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
402 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
403 call to graphite_find_data_references_in_stmt.
404 (analyze_drs_in_stmts): Same.
405 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
406 in which the scalar analysis of indices is performed.
407 (create_data_ref): Same. Update call to dr_analyze_indices.
408 (find_data_references_in_stmt): Update call to create_data_ref.
409 (graphite_find_data_references_in_stmt): Same.
410 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
412 (create_data_ref): Same.
413 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
414 call to create_data_ref.
416 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
418 * graphite-sese-to-poly.c (build_poly_scop): Move
419 rewrite_commutative_reductions_out_of_ssa before
420 find_scop_parameters.
422 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
424 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
425 VAR_DECL, PARM_DECL, and RESULT_DECL.
427 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
429 * graphite-dependences.c (reduction_dr_1): Allow several reductions
431 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
432 that have already been marked as PBB_IS_REDUCTION.
434 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
436 * graphite-scop-detection.c (same_close_phi_node): New.
437 (remove_duplicate_close_phi): New.
438 (make_close_phi_nodes_unique): New.
439 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
441 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
443 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
444 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
445 of both data references to be the same.
447 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
449 * graphite-dependences.c (build_lexicographical_constraint): Remove the
451 (build_lexicographical_constraint): Adjust call to ppl_powerset_is_empty.
452 (dependence_polyhedron): Same.
453 (graphite_legal_transform_dr): Same.
454 (graphite_carried_dependence_level_k): Same.
455 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params parameter.
456 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
458 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
460 * graphite-sese-to-poly.c
461 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
462 (close_phi_written_to_memory): New.
463 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
466 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
468 * doc/install.texi: Update the expected version number of PPL to 0.11.
469 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
470 #if PPL_VERSION_MINOR < 11.
472 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
474 * graphite-dependences.c: Include graphite-cloog-util.h.
475 (new_poly_ddr): Inlined into dependence_polyhedron.
476 (free_poly_ddr): Moved close by new_poly_ddr.
477 (dependence_polyhedron_1): Renamed dependence_polyhedron.
478 Early return NULL when ppl_powerset_is_empty returns true.
479 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
480 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
481 (graphite_legal_transform_dr): Call new_poly_ddr.
482 (graphite_carried_dependence_level_k): Same.
483 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
484 (dot_transformed_deps_stmt_1): Removed.
485 (dot_deps_stmt_1): Call dot_deps_stmt_2.
486 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
487 (dot_deps_1): Call dot_deps_2.
488 * Makefile.in (graphite-dependences.o): Add missing dependence on
489 graphite-cloog-util.h.
491 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
493 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
494 (build_lexicographical_constraint): Same.
495 (dependence_polyhedron_1): Same.
496 (graphite_legal_transform_dr): Same.
497 (graphite_carried_dependence_level_k): Same.
498 * graphite-ppl.c (ppl_powerset_is_empty): New.
499 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
500 * tree-data-ref.c (dump_data_reference): Print the basic block index.
502 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
504 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
505 the "a followed by b" relation and document it.
507 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
509 * graphite-dependences.c (build_lexicographical_constraint): Stop the
510 iteration when the bag of constraints is empty.
512 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
514 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
516 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
518 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
519 nest and two loop depths as parameters.
520 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
523 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
525 * graphite-dependences.c (print_pddr): Call
526 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
528 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
530 * graphite-ppl.c (debug_gmp_value): New.
531 * graphite-ppl.h (debug_gmp_value): Declared.
533 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
535 * doc/install.texi: Document availability of cloog-0.16.
537 2011-01-25 Vladimir Kargov <kargov@gmail.com>
539 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
540 invalid postdominance info.
542 2011-01-24 Jan Hubicka <jh@suse.cz>
545 * doc/extend.texi (weak pragma): Drop claim that it must
546 appear before definition.
547 * varasm.c (merge_weak, declare_weak): Only sanity check
548 that DECL is not output at a time it is declared weak.
550 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
552 * machmode.def: Fixed comments.
554 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
556 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
558 2011-01-24 Paul Koning <ni1d@arrl.net>
560 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
563 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
566 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
567 (block_info): Add scanned and prev.
568 (move_or_delete_vzeroupper_2): Return if the basic block
569 has been scanned and the upper 128bit state is unchanged
571 (move_or_delete_vzeroupper_1): Return true if the exit
573 (move_or_delete_vzeroupper): Visit basic blocks using the
574 work-list based algorithm based on vt_find_locations in
577 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
579 2011-01-24 Nick Clifton <nickc@redhat.com>
581 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
582 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
583 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
584 then define __v850e1__.
585 * doc/invoke.texi: Document -mv850es.
587 2011-01-24 Richard Henderson <rth@redhat.com>
589 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
590 compound unordered comparisons.
591 * config/rx/rx.c (rx_split_fp_compare): Remove.
592 * config/rx/rx-protos.h: Update.
593 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
594 (cbranchsf4): Don't call rx_split_fp_compare.
595 (*cbranchsf4): Use rx_split_cbranch.
596 (*cmpsf): Don't accept "i" constraint.
597 (*conditional_branch): Only valid after reload.
598 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
600 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
603 * config/rs6000/altivec.md (vector constant splitters): Add
604 support for creating vector single precision constants if -mvsx is
605 used and we would create the constant using Altivec primitives.
607 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
608 Richard Sandiford <rdsandiford@googlemail.com>
610 PR rtl-optimization/47166
611 * reload1.c (emit_reload_insns): Disable the spill_reg_store
612 mechanism for PRE_MODIFY and POST_MODIFY.
613 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
616 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
618 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
620 2011-01-22 Jan Hubicka <jh@suse.cz>
623 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
625 2011-01-22 Jan Hubicka <jh@suse.cz>
627 PR tree-optimization/43884
629 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
630 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
632 2011-01-22 Anatoly Sokolov <aesok@post.ru>
634 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
635 * config/s390/s390.c (s390_register_move_cost,
636 s390_memory_move_cost): New.
637 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
639 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
642 * except.c (sjlj_assign_call_site_values): Move setting the
643 crtl->uses_eh_lsda flag to ...
644 (sjlj_mark_call_sites): ... here.
645 (sjlj_emit_function_enter): Support NULL dispatch label.
646 (sjlj_build_landing_pads): In a function with no landing pads
647 that still has must-not-throw regions, generate code to register
648 a personality function with empty LSDA.
650 2011-01-21 Richard Henderson <rth@redhat.com>
652 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
654 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
656 * compare-elim.c: New file.
657 * Makefile.in (OBJS-common): Add it.
658 (compare-elim.o): New.
659 * common.opt (fcompare-elim): New.
660 * opts.c (default_options_table): Add OPT_fcompare_elim.
661 * tree-pass.h (pass_compare_elim_after_reload): New.
662 * passes.c (init_optimization_passes): Add it.
663 * recog.h: Protect against re-inclusion.
664 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
665 * doc/invoke.texi (-fcompare-elim): Document it.
666 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
667 * doc/tm.texi: Rebuild.
669 2011-01-22 Nick Clifton <nickc@redhat.com>
671 * config/rx/rx.md (cstoresf4): Pass comparison operator to
674 2011-01-22 Nick Clifton <nickc@redhat.com>
676 * config/rx/rx.md (UNSPEC_CONST): New.
677 (deallocate_and_return): Wrap the amount popped off the stack in
678 an UNSPEC_CONST in order to stop it being rejected by
680 (pop_and_return): Add a "(return)" rtx.
681 (call): Drop the immediate operand.
682 (call_internal): Likewise.
683 (call_value): Likewise.
684 (call_value_internal): Likewise.
685 (sibcall_internal): Likewise.
686 (sibcall_value_internal): Likewise.
687 (sibcall): Likewise. Generate an explicit call using
689 (sibcall_value): Likewise.
690 (mov<>): FAIL if a constant operand is not legitimate.
691 (addsi3_unpsec): New pattern.
693 * config/rx/rx.c (rx_print_operand_address): Handle UNPSEC
695 (ok_for_max_constant): New function.
696 (gen_safe_add): New function.
697 (rx_expand_prologue): Use gen_safe_add.
698 (rx_expand_epilogue): Likewise.
699 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
702 2011-01-21 Jeff Law <law@redhat.com>
704 PR tree-optimization/47053
705 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
706 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
707 statements are deleted.
708 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
709 is nonempty, then purge dead edges and cleanup the CFG.
711 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
715 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
717 * tree-dfa.c (create_var_ann): Mark variable as used.
719 2011-01-21 Jakub Jelinek <jakub@redhat.com>
722 * except.c (convert_to_eh_region_ranges): Emit queued no-region
723 notes from other section in hot/cold partitioning even if
724 last_action is -3. Increment call_site_base.
726 PR rtl-optimization/47366
727 * fwprop.c (forward_propagate_into): Return bool. If
728 any changes are made, -fnon-call-exceptions is used and
729 REG_EH_REGION note is present, call purge_dead_edges
730 and return true if it purged anything.
731 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
732 any EH edges were purged.
734 2011-01-21 Jeff Law <law@redhat.com>
736 PR rtl-optimization/41619
737 * caller-save.c (setup_save_areas): Break out code to determine
738 which hard regs are live across calls by examining the reload chains
739 so that it is always used.
740 Eliminate code which checked REG_N_CALLS_CROSSED.
742 2011-01-21 Jakub Jelinek <jakub@redhat.com>
744 PR tree-optimization/47355
745 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
746 NOP has non-debug uses beyond PHIs in new_bb.
748 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
751 * cfgexpand.c (account_used_vars_for_block): Only account vars
752 that are annotated as used.
753 (estimated_stack_frame_size): Don't set TREE_USED.
754 * tree-dfa.c (create_var_ann): Mark variable as used.
756 2011-01-21 Richard Guenther <rguenther@suse.de>
759 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
761 2011-01-21 Richard Guenther <rguenther@suse.de>
763 PR tree-optimization/47365
764 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
765 (vn_reference_lookup_pieces): Adjust.
766 (vn_reference_lookup): Likewise.
767 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
768 (vn_reference_lookup_3): Only look through kills if in
770 (vn_reference_lookup_pieces): Adjust.
771 (vn_reference_lookup): Likewise.
772 (visit_reference_op_load): Likewise.
773 (visit_reference_op_store): Likewise.
774 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
775 (compute_avail): Likewise.
776 (eliminate): Likewise.
778 2011-01-21 Jakub Jelinek <jakub@redhat.com>
780 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
781 DECL_IGNORED_P non-reg vars if they are used.
783 PR tree-optimization/47391
784 * varpool.c (const_value_known_p): Return false if
787 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
790 * config/i386/i386.c (ix86_local_alignment): Handle
791 case for va_list_type_node is nil.
792 (ix86_canonical_va_list_type): Likewise.
794 2011-01-21 Alan Modra <amodra@gmail.com>
796 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
797 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
799 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
801 * config/arm/arm.md (define_attr type): Rename f_load
802 and f_store to f_fpa_load and f_fpa_store. Update.
803 (write_conflict): Deal with rename fallout.
804 (*push_fp_multi): Likewise.
805 * config/arm/fpa.md (f_load): Use f_fpa_load.
806 (f_store): Use f_fpa_store.
807 (*movsf_fpa): Likewise.
808 (*movdf_fpa): Likewise.
809 (*movxf_fpa): Likewise.
810 (*thumb2_movsf_fpa): Likewise.
811 (*thumb2_movdf_fpa): Likewise.
812 (*thumb2_movxf_fpa): Likewise.
813 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
814 f_loadd and f_stored.
815 (*thumb2_movdi_vfp): Likewise.
816 (*thumb2_movsf_vfp): Fix attribute to f_loads.
817 (*thumb2_movsi_vfp): Likewise.
818 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
819 Use f_loads instead of f_load.
820 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
822 2011-01-20 Anatoly Sokolov <aesok@post.ru>
824 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
825 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
826 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
827 (xtensa_mode_dependent_address_p): New function.
828 (constantpool_address_p): Make static. Change return type to bool.
829 Change argument type to const_rtx. Use CONST_INT_P predicate.
831 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
834 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
836 2011-01-20 Jakub Jelinek <jakub@redhat.com>
839 * cfgexpand.c (expand_debug_expr): Instead of generating
840 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
843 2011-01-20 Richard Guenther <rguenther@suse.de>
846 * tree-inline.c (remap_gimple_op_r): Recurse manually for
847 the pointer operand of MEM_REFs.
849 2011-01-20 Jakub Jelinek <jakub@redhat.com>
851 PR tree-optimization/46130
852 * ipa-split.c (consider_split): If return_bb contains non-virtual
853 PHIs other than for retval or if split_function would not adjust it,
856 2011-01-20 Richard Guenther <rguenther@suse.de>
858 PR tree-optimization/47167
859 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
860 Revert previous change, only avoid enumeral type changes.
862 2011-01-19 Dodji Seketeli <dodji@redhat.com>
865 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
866 (gen_scheduled_generic_parms_dies): New functions.
867 (gen_struct_or_union_type_die): Schedule template parameters DIEs
868 generation for the end of CU compilation.
869 (dwarf2out_finish): Generate template parameters DIEs here.
871 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
874 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
875 debug bind stmt on merge edges.
877 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
881 * function.c (instantiate_expr): Instantiate incoming rtl of
882 implicit arguments, and recurse on VALUE_EXPRs.
883 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
884 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
886 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
888 * c-parser.c (c_parser_for_statement): Initialize
889 collection_expression.
891 2011-01-19 Joseph Myers <joseph@codesourcery.com>
893 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
895 2011-01-19 Joseph Myers <joseph@codesourcery.com>
897 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
898 (LINK_SHLIB_SPEC): Don't use %(link_path).
899 (SUBTARGET_EXTRA_SPECS): Remove link_path.
901 2011-01-19 Joseph Myers <joseph@codesourcery.com>
903 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
904 (NO_SHARED_LIB_SUPPORT): Remove.
905 (LINK_SHLIB_SPEC): Remove one conditional definition.
907 2011-01-19 Joseph Myers <joseph@codesourcery.com>
909 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
911 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
912 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
913 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
914 %{call_shared} and conditionals on these options not being passed.
915 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
918 2011-01-19 Jakub Jelinek <jakub@redhat.com>
920 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
923 * ipa-split.c: Spelling fixes.
925 2011-01-19 Richard Henderson <rth@redhat.com>
927 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
930 * longlong.h [__mn10300__] (count_leading_zeros): New.
931 [__mn10300__] (umul_ppmm, smul_ppmm): New.
932 [__mn10300__] (add_ssaaaa, subddmmss): New.
933 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
934 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
936 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
938 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
940 2011-01-19 Richard Henderson <rth@redhat.com>
942 * config/mn10300/mn10300.md (addsi3_flags): New.
943 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
944 (subsi3_flags, subc_internal, subdi3): New.
945 (subdi3_internal, *subdi3_degenerate): New.
946 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
948 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
949 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
950 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
951 * config/mn10300/mn10300-protos.h: Update.
952 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
953 (return_ret): Likewise. Rename from return_internal_regs.
954 (return_internal): Remove.
956 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
957 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
958 (mn10300_legitimate_constant_p): Likewise.
959 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
960 (mn10300_frame_size): New.
961 (mn10300_expand_prologue): Use it.
962 (mn10300_expand_epilogue): Likewise.
963 (mn10300_initial_offset): Likewise.
964 * config/mn10300/mn10300-protos.h: Update.
965 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
966 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
967 (prologue, epilogue, return_internal): Tidy output code.
968 (mn10300_store_multiple_operation, return): Likewise.
969 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
970 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
971 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
972 (load_pic, am33_load_pic): New.
973 (mn10300_load_pic0, mn10300_load_pic1): New.
975 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
976 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
977 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
978 (cc_flags_for_mode, cc_flags_for_code): New.
979 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
980 overflow flag is not valid. Validate that the flags we need
981 for the comparison are valid.
982 (mn10300_output_cmp): Remove.
983 (mn10300_output_add): New.
984 (mn10300_select_cc_mode): Use cc_flags_for_code.
985 (mn10300_split_cbranch): New.
986 (mn10300_match_ccmode): New.
987 (mn10300_split_and_operand_count): New.
988 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
990 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
991 (addsi3): ... here. Use mn10300_output_add.
992 (*addsi3_flags): New.
993 (*am33_subsi3, *mn10300_subsi3): Merge...
994 (subsi3): ... here. Use attribute isa.
995 (*subsi3_flags): New.
996 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
998 (*am33_andsi3, *mn10300_andsi3): Merge...
1000 (*andsi3_flags): New.
1001 (andsi3 splitters): New.
1002 (*am33_iorsi3, *mn10300_iorsi3): Merge...
1004 (*iorsi3_flags): New.
1005 (*am33_xorsi3, *mn10300_xorsi3): Merge...
1007 (*xorsi3_flags): New.
1008 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
1009 (one_cmplsi2): ... here.
1010 (*one_cmplsi2_flags): New.
1011 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
1012 instead of "dax" in constraints. Use mn10300_split_cbranch.
1013 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
1014 use matching constraints to eliminate a self-comparison.
1015 (*integer_conditional_branch): Rename from integer_conditional_branch.
1016 Use int_mode_flags to match CC_REG.
1017 (*cbranchsi4_btst, *btstsi): New.
1018 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
1019 mn10300_split_cbranch.
1020 (*am33_cmpsf): Rename from am33_cmpsf.
1021 (*float_conditional_branch): Rename from float_conditional_branch.
1022 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
1023 (zero_extendqisi2): ... here.
1024 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
1025 (zero_extendhisi2): ... here.
1026 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
1027 (extendqisi2): ... here.
1028 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
1029 (extendhisi2): ... here.
1030 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
1031 (ashlsi3): ... here.
1032 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
1033 (lshrsi3): ... here.
1034 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
1035 (ashrsi3): ... here.
1036 (consecutive add peephole): Remove.
1037 * config/mn10300/predicates.md (label_ref_operand): New.
1038 (int_mode_flags): New.
1039 (CCZN_comparison_operator): New.
1041 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
1042 (throughput_42_latency_43): New reservation.
1043 (mulsidi3, umulsidi3): New expanders.
1044 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
1045 the MDR register to allocation; separately allocate the low and
1046 high parts of the DImode result.
1047 (umulsidi3_internal): Similarly.
1048 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
1049 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
1050 (udivsi3, umodsi3): Remove.
1051 (udivmodsi4, divmodsi4): New expanders.
1052 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
1053 (*divmodsi4): Simiarly.
1054 (ext_internal): New.
1056 * config/mn10300/constraints.md ("z"): New constraint.
1057 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
1058 (FIXED_REGISTERS): Don't fix MDR.
1059 (CALL_USED_REGSITERS): Reformat nicely.
1060 (REG_ALLOC_ORDER): Add MDR.
1061 (enum regclass): Add MDR_REGS.
1062 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
1063 (IRA_COVER_CLASSES): Add MDR_REGS.
1064 (REGNO_REG_CLASS): Handle MDR_REG.
1065 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
1066 (mn10300_register_move_cost): Likewise.
1067 * config/mn10300/mn10300.md (MDR_REG): New.
1068 (*movsi_internal): Handle moves to/from MDR_REGS.
1070 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
1072 (mn10300_secondary_reload): Tidy combination reload classes.
1073 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
1074 addresses for AM33. Allow symbolic offsets for reg+imm.
1075 (mn10300_regno_in_class_p): New.
1076 (mn10300_legitimize_reload_address): New.
1077 * config/mn10300/mn10300.h (enum reg_class): Remove
1078 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
1079 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
1081 (REG_CLASS_NAMES): Update to match.
1082 (REG_CLASS_CONTENTS): Likewise.
1083 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
1084 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
1085 (REGNO_IN_RANGE_P): Remove.
1086 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
1087 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
1088 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
1089 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
1090 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
1091 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
1092 (REGNO_GENERAL_P): New.
1093 (HAVE_POST_MODIFY_DISP): New.
1094 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
1095 (LEGITIMIZE_RELOAD_ADDRESS): New.
1096 * config/mn10300/mn10300-protos.h: Update.
1098 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
1099 DATA_REGS for AM33 stack-pointer destination.
1100 (mn10300_preferred_output_reload_class): Likewise.
1101 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
1102 into a form appropriate for ...
1103 (TARGET_SECONDARY_RELOAD): New.
1104 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
1105 * config/mn10300/mn10300-protos.h: Update.
1106 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
1107 reload_insi; use the "A" constraint for the scratch; handle AM33
1108 moves of sp to non-address registers.
1110 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
1111 (*movqi_internal): ... here.
1112 (*am33_movhi, *mn10300_movhi): Merge into...
1113 (*movhi_internal): ... here.
1114 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
1115 as the source/destination of moves from/to SP.
1116 (movsf): Only allow for AM33-2.
1117 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
1118 any integer constant constraint. Only allow for AM33-2. Tidy
1119 all of the alternative outputs.
1120 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
1121 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
1123 (udivsi3, umodsi3): New patterns for MN103 only.
1125 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
1127 * doc/tm.texi.in: Spell out that a lack of register class unions
1129 * doc/tm.texi: Regenerate.
1131 2011-01-19 Jakub Jelinek <jakub@redhat.com>
1133 PR rtl-optimization/47337
1134 * dce.c (check_argument_store): New function.
1135 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
1137 PR tree-optimization/47290
1138 * tree-eh.c (infinite_empty_loop_p): New function.
1139 (cleanup_empty_eh): Use it.
1141 2011-01-18 Steve Ellcey <sje@cup.hp.com>
1144 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
1145 (a64_expand_widen_sum): Ditto.
1146 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
1147 (vec_extract_evenodd_help): Ditto.
1148 (vec_extract_evenv4hi): Ditto.
1149 (vec_extract_oddv4hi): Ditto.
1150 (vec_extract_evenv2si): Ditto.
1151 (vec_extract_oddv2si): Ditto.
1152 (vec_extract_evenv2sf): Ditto.
1153 (vec_extract_oddv2sf): Ditto.
1154 (vec_pack_trunc_v4hi: Ditto.
1155 (vec_pack_trunc_v2si): Ditto.
1156 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
1157 (vec_interleave_highv8qi): Ditto.
1159 (vec_extract_oddv8qi): Ditto.
1160 (vec_interleave_lowv4hi): Ditto.
1161 (vec_interleave_highv4hi): Ditto.
1162 (vec_interleave_lowv2si): Ditto.
1163 (vec_interleave_highv2si): Ditto.
1165 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1167 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
1168 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
1169 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
1170 (pa_c_mode_for_suffix): New.
1171 (TARGET_EXPAND_BUILTIN): Define.
1172 (TARGET_C_MODE_FOR_SUFFIX): Define.
1173 (pa_builtins): Define.
1174 (pa_init_builtins): Register __float128 type and init new support
1176 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
1177 * config/pa/quadlib.c (_U_Qfcopysign): New.
1179 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
1182 * explow.c (allocate_dynamic_stack_space): Do not assume more than
1183 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
1186 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1188 PR tree-optimization/47179
1189 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
1190 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
1192 2011-01-18 Richard Guenther <rguenther@suse.de>
1194 PR rtl-optimization/47216
1195 * emit-rtl.c: Include tree-flow.h.
1196 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
1197 of replicating it with different semantics.
1198 * Makefile.in (emit-rtl.o): Adjust.
1200 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1202 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually
1204 (cortex_a9_dp): Handle neon types correctly.
1206 2011-01-18 Jakub Jelinek <jakub@redhat.com>
1208 PR rtl-optimization/47299
1209 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
1210 subtarget. Use normal multiplication if both operands are
1212 * expmed.c (expand_widening_mult): Don't try to optimize constant
1213 multiplication if op0 has VOIDmode. Convert op1 constant to mode
1216 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1218 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
1219 spacing after 'e.g.', typos, comma, hyphenation.
1221 2011-01-17 Richard Henderson <rth@redhat.com>
1223 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
1224 (rx_restricted_mem_operand): New.
1225 (rx_shift_operand): Use register_operand.
1226 (rx_source_operand, rx_compare_operand): Likewise.
1227 * config/rx/rx.md (addsi3_flags): New expander.
1228 (adddi3): Rewrite as expander.
1229 (adc_internal, *adc_flags, adddi3_internal): New patterns.
1230 (subsi3_flags): New expander.
1231 (subdi3): Rewrite as expander.
1232 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
1234 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
1235 (rx_init_builtins): Remove sat builtin.
1236 (rx_expand_builtin): Likewise.
1237 * config/rx/rx.md (ssaddsi3): New.
1238 (*sat): Rename from sat. Represent the CC_REG input.
1240 * config/rx/predicates.md (rshift_operator): New.
1241 * config/rx/rx.c (rx_expand_insv): Remove.
1242 * config/rx/rx-protos.h: Update.
1243 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
1244 operand to the canonical position.
1245 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
1246 (*bitclr, *bitclr_in_memory): Similarly.
1247 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
1248 (insv): Retain the zero_extract in the expansion.
1250 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
1251 (bswaphi2, bitinvert, revw): Likewise.
1253 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
1254 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
1255 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
1256 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
1257 (bitset, bitset_in_memory): Likewise.
1258 (bitinvert, bitinvert_in_memory): Likewise.
1259 (bitclr, bitclr_in_memory): Likewise.
1260 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
1261 (rx_strend, rx_cmpstrn): Likewise.
1262 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
1263 (bitop peep2 patterns): Remove.
1265 * config/rx/rx.c (rx_match_ccmode): New.
1266 * config/rx/rx-protos.h: Update.
1267 * config/rx/rx.md (abssi2): Clobber, don't set flags.
1268 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
1269 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
1270 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
1271 (fix_truncsfsi2, floatsisf2): Likewise.
1272 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
1273 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
1274 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
1275 (*subsi3_flags, *xorsi3_flags): New.
1277 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
1279 * config/rx/rx.c (rx_print_operand): Remove workaround for
1280 unsplit comparison operations.
1282 * config/rx/rx.md (movsicc): Split after reload.
1283 (*movsicc): Merge *movsieq and *movsine via match_operator.
1284 (*stcc): New pattern.
1286 * config/rx/rx.c (rx_float_compare_mode): Remove.
1287 * config/rx/rx.h (rx_float_compare_mode): Remove.
1288 * config/rx/rx.md (cstoresi4): Split after reload.
1289 (*sccc): New pattern.
1291 * config/rx/predicates.md (label_ref_operand): New.
1292 (rx_z_comparison_operator): New.
1293 (rx_zs_comparison_operator): New.
1294 (rx_fp_comparison_operator): New.
1295 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
1296 Validate that the flags are set properly for the comparison.
1297 (rx_gen_cond_branch_template): Remove.
1298 (rx_cc_modes_compatible): Remove.
1299 (mode_from_flags): New.
1300 (flags_from_code): Rename from flags_needed_for_conditional.
1301 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
1302 (rx_select_cc_mode): Likewise.
1303 (rx_split_fp_compare): New.
1304 (rx_split_cbranch): New.
1305 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
1306 (*cbranchsi4): Use match_operator and rx_split_cbranch.
1307 (*cbranchsf4): Similarly.
1308 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
1309 match_operator and rx_split_cbranch.
1310 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
1311 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
1312 (*cmpsi): Rename from cmpsi.
1313 (*tstsi): Rename from tstsi.
1314 (*cmpsf): Rename from cmpsf; use CC_Fmode.
1315 (*conditional_branch): Rename from conditional_branch.
1316 (*reveresed_conditional_branch): Remove.
1317 (b<code>): Remove expander.
1318 * config/rx/rx-protos.h: Update.
1320 * config/rx/rx.c (rx_compare_redundant): Remove.
1321 * config/rx/rx.md (cmpsi): Don't use it.
1322 * config/rx/rx-protos.h: Update.
1324 * config/rx/rx-modes.def (CC_F): New mode.
1325 * config/rx/rx.c (rx_select_cc_mode): New.
1326 * config/rx/rx.h (SELECT_CC_MODE): Use it.
1327 * config/rx/rx-protos.h: Update.
1329 2011-01-17 Richard Henderson <rth@redhat.com>
1331 * except.c (dump_eh_tree): Fix stray ; after for statement.
1333 2011-01-17 Richard Guenther <rguenther@suse.de>
1335 PR tree-optimization/47313
1336 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
1337 handling before copying the body. Properly deal with
1338 by-reference result in SSA form.
1340 2011-01-17 Ian Lance Taylor <iant@google.com>
1343 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
1344 (struct_value_alias_set): Don't define.
1345 (sparc_option_override): Don't set sparc_sr_alias_set and
1346 struct_value_alias_set.
1347 (save_or_restore_regs): Use gen_frame_mem rather than calling
1349 (sparc_struct_value_rtx): Likewise.
1351 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
1354 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
1356 (_mm_maskstore_pd): Likewise.
1357 (_mm_maskload_ps): Likewise.
1358 (_mm_maskstore_ps): Likewise.
1359 (_mm256_maskload_pd): Change mask to __m256i.
1360 (_mm256_maskstore_pd): Likewise.
1361 (_mm256_maskload_ps): Likewise.
1362 (_mm256_maskstore_ps): Likewise.
1364 * config/i386/i386-builtin-types.def: Updated.
1365 (ix86_expand_special_args_builtin): Likewise.
1367 * config/i386/i386.c (bdesc_special_args): Update
1368 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
1369 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
1370 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
1371 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
1373 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
1374 Use <avxpermvecmode> on mask register.
1375 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
1377 2011-01-17 Olivier Hainque <hainque@adacore.com>
1378 Michael Haubenwallner <michael.haubenwallner@salomon.at>
1379 Eric Botcazou <ebotcazou@adacore.com>
1382 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
1383 if <= USHRT_MAX in 32-bit mode.
1385 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1387 * doc/install.texi (Configuration, Specific): Wrap long
1388 lines in examples. Allow line wrapping in long options
1389 and URLs where beneficial for PDF output.
1391 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
1393 * config/mips/mips.c (mips_classify_symbol): Don't return
1394 SYMBOL_PC_RELATIVE for nonlocal labels.
1396 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
1398 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
1400 2011-01-15 Jan Hubicka <jh@suse.cz>
1402 PR tree-optimization/47276
1403 * ipa.c (function_and_variable_visibility): Do not try to mark alias
1404 declarations as needed.
1406 2011-01-15 Martin Jambor <mjambor@suse.cz>
1408 * common.opt (fdevirtualize): New flag.
1409 * doc/invoke.texi (Option Summary): Document it.
1410 * opts.c (default_options_table): Add devirtualize flag.
1411 * ipa-prop.c (detect_type_change): Return immediately if
1412 devirtualize flag is not set.
1413 (detect_type_change_ssa): Likewise.
1414 (compute_known_type_jump_func): Likewise.
1415 (ipa_analyze_virtual_call_uses): Likewise.
1417 2011-01-14 Martin Jambor <mjambor@suse.cz>
1419 PR tree-optimization/45934
1420 PR tree-optimization/46302
1421 * ipa-prop.c (type_change_info): New type.
1422 (stmt_may_be_vtbl_ptr_store): New function.
1423 (check_stmt_for_type_change): Likewise.
1424 (detect_type_change): Likewise.
1425 (detect_type_change_ssa): Likewise.
1426 (compute_complex_assign_jump_func): Check for dynamic type change.
1427 (compute_complex_ancestor_jump_func): Likewise.
1428 (compute_known_type_jump_func): Likewise.
1429 (compute_scalar_jump_functions): Likewise.
1430 (ipa_analyze_virtual_call_uses): Likewise.
1431 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
1433 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1435 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
1436 * config/i386/i386.opt (msse5): New Alias.
1438 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1440 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
1441 * config/sparc/linux64.h (CC1_SPEC): Likewise.
1442 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1443 * config/sparc/sparc.h (CC1_SPEC): Likewise.
1445 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1447 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
1449 * config/sparc/linux64.h (CC1_SPEC): Likewise.
1450 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1451 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
1452 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
1454 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
1456 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1458 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or
1461 2011-01-14 Mike Stump <mikestump@comcast.net>
1463 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
1464 * config/fr30/fr30.md: Likweise
1465 (movsi_push): Likewise.
1466 (movsi_pop): Likewise.
1467 (enter_func): Likewise.
1468 * config/moxie/moxie.md (movsi_push): Likewise.
1469 (movsi_pop): Likewise.
1471 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1473 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
1474 %{no_archive} %{exact_version}.
1475 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
1476 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
1477 %{no_archive} %{exact_version}.
1478 * config/mips/openbsd.h (LINK_SPEC): Likewise.
1479 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
1480 * config/mips/vxworks.h: Likewise.
1482 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1484 * config/microblaze/microblaze.h (ASM_SPEC): Remove
1487 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1489 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
1490 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
1492 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1494 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
1497 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1499 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
1501 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
1502 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
1504 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
1505 Don't handle -shlib.
1507 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1509 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
1510 (CC1_SPEC): Don't handle -profile.
1512 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1514 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
1515 * config/mips/mips.h (CC1_SPEC): Likewise.
1517 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1519 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
1520 * config/mips/mips.h (CC1_SPEC): Likewise.
1522 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1524 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
1525 * config/m32r/linux.h (LINK_SPEC): Likewise.
1526 * config/mips/linux.h (LINK_SPEC): Likewise.
1527 * config/mips/linux64.h (LINK_SPEC): Likewise.
1528 * config/sparc/linux.h (LINK_SPEC): Likewise.
1529 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1530 LINK_SPEC): Likewise.
1531 * config/xtensa/linux.h (LINK_SPEC): Likewise.
1533 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1535 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
1537 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
1539 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1541 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
1542 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
1544 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1546 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
1548 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1550 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
1551 supports -Bstatic/-Bdynamic.
1552 * configure: Regenerate.
1554 2011-01-14 Jan Hubicka <jh@suse.cz>
1555 Jack Howarth <howarth@bromo.med.uc.edu>
1558 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
1559 when checking debug_info_level. Test write_symbols instead of
1560 debug_hooks->var_location when setting flag_var_tracking_uninit.
1562 2011-01-14 Richard Guenther <rguenther@suse.de>
1564 PR tree-optimization/47179
1565 * target.def (ref_may_alias_errno): New target hook.
1566 * targhooks.h (default_ref_may_alias_errno): Declare.
1567 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
1568 (default_ref_may_alias_errno): New function.
1569 * target.h (struct ao_ref_s): Declare.
1570 * tree-ssa-alias.c: Include target.h.
1571 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
1572 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
1573 (targhooks.o): Likewise.
1574 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
1575 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
1577 2011-01-14 Richard Guenther <rguenther@suse.de>
1579 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
1581 2011-01-14 Richard Guenther <rguenther@suse.de>
1583 PR tree-optimization/47280
1584 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
1586 (tree_ssa_forward_propagate_single_use_vars): Deal with
1587 CFG changes from associate_plusminus.
1589 2011-01-14 Richard Guenther <rguenther@suse.de>
1593 2011-01-11 Richard Guenther <rguenther@suse.de>
1595 PR tree-optimization/46076
1596 * tree-ssa.c (useless_type_conversion_p): Conversions from
1597 unprototyped to empty argument list function types are useless.
1599 2011-01-14 Richard Guenther <rguenther@suse.de>
1601 PR tree-optimization/47286
1602 * tree-ssa-structalias.c (new_var_info): Register variables are global.
1604 2011-01-14 Martin Jambor <mjambor@suse.cz>
1607 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
1609 2011-01-13 Anatoly Sokolov <aesok@post.ru>
1611 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
1612 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1613 * config/xtensa/xtensa.c (xtensa_libcall_value,
1614 xtensa_function_value_regno_p): New functions.
1615 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
1617 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
1620 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
1622 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
1623 New function prototype.
1624 * config/i386/winnt.c (i386_pe_assemble_visibility):
1625 Warn only if attribute was specified by user.
1627 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1630 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
1632 (floatunsdidf2_fcfidu): Ditto.
1634 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1636 * config/s390/s390.c (print_operand_address): Replace 'error' with
1637 'output_operand_lossage'.
1638 (print_operand): Likewise.
1640 2011-01-13 Jeff Law <law@redhat.com>
1642 PR rtl-optimization/39077
1643 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
1644 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
1645 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
1646 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
1647 * gcse.c (prune_insertions_deletions): New function.
1648 (compute_pre_data): Use it.
1650 2011-01-13 Dodji Seketeli <dodji@redhat.com>
1653 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
1655 (prune_unused_types_mark): Use it.
1657 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
1659 PR rtl-optimization/45352
1660 * sel-sched.c: Update copyright years.
1661 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1662 in the advancing loop when we have issued issue_rate insns.
1664 2011-01-12 Richard Henderson <rth@redhat.com>
1666 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
1667 (TARGET_MD_ASM_CLOBBERS): New.
1669 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
1670 (TARGET_DELEGITIMIZE_ADDRESS): New.
1672 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
1673 (clzsi2, *bsch): New patterns.
1675 * config/mn10300/mn10300.md (INT): New mode iterator.
1676 (*mov<INT>_clr): New pattern, and peep2 to generate it.
1678 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
1679 flag_split_wide_types.
1681 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
1682 (mn10300_trampoline_init): Rewrite without a template, an immediate
1683 load and a direct branch.
1684 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
1686 2011-01-12 Anatoly Sokolov <aesok@post.ru>
1688 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1689 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
1690 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
1691 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1693 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
1696 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
1699 2011-01-12 Jan Hubicka <jh@suse.cz>
1702 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
1703 (PLUGIN_COND_CLOSE): New macro.
1704 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
1706 2011-01-12 Richard Guenther <rguenther@suse.de>
1709 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
1710 register variables in a MEM_REF.
1712 2011-01-12 Joseph Myers <joseph@codesourcery.com>
1714 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
1715 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
1716 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
1717 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1718 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1719 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
1720 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
1721 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
1722 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
1723 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
1724 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
1725 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
1726 * config/gnu-user.h: New. Copied from linux.h.
1727 (LINUX_TARGET_STARTFILE_SPEC): Rename to
1728 GNU_USER_TARGET_STARTFILE_SPEC.
1729 (LINUX_TARGET_ENDFILE_SPEC): Rename to
1730 GNU_USER_TARGET_ENDFILE_SPEC.
1731 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
1732 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
1733 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
1734 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
1735 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
1736 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
1737 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
1738 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
1739 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
1740 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
1741 * config/arm/linux-eabi.h (CC1_SPEC): Use
1742 GNU_USER_TARGET_CC1_SPEC.
1743 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
1744 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
1745 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
1746 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
1747 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
1748 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
1749 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
1750 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
1752 2011-01-12 Richard Guenther <rguenther@suse.de>
1755 * doc/invoke.texi (ffast-math): Document it is turned on
1758 2011-01-12 Jan Hubicka <jh@suse.cz>
1760 PR tree-optimization/47233
1761 * opts.c (common_handle_option): Disable ipa-reference with profile
1764 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
1766 * c-parser.c (c_parser_objc_at_property_declaration): Improved
1769 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
1771 * c-parser.c (c_lex_one_token): Updated and reindented some
1772 comments. No changes in code.
1774 2011-01-11 Ian Lance Taylor <iant@google.com>
1776 * godump.c (go_output_var): Don't output the variable if there is
1777 already a type with the same name.
1779 2011-01-11 Ian Lance Taylor <iant@google.com>
1781 * godump.c (go_format_type): Don't generate float80.
1783 2011-01-11 Richard Henderson <rth@redhat.com>
1785 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
1786 declaration. Rewrite for both speed and size.
1787 (mn10300_address_cost_1): Remove.
1788 (mn10300_register_move_cost): New.
1789 (mn10300_memory_move_cost): New.
1790 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
1791 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
1792 extensions, shifts, BSWAP, CLZ.
1793 (mn10300_wide_const_load_uses_clr): Remove.
1794 (TARGET_REGISTER_MOVE_COST): New.
1795 (TARGET_MEMORY_MOVE_COST): New.
1796 * config/mn10300/mn10300-protos.h: Update.
1797 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
1799 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
1800 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
1801 * config/mn10300/mn10300-protos.h: Update.
1802 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
1803 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
1804 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
1805 (*test_int_bitfield, *test_byte_bitfield): Remove.
1806 (*bit_test, *subreg_bit_test): Remove.
1807 * config/mn10300/predicates.md (const_8bit_operand): Remove.
1809 * config/mn10300/constraints.md ("c"): Rename from "A".
1810 ("A", "D"): New constraint letters.
1811 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
1812 (fmssf4, fnmasf4, fnmssf4): Likewise.
1814 * config/mn10300/mn10300.md (isa): New attribute.
1815 (enabled): New attribute.
1817 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
1818 (abssf2, negsf2): Define only for hardware fp.
1819 (sqrtsf2): Reformat.
1820 (addsf3, subsf3, mulsf3): Merge expander and insn.
1822 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
1823 (DEBUGGER_AUTO_OFFSET): Remove.
1824 (DEBUGGER_ARG_OFFSET): Remove.
1826 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
1827 Emit register stores with the same offsets as the hardware.
1828 (mn10300_store_multiple_operation): Don't check that the register
1829 save offsets are monotonic.
1830 * config/mn10300/mn10300-protos.h: Update.
1832 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
1834 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
1835 in terms of the value on the stack, not the MDR register.
1837 2011-01-11 Jan Hubicka <jh@suse.cz>
1841 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
1842 (symbol_alias_set_destroy, symbol_alias_set_contains,
1843 propagate_aliases_backward): Declare.
1844 * lto-streamer-out.c (struct sets): New sturcture.
1845 (trivally_defined_alias): New function.
1846 (output_alias_pair_p): Rewrite.
1847 (output_unreferenced_globals): Fix output of alias pairs.
1848 (produce_symtab): Likewise.
1849 * ipa.c (function_and_variable_visibility): Set weak alias destination
1851 * varasm.c (symbol_alias_set_t): Remove.
1852 (symbol_alias_set_destroy): Export.
1853 (propagate_aliases_forward, propagate_aliases_backward): New functions
1855 (compute_visible_aliases): ... this one; remove.
1856 (trivially_visible_alias): New
1857 (trivially_defined_alias): New.
1858 (remove_unreachable_alias_pairs): Rewrite.
1859 (finish_aliases_1): Reorganize code checking if alias is defined.
1860 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
1863 2011-01-11 Richard Guenther <rguenther@suse.de>
1865 PR tree-optimization/46076
1866 * tree-ssa.c (useless_type_conversion_p): Conversions from
1867 unprototyped to empty argument list function types are useless.
1869 2011-01-11 Richard Guenther <rguenther@suse.de>
1872 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
1873 volatile MEMs as MEM_READONLY_P.
1875 2011-01-11 Richard Guenther <rguenther@suse.de>
1877 PR tree-optimization/47239
1878 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
1880 2011-01-11 Jeff Law <law@redhat.com>
1882 PR tree-optimization/47086
1883 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
1884 IVs from statements that might throw.
1886 2011-01-10 Jan Hubicka <jh@suse.cz>
1889 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
1891 2011-01-10 Jan Hubicka <jh@suse.cz>
1894 * profile.c (read_profile_edge_counts): Ignore profile inconistency
1895 when correcting profile.
1897 2011-01-10 Jan Hubicka <jh@suse.cz>
1900 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
1902 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
1903 Restore DECL_FINI_PRIORITY.
1905 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1907 * doc/gimple.texi: Fix quoting of multi-word return values in
1908 @deftypefn statements. Ensure presence of return value. Wrap
1909 overlong @deftypefn lines.
1910 (is_gimple_operand, is_gimple_min_invariant_address): Remove
1911 descriptions of removed functions.
1912 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
1913 of multi-word return value in @deftypefn statement.
1915 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1917 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
1918 (Conditional Expressions, Logical Operators)
1919 (Statement and operand traversals): Do not indent smallexample
1920 code. Fix duplicate function argument in example.
1922 2011-01-10 Jeff Law <law@redhat.com>
1924 PR tree-optimization/47141
1925 * ipa-split.c (split_function): Handle case where we are
1926 returning a value and the return block has a virtual operand phi.
1928 2011-01-10 Jan Hubicka <jh@suse.cz>
1930 PR tree-optimization/47234
1931 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
1932 (pass_feedback_split_functions): Declare.
1933 * passes.c (init_optimization_passes): Add ipa-split as subpass of
1935 * ipa-split.c (gate_split_functions): Update comments; disable
1936 split-functions for profile_arc_flag and branch_probabilities.
1937 (gate_feedback_split_functions): New function.
1938 (execute_feedback_split_functions): New function.
1939 (pass_feedback_split_functions): New global var.
1941 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
1944 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
1945 calling gimple_call_set_cannot_inline.
1947 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
1949 * config/darwin-sections.def: Remove unused section.
1951 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
1954 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
1956 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
1959 * c-parser.c (c_parser_declaration_or_fndef): Improved
1962 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
1964 * config/i386/winnt.c (i386_pe_start_function): Make sure
1965 to switch back to function's section.
1967 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
1971 * plugin.c: Move include of dlfcn.h from here...
1972 * system.h: ... to here.
1974 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1976 * doc/cpp.texi (C++ Named Operators): Fix markup for header
1978 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
1979 two extra empty pages in PDF output.
1981 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
1984 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
1985 for error recovery purposes behave as if it was not specified so
1986 that the default type is usd.
1988 2011-01-07 Jan Hubicka <jh@suse.cz>
1990 PR tree-optmization/46469
1991 * ipa.c (function_and_variable_visibility): Clear needed flags on
1992 nodes with external decls; handle weakrefs merging correctly.
1994 2011-01-07 Joseph Myers <joseph@codesourcery.com>
1996 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
1999 2011-01-07 Jan Hubicka <jh@suse.cz>
2001 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
2002 and no longer claim that gold is required for linker plugin.
2003 * configure: Regenerate.
2004 * gcc.c (PLUGIN_COND): New macro.
2005 (LINK_COMMAND_SPEC): Use it.
2006 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
2007 * config.in (HAVE_LTO_PLUGIN): New.
2008 * configure.ac (--with-lto-plugin): New parameter; autodetect
2011 2011-01-07 Jan Hubicka <jh@suse.cz>
2013 PR tree-optimization/46367
2014 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
2015 when we can update original.
2016 (cgraph_mark_inline_edge): Sanity check.
2017 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
2019 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2021 * config/spu/spu.h (ASM_COMMENT_START): Define.
2023 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
2027 (SWITCH_KEEP_FOR_GCC): Likewise.
2028 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
2029 (do_spec_1): Handle "%>".
2031 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
2033 2011-01-07 Jakub Jelinek <jakub@redhat.com>
2036 * config/i386/i386.c (ix86_delegitimize_address): If
2037 simplify_gen_subreg fails, return orig_x.
2040 * value-prof.c (gimple_stringop_fixed_value): Handle
2041 lhs of the call properly.
2043 2011-01-07 Jan Hubicka <jh@suse.cz>
2046 * lto-opt.c (lto_reissue_options): Set flag_shlib.
2048 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
2050 * target.def (function_switched_text_sections): New hook.
2051 * doc/tm.texi: Regenerated.
2052 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
2053 * final.c (default_function_switched_text_sections): New.
2054 (final_scan_insn): Call function_switched_text_sections when a
2055 mid-function section change occurs.
2056 * output.h (default_function_switched_text_sections): Declare.
2057 * config/darwin-protos.h (darwin_function_switched_text_sections):
2059 * config/darwin.c (darwin_function_switched_text_sections): New.
2060 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
2062 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
2064 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
2065 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
2066 the secondary code fragment when outputting for DWARF == 2.
2068 2011-01-07 Anatoly Sokolov <aesok@post.ru>
2070 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2071 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
2073 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
2074 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2076 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
2079 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
2080 when it is not empty.
2082 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
2085 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
2086 (case ${target}): Add btver1.
2087 * config/i386/driver-i386.c (host_detect_local_cpu): Let
2088 -march=native recognize btver1 processors.
2089 * config/i386/i386-c.c (ix86_target_macros_internal): Add
2090 btver1 def_and_undef
2091 * config/i386/i386.c (struct processor_costs btver1_cost): New
2093 (m_BTVER1): New definition.
2094 (m_AMD_MULTIPLE): Includes m_BTVER1.
2095 (initial_ix86_tune_features): Add btver1 tune.
2096 (processor_target_table): Add btver1 entry.
2097 (static const char *const cpu_names): Add btver1 entry.
2098 (software_prefetching_beneficial_p): Add btver1.
2099 (ix86_option_override_internal): Add btver1 instruction sets.
2100 (ix86_issue_rate): Add btver1.
2101 (ix86_adjust_cost): Add btver1.
2102 * config/i386/i386.h (TARGET_BTVER1): New definition.
2103 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
2104 (enum processor_type): Add PROCESSOR_BTVER1.
2105 * config/i386/i386.md (define_attr "cpu"): Add btver1.
2107 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2110 * config/i386/i386.c (legitimize_tls_address)
2111 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
2112 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
2113 (tls_initial_exec_64_sun): New pattern.
2115 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
2117 * doc/invoke.texi (Overall Options): Improve wording and markup
2118 of the description of -wrapper.
2120 2011-01-06 Joseph Myers <joseph@codesourcery.com>
2122 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
2123 rdynamic, threads): New Driver options.
2125 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2128 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
2129 if coming from .tdata.
2130 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
2132 2011-01-06 Jan Hubicka <jh@suse.cz>
2135 * collect2.c (main): Do not enable LTOmode when plugin is active.
2137 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2140 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
2141 --version output if supported.
2142 * configure: Regenerate.
2144 2011-01-06 Joseph Myers <joseph@codesourcery.com>
2146 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
2149 2011-01-06 Jakub Jelinek <jakub@redhat.com>
2152 * c-convert.c (convert): When converting a complex expression
2153 other than COMPLEX_EXPR to a different complex type, ensure
2154 c_save_expr is called instead of save_expr, unless in_late_binary_op.
2155 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
2156 when converting COMPLEX_TYPE.
2158 2011-01-06 Ira Rosen <irar@il.ibm.com>
2160 PR tree-optimization/47139
2161 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
2162 only the last reduction value is used outside the loop. Update
2165 2011-01-05 Joseph Myers <joseph@codesourcery.com>
2167 * config/rtems.opt: New.
2168 * config.gcc (*-*-rtems*): Use rtems.opt.
2170 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
2172 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
2173 processors do not support 3DNow instructions.
2175 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2177 * config/spu/spu.c (spu_option_override): Set parameter
2178 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
2180 2011-01-05 Jan Hubicka <jh@suse.cz>
2182 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
2183 at the command line.
2185 2011-01-05 Martin Jambor <mjambor@suse.cz>
2188 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
2189 deltas on streamed outgoing edges.
2190 (output_node_opt_summary): Output info for outgoing edges only when
2191 the node is in new parameter set.
2192 (output_cgraph_opt_summary): New parameter set, passed to the two
2193 aforementioned functions. Update its forward declaration and its
2196 2011-01-05 Tom Tromey <tromey@redhat.com>
2198 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
2199 operator to c_finish_omp_atomic.
2200 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
2201 (build_unary_op): Update.
2202 (build_modify_expr): Update.
2203 (build_asm_expr): Update.
2205 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2207 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
2208 newly inserted insns.
2210 (spu_emit_branch_hint): Likewise.
2211 (insert_hbrp_for_ilb_runout): Likewise.
2212 (spu_machine_dependent_reorg): Call df_finish_pass after
2213 schedule_insns returns.
2215 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2217 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
2219 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
2221 PR tree-optimization/47005
2222 * tree-sra.c (struct access): Add 'non_addressable' bit.
2223 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
2224 (decide_one_param_reduction): Return 0 if the parameter is passed by
2225 reference and one of the accesses in the group is non_addressable.
2227 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
2229 PR tree-optimization/47056
2230 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
2231 (mark_load): Likewise. Handle FUNCTION_DECL specially.
2232 (mark_store): Likewise. Pass STMT to ipa_record_reference.
2234 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
2236 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
2237 initializer. Skip view conversions from aggregate types.
2239 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
2242 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
2244 2011-01-04 Philipp Thomas <pth@suse.de>
2246 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
2249 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2251 * function.c (thread_prologue_and_epilogue_insns): Do not crash
2252 on empty epilogue sequences.
2254 2011-01-04 Joseph Myers <joseph@codesourcery.com>
2256 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
2257 non-static): New Driver options.
2259 2011-01-04 Jie Zhang <jie@codesourcery.com>
2262 * gcc.c (default_compilers[]): Set combinable field to 0
2263 for all assembly languages.
2265 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
2267 * config/mips/loongson3a.md: New file.
2268 * config/mips/mips.md: Include loongson3a.md.
2269 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
2272 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
2275 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
2276 instead of convert_memory_address_addr_space on the base expression.
2278 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2280 * config/spu/spu.c (spu_option_override): Update error text
2281 for bad -march= / -mtune= values.
2283 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2285 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
2286 if branch-hint optimization will be performed.
2288 2011-01-03 Jakub Jelinek <jakub@redhat.com>
2290 PR tree-optimization/47148
2291 * ipa-split.c (split_function): Convert arguments to
2292 DECL_ARG_TYPE if possible.
2294 PR tree-optimization/47155
2295 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
2298 PR rtl-optimization/47157
2299 * combine.c (try_combine): If undobuf.other_insn becomes
2300 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
2301 and set *new_direct_jump_p too.
2303 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
2305 PR tree-optimization/47021
2306 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
2308 2011-01-03 Jakub Jelinek <jakub@redhat.com>
2310 * gcc.c (process_command): Update copyright notice dates.
2311 * gcov.c (print_version): Likewise.
2312 * gcov-dump.c (print_version): Likewise.
2313 * mips-tfile.c (main): Likewise.
2314 * mips-tdump.c (main): Likewise.
2316 2011-01-03 Martin Jambor <mjambor@suse.cz>
2318 PR tree-optimization/46801
2319 * tree-sra.c (type_internals_preclude_sra_p): Check whether
2320 aggregate fields start at byte boundary instead of the bit-field flag.
2322 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
2325 * gcc.c (main): Revert revision 168407.
2327 2011-01-03 Martin Jambor <mjambor@suse.cz>
2329 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
2331 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2333 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
2334 vector optab to expand vector/scalar shift, update gimple to vector.
2336 2011-01-03 Martin Jambor <mjambor@suse.cz>
2338 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
2341 2011-01-03 Martin Jambor <mjambor@suse.cz>
2343 PR tree-optimization/46984
2344 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
2346 (cgraph_create_indirect_edge): Fixed line length.
2347 (cgraph_indirect_call_info): Declare.
2348 (cgraph_make_edge_direct) Update declaration.
2349 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
2350 (cgraph_create_indirect_edge): Use it.
2351 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
2353 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
2354 the new thunk_delta representation.
2355 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
2357 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
2358 (ipa_read_indirect_edge_info): Likewise.
2359 * lto-cgraph.c (output_edge_opt_summary): New function.
2360 (output_node_opt_summary): Call it on all outgoing edges.
2361 (input_edge_opt_summary): New function.
2362 (input_node_opt_summary): Call it on all outgoing edges.
2364 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
2367 * gcc.c (main): Don't check have_o when settting combine_inputs.
2369 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
2371 * regrename.c: Add general comment describing the pass.
2372 (struct du_head): Remove 'length' field.
2373 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
2374 (regrename_optimize): Do not sort chains. Rework comments, add others.
2375 Force renaming to the preferred class (if any) in the first pass and do
2376 not consider registers that belong to it in the second pass.
2377 (create_new_chain): Do not set 'length' field.
2378 (scan_rtx_reg): Likewise.
2380 2011-01-02 Jakub Jelinek <jakub@redhat.com>
2382 PR tree-optimization/47140
2383 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
2384 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
2387 PR rtl-optimization/47028
2388 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
2389 parm_birth_insn instead of at the beginning of first bb.
2391 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
2393 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
2394 Remove the word "see" before "@pxref".
2395 * doc/rtl.texi: Remove the word "see" before "@pxref".
2397 2011-01-01 Jan Hubicka <jh@suse.cz>
2399 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
2402 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
2405 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
2408 Copyright (C) 2011 Free Software Foundation, Inc.
2410 Copying and distribution of this file, with or without modification,
2411 are permitted in any medium without royalty provided the copyright
2412 notice and this notice are preserved.