1 2011-02-01 DJ Delorie <dj@redhat.com>
3 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
5 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
8 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
10 PR tree-optimization/47561
11 * toplev.c (process_options): Print the Graphite flags. Add
12 flag_loop_flatten to the list of options requiring Graphite.
14 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16 * config/i386/cygming.opt (posix): New Driver option.
18 2011-02-01 Joseph Myers <joseph@codesourcery.com>
20 * config/arm/vxworks.opt: New.
21 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
23 2011-02-01 Joseph Myers <joseph@codesourcery.com>
25 * config/alpha/elf.opt: New.
26 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
27 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
29 2011-02-01 Richard Guenther <rguenther@suse.de>
31 PR tree-optimization/47559
32 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
33 store-motion on references that can throw.
35 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
37 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
38 * tree-pass.h (TDF_CSELIB): New macro.
39 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
40 cselib_lookup): Check for it rather than for TDF_DETAILS.
42 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
45 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
48 * opts.c (finish_options): Don't add x_aux_base_name if it is
51 2011-02-01 Richard Guenther <rguenther@suse.de>
53 PR tree-optimization/47555
55 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
57 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
59 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
62 * config/lm32/t-lm32: Add multilib for all CPU options.
64 2011-02-01 Richard Guenther <rguenther@suse.de>
66 PR tree-optimization/47541
67 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
68 sure to have a field at offset zero.
70 2011-01-31 Joseph Myers <joseph@codesourcery.com>
72 * config/arc/arc.opt (EB, EL): New Driver options.
74 2011-01-31 Joseph Myers <joseph@codesourcery.com>
76 * config/alpha/osf5.opt: New.
77 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
79 2011-01-31 Joseph Myers <joseph@codesourcery.com>
81 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
83 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
85 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
87 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
88 is an alias of -floop-interchange and that it requires the
89 Graphite infrastructure.
90 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
91 flag_loop_interchange based on the value of flag_tree_loop_linear.
93 2011-01-31 Jakub Jelinek <jakub@redhat.com>
94 Richard Guenther <rguenther@suse.de>
96 PR tree-optimization/47538
97 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
98 type instead of r1type, except for comparisons. For right
99 shifts and comparisons punt if there are mismatches in
100 sizetype vs. non-sizetype types.
102 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
104 * doc/sourcebuild.texi (Effective-Target Keywords): Document
107 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
109 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
111 * configure: Regenerate.
113 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
115 * configure.ac (gcc_cv_ld_static_option): Define.
116 (gcc_cv_ld_dynamic_option): Define.
117 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
119 (HAVE_LD_STATIC_DYNAMIC): Update message.
120 (LD_STATIC_OPTION): Define.
121 (LD_DYNAMIC_OPTION): Define.
122 * configure: Regenerate.
123 * config.in: Regenerate.
124 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
125 HAVE_LD_STATIC_DYNAMIC]: Use them.
127 2011-01-31 Nick Clifton <nickc@redhat.com>
129 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
130 registers inside interrupt handlers if the handler is not a leaf
133 2011-01-31 Nick Clifton <nickc@redhat.com>
135 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
136 reg_renumber returning an INVALID_REGNUM.
138 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
141 * doc/install.texi: Document host options discarded when cross
142 configuring target libraries.
144 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
147 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
150 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
152 (no_real_insns_p, schedule_block, set_priorities): Drop special
153 treatment of boundary debug insns.
154 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug
156 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
157 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
158 (BOUNDARY_DEBUG_INSN_P): Likewise.
159 (SCHEDULE_DEBUG_INSN_P): Likewise.
160 * sched-rgn.c (init_ready_list): Drop special treatment of
161 boundary debug insns.
162 * final.c (rest_of_clean-state): Clear notes' BB.
164 2011-01-31 Alan Modra <amodra@gmail.com>
166 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
167 toc relative expressions as we do in print_operand_address.
169 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
171 * doc/extend.texi: Follow spelling conventions.
172 * doc/invoke.texi: Fix a typo.
174 2011-01-30 Joseph Myers <joseph@codesourcery.com>
176 * config/hpux11.opt: New.
177 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
178 ia64*-*-hpux*): Use hpux11.opt.
180 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
182 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
185 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
187 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
190 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
192 * doc/install.texi (Binaries): Remove outdated reference for
193 Motorola 68HC11/68HC12 downloads.
195 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
197 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
200 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
203 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
206 2011-01-28 Ahmad Sharif <asharif@google.com>
208 * value-prof.c (check_counter): Corrected error message.
210 2011-01-29 Jie Zhang <jie@codesourcery.com>
212 * config/arm/arm.c (arm_legitimize_reload_address): New.
213 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
214 arm_legitimize_reload_address.
215 * config/arm/arm-protos.h (arm_legitimize_reload_address):
218 2011-01-28 Ian Lance Taylor <iant@google.com>
220 * godump.c (go_define): Ignore macros whose definitions include
221 two adjacent operands.
223 2011-01-28 Jakub Jelinek <jakub@redhat.com>
226 * varasm.c (force_const_mem): Store copy of x in desc->constant
228 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
229 itself into REG_EQUAL note.
231 2011-01-28 Joseph Myers <joseph@codesourcery.com>
233 * config/freebsd.opt (posix, rdynamic): New Driver options.
235 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
237 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
239 * configure: Regenerate.
241 2011-01-27 Joseph Myers <joseph@codesourcery.com>
243 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
244 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
246 2011-01-27 Anatoly Sokolov <aesok@post.ru>
248 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
249 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
250 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
251 (s390_preferred_reload_class): Make static. Change return and
252 'rclass' argument type to reg_class_t.
254 2011-01-27 Jan Hubicka <jh@suse.cz>
257 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
258 (process_function_and_variable_attributes): Check defined weakrefs.
260 2011-01-27 Martin Jambor <mjambor@suse.cz>
262 PR tree-optimization/47228
263 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
264 build_ref_for_offset.
266 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
268 * config/spu/spu-elf.h (ASM_SPEC): Remove.
270 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
272 PR rtl-optimization/46856
273 * postreload.c (reload_combine_recognize_const_pattern): Do not
274 separate cc0 setter and user on cc0 targets.
276 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
279 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
280 passed a VOID_TYPE expression, immediately emit an error and
281 return error_mark_node.
283 2011-01-26 Jeff Law <law@redhat.com>
285 PR rtl-optimization/47464
286 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
287 rather than may_trap_p as needed.
289 2011-01-26 DJ Delorie <dj@redhat.com>
291 PR rtl-optimization/46878
292 * combine.c (insn_a_feeds_b): Check for the implicit cc0
293 setter/user dependency as well.
295 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
297 PR rtl-optimization/44469
298 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
299 after removing trivially dead basic blocks.
301 2011-01-26 Joseph Myers <joseph@codesourcery.com>
303 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
304 * config/frv/frv.h (LINK_SPEC): Likewise.
305 * config/i386/netware.h (LINK_SPEC): Likewise.
306 * config/m68k/linux.h (ASM_SPEC): Likewise.
307 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
308 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
309 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
310 * config/sparc/linux.h (ASM_SPEC): Likewise.
311 * config/sparc/linux64.h (ASM_SPEC): Likewise.
312 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
314 2011-01-26 Joseph Myers <joseph@codesourcery.com>
316 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
317 * config/frv/frv.h (ASM_SPEC): Likewise.
318 * config/m68k/linux.h (ASM_SPEC): Likewise.
319 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
320 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
321 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
322 * config/sparc/linux.h (ASM_SPEC): Likewise.
323 * config/sparc/linux64.h (ASM_SPEC): Likewise.
324 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
326 2011-01-26 Joseph Myers <joseph@codesourcery.com>
328 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
329 * config/frv/frv.h (LINK_SPEC): Likewise.
330 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
332 2011-01-26 Joseph Myers <joseph@codesourcery.com>
334 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
335 * config/frv/frv.h (ASM_SPEC): Likewise.
336 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
337 * config/m68k/linux.h (ASM_SPEC): Likewise.
338 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
339 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
340 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
341 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
342 * config/sparc/linux.h (ASM_SPEC): Likewise.
343 * config/sparc/linux64.h (ASM_SPEC): Likewise.
344 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
345 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
347 2011-01-26 Steve Ellcey <sje@cup.hp.com>
350 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
352 (vec_extract_evenodd_help): Ditto.
353 (vec_extract_evenv4hi): Ditto.
354 (vec_extract_oddv4hi): Ditto.
355 (vec_interleave_lowv2si): Ditto.
356 (vec_interleave_highv2si): Ditto.
357 (vec_extract_evenv2si): Ditto.
358 (vec_extract_oddv2si: Ditto.
359 (vec_pack_trunc_v2si): Ditto.
361 2011-01-22 Jan Hubicka <jh@suse.cz>
364 * cgraph.h (cgraph_local_info): New field can_change_signature.
365 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
366 signature can change.
367 (ipcp_estimate_growth): Call sequence simplify only if calle signature
369 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
370 (cgraph_function_versioning): We can not change signature of functions
371 that don't allow that.
372 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
373 (lto_input_node): Likewise.
374 * ipa-inline.c (compute_inline_parameters): Compute local.can_change_signature.
375 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
376 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on functions
377 that can not change signature.
378 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
379 init_cumulative_args): Do not use local calling conventions for functions
380 that can not change signature.
382 2011-01-22 Jan Hubicka <jh@suse.cz>
384 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
386 2011-01-26 Richard Guenther <rguenther@suse.de>
388 PR tree-optimization/47190
389 * cgraphunit.c (process_common_attributes): New function.
390 (process_function_and_variable_attributes): Use it.
392 2011-01-26 Richard Guenther <rguenther@suse.de>
395 * cgraphbuild.c (record_eh_tables): Record reference to personality
398 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
401 * sel-sched.c (moveup_expr): Don't let debug insns prevent
402 non-debug insns from moving up.
404 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
407 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
408 t-dlldir{,-x} fragment for build and add it to tmake_file.
409 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
410 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
411 * config/i386/t-dlldir: New file.
412 (SHLIB_DLLDIR): Define.
413 * config/i386/t-dlldir-x: New file.
414 (SHLIB_DLLDIR): Define.
415 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
416 (SHLIB_INSTALL): Use it.
418 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
421 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
422 lower bound of the allowed Thumb-2 coprocessor load/store
423 index range to -256. Add explaining comment.
425 2011-01-25 Ian Lance Taylor <iant@google.com>
427 * godump.c (go_define): Improve lexing of macro expansion to only
428 accept expressions which match Go spec.
430 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
433 * tree.c (handle_dll_attribute): Handle it.
434 * doc/extend.texi (@item dllexport): Mention it.
435 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
437 2011-01-25 Ian Lance Taylor <iant@google.com>
439 PR tree-optimization/26854
440 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
441 (decl_jump_unsafe): Move higher in file, with no other change.
442 (bind): Set has_jump_unsafe_decl if appropriate.
443 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
444 (check_earlier_gotos): Likewise.
445 (c_check_switch_jump_warnings): Likewise.
447 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
449 * doc/invoke.texi (Warning Options): Add missing hyphen.
450 (-fprofile-dir): Minor grammatical fixes.
451 (-fbranch-probabilities): Likewise.
453 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
457 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
459 (no_real_insns_p, schedule_block, set_priorities): Drop special
460 treatment of boundary debug insns.
461 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug
463 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
464 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
465 (BOUNDARY_DEBUG_INSN_P): Likewise.
466 (SCHEDULE_DEBUG_INSN_P): Likewise.
467 * sched-rgn.c (init_ready_list): Drop special treatment of
468 boundary debug insns.
469 * final.c (rest_of_clean-state): Clear notes' BB.
471 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
473 * Makefile.in (LAMBDA_H): Removed.
474 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
475 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
476 lambda-trans.o, and tree-loop-linear.o.
477 (lto-symtab.o): Remove dependence on LAMBDA_H.
478 (tree-loop-linear.o): Remove rule.
479 (lambda-mat.o): Same.
480 (lambda-trans.o): Same.
481 (lambda-code.o): Same.
482 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
483 (tree-vect-slp.o): Same.
484 * hwint.h (gcd): Moved here.
485 (least_common_multiple): Same.
486 * lambda-code.c: Removed.
487 * lambda-mat.c: Removed.
488 * lambda-trans.c: Removed.
490 * tree-loop-linear.c: Removed.
491 * lto-symtab.c: Do not include lambda.h.
492 * omega.c (gcd): Removed.
493 * passes.c (init_optimization_passes): Remove pass_linear_transform.
494 * tree-data-ref.c (print_lambda_vector): Moved here.
495 (lambda_vector_copy): Same.
496 (lambda_matrix_copy): Same.
497 (lambda_matrix_id): Same.
498 (lambda_vector_first_nz): Same.
499 (lambda_matrix_row_add): Same.
500 (lambda_matrix_row_exchange): Same.
501 (lambda_vector_mult_const): Same.
502 (lambda_vector_negate): Same.
503 (lambda_matrix_row_negate): Same.
504 (lambda_vector_equal): Same.
505 (lambda_matrix_right_hermite): Same.
506 * tree-data-ref.h: Do not include lambda.h.
507 (lambda_vector): Moved here.
508 (lambda_matrix): Same.
509 (dependence_level): Same.
510 (lambda_transform_legal_p): Removed declaration.
511 (lambda_collect_parameters): Same.
512 (lambda_compute_access_matrices): Same.
513 (lambda_vector_gcd): Same.
514 (lambda_vector_new): Same.
515 (lambda_vector_clear): Same.
516 (lambda_vector_lexico_pos): Same.
517 (lambda_vector_zerop): Same.
518 (lambda_matrix_new): Same.
519 * tree-flow.h (least_common_multiple): Removed declaration.
520 * tree-parloops.c (lambda_trans_matrix): Moved here.
524 (LTM_DENOMINATOR): Same.
525 (lambda_trans_matrix_new): Same.
526 (lambda_matrix_vector_mult): Same.
527 (lambda_transform_legal_p): Same.
528 * tree-pass.h (pass_linear_transform): Removed declaration.
529 * tree-ssa-loop.c (tree_linear_transform): Removed.
530 (gate_tree_linear_transform): Removed.
531 (pass_linear_transform): Removed.
532 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
533 flag_loop_interchange.
535 2011-01-25 Jakub Jelinek <jakub@redhat.com>
537 PR tree-optimization/47265
538 PR tree-optimization/47443
539 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
540 if name still has some uses.
542 2011-01-25 Martin Jambor <mjambor@suse.cz>
544 PR tree-optimization/47382
545 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
546 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
548 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
550 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
551 sjlj_except_unwind_info.
553 2011-01-25 Richard Guenther <rguenther@suse.de>
555 PR tree-optimization/47426
556 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
557 visible functions results escape.
559 2011-01-25 Jakub Jelinek <jakub@redhat.com>
562 * config/arm/arm.c (any_sibcall_uses_r3): New function.
563 (arm_get_frame_offsets): Use it.
565 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
566 Jakub Jelinek <jakub@redhat.com>
568 PR tree-optimization/47271
569 * tree-if-conv.c (bb_postdominates_preds): New.
570 (if_convertible_bb_p): Call bb_postdominates_preds.
571 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
572 (predicate_scalar_phi): Call bb_postdominates_preds.
574 2011-01-25 Nick Clifton <nickc@redhat.com>
576 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
577 * config/rx/rx.c (rx_function_value): Likewise.
578 (rx_promote_function_mode): Likewise.
579 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
580 in order to make it legitimate.
581 * config/rx/rx.md (adddi3_internal): If the second operand is a
582 MEM make sure that the first operand is the same as the result
584 (addsi3_unspec): Delete.
585 (subdi3): Do not accept immediate operands.
586 (subdi3_internal): Likewise.
588 2011-01-25 Jeff Law <law@redhat.com>
590 PR rtl-optimization/37273
591 * ira-costs.c (scan_one_insn): Detect constants living in memory and
592 handle them like argument loads from stack slots. Do not double
593 count memory for memory constants and argument loads from stack slots.
595 2011-01-25 Jakub Jelinek <jakub@redhat.com>
597 PR tree-optimization/47427
598 PR tree-optimization/47428
599 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
600 coalesce if the new root var would be TREE_READONLY.
602 2011-01-25 Richard Guenther <rguenther@suse.de>
605 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
606 correct type for TBAA.
608 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
610 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
611 (close_phi_written_to_memory): Call for_each_index with
612 dr_indices_valid_in_loop.
614 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
616 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
617 when it is initialized.
619 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
621 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
622 call to graphite_find_data_references_in_stmt.
623 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
624 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
625 call to graphite_find_data_references_in_stmt.
626 (analyze_drs_in_stmts): Same.
627 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
628 in which the scalar analysis of indices is performed.
629 (create_data_ref): Same. Update call to dr_analyze_indices.
630 (find_data_references_in_stmt): Update call to create_data_ref.
631 (graphite_find_data_references_in_stmt): Same.
632 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
634 (create_data_ref): Same.
635 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
636 call to create_data_ref.
638 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
640 * graphite-sese-to-poly.c (build_poly_scop): Move
641 rewrite_commutative_reductions_out_of_ssa before
642 find_scop_parameters.
644 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
646 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
647 VAR_DECL, PARM_DECL, and RESULT_DECL.
649 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
651 * graphite-dependences.c (reduction_dr_1): Allow several reductions
653 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
654 that have already been marked as PBB_IS_REDUCTION.
656 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
658 * graphite-scop-detection.c (same_close_phi_node): New.
659 (remove_duplicate_close_phi): New.
660 (make_close_phi_nodes_unique): New.
661 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
663 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
665 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
666 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
667 of both data references to be the same.
669 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
671 * graphite-dependences.c (build_lexicographical_constraint): Remove the
673 (build_lexicographical_constraint): Adjust call to ppl_powerset_is_empty.
674 (dependence_polyhedron): Same.
675 (graphite_legal_transform_dr): Same.
676 (graphite_carried_dependence_level_k): Same.
677 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params parameter.
678 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
680 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
682 * graphite-sese-to-poly.c
683 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
684 (close_phi_written_to_memory): New.
685 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
688 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
690 * doc/install.texi: Update the expected version number of PPL to 0.11.
691 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
692 #if PPL_VERSION_MINOR < 11.
694 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
696 * graphite-dependences.c: Include graphite-cloog-util.h.
697 (new_poly_ddr): Inlined into dependence_polyhedron.
698 (free_poly_ddr): Moved close by new_poly_ddr.
699 (dependence_polyhedron_1): Renamed dependence_polyhedron.
700 Early return NULL when ppl_powerset_is_empty returns true.
701 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
702 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
703 (graphite_legal_transform_dr): Call new_poly_ddr.
704 (graphite_carried_dependence_level_k): Same.
705 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
706 (dot_transformed_deps_stmt_1): Removed.
707 (dot_deps_stmt_1): Call dot_deps_stmt_2.
708 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
709 (dot_deps_1): Call dot_deps_2.
710 * Makefile.in (graphite-dependences.o): Add missing dependence on
711 graphite-cloog-util.h.
713 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
715 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
716 (build_lexicographical_constraint): Same.
717 (dependence_polyhedron_1): Same.
718 (graphite_legal_transform_dr): Same.
719 (graphite_carried_dependence_level_k): Same.
720 * graphite-ppl.c (ppl_powerset_is_empty): New.
721 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
722 * tree-data-ref.c (dump_data_reference): Print the basic block index.
724 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
726 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
727 the "a followed by b" relation and document it.
729 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
731 * graphite-dependences.c (build_lexicographical_constraint): Stop the
732 iteration when the bag of constraints is empty.
734 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
736 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
738 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
740 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
741 nest and two loop depths as parameters.
742 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
745 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
747 * graphite-dependences.c (print_pddr): Call
748 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
750 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
752 * graphite-ppl.c (debug_gmp_value): New.
753 * graphite-ppl.h (debug_gmp_value): Declared.
755 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
757 * doc/install.texi: Document availability of cloog-0.16.
759 2011-01-25 Vladimir Kargov <kargov@gmail.com>
761 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
762 invalid postdominance info.
764 2011-01-24 Jan Hubicka <jh@suse.cz>
767 * doc/extend.texi (weak pragma): Drop claim that it must
768 appear before definition.
769 * varasm.c (merge_weak, declare_weak): Only sanity check
770 that DECL is not output at a time it is declared weak.
772 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
774 * machmode.def: Fixed comments.
776 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
778 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
780 2011-01-24 Paul Koning <ni1d@arrl.net>
782 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
785 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
788 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
789 (block_info): Add scanned and prev.
790 (move_or_delete_vzeroupper_2): Return if the basic block
791 has been scanned and the upper 128bit state is unchanged
793 (move_or_delete_vzeroupper_1): Return true if the exit
795 (move_or_delete_vzeroupper): Visit basic blocks using the
796 work-list based algorithm based on vt_find_locations in
799 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
801 2011-01-24 Nick Clifton <nickc@redhat.com>
803 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
804 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
805 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
806 then define __v850e1__.
807 * doc/invoke.texi: Document -mv850es.
809 2011-01-24 Richard Henderson <rth@redhat.com>
811 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
812 compound unordered comparisons.
813 * config/rx/rx.c (rx_split_fp_compare): Remove.
814 * config/rx/rx-protos.h: Update.
815 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
816 (cbranchsf4): Don't call rx_split_fp_compare.
817 (*cbranchsf4): Use rx_split_cbranch.
818 (*cmpsf): Don't accept "i" constraint.
819 (*conditional_branch): Only valid after reload.
820 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
822 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
825 * config/rs6000/altivec.md (vector constant splitters): Add
826 support for creating vector single precision constants if -mvsx is
827 used and we would create the constant using Altivec primitives.
829 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
830 Richard Sandiford <rdsandiford@googlemail.com>
832 PR rtl-optimization/47166
833 * reload1.c (emit_reload_insns): Disable the spill_reg_store
834 mechanism for PRE_MODIFY and POST_MODIFY.
835 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
838 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
840 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
842 2011-01-22 Jan Hubicka <jh@suse.cz>
845 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
847 2011-01-22 Jan Hubicka <jh@suse.cz>
849 PR tree-optimization/43884
851 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
852 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
854 2011-01-22 Anatoly Sokolov <aesok@post.ru>
856 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
857 * config/s390/s390.c (s390_register_move_cost,
858 s390_memory_move_cost): New.
859 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
861 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
864 * except.c (sjlj_assign_call_site_values): Move setting the
865 crtl->uses_eh_lsda flag to ...
866 (sjlj_mark_call_sites): ... here.
867 (sjlj_emit_function_enter): Support NULL dispatch label.
868 (sjlj_build_landing_pads): In a function with no landing pads
869 that still has must-not-throw regions, generate code to register
870 a personality function with empty LSDA.
872 2011-01-21 Richard Henderson <rth@redhat.com>
874 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
876 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
878 * compare-elim.c: New file.
879 * Makefile.in (OBJS-common): Add it.
880 (compare-elim.o): New.
881 * common.opt (fcompare-elim): New.
882 * opts.c (default_options_table): Add OPT_fcompare_elim.
883 * tree-pass.h (pass_compare_elim_after_reload): New.
884 * passes.c (init_optimization_passes): Add it.
885 * recog.h: Protect against re-inclusion.
886 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
887 * doc/invoke.texi (-fcompare-elim): Document it.
888 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
889 * doc/tm.texi: Rebuild.
891 2011-01-22 Nick Clifton <nickc@redhat.com>
893 * config/rx/rx.md (cstoresf4): Pass comparison operator to
896 2011-01-22 Nick Clifton <nickc@redhat.com>
898 * config/rx/rx.md (UNSPEC_CONST): New.
899 (deallocate_and_return): Wrap the amount popped off the stack in
900 an UNSPEC_CONST in order to stop it being rejected by
902 (pop_and_return): Add a "(return)" rtx.
903 (call): Drop the immediate operand.
904 (call_internal): Likewise.
905 (call_value): Likewise.
906 (call_value_internal): Likewise.
907 (sibcall_internal): Likewise.
908 (sibcall_value_internal): Likewise.
909 (sibcall): Likewise. Generate an explicit call using
911 (sibcall_value): Likewise.
912 (mov<>): FAIL if a constant operand is not legitimate.
913 (addsi3_unpsec): New pattern.
915 * config/rx/rx.c (rx_print_operand_address): Handle UNPSEC
917 (ok_for_max_constant): New function.
918 (gen_safe_add): New function.
919 (rx_expand_prologue): Use gen_safe_add.
920 (rx_expand_epilogue): Likewise.
921 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
924 2011-01-21 Jeff Law <law@redhat.com>
926 PR tree-optimization/47053
927 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
928 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
929 statements are deleted.
930 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
931 is nonempty, then purge dead edges and cleanup the CFG.
933 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
937 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
939 * tree-dfa.c (create_var_ann): Mark variable as used.
941 2011-01-21 Jakub Jelinek <jakub@redhat.com>
944 * except.c (convert_to_eh_region_ranges): Emit queued no-region
945 notes from other section in hot/cold partitioning even if
946 last_action is -3. Increment call_site_base.
948 PR rtl-optimization/47366
949 * fwprop.c (forward_propagate_into): Return bool. If
950 any changes are made, -fnon-call-exceptions is used and
951 REG_EH_REGION note is present, call purge_dead_edges
952 and return true if it purged anything.
953 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
954 any EH edges were purged.
956 2011-01-21 Jeff Law <law@redhat.com>
958 PR rtl-optimization/41619
959 * caller-save.c (setup_save_areas): Break out code to determine
960 which hard regs are live across calls by examining the reload chains
961 so that it is always used.
962 Eliminate code which checked REG_N_CALLS_CROSSED.
964 2011-01-21 Jakub Jelinek <jakub@redhat.com>
966 PR tree-optimization/47355
967 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
968 NOP has non-debug uses beyond PHIs in new_bb.
970 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
973 * cfgexpand.c (account_used_vars_for_block): Only account vars
974 that are annotated as used.
975 (estimated_stack_frame_size): Don't set TREE_USED.
976 * tree-dfa.c (create_var_ann): Mark variable as used.
978 2011-01-21 Richard Guenther <rguenther@suse.de>
981 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
983 2011-01-21 Richard Guenther <rguenther@suse.de>
985 PR tree-optimization/47365
986 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
987 (vn_reference_lookup_pieces): Adjust.
988 (vn_reference_lookup): Likewise.
989 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
990 (vn_reference_lookup_3): Only look through kills if in
992 (vn_reference_lookup_pieces): Adjust.
993 (vn_reference_lookup): Likewise.
994 (visit_reference_op_load): Likewise.
995 (visit_reference_op_store): Likewise.
996 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
997 (compute_avail): Likewise.
998 (eliminate): Likewise.
1000 2011-01-21 Jakub Jelinek <jakub@redhat.com>
1002 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
1003 DECL_IGNORED_P non-reg vars if they are used.
1005 PR tree-optimization/47391
1006 * varpool.c (const_value_known_p): Return false if
1009 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
1012 * config/i386/i386.c (ix86_local_alignment): Handle
1013 case for va_list_type_node is nil.
1014 (ix86_canonical_va_list_type): Likewise.
1016 2011-01-21 Alan Modra <amodra@gmail.com>
1018 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
1019 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
1021 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1023 * config/arm/arm.md (define_attr type): Rename f_load
1024 and f_store to f_fpa_load and f_fpa_store. Update.
1025 (write_conflict): Deal with rename fallout.
1026 (*push_fp_multi): Likewise.
1027 * config/arm/fpa.md (f_load): Use f_fpa_load.
1028 (f_store): Use f_fpa_store.
1029 (*movsf_fpa): Likewise.
1030 (*movdf_fpa): Likewise.
1031 (*movxf_fpa): Likewise.
1032 (*thumb2_movsf_fpa): Likewise.
1033 (*thumb2_movdf_fpa): Likewise.
1034 (*thumb2_movxf_fpa): Likewise.
1035 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
1036 f_loadd and f_stored.
1037 (*thumb2_movdi_vfp): Likewise.
1038 (*thumb2_movsf_vfp): Fix attribute to f_loads.
1039 (*thumb2_movsi_vfp): Likewise.
1040 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
1041 Use f_loads instead of f_load.
1042 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
1044 2011-01-20 Anatoly Sokolov <aesok@post.ru>
1046 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1047 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
1048 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1049 (xtensa_mode_dependent_address_p): New function.
1050 (constantpool_address_p): Make static. Change return type to bool.
1051 Change argument type to const_rtx. Use CONST_INT_P predicate.
1053 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
1056 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
1058 2011-01-20 Jakub Jelinek <jakub@redhat.com>
1061 * cfgexpand.c (expand_debug_expr): Instead of generating
1062 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
1065 2011-01-20 Richard Guenther <rguenther@suse.de>
1068 * tree-inline.c (remap_gimple_op_r): Recurse manually for
1069 the pointer operand of MEM_REFs.
1071 2011-01-20 Jakub Jelinek <jakub@redhat.com>
1073 PR tree-optimization/46130
1074 * ipa-split.c (consider_split): If return_bb contains non-virtual
1075 PHIs other than for retval or if split_function would not adjust it,
1078 2011-01-20 Richard Guenther <rguenther@suse.de>
1080 PR tree-optimization/47167
1081 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
1082 Revert previous change, only avoid enumeral type changes.
1084 2011-01-19 Mike Stump <mikestump@comcast.net>
1086 * doc/tm.texi.in (BRANCH_COST): Englishify.
1087 * doc/tm.texi (BRANCH_COST): Likewise.
1089 2011-01-19 Dodji Seketeli <dodji@redhat.com>
1092 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
1093 (gen_scheduled_generic_parms_dies): New functions.
1094 (gen_struct_or_union_type_die): Schedule template parameters DIEs
1095 generation for the end of CU compilation.
1096 (dwarf2out_finish): Generate template parameters DIEs here.
1098 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
1101 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
1102 debug bind stmt on merge edges.
1104 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
1108 * function.c (instantiate_expr): Instantiate incoming rtl of
1109 implicit arguments, and recurse on VALUE_EXPRs.
1110 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
1111 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
1113 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
1115 * c-parser.c (c_parser_for_statement): Initialize
1116 collection_expression.
1118 2011-01-19 Joseph Myers <joseph@codesourcery.com>
1120 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
1122 2011-01-19 Joseph Myers <joseph@codesourcery.com>
1124 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
1125 (LINK_SHLIB_SPEC): Don't use %(link_path).
1126 (SUBTARGET_EXTRA_SPECS): Remove link_path.
1128 2011-01-19 Joseph Myers <joseph@codesourcery.com>
1130 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
1131 (NO_SHARED_LIB_SUPPORT): Remove.
1132 (LINK_SHLIB_SPEC): Remove one conditional definition.
1134 2011-01-19 Joseph Myers <joseph@codesourcery.com>
1136 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
1138 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
1139 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
1140 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
1141 %{call_shared} and conditionals on these options not being passed.
1142 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
1145 2011-01-19 Jakub Jelinek <jakub@redhat.com>
1147 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
1150 * ipa-split.c: Spelling fixes.
1152 2011-01-19 Richard Henderson <rth@redhat.com>
1154 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
1155 (*mulsi3): Likewise.
1157 * longlong.h [__mn10300__] (count_leading_zeros): New.
1158 [__mn10300__] (umul_ppmm, smul_ppmm): New.
1159 [__mn10300__] (add_ssaaaa, subddmmss): New.
1160 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
1161 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
1163 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1165 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
1167 2011-01-19 Richard Henderson <rth@redhat.com>
1169 * config/mn10300/mn10300.md (addsi3_flags): New.
1170 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
1171 (subsi3_flags, subc_internal, subdi3): New.
1172 (subdi3_internal, *subdi3_degenerate): New.
1173 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
1175 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
1176 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
1177 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
1178 * config/mn10300/mn10300-protos.h: Update.
1179 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
1180 (return_ret): Likewise. Rename from return_internal_regs.
1181 (return_internal): Remove.
1183 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
1184 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
1185 (mn10300_legitimate_constant_p): Likewise.
1186 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
1187 (mn10300_frame_size): New.
1188 (mn10300_expand_prologue): Use it.
1189 (mn10300_expand_epilogue): Likewise.
1190 (mn10300_initial_offset): Likewise.
1191 * config/mn10300/mn10300-protos.h: Update.
1192 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
1193 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
1194 (prologue, epilogue, return_internal): Tidy output code.
1195 (mn10300_store_multiple_operation, return): Likewise.
1196 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
1197 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
1198 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
1199 (load_pic, am33_load_pic): New.
1200 (mn10300_load_pic0, mn10300_load_pic1): New.
1202 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
1203 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
1204 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
1205 (cc_flags_for_mode, cc_flags_for_code): New.
1206 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
1207 overflow flag is not valid. Validate that the flags we need
1208 for the comparison are valid.
1209 (mn10300_output_cmp): Remove.
1210 (mn10300_output_add): New.
1211 (mn10300_select_cc_mode): Use cc_flags_for_code.
1212 (mn10300_split_cbranch): New.
1213 (mn10300_match_ccmode): New.
1214 (mn10300_split_and_operand_count): New.
1215 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
1217 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
1218 (addsi3): ... here. Use mn10300_output_add.
1219 (*addsi3_flags): New.
1220 (*am33_subsi3, *mn10300_subsi3): Merge...
1221 (subsi3): ... here. Use attribute isa.
1222 (*subsi3_flags): New.
1223 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
1225 (*am33_andsi3, *mn10300_andsi3): Merge...
1227 (*andsi3_flags): New.
1228 (andsi3 splitters): New.
1229 (*am33_iorsi3, *mn10300_iorsi3): Merge...
1231 (*iorsi3_flags): New.
1232 (*am33_xorsi3, *mn10300_xorsi3): Merge...
1234 (*xorsi3_flags): New.
1235 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
1236 (one_cmplsi2): ... here.
1237 (*one_cmplsi2_flags): New.
1238 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
1239 instead of "dax" in constraints. Use mn10300_split_cbranch.
1240 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
1241 use matching constraints to eliminate a self-comparison.
1242 (*integer_conditional_branch): Rename from integer_conditional_branch.
1243 Use int_mode_flags to match CC_REG.
1244 (*cbranchsi4_btst, *btstsi): New.
1245 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
1246 mn10300_split_cbranch.
1247 (*am33_cmpsf): Rename from am33_cmpsf.
1248 (*float_conditional_branch): Rename from float_conditional_branch.
1249 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
1250 (zero_extendqisi2): ... here.
1251 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
1252 (zero_extendhisi2): ... here.
1253 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
1254 (extendqisi2): ... here.
1255 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
1256 (extendhisi2): ... here.
1257 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
1258 (ashlsi3): ... here.
1259 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
1260 (lshrsi3): ... here.
1261 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
1262 (ashrsi3): ... here.
1263 (consecutive add peephole): Remove.
1264 * config/mn10300/predicates.md (label_ref_operand): New.
1265 (int_mode_flags): New.
1266 (CCZN_comparison_operator): New.
1268 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
1269 (throughput_42_latency_43): New reservation.
1270 (mulsidi3, umulsidi3): New expanders.
1271 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
1272 the MDR register to allocation; separately allocate the low and
1273 high parts of the DImode result.
1274 (umulsidi3_internal): Similarly.
1275 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
1276 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
1277 (udivsi3, umodsi3): Remove.
1278 (udivmodsi4, divmodsi4): New expanders.
1279 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
1280 (*divmodsi4): Simiarly.
1281 (ext_internal): New.
1283 * config/mn10300/constraints.md ("z"): New constraint.
1284 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
1285 (FIXED_REGISTERS): Don't fix MDR.
1286 (CALL_USED_REGSITERS): Reformat nicely.
1287 (REG_ALLOC_ORDER): Add MDR.
1288 (enum regclass): Add MDR_REGS.
1289 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
1290 (IRA_COVER_CLASSES): Add MDR_REGS.
1291 (REGNO_REG_CLASS): Handle MDR_REG.
1292 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
1293 (mn10300_register_move_cost): Likewise.
1294 * config/mn10300/mn10300.md (MDR_REG): New.
1295 (*movsi_internal): Handle moves to/from MDR_REGS.
1297 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
1299 (mn10300_secondary_reload): Tidy combination reload classes.
1300 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
1301 addresses for AM33. Allow symbolic offsets for reg+imm.
1302 (mn10300_regno_in_class_p): New.
1303 (mn10300_legitimize_reload_address): New.
1304 * config/mn10300/mn10300.h (enum reg_class): Remove
1305 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
1306 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
1308 (REG_CLASS_NAMES): Update to match.
1309 (REG_CLASS_CONTENTS): Likewise.
1310 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
1311 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
1312 (REGNO_IN_RANGE_P): Remove.
1313 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
1314 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
1315 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
1316 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
1317 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
1318 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
1319 (REGNO_GENERAL_P): New.
1320 (HAVE_POST_MODIFY_DISP): New.
1321 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
1322 (LEGITIMIZE_RELOAD_ADDRESS): New.
1323 * config/mn10300/mn10300-protos.h: Update.
1325 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
1326 DATA_REGS for AM33 stack-pointer destination.
1327 (mn10300_preferred_output_reload_class): Likewise.
1328 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
1329 into a form appropriate for ...
1330 (TARGET_SECONDARY_RELOAD): New.
1331 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
1332 * config/mn10300/mn10300-protos.h: Update.
1333 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
1334 reload_insi; use the "A" constraint for the scratch; handle AM33
1335 moves of sp to non-address registers.
1337 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
1338 (*movqi_internal): ... here.
1339 (*am33_movhi, *mn10300_movhi): Merge into...
1340 (*movhi_internal): ... here.
1341 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
1342 as the source/destination of moves from/to SP.
1343 (movsf): Only allow for AM33-2.
1344 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
1345 any integer constant constraint. Only allow for AM33-2. Tidy
1346 all of the alternative outputs.
1347 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
1348 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
1350 (udivsi3, umodsi3): New patterns for MN103 only.
1352 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
1354 * doc/tm.texi.in: Spell out that a lack of register class unions
1356 * doc/tm.texi: Regenerate.
1358 2011-01-19 Jakub Jelinek <jakub@redhat.com>
1360 PR rtl-optimization/47337
1361 * dce.c (check_argument_store): New function.
1362 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
1364 PR tree-optimization/47290
1365 * tree-eh.c (infinite_empty_loop_p): New function.
1366 (cleanup_empty_eh): Use it.
1368 2011-01-18 Steve Ellcey <sje@cup.hp.com>
1371 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
1372 (a64_expand_widen_sum): Ditto.
1373 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
1374 (vec_extract_evenodd_help): Ditto.
1375 (vec_extract_evenv4hi): Ditto.
1376 (vec_extract_oddv4hi): Ditto.
1377 (vec_extract_evenv2si): Ditto.
1378 (vec_extract_oddv2si): Ditto.
1379 (vec_extract_evenv2sf): Ditto.
1380 (vec_extract_oddv2sf): Ditto.
1381 (vec_pack_trunc_v4hi: Ditto.
1382 (vec_pack_trunc_v2si): Ditto.
1383 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
1384 (vec_interleave_highv8qi): Ditto.
1386 (vec_extract_oddv8qi): Ditto.
1387 (vec_interleave_lowv4hi): Ditto.
1388 (vec_interleave_highv4hi): Ditto.
1389 (vec_interleave_lowv2si): Ditto.
1390 (vec_interleave_highv2si): Ditto.
1392 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1394 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
1395 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
1396 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
1397 (pa_c_mode_for_suffix): New.
1398 (TARGET_EXPAND_BUILTIN): Define.
1399 (TARGET_C_MODE_FOR_SUFFIX): Define.
1400 (pa_builtins): Define.
1401 (pa_init_builtins): Register __float128 type and init new support
1403 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
1404 * config/pa/quadlib.c (_U_Qfcopysign): New.
1406 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
1409 * explow.c (allocate_dynamic_stack_space): Do not assume more than
1410 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
1413 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1415 PR tree-optimization/47179
1416 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
1417 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
1419 2011-01-18 Richard Guenther <rguenther@suse.de>
1421 PR rtl-optimization/47216
1422 * emit-rtl.c: Include tree-flow.h.
1423 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
1424 of replicating it with different semantics.
1425 * Makefile.in (emit-rtl.o): Adjust.
1427 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1429 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually
1431 (cortex_a9_dp): Handle neon types correctly.
1433 2011-01-18 Jakub Jelinek <jakub@redhat.com>
1435 PR rtl-optimization/47299
1436 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
1437 subtarget. Use normal multiplication if both operands are
1439 * expmed.c (expand_widening_mult): Don't try to optimize constant
1440 multiplication if op0 has VOIDmode. Convert op1 constant to mode
1443 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1445 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
1446 spacing after 'e.g.', typos, comma, hyphenation.
1448 2011-01-17 Richard Henderson <rth@redhat.com>
1450 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
1451 (rx_restricted_mem_operand): New.
1452 (rx_shift_operand): Use register_operand.
1453 (rx_source_operand, rx_compare_operand): Likewise.
1454 * config/rx/rx.md (addsi3_flags): New expander.
1455 (adddi3): Rewrite as expander.
1456 (adc_internal, *adc_flags, adddi3_internal): New patterns.
1457 (subsi3_flags): New expander.
1458 (subdi3): Rewrite as expander.
1459 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
1461 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
1462 (rx_init_builtins): Remove sat builtin.
1463 (rx_expand_builtin): Likewise.
1464 * config/rx/rx.md (ssaddsi3): New.
1465 (*sat): Rename from sat. Represent the CC_REG input.
1467 * config/rx/predicates.md (rshift_operator): New.
1468 * config/rx/rx.c (rx_expand_insv): Remove.
1469 * config/rx/rx-protos.h: Update.
1470 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
1471 operand to the canonical position.
1472 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
1473 (*bitclr, *bitclr_in_memory): Similarly.
1474 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
1475 (insv): Retain the zero_extract in the expansion.
1477 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
1478 (bswaphi2, bitinvert, revw): Likewise.
1480 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
1481 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
1482 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
1483 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
1484 (bitset, bitset_in_memory): Likewise.
1485 (bitinvert, bitinvert_in_memory): Likewise.
1486 (bitclr, bitclr_in_memory): Likewise.
1487 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
1488 (rx_strend, rx_cmpstrn): Likewise.
1489 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
1490 (bitop peep2 patterns): Remove.
1492 * config/rx/rx.c (rx_match_ccmode): New.
1493 * config/rx/rx-protos.h: Update.
1494 * config/rx/rx.md (abssi2): Clobber, don't set flags.
1495 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
1496 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
1497 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
1498 (fix_truncsfsi2, floatsisf2): Likewise.
1499 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
1500 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
1501 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
1502 (*subsi3_flags, *xorsi3_flags): New.
1504 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
1506 * config/rx/rx.c (rx_print_operand): Remove workaround for
1507 unsplit comparison operations.
1509 * config/rx/rx.md (movsicc): Split after reload.
1510 (*movsicc): Merge *movsieq and *movsine via match_operator.
1511 (*stcc): New pattern.
1513 * config/rx/rx.c (rx_float_compare_mode): Remove.
1514 * config/rx/rx.h (rx_float_compare_mode): Remove.
1515 * config/rx/rx.md (cstoresi4): Split after reload.
1516 (*sccc): New pattern.
1518 * config/rx/predicates.md (label_ref_operand): New.
1519 (rx_z_comparison_operator): New.
1520 (rx_zs_comparison_operator): New.
1521 (rx_fp_comparison_operator): New.
1522 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
1523 Validate that the flags are set properly for the comparison.
1524 (rx_gen_cond_branch_template): Remove.
1525 (rx_cc_modes_compatible): Remove.
1526 (mode_from_flags): New.
1527 (flags_from_code): Rename from flags_needed_for_conditional.
1528 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
1529 (rx_select_cc_mode): Likewise.
1530 (rx_split_fp_compare): New.
1531 (rx_split_cbranch): New.
1532 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
1533 (*cbranchsi4): Use match_operator and rx_split_cbranch.
1534 (*cbranchsf4): Similarly.
1535 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
1536 match_operator and rx_split_cbranch.
1537 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
1538 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
1539 (*cmpsi): Rename from cmpsi.
1540 (*tstsi): Rename from tstsi.
1541 (*cmpsf): Rename from cmpsf; use CC_Fmode.
1542 (*conditional_branch): Rename from conditional_branch.
1543 (*reveresed_conditional_branch): Remove.
1544 (b<code>): Remove expander.
1545 * config/rx/rx-protos.h: Update.
1547 * config/rx/rx.c (rx_compare_redundant): Remove.
1548 * config/rx/rx.md (cmpsi): Don't use it.
1549 * config/rx/rx-protos.h: Update.
1551 * config/rx/rx-modes.def (CC_F): New mode.
1552 * config/rx/rx.c (rx_select_cc_mode): New.
1553 * config/rx/rx.h (SELECT_CC_MODE): Use it.
1554 * config/rx/rx-protos.h: Update.
1556 2011-01-17 Richard Henderson <rth@redhat.com>
1558 * except.c (dump_eh_tree): Fix stray ; after for statement.
1560 2011-01-17 Richard Guenther <rguenther@suse.de>
1562 PR tree-optimization/47313
1563 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
1564 handling before copying the body. Properly deal with
1565 by-reference result in SSA form.
1567 2011-01-17 Ian Lance Taylor <iant@google.com>
1570 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
1571 (struct_value_alias_set): Don't define.
1572 (sparc_option_override): Don't set sparc_sr_alias_set and
1573 struct_value_alias_set.
1574 (save_or_restore_regs): Use gen_frame_mem rather than calling
1576 (sparc_struct_value_rtx): Likewise.
1578 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
1581 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
1583 (_mm_maskstore_pd): Likewise.
1584 (_mm_maskload_ps): Likewise.
1585 (_mm_maskstore_ps): Likewise.
1586 (_mm256_maskload_pd): Change mask to __m256i.
1587 (_mm256_maskstore_pd): Likewise.
1588 (_mm256_maskload_ps): Likewise.
1589 (_mm256_maskstore_ps): Likewise.
1591 * config/i386/i386-builtin-types.def: Updated.
1592 (ix86_expand_special_args_builtin): Likewise.
1594 * config/i386/i386.c (bdesc_special_args): Update
1595 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
1596 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
1597 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
1598 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
1600 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
1601 Use <avxpermvecmode> on mask register.
1602 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
1604 2011-01-17 Olivier Hainque <hainque@adacore.com>
1605 Michael Haubenwallner <michael.haubenwallner@salomon.at>
1606 Eric Botcazou <ebotcazou@adacore.com>
1609 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
1610 if <= USHRT_MAX in 32-bit mode.
1612 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1614 * doc/install.texi (Configuration, Specific): Wrap long
1615 lines in examples. Allow line wrapping in long options
1616 and URLs where beneficial for PDF output.
1618 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
1620 * config/mips/mips.c (mips_classify_symbol): Don't return
1621 SYMBOL_PC_RELATIVE for nonlocal labels.
1623 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
1625 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
1627 2011-01-15 Jan Hubicka <jh@suse.cz>
1629 PR tree-optimization/47276
1630 * ipa.c (function_and_variable_visibility): Do not try to mark alias
1631 declarations as needed.
1633 2011-01-15 Martin Jambor <mjambor@suse.cz>
1635 * common.opt (fdevirtualize): New flag.
1636 * doc/invoke.texi (Option Summary): Document it.
1637 * opts.c (default_options_table): Add devirtualize flag.
1638 * ipa-prop.c (detect_type_change): Return immediately if
1639 devirtualize flag is not set.
1640 (detect_type_change_ssa): Likewise.
1641 (compute_known_type_jump_func): Likewise.
1642 (ipa_analyze_virtual_call_uses): Likewise.
1644 2011-01-14 Martin Jambor <mjambor@suse.cz>
1646 PR tree-optimization/45934
1647 PR tree-optimization/46302
1648 * ipa-prop.c (type_change_info): New type.
1649 (stmt_may_be_vtbl_ptr_store): New function.
1650 (check_stmt_for_type_change): Likewise.
1651 (detect_type_change): Likewise.
1652 (detect_type_change_ssa): Likewise.
1653 (compute_complex_assign_jump_func): Check for dynamic type change.
1654 (compute_complex_ancestor_jump_func): Likewise.
1655 (compute_known_type_jump_func): Likewise.
1656 (compute_scalar_jump_functions): Likewise.
1657 (ipa_analyze_virtual_call_uses): Likewise.
1658 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
1660 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1662 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
1663 * config/i386/i386.opt (msse5): New Alias.
1665 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1667 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
1668 * config/sparc/linux64.h (CC1_SPEC): Likewise.
1669 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1670 * config/sparc/sparc.h (CC1_SPEC): Likewise.
1672 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1674 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
1676 * config/sparc/linux64.h (CC1_SPEC): Likewise.
1677 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1678 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
1679 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
1681 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
1683 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1685 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or
1688 2011-01-14 Mike Stump <mikestump@comcast.net>
1690 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
1691 * config/fr30/fr30.md: Likweise
1692 (movsi_push): Likewise.
1693 (movsi_pop): Likewise.
1694 (enter_func): Likewise.
1695 * config/moxie/moxie.md (movsi_push): Likewise.
1696 (movsi_pop): Likewise.
1698 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1700 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
1701 %{no_archive} %{exact_version}.
1702 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
1703 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
1704 %{no_archive} %{exact_version}.
1705 * config/mips/openbsd.h (LINK_SPEC): Likewise.
1706 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
1707 * config/mips/vxworks.h: Likewise.
1709 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1711 * config/microblaze/microblaze.h (ASM_SPEC): Remove
1714 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1716 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
1717 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
1719 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1721 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
1724 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1726 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
1728 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
1729 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
1731 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
1732 Don't handle -shlib.
1734 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1736 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
1737 (CC1_SPEC): Don't handle -profile.
1739 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1741 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
1742 * config/mips/mips.h (CC1_SPEC): Likewise.
1744 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1746 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
1747 * config/mips/mips.h (CC1_SPEC): Likewise.
1749 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1751 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
1752 * config/m32r/linux.h (LINK_SPEC): Likewise.
1753 * config/mips/linux.h (LINK_SPEC): Likewise.
1754 * config/mips/linux64.h (LINK_SPEC): Likewise.
1755 * config/sparc/linux.h (LINK_SPEC): Likewise.
1756 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1757 LINK_SPEC): Likewise.
1758 * config/xtensa/linux.h (LINK_SPEC): Likewise.
1760 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1762 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
1764 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
1766 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1768 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
1769 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
1771 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1773 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
1775 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1777 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
1778 supports -Bstatic/-Bdynamic.
1779 * configure: Regenerate.
1781 2011-01-14 Jan Hubicka <jh@suse.cz>
1782 Jack Howarth <howarth@bromo.med.uc.edu>
1785 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
1786 when checking debug_info_level. Test write_symbols instead of
1787 debug_hooks->var_location when setting flag_var_tracking_uninit.
1789 2011-01-14 Richard Guenther <rguenther@suse.de>
1791 PR tree-optimization/47179
1792 * target.def (ref_may_alias_errno): New target hook.
1793 * targhooks.h (default_ref_may_alias_errno): Declare.
1794 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
1795 (default_ref_may_alias_errno): New function.
1796 * target.h (struct ao_ref_s): Declare.
1797 * tree-ssa-alias.c: Include target.h.
1798 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
1799 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
1800 (targhooks.o): Likewise.
1801 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
1802 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
1804 2011-01-14 Richard Guenther <rguenther@suse.de>
1806 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
1808 2011-01-14 Richard Guenther <rguenther@suse.de>
1810 PR tree-optimization/47280
1811 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
1813 (tree_ssa_forward_propagate_single_use_vars): Deal with
1814 CFG changes from associate_plusminus.
1816 2011-01-14 Richard Guenther <rguenther@suse.de>
1820 2011-01-11 Richard Guenther <rguenther@suse.de>
1822 PR tree-optimization/46076
1823 * tree-ssa.c (useless_type_conversion_p): Conversions from
1824 unprototyped to empty argument list function types are useless.
1826 2011-01-14 Richard Guenther <rguenther@suse.de>
1828 PR tree-optimization/47286
1829 * tree-ssa-structalias.c (new_var_info): Register variables are global.
1831 2011-01-14 Martin Jambor <mjambor@suse.cz>
1834 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
1836 2011-01-13 Anatoly Sokolov <aesok@post.ru>
1838 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
1839 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1840 * config/xtensa/xtensa.c (xtensa_libcall_value,
1841 xtensa_function_value_regno_p): New functions.
1842 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
1844 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
1847 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
1849 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
1850 New function prototype.
1851 * config/i386/winnt.c (i386_pe_assemble_visibility):
1852 Warn only if attribute was specified by user.
1854 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1857 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
1859 (floatunsdidf2_fcfidu): Ditto.
1861 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1863 * config/s390/s390.c (print_operand_address): Replace 'error' with
1864 'output_operand_lossage'.
1865 (print_operand): Likewise.
1867 2011-01-13 Jeff Law <law@redhat.com>
1869 PR rtl-optimization/39077
1870 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
1871 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
1872 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
1873 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
1874 * gcse.c (prune_insertions_deletions): New function.
1875 (compute_pre_data): Use it.
1877 2011-01-13 Dodji Seketeli <dodji@redhat.com>
1880 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
1882 (prune_unused_types_mark): Use it.
1884 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
1886 PR rtl-optimization/45352
1887 * sel-sched.c: Update copyright years.
1888 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1889 in the advancing loop when we have issued issue_rate insns.
1891 2011-01-12 Richard Henderson <rth@redhat.com>
1893 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
1894 (TARGET_MD_ASM_CLOBBERS): New.
1896 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
1897 (TARGET_DELEGITIMIZE_ADDRESS): New.
1899 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
1900 (clzsi2, *bsch): New patterns.
1902 * config/mn10300/mn10300.md (INT): New mode iterator.
1903 (*mov<INT>_clr): New pattern, and peep2 to generate it.
1905 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
1906 flag_split_wide_types.
1908 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
1909 (mn10300_trampoline_init): Rewrite without a template, an immediate
1910 load and a direct branch.
1911 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
1913 2011-01-12 Anatoly Sokolov <aesok@post.ru>
1915 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1916 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
1917 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
1918 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1920 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
1923 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
1926 2011-01-12 Jan Hubicka <jh@suse.cz>
1929 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
1930 (PLUGIN_COND_CLOSE): New macro.
1931 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
1933 2011-01-12 Richard Guenther <rguenther@suse.de>
1936 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
1937 register variables in a MEM_REF.
1939 2011-01-12 Joseph Myers <joseph@codesourcery.com>
1941 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
1942 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
1943 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
1944 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1945 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1946 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
1947 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
1948 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
1949 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
1950 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
1951 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
1952 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
1953 * config/gnu-user.h: New. Copied from linux.h.
1954 (LINUX_TARGET_STARTFILE_SPEC): Rename to
1955 GNU_USER_TARGET_STARTFILE_SPEC.
1956 (LINUX_TARGET_ENDFILE_SPEC): Rename to
1957 GNU_USER_TARGET_ENDFILE_SPEC.
1958 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
1959 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
1960 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
1961 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
1962 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
1963 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
1964 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
1965 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
1966 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
1967 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
1968 * config/arm/linux-eabi.h (CC1_SPEC): Use
1969 GNU_USER_TARGET_CC1_SPEC.
1970 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
1971 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
1972 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
1973 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
1974 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
1975 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
1976 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
1977 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
1979 2011-01-12 Richard Guenther <rguenther@suse.de>
1982 * doc/invoke.texi (ffast-math): Document it is turned on
1985 2011-01-12 Jan Hubicka <jh@suse.cz>
1987 PR tree-optimization/47233
1988 * opts.c (common_handle_option): Disable ipa-reference with profile
1991 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
1993 * c-parser.c (c_parser_objc_at_property_declaration): Improved
1996 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
1998 * c-parser.c (c_lex_one_token): Updated and reindented some
1999 comments. No changes in code.
2001 2011-01-11 Ian Lance Taylor <iant@google.com>
2003 * godump.c (go_output_var): Don't output the variable if there is
2004 already a type with the same name.
2006 2011-01-11 Ian Lance Taylor <iant@google.com>
2008 * godump.c (go_format_type): Don't generate float80.
2010 2011-01-11 Richard Henderson <rth@redhat.com>
2012 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
2013 declaration. Rewrite for both speed and size.
2014 (mn10300_address_cost_1): Remove.
2015 (mn10300_register_move_cost): New.
2016 (mn10300_memory_move_cost): New.
2017 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
2018 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
2019 extensions, shifts, BSWAP, CLZ.
2020 (mn10300_wide_const_load_uses_clr): Remove.
2021 (TARGET_REGISTER_MOVE_COST): New.
2022 (TARGET_MEMORY_MOVE_COST): New.
2023 * config/mn10300/mn10300-protos.h: Update.
2024 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
2026 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
2027 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
2028 * config/mn10300/mn10300-protos.h: Update.
2029 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
2030 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
2031 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
2032 (*test_int_bitfield, *test_byte_bitfield): Remove.
2033 (*bit_test, *subreg_bit_test): Remove.
2034 * config/mn10300/predicates.md (const_8bit_operand): Remove.
2036 * config/mn10300/constraints.md ("c"): Rename from "A".
2037 ("A", "D"): New constraint letters.
2038 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
2039 (fmssf4, fnmasf4, fnmssf4): Likewise.
2041 * config/mn10300/mn10300.md (isa): New attribute.
2042 (enabled): New attribute.
2044 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
2045 (abssf2, negsf2): Define only for hardware fp.
2046 (sqrtsf2): Reformat.
2047 (addsf3, subsf3, mulsf3): Merge expander and insn.
2049 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
2050 (DEBUGGER_AUTO_OFFSET): Remove.
2051 (DEBUGGER_ARG_OFFSET): Remove.
2053 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
2054 Emit register stores with the same offsets as the hardware.
2055 (mn10300_store_multiple_operation): Don't check that the register
2056 save offsets are monotonic.
2057 * config/mn10300/mn10300-protos.h: Update.
2059 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
2061 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
2062 in terms of the value on the stack, not the MDR register.
2064 2011-01-11 Jan Hubicka <jh@suse.cz>
2068 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
2069 (symbol_alias_set_destroy, symbol_alias_set_contains,
2070 propagate_aliases_backward): Declare.
2071 * lto-streamer-out.c (struct sets): New sturcture.
2072 (trivally_defined_alias): New function.
2073 (output_alias_pair_p): Rewrite.
2074 (output_unreferenced_globals): Fix output of alias pairs.
2075 (produce_symtab): Likewise.
2076 * ipa.c (function_and_variable_visibility): Set weak alias destination
2078 * varasm.c (symbol_alias_set_t): Remove.
2079 (symbol_alias_set_destroy): Export.
2080 (propagate_aliases_forward, propagate_aliases_backward): New functions
2082 (compute_visible_aliases): ... this one; remove.
2083 (trivially_visible_alias): New
2084 (trivially_defined_alias): New.
2085 (remove_unreachable_alias_pairs): Rewrite.
2086 (finish_aliases_1): Reorganize code checking if alias is defined.
2087 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
2090 2011-01-11 Richard Guenther <rguenther@suse.de>
2092 PR tree-optimization/46076
2093 * tree-ssa.c (useless_type_conversion_p): Conversions from
2094 unprototyped to empty argument list function types are useless.
2096 2011-01-11 Richard Guenther <rguenther@suse.de>
2099 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
2100 volatile MEMs as MEM_READONLY_P.
2102 2011-01-11 Richard Guenther <rguenther@suse.de>
2104 PR tree-optimization/47239
2105 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
2107 2011-01-11 Jeff Law <law@redhat.com>
2109 PR tree-optimization/47086
2110 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
2111 IVs from statements that might throw.
2113 2011-01-10 Jan Hubicka <jh@suse.cz>
2116 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
2118 2011-01-10 Jan Hubicka <jh@suse.cz>
2121 * profile.c (read_profile_edge_counts): Ignore profile inconistency
2122 when correcting profile.
2124 2011-01-10 Jan Hubicka <jh@suse.cz>
2127 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
2129 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
2130 Restore DECL_FINI_PRIORITY.
2132 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2134 * doc/gimple.texi: Fix quoting of multi-word return values in
2135 @deftypefn statements. Ensure presence of return value. Wrap
2136 overlong @deftypefn lines.
2137 (is_gimple_operand, is_gimple_min_invariant_address): Remove
2138 descriptions of removed functions.
2139 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
2140 of multi-word return value in @deftypefn statement.
2142 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2144 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
2145 (Conditional Expressions, Logical Operators)
2146 (Statement and operand traversals): Do not indent smallexample
2147 code. Fix duplicate function argument in example.
2149 2011-01-10 Jeff Law <law@redhat.com>
2151 PR tree-optimization/47141
2152 * ipa-split.c (split_function): Handle case where we are
2153 returning a value and the return block has a virtual operand phi.
2155 2011-01-10 Jan Hubicka <jh@suse.cz>
2157 PR tree-optimization/47234
2158 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
2159 (pass_feedback_split_functions): Declare.
2160 * passes.c (init_optimization_passes): Add ipa-split as subpass of
2162 * ipa-split.c (gate_split_functions): Update comments; disable
2163 split-functions for profile_arc_flag and branch_probabilities.
2164 (gate_feedback_split_functions): New function.
2165 (execute_feedback_split_functions): New function.
2166 (pass_feedback_split_functions): New global var.
2168 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
2171 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
2172 calling gimple_call_set_cannot_inline.
2174 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
2176 * config/darwin-sections.def: Remove unused section.
2178 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
2181 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
2183 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
2186 * c-parser.c (c_parser_declaration_or_fndef): Improved
2189 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
2191 * config/i386/winnt.c (i386_pe_start_function): Make sure
2192 to switch back to function's section.
2194 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
2198 * plugin.c: Move include of dlfcn.h from here...
2199 * system.h: ... to here.
2201 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2203 * doc/cpp.texi (C++ Named Operators): Fix markup for header
2205 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
2206 two extra empty pages in PDF output.
2208 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
2211 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
2212 for error recovery purposes behave as if it was not specified so
2213 that the default type is usd.
2215 2011-01-07 Jan Hubicka <jh@suse.cz>
2217 PR tree-optmization/46469
2218 * ipa.c (function_and_variable_visibility): Clear needed flags on
2219 nodes with external decls; handle weakrefs merging correctly.
2221 2011-01-07 Joseph Myers <joseph@codesourcery.com>
2223 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
2226 2011-01-07 Jan Hubicka <jh@suse.cz>
2228 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
2229 and no longer claim that gold is required for linker plugin.
2230 * configure: Regenerate.
2231 * gcc.c (PLUGIN_COND): New macro.
2232 (LINK_COMMAND_SPEC): Use it.
2233 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
2234 * config.in (HAVE_LTO_PLUGIN): New.
2235 * configure.ac (--with-lto-plugin): New parameter; autodetect
2238 2011-01-07 Jan Hubicka <jh@suse.cz>
2240 PR tree-optimization/46367
2241 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
2242 when we can update original.
2243 (cgraph_mark_inline_edge): Sanity check.
2244 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
2246 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2248 * config/spu/spu.h (ASM_COMMENT_START): Define.
2250 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
2254 (SWITCH_KEEP_FOR_GCC): Likewise.
2255 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
2256 (do_spec_1): Handle "%>".
2258 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
2260 2011-01-07 Jakub Jelinek <jakub@redhat.com>
2263 * config/i386/i386.c (ix86_delegitimize_address): If
2264 simplify_gen_subreg fails, return orig_x.
2267 * value-prof.c (gimple_stringop_fixed_value): Handle
2268 lhs of the call properly.
2270 2011-01-07 Jan Hubicka <jh@suse.cz>
2273 * lto-opt.c (lto_reissue_options): Set flag_shlib.
2275 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
2277 * target.def (function_switched_text_sections): New hook.
2278 * doc/tm.texi: Regenerated.
2279 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
2280 * final.c (default_function_switched_text_sections): New.
2281 (final_scan_insn): Call function_switched_text_sections when a
2282 mid-function section change occurs.
2283 * output.h (default_function_switched_text_sections): Declare.
2284 * config/darwin-protos.h (darwin_function_switched_text_sections):
2286 * config/darwin.c (darwin_function_switched_text_sections): New.
2287 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
2289 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
2291 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
2292 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
2293 the secondary code fragment when outputting for DWARF == 2.
2295 2011-01-07 Anatoly Sokolov <aesok@post.ru>
2297 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2298 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
2300 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
2301 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2303 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
2306 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
2307 when it is not empty.
2309 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
2312 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
2313 (case ${target}): Add btver1.
2314 * config/i386/driver-i386.c (host_detect_local_cpu): Let
2315 -march=native recognize btver1 processors.
2316 * config/i386/i386-c.c (ix86_target_macros_internal): Add
2317 btver1 def_and_undef
2318 * config/i386/i386.c (struct processor_costs btver1_cost): New
2320 (m_BTVER1): New definition.
2321 (m_AMD_MULTIPLE): Includes m_BTVER1.
2322 (initial_ix86_tune_features): Add btver1 tune.
2323 (processor_target_table): Add btver1 entry.
2324 (static const char *const cpu_names): Add btver1 entry.
2325 (software_prefetching_beneficial_p): Add btver1.
2326 (ix86_option_override_internal): Add btver1 instruction sets.
2327 (ix86_issue_rate): Add btver1.
2328 (ix86_adjust_cost): Add btver1.
2329 * config/i386/i386.h (TARGET_BTVER1): New definition.
2330 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
2331 (enum processor_type): Add PROCESSOR_BTVER1.
2332 * config/i386/i386.md (define_attr "cpu"): Add btver1.
2334 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2337 * config/i386/i386.c (legitimize_tls_address)
2338 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
2339 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
2340 (tls_initial_exec_64_sun): New pattern.
2342 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
2344 * doc/invoke.texi (Overall Options): Improve wording and markup
2345 of the description of -wrapper.
2347 2011-01-06 Joseph Myers <joseph@codesourcery.com>
2349 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
2350 rdynamic, threads): New Driver options.
2352 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2355 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
2356 if coming from .tdata.
2357 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
2359 2011-01-06 Jan Hubicka <jh@suse.cz>
2362 * collect2.c (main): Do not enable LTOmode when plugin is active.
2364 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2367 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
2368 --version output if supported.
2369 * configure: Regenerate.
2371 2011-01-06 Joseph Myers <joseph@codesourcery.com>
2373 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
2376 2011-01-06 Jakub Jelinek <jakub@redhat.com>
2379 * c-convert.c (convert): When converting a complex expression
2380 other than COMPLEX_EXPR to a different complex type, ensure
2381 c_save_expr is called instead of save_expr, unless in_late_binary_op.
2382 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
2383 when converting COMPLEX_TYPE.
2385 2011-01-06 Ira Rosen <irar@il.ibm.com>
2387 PR tree-optimization/47139
2388 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
2389 only the last reduction value is used outside the loop. Update
2392 2011-01-05 Joseph Myers <joseph@codesourcery.com>
2394 * config/rtems.opt: New.
2395 * config.gcc (*-*-rtems*): Use rtems.opt.
2397 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
2399 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
2400 processors do not support 3DNow instructions.
2402 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2404 * config/spu/spu.c (spu_option_override): Set parameter
2405 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
2407 2011-01-05 Jan Hubicka <jh@suse.cz>
2409 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
2410 at the command line.
2412 2011-01-05 Martin Jambor <mjambor@suse.cz>
2415 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
2416 deltas on streamed outgoing edges.
2417 (output_node_opt_summary): Output info for outgoing edges only when
2418 the node is in new parameter set.
2419 (output_cgraph_opt_summary): New parameter set, passed to the two
2420 aforementioned functions. Update its forward declaration and its
2423 2011-01-05 Tom Tromey <tromey@redhat.com>
2425 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
2426 operator to c_finish_omp_atomic.
2427 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
2428 (build_unary_op): Update.
2429 (build_modify_expr): Update.
2430 (build_asm_expr): Update.
2432 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2434 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
2435 newly inserted insns.
2437 (spu_emit_branch_hint): Likewise.
2438 (insert_hbrp_for_ilb_runout): Likewise.
2439 (spu_machine_dependent_reorg): Call df_finish_pass after
2440 schedule_insns returns.
2442 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2444 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
2446 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
2448 PR tree-optimization/47005
2449 * tree-sra.c (struct access): Add 'non_addressable' bit.
2450 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
2451 (decide_one_param_reduction): Return 0 if the parameter is passed by
2452 reference and one of the accesses in the group is non_addressable.
2454 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
2456 PR tree-optimization/47056
2457 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
2458 (mark_load): Likewise. Handle FUNCTION_DECL specially.
2459 (mark_store): Likewise. Pass STMT to ipa_record_reference.
2461 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
2463 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
2464 initializer. Skip view conversions from aggregate types.
2466 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
2469 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
2471 2011-01-04 Philipp Thomas <pth@suse.de>
2473 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
2476 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2478 * function.c (thread_prologue_and_epilogue_insns): Do not crash
2479 on empty epilogue sequences.
2481 2011-01-04 Joseph Myers <joseph@codesourcery.com>
2483 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
2484 non-static): New Driver options.
2486 2011-01-04 Jie Zhang <jie@codesourcery.com>
2489 * gcc.c (default_compilers[]): Set combinable field to 0
2490 for all assembly languages.
2492 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
2494 * config/mips/loongson3a.md: New file.
2495 * config/mips/mips.md: Include loongson3a.md.
2496 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
2499 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
2502 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
2503 instead of convert_memory_address_addr_space on the base expression.
2505 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2507 * config/spu/spu.c (spu_option_override): Update error text
2508 for bad -march= / -mtune= values.
2510 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2512 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
2513 if branch-hint optimization will be performed.
2515 2011-01-03 Jakub Jelinek <jakub@redhat.com>
2517 PR tree-optimization/47148
2518 * ipa-split.c (split_function): Convert arguments to
2519 DECL_ARG_TYPE if possible.
2521 PR tree-optimization/47155
2522 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
2525 PR rtl-optimization/47157
2526 * combine.c (try_combine): If undobuf.other_insn becomes
2527 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
2528 and set *new_direct_jump_p too.
2530 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
2532 PR tree-optimization/47021
2533 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
2535 2011-01-03 Jakub Jelinek <jakub@redhat.com>
2537 * gcc.c (process_command): Update copyright notice dates.
2538 * gcov.c (print_version): Likewise.
2539 * gcov-dump.c (print_version): Likewise.
2540 * mips-tfile.c (main): Likewise.
2541 * mips-tdump.c (main): Likewise.
2543 2011-01-03 Martin Jambor <mjambor@suse.cz>
2545 PR tree-optimization/46801
2546 * tree-sra.c (type_internals_preclude_sra_p): Check whether
2547 aggregate fields start at byte boundary instead of the bit-field flag.
2549 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
2552 * gcc.c (main): Revert revision 168407.
2554 2011-01-03 Martin Jambor <mjambor@suse.cz>
2556 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
2558 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2560 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
2561 vector optab to expand vector/scalar shift, update gimple to vector.
2563 2011-01-03 Martin Jambor <mjambor@suse.cz>
2565 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
2568 2011-01-03 Martin Jambor <mjambor@suse.cz>
2570 PR tree-optimization/46984
2571 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
2573 (cgraph_create_indirect_edge): Fixed line length.
2574 (cgraph_indirect_call_info): Declare.
2575 (cgraph_make_edge_direct) Update declaration.
2576 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
2577 (cgraph_create_indirect_edge): Use it.
2578 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
2580 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
2581 the new thunk_delta representation.
2582 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
2584 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
2585 (ipa_read_indirect_edge_info): Likewise.
2586 * lto-cgraph.c (output_edge_opt_summary): New function.
2587 (output_node_opt_summary): Call it on all outgoing edges.
2588 (input_edge_opt_summary): New function.
2589 (input_node_opt_summary): Call it on all outgoing edges.
2591 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
2594 * gcc.c (main): Don't check have_o when settting combine_inputs.
2596 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
2598 * regrename.c: Add general comment describing the pass.
2599 (struct du_head): Remove 'length' field.
2600 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
2601 (regrename_optimize): Do not sort chains. Rework comments, add others.
2602 Force renaming to the preferred class (if any) in the first pass and do
2603 not consider registers that belong to it in the second pass.
2604 (create_new_chain): Do not set 'length' field.
2605 (scan_rtx_reg): Likewise.
2607 2011-01-02 Jakub Jelinek <jakub@redhat.com>
2609 PR tree-optimization/47140
2610 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
2611 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
2614 PR rtl-optimization/47028
2615 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
2616 parm_birth_insn instead of at the beginning of first bb.
2618 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
2620 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
2621 Remove the word "see" before "@pxref".
2622 * doc/rtl.texi: Remove the word "see" before "@pxref".
2624 2011-01-01 Jan Hubicka <jh@suse.cz>
2626 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
2629 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
2632 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
2635 Copyright (C) 2011 Free Software Foundation, Inc.
2637 Copying and distribution of this file, with or without modification,
2638 are permitted in any medium without royalty provided the copyright
2639 notice and this notice are preserved.