1 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
3 * doc/install.texi (Binaries): Remove outdated reference for
4 Motorola 68HC11/68HC12 downloads.
6 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
8 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
14 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
17 2011-01-28 Ahmad Sharif <asharif@google.com>
19 * value-prof.c (check_counter): Corrected error message.
21 2011-01-29 Jie Zhang <jie@codesourcery.com>
23 * config/arm/arm.c (arm_legitimize_reload_address): New.
24 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
25 arm_legitimize_reload_address.
26 * config/arm/arm-protos.h (arm_legitimize_reload_address):
29 2011-01-28 Ian Lance Taylor <iant@google.com>
31 * godump.c (go_define): Ignore macros whose definitions include
32 two adjacent operands.
34 2011-01-28 Jakub Jelinek <jakub@redhat.com>
37 * varasm.c (force_const_mem): Store copy of x in desc->constant
39 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
40 itself into REG_EQUAL note.
42 2011-01-28 Joseph Myers <joseph@codesourcery.com>
44 * config/freebsd.opt (posix, rdynamic): New Driver options.
46 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
48 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
50 * configure: Regenerate.
52 2011-01-27 Joseph Myers <joseph@codesourcery.com>
54 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
55 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
57 2011-01-27 Anatoly Sokolov <aesok@post.ru>
59 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
60 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
61 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
62 (s390_preferred_reload_class): Make static. Change return and
63 'rclass' argument type to reg_class_t.
65 2011-01-27 Jan Hubicka <jh@suse.cz>
68 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
69 (process_function_and_variable_attributes): Check defined weakrefs.
71 2011-01-27 Martin Jambor <mjambor@suse.cz>
73 PR tree-optimization/47228
74 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
77 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
79 * config/spu/spu-elf.h (ASM_SPEC): Remove.
81 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
83 PR rtl-optimization/46856
84 * postreload.c (reload_combine_recognize_const_pattern): Do not
85 separate cc0 setter and user on cc0 targets.
87 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
90 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
91 passed a VOID_TYPE expression, immediately emit an error and
92 return error_mark_node.
94 2011-01-26 Jeff Law <law@redhat.com>
96 PR rtl-optimization/47464
97 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
98 rather than may_trap_p as needed.
100 2011-01-26 DJ Delorie <dj@redhat.com>
102 PR rtl-optimization/46878
103 * combine.c (insn_a_feeds_b): Check for the implicit cc0
104 setter/user dependency as well.
106 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
108 PR rtl-optimization/44469
109 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
110 after removing trivially dead basic blocks.
112 2011-01-26 Joseph Myers <joseph@codesourcery.com>
114 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
115 * config/frv/frv.h (LINK_SPEC): Likewise.
116 * config/i386/netware.h (LINK_SPEC): Likewise.
117 * config/m68k/linux.h (ASM_SPEC): Likewise.
118 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
119 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
120 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
121 * config/sparc/linux.h (ASM_SPEC): Likewise.
122 * config/sparc/linux64.h (ASM_SPEC): Likewise.
123 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
125 2011-01-26 Joseph Myers <joseph@codesourcery.com>
127 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
128 * config/frv/frv.h (ASM_SPEC): Likewise.
129 * config/m68k/linux.h (ASM_SPEC): Likewise.
130 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
131 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
132 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
133 * config/sparc/linux.h (ASM_SPEC): Likewise.
134 * config/sparc/linux64.h (ASM_SPEC): Likewise.
135 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
137 2011-01-26 Joseph Myers <joseph@codesourcery.com>
139 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
140 * config/frv/frv.h (LINK_SPEC): Likewise.
141 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
143 2011-01-26 Joseph Myers <joseph@codesourcery.com>
145 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
146 * config/frv/frv.h (ASM_SPEC): Likewise.
147 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
148 * config/m68k/linux.h (ASM_SPEC): Likewise.
149 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
150 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
151 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
152 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
153 * config/sparc/linux.h (ASM_SPEC): Likewise.
154 * config/sparc/linux64.h (ASM_SPEC): Likewise.
155 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
156 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
158 2011-01-26 Steve Ellcey <sje@cup.hp.com>
161 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
163 (vec_extract_evenodd_help): Ditto.
164 (vec_extract_evenv4hi): Ditto.
165 (vec_extract_oddv4hi): Ditto.
166 (vec_interleave_lowv2si): Ditto.
167 (vec_interleave_highv2si): Ditto.
168 (vec_extract_evenv2si): Ditto.
169 (vec_extract_oddv2si: Ditto.
170 (vec_pack_trunc_v2si): Ditto.
172 2011-01-22 Jan Hubicka <jh@suse.cz>
175 * cgraph.h (cgraph_local_info): New field can_change_signature.
176 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
177 signature can change.
178 (ipcp_estimate_growth): Call sequence simplify only if calle signature
180 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
181 (cgraph_function_versioning): We can not change signature of functions
182 that don't allow that.
183 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
184 (lto_input_node): Likewise.
185 * ipa-inline.c (compute_inline_parameters): Compute local.can_change_signature.
186 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
187 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on functions
188 that can not change signature.
189 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
190 init_cumulative_args): Do not use local calling conventions for functions
191 that can not change signature.
193 2011-01-22 Jan Hubicka <jh@suse.cz>
195 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
197 2011-01-26 Richard Guenther <rguenther@suse.de>
199 PR tree-optimization/47190
200 * cgraphunit.c (process_common_attributes): New function.
201 (process_function_and_variable_attributes): Use it.
203 2011-01-26 Richard Guenther <rguenther@suse.de>
206 * cgraphbuild.c (record_eh_tables): Record reference to personality
209 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
212 * sel-sched.c (moveup_expr): Don't let debug insns prevent
213 non-debug insns from moving up.
215 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
218 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
219 t-dlldir{,-x} fragment for build and add it to tmake_file.
220 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
221 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
222 * config/i386/t-dlldir: New file.
223 (SHLIB_DLLDIR): Define.
224 * config/i386/t-dlldir-x: New file.
225 (SHLIB_DLLDIR): Define.
226 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
227 (SHLIB_INSTALL): Use it.
229 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
232 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
233 lower bound of the allowed Thumb-2 coprocessor load/store
234 index range to -256. Add explaining comment.
236 2011-01-25 Ian Lance Taylor <iant@google.com>
238 * godump.c (go_define): Improve lexing of macro expansion to only
239 accept expressions which match Go spec.
241 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
244 * tree.c (handle_dll_attribute): Handle it.
245 * doc/extend.texi (@item dllexport): Mention it.
246 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
248 2011-01-25 Ian Lance Taylor <iant@google.com>
250 PR tree-optimization/26854
251 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
252 (decl_jump_unsafe): Move higher in file, with no other change.
253 (bind): Set has_jump_unsafe_decl if appropriate.
254 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
255 (check_earlier_gotos): Likewise.
256 (c_check_switch_jump_warnings): Likewise.
258 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
260 * doc/invoke.texi (Warning Options): Add missing hyphen.
261 (-fprofile-dir): Minor grammatical fixes.
262 (-fbranch-probabilities): Likewise.
264 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
268 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
270 (no_real_insns_p, schedule_block, set_priorities): Drop special
271 treatment of boundary debug insns.
272 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug
274 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
275 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
276 (BOUNDARY_DEBUG_INSN_P): Likewise.
277 (SCHEDULE_DEBUG_INSN_P): Likewise.
278 * sched-rgn.c (init_ready_list): Drop special treatment of
279 boundary debug insns.
280 * final.c (rest_of_clean-state): Clear notes' BB.
282 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
284 * Makefile.in (LAMBDA_H): Removed.
285 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
286 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
287 lambda-trans.o, and tree-loop-linear.o.
288 (lto-symtab.o): Remove dependence on LAMBDA_H.
289 (tree-loop-linear.o): Remove rule.
290 (lambda-mat.o): Same.
291 (lambda-trans.o): Same.
292 (lambda-code.o): Same.
293 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
294 (tree-vect-slp.o): Same.
295 * hwint.h (gcd): Moved here.
296 (least_common_multiple): Same.
297 * lambda-code.c: Removed.
298 * lambda-mat.c: Removed.
299 * lambda-trans.c: Removed.
301 * tree-loop-linear.c: Removed.
302 * lto-symtab.c: Do not include lambda.h.
303 * omega.c (gcd): Removed.
304 * passes.c (init_optimization_passes): Remove pass_linear_transform.
305 * tree-data-ref.c (print_lambda_vector): Moved here.
306 (lambda_vector_copy): Same.
307 (lambda_matrix_copy): Same.
308 (lambda_matrix_id): Same.
309 (lambda_vector_first_nz): Same.
310 (lambda_matrix_row_add): Same.
311 (lambda_matrix_row_exchange): Same.
312 (lambda_vector_mult_const): Same.
313 (lambda_vector_negate): Same.
314 (lambda_matrix_row_negate): Same.
315 (lambda_vector_equal): Same.
316 (lambda_matrix_right_hermite): Same.
317 * tree-data-ref.h: Do not include lambda.h.
318 (lambda_vector): Moved here.
319 (lambda_matrix): Same.
320 (dependence_level): Same.
321 (lambda_transform_legal_p): Removed declaration.
322 (lambda_collect_parameters): Same.
323 (lambda_compute_access_matrices): Same.
324 (lambda_vector_gcd): Same.
325 (lambda_vector_new): Same.
326 (lambda_vector_clear): Same.
327 (lambda_vector_lexico_pos): Same.
328 (lambda_vector_zerop): Same.
329 (lambda_matrix_new): Same.
330 * tree-flow.h (least_common_multiple): Removed declaration.
331 * tree-parloops.c (lambda_trans_matrix): Moved here.
335 (LTM_DENOMINATOR): Same.
336 (lambda_trans_matrix_new): Same.
337 (lambda_matrix_vector_mult): Same.
338 (lambda_transform_legal_p): Same.
339 * tree-pass.h (pass_linear_transform): Removed declaration.
340 * tree-ssa-loop.c (tree_linear_transform): Removed.
341 (gate_tree_linear_transform): Removed.
342 (pass_linear_transform): Removed.
343 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
344 flag_loop_interchange.
346 2011-01-25 Jakub Jelinek <jakub@redhat.com>
348 PR tree-optimization/47265
349 PR tree-optimization/47443
350 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
351 if name still has some uses.
353 2011-01-25 Martin Jambor <mjambor@suse.cz>
355 PR tree-optimization/47382
356 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
357 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
359 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
361 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
362 sjlj_except_unwind_info.
364 2011-01-25 Richard Guenther <rguenther@suse.de>
366 PR tree-optimization/47426
367 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
368 visible functions results escape.
370 2011-01-25 Jakub Jelinek <jakub@redhat.com>
373 * config/arm/arm.c (any_sibcall_uses_r3): New function.
374 (arm_get_frame_offsets): Use it.
376 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
377 Jakub Jelinek <jakub@redhat.com>
379 PR tree-optimization/47271
380 * tree-if-conv.c (bb_postdominates_preds): New.
381 (if_convertible_bb_p): Call bb_postdominates_preds.
382 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
383 (predicate_scalar_phi): Call bb_postdominates_preds.
385 2011-01-25 Nick Clifton <nickc@redhat.com>
387 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
388 * config/rx/rx.c (rx_function_value): Likewise.
389 (rx_promote_function_mode): Likewise.
390 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
391 in order to make it legitimate.
392 * config/rx/rx.md (adddi3_internal): If the second operand is a
393 MEM make sure that the first operand is the same as the result
395 (addsi3_unspec): Delete.
396 (subdi3): Do not accept immediate operands.
397 (subdi3_internal): Likewise.
399 2011-01-25 Jeff Law <law@redhat.com>
401 PR rtl-optimization/37273
402 * ira-costs.c (scan_one_insn): Detect constants living in memory and
403 handle them like argument loads from stack slots. Do not double
404 count memory for memory constants and argument loads from stack slots.
406 2011-01-25 Jakub Jelinek <jakub@redhat.com>
408 PR tree-optimization/47427
409 PR tree-optimization/47428
410 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
411 coalesce if the new root var would be TREE_READONLY.
413 2011-01-25 Richard Guenther <rguenther@suse.de>
416 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
417 correct type for TBAA.
419 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
421 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
422 (close_phi_written_to_memory): Call for_each_index with
423 dr_indices_valid_in_loop.
425 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
427 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
428 when it is initialized.
430 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
432 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
433 call to graphite_find_data_references_in_stmt.
434 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
435 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
436 call to graphite_find_data_references_in_stmt.
437 (analyze_drs_in_stmts): Same.
438 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
439 in which the scalar analysis of indices is performed.
440 (create_data_ref): Same. Update call to dr_analyze_indices.
441 (find_data_references_in_stmt): Update call to create_data_ref.
442 (graphite_find_data_references_in_stmt): Same.
443 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
445 (create_data_ref): Same.
446 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
447 call to create_data_ref.
449 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
451 * graphite-sese-to-poly.c (build_poly_scop): Move
452 rewrite_commutative_reductions_out_of_ssa before
453 find_scop_parameters.
455 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
457 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
458 VAR_DECL, PARM_DECL, and RESULT_DECL.
460 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
462 * graphite-dependences.c (reduction_dr_1): Allow several reductions
464 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
465 that have already been marked as PBB_IS_REDUCTION.
467 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
469 * graphite-scop-detection.c (same_close_phi_node): New.
470 (remove_duplicate_close_phi): New.
471 (make_close_phi_nodes_unique): New.
472 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
474 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
476 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
477 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
478 of both data references to be the same.
480 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
482 * graphite-dependences.c (build_lexicographical_constraint): Remove the
484 (build_lexicographical_constraint): Adjust call to ppl_powerset_is_empty.
485 (dependence_polyhedron): Same.
486 (graphite_legal_transform_dr): Same.
487 (graphite_carried_dependence_level_k): Same.
488 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params parameter.
489 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
491 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
493 * graphite-sese-to-poly.c
494 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
495 (close_phi_written_to_memory): New.
496 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
499 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
501 * doc/install.texi: Update the expected version number of PPL to 0.11.
502 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
503 #if PPL_VERSION_MINOR < 11.
505 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
507 * graphite-dependences.c: Include graphite-cloog-util.h.
508 (new_poly_ddr): Inlined into dependence_polyhedron.
509 (free_poly_ddr): Moved close by new_poly_ddr.
510 (dependence_polyhedron_1): Renamed dependence_polyhedron.
511 Early return NULL when ppl_powerset_is_empty returns true.
512 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
513 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
514 (graphite_legal_transform_dr): Call new_poly_ddr.
515 (graphite_carried_dependence_level_k): Same.
516 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
517 (dot_transformed_deps_stmt_1): Removed.
518 (dot_deps_stmt_1): Call dot_deps_stmt_2.
519 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
520 (dot_deps_1): Call dot_deps_2.
521 * Makefile.in (graphite-dependences.o): Add missing dependence on
522 graphite-cloog-util.h.
524 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
526 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
527 (build_lexicographical_constraint): Same.
528 (dependence_polyhedron_1): Same.
529 (graphite_legal_transform_dr): Same.
530 (graphite_carried_dependence_level_k): Same.
531 * graphite-ppl.c (ppl_powerset_is_empty): New.
532 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
533 * tree-data-ref.c (dump_data_reference): Print the basic block index.
535 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
537 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
538 the "a followed by b" relation and document it.
540 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
542 * graphite-dependences.c (build_lexicographical_constraint): Stop the
543 iteration when the bag of constraints is empty.
545 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
547 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
549 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
551 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
552 nest and two loop depths as parameters.
553 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
556 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
558 * graphite-dependences.c (print_pddr): Call
559 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
561 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
563 * graphite-ppl.c (debug_gmp_value): New.
564 * graphite-ppl.h (debug_gmp_value): Declared.
566 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
568 * doc/install.texi: Document availability of cloog-0.16.
570 2011-01-25 Vladimir Kargov <kargov@gmail.com>
572 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
573 invalid postdominance info.
575 2011-01-24 Jan Hubicka <jh@suse.cz>
578 * doc/extend.texi (weak pragma): Drop claim that it must
579 appear before definition.
580 * varasm.c (merge_weak, declare_weak): Only sanity check
581 that DECL is not output at a time it is declared weak.
583 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
585 * machmode.def: Fixed comments.
587 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
589 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
591 2011-01-24 Paul Koning <ni1d@arrl.net>
593 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
596 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
599 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
600 (block_info): Add scanned and prev.
601 (move_or_delete_vzeroupper_2): Return if the basic block
602 has been scanned and the upper 128bit state is unchanged
604 (move_or_delete_vzeroupper_1): Return true if the exit
606 (move_or_delete_vzeroupper): Visit basic blocks using the
607 work-list based algorithm based on vt_find_locations in
610 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
612 2011-01-24 Nick Clifton <nickc@redhat.com>
614 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
615 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
616 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
617 then define __v850e1__.
618 * doc/invoke.texi: Document -mv850es.
620 2011-01-24 Richard Henderson <rth@redhat.com>
622 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
623 compound unordered comparisons.
624 * config/rx/rx.c (rx_split_fp_compare): Remove.
625 * config/rx/rx-protos.h: Update.
626 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
627 (cbranchsf4): Don't call rx_split_fp_compare.
628 (*cbranchsf4): Use rx_split_cbranch.
629 (*cmpsf): Don't accept "i" constraint.
630 (*conditional_branch): Only valid after reload.
631 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
633 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
636 * config/rs6000/altivec.md (vector constant splitters): Add
637 support for creating vector single precision constants if -mvsx is
638 used and we would create the constant using Altivec primitives.
640 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
641 Richard Sandiford <rdsandiford@googlemail.com>
643 PR rtl-optimization/47166
644 * reload1.c (emit_reload_insns): Disable the spill_reg_store
645 mechanism for PRE_MODIFY and POST_MODIFY.
646 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
649 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
651 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
653 2011-01-22 Jan Hubicka <jh@suse.cz>
656 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
658 2011-01-22 Jan Hubicka <jh@suse.cz>
660 PR tree-optimization/43884
662 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
663 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
665 2011-01-22 Anatoly Sokolov <aesok@post.ru>
667 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
668 * config/s390/s390.c (s390_register_move_cost,
669 s390_memory_move_cost): New.
670 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
672 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
675 * except.c (sjlj_assign_call_site_values): Move setting the
676 crtl->uses_eh_lsda flag to ...
677 (sjlj_mark_call_sites): ... here.
678 (sjlj_emit_function_enter): Support NULL dispatch label.
679 (sjlj_build_landing_pads): In a function with no landing pads
680 that still has must-not-throw regions, generate code to register
681 a personality function with empty LSDA.
683 2011-01-21 Richard Henderson <rth@redhat.com>
685 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
687 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
689 * compare-elim.c: New file.
690 * Makefile.in (OBJS-common): Add it.
691 (compare-elim.o): New.
692 * common.opt (fcompare-elim): New.
693 * opts.c (default_options_table): Add OPT_fcompare_elim.
694 * tree-pass.h (pass_compare_elim_after_reload): New.
695 * passes.c (init_optimization_passes): Add it.
696 * recog.h: Protect against re-inclusion.
697 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
698 * doc/invoke.texi (-fcompare-elim): Document it.
699 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
700 * doc/tm.texi: Rebuild.
702 2011-01-22 Nick Clifton <nickc@redhat.com>
704 * config/rx/rx.md (cstoresf4): Pass comparison operator to
707 2011-01-22 Nick Clifton <nickc@redhat.com>
709 * config/rx/rx.md (UNSPEC_CONST): New.
710 (deallocate_and_return): Wrap the amount popped off the stack in
711 an UNSPEC_CONST in order to stop it being rejected by
713 (pop_and_return): Add a "(return)" rtx.
714 (call): Drop the immediate operand.
715 (call_internal): Likewise.
716 (call_value): Likewise.
717 (call_value_internal): Likewise.
718 (sibcall_internal): Likewise.
719 (sibcall_value_internal): Likewise.
720 (sibcall): Likewise. Generate an explicit call using
722 (sibcall_value): Likewise.
723 (mov<>): FAIL if a constant operand is not legitimate.
724 (addsi3_unpsec): New pattern.
726 * config/rx/rx.c (rx_print_operand_address): Handle UNPSEC
728 (ok_for_max_constant): New function.
729 (gen_safe_add): New function.
730 (rx_expand_prologue): Use gen_safe_add.
731 (rx_expand_epilogue): Likewise.
732 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
735 2011-01-21 Jeff Law <law@redhat.com>
737 PR tree-optimization/47053
738 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
739 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
740 statements are deleted.
741 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
742 is nonempty, then purge dead edges and cleanup the CFG.
744 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
748 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
750 * tree-dfa.c (create_var_ann): Mark variable as used.
752 2011-01-21 Jakub Jelinek <jakub@redhat.com>
755 * except.c (convert_to_eh_region_ranges): Emit queued no-region
756 notes from other section in hot/cold partitioning even if
757 last_action is -3. Increment call_site_base.
759 PR rtl-optimization/47366
760 * fwprop.c (forward_propagate_into): Return bool. If
761 any changes are made, -fnon-call-exceptions is used and
762 REG_EH_REGION note is present, call purge_dead_edges
763 and return true if it purged anything.
764 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
765 any EH edges were purged.
767 2011-01-21 Jeff Law <law@redhat.com>
769 PR rtl-optimization/41619
770 * caller-save.c (setup_save_areas): Break out code to determine
771 which hard regs are live across calls by examining the reload chains
772 so that it is always used.
773 Eliminate code which checked REG_N_CALLS_CROSSED.
775 2011-01-21 Jakub Jelinek <jakub@redhat.com>
777 PR tree-optimization/47355
778 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
779 NOP has non-debug uses beyond PHIs in new_bb.
781 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
784 * cfgexpand.c (account_used_vars_for_block): Only account vars
785 that are annotated as used.
786 (estimated_stack_frame_size): Don't set TREE_USED.
787 * tree-dfa.c (create_var_ann): Mark variable as used.
789 2011-01-21 Richard Guenther <rguenther@suse.de>
792 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
794 2011-01-21 Richard Guenther <rguenther@suse.de>
796 PR tree-optimization/47365
797 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
798 (vn_reference_lookup_pieces): Adjust.
799 (vn_reference_lookup): Likewise.
800 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
801 (vn_reference_lookup_3): Only look through kills if in
803 (vn_reference_lookup_pieces): Adjust.
804 (vn_reference_lookup): Likewise.
805 (visit_reference_op_load): Likewise.
806 (visit_reference_op_store): Likewise.
807 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
808 (compute_avail): Likewise.
809 (eliminate): Likewise.
811 2011-01-21 Jakub Jelinek <jakub@redhat.com>
813 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
814 DECL_IGNORED_P non-reg vars if they are used.
816 PR tree-optimization/47391
817 * varpool.c (const_value_known_p): Return false if
820 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
823 * config/i386/i386.c (ix86_local_alignment): Handle
824 case for va_list_type_node is nil.
825 (ix86_canonical_va_list_type): Likewise.
827 2011-01-21 Alan Modra <amodra@gmail.com>
829 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
830 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
832 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
834 * config/arm/arm.md (define_attr type): Rename f_load
835 and f_store to f_fpa_load and f_fpa_store. Update.
836 (write_conflict): Deal with rename fallout.
837 (*push_fp_multi): Likewise.
838 * config/arm/fpa.md (f_load): Use f_fpa_load.
839 (f_store): Use f_fpa_store.
840 (*movsf_fpa): Likewise.
841 (*movdf_fpa): Likewise.
842 (*movxf_fpa): Likewise.
843 (*thumb2_movsf_fpa): Likewise.
844 (*thumb2_movdf_fpa): Likewise.
845 (*thumb2_movxf_fpa): Likewise.
846 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
847 f_loadd and f_stored.
848 (*thumb2_movdi_vfp): Likewise.
849 (*thumb2_movsf_vfp): Fix attribute to f_loads.
850 (*thumb2_movsi_vfp): Likewise.
851 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
852 Use f_loads instead of f_load.
853 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
855 2011-01-20 Anatoly Sokolov <aesok@post.ru>
857 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
858 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
859 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
860 (xtensa_mode_dependent_address_p): New function.
861 (constantpool_address_p): Make static. Change return type to bool.
862 Change argument type to const_rtx. Use CONST_INT_P predicate.
864 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
867 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
869 2011-01-20 Jakub Jelinek <jakub@redhat.com>
872 * cfgexpand.c (expand_debug_expr): Instead of generating
873 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
876 2011-01-20 Richard Guenther <rguenther@suse.de>
879 * tree-inline.c (remap_gimple_op_r): Recurse manually for
880 the pointer operand of MEM_REFs.
882 2011-01-20 Jakub Jelinek <jakub@redhat.com>
884 PR tree-optimization/46130
885 * ipa-split.c (consider_split): If return_bb contains non-virtual
886 PHIs other than for retval or if split_function would not adjust it,
889 2011-01-20 Richard Guenther <rguenther@suse.de>
891 PR tree-optimization/47167
892 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
893 Revert previous change, only avoid enumeral type changes.
895 2011-01-19 Dodji Seketeli <dodji@redhat.com>
898 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
899 (gen_scheduled_generic_parms_dies): New functions.
900 (gen_struct_or_union_type_die): Schedule template parameters DIEs
901 generation for the end of CU compilation.
902 (dwarf2out_finish): Generate template parameters DIEs here.
904 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
907 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
908 debug bind stmt on merge edges.
910 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
914 * function.c (instantiate_expr): Instantiate incoming rtl of
915 implicit arguments, and recurse on VALUE_EXPRs.
916 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
917 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
919 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
921 * c-parser.c (c_parser_for_statement): Initialize
922 collection_expression.
924 2011-01-19 Joseph Myers <joseph@codesourcery.com>
926 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
928 2011-01-19 Joseph Myers <joseph@codesourcery.com>
930 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
931 (LINK_SHLIB_SPEC): Don't use %(link_path).
932 (SUBTARGET_EXTRA_SPECS): Remove link_path.
934 2011-01-19 Joseph Myers <joseph@codesourcery.com>
936 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
937 (NO_SHARED_LIB_SUPPORT): Remove.
938 (LINK_SHLIB_SPEC): Remove one conditional definition.
940 2011-01-19 Joseph Myers <joseph@codesourcery.com>
942 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
944 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
945 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
946 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
947 %{call_shared} and conditionals on these options not being passed.
948 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
951 2011-01-19 Jakub Jelinek <jakub@redhat.com>
953 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
956 * ipa-split.c: Spelling fixes.
958 2011-01-19 Richard Henderson <rth@redhat.com>
960 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
963 * longlong.h [__mn10300__] (count_leading_zeros): New.
964 [__mn10300__] (umul_ppmm, smul_ppmm): New.
965 [__mn10300__] (add_ssaaaa, subddmmss): New.
966 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
967 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
969 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
971 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
973 2011-01-19 Richard Henderson <rth@redhat.com>
975 * config/mn10300/mn10300.md (addsi3_flags): New.
976 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
977 (subsi3_flags, subc_internal, subdi3): New.
978 (subdi3_internal, *subdi3_degenerate): New.
979 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
981 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
982 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
983 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
984 * config/mn10300/mn10300-protos.h: Update.
985 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
986 (return_ret): Likewise. Rename from return_internal_regs.
987 (return_internal): Remove.
989 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
990 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
991 (mn10300_legitimate_constant_p): Likewise.
992 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
993 (mn10300_frame_size): New.
994 (mn10300_expand_prologue): Use it.
995 (mn10300_expand_epilogue): Likewise.
996 (mn10300_initial_offset): Likewise.
997 * config/mn10300/mn10300-protos.h: Update.
998 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
999 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
1000 (prologue, epilogue, return_internal): Tidy output code.
1001 (mn10300_store_multiple_operation, return): Likewise.
1002 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
1003 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
1004 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
1005 (load_pic, am33_load_pic): New.
1006 (mn10300_load_pic0, mn10300_load_pic1): New.
1008 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
1009 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
1010 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
1011 (cc_flags_for_mode, cc_flags_for_code): New.
1012 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
1013 overflow flag is not valid. Validate that the flags we need
1014 for the comparison are valid.
1015 (mn10300_output_cmp): Remove.
1016 (mn10300_output_add): New.
1017 (mn10300_select_cc_mode): Use cc_flags_for_code.
1018 (mn10300_split_cbranch): New.
1019 (mn10300_match_ccmode): New.
1020 (mn10300_split_and_operand_count): New.
1021 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
1023 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
1024 (addsi3): ... here. Use mn10300_output_add.
1025 (*addsi3_flags): New.
1026 (*am33_subsi3, *mn10300_subsi3): Merge...
1027 (subsi3): ... here. Use attribute isa.
1028 (*subsi3_flags): New.
1029 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
1031 (*am33_andsi3, *mn10300_andsi3): Merge...
1033 (*andsi3_flags): New.
1034 (andsi3 splitters): New.
1035 (*am33_iorsi3, *mn10300_iorsi3): Merge...
1037 (*iorsi3_flags): New.
1038 (*am33_xorsi3, *mn10300_xorsi3): Merge...
1040 (*xorsi3_flags): New.
1041 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
1042 (one_cmplsi2): ... here.
1043 (*one_cmplsi2_flags): New.
1044 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
1045 instead of "dax" in constraints. Use mn10300_split_cbranch.
1046 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
1047 use matching constraints to eliminate a self-comparison.
1048 (*integer_conditional_branch): Rename from integer_conditional_branch.
1049 Use int_mode_flags to match CC_REG.
1050 (*cbranchsi4_btst, *btstsi): New.
1051 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
1052 mn10300_split_cbranch.
1053 (*am33_cmpsf): Rename from am33_cmpsf.
1054 (*float_conditional_branch): Rename from float_conditional_branch.
1055 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
1056 (zero_extendqisi2): ... here.
1057 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
1058 (zero_extendhisi2): ... here.
1059 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
1060 (extendqisi2): ... here.
1061 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
1062 (extendhisi2): ... here.
1063 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
1064 (ashlsi3): ... here.
1065 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
1066 (lshrsi3): ... here.
1067 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
1068 (ashrsi3): ... here.
1069 (consecutive add peephole): Remove.
1070 * config/mn10300/predicates.md (label_ref_operand): New.
1071 (int_mode_flags): New.
1072 (CCZN_comparison_operator): New.
1074 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
1075 (throughput_42_latency_43): New reservation.
1076 (mulsidi3, umulsidi3): New expanders.
1077 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
1078 the MDR register to allocation; separately allocate the low and
1079 high parts of the DImode result.
1080 (umulsidi3_internal): Similarly.
1081 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
1082 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
1083 (udivsi3, umodsi3): Remove.
1084 (udivmodsi4, divmodsi4): New expanders.
1085 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
1086 (*divmodsi4): Simiarly.
1087 (ext_internal): New.
1089 * config/mn10300/constraints.md ("z"): New constraint.
1090 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
1091 (FIXED_REGISTERS): Don't fix MDR.
1092 (CALL_USED_REGSITERS): Reformat nicely.
1093 (REG_ALLOC_ORDER): Add MDR.
1094 (enum regclass): Add MDR_REGS.
1095 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
1096 (IRA_COVER_CLASSES): Add MDR_REGS.
1097 (REGNO_REG_CLASS): Handle MDR_REG.
1098 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
1099 (mn10300_register_move_cost): Likewise.
1100 * config/mn10300/mn10300.md (MDR_REG): New.
1101 (*movsi_internal): Handle moves to/from MDR_REGS.
1103 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
1105 (mn10300_secondary_reload): Tidy combination reload classes.
1106 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
1107 addresses for AM33. Allow symbolic offsets for reg+imm.
1108 (mn10300_regno_in_class_p): New.
1109 (mn10300_legitimize_reload_address): New.
1110 * config/mn10300/mn10300.h (enum reg_class): Remove
1111 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
1112 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
1114 (REG_CLASS_NAMES): Update to match.
1115 (REG_CLASS_CONTENTS): Likewise.
1116 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
1117 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
1118 (REGNO_IN_RANGE_P): Remove.
1119 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
1120 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
1121 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
1122 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
1123 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
1124 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
1125 (REGNO_GENERAL_P): New.
1126 (HAVE_POST_MODIFY_DISP): New.
1127 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
1128 (LEGITIMIZE_RELOAD_ADDRESS): New.
1129 * config/mn10300/mn10300-protos.h: Update.
1131 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
1132 DATA_REGS for AM33 stack-pointer destination.
1133 (mn10300_preferred_output_reload_class): Likewise.
1134 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
1135 into a form appropriate for ...
1136 (TARGET_SECONDARY_RELOAD): New.
1137 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
1138 * config/mn10300/mn10300-protos.h: Update.
1139 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
1140 reload_insi; use the "A" constraint for the scratch; handle AM33
1141 moves of sp to non-address registers.
1143 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
1144 (*movqi_internal): ... here.
1145 (*am33_movhi, *mn10300_movhi): Merge into...
1146 (*movhi_internal): ... here.
1147 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
1148 as the source/destination of moves from/to SP.
1149 (movsf): Only allow for AM33-2.
1150 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
1151 any integer constant constraint. Only allow for AM33-2. Tidy
1152 all of the alternative outputs.
1153 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
1154 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
1156 (udivsi3, umodsi3): New patterns for MN103 only.
1158 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
1160 * doc/tm.texi.in: Spell out that a lack of register class unions
1162 * doc/tm.texi: Regenerate.
1164 2011-01-19 Jakub Jelinek <jakub@redhat.com>
1166 PR rtl-optimization/47337
1167 * dce.c (check_argument_store): New function.
1168 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
1170 PR tree-optimization/47290
1171 * tree-eh.c (infinite_empty_loop_p): New function.
1172 (cleanup_empty_eh): Use it.
1174 2011-01-18 Steve Ellcey <sje@cup.hp.com>
1177 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
1178 (a64_expand_widen_sum): Ditto.
1179 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
1180 (vec_extract_evenodd_help): Ditto.
1181 (vec_extract_evenv4hi): Ditto.
1182 (vec_extract_oddv4hi): Ditto.
1183 (vec_extract_evenv2si): Ditto.
1184 (vec_extract_oddv2si): Ditto.
1185 (vec_extract_evenv2sf): Ditto.
1186 (vec_extract_oddv2sf): Ditto.
1187 (vec_pack_trunc_v4hi: Ditto.
1188 (vec_pack_trunc_v2si): Ditto.
1189 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
1190 (vec_interleave_highv8qi): Ditto.
1192 (vec_extract_oddv8qi): Ditto.
1193 (vec_interleave_lowv4hi): Ditto.
1194 (vec_interleave_highv4hi): Ditto.
1195 (vec_interleave_lowv2si): Ditto.
1196 (vec_interleave_highv2si): Ditto.
1198 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1200 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
1201 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
1202 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
1203 (pa_c_mode_for_suffix): New.
1204 (TARGET_EXPAND_BUILTIN): Define.
1205 (TARGET_C_MODE_FOR_SUFFIX): Define.
1206 (pa_builtins): Define.
1207 (pa_init_builtins): Register __float128 type and init new support
1209 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
1210 * config/pa/quadlib.c (_U_Qfcopysign): New.
1212 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
1215 * explow.c (allocate_dynamic_stack_space): Do not assume more than
1216 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
1219 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1221 PR tree-optimization/47179
1222 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
1223 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
1225 2011-01-18 Richard Guenther <rguenther@suse.de>
1227 PR rtl-optimization/47216
1228 * emit-rtl.c: Include tree-flow.h.
1229 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
1230 of replicating it with different semantics.
1231 * Makefile.in (emit-rtl.o): Adjust.
1233 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1235 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually
1237 (cortex_a9_dp): Handle neon types correctly.
1239 2011-01-18 Jakub Jelinek <jakub@redhat.com>
1241 PR rtl-optimization/47299
1242 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
1243 subtarget. Use normal multiplication if both operands are
1245 * expmed.c (expand_widening_mult): Don't try to optimize constant
1246 multiplication if op0 has VOIDmode. Convert op1 constant to mode
1249 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1251 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
1252 spacing after 'e.g.', typos, comma, hyphenation.
1254 2011-01-17 Richard Henderson <rth@redhat.com>
1256 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
1257 (rx_restricted_mem_operand): New.
1258 (rx_shift_operand): Use register_operand.
1259 (rx_source_operand, rx_compare_operand): Likewise.
1260 * config/rx/rx.md (addsi3_flags): New expander.
1261 (adddi3): Rewrite as expander.
1262 (adc_internal, *adc_flags, adddi3_internal): New patterns.
1263 (subsi3_flags): New expander.
1264 (subdi3): Rewrite as expander.
1265 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
1267 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
1268 (rx_init_builtins): Remove sat builtin.
1269 (rx_expand_builtin): Likewise.
1270 * config/rx/rx.md (ssaddsi3): New.
1271 (*sat): Rename from sat. Represent the CC_REG input.
1273 * config/rx/predicates.md (rshift_operator): New.
1274 * config/rx/rx.c (rx_expand_insv): Remove.
1275 * config/rx/rx-protos.h: Update.
1276 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
1277 operand to the canonical position.
1278 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
1279 (*bitclr, *bitclr_in_memory): Similarly.
1280 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
1281 (insv): Retain the zero_extract in the expansion.
1283 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
1284 (bswaphi2, bitinvert, revw): Likewise.
1286 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
1287 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
1288 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
1289 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
1290 (bitset, bitset_in_memory): Likewise.
1291 (bitinvert, bitinvert_in_memory): Likewise.
1292 (bitclr, bitclr_in_memory): Likewise.
1293 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
1294 (rx_strend, rx_cmpstrn): Likewise.
1295 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
1296 (bitop peep2 patterns): Remove.
1298 * config/rx/rx.c (rx_match_ccmode): New.
1299 * config/rx/rx-protos.h: Update.
1300 * config/rx/rx.md (abssi2): Clobber, don't set flags.
1301 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
1302 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
1303 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
1304 (fix_truncsfsi2, floatsisf2): Likewise.
1305 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
1306 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
1307 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
1308 (*subsi3_flags, *xorsi3_flags): New.
1310 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
1312 * config/rx/rx.c (rx_print_operand): Remove workaround for
1313 unsplit comparison operations.
1315 * config/rx/rx.md (movsicc): Split after reload.
1316 (*movsicc): Merge *movsieq and *movsine via match_operator.
1317 (*stcc): New pattern.
1319 * config/rx/rx.c (rx_float_compare_mode): Remove.
1320 * config/rx/rx.h (rx_float_compare_mode): Remove.
1321 * config/rx/rx.md (cstoresi4): Split after reload.
1322 (*sccc): New pattern.
1324 * config/rx/predicates.md (label_ref_operand): New.
1325 (rx_z_comparison_operator): New.
1326 (rx_zs_comparison_operator): New.
1327 (rx_fp_comparison_operator): New.
1328 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
1329 Validate that the flags are set properly for the comparison.
1330 (rx_gen_cond_branch_template): Remove.
1331 (rx_cc_modes_compatible): Remove.
1332 (mode_from_flags): New.
1333 (flags_from_code): Rename from flags_needed_for_conditional.
1334 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
1335 (rx_select_cc_mode): Likewise.
1336 (rx_split_fp_compare): New.
1337 (rx_split_cbranch): New.
1338 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
1339 (*cbranchsi4): Use match_operator and rx_split_cbranch.
1340 (*cbranchsf4): Similarly.
1341 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
1342 match_operator and rx_split_cbranch.
1343 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
1344 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
1345 (*cmpsi): Rename from cmpsi.
1346 (*tstsi): Rename from tstsi.
1347 (*cmpsf): Rename from cmpsf; use CC_Fmode.
1348 (*conditional_branch): Rename from conditional_branch.
1349 (*reveresed_conditional_branch): Remove.
1350 (b<code>): Remove expander.
1351 * config/rx/rx-protos.h: Update.
1353 * config/rx/rx.c (rx_compare_redundant): Remove.
1354 * config/rx/rx.md (cmpsi): Don't use it.
1355 * config/rx/rx-protos.h: Update.
1357 * config/rx/rx-modes.def (CC_F): New mode.
1358 * config/rx/rx.c (rx_select_cc_mode): New.
1359 * config/rx/rx.h (SELECT_CC_MODE): Use it.
1360 * config/rx/rx-protos.h: Update.
1362 2011-01-17 Richard Henderson <rth@redhat.com>
1364 * except.c (dump_eh_tree): Fix stray ; after for statement.
1366 2011-01-17 Richard Guenther <rguenther@suse.de>
1368 PR tree-optimization/47313
1369 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
1370 handling before copying the body. Properly deal with
1371 by-reference result in SSA form.
1373 2011-01-17 Ian Lance Taylor <iant@google.com>
1376 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
1377 (struct_value_alias_set): Don't define.
1378 (sparc_option_override): Don't set sparc_sr_alias_set and
1379 struct_value_alias_set.
1380 (save_or_restore_regs): Use gen_frame_mem rather than calling
1382 (sparc_struct_value_rtx): Likewise.
1384 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
1387 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
1389 (_mm_maskstore_pd): Likewise.
1390 (_mm_maskload_ps): Likewise.
1391 (_mm_maskstore_ps): Likewise.
1392 (_mm256_maskload_pd): Change mask to __m256i.
1393 (_mm256_maskstore_pd): Likewise.
1394 (_mm256_maskload_ps): Likewise.
1395 (_mm256_maskstore_ps): Likewise.
1397 * config/i386/i386-builtin-types.def: Updated.
1398 (ix86_expand_special_args_builtin): Likewise.
1400 * config/i386/i386.c (bdesc_special_args): Update
1401 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
1402 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
1403 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
1404 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
1406 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
1407 Use <avxpermvecmode> on mask register.
1408 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
1410 2011-01-17 Olivier Hainque <hainque@adacore.com>
1411 Michael Haubenwallner <michael.haubenwallner@salomon.at>
1412 Eric Botcazou <ebotcazou@adacore.com>
1415 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
1416 if <= USHRT_MAX in 32-bit mode.
1418 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1420 * doc/install.texi (Configuration, Specific): Wrap long
1421 lines in examples. Allow line wrapping in long options
1422 and URLs where beneficial for PDF output.
1424 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
1426 * config/mips/mips.c (mips_classify_symbol): Don't return
1427 SYMBOL_PC_RELATIVE for nonlocal labels.
1429 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
1431 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
1433 2011-01-15 Jan Hubicka <jh@suse.cz>
1435 PR tree-optimization/47276
1436 * ipa.c (function_and_variable_visibility): Do not try to mark alias
1437 declarations as needed.
1439 2011-01-15 Martin Jambor <mjambor@suse.cz>
1441 * common.opt (fdevirtualize): New flag.
1442 * doc/invoke.texi (Option Summary): Document it.
1443 * opts.c (default_options_table): Add devirtualize flag.
1444 * ipa-prop.c (detect_type_change): Return immediately if
1445 devirtualize flag is not set.
1446 (detect_type_change_ssa): Likewise.
1447 (compute_known_type_jump_func): Likewise.
1448 (ipa_analyze_virtual_call_uses): Likewise.
1450 2011-01-14 Martin Jambor <mjambor@suse.cz>
1452 PR tree-optimization/45934
1453 PR tree-optimization/46302
1454 * ipa-prop.c (type_change_info): New type.
1455 (stmt_may_be_vtbl_ptr_store): New function.
1456 (check_stmt_for_type_change): Likewise.
1457 (detect_type_change): Likewise.
1458 (detect_type_change_ssa): Likewise.
1459 (compute_complex_assign_jump_func): Check for dynamic type change.
1460 (compute_complex_ancestor_jump_func): Likewise.
1461 (compute_known_type_jump_func): Likewise.
1462 (compute_scalar_jump_functions): Likewise.
1463 (ipa_analyze_virtual_call_uses): Likewise.
1464 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
1466 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1468 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
1469 * config/i386/i386.opt (msse5): New Alias.
1471 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1473 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
1474 * config/sparc/linux64.h (CC1_SPEC): Likewise.
1475 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1476 * config/sparc/sparc.h (CC1_SPEC): Likewise.
1478 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1480 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
1482 * config/sparc/linux64.h (CC1_SPEC): Likewise.
1483 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1484 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
1485 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
1487 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
1489 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1491 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or
1494 2011-01-14 Mike Stump <mikestump@comcast.net>
1496 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
1497 * config/fr30/fr30.md: Likweise
1498 (movsi_push): Likewise.
1499 (movsi_pop): Likewise.
1500 (enter_func): Likewise.
1501 * config/moxie/moxie.md (movsi_push): Likewise.
1502 (movsi_pop): Likewise.
1504 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1506 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
1507 %{no_archive} %{exact_version}.
1508 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
1509 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
1510 %{no_archive} %{exact_version}.
1511 * config/mips/openbsd.h (LINK_SPEC): Likewise.
1512 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
1513 * config/mips/vxworks.h: Likewise.
1515 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1517 * config/microblaze/microblaze.h (ASM_SPEC): Remove
1520 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1522 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
1523 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
1525 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1527 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
1530 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1532 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
1534 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
1535 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
1537 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
1538 Don't handle -shlib.
1540 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1542 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
1543 (CC1_SPEC): Don't handle -profile.
1545 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1547 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
1548 * config/mips/mips.h (CC1_SPEC): Likewise.
1550 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1552 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
1553 * config/mips/mips.h (CC1_SPEC): Likewise.
1555 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1557 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
1558 * config/m32r/linux.h (LINK_SPEC): Likewise.
1559 * config/mips/linux.h (LINK_SPEC): Likewise.
1560 * config/mips/linux64.h (LINK_SPEC): Likewise.
1561 * config/sparc/linux.h (LINK_SPEC): Likewise.
1562 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1563 LINK_SPEC): Likewise.
1564 * config/xtensa/linux.h (LINK_SPEC): Likewise.
1566 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1568 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
1570 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
1572 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1574 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
1575 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
1577 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1579 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
1581 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1583 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
1584 supports -Bstatic/-Bdynamic.
1585 * configure: Regenerate.
1587 2011-01-14 Jan Hubicka <jh@suse.cz>
1588 Jack Howarth <howarth@bromo.med.uc.edu>
1591 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
1592 when checking debug_info_level. Test write_symbols instead of
1593 debug_hooks->var_location when setting flag_var_tracking_uninit.
1595 2011-01-14 Richard Guenther <rguenther@suse.de>
1597 PR tree-optimization/47179
1598 * target.def (ref_may_alias_errno): New target hook.
1599 * targhooks.h (default_ref_may_alias_errno): Declare.
1600 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
1601 (default_ref_may_alias_errno): New function.
1602 * target.h (struct ao_ref_s): Declare.
1603 * tree-ssa-alias.c: Include target.h.
1604 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
1605 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
1606 (targhooks.o): Likewise.
1607 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
1608 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
1610 2011-01-14 Richard Guenther <rguenther@suse.de>
1612 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
1614 2011-01-14 Richard Guenther <rguenther@suse.de>
1616 PR tree-optimization/47280
1617 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
1619 (tree_ssa_forward_propagate_single_use_vars): Deal with
1620 CFG changes from associate_plusminus.
1622 2011-01-14 Richard Guenther <rguenther@suse.de>
1626 2011-01-11 Richard Guenther <rguenther@suse.de>
1628 PR tree-optimization/46076
1629 * tree-ssa.c (useless_type_conversion_p): Conversions from
1630 unprototyped to empty argument list function types are useless.
1632 2011-01-14 Richard Guenther <rguenther@suse.de>
1634 PR tree-optimization/47286
1635 * tree-ssa-structalias.c (new_var_info): Register variables are global.
1637 2011-01-14 Martin Jambor <mjambor@suse.cz>
1640 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
1642 2011-01-13 Anatoly Sokolov <aesok@post.ru>
1644 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
1645 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1646 * config/xtensa/xtensa.c (xtensa_libcall_value,
1647 xtensa_function_value_regno_p): New functions.
1648 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
1650 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
1653 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
1655 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
1656 New function prototype.
1657 * config/i386/winnt.c (i386_pe_assemble_visibility):
1658 Warn only if attribute was specified by user.
1660 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1663 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
1665 (floatunsdidf2_fcfidu): Ditto.
1667 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1669 * config/s390/s390.c (print_operand_address): Replace 'error' with
1670 'output_operand_lossage'.
1671 (print_operand): Likewise.
1673 2011-01-13 Jeff Law <law@redhat.com>
1675 PR rtl-optimization/39077
1676 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
1677 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
1678 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
1679 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
1680 * gcse.c (prune_insertions_deletions): New function.
1681 (compute_pre_data): Use it.
1683 2011-01-13 Dodji Seketeli <dodji@redhat.com>
1686 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
1688 (prune_unused_types_mark): Use it.
1690 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
1692 PR rtl-optimization/45352
1693 * sel-sched.c: Update copyright years.
1694 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1695 in the advancing loop when we have issued issue_rate insns.
1697 2011-01-12 Richard Henderson <rth@redhat.com>
1699 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
1700 (TARGET_MD_ASM_CLOBBERS): New.
1702 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
1703 (TARGET_DELEGITIMIZE_ADDRESS): New.
1705 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
1706 (clzsi2, *bsch): New patterns.
1708 * config/mn10300/mn10300.md (INT): New mode iterator.
1709 (*mov<INT>_clr): New pattern, and peep2 to generate it.
1711 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
1712 flag_split_wide_types.
1714 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
1715 (mn10300_trampoline_init): Rewrite without a template, an immediate
1716 load and a direct branch.
1717 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
1719 2011-01-12 Anatoly Sokolov <aesok@post.ru>
1721 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1722 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
1723 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
1724 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1726 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
1729 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
1732 2011-01-12 Jan Hubicka <jh@suse.cz>
1735 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
1736 (PLUGIN_COND_CLOSE): New macro.
1737 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
1739 2011-01-12 Richard Guenther <rguenther@suse.de>
1742 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
1743 register variables in a MEM_REF.
1745 2011-01-12 Joseph Myers <joseph@codesourcery.com>
1747 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
1748 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
1749 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
1750 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1751 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1752 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
1753 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
1754 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
1755 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
1756 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
1757 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
1758 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
1759 * config/gnu-user.h: New. Copied from linux.h.
1760 (LINUX_TARGET_STARTFILE_SPEC): Rename to
1761 GNU_USER_TARGET_STARTFILE_SPEC.
1762 (LINUX_TARGET_ENDFILE_SPEC): Rename to
1763 GNU_USER_TARGET_ENDFILE_SPEC.
1764 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
1765 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
1766 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
1767 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
1768 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
1769 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
1770 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
1771 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
1772 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
1773 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
1774 * config/arm/linux-eabi.h (CC1_SPEC): Use
1775 GNU_USER_TARGET_CC1_SPEC.
1776 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
1777 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
1778 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
1779 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
1780 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
1781 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
1782 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
1783 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
1785 2011-01-12 Richard Guenther <rguenther@suse.de>
1788 * doc/invoke.texi (ffast-math): Document it is turned on
1791 2011-01-12 Jan Hubicka <jh@suse.cz>
1793 PR tree-optimization/47233
1794 * opts.c (common_handle_option): Disable ipa-reference with profile
1797 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
1799 * c-parser.c (c_parser_objc_at_property_declaration): Improved
1802 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
1804 * c-parser.c (c_lex_one_token): Updated and reindented some
1805 comments. No changes in code.
1807 2011-01-11 Ian Lance Taylor <iant@google.com>
1809 * godump.c (go_output_var): Don't output the variable if there is
1810 already a type with the same name.
1812 2011-01-11 Ian Lance Taylor <iant@google.com>
1814 * godump.c (go_format_type): Don't generate float80.
1816 2011-01-11 Richard Henderson <rth@redhat.com>
1818 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
1819 declaration. Rewrite for both speed and size.
1820 (mn10300_address_cost_1): Remove.
1821 (mn10300_register_move_cost): New.
1822 (mn10300_memory_move_cost): New.
1823 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
1824 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
1825 extensions, shifts, BSWAP, CLZ.
1826 (mn10300_wide_const_load_uses_clr): Remove.
1827 (TARGET_REGISTER_MOVE_COST): New.
1828 (TARGET_MEMORY_MOVE_COST): New.
1829 * config/mn10300/mn10300-protos.h: Update.
1830 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
1832 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
1833 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
1834 * config/mn10300/mn10300-protos.h: Update.
1835 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
1836 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
1837 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
1838 (*test_int_bitfield, *test_byte_bitfield): Remove.
1839 (*bit_test, *subreg_bit_test): Remove.
1840 * config/mn10300/predicates.md (const_8bit_operand): Remove.
1842 * config/mn10300/constraints.md ("c"): Rename from "A".
1843 ("A", "D"): New constraint letters.
1844 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
1845 (fmssf4, fnmasf4, fnmssf4): Likewise.
1847 * config/mn10300/mn10300.md (isa): New attribute.
1848 (enabled): New attribute.
1850 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
1851 (abssf2, negsf2): Define only for hardware fp.
1852 (sqrtsf2): Reformat.
1853 (addsf3, subsf3, mulsf3): Merge expander and insn.
1855 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
1856 (DEBUGGER_AUTO_OFFSET): Remove.
1857 (DEBUGGER_ARG_OFFSET): Remove.
1859 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
1860 Emit register stores with the same offsets as the hardware.
1861 (mn10300_store_multiple_operation): Don't check that the register
1862 save offsets are monotonic.
1863 * config/mn10300/mn10300-protos.h: Update.
1865 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
1867 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
1868 in terms of the value on the stack, not the MDR register.
1870 2011-01-11 Jan Hubicka <jh@suse.cz>
1874 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
1875 (symbol_alias_set_destroy, symbol_alias_set_contains,
1876 propagate_aliases_backward): Declare.
1877 * lto-streamer-out.c (struct sets): New sturcture.
1878 (trivally_defined_alias): New function.
1879 (output_alias_pair_p): Rewrite.
1880 (output_unreferenced_globals): Fix output of alias pairs.
1881 (produce_symtab): Likewise.
1882 * ipa.c (function_and_variable_visibility): Set weak alias destination
1884 * varasm.c (symbol_alias_set_t): Remove.
1885 (symbol_alias_set_destroy): Export.
1886 (propagate_aliases_forward, propagate_aliases_backward): New functions
1888 (compute_visible_aliases): ... this one; remove.
1889 (trivially_visible_alias): New
1890 (trivially_defined_alias): New.
1891 (remove_unreachable_alias_pairs): Rewrite.
1892 (finish_aliases_1): Reorganize code checking if alias is defined.
1893 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
1896 2011-01-11 Richard Guenther <rguenther@suse.de>
1898 PR tree-optimization/46076
1899 * tree-ssa.c (useless_type_conversion_p): Conversions from
1900 unprototyped to empty argument list function types are useless.
1902 2011-01-11 Richard Guenther <rguenther@suse.de>
1905 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
1906 volatile MEMs as MEM_READONLY_P.
1908 2011-01-11 Richard Guenther <rguenther@suse.de>
1910 PR tree-optimization/47239
1911 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
1913 2011-01-11 Jeff Law <law@redhat.com>
1915 PR tree-optimization/47086
1916 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
1917 IVs from statements that might throw.
1919 2011-01-10 Jan Hubicka <jh@suse.cz>
1922 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
1924 2011-01-10 Jan Hubicka <jh@suse.cz>
1927 * profile.c (read_profile_edge_counts): Ignore profile inconistency
1928 when correcting profile.
1930 2011-01-10 Jan Hubicka <jh@suse.cz>
1933 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
1935 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
1936 Restore DECL_FINI_PRIORITY.
1938 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1940 * doc/gimple.texi: Fix quoting of multi-word return values in
1941 @deftypefn statements. Ensure presence of return value. Wrap
1942 overlong @deftypefn lines.
1943 (is_gimple_operand, is_gimple_min_invariant_address): Remove
1944 descriptions of removed functions.
1945 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
1946 of multi-word return value in @deftypefn statement.
1948 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1950 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
1951 (Conditional Expressions, Logical Operators)
1952 (Statement and operand traversals): Do not indent smallexample
1953 code. Fix duplicate function argument in example.
1955 2011-01-10 Jeff Law <law@redhat.com>
1957 PR tree-optimization/47141
1958 * ipa-split.c (split_function): Handle case where we are
1959 returning a value and the return block has a virtual operand phi.
1961 2011-01-10 Jan Hubicka <jh@suse.cz>
1963 PR tree-optimization/47234
1964 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
1965 (pass_feedback_split_functions): Declare.
1966 * passes.c (init_optimization_passes): Add ipa-split as subpass of
1968 * ipa-split.c (gate_split_functions): Update comments; disable
1969 split-functions for profile_arc_flag and branch_probabilities.
1970 (gate_feedback_split_functions): New function.
1971 (execute_feedback_split_functions): New function.
1972 (pass_feedback_split_functions): New global var.
1974 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
1977 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
1978 calling gimple_call_set_cannot_inline.
1980 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
1982 * config/darwin-sections.def: Remove unused section.
1984 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
1987 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
1989 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
1992 * c-parser.c (c_parser_declaration_or_fndef): Improved
1995 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
1997 * config/i386/winnt.c (i386_pe_start_function): Make sure
1998 to switch back to function's section.
2000 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
2004 * plugin.c: Move include of dlfcn.h from here...
2005 * system.h: ... to here.
2007 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2009 * doc/cpp.texi (C++ Named Operators): Fix markup for header
2011 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
2012 two extra empty pages in PDF output.
2014 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
2017 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
2018 for error recovery purposes behave as if it was not specified so
2019 that the default type is usd.
2021 2011-01-07 Jan Hubicka <jh@suse.cz>
2023 PR tree-optmization/46469
2024 * ipa.c (function_and_variable_visibility): Clear needed flags on
2025 nodes with external decls; handle weakrefs merging correctly.
2027 2011-01-07 Joseph Myers <joseph@codesourcery.com>
2029 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
2032 2011-01-07 Jan Hubicka <jh@suse.cz>
2034 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
2035 and no longer claim that gold is required for linker plugin.
2036 * configure: Regenerate.
2037 * gcc.c (PLUGIN_COND): New macro.
2038 (LINK_COMMAND_SPEC): Use it.
2039 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
2040 * config.in (HAVE_LTO_PLUGIN): New.
2041 * configure.ac (--with-lto-plugin): New parameter; autodetect
2044 2011-01-07 Jan Hubicka <jh@suse.cz>
2046 PR tree-optimization/46367
2047 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
2048 when we can update original.
2049 (cgraph_mark_inline_edge): Sanity check.
2050 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
2052 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2054 * config/spu/spu.h (ASM_COMMENT_START): Define.
2056 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
2060 (SWITCH_KEEP_FOR_GCC): Likewise.
2061 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
2062 (do_spec_1): Handle "%>".
2064 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
2066 2011-01-07 Jakub Jelinek <jakub@redhat.com>
2069 * config/i386/i386.c (ix86_delegitimize_address): If
2070 simplify_gen_subreg fails, return orig_x.
2073 * value-prof.c (gimple_stringop_fixed_value): Handle
2074 lhs of the call properly.
2076 2011-01-07 Jan Hubicka <jh@suse.cz>
2079 * lto-opt.c (lto_reissue_options): Set flag_shlib.
2081 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
2083 * target.def (function_switched_text_sections): New hook.
2084 * doc/tm.texi: Regenerated.
2085 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
2086 * final.c (default_function_switched_text_sections): New.
2087 (final_scan_insn): Call function_switched_text_sections when a
2088 mid-function section change occurs.
2089 * output.h (default_function_switched_text_sections): Declare.
2090 * config/darwin-protos.h (darwin_function_switched_text_sections):
2092 * config/darwin.c (darwin_function_switched_text_sections): New.
2093 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
2095 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
2097 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
2098 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
2099 the secondary code fragment when outputting for DWARF == 2.
2101 2011-01-07 Anatoly Sokolov <aesok@post.ru>
2103 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2104 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
2106 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
2107 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2109 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
2112 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
2113 when it is not empty.
2115 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
2118 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
2119 (case ${target}): Add btver1.
2120 * config/i386/driver-i386.c (host_detect_local_cpu): Let
2121 -march=native recognize btver1 processors.
2122 * config/i386/i386-c.c (ix86_target_macros_internal): Add
2123 btver1 def_and_undef
2124 * config/i386/i386.c (struct processor_costs btver1_cost): New
2126 (m_BTVER1): New definition.
2127 (m_AMD_MULTIPLE): Includes m_BTVER1.
2128 (initial_ix86_tune_features): Add btver1 tune.
2129 (processor_target_table): Add btver1 entry.
2130 (static const char *const cpu_names): Add btver1 entry.
2131 (software_prefetching_beneficial_p): Add btver1.
2132 (ix86_option_override_internal): Add btver1 instruction sets.
2133 (ix86_issue_rate): Add btver1.
2134 (ix86_adjust_cost): Add btver1.
2135 * config/i386/i386.h (TARGET_BTVER1): New definition.
2136 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
2137 (enum processor_type): Add PROCESSOR_BTVER1.
2138 * config/i386/i386.md (define_attr "cpu"): Add btver1.
2140 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2143 * config/i386/i386.c (legitimize_tls_address)
2144 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
2145 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
2146 (tls_initial_exec_64_sun): New pattern.
2148 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
2150 * doc/invoke.texi (Overall Options): Improve wording and markup
2151 of the description of -wrapper.
2153 2011-01-06 Joseph Myers <joseph@codesourcery.com>
2155 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
2156 rdynamic, threads): New Driver options.
2158 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2161 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
2162 if coming from .tdata.
2163 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
2165 2011-01-06 Jan Hubicka <jh@suse.cz>
2168 * collect2.c (main): Do not enable LTOmode when plugin is active.
2170 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2173 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
2174 --version output if supported.
2175 * configure: Regenerate.
2177 2011-01-06 Joseph Myers <joseph@codesourcery.com>
2179 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
2182 2011-01-06 Jakub Jelinek <jakub@redhat.com>
2185 * c-convert.c (convert): When converting a complex expression
2186 other than COMPLEX_EXPR to a different complex type, ensure
2187 c_save_expr is called instead of save_expr, unless in_late_binary_op.
2188 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
2189 when converting COMPLEX_TYPE.
2191 2011-01-06 Ira Rosen <irar@il.ibm.com>
2193 PR tree-optimization/47139
2194 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
2195 only the last reduction value is used outside the loop. Update
2198 2011-01-05 Joseph Myers <joseph@codesourcery.com>
2200 * config/rtems.opt: New.
2201 * config.gcc (*-*-rtems*): Use rtems.opt.
2203 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
2205 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
2206 processors do not support 3DNow instructions.
2208 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2210 * config/spu/spu.c (spu_option_override): Set parameter
2211 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
2213 2011-01-05 Jan Hubicka <jh@suse.cz>
2215 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
2216 at the command line.
2218 2011-01-05 Martin Jambor <mjambor@suse.cz>
2221 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
2222 deltas on streamed outgoing edges.
2223 (output_node_opt_summary): Output info for outgoing edges only when
2224 the node is in new parameter set.
2225 (output_cgraph_opt_summary): New parameter set, passed to the two
2226 aforementioned functions. Update its forward declaration and its
2229 2011-01-05 Tom Tromey <tromey@redhat.com>
2231 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
2232 operator to c_finish_omp_atomic.
2233 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
2234 (build_unary_op): Update.
2235 (build_modify_expr): Update.
2236 (build_asm_expr): Update.
2238 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2240 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
2241 newly inserted insns.
2243 (spu_emit_branch_hint): Likewise.
2244 (insert_hbrp_for_ilb_runout): Likewise.
2245 (spu_machine_dependent_reorg): Call df_finish_pass after
2246 schedule_insns returns.
2248 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2250 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
2252 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
2254 PR tree-optimization/47005
2255 * tree-sra.c (struct access): Add 'non_addressable' bit.
2256 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
2257 (decide_one_param_reduction): Return 0 if the parameter is passed by
2258 reference and one of the accesses in the group is non_addressable.
2260 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
2262 PR tree-optimization/47056
2263 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
2264 (mark_load): Likewise. Handle FUNCTION_DECL specially.
2265 (mark_store): Likewise. Pass STMT to ipa_record_reference.
2267 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
2269 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
2270 initializer. Skip view conversions from aggregate types.
2272 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
2275 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
2277 2011-01-04 Philipp Thomas <pth@suse.de>
2279 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
2282 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2284 * function.c (thread_prologue_and_epilogue_insns): Do not crash
2285 on empty epilogue sequences.
2287 2011-01-04 Joseph Myers <joseph@codesourcery.com>
2289 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
2290 non-static): New Driver options.
2292 2011-01-04 Jie Zhang <jie@codesourcery.com>
2295 * gcc.c (default_compilers[]): Set combinable field to 0
2296 for all assembly languages.
2298 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
2300 * config/mips/loongson3a.md: New file.
2301 * config/mips/mips.md: Include loongson3a.md.
2302 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
2305 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
2308 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
2309 instead of convert_memory_address_addr_space on the base expression.
2311 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2313 * config/spu/spu.c (spu_option_override): Update error text
2314 for bad -march= / -mtune= values.
2316 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2318 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
2319 if branch-hint optimization will be performed.
2321 2011-01-03 Jakub Jelinek <jakub@redhat.com>
2323 PR tree-optimization/47148
2324 * ipa-split.c (split_function): Convert arguments to
2325 DECL_ARG_TYPE if possible.
2327 PR tree-optimization/47155
2328 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
2331 PR rtl-optimization/47157
2332 * combine.c (try_combine): If undobuf.other_insn becomes
2333 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
2334 and set *new_direct_jump_p too.
2336 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
2338 PR tree-optimization/47021
2339 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
2341 2011-01-03 Jakub Jelinek <jakub@redhat.com>
2343 * gcc.c (process_command): Update copyright notice dates.
2344 * gcov.c (print_version): Likewise.
2345 * gcov-dump.c (print_version): Likewise.
2346 * mips-tfile.c (main): Likewise.
2347 * mips-tdump.c (main): Likewise.
2349 2011-01-03 Martin Jambor <mjambor@suse.cz>
2351 PR tree-optimization/46801
2352 * tree-sra.c (type_internals_preclude_sra_p): Check whether
2353 aggregate fields start at byte boundary instead of the bit-field flag.
2355 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
2358 * gcc.c (main): Revert revision 168407.
2360 2011-01-03 Martin Jambor <mjambor@suse.cz>
2362 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
2364 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2366 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
2367 vector optab to expand vector/scalar shift, update gimple to vector.
2369 2011-01-03 Martin Jambor <mjambor@suse.cz>
2371 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
2374 2011-01-03 Martin Jambor <mjambor@suse.cz>
2376 PR tree-optimization/46984
2377 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
2379 (cgraph_create_indirect_edge): Fixed line length.
2380 (cgraph_indirect_call_info): Declare.
2381 (cgraph_make_edge_direct) Update declaration.
2382 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
2383 (cgraph_create_indirect_edge): Use it.
2384 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
2386 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
2387 the new thunk_delta representation.
2388 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
2390 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
2391 (ipa_read_indirect_edge_info): Likewise.
2392 * lto-cgraph.c (output_edge_opt_summary): New function.
2393 (output_node_opt_summary): Call it on all outgoing edges.
2394 (input_edge_opt_summary): New function.
2395 (input_node_opt_summary): Call it on all outgoing edges.
2397 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
2400 * gcc.c (main): Don't check have_o when settting combine_inputs.
2402 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
2404 * regrename.c: Add general comment describing the pass.
2405 (struct du_head): Remove 'length' field.
2406 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
2407 (regrename_optimize): Do not sort chains. Rework comments, add others.
2408 Force renaming to the preferred class (if any) in the first pass and do
2409 not consider registers that belong to it in the second pass.
2410 (create_new_chain): Do not set 'length' field.
2411 (scan_rtx_reg): Likewise.
2413 2011-01-02 Jakub Jelinek <jakub@redhat.com>
2415 PR tree-optimization/47140
2416 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
2417 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
2420 PR rtl-optimization/47028
2421 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
2422 parm_birth_insn instead of at the beginning of first bb.
2424 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
2426 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
2427 Remove the word "see" before "@pxref".
2428 * doc/rtl.texi: Remove the word "see" before "@pxref".
2430 2011-01-01 Jan Hubicka <jh@suse.cz>
2432 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
2435 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
2438 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
2441 Copyright (C) 2011 Free Software Foundation, Inc.
2443 Copying and distribution of this file, with or without modification,
2444 are permitted in any medium without royalty provided the copyright
2445 notice and this notice are preserved.