1 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
7 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9 (no_real_insns_p, schedule_block, set_priorities): Drop special
10 treatment of boundary debug insns.
11 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug
13 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
14 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15 (BOUNDARY_DEBUG_INSN_P): Likewise.
16 (SCHEDULE_DEBUG_INSN_P): Likewise.
17 * sched-rgn.c (init_ready_list): Drop special treatment of
19 * final.c (rest_of_clean_state): Clear notes' BB.
21 2011-02-01 Joseph Myers <joseph@codesourcery.com>
23 * config/openbsd.opt (assert=): New Driver option.
25 2011-02-01 Joseph Myers <joseph@codesourcery.com>
27 * config/i386/nto.opt: New.
28 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
30 2011-02-01 Joseph Myers <joseph@codesourcery.com>
32 * config/i386/netware.opt: New.
33 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
35 2011-02-01 Joseph Myers <joseph@codesourcery.com>
37 * config/interix.opt (posix): New Driver option.
39 2011-02-01 DJ Delorie <dj@redhat.com>
41 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
43 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
46 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
48 PR tree-optimization/47561
49 * toplev.c (process_options): Print the Graphite flags. Add
50 flag_loop_flatten to the list of options requiring Graphite.
52 2011-02-01 Joseph Myers <joseph@codesourcery.com>
54 * config/i386/cygming.opt (posix): New Driver option.
56 2011-02-01 Joseph Myers <joseph@codesourcery.com>
58 * config/arm/vxworks.opt: New.
59 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
61 2011-02-01 Joseph Myers <joseph@codesourcery.com>
63 * config/alpha/elf.opt: New.
64 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
65 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
67 2011-02-01 Richard Guenther <rguenther@suse.de>
69 PR tree-optimization/47559
70 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
71 store-motion on references that can throw.
73 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
75 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
76 * tree-pass.h (TDF_CSELIB): New macro.
77 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
78 cselib_lookup): Check for it rather than for TDF_DETAILS.
80 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
83 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
86 * opts.c (finish_options): Don't add x_aux_base_name if it is
89 2011-02-01 Richard Guenther <rguenther@suse.de>
91 PR tree-optimization/47555
93 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
95 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
97 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
100 * config/lm32/t-lm32: Add multilib for all CPU options.
102 2011-02-01 Richard Guenther <rguenther@suse.de>
104 PR tree-optimization/47541
105 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
106 sure to have a field at offset zero.
108 2011-01-31 Joseph Myers <joseph@codesourcery.com>
110 * config/arc/arc.opt (EB, EL): New Driver options.
112 2011-01-31 Joseph Myers <joseph@codesourcery.com>
114 * config/alpha/osf5.opt: New.
115 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
117 2011-01-31 Joseph Myers <joseph@codesourcery.com>
119 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
121 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
123 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
125 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
126 is an alias of -floop-interchange and that it requires the
127 Graphite infrastructure.
128 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
129 flag_loop_interchange based on the value of flag_tree_loop_linear.
131 2011-01-31 Jakub Jelinek <jakub@redhat.com>
132 Richard Guenther <rguenther@suse.de>
134 PR tree-optimization/47538
135 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
136 type instead of r1type, except for comparisons. For right
137 shifts and comparisons punt if there are mismatches in
138 sizetype vs. non-sizetype types.
140 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
142 * doc/sourcebuild.texi (Effective-Target Keywords): Document
145 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
147 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
149 * configure: Regenerate.
151 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
153 * configure.ac (gcc_cv_ld_static_option): Define.
154 (gcc_cv_ld_dynamic_option): Define.
155 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
157 (HAVE_LD_STATIC_DYNAMIC): Update message.
158 (LD_STATIC_OPTION): Define.
159 (LD_DYNAMIC_OPTION): Define.
160 * configure: Regenerate.
161 * config.in: Regenerate.
162 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
163 HAVE_LD_STATIC_DYNAMIC]: Use them.
165 2011-01-31 Nick Clifton <nickc@redhat.com>
167 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
168 registers inside interrupt handlers if the handler is not a leaf
171 2011-01-31 Nick Clifton <nickc@redhat.com>
173 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
174 reg_renumber returning an INVALID_REGNUM.
176 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
179 * doc/install.texi: Document host options discarded when cross
180 configuring target libraries.
182 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
185 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
188 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
190 (no_real_insns_p, schedule_block, set_priorities): Drop special
191 treatment of boundary debug insns.
192 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug
194 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
195 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
196 (BOUNDARY_DEBUG_INSN_P): Likewise.
197 (SCHEDULE_DEBUG_INSN_P): Likewise.
198 * sched-rgn.c (init_ready_list): Drop special treatment of
199 boundary debug insns.
200 * final.c (rest_of_clean-state): Clear notes' BB.
202 2011-01-31 Alan Modra <amodra@gmail.com>
204 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
205 toc relative expressions as we do in print_operand_address.
207 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
209 * doc/extend.texi: Follow spelling conventions.
210 * doc/invoke.texi: Fix a typo.
212 2011-01-30 Joseph Myers <joseph@codesourcery.com>
214 * config/hpux11.opt: New.
215 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
216 ia64*-*-hpux*): Use hpux11.opt.
218 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
220 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
223 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
225 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
228 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
230 * doc/install.texi (Binaries): Remove outdated reference for
231 Motorola 68HC11/68HC12 downloads.
233 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
235 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
238 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
241 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
244 2011-01-28 Ahmad Sharif <asharif@google.com>
246 * value-prof.c (check_counter): Corrected error message.
248 2011-01-29 Jie Zhang <jie@codesourcery.com>
250 * config/arm/arm.c (arm_legitimize_reload_address): New.
251 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
252 arm_legitimize_reload_address.
253 * config/arm/arm-protos.h (arm_legitimize_reload_address):
256 2011-01-28 Ian Lance Taylor <iant@google.com>
258 * godump.c (go_define): Ignore macros whose definitions include
259 two adjacent operands.
261 2011-01-28 Jakub Jelinek <jakub@redhat.com>
264 * varasm.c (force_const_mem): Store copy of x in desc->constant
266 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
267 itself into REG_EQUAL note.
269 2011-01-28 Joseph Myers <joseph@codesourcery.com>
271 * config/freebsd.opt (posix, rdynamic): New Driver options.
273 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
275 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
277 * configure: Regenerate.
279 2011-01-27 Joseph Myers <joseph@codesourcery.com>
281 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
282 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
284 2011-01-27 Anatoly Sokolov <aesok@post.ru>
286 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
287 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
288 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
289 (s390_preferred_reload_class): Make static. Change return and
290 'rclass' argument type to reg_class_t.
292 2011-01-27 Jan Hubicka <jh@suse.cz>
295 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
296 (process_function_and_variable_attributes): Check defined weakrefs.
298 2011-01-27 Martin Jambor <mjambor@suse.cz>
300 PR tree-optimization/47228
301 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
302 build_ref_for_offset.
304 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
306 * config/spu/spu-elf.h (ASM_SPEC): Remove.
308 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
310 PR rtl-optimization/46856
311 * postreload.c (reload_combine_recognize_const_pattern): Do not
312 separate cc0 setter and user on cc0 targets.
314 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
317 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
318 passed a VOID_TYPE expression, immediately emit an error and
319 return error_mark_node.
321 2011-01-26 Jeff Law <law@redhat.com>
323 PR rtl-optimization/47464
324 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
325 rather than may_trap_p as needed.
327 2011-01-26 DJ Delorie <dj@redhat.com>
329 PR rtl-optimization/46878
330 * combine.c (insn_a_feeds_b): Check for the implicit cc0
331 setter/user dependency as well.
333 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
335 PR rtl-optimization/44469
336 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
337 after removing trivially dead basic blocks.
339 2011-01-26 Joseph Myers <joseph@codesourcery.com>
341 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
342 * config/frv/frv.h (LINK_SPEC): Likewise.
343 * config/i386/netware.h (LINK_SPEC): Likewise.
344 * config/m68k/linux.h (ASM_SPEC): Likewise.
345 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
346 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
347 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
348 * config/sparc/linux.h (ASM_SPEC): Likewise.
349 * config/sparc/linux64.h (ASM_SPEC): Likewise.
350 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
352 2011-01-26 Joseph Myers <joseph@codesourcery.com>
354 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
355 * config/frv/frv.h (ASM_SPEC): Likewise.
356 * config/m68k/linux.h (ASM_SPEC): Likewise.
357 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
358 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
359 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
360 * config/sparc/linux.h (ASM_SPEC): Likewise.
361 * config/sparc/linux64.h (ASM_SPEC): Likewise.
362 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
364 2011-01-26 Joseph Myers <joseph@codesourcery.com>
366 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
367 * config/frv/frv.h (LINK_SPEC): Likewise.
368 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
370 2011-01-26 Joseph Myers <joseph@codesourcery.com>
372 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
373 * config/frv/frv.h (ASM_SPEC): Likewise.
374 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
375 * config/m68k/linux.h (ASM_SPEC): Likewise.
376 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
377 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
378 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
379 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
380 * config/sparc/linux.h (ASM_SPEC): Likewise.
381 * config/sparc/linux64.h (ASM_SPEC): Likewise.
382 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
383 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
385 2011-01-26 Steve Ellcey <sje@cup.hp.com>
388 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
390 (vec_extract_evenodd_help): Ditto.
391 (vec_extract_evenv4hi): Ditto.
392 (vec_extract_oddv4hi): Ditto.
393 (vec_interleave_lowv2si): Ditto.
394 (vec_interleave_highv2si): Ditto.
395 (vec_extract_evenv2si): Ditto.
396 (vec_extract_oddv2si: Ditto.
397 (vec_pack_trunc_v2si): Ditto.
399 2011-01-22 Jan Hubicka <jh@suse.cz>
402 * cgraph.h (cgraph_local_info): New field can_change_signature.
403 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
404 signature can change.
405 (ipcp_estimate_growth): Call sequence simplify only if calle signature
407 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
408 (cgraph_function_versioning): We can not change signature of functions
409 that don't allow that.
410 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
411 (lto_input_node): Likewise.
412 * ipa-inline.c (compute_inline_parameters): Compute local.can_change_signature.
413 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
414 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on functions
415 that can not change signature.
416 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
417 init_cumulative_args): Do not use local calling conventions for functions
418 that can not change signature.
420 2011-01-22 Jan Hubicka <jh@suse.cz>
422 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
424 2011-01-26 Richard Guenther <rguenther@suse.de>
426 PR tree-optimization/47190
427 * cgraphunit.c (process_common_attributes): New function.
428 (process_function_and_variable_attributes): Use it.
430 2011-01-26 Richard Guenther <rguenther@suse.de>
433 * cgraphbuild.c (record_eh_tables): Record reference to personality
436 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
439 * sel-sched.c (moveup_expr): Don't let debug insns prevent
440 non-debug insns from moving up.
442 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
445 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
446 t-dlldir{,-x} fragment for build and add it to tmake_file.
447 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
448 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
449 * config/i386/t-dlldir: New file.
450 (SHLIB_DLLDIR): Define.
451 * config/i386/t-dlldir-x: New file.
452 (SHLIB_DLLDIR): Define.
453 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
454 (SHLIB_INSTALL): Use it.
456 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
459 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
460 lower bound of the allowed Thumb-2 coprocessor load/store
461 index range to -256. Add explaining comment.
463 2011-01-25 Ian Lance Taylor <iant@google.com>
465 * godump.c (go_define): Improve lexing of macro expansion to only
466 accept expressions which match Go spec.
468 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
471 * tree.c (handle_dll_attribute): Handle it.
472 * doc/extend.texi (@item dllexport): Mention it.
473 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
475 2011-01-25 Ian Lance Taylor <iant@google.com>
477 PR tree-optimization/26854
478 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
479 (decl_jump_unsafe): Move higher in file, with no other change.
480 (bind): Set has_jump_unsafe_decl if appropriate.
481 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
482 (check_earlier_gotos): Likewise.
483 (c_check_switch_jump_warnings): Likewise.
485 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
487 * doc/invoke.texi (Warning Options): Add missing hyphen.
488 (-fprofile-dir): Minor grammatical fixes.
489 (-fbranch-probabilities): Likewise.
491 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
495 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
497 (no_real_insns_p, schedule_block, set_priorities): Drop special
498 treatment of boundary debug insns.
499 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug
501 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
502 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
503 (BOUNDARY_DEBUG_INSN_P): Likewise.
504 (SCHEDULE_DEBUG_INSN_P): Likewise.
505 * sched-rgn.c (init_ready_list): Drop special treatment of
506 boundary debug insns.
507 * final.c (rest_of_clean-state): Clear notes' BB.
509 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
511 * Makefile.in (LAMBDA_H): Removed.
512 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
513 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
514 lambda-trans.o, and tree-loop-linear.o.
515 (lto-symtab.o): Remove dependence on LAMBDA_H.
516 (tree-loop-linear.o): Remove rule.
517 (lambda-mat.o): Same.
518 (lambda-trans.o): Same.
519 (lambda-code.o): Same.
520 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
521 (tree-vect-slp.o): Same.
522 * hwint.h (gcd): Moved here.
523 (least_common_multiple): Same.
524 * lambda-code.c: Removed.
525 * lambda-mat.c: Removed.
526 * lambda-trans.c: Removed.
528 * tree-loop-linear.c: Removed.
529 * lto-symtab.c: Do not include lambda.h.
530 * omega.c (gcd): Removed.
531 * passes.c (init_optimization_passes): Remove pass_linear_transform.
532 * tree-data-ref.c (print_lambda_vector): Moved here.
533 (lambda_vector_copy): Same.
534 (lambda_matrix_copy): Same.
535 (lambda_matrix_id): Same.
536 (lambda_vector_first_nz): Same.
537 (lambda_matrix_row_add): Same.
538 (lambda_matrix_row_exchange): Same.
539 (lambda_vector_mult_const): Same.
540 (lambda_vector_negate): Same.
541 (lambda_matrix_row_negate): Same.
542 (lambda_vector_equal): Same.
543 (lambda_matrix_right_hermite): Same.
544 * tree-data-ref.h: Do not include lambda.h.
545 (lambda_vector): Moved here.
546 (lambda_matrix): Same.
547 (dependence_level): Same.
548 (lambda_transform_legal_p): Removed declaration.
549 (lambda_collect_parameters): Same.
550 (lambda_compute_access_matrices): Same.
551 (lambda_vector_gcd): Same.
552 (lambda_vector_new): Same.
553 (lambda_vector_clear): Same.
554 (lambda_vector_lexico_pos): Same.
555 (lambda_vector_zerop): Same.
556 (lambda_matrix_new): Same.
557 * tree-flow.h (least_common_multiple): Removed declaration.
558 * tree-parloops.c (lambda_trans_matrix): Moved here.
562 (LTM_DENOMINATOR): Same.
563 (lambda_trans_matrix_new): Same.
564 (lambda_matrix_vector_mult): Same.
565 (lambda_transform_legal_p): Same.
566 * tree-pass.h (pass_linear_transform): Removed declaration.
567 * tree-ssa-loop.c (tree_linear_transform): Removed.
568 (gate_tree_linear_transform): Removed.
569 (pass_linear_transform): Removed.
570 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
571 flag_loop_interchange.
573 2011-01-25 Jakub Jelinek <jakub@redhat.com>
575 PR tree-optimization/47265
576 PR tree-optimization/47443
577 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
578 if name still has some uses.
580 2011-01-25 Martin Jambor <mjambor@suse.cz>
582 PR tree-optimization/47382
583 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
584 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
586 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
588 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
589 sjlj_except_unwind_info.
591 2011-01-25 Richard Guenther <rguenther@suse.de>
593 PR tree-optimization/47426
594 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
595 visible functions results escape.
597 2011-01-25 Jakub Jelinek <jakub@redhat.com>
600 * config/arm/arm.c (any_sibcall_uses_r3): New function.
601 (arm_get_frame_offsets): Use it.
603 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
604 Jakub Jelinek <jakub@redhat.com>
606 PR tree-optimization/47271
607 * tree-if-conv.c (bb_postdominates_preds): New.
608 (if_convertible_bb_p): Call bb_postdominates_preds.
609 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
610 (predicate_scalar_phi): Call bb_postdominates_preds.
612 2011-01-25 Nick Clifton <nickc@redhat.com>
614 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
615 * config/rx/rx.c (rx_function_value): Likewise.
616 (rx_promote_function_mode): Likewise.
617 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
618 in order to make it legitimate.
619 * config/rx/rx.md (adddi3_internal): If the second operand is a
620 MEM make sure that the first operand is the same as the result
622 (addsi3_unspec): Delete.
623 (subdi3): Do not accept immediate operands.
624 (subdi3_internal): Likewise.
626 2011-01-25 Jeff Law <law@redhat.com>
628 PR rtl-optimization/37273
629 * ira-costs.c (scan_one_insn): Detect constants living in memory and
630 handle them like argument loads from stack slots. Do not double
631 count memory for memory constants and argument loads from stack slots.
633 2011-01-25 Jakub Jelinek <jakub@redhat.com>
635 PR tree-optimization/47427
636 PR tree-optimization/47428
637 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
638 coalesce if the new root var would be TREE_READONLY.
640 2011-01-25 Richard Guenther <rguenther@suse.de>
643 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
644 correct type for TBAA.
646 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
648 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
649 (close_phi_written_to_memory): Call for_each_index with
650 dr_indices_valid_in_loop.
652 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
654 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
655 when it is initialized.
657 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
659 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
660 call to graphite_find_data_references_in_stmt.
661 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
662 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
663 call to graphite_find_data_references_in_stmt.
664 (analyze_drs_in_stmts): Same.
665 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
666 in which the scalar analysis of indices is performed.
667 (create_data_ref): Same. Update call to dr_analyze_indices.
668 (find_data_references_in_stmt): Update call to create_data_ref.
669 (graphite_find_data_references_in_stmt): Same.
670 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
672 (create_data_ref): Same.
673 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
674 call to create_data_ref.
676 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
678 * graphite-sese-to-poly.c (build_poly_scop): Move
679 rewrite_commutative_reductions_out_of_ssa before
680 find_scop_parameters.
682 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
684 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
685 VAR_DECL, PARM_DECL, and RESULT_DECL.
687 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
689 * graphite-dependences.c (reduction_dr_1): Allow several reductions
691 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
692 that have already been marked as PBB_IS_REDUCTION.
694 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
696 * graphite-scop-detection.c (same_close_phi_node): New.
697 (remove_duplicate_close_phi): New.
698 (make_close_phi_nodes_unique): New.
699 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
701 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
703 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
704 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
705 of both data references to be the same.
707 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
709 * graphite-dependences.c (build_lexicographical_constraint): Remove the
711 (build_lexicographical_constraint): Adjust call to ppl_powerset_is_empty.
712 (dependence_polyhedron): Same.
713 (graphite_legal_transform_dr): Same.
714 (graphite_carried_dependence_level_k): Same.
715 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params parameter.
716 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
718 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
720 * graphite-sese-to-poly.c
721 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
722 (close_phi_written_to_memory): New.
723 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
726 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
728 * doc/install.texi: Update the expected version number of PPL to 0.11.
729 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
730 #if PPL_VERSION_MINOR < 11.
732 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
734 * graphite-dependences.c: Include graphite-cloog-util.h.
735 (new_poly_ddr): Inlined into dependence_polyhedron.
736 (free_poly_ddr): Moved close by new_poly_ddr.
737 (dependence_polyhedron_1): Renamed dependence_polyhedron.
738 Early return NULL when ppl_powerset_is_empty returns true.
739 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
740 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
741 (graphite_legal_transform_dr): Call new_poly_ddr.
742 (graphite_carried_dependence_level_k): Same.
743 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
744 (dot_transformed_deps_stmt_1): Removed.
745 (dot_deps_stmt_1): Call dot_deps_stmt_2.
746 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
747 (dot_deps_1): Call dot_deps_2.
748 * Makefile.in (graphite-dependences.o): Add missing dependence on
749 graphite-cloog-util.h.
751 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
753 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
754 (build_lexicographical_constraint): Same.
755 (dependence_polyhedron_1): Same.
756 (graphite_legal_transform_dr): Same.
757 (graphite_carried_dependence_level_k): Same.
758 * graphite-ppl.c (ppl_powerset_is_empty): New.
759 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
760 * tree-data-ref.c (dump_data_reference): Print the basic block index.
762 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
764 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
765 the "a followed by b" relation and document it.
767 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
769 * graphite-dependences.c (build_lexicographical_constraint): Stop the
770 iteration when the bag of constraints is empty.
772 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
774 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
776 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
778 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
779 nest and two loop depths as parameters.
780 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
783 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
785 * graphite-dependences.c (print_pddr): Call
786 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
788 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
790 * graphite-ppl.c (debug_gmp_value): New.
791 * graphite-ppl.h (debug_gmp_value): Declared.
793 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
795 * doc/install.texi: Document availability of cloog-0.16.
797 2011-01-25 Vladimir Kargov <kargov@gmail.com>
799 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
800 invalid postdominance info.
802 2011-01-24 Jan Hubicka <jh@suse.cz>
805 * doc/extend.texi (weak pragma): Drop claim that it must
806 appear before definition.
807 * varasm.c (merge_weak, declare_weak): Only sanity check
808 that DECL is not output at a time it is declared weak.
810 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
812 * machmode.def: Fixed comments.
814 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
816 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
818 2011-01-24 Paul Koning <ni1d@arrl.net>
820 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
823 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
826 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
827 (block_info): Add scanned and prev.
828 (move_or_delete_vzeroupper_2): Return if the basic block
829 has been scanned and the upper 128bit state is unchanged
831 (move_or_delete_vzeroupper_1): Return true if the exit
833 (move_or_delete_vzeroupper): Visit basic blocks using the
834 work-list based algorithm based on vt_find_locations in
837 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
839 2011-01-24 Nick Clifton <nickc@redhat.com>
841 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
842 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
843 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
844 then define __v850e1__.
845 * doc/invoke.texi: Document -mv850es.
847 2011-01-24 Richard Henderson <rth@redhat.com>
849 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
850 compound unordered comparisons.
851 * config/rx/rx.c (rx_split_fp_compare): Remove.
852 * config/rx/rx-protos.h: Update.
853 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
854 (cbranchsf4): Don't call rx_split_fp_compare.
855 (*cbranchsf4): Use rx_split_cbranch.
856 (*cmpsf): Don't accept "i" constraint.
857 (*conditional_branch): Only valid after reload.
858 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
860 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
863 * config/rs6000/altivec.md (vector constant splitters): Add
864 support for creating vector single precision constants if -mvsx is
865 used and we would create the constant using Altivec primitives.
867 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
868 Richard Sandiford <rdsandiford@googlemail.com>
870 PR rtl-optimization/47166
871 * reload1.c (emit_reload_insns): Disable the spill_reg_store
872 mechanism for PRE_MODIFY and POST_MODIFY.
873 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
876 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
878 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
880 2011-01-22 Jan Hubicka <jh@suse.cz>
883 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
885 2011-01-22 Jan Hubicka <jh@suse.cz>
887 PR tree-optimization/43884
889 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
890 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
892 2011-01-22 Anatoly Sokolov <aesok@post.ru>
894 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
895 * config/s390/s390.c (s390_register_move_cost,
896 s390_memory_move_cost): New.
897 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
899 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
902 * except.c (sjlj_assign_call_site_values): Move setting the
903 crtl->uses_eh_lsda flag to ...
904 (sjlj_mark_call_sites): ... here.
905 (sjlj_emit_function_enter): Support NULL dispatch label.
906 (sjlj_build_landing_pads): In a function with no landing pads
907 that still has must-not-throw regions, generate code to register
908 a personality function with empty LSDA.
910 2011-01-21 Richard Henderson <rth@redhat.com>
912 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
914 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
916 * compare-elim.c: New file.
917 * Makefile.in (OBJS-common): Add it.
918 (compare-elim.o): New.
919 * common.opt (fcompare-elim): New.
920 * opts.c (default_options_table): Add OPT_fcompare_elim.
921 * tree-pass.h (pass_compare_elim_after_reload): New.
922 * passes.c (init_optimization_passes): Add it.
923 * recog.h: Protect against re-inclusion.
924 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
925 * doc/invoke.texi (-fcompare-elim): Document it.
926 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
927 * doc/tm.texi: Rebuild.
929 2011-01-22 Nick Clifton <nickc@redhat.com>
931 * config/rx/rx.md (cstoresf4): Pass comparison operator to
934 2011-01-22 Nick Clifton <nickc@redhat.com>
936 * config/rx/rx.md (UNSPEC_CONST): New.
937 (deallocate_and_return): Wrap the amount popped off the stack in
938 an UNSPEC_CONST in order to stop it being rejected by
940 (pop_and_return): Add a "(return)" rtx.
941 (call): Drop the immediate operand.
942 (call_internal): Likewise.
943 (call_value): Likewise.
944 (call_value_internal): Likewise.
945 (sibcall_internal): Likewise.
946 (sibcall_value_internal): Likewise.
947 (sibcall): Likewise. Generate an explicit call using
949 (sibcall_value): Likewise.
950 (mov<>): FAIL if a constant operand is not legitimate.
951 (addsi3_unpsec): New pattern.
953 * config/rx/rx.c (rx_print_operand_address): Handle UNPSEC
955 (ok_for_max_constant): New function.
956 (gen_safe_add): New function.
957 (rx_expand_prologue): Use gen_safe_add.
958 (rx_expand_epilogue): Likewise.
959 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
962 2011-01-21 Jeff Law <law@redhat.com>
964 PR tree-optimization/47053
965 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
966 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
967 statements are deleted.
968 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
969 is nonempty, then purge dead edges and cleanup the CFG.
971 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
975 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
977 * tree-dfa.c (create_var_ann): Mark variable as used.
979 2011-01-21 Jakub Jelinek <jakub@redhat.com>
982 * except.c (convert_to_eh_region_ranges): Emit queued no-region
983 notes from other section in hot/cold partitioning even if
984 last_action is -3. Increment call_site_base.
986 PR rtl-optimization/47366
987 * fwprop.c (forward_propagate_into): Return bool. If
988 any changes are made, -fnon-call-exceptions is used and
989 REG_EH_REGION note is present, call purge_dead_edges
990 and return true if it purged anything.
991 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
992 any EH edges were purged.
994 2011-01-21 Jeff Law <law@redhat.com>
996 PR rtl-optimization/41619
997 * caller-save.c (setup_save_areas): Break out code to determine
998 which hard regs are live across calls by examining the reload chains
999 so that it is always used.
1000 Eliminate code which checked REG_N_CALLS_CROSSED.
1002 2011-01-21 Jakub Jelinek <jakub@redhat.com>
1004 PR tree-optimization/47355
1005 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
1006 NOP has non-debug uses beyond PHIs in new_bb.
1008 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
1011 * cfgexpand.c (account_used_vars_for_block): Only account vars
1012 that are annotated as used.
1013 (estimated_stack_frame_size): Don't set TREE_USED.
1014 * tree-dfa.c (create_var_ann): Mark variable as used.
1016 2011-01-21 Richard Guenther <rguenther@suse.de>
1019 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
1021 2011-01-21 Richard Guenther <rguenther@suse.de>
1023 PR tree-optimization/47365
1024 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
1025 (vn_reference_lookup_pieces): Adjust.
1026 (vn_reference_lookup): Likewise.
1027 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
1028 (vn_reference_lookup_3): Only look through kills if in
1029 VN_WALKREWRITE mode.
1030 (vn_reference_lookup_pieces): Adjust.
1031 (vn_reference_lookup): Likewise.
1032 (visit_reference_op_load): Likewise.
1033 (visit_reference_op_store): Likewise.
1034 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
1035 (compute_avail): Likewise.
1036 (eliminate): Likewise.
1038 2011-01-21 Jakub Jelinek <jakub@redhat.com>
1040 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
1041 DECL_IGNORED_P non-reg vars if they are used.
1043 PR tree-optimization/47391
1044 * varpool.c (const_value_known_p): Return false if
1047 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
1050 * config/i386/i386.c (ix86_local_alignment): Handle
1051 case for va_list_type_node is nil.
1052 (ix86_canonical_va_list_type): Likewise.
1054 2011-01-21 Alan Modra <amodra@gmail.com>
1056 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
1057 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
1059 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1061 * config/arm/arm.md (define_attr type): Rename f_load
1062 and f_store to f_fpa_load and f_fpa_store. Update.
1063 (write_conflict): Deal with rename fallout.
1064 (*push_fp_multi): Likewise.
1065 * config/arm/fpa.md (f_load): Use f_fpa_load.
1066 (f_store): Use f_fpa_store.
1067 (*movsf_fpa): Likewise.
1068 (*movdf_fpa): Likewise.
1069 (*movxf_fpa): Likewise.
1070 (*thumb2_movsf_fpa): Likewise.
1071 (*thumb2_movdf_fpa): Likewise.
1072 (*thumb2_movxf_fpa): Likewise.
1073 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
1074 f_loadd and f_stored.
1075 (*thumb2_movdi_vfp): Likewise.
1076 (*thumb2_movsf_vfp): Fix attribute to f_loads.
1077 (*thumb2_movsi_vfp): Likewise.
1078 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
1079 Use f_loads instead of f_load.
1080 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
1082 2011-01-20 Anatoly Sokolov <aesok@post.ru>
1084 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1085 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
1086 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1087 (xtensa_mode_dependent_address_p): New function.
1088 (constantpool_address_p): Make static. Change return type to bool.
1089 Change argument type to const_rtx. Use CONST_INT_P predicate.
1091 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
1094 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
1096 2011-01-20 Jakub Jelinek <jakub@redhat.com>
1099 * cfgexpand.c (expand_debug_expr): Instead of generating
1100 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
1103 2011-01-20 Richard Guenther <rguenther@suse.de>
1106 * tree-inline.c (remap_gimple_op_r): Recurse manually for
1107 the pointer operand of MEM_REFs.
1109 2011-01-20 Jakub Jelinek <jakub@redhat.com>
1111 PR tree-optimization/46130
1112 * ipa-split.c (consider_split): If return_bb contains non-virtual
1113 PHIs other than for retval or if split_function would not adjust it,
1116 2011-01-20 Richard Guenther <rguenther@suse.de>
1118 PR tree-optimization/47167
1119 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
1120 Revert previous change, only avoid enumeral type changes.
1122 2011-01-19 Mike Stump <mikestump@comcast.net>
1124 * doc/tm.texi.in (BRANCH_COST): Englishify.
1125 * doc/tm.texi (BRANCH_COST): Likewise.
1127 2011-01-19 Dodji Seketeli <dodji@redhat.com>
1130 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
1131 (gen_scheduled_generic_parms_dies): New functions.
1132 (gen_struct_or_union_type_die): Schedule template parameters DIEs
1133 generation for the end of CU compilation.
1134 (dwarf2out_finish): Generate template parameters DIEs here.
1136 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
1139 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
1140 debug bind stmt on merge edges.
1142 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
1146 * function.c (instantiate_expr): Instantiate incoming rtl of
1147 implicit arguments, and recurse on VALUE_EXPRs.
1148 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
1149 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
1151 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
1153 * c-parser.c (c_parser_for_statement): Initialize
1154 collection_expression.
1156 2011-01-19 Joseph Myers <joseph@codesourcery.com>
1158 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
1160 2011-01-19 Joseph Myers <joseph@codesourcery.com>
1162 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
1163 (LINK_SHLIB_SPEC): Don't use %(link_path).
1164 (SUBTARGET_EXTRA_SPECS): Remove link_path.
1166 2011-01-19 Joseph Myers <joseph@codesourcery.com>
1168 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
1169 (NO_SHARED_LIB_SUPPORT): Remove.
1170 (LINK_SHLIB_SPEC): Remove one conditional definition.
1172 2011-01-19 Joseph Myers <joseph@codesourcery.com>
1174 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
1176 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
1177 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
1178 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
1179 %{call_shared} and conditionals on these options not being passed.
1180 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
1183 2011-01-19 Jakub Jelinek <jakub@redhat.com>
1185 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
1188 * ipa-split.c: Spelling fixes.
1190 2011-01-19 Richard Henderson <rth@redhat.com>
1192 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
1193 (*mulsi3): Likewise.
1195 * longlong.h [__mn10300__] (count_leading_zeros): New.
1196 [__mn10300__] (umul_ppmm, smul_ppmm): New.
1197 [__mn10300__] (add_ssaaaa, subddmmss): New.
1198 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
1199 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
1201 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1203 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
1205 2011-01-19 Richard Henderson <rth@redhat.com>
1207 * config/mn10300/mn10300.md (addsi3_flags): New.
1208 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
1209 (subsi3_flags, subc_internal, subdi3): New.
1210 (subdi3_internal, *subdi3_degenerate): New.
1211 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
1213 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
1214 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
1215 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
1216 * config/mn10300/mn10300-protos.h: Update.
1217 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
1218 (return_ret): Likewise. Rename from return_internal_regs.
1219 (return_internal): Remove.
1221 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
1222 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
1223 (mn10300_legitimate_constant_p): Likewise.
1224 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
1225 (mn10300_frame_size): New.
1226 (mn10300_expand_prologue): Use it.
1227 (mn10300_expand_epilogue): Likewise.
1228 (mn10300_initial_offset): Likewise.
1229 * config/mn10300/mn10300-protos.h: Update.
1230 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
1231 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
1232 (prologue, epilogue, return_internal): Tidy output code.
1233 (mn10300_store_multiple_operation, return): Likewise.
1234 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
1235 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
1236 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
1237 (load_pic, am33_load_pic): New.
1238 (mn10300_load_pic0, mn10300_load_pic1): New.
1240 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
1241 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
1242 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
1243 (cc_flags_for_mode, cc_flags_for_code): New.
1244 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
1245 overflow flag is not valid. Validate that the flags we need
1246 for the comparison are valid.
1247 (mn10300_output_cmp): Remove.
1248 (mn10300_output_add): New.
1249 (mn10300_select_cc_mode): Use cc_flags_for_code.
1250 (mn10300_split_cbranch): New.
1251 (mn10300_match_ccmode): New.
1252 (mn10300_split_and_operand_count): New.
1253 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
1255 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
1256 (addsi3): ... here. Use mn10300_output_add.
1257 (*addsi3_flags): New.
1258 (*am33_subsi3, *mn10300_subsi3): Merge...
1259 (subsi3): ... here. Use attribute isa.
1260 (*subsi3_flags): New.
1261 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
1263 (*am33_andsi3, *mn10300_andsi3): Merge...
1265 (*andsi3_flags): New.
1266 (andsi3 splitters): New.
1267 (*am33_iorsi3, *mn10300_iorsi3): Merge...
1269 (*iorsi3_flags): New.
1270 (*am33_xorsi3, *mn10300_xorsi3): Merge...
1272 (*xorsi3_flags): New.
1273 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
1274 (one_cmplsi2): ... here.
1275 (*one_cmplsi2_flags): New.
1276 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
1277 instead of "dax" in constraints. Use mn10300_split_cbranch.
1278 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
1279 use matching constraints to eliminate a self-comparison.
1280 (*integer_conditional_branch): Rename from integer_conditional_branch.
1281 Use int_mode_flags to match CC_REG.
1282 (*cbranchsi4_btst, *btstsi): New.
1283 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
1284 mn10300_split_cbranch.
1285 (*am33_cmpsf): Rename from am33_cmpsf.
1286 (*float_conditional_branch): Rename from float_conditional_branch.
1287 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
1288 (zero_extendqisi2): ... here.
1289 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
1290 (zero_extendhisi2): ... here.
1291 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
1292 (extendqisi2): ... here.
1293 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
1294 (extendhisi2): ... here.
1295 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
1296 (ashlsi3): ... here.
1297 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
1298 (lshrsi3): ... here.
1299 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
1300 (ashrsi3): ... here.
1301 (consecutive add peephole): Remove.
1302 * config/mn10300/predicates.md (label_ref_operand): New.
1303 (int_mode_flags): New.
1304 (CCZN_comparison_operator): New.
1306 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
1307 (throughput_42_latency_43): New reservation.
1308 (mulsidi3, umulsidi3): New expanders.
1309 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
1310 the MDR register to allocation; separately allocate the low and
1311 high parts of the DImode result.
1312 (umulsidi3_internal): Similarly.
1313 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
1314 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
1315 (udivsi3, umodsi3): Remove.
1316 (udivmodsi4, divmodsi4): New expanders.
1317 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
1318 (*divmodsi4): Simiarly.
1319 (ext_internal): New.
1321 * config/mn10300/constraints.md ("z"): New constraint.
1322 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
1323 (FIXED_REGISTERS): Don't fix MDR.
1324 (CALL_USED_REGSITERS): Reformat nicely.
1325 (REG_ALLOC_ORDER): Add MDR.
1326 (enum regclass): Add MDR_REGS.
1327 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
1328 (IRA_COVER_CLASSES): Add MDR_REGS.
1329 (REGNO_REG_CLASS): Handle MDR_REG.
1330 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
1331 (mn10300_register_move_cost): Likewise.
1332 * config/mn10300/mn10300.md (MDR_REG): New.
1333 (*movsi_internal): Handle moves to/from MDR_REGS.
1335 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
1337 (mn10300_secondary_reload): Tidy combination reload classes.
1338 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
1339 addresses for AM33. Allow symbolic offsets for reg+imm.
1340 (mn10300_regno_in_class_p): New.
1341 (mn10300_legitimize_reload_address): New.
1342 * config/mn10300/mn10300.h (enum reg_class): Remove
1343 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
1344 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
1346 (REG_CLASS_NAMES): Update to match.
1347 (REG_CLASS_CONTENTS): Likewise.
1348 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
1349 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
1350 (REGNO_IN_RANGE_P): Remove.
1351 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
1352 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
1353 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
1354 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
1355 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
1356 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
1357 (REGNO_GENERAL_P): New.
1358 (HAVE_POST_MODIFY_DISP): New.
1359 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
1360 (LEGITIMIZE_RELOAD_ADDRESS): New.
1361 * config/mn10300/mn10300-protos.h: Update.
1363 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
1364 DATA_REGS for AM33 stack-pointer destination.
1365 (mn10300_preferred_output_reload_class): Likewise.
1366 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
1367 into a form appropriate for ...
1368 (TARGET_SECONDARY_RELOAD): New.
1369 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
1370 * config/mn10300/mn10300-protos.h: Update.
1371 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
1372 reload_insi; use the "A" constraint for the scratch; handle AM33
1373 moves of sp to non-address registers.
1375 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
1376 (*movqi_internal): ... here.
1377 (*am33_movhi, *mn10300_movhi): Merge into...
1378 (*movhi_internal): ... here.
1379 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
1380 as the source/destination of moves from/to SP.
1381 (movsf): Only allow for AM33-2.
1382 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
1383 any integer constant constraint. Only allow for AM33-2. Tidy
1384 all of the alternative outputs.
1385 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
1386 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
1388 (udivsi3, umodsi3): New patterns for MN103 only.
1390 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
1392 * doc/tm.texi.in: Spell out that a lack of register class unions
1394 * doc/tm.texi: Regenerate.
1396 2011-01-19 Jakub Jelinek <jakub@redhat.com>
1398 PR rtl-optimization/47337
1399 * dce.c (check_argument_store): New function.
1400 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
1402 PR tree-optimization/47290
1403 * tree-eh.c (infinite_empty_loop_p): New function.
1404 (cleanup_empty_eh): Use it.
1406 2011-01-18 Steve Ellcey <sje@cup.hp.com>
1409 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
1410 (a64_expand_widen_sum): Ditto.
1411 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
1412 (vec_extract_evenodd_help): Ditto.
1413 (vec_extract_evenv4hi): Ditto.
1414 (vec_extract_oddv4hi): Ditto.
1415 (vec_extract_evenv2si): Ditto.
1416 (vec_extract_oddv2si): Ditto.
1417 (vec_extract_evenv2sf): Ditto.
1418 (vec_extract_oddv2sf): Ditto.
1419 (vec_pack_trunc_v4hi: Ditto.
1420 (vec_pack_trunc_v2si): Ditto.
1421 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
1422 (vec_interleave_highv8qi): Ditto.
1424 (vec_extract_oddv8qi): Ditto.
1425 (vec_interleave_lowv4hi): Ditto.
1426 (vec_interleave_highv4hi): Ditto.
1427 (vec_interleave_lowv2si): Ditto.
1428 (vec_interleave_highv2si): Ditto.
1430 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1432 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
1433 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
1434 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
1435 (pa_c_mode_for_suffix): New.
1436 (TARGET_EXPAND_BUILTIN): Define.
1437 (TARGET_C_MODE_FOR_SUFFIX): Define.
1438 (pa_builtins): Define.
1439 (pa_init_builtins): Register __float128 type and init new support
1441 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
1442 * config/pa/quadlib.c (_U_Qfcopysign): New.
1444 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
1447 * explow.c (allocate_dynamic_stack_space): Do not assume more than
1448 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
1451 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1453 PR tree-optimization/47179
1454 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
1455 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
1457 2011-01-18 Richard Guenther <rguenther@suse.de>
1459 PR rtl-optimization/47216
1460 * emit-rtl.c: Include tree-flow.h.
1461 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
1462 of replicating it with different semantics.
1463 * Makefile.in (emit-rtl.o): Adjust.
1465 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1467 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually
1469 (cortex_a9_dp): Handle neon types correctly.
1471 2011-01-18 Jakub Jelinek <jakub@redhat.com>
1473 PR rtl-optimization/47299
1474 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
1475 subtarget. Use normal multiplication if both operands are
1477 * expmed.c (expand_widening_mult): Don't try to optimize constant
1478 multiplication if op0 has VOIDmode. Convert op1 constant to mode
1481 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1483 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
1484 spacing after 'e.g.', typos, comma, hyphenation.
1486 2011-01-17 Richard Henderson <rth@redhat.com>
1488 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
1489 (rx_restricted_mem_operand): New.
1490 (rx_shift_operand): Use register_operand.
1491 (rx_source_operand, rx_compare_operand): Likewise.
1492 * config/rx/rx.md (addsi3_flags): New expander.
1493 (adddi3): Rewrite as expander.
1494 (adc_internal, *adc_flags, adddi3_internal): New patterns.
1495 (subsi3_flags): New expander.
1496 (subdi3): Rewrite as expander.
1497 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
1499 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
1500 (rx_init_builtins): Remove sat builtin.
1501 (rx_expand_builtin): Likewise.
1502 * config/rx/rx.md (ssaddsi3): New.
1503 (*sat): Rename from sat. Represent the CC_REG input.
1505 * config/rx/predicates.md (rshift_operator): New.
1506 * config/rx/rx.c (rx_expand_insv): Remove.
1507 * config/rx/rx-protos.h: Update.
1508 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
1509 operand to the canonical position.
1510 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
1511 (*bitclr, *bitclr_in_memory): Similarly.
1512 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
1513 (insv): Retain the zero_extract in the expansion.
1515 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
1516 (bswaphi2, bitinvert, revw): Likewise.
1518 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
1519 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
1520 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
1521 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
1522 (bitset, bitset_in_memory): Likewise.
1523 (bitinvert, bitinvert_in_memory): Likewise.
1524 (bitclr, bitclr_in_memory): Likewise.
1525 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
1526 (rx_strend, rx_cmpstrn): Likewise.
1527 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
1528 (bitop peep2 patterns): Remove.
1530 * config/rx/rx.c (rx_match_ccmode): New.
1531 * config/rx/rx-protos.h: Update.
1532 * config/rx/rx.md (abssi2): Clobber, don't set flags.
1533 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
1534 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
1535 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
1536 (fix_truncsfsi2, floatsisf2): Likewise.
1537 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
1538 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
1539 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
1540 (*subsi3_flags, *xorsi3_flags): New.
1542 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
1544 * config/rx/rx.c (rx_print_operand): Remove workaround for
1545 unsplit comparison operations.
1547 * config/rx/rx.md (movsicc): Split after reload.
1548 (*movsicc): Merge *movsieq and *movsine via match_operator.
1549 (*stcc): New pattern.
1551 * config/rx/rx.c (rx_float_compare_mode): Remove.
1552 * config/rx/rx.h (rx_float_compare_mode): Remove.
1553 * config/rx/rx.md (cstoresi4): Split after reload.
1554 (*sccc): New pattern.
1556 * config/rx/predicates.md (label_ref_operand): New.
1557 (rx_z_comparison_operator): New.
1558 (rx_zs_comparison_operator): New.
1559 (rx_fp_comparison_operator): New.
1560 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
1561 Validate that the flags are set properly for the comparison.
1562 (rx_gen_cond_branch_template): Remove.
1563 (rx_cc_modes_compatible): Remove.
1564 (mode_from_flags): New.
1565 (flags_from_code): Rename from flags_needed_for_conditional.
1566 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
1567 (rx_select_cc_mode): Likewise.
1568 (rx_split_fp_compare): New.
1569 (rx_split_cbranch): New.
1570 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
1571 (*cbranchsi4): Use match_operator and rx_split_cbranch.
1572 (*cbranchsf4): Similarly.
1573 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
1574 match_operator and rx_split_cbranch.
1575 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
1576 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
1577 (*cmpsi): Rename from cmpsi.
1578 (*tstsi): Rename from tstsi.
1579 (*cmpsf): Rename from cmpsf; use CC_Fmode.
1580 (*conditional_branch): Rename from conditional_branch.
1581 (*reveresed_conditional_branch): Remove.
1582 (b<code>): Remove expander.
1583 * config/rx/rx-protos.h: Update.
1585 * config/rx/rx.c (rx_compare_redundant): Remove.
1586 * config/rx/rx.md (cmpsi): Don't use it.
1587 * config/rx/rx-protos.h: Update.
1589 * config/rx/rx-modes.def (CC_F): New mode.
1590 * config/rx/rx.c (rx_select_cc_mode): New.
1591 * config/rx/rx.h (SELECT_CC_MODE): Use it.
1592 * config/rx/rx-protos.h: Update.
1594 2011-01-17 Richard Henderson <rth@redhat.com>
1596 * except.c (dump_eh_tree): Fix stray ; after for statement.
1598 2011-01-17 Richard Guenther <rguenther@suse.de>
1600 PR tree-optimization/47313
1601 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
1602 handling before copying the body. Properly deal with
1603 by-reference result in SSA form.
1605 2011-01-17 Ian Lance Taylor <iant@google.com>
1608 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
1609 (struct_value_alias_set): Don't define.
1610 (sparc_option_override): Don't set sparc_sr_alias_set and
1611 struct_value_alias_set.
1612 (save_or_restore_regs): Use gen_frame_mem rather than calling
1614 (sparc_struct_value_rtx): Likewise.
1616 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
1619 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
1621 (_mm_maskstore_pd): Likewise.
1622 (_mm_maskload_ps): Likewise.
1623 (_mm_maskstore_ps): Likewise.
1624 (_mm256_maskload_pd): Change mask to __m256i.
1625 (_mm256_maskstore_pd): Likewise.
1626 (_mm256_maskload_ps): Likewise.
1627 (_mm256_maskstore_ps): Likewise.
1629 * config/i386/i386-builtin-types.def: Updated.
1630 (ix86_expand_special_args_builtin): Likewise.
1632 * config/i386/i386.c (bdesc_special_args): Update
1633 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
1634 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
1635 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
1636 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
1638 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
1639 Use <avxpermvecmode> on mask register.
1640 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
1642 2011-01-17 Olivier Hainque <hainque@adacore.com>
1643 Michael Haubenwallner <michael.haubenwallner@salomon.at>
1644 Eric Botcazou <ebotcazou@adacore.com>
1647 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
1648 if <= USHRT_MAX in 32-bit mode.
1650 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1652 * doc/install.texi (Configuration, Specific): Wrap long
1653 lines in examples. Allow line wrapping in long options
1654 and URLs where beneficial for PDF output.
1656 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
1658 * config/mips/mips.c (mips_classify_symbol): Don't return
1659 SYMBOL_PC_RELATIVE for nonlocal labels.
1661 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
1663 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
1665 2011-01-15 Jan Hubicka <jh@suse.cz>
1667 PR tree-optimization/47276
1668 * ipa.c (function_and_variable_visibility): Do not try to mark alias
1669 declarations as needed.
1671 2011-01-15 Martin Jambor <mjambor@suse.cz>
1673 * common.opt (fdevirtualize): New flag.
1674 * doc/invoke.texi (Option Summary): Document it.
1675 * opts.c (default_options_table): Add devirtualize flag.
1676 * ipa-prop.c (detect_type_change): Return immediately if
1677 devirtualize flag is not set.
1678 (detect_type_change_ssa): Likewise.
1679 (compute_known_type_jump_func): Likewise.
1680 (ipa_analyze_virtual_call_uses): Likewise.
1682 2011-01-14 Martin Jambor <mjambor@suse.cz>
1684 PR tree-optimization/45934
1685 PR tree-optimization/46302
1686 * ipa-prop.c (type_change_info): New type.
1687 (stmt_may_be_vtbl_ptr_store): New function.
1688 (check_stmt_for_type_change): Likewise.
1689 (detect_type_change): Likewise.
1690 (detect_type_change_ssa): Likewise.
1691 (compute_complex_assign_jump_func): Check for dynamic type change.
1692 (compute_complex_ancestor_jump_func): Likewise.
1693 (compute_known_type_jump_func): Likewise.
1694 (compute_scalar_jump_functions): Likewise.
1695 (ipa_analyze_virtual_call_uses): Likewise.
1696 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
1698 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1700 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
1701 * config/i386/i386.opt (msse5): New Alias.
1703 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1705 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
1706 * config/sparc/linux64.h (CC1_SPEC): Likewise.
1707 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1708 * config/sparc/sparc.h (CC1_SPEC): Likewise.
1710 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1712 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
1714 * config/sparc/linux64.h (CC1_SPEC): Likewise.
1715 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
1716 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
1717 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
1719 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
1721 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1723 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or
1726 2011-01-14 Mike Stump <mikestump@comcast.net>
1728 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
1729 * config/fr30/fr30.md: Likweise
1730 (movsi_push): Likewise.
1731 (movsi_pop): Likewise.
1732 (enter_func): Likewise.
1733 * config/moxie/moxie.md (movsi_push): Likewise.
1734 (movsi_pop): Likewise.
1736 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1738 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
1739 %{no_archive} %{exact_version}.
1740 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
1741 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
1742 %{no_archive} %{exact_version}.
1743 * config/mips/openbsd.h (LINK_SPEC): Likewise.
1744 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
1745 * config/mips/vxworks.h: Likewise.
1747 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1749 * config/microblaze/microblaze.h (ASM_SPEC): Remove
1752 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1754 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
1755 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
1757 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1759 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
1762 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1764 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
1766 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
1767 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
1769 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
1770 Don't handle -shlib.
1772 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1774 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
1775 (CC1_SPEC): Don't handle -profile.
1777 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1779 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
1780 * config/mips/mips.h (CC1_SPEC): Likewise.
1782 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1784 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
1785 * config/mips/mips.h (CC1_SPEC): Likewise.
1787 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1789 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
1790 * config/m32r/linux.h (LINK_SPEC): Likewise.
1791 * config/mips/linux.h (LINK_SPEC): Likewise.
1792 * config/mips/linux64.h (LINK_SPEC): Likewise.
1793 * config/sparc/linux.h (LINK_SPEC): Likewise.
1794 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1795 LINK_SPEC): Likewise.
1796 * config/xtensa/linux.h (LINK_SPEC): Likewise.
1798 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1800 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
1802 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
1804 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1806 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
1807 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
1809 2011-01-14 Joseph Myers <joseph@codesourcery.com>
1811 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
1813 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1815 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
1816 supports -Bstatic/-Bdynamic.
1817 * configure: Regenerate.
1819 2011-01-14 Jan Hubicka <jh@suse.cz>
1820 Jack Howarth <howarth@bromo.med.uc.edu>
1823 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
1824 when checking debug_info_level. Test write_symbols instead of
1825 debug_hooks->var_location when setting flag_var_tracking_uninit.
1827 2011-01-14 Richard Guenther <rguenther@suse.de>
1829 PR tree-optimization/47179
1830 * target.def (ref_may_alias_errno): New target hook.
1831 * targhooks.h (default_ref_may_alias_errno): Declare.
1832 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
1833 (default_ref_may_alias_errno): New function.
1834 * target.h (struct ao_ref_s): Declare.
1835 * tree-ssa-alias.c: Include target.h.
1836 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
1837 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
1838 (targhooks.o): Likewise.
1839 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
1840 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
1842 2011-01-14 Richard Guenther <rguenther@suse.de>
1844 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
1846 2011-01-14 Richard Guenther <rguenther@suse.de>
1848 PR tree-optimization/47280
1849 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
1851 (tree_ssa_forward_propagate_single_use_vars): Deal with
1852 CFG changes from associate_plusminus.
1854 2011-01-14 Richard Guenther <rguenther@suse.de>
1858 2011-01-11 Richard Guenther <rguenther@suse.de>
1860 PR tree-optimization/46076
1861 * tree-ssa.c (useless_type_conversion_p): Conversions from
1862 unprototyped to empty argument list function types are useless.
1864 2011-01-14 Richard Guenther <rguenther@suse.de>
1866 PR tree-optimization/47286
1867 * tree-ssa-structalias.c (new_var_info): Register variables are global.
1869 2011-01-14 Martin Jambor <mjambor@suse.cz>
1872 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
1874 2011-01-13 Anatoly Sokolov <aesok@post.ru>
1876 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
1877 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1878 * config/xtensa/xtensa.c (xtensa_libcall_value,
1879 xtensa_function_value_regno_p): New functions.
1880 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
1882 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
1885 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
1887 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
1888 New function prototype.
1889 * config/i386/winnt.c (i386_pe_assemble_visibility):
1890 Warn only if attribute was specified by user.
1892 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1895 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
1897 (floatunsdidf2_fcfidu): Ditto.
1899 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1901 * config/s390/s390.c (print_operand_address): Replace 'error' with
1902 'output_operand_lossage'.
1903 (print_operand): Likewise.
1905 2011-01-13 Jeff Law <law@redhat.com>
1907 PR rtl-optimization/39077
1908 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
1909 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
1910 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
1911 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
1912 * gcse.c (prune_insertions_deletions): New function.
1913 (compute_pre_data): Use it.
1915 2011-01-13 Dodji Seketeli <dodji@redhat.com>
1918 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
1920 (prune_unused_types_mark): Use it.
1922 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
1924 PR rtl-optimization/45352
1925 * sel-sched.c: Update copyright years.
1926 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1927 in the advancing loop when we have issued issue_rate insns.
1929 2011-01-12 Richard Henderson <rth@redhat.com>
1931 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
1932 (TARGET_MD_ASM_CLOBBERS): New.
1934 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
1935 (TARGET_DELEGITIMIZE_ADDRESS): New.
1937 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
1938 (clzsi2, *bsch): New patterns.
1940 * config/mn10300/mn10300.md (INT): New mode iterator.
1941 (*mov<INT>_clr): New pattern, and peep2 to generate it.
1943 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
1944 flag_split_wide_types.
1946 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
1947 (mn10300_trampoline_init): Rewrite without a template, an immediate
1948 load and a direct branch.
1949 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
1951 2011-01-12 Anatoly Sokolov <aesok@post.ru>
1953 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1954 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
1955 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
1956 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1958 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
1961 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
1964 2011-01-12 Jan Hubicka <jh@suse.cz>
1967 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
1968 (PLUGIN_COND_CLOSE): New macro.
1969 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
1971 2011-01-12 Richard Guenther <rguenther@suse.de>
1974 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
1975 register variables in a MEM_REF.
1977 2011-01-12 Joseph Myers <joseph@codesourcery.com>
1979 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
1980 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
1981 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
1982 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1983 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1984 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
1985 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
1986 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
1987 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
1988 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
1989 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
1990 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
1991 * config/gnu-user.h: New. Copied from linux.h.
1992 (LINUX_TARGET_STARTFILE_SPEC): Rename to
1993 GNU_USER_TARGET_STARTFILE_SPEC.
1994 (LINUX_TARGET_ENDFILE_SPEC): Rename to
1995 GNU_USER_TARGET_ENDFILE_SPEC.
1996 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
1997 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
1998 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
1999 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
2000 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
2001 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
2002 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
2003 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
2004 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
2005 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
2006 * config/arm/linux-eabi.h (CC1_SPEC): Use
2007 GNU_USER_TARGET_CC1_SPEC.
2008 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
2009 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
2010 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
2011 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
2012 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
2013 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
2014 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
2015 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
2017 2011-01-12 Richard Guenther <rguenther@suse.de>
2020 * doc/invoke.texi (ffast-math): Document it is turned on
2023 2011-01-12 Jan Hubicka <jh@suse.cz>
2025 PR tree-optimization/47233
2026 * opts.c (common_handle_option): Disable ipa-reference with profile
2029 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
2031 * c-parser.c (c_parser_objc_at_property_declaration): Improved
2034 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
2036 * c-parser.c (c_lex_one_token): Updated and reindented some
2037 comments. No changes in code.
2039 2011-01-11 Ian Lance Taylor <iant@google.com>
2041 * godump.c (go_output_var): Don't output the variable if there is
2042 already a type with the same name.
2044 2011-01-11 Ian Lance Taylor <iant@google.com>
2046 * godump.c (go_format_type): Don't generate float80.
2048 2011-01-11 Richard Henderson <rth@redhat.com>
2050 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
2051 declaration. Rewrite for both speed and size.
2052 (mn10300_address_cost_1): Remove.
2053 (mn10300_register_move_cost): New.
2054 (mn10300_memory_move_cost): New.
2055 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
2056 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
2057 extensions, shifts, BSWAP, CLZ.
2058 (mn10300_wide_const_load_uses_clr): Remove.
2059 (TARGET_REGISTER_MOVE_COST): New.
2060 (TARGET_MEMORY_MOVE_COST): New.
2061 * config/mn10300/mn10300-protos.h: Update.
2062 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
2064 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
2065 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
2066 * config/mn10300/mn10300-protos.h: Update.
2067 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
2068 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
2069 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
2070 (*test_int_bitfield, *test_byte_bitfield): Remove.
2071 (*bit_test, *subreg_bit_test): Remove.
2072 * config/mn10300/predicates.md (const_8bit_operand): Remove.
2074 * config/mn10300/constraints.md ("c"): Rename from "A".
2075 ("A", "D"): New constraint letters.
2076 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
2077 (fmssf4, fnmasf4, fnmssf4): Likewise.
2079 * config/mn10300/mn10300.md (isa): New attribute.
2080 (enabled): New attribute.
2082 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
2083 (abssf2, negsf2): Define only for hardware fp.
2084 (sqrtsf2): Reformat.
2085 (addsf3, subsf3, mulsf3): Merge expander and insn.
2087 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
2088 (DEBUGGER_AUTO_OFFSET): Remove.
2089 (DEBUGGER_ARG_OFFSET): Remove.
2091 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
2092 Emit register stores with the same offsets as the hardware.
2093 (mn10300_store_multiple_operation): Don't check that the register
2094 save offsets are monotonic.
2095 * config/mn10300/mn10300-protos.h: Update.
2097 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
2099 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
2100 in terms of the value on the stack, not the MDR register.
2102 2011-01-11 Jan Hubicka <jh@suse.cz>
2106 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
2107 (symbol_alias_set_destroy, symbol_alias_set_contains,
2108 propagate_aliases_backward): Declare.
2109 * lto-streamer-out.c (struct sets): New sturcture.
2110 (trivally_defined_alias): New function.
2111 (output_alias_pair_p): Rewrite.
2112 (output_unreferenced_globals): Fix output of alias pairs.
2113 (produce_symtab): Likewise.
2114 * ipa.c (function_and_variable_visibility): Set weak alias destination
2116 * varasm.c (symbol_alias_set_t): Remove.
2117 (symbol_alias_set_destroy): Export.
2118 (propagate_aliases_forward, propagate_aliases_backward): New functions
2120 (compute_visible_aliases): ... this one; remove.
2121 (trivially_visible_alias): New
2122 (trivially_defined_alias): New.
2123 (remove_unreachable_alias_pairs): Rewrite.
2124 (finish_aliases_1): Reorganize code checking if alias is defined.
2125 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
2128 2011-01-11 Richard Guenther <rguenther@suse.de>
2130 PR tree-optimization/46076
2131 * tree-ssa.c (useless_type_conversion_p): Conversions from
2132 unprototyped to empty argument list function types are useless.
2134 2011-01-11 Richard Guenther <rguenther@suse.de>
2137 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
2138 volatile MEMs as MEM_READONLY_P.
2140 2011-01-11 Richard Guenther <rguenther@suse.de>
2142 PR tree-optimization/47239
2143 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
2145 2011-01-11 Jeff Law <law@redhat.com>
2147 PR tree-optimization/47086
2148 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
2149 IVs from statements that might throw.
2151 2011-01-10 Jan Hubicka <jh@suse.cz>
2154 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
2156 2011-01-10 Jan Hubicka <jh@suse.cz>
2159 * profile.c (read_profile_edge_counts): Ignore profile inconistency
2160 when correcting profile.
2162 2011-01-10 Jan Hubicka <jh@suse.cz>
2165 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
2167 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
2168 Restore DECL_FINI_PRIORITY.
2170 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2172 * doc/gimple.texi: Fix quoting of multi-word return values in
2173 @deftypefn statements. Ensure presence of return value. Wrap
2174 overlong @deftypefn lines.
2175 (is_gimple_operand, is_gimple_min_invariant_address): Remove
2176 descriptions of removed functions.
2177 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
2178 of multi-word return value in @deftypefn statement.
2180 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2182 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
2183 (Conditional Expressions, Logical Operators)
2184 (Statement and operand traversals): Do not indent smallexample
2185 code. Fix duplicate function argument in example.
2187 2011-01-10 Jeff Law <law@redhat.com>
2189 PR tree-optimization/47141
2190 * ipa-split.c (split_function): Handle case where we are
2191 returning a value and the return block has a virtual operand phi.
2193 2011-01-10 Jan Hubicka <jh@suse.cz>
2195 PR tree-optimization/47234
2196 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
2197 (pass_feedback_split_functions): Declare.
2198 * passes.c (init_optimization_passes): Add ipa-split as subpass of
2200 * ipa-split.c (gate_split_functions): Update comments; disable
2201 split-functions for profile_arc_flag and branch_probabilities.
2202 (gate_feedback_split_functions): New function.
2203 (execute_feedback_split_functions): New function.
2204 (pass_feedback_split_functions): New global var.
2206 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
2209 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
2210 calling gimple_call_set_cannot_inline.
2212 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
2214 * config/darwin-sections.def: Remove unused section.
2216 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
2219 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
2221 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
2224 * c-parser.c (c_parser_declaration_or_fndef): Improved
2227 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
2229 * config/i386/winnt.c (i386_pe_start_function): Make sure
2230 to switch back to function's section.
2232 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
2236 * plugin.c: Move include of dlfcn.h from here...
2237 * system.h: ... to here.
2239 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2241 * doc/cpp.texi (C++ Named Operators): Fix markup for header
2243 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
2244 two extra empty pages in PDF output.
2246 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
2249 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
2250 for error recovery purposes behave as if it was not specified so
2251 that the default type is usd.
2253 2011-01-07 Jan Hubicka <jh@suse.cz>
2255 PR tree-optmization/46469
2256 * ipa.c (function_and_variable_visibility): Clear needed flags on
2257 nodes with external decls; handle weakrefs merging correctly.
2259 2011-01-07 Joseph Myers <joseph@codesourcery.com>
2261 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
2264 2011-01-07 Jan Hubicka <jh@suse.cz>
2266 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
2267 and no longer claim that gold is required for linker plugin.
2268 * configure: Regenerate.
2269 * gcc.c (PLUGIN_COND): New macro.
2270 (LINK_COMMAND_SPEC): Use it.
2271 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
2272 * config.in (HAVE_LTO_PLUGIN): New.
2273 * configure.ac (--with-lto-plugin): New parameter; autodetect
2276 2011-01-07 Jan Hubicka <jh@suse.cz>
2278 PR tree-optimization/46367
2279 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
2280 when we can update original.
2281 (cgraph_mark_inline_edge): Sanity check.
2282 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
2284 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2286 * config/spu/spu.h (ASM_COMMENT_START): Define.
2288 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
2292 (SWITCH_KEEP_FOR_GCC): Likewise.
2293 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
2294 (do_spec_1): Handle "%>".
2296 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
2298 2011-01-07 Jakub Jelinek <jakub@redhat.com>
2301 * config/i386/i386.c (ix86_delegitimize_address): If
2302 simplify_gen_subreg fails, return orig_x.
2305 * value-prof.c (gimple_stringop_fixed_value): Handle
2306 lhs of the call properly.
2308 2011-01-07 Jan Hubicka <jh@suse.cz>
2311 * lto-opt.c (lto_reissue_options): Set flag_shlib.
2313 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
2315 * target.def (function_switched_text_sections): New hook.
2316 * doc/tm.texi: Regenerated.
2317 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
2318 * final.c (default_function_switched_text_sections): New.
2319 (final_scan_insn): Call function_switched_text_sections when a
2320 mid-function section change occurs.
2321 * output.h (default_function_switched_text_sections): Declare.
2322 * config/darwin-protos.h (darwin_function_switched_text_sections):
2324 * config/darwin.c (darwin_function_switched_text_sections): New.
2325 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
2327 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
2329 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
2330 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
2331 the secondary code fragment when outputting for DWARF == 2.
2333 2011-01-07 Anatoly Sokolov <aesok@post.ru>
2335 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2336 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
2338 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
2339 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2341 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
2344 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
2345 when it is not empty.
2347 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
2350 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
2351 (case ${target}): Add btver1.
2352 * config/i386/driver-i386.c (host_detect_local_cpu): Let
2353 -march=native recognize btver1 processors.
2354 * config/i386/i386-c.c (ix86_target_macros_internal): Add
2355 btver1 def_and_undef
2356 * config/i386/i386.c (struct processor_costs btver1_cost): New
2358 (m_BTVER1): New definition.
2359 (m_AMD_MULTIPLE): Includes m_BTVER1.
2360 (initial_ix86_tune_features): Add btver1 tune.
2361 (processor_target_table): Add btver1 entry.
2362 (static const char *const cpu_names): Add btver1 entry.
2363 (software_prefetching_beneficial_p): Add btver1.
2364 (ix86_option_override_internal): Add btver1 instruction sets.
2365 (ix86_issue_rate): Add btver1.
2366 (ix86_adjust_cost): Add btver1.
2367 * config/i386/i386.h (TARGET_BTVER1): New definition.
2368 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
2369 (enum processor_type): Add PROCESSOR_BTVER1.
2370 * config/i386/i386.md (define_attr "cpu"): Add btver1.
2372 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2375 * config/i386/i386.c (legitimize_tls_address)
2376 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
2377 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
2378 (tls_initial_exec_64_sun): New pattern.
2380 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
2382 * doc/invoke.texi (Overall Options): Improve wording and markup
2383 of the description of -wrapper.
2385 2011-01-06 Joseph Myers <joseph@codesourcery.com>
2387 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
2388 rdynamic, threads): New Driver options.
2390 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2393 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
2394 if coming from .tdata.
2395 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
2397 2011-01-06 Jan Hubicka <jh@suse.cz>
2400 * collect2.c (main): Do not enable LTOmode when plugin is active.
2402 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2405 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
2406 --version output if supported.
2407 * configure: Regenerate.
2409 2011-01-06 Joseph Myers <joseph@codesourcery.com>
2411 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
2414 2011-01-06 Jakub Jelinek <jakub@redhat.com>
2417 * c-convert.c (convert): When converting a complex expression
2418 other than COMPLEX_EXPR to a different complex type, ensure
2419 c_save_expr is called instead of save_expr, unless in_late_binary_op.
2420 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
2421 when converting COMPLEX_TYPE.
2423 2011-01-06 Ira Rosen <irar@il.ibm.com>
2425 PR tree-optimization/47139
2426 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
2427 only the last reduction value is used outside the loop. Update
2430 2011-01-05 Joseph Myers <joseph@codesourcery.com>
2432 * config/rtems.opt: New.
2433 * config.gcc (*-*-rtems*): Use rtems.opt.
2435 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
2437 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
2438 processors do not support 3DNow instructions.
2440 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2442 * config/spu/spu.c (spu_option_override): Set parameter
2443 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
2445 2011-01-05 Jan Hubicka <jh@suse.cz>
2447 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
2448 at the command line.
2450 2011-01-05 Martin Jambor <mjambor@suse.cz>
2453 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
2454 deltas on streamed outgoing edges.
2455 (output_node_opt_summary): Output info for outgoing edges only when
2456 the node is in new parameter set.
2457 (output_cgraph_opt_summary): New parameter set, passed to the two
2458 aforementioned functions. Update its forward declaration and its
2461 2011-01-05 Tom Tromey <tromey@redhat.com>
2463 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
2464 operator to c_finish_omp_atomic.
2465 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
2466 (build_unary_op): Update.
2467 (build_modify_expr): Update.
2468 (build_asm_expr): Update.
2470 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2472 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
2473 newly inserted insns.
2475 (spu_emit_branch_hint): Likewise.
2476 (insert_hbrp_for_ilb_runout): Likewise.
2477 (spu_machine_dependent_reorg): Call df_finish_pass after
2478 schedule_insns returns.
2480 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2482 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
2484 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
2486 PR tree-optimization/47005
2487 * tree-sra.c (struct access): Add 'non_addressable' bit.
2488 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
2489 (decide_one_param_reduction): Return 0 if the parameter is passed by
2490 reference and one of the accesses in the group is non_addressable.
2492 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
2494 PR tree-optimization/47056
2495 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
2496 (mark_load): Likewise. Handle FUNCTION_DECL specially.
2497 (mark_store): Likewise. Pass STMT to ipa_record_reference.
2499 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
2501 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
2502 initializer. Skip view conversions from aggregate types.
2504 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
2507 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
2509 2011-01-04 Philipp Thomas <pth@suse.de>
2511 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
2514 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2516 * function.c (thread_prologue_and_epilogue_insns): Do not crash
2517 on empty epilogue sequences.
2519 2011-01-04 Joseph Myers <joseph@codesourcery.com>
2521 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
2522 non-static): New Driver options.
2524 2011-01-04 Jie Zhang <jie@codesourcery.com>
2527 * gcc.c (default_compilers[]): Set combinable field to 0
2528 for all assembly languages.
2530 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
2532 * config/mips/loongson3a.md: New file.
2533 * config/mips/mips.md: Include loongson3a.md.
2534 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
2537 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
2540 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
2541 instead of convert_memory_address_addr_space on the base expression.
2543 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2545 * config/spu/spu.c (spu_option_override): Update error text
2546 for bad -march= / -mtune= values.
2548 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2550 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
2551 if branch-hint optimization will be performed.
2553 2011-01-03 Jakub Jelinek <jakub@redhat.com>
2555 PR tree-optimization/47148
2556 * ipa-split.c (split_function): Convert arguments to
2557 DECL_ARG_TYPE if possible.
2559 PR tree-optimization/47155
2560 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
2563 PR rtl-optimization/47157
2564 * combine.c (try_combine): If undobuf.other_insn becomes
2565 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
2566 and set *new_direct_jump_p too.
2568 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
2570 PR tree-optimization/47021
2571 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
2573 2011-01-03 Jakub Jelinek <jakub@redhat.com>
2575 * gcc.c (process_command): Update copyright notice dates.
2576 * gcov.c (print_version): Likewise.
2577 * gcov-dump.c (print_version): Likewise.
2578 * mips-tfile.c (main): Likewise.
2579 * mips-tdump.c (main): Likewise.
2581 2011-01-03 Martin Jambor <mjambor@suse.cz>
2583 PR tree-optimization/46801
2584 * tree-sra.c (type_internals_preclude_sra_p): Check whether
2585 aggregate fields start at byte boundary instead of the bit-field flag.
2587 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
2590 * gcc.c (main): Revert revision 168407.
2592 2011-01-03 Martin Jambor <mjambor@suse.cz>
2594 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
2596 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2598 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
2599 vector optab to expand vector/scalar shift, update gimple to vector.
2601 2011-01-03 Martin Jambor <mjambor@suse.cz>
2603 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
2606 2011-01-03 Martin Jambor <mjambor@suse.cz>
2608 PR tree-optimization/46984
2609 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
2611 (cgraph_create_indirect_edge): Fixed line length.
2612 (cgraph_indirect_call_info): Declare.
2613 (cgraph_make_edge_direct) Update declaration.
2614 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
2615 (cgraph_create_indirect_edge): Use it.
2616 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
2618 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
2619 the new thunk_delta representation.
2620 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
2622 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
2623 (ipa_read_indirect_edge_info): Likewise.
2624 * lto-cgraph.c (output_edge_opt_summary): New function.
2625 (output_node_opt_summary): Call it on all outgoing edges.
2626 (input_edge_opt_summary): New function.
2627 (input_node_opt_summary): Call it on all outgoing edges.
2629 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
2632 * gcc.c (main): Don't check have_o when settting combine_inputs.
2634 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
2636 * regrename.c: Add general comment describing the pass.
2637 (struct du_head): Remove 'length' field.
2638 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
2639 (regrename_optimize): Do not sort chains. Rework comments, add others.
2640 Force renaming to the preferred class (if any) in the first pass and do
2641 not consider registers that belong to it in the second pass.
2642 (create_new_chain): Do not set 'length' field.
2643 (scan_rtx_reg): Likewise.
2645 2011-01-02 Jakub Jelinek <jakub@redhat.com>
2647 PR tree-optimization/47140
2648 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
2649 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
2652 PR rtl-optimization/47028
2653 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
2654 parm_birth_insn instead of at the beginning of first bb.
2656 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
2658 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
2659 Remove the word "see" before "@pxref".
2660 * doc/rtl.texi: Remove the word "see" before "@pxref".
2662 2011-01-01 Jan Hubicka <jh@suse.cz>
2664 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
2667 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
2670 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
2673 Copyright (C) 2011 Free Software Foundation, Inc.
2675 Copying and distribution of this file, with or without modification,
2676 are permitted in any medium without royalty provided the copyright
2677 notice and this notice are preserved.