1 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
5 * tree-flow.h (referenced_var_lookup): Add fn parameter.
7 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
8 * tree-flow-inline.h: Adjust.
9 * gimple-pretty-print.c: Adjust.
10 * tree-into-ssa.c: Adjust.
12 * cfgexpand.c: Adjust.
14 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
17 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18 (EXTRA_CONSTRAINT): Delete.
19 * config/iq2000/constraints.md: New file.
20 * config/iq2000/iq2000.md: Include it.
21 (define_insn ""): Delete.
22 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
23 unsupported constraint letters from patterns.
24 (call_value, call_value_internal1): Likewise.
25 (call_value_multiple_internal1): Likewise.
27 2011-02-15 Nick Clifton <nickc@redhat.com>
29 * config/mn10300/mn10300.c: Include tm-constrs.h.
30 (struct liw_data): New data structure describing an LIW candidate
32 (extract_bundle): Use struct liw_data. Allow small integer
33 operands for some instructions.
34 (check_liw_constraints): Use struct liw_data. Remove swapped
35 parameter. Add comments describing the checks. Fix bug when
36 assigning the source of liw1 to the source of liw2.
37 (liw_candidate): Delete. Code moved into extract_bundle.
38 (mn10300_bundle_liw): Use struct liw_data. Check constraints
40 * config/mn10300/predicates.md (liw_operand): New predicate.
41 Allows registers and small integer constants.
42 * config/mn10300/constraints.md (O): New constraint. Accetps
43 integers in the range -8 to +7 inclusive.
44 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
45 for moving a small integer into a register. Give this alternative
47 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
48 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
49 using the J,K,L and M constraints,
50 (liw): Remove SI mode on second operands to allow for HI and QI
52 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
55 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
58 * combine.c (cant_combine_insn_p): Check zero/sign extended
61 2011-02-15 Richard Guenther <rguenther@suse.de>
63 PR tree-optimization/47743
64 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
65 for a non-type-compatible VN lookup bail out.
67 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
69 * config/fr30/constraints.md: New file.
70 * config/fr30/fr30.md: Include it.
71 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
72 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
73 (EXTRA_CONSTRAINT): Delete.
75 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
77 * config/frv/constraints.md: New file.
78 * config/frv/predicates.md: Include it.
79 * config/frv/frv.c (reg_class_from_letter): Delete.
80 (frv_option_override): Don't initialize it.
81 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
82 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
83 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
84 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
85 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
86 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
87 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
88 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
89 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
90 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
91 (REG_CLASS_FROM_CONSTRAINT): Delete.
93 2011-02-15 Jakub Jelinek <jakub@redhat.com>
96 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
97 if frame size is 0 in a leaf function.
99 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
102 * config/alpha/host-osf.c: New file.
103 * config/alpha/x-osf: New file.
104 * config.host (alpha*-dec-osf*): Use it.
106 2011-02-14 Anatoly Sokolov <aesok@post.ru>
108 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
109 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
110 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
111 (rx_mode_dependent_address_p): ...this. Make static. Change argument
113 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
115 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
117 * config/stormy16/constraints.md: New file.
118 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
119 Use satisfies_constraint_Q and satisfies_constraint_R.
120 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
122 (xstormy16_legitiamte_address_p): Declare.
123 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
124 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
125 (EXTRA_CONSTRAINT): Delete.
126 * config/stormy16/stormy16.c (xstormy16_legitiamte_address_p):
128 (xstormy16_extra_constraint_p): Delete.
130 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
132 PR tree-optimization/46494
133 * loop-unroll.c (split_edge_and_insert): Adjust comment.
134 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
135 (pass_rtl_loop_done): Add TODO_verify_flow.
136 * fwprop.c (pass_rtl_fwprop): Likewise.
137 * modulo-sched.c (pass_sms): Likewise.
138 * tree-ssa-dom.c (pass_dominator): Likewise.
139 * tree-ssa-loop-ch.c (pass_ch): Likewise.
140 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
141 (pass_tree_loop_done): Likewise.
142 * tree-ssa-pre.c (execute_pre): Likewise.
143 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
144 * tree-ssa-sink.c (pass_sink_code): Likewise.
145 * tree-vrp.c (pass_vrp): Likewise.
147 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
149 * config/v850/constraints.md: New file.
150 * config/v850/v850.md: Include it.
151 * config/v850/predicates.md (reg_or_0_operand): Use
152 satisfies_constraint_G.
153 (special_symbolref_operand): Use satisfies_constraint_K.
154 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
155 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
156 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
157 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
158 (EXTRA_CONSTRAINT): Delete.
159 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
160 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
161 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
163 2011-02-14 Anatoly Sokolov <aesok@post.ru>
166 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
169 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
171 * config/mcore/constraints.md: New file.
172 * config/mcore/mcore.md: Include it.
173 * config/mcore/mcore.c (reg_class_from_letter): Delete.
174 * config/mcore/mcore.h (reg_class_from_letter): Delete.
175 (REG_CLASS_FROM_LETTER): Delete.
176 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
177 insn_const_int_ok_for_constraint.
178 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
179 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
180 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
181 (EXTRA_CONSTRAINT): Delete.
183 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
186 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
187 (IS_SIGHANDLER): Define.
188 (sparc64_is_sighandler): New function, split off from
189 sparc64_fallback_frame_state.
190 (sparc_is_sighandler): New function, split off from
191 sparc_fallback_frame_state.
192 (sparc64_fallback_frame_state): Merge with ...
193 (sparc_fallback_frame_state): ... this into ...
194 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
195 Change new_cfa to long.
196 Remove regs_off, fpu_save_off, fpu_save.
197 Define nframes, mctx.
198 Use IS_SIGHANDLER, handler_args, mctx, walk stack instead of
201 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
203 * go/gccgo.texi (Top, Import and Export): Fix a typo and a
206 2011-02-14 Andriy Gapon <avg@freebsd.org>
209 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
211 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
213 * configure: Regenerate.
215 2011-02-12 Joseph Myers <joseph@codesourcery.com>
218 * gcc.c (asm_options): Correct spec matching --target-help.
220 2011-02-12 Martin Jambor <mjambor@suse.cz>
222 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
223 to gimple call error.
225 2011-02-12 Mike Stump <mikestump@comcast.net>
227 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
228 comments in backslash regions.
230 2011-02-12 Mike Stump <mikestump@comcast.net>
231 Jakub Jelinek <jakub@redhat.com>
232 Iain Sandoe <iains@gcc.gnu.org>
235 * dwarf2out.c (output_cfa_loc): When required, apply the
236 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
237 (output_loc_sequence): Likewise.
238 (output_loc_operands_raw): Likewise.
239 (output_loc_sequence_raw): Likewise.
240 (output_cfa_loc): Likewise.
241 (output_loc_list): Suppress register number adjustment when
242 calling output_loc_sequence()
243 (output_die): Likewise.
245 2011-02-12 Anatoly Sokolov <aesok@post.ru>
247 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
249 * config/xtensa/xtensa.c (xtensa_register_move_cost,
250 xtensa_memory_move_cost): New functions.
251 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
253 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
256 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
257 in the current directory.
258 * configure: Rebuilt.
260 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
262 * config/darwin.c (darwin_override_options): Add a hunk missed
263 from the commit of r168571. Trim comment line lengths and
264 correct indents of the preceding block.
266 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
268 * gcc.c (driver_handle_option): Concatenate the argument to -F with
271 2011-02-11 Joseph Myers <joseph@codesourcery.com>
273 * common.opt (nostartfiles): New Driver option.
275 2011-02-11 Xinliang David Li <davidxl@google.com>
277 PR tree-optimization/47707
278 * tree-chrec.c (convert_affine_scev): Keep type precision.
280 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
282 PR tree-optimization/47420
283 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
285 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
287 PR rtl-optimization/47614
288 * rtl.h (check_for_inc_dec): Declare.
289 * dse.c (check_for_inc_dec): Externalize...
290 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
291 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
293 2011-02-11 Joseph Myers <joseph@codesourcery.com>
296 * gcc.c (main): Do not compile inputs if there were errors in
298 * opts-common.c (read_cmdline_option): Check for wrong language
299 after other error checks.
301 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
303 * cgraph.c: Fix comment typos.
304 * cgraph.h: Likewise.
305 * cgraphunit.c: Likewise.
306 * ipa-cp.c: Likewise.
307 * ipa-inline.c: Likewise.
308 * ipa-prop.c: Likewise.
309 * ipa-pure-const.c: Likewise.
310 * ipa-ref.c: Likewise.
311 * ipa-reference.c: Likewise.
313 2011-02-11 Jakub Jelinek <jakub@redhat.com>
316 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
318 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
321 * doc/sourcebuild.texi (Require Support): Document
322 dg-require-ascii-locale.
324 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
326 * doc/lto.texi (Write summary): Fix missing parentheses.
328 2011-02-10 DJ Delorie <dj@redhat.com>
330 * config/m32c/m32c.c (m32c_option_override): Disable
331 -fcombine-stack-adjustments until flag value tracking and compare
332 optimization can be rewritten.
334 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
336 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
338 (PROCESSOR_DEFAULT64): Likewise.
340 2011-02-10 Richard Henderson <rth@redhat.com>
342 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
343 change from 2011-02-03.
344 * config/rx/rx.c (flags_from_code): Likewise.
345 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
346 is valid, n/pz otherwise.
347 (rx_select_cc_mode): Return CCmode if Y is not zero.
349 2011-02-10 Richard Guenther <rguenther@suse.de>
351 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
353 2011-02-10 Richard Guenther <rguenther@suse.de>
355 PR tree-optimization/47677
356 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
358 2011-02-10 Jakub Jelinek <jakub@redhat.com>
361 * combine.c (make_compound_operation): Only change shifts into
362 multiplication for SCALAR_INT_MODE_P.
364 2011-02-10 Jie Zhang <jie@codesourcery.com>
368 2011-02-05 Jie Zhang <jie@codesourcery.com>
370 * web.c (entry_register): Don't clobber the number of the
371 first uninitialized reference in used[].
373 2011-02-09 Richard Guenther <rguenther@suse.de>
375 PR tree-optimization/47664
376 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
379 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
383 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
385 (PROCESSOR_DEFAULT64): Same.
386 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
388 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
390 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
392 2011-02-09 Martin Jambor <mjambor@suse.cz>
395 * tree-sra.c (struct access): New flags grp_scalar_read and
396 grp_scalar_write. Changed description of assignment read and write
398 (dump_access): Dump new flags, reorder all of them.
399 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
400 to detect multiple scalar reads.
401 (analyze_access_subtree): Use the new scalar read write flags instead
402 of the old flags. Adjusted comments.
404 2011-02-08 DJ Delorie <dj@redhat.com>
407 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
410 2011-02-08 Joseph Myers <joseph@codesourcery.com>
412 * config/m68k/uclinux.opt: New.
413 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
415 2011-02-08 Joseph Myers <joseph@codesourcery.com>
417 * config/cris/elf.opt (sim): New Driver option.
419 2011-02-08 Joseph Myers <joseph@codesourcery.com>
421 * config/xtensa/elf.opt: New.
422 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
424 2011-02-08 Joseph Myers <joseph@codesourcery.com>
426 * config/vax/elf.opt: New.
427 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
429 2011-02-08 Joseph Myers <joseph@codesourcery.com>
431 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
433 2011-02-08 Joseph Myers <joseph@codesourcery.com>
435 * config/gnu-user.opt: New.
436 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
437 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
438 *-*-uclinux*): Use gnu-user.opt.
440 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
442 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
443 * config/i386/gnu.h (CPP_SPEC): Likewise.
445 2011-02-08 Ian Lance Taylor <iant@google.com>
447 * common.opt (fcx-limited-range): Add SetByCombined flag.
448 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
449 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
450 (fassociative-math, freciprocal-math): Likewise.
451 (funsafe-math-optimizations): Likewise.
452 * opth-gen.awk: Handle SetByCombined.
453 * optc-gen.awk: Likewise.
454 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
455 (set_unsafe_math_optimizations_flags): Likewise.
456 * doc/options.texi (Option properties): Document SetByCombined.
458 2011-02-08 Joseph Myers <joseph@codesourcery.com>
460 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
461 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
462 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
463 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
464 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
466 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
468 PR tree-optimization/46834
469 PR tree-optimization/46994
470 PR tree-optimization/46995
471 * graphite-sese-to-poly.c (used_outside_reduction): New.
472 (detect_commutative_reduction): Call used_outside_reduction.
473 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
474 translate_scalar_reduction_to_array only when at least one
475 loop-phi/close-phi tuple has been detected.
477 2011-02-08 Richard Guenther <rguenther@suse.de>
480 * tree-vect-generic.c (expand_vector_operations_1): Update
482 (expand_vector_operations): ... not here. Cleanup EH info
483 and the CFG if required.
485 2011-02-08 Richard Guenther <rguenther@suse.de>
487 PR tree-optimization/47641
488 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
489 require type compatibility.
491 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
493 * gimple-low.c (lower_function_body): Don't remove the location of
494 the return statement here.
495 (lower_gimple_return): Do it here instead but only if the return
496 statement is actually used twice.
498 2011-02-08 Richard Guenther <rguenther@suse.de>
500 PR tree-optimization/47632
501 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
502 unused up_to_stmt parameter, return whether cfg-cleanup is
503 necessary, remove EH info properly.
504 (forward_propagate_into_gimple_cond): Adjust caller.
505 (forward_propagate_into_cond): Likewise.
506 (forward_propagate_comparison): Likewise.
507 (tree_ssa_forward_propagate_single_use_vars): Make
508 forward_propagate_comparison case similar to the two others.
510 2011-02-08 Nick Clifton <nickc@redhat.com>
512 * config/mn10300/mn10300.opt (mliw): New command line option.
513 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
514 (liw_bundling): New automaton.
515 (liw): New attribute.
516 (liw_op): New attribute.
517 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
518 (movsi_internal): Add LIW attributes.
522 (addsi3): Separate register and immediate alternatives.
530 * config/mn10300/mn10300.c (liw_op_names): New
531 (mn10300_print_operand): Handle 'W' operand descriptor.
532 (extract_bundle): New function.
533 (check_liw_constraints): New function.
534 (liw_candidate): New function.
535 (mn10300_bundle_liw): New function.
536 (mn10300_reorg): New function.
537 (TARGET_MACHINE_DEPENDENT_REORG): Define.
538 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
539 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
540 __LIW__ or __NO_LIW__.
541 * doc/invoke.texi: Describe the -mliw command line option.
543 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
545 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
546 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
547 pthread_mutex_unlock): Remove.
548 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
549 * config/pa/t-pa64: Likewise.
550 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
551 shared libc if not linking against libpthread.
552 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
554 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
557 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
558 on 10.6 and later to ensure that we always use the unwinder from
559 the system. Only add -no_compact_unwind when tarteting darwin
562 2011-02-07 Steve Ellcey <sje@cup.hp.com>
565 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
566 (vec_interleave_lowv2sf): Ditto.
567 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
568 (vec_extract_oddv2sf): Ditto.
570 2011-02-07 Mike Stump <mikestump@comcast.net>
573 Add __ieee_divdc3 entry point.
574 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
576 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
577 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
578 * config/darwin.c (darwin_rename_builtins): Add.
579 * config/darwin-protos.h (darwin_rename_builtins): Add.
581 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
584 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
587 2011-02-07 Mike Stump <mikestump@comcast.net>
589 * config/darwin.opt (mmacosx-version-min): Update default OS version.
591 2011-02-07 Denis Chertykov <chertykov@gmail.com>
594 * config/avr/libgcc.S (exit): Move .endfunc
596 2011-02-07 Richard Guenther <rguenther@suse.de>
598 PR tree-optimization/47615
599 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
600 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
601 (run_scc_vn): Initialize it.
602 (visit_reference_op_load): Use it.
603 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
605 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
607 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
608 DImode trapping arithmetic libfuncs.
610 2011-02-07 Richard Guenther <rguenther@suse.de>
612 PR tree-optimization/47621
613 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
615 (execute_update_addresses_taken): ... here. Make it more
616 conservative in what we accept.
618 2011-02-06 Joseph Myers <joseph@codesourcery.com>
620 * config/sparc/freebsd.h (ASM_SPEC): Define.
621 * config/sparc/vxworks.h (ASM_SPEC): Define.
623 2011-02-06 Joseph Myers <joseph@codesourcery.com>
625 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
627 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
629 * doc/invoke.texi: Remove reference to compiler internals from
632 * reg-notes.def: Remove REG_VALUE_PROFILE.
633 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
635 2011-02-05 Jakub Jelinek <jakub@redhat.com>
638 * varasm.c (default_section_type_flags): If decl is NULL,
639 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
641 2011-02-05 Jie Zhang <jie@codesourcery.com>
644 * web.c (entry_register): Don't clobber the number of the
645 first uninitialized reference in used[].
647 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
649 PR tree-optimization/46194
650 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
651 (build_classic_dist_vector_1): Do not represent classic distance
652 vectors when the access functions are variating in different loops.
654 2011-02-04 Joseph Myers <joseph@codesourcery.com>
656 * config/mips/iris6.opt: New.
657 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
659 2011-02-04 Richard Henderson <rth@redhat.com>
660 Steve Ellcey <sje@cup.hp.com>
663 * config/ia64/predicates.md (mux1_brcst_element): New.
664 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
665 * config/ia64/ia64.c (ia64_unpack_assemble): New.
666 (ia64_unpack_sign): New.
667 (ia64_expand_unpack): Rewrite using new routines.
668 (ia64_expand_widen_sum): Ditto.
669 (ia64_expand_dot_prod_v8qi): Ditto.
670 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
671 routines, add endian check.
672 (pmpy2_even): Rename from pmpy2_r, add endian check.
673 (pmpy2_odd): Rename from pmpy2_l, add endian check.
674 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
675 (vec_widen_smult_hi_v4hi): Ditto.
676 (vec_widen_umult_lo_v4hi): Ditto.
677 (vec_widen_umult_hi_v4hi): Ditto.
678 (mulv2si3): Change endian checks.
679 (sdot_prodv4hi): Rewrite with new calls.
680 (udot_prodv4hi): New.
681 (vec_pack_ssat_v4hi): Add endian check.
682 (vec_pack_usat_v4hi): Ditto.
683 (vec_pack_ssat_v2si): Ditto.
684 (max1_even): Rename from max1_r, add endian check.
685 (max1_odd): Rename from max1_l, add endian check.
686 (*mux1_rev): Format change.
690 (*mux1_brcst_v8qi): Use new predicate.
691 (vec_extract_evenv8qi): Remove endian check.
692 (vec_extract_oddv8qi): Ditto.
693 (vec_interleave_lowv4hi): Format change.
694 (vec_interleave_highv4hi): Ditto.
695 (mix2_even): Rename from mix2_r, add endian check.
696 (mix2_odd): Rename from mux2_l, add endian check.
697 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
698 (vec_extract_evenodd_helper): Format change.
699 (vec_extract_evenv4hi): Remove endian check.
700 (vec_extract_oddv4hi): Remove endian check.
701 (vec_interleave_lowv2si): Format change.
702 (vec_interleave_highv2si): Format change.
703 (vec_initv2si): Remove endian check.
704 (vecinit_v2si): Add endian check.
705 (reduc_splus_v2sf): Add endian check.
706 (reduc_smax_v2sf): Ditto.
707 (reduc_smin_v2sf): Ditto.
708 (vec_initv2sf): Remove endian check.
709 (fpack): Add endian check.
710 (fswap): Add endian check.
711 (vec_interleave_highv2sf): Add endian check.
712 (vec_interleave_lowv2sf): Add endian check.
713 (fmix_lr): Add endian check.
714 (vec_setv2sf): Format change.
715 (*vec_extractv2sf_0_be): Use shift to extract operand.
716 (*vec_extractv2sf_1_be): New.
717 (vec_pack_trunc_v4hi): Add endian check.
718 (vec_pack_trunc_v2si): Format change.
720 2011-02-04 Jakub Jelinek <jakub@redhat.com>
723 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
724 do bb, locus and block comparison and disallow loads if it is not set.
725 (stmt_is_replaceable_p): New function.
726 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
728 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
729 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
731 * tree-flow.h (stmt_is_replaceable_p): New prototype.
733 2011-02-04 Joseph Myers <joseph@codesourcery.com>
735 * config/rs6000/xilinx.opt: New.
736 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
738 2011-02-04 Joseph Myers <joseph@codesourcery.com>
740 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
742 2011-02-03 Anatoly Sokolov <aesok@post.ru>
744 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
745 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
746 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
747 secondary_reload_info, xtensa_secondary_reload): Remove.
748 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
749 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
750 (xtensa_preferred_reload_class): Make static. Change return and
751 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
752 Use CONST_DOUBLE_P predicate.
753 (xtensa_preferred_output_reload_class): New function.
754 (xtensa_secondary_reload): Make static.
756 2011-02-03 Joseph Myers <joseph@codesourcery.com>
758 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
759 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
760 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
762 2011-02-03 Jakub Jelinek <jakub@redhat.com>
765 * output.h (SECTION_RELRO): Define.
766 (SECTION_MACH_DEP): Adjust.
767 (get_variable_section): New prototype.
768 * varpool.c (varpool_finalize_named_section_flags): New function.
769 (varpool_assemble_pending_decls): Call it.
770 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
771 * cgraphunit.c (cgraph_output_in_order): Call
772 varpool_finalize_named_section_flags.
773 * varasm.c (get_section): Allow section flags conflicts between
774 relro and read-only sections if the section hasn't been declared yet.
775 Set SECTION_OVERRIDE after diagnosing section type conflict.
776 (get_variable_section): No longer static.
777 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
778 readonly sections that need relocations.
779 (decl_readonly_section_1): New function.
780 (decl_readonly_section): Use it.
783 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
784 Steve Ellcey <sje@cup.hp.com>
787 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
788 if section attribute used.
790 2011-02-03 Jakub Jelinek <jakub@redhat.com>
792 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
793 * config/darwin.c (SECTION_NO_ANCHOR): Define.
794 (darwin_init_sections): Remove assertion.
796 2011-02-03 Nick Clifton <nickc@redhat.com>
798 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
800 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
801 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
802 instead of "n" and "pz".
803 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
806 2011-02-03 Jakub Jelinek <jakub@redhat.com>
809 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
810 fma, expand FMA_EXPR as fma{,f,l} call.
813 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
814 copy them into a unsigned char variable and pass address of it to
815 lto_output_data_stream.
818 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
819 around backend_init_target and lang_dependent_init_target calls.
820 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
821 (verify_cgraph_node): Don't call set_cfun here. Use
822 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
823 Set error_found for incorrectly represented calls to thunks.
825 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
828 PR rtl-optimization/43494
829 * rtl.h (for_each_inc_dec_fn): New type.
830 (for_each_inc_dec): Declare.
831 * rtlanal.c (struct for_each_inc_dec_ops): New type.
832 (for_each_inc_dec_find_inc_dec): New fn.
833 (for_each_inc_dec_find_mem): New fn.
834 (for_each_inc_dec): New fn.
835 * dse.c (struct insn_size): Remove.
836 (replace_inc_dec, replace_inc_dec_mem): Remove.
837 (emit_inc_dec_insn_before): New fn.
838 (check_for_inc_dec): Use it, along with for_each_inc_dec.
839 (canon_address): Pass mem modes to cselib_lookup.
840 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
841 (cselib_lookup_from_insn): Likewise.
842 (cselib_subst_to_values): Likewise.
843 * cselib.c (find_slot_memmode): New var.
844 (cselib_find_slot): New fn. Use it instead of
845 htab_find_slot_with_hash everywhere.
846 (entry_and_rtx_equal_p): Use find_slot_memmode.
847 (autoinc_split): New fn.
848 (rtx_equal_for_cselib_p): Rename and implement in terms of...
849 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
850 Deal with autoinc. Special-case recursion into MEMs.
851 (cselib_hash_rtx): Likewise.
852 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
853 address and MEM modes.
854 (cselib_subst_to_values): Add memmode, pass it on.
856 (cselib_lookup): Add memmode argument, pass it on.
857 (cselib_lookup_from_insn): Add memmode.
858 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
859 (struct cselib_record_autoinc_data): New.
860 (cselib_record_autoinc_cb): New fn.
861 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
862 mode to cselib_lookup. Reset autoinced REGs here instead of...
863 (cselib_process_insn): ... here.
864 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
866 (add_uses): Likewise, also to cselib_subst_to_values.
867 (add_stores): Likewise.
868 * sched-deps.c (add_insn_mem_dependence): Pass mode to
869 cselib_subst_to_values.
870 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
871 * gcse.c (do_local_cprop): Adjusted.
872 * postreload.c (reload_cse_simplify_set): Adjusted.
873 (reload_cse_simplify_operands): Adjusted.
874 * sel-sched-dump (debug_mem_addr_value): Pass mode.
876 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
878 PR tree-optimization/45122
879 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
880 unsafe assumptions when there's more than one loop exit.
882 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
885 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
886 Document using vector double with the load/store builtins, and
887 that the load/store builtins always use Altivec instructions.
889 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
890 to use altivec memory instructions, even on VSX.
891 (vector_altivec_store_<mode>): Ditto.
893 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
896 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
897 V2DF, V2DI support to load/store overloaded builtins.
899 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
900 altivec load/store builtins for V2DF/V2DI types.
902 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
903 set avoid indexed addresses on power6 if -maltivec.
904 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
905 vector_altivec_load/vector_altivec_store builtins.
906 (altivec_expand_st_builtin): Ditto.
907 (altivec_expand_builtin): Add VSX memory builtins.
908 (rs6000_init_builtins): Add V2DI types to internal types.
909 (altivec_init_builtins): Add support for V2DF/V2DI altivec
911 (rs6000_address_for_altivec): Insure memory address is appropriate
914 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
915 vec_vsx_ld and vec_vsx_st.
916 (vsx_store_<mode>): Ditto.
918 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
919 variables to hold long long types for VSX vector memory builtins.
920 (RS6000_BTI_unsigned_long_long): Ditto.
921 (long_long_integer_type_internal_node): Ditti.
922 (long_long_unsigned_type_internal_node): Ditti.
924 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
925 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
926 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
928 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
932 2011-02-02 Joseph Myers <joseph@codesourcery.com>
934 * config/pa/pa-hpux10.opt: New.
935 * config/hpux11.opt (pthread): New Driver option.
936 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
937 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
939 2011-02-02 Joseph Myers <joseph@codesourcery.com>
941 * config/ia64/vms.opt: New.
942 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
944 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
947 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
948 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
950 (vsx_floatuns<VSi><mode>2): Ditto.
951 (vsx_fix_trunc<mode><VSi>2): Ditto.
952 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
954 2011-02-02 Joseph Myers <joseph@codesourcery.com>
956 * config/i386/djgpp.opt (posix): New Driver option.
958 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
960 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
961 Move to the unsupported targets list.
963 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
965 PR rtl-optimization/47525
966 * df-scan.c: Update copyright years.
967 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
968 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
970 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
972 * config/i386/sysv4.h (TARGET_VERSION): Remove.
973 (SUBTARGET_RETURN_IN_MEMORY): Remove.
974 (ASM_OUTPUT_ASCII): Remove.
975 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
977 2011-02-02 Jeff Law <law@redhat.com>
980 * reload.c (find_reloads_address): Handle reg+d address where both
981 components are invalid by reloading the entire address.
983 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
984 Richard Guenther <rguenther@suse.de>
986 PR tree-optimization/40979
988 * passes.c (init_optimization_passes): After LIM call copy_prop
990 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
992 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
994 PR tree-optimization/47576
995 PR tree-optimization/47555
996 * doc/invoke.texi (scev-max-expr-complexity): Documented.
997 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
998 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
999 * tree-scalar-evolution.c (follow_ssa_edge): Use
1000 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
1002 2011-02-02 Richard Guenther <rguenther@suse.de>
1004 PR tree-optimization/47566
1005 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
1007 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
1011 * tree-inline.c (declare_return_variable): Remove unused caller
1016 * tree-flow-inline.h (clear_is_used, is_used_p): New.
1017 * cfgexpand.c (account_used_vars_for_block): Use them.
1018 * tree-nrv.c (tree_nrv): Likewise.
1019 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
1020 (dump_scope_block): Likewise.
1021 (remove_unused_locals): Likewise.
1025 * tree-inline.c (declare_return_variable): Add result decl to
1026 local decls only once.
1027 * gimple-low.c (record_vars_into): Mark newly-created variables
1030 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
1036 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
1038 (no_real_insns_p, schedule_block, set_priorities): Drop special
1039 treatment of boundary debug insns.
1040 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
1041 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
1042 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
1043 (BOUNDARY_DEBUG_INSN_P): Likewise.
1044 (SCHEDULE_DEBUG_INSN_P): Likewise.
1045 * sched-rgn.c (init_ready_list): Drop special treatment of
1046 boundary debug insns.
1047 * final.c (rest_of_clean_state): Clear notes' BB.
1049 2011-02-01 Joseph Myers <joseph@codesourcery.com>
1051 * config/openbsd.opt (assert=): New Driver option.
1053 2011-02-01 Joseph Myers <joseph@codesourcery.com>
1055 * config/i386/nto.opt: New.
1056 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
1058 2011-02-01 Joseph Myers <joseph@codesourcery.com>
1060 * config/i386/netware.opt: New.
1061 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
1063 2011-02-01 Joseph Myers <joseph@codesourcery.com>
1065 * config/interix.opt (posix): New Driver option.
1067 2011-02-01 DJ Delorie <dj@redhat.com>
1069 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
1071 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
1074 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
1076 PR tree-optimization/47561
1077 * toplev.c (process_options): Print the Graphite flags. Add
1078 flag_loop_flatten to the list of options requiring Graphite.
1080 2011-02-01 Joseph Myers <joseph@codesourcery.com>
1082 * config/i386/cygming.opt (posix): New Driver option.
1084 2011-02-01 Joseph Myers <joseph@codesourcery.com>
1086 * config/arm/vxworks.opt: New.
1087 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
1089 2011-02-01 Joseph Myers <joseph@codesourcery.com>
1091 * config/alpha/elf.opt: New.
1092 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
1093 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
1095 2011-02-01 Richard Guenther <rguenther@suse.de>
1097 PR tree-optimization/47559
1098 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
1099 store-motion on references that can throw.
1101 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
1103 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
1104 * tree-pass.h (TDF_CSELIB): New macro.
1105 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
1106 cselib_lookup): Check for it rather than for TDF_DETAILS.
1108 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
1111 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
1114 * opts.c (finish_options): Don't add x_aux_base_name if it is
1117 2011-02-01 Richard Guenther <rguenther@suse.de>
1119 PR tree-optimization/47555
1121 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
1123 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
1125 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
1128 * config/lm32/t-lm32: Add multilib for all CPU options.
1130 2011-02-01 Richard Guenther <rguenther@suse.de>
1132 PR tree-optimization/47541
1133 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
1134 sure to have a field at offset zero.
1136 2011-01-31 Joseph Myers <joseph@codesourcery.com>
1138 * config/arc/arc.opt (EB, EL): New Driver options.
1140 2011-01-31 Joseph Myers <joseph@codesourcery.com>
1142 * config/alpha/osf5.opt: New.
1143 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
1145 2011-01-31 Joseph Myers <joseph@codesourcery.com>
1147 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
1149 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
1151 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
1153 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
1154 is an alias of -floop-interchange and that it requires the
1155 Graphite infrastructure.
1156 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
1157 flag_loop_interchange based on the value of flag_tree_loop_linear.
1159 2011-01-31 Jakub Jelinek <jakub@redhat.com>
1160 Richard Guenther <rguenther@suse.de>
1162 PR tree-optimization/47538
1163 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
1164 type instead of r1type, except for comparisons. For right
1165 shifts and comparisons punt if there are mismatches in
1166 sizetype vs. non-sizetype types.
1168 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1170 * doc/sourcebuild.texi (Effective-Target Keywords): Document
1173 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1175 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
1177 * configure: Regenerate.
1179 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1181 * configure.ac (gcc_cv_ld_static_option): Define.
1182 (gcc_cv_ld_dynamic_option): Define.
1183 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
1185 (HAVE_LD_STATIC_DYNAMIC): Update message.
1186 (LD_STATIC_OPTION): Define.
1187 (LD_DYNAMIC_OPTION): Define.
1188 * configure: Regenerate.
1189 * config.in: Regenerate.
1190 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
1191 HAVE_LD_STATIC_DYNAMIC]: Use them.
1193 2011-01-31 Nick Clifton <nickc@redhat.com>
1195 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
1196 registers inside interrupt handlers if the handler is not a leaf
1199 2011-01-31 Nick Clifton <nickc@redhat.com>
1201 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
1202 reg_renumber returning an INVALID_REGNUM.
1204 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
1207 * doc/install.texi: Document host options discarded when cross
1208 configuring target libraries.
1210 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
1213 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
1216 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
1218 (no_real_insns_p, schedule_block, set_priorities): Drop special
1219 treatment of boundary debug insns.
1220 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
1221 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
1222 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
1223 (BOUNDARY_DEBUG_INSN_P): Likewise.
1224 (SCHEDULE_DEBUG_INSN_P): Likewise.
1225 * sched-rgn.c (init_ready_list): Drop special treatment of
1226 boundary debug insns.
1227 * final.c (rest_of_clean-state): Clear notes' BB.
1229 2011-01-31 Alan Modra <amodra@gmail.com>
1231 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
1232 toc relative expressions as we do in print_operand_address.
1234 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
1236 * doc/extend.texi: Follow spelling conventions.
1237 * doc/invoke.texi: Fix a typo.
1239 2011-01-30 Joseph Myers <joseph@codesourcery.com>
1241 * config/hpux11.opt: New.
1242 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
1243 ia64*-*-hpux*): Use hpux11.opt.
1245 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
1247 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
1250 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
1252 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
1255 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
1257 * doc/install.texi (Binaries): Remove outdated reference for
1258 Motorola 68HC11/68HC12 downloads.
1260 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
1262 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
1265 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1268 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
1271 2011-01-28 Ahmad Sharif <asharif@google.com>
1273 * value-prof.c (check_counter): Corrected error message.
1275 2011-01-29 Jie Zhang <jie@codesourcery.com>
1277 * config/arm/arm.c (arm_legitimize_reload_address): New.
1278 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
1279 arm_legitimize_reload_address.
1280 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
1282 2011-01-28 Ian Lance Taylor <iant@google.com>
1284 * godump.c (go_define): Ignore macros whose definitions include
1285 two adjacent operands.
1287 2011-01-28 Jakub Jelinek <jakub@redhat.com>
1290 * varasm.c (force_const_mem): Store copy of x in desc->constant
1291 instead of x itself.
1292 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
1293 itself into REG_EQUAL note.
1295 2011-01-28 Joseph Myers <joseph@codesourcery.com>
1297 * config/freebsd.opt (posix, rdynamic): New Driver options.
1299 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1301 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
1303 * configure: Regenerate.
1305 2011-01-27 Joseph Myers <joseph@codesourcery.com>
1307 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
1308 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
1310 2011-01-27 Anatoly Sokolov <aesok@post.ru>
1312 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
1313 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
1314 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
1315 (s390_preferred_reload_class): Make static. Change return and
1316 'rclass' argument type to reg_class_t.
1318 2011-01-27 Jan Hubicka <jh@suse.cz>
1321 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
1322 (process_function_and_variable_attributes): Check defined weakrefs.
1324 2011-01-27 Martin Jambor <mjambor@suse.cz>
1326 PR tree-optimization/47228
1327 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
1328 build_ref_for_offset.
1330 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1332 * config/spu/spu-elf.h (ASM_SPEC): Remove.
1334 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
1336 PR rtl-optimization/46856
1337 * postreload.c (reload_combine_recognize_const_pattern): Do not
1338 separate cc0 setter and user on cc0 targets.
1340 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
1343 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
1344 passed a VOID_TYPE expression, immediately emit an error and
1345 return error_mark_node.
1347 2011-01-26 Jeff Law <law@redhat.com>
1349 PR rtl-optimization/47464
1350 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
1351 rather than may_trap_p as needed.
1353 2011-01-26 DJ Delorie <dj@redhat.com>
1355 PR rtl-optimization/46878
1356 * combine.c (insn_a_feeds_b): Check for the implicit cc0
1357 setter/user dependency as well.
1359 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
1361 PR rtl-optimization/44469
1362 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
1363 after removing trivially dead basic blocks.
1365 2011-01-26 Joseph Myers <joseph@codesourcery.com>
1367 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
1368 * config/frv/frv.h (LINK_SPEC): Likewise.
1369 * config/i386/netware.h (LINK_SPEC): Likewise.
1370 * config/m68k/linux.h (ASM_SPEC): Likewise.
1371 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
1372 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
1373 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
1374 * config/sparc/linux.h (ASM_SPEC): Likewise.
1375 * config/sparc/linux64.h (ASM_SPEC): Likewise.
1376 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
1378 2011-01-26 Joseph Myers <joseph@codesourcery.com>
1380 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
1381 * config/frv/frv.h (ASM_SPEC): Likewise.
1382 * config/m68k/linux.h (ASM_SPEC): Likewise.
1383 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
1384 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
1385 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
1386 * config/sparc/linux.h (ASM_SPEC): Likewise.
1387 * config/sparc/linux64.h (ASM_SPEC): Likewise.
1388 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
1390 2011-01-26 Joseph Myers <joseph@codesourcery.com>
1392 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
1393 * config/frv/frv.h (LINK_SPEC): Likewise.
1394 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
1396 2011-01-26 Joseph Myers <joseph@codesourcery.com>
1398 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
1399 * config/frv/frv.h (ASM_SPEC): Likewise.
1400 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
1401 * config/m68k/linux.h (ASM_SPEC): Likewise.
1402 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
1403 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
1404 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
1405 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
1406 * config/sparc/linux.h (ASM_SPEC): Likewise.
1407 * config/sparc/linux64.h (ASM_SPEC): Likewise.
1408 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
1409 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
1411 2011-01-26 Steve Ellcey <sje@cup.hp.com>
1414 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
1416 (vec_extract_evenodd_help): Ditto.
1417 (vec_extract_evenv4hi): Ditto.
1418 (vec_extract_oddv4hi): Ditto.
1419 (vec_interleave_lowv2si): Ditto.
1420 (vec_interleave_highv2si): Ditto.
1421 (vec_extract_evenv2si): Ditto.
1422 (vec_extract_oddv2si: Ditto.
1423 (vec_pack_trunc_v2si): Ditto.
1425 2011-01-22 Jan Hubicka <jh@suse.cz>
1428 * cgraph.h (cgraph_local_info): New field can_change_signature.
1429 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
1430 signature can change.
1431 (ipcp_estimate_growth): Call sequence simplify only if calle signature
1433 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
1434 (cgraph_function_versioning): We can not change signature of functions
1435 that don't allow that.
1436 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
1437 (lto_input_node): Likewise.
1438 * ipa-inline.c (compute_inline_parameters): Compute
1439 local.can_change_signature.
1440 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
1441 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
1442 functions that can not change signature.
1443 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
1444 init_cumulative_args): Do not use local calling conventions
1445 for functions that can not change signature.
1447 2011-01-22 Jan Hubicka <jh@suse.cz>
1449 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
1451 2011-01-26 Richard Guenther <rguenther@suse.de>
1453 PR tree-optimization/47190
1454 * cgraphunit.c (process_common_attributes): New function.
1455 (process_function_and_variable_attributes): Use it.
1457 2011-01-26 Richard Guenther <rguenther@suse.de>
1460 * cgraphbuild.c (record_eh_tables): Record reference to personality
1463 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
1466 * sel-sched.c (moveup_expr): Don't let debug insns prevent
1467 non-debug insns from moving up.
1469 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1472 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
1473 t-dlldir{,-x} fragment for build and add it to tmake_file.
1474 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
1475 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
1476 * config/i386/t-dlldir: New file.
1477 (SHLIB_DLLDIR): Define.
1478 * config/i386/t-dlldir-x: New file.
1479 (SHLIB_DLLDIR): Define.
1480 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
1481 (SHLIB_INSTALL): Use it.
1483 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
1486 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
1487 lower bound of the allowed Thumb-2 coprocessor load/store
1488 index range to -256. Add explaining comment.
1490 2011-01-25 Ian Lance Taylor <iant@google.com>
1492 * godump.c (go_define): Improve lexing of macro expansion to only
1493 accept expressions which match Go spec.
1495 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1498 * tree.c (handle_dll_attribute): Handle it.
1499 * doc/extend.texi (@item dllexport): Mention it.
1500 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
1502 2011-01-25 Ian Lance Taylor <iant@google.com>
1504 PR tree-optimization/26854
1505 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
1506 (decl_jump_unsafe): Move higher in file, with no other change.
1507 (bind): Set has_jump_unsafe_decl if appropriate.
1508 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
1509 (check_earlier_gotos): Likewise.
1510 (c_check_switch_jump_warnings): Likewise.
1512 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
1514 * doc/invoke.texi (Warning Options): Add missing hyphen.
1515 (-fprofile-dir): Minor grammatical fixes.
1516 (-fbranch-probabilities): Likewise.
1518 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
1522 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
1524 (no_real_insns_p, schedule_block, set_priorities): Drop special
1525 treatment of boundary debug insns.
1526 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
1527 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
1528 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
1529 (BOUNDARY_DEBUG_INSN_P): Likewise.
1530 (SCHEDULE_DEBUG_INSN_P): Likewise.
1531 * sched-rgn.c (init_ready_list): Drop special treatment of
1532 boundary debug insns.
1533 * final.c (rest_of_clean-state): Clear notes' BB.
1535 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1537 * Makefile.in (LAMBDA_H): Removed.
1538 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
1539 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
1540 lambda-trans.o, and tree-loop-linear.o.
1541 (lto-symtab.o): Remove dependence on LAMBDA_H.
1542 (tree-loop-linear.o): Remove rule.
1543 (lambda-mat.o): Same.
1544 (lambda-trans.o): Same.
1545 (lambda-code.o): Same.
1546 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
1547 (tree-vect-slp.o): Same.
1548 * hwint.h (gcd): Moved here.
1549 (least_common_multiple): Same.
1550 * lambda-code.c: Removed.
1551 * lambda-mat.c: Removed.
1552 * lambda-trans.c: Removed.
1553 * lambda.h: Removed.
1554 * tree-loop-linear.c: Removed.
1555 * lto-symtab.c: Do not include lambda.h.
1556 * omega.c (gcd): Removed.
1557 * passes.c (init_optimization_passes): Remove pass_linear_transform.
1558 * tree-data-ref.c (print_lambda_vector): Moved here.
1559 (lambda_vector_copy): Same.
1560 (lambda_matrix_copy): Same.
1561 (lambda_matrix_id): Same.
1562 (lambda_vector_first_nz): Same.
1563 (lambda_matrix_row_add): Same.
1564 (lambda_matrix_row_exchange): Same.
1565 (lambda_vector_mult_const): Same.
1566 (lambda_vector_negate): Same.
1567 (lambda_matrix_row_negate): Same.
1568 (lambda_vector_equal): Same.
1569 (lambda_matrix_right_hermite): Same.
1570 * tree-data-ref.h: Do not include lambda.h.
1571 (lambda_vector): Moved here.
1572 (lambda_matrix): Same.
1573 (dependence_level): Same.
1574 (lambda_transform_legal_p): Removed declaration.
1575 (lambda_collect_parameters): Same.
1576 (lambda_compute_access_matrices): Same.
1577 (lambda_vector_gcd): Same.
1578 (lambda_vector_new): Same.
1579 (lambda_vector_clear): Same.
1580 (lambda_vector_lexico_pos): Same.
1581 (lambda_vector_zerop): Same.
1582 (lambda_matrix_new): Same.
1583 * tree-flow.h (least_common_multiple): Removed declaration.
1584 * tree-parloops.c (lambda_trans_matrix): Moved here.
1586 (LTM_ROWSIZE): Same.
1587 (LTM_COLSIZE): Same.
1588 (LTM_DENOMINATOR): Same.
1589 (lambda_trans_matrix_new): Same.
1590 (lambda_matrix_vector_mult): Same.
1591 (lambda_transform_legal_p): Same.
1592 * tree-pass.h (pass_linear_transform): Removed declaration.
1593 * tree-ssa-loop.c (tree_linear_transform): Removed.
1594 (gate_tree_linear_transform): Removed.
1595 (pass_linear_transform): Removed.
1596 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
1597 flag_loop_interchange.
1599 2011-01-25 Jakub Jelinek <jakub@redhat.com>
1601 PR tree-optimization/47265
1602 PR tree-optimization/47443
1603 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
1604 if name still has some uses.
1606 2011-01-25 Martin Jambor <mjambor@suse.cz>
1608 PR tree-optimization/47382
1609 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
1610 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
1612 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
1614 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
1615 sjlj_except_unwind_info.
1617 2011-01-25 Richard Guenther <rguenther@suse.de>
1619 PR tree-optimization/47426
1620 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
1621 visible functions results escape.
1623 2011-01-25 Jakub Jelinek <jakub@redhat.com>
1626 * config/arm/arm.c (any_sibcall_uses_r3): New function.
1627 (arm_get_frame_offsets): Use it.
1629 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1630 Jakub Jelinek <jakub@redhat.com>
1632 PR tree-optimization/47271
1633 * tree-if-conv.c (bb_postdominates_preds): New.
1634 (if_convertible_bb_p): Call bb_postdominates_preds.
1635 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
1636 (predicate_scalar_phi): Call bb_postdominates_preds.
1638 2011-01-25 Nick Clifton <nickc@redhat.com>
1640 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
1641 * config/rx/rx.c (rx_function_value): Likewise.
1642 (rx_promote_function_mode): Likewise.
1643 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
1644 in order to make it legitimate.
1645 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
1646 make sure that the first operand is the same as the result register.
1647 (addsi3_unspec): Delete.
1648 (subdi3): Do not accept immediate operands.
1649 (subdi3_internal): Likewise.
1651 2011-01-25 Jeff Law <law@redhat.com>
1653 PR rtl-optimization/37273
1654 * ira-costs.c (scan_one_insn): Detect constants living in memory and
1655 handle them like argument loads from stack slots. Do not double
1656 count memory for memory constants and argument loads from stack slots.
1658 2011-01-25 Jakub Jelinek <jakub@redhat.com>
1660 PR tree-optimization/47427
1661 PR tree-optimization/47428
1662 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
1663 coalesce if the new root var would be TREE_READONLY.
1665 2011-01-25 Richard Guenther <rguenther@suse.de>
1668 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
1669 correct type for TBAA.
1671 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1673 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
1674 (close_phi_written_to_memory): Call for_each_index with
1675 dr_indices_valid_in_loop.
1677 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1679 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
1680 when it is initialized.
1682 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1684 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
1685 call to graphite_find_data_references_in_stmt.
1686 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
1687 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
1688 call to graphite_find_data_references_in_stmt.
1689 (analyze_drs_in_stmts): Same.
1690 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
1691 in which the scalar analysis of indices is performed.
1692 (create_data_ref): Same. Update call to dr_analyze_indices.
1693 (find_data_references_in_stmt): Update call to create_data_ref.
1694 (graphite_find_data_references_in_stmt): Same.
1695 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
1697 (create_data_ref): Same.
1698 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
1699 call to create_data_ref.
1701 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1703 * graphite-sese-to-poly.c (build_poly_scop): Move
1704 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
1706 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1708 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
1709 VAR_DECL, PARM_DECL, and RESULT_DECL.
1711 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1713 * graphite-dependences.c (reduction_dr_1): Allow several reductions
1715 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
1716 that have already been marked as PBB_IS_REDUCTION.
1718 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1720 * graphite-scop-detection.c (same_close_phi_node): New.
1721 (remove_duplicate_close_phi): New.
1722 (make_close_phi_nodes_unique): New.
1723 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
1725 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1727 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
1728 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
1729 of both data references to be the same.
1731 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1733 * graphite-dependences.c (build_lexicographical_constraint): Remove
1735 (build_lexicographical_constraint): Adjust call to
1736 ppl_powerset_is_empty.
1737 (dependence_polyhedron): Same.
1738 (graphite_legal_transform_dr): Same.
1739 (graphite_carried_dependence_level_k): Same.
1740 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
1742 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
1744 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1746 * graphite-sese-to-poly.c
1747 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
1748 (close_phi_written_to_memory): New.
1749 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
1752 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1754 * doc/install.texi: Update the expected version number of PPL to 0.11.
1755 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
1756 #if PPL_VERSION_MINOR < 11.
1758 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1760 * graphite-dependences.c: Include graphite-cloog-util.h.
1761 (new_poly_ddr): Inlined into dependence_polyhedron.
1762 (free_poly_ddr): Moved close by new_poly_ddr.
1763 (dependence_polyhedron_1): Renamed dependence_polyhedron.
1764 Early return NULL when ppl_powerset_is_empty returns true.
1765 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
1766 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
1767 (graphite_legal_transform_dr): Call new_poly_ddr.
1768 (graphite_carried_dependence_level_k): Same.
1769 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
1770 (dot_transformed_deps_stmt_1): Removed.
1771 (dot_deps_stmt_1): Call dot_deps_stmt_2.
1772 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
1773 (dot_deps_1): Call dot_deps_2.
1774 * Makefile.in (graphite-dependences.o): Add missing dependence on
1775 graphite-cloog-util.h.
1777 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1779 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
1780 (build_lexicographical_constraint): Same.
1781 (dependence_polyhedron_1): Same.
1782 (graphite_legal_transform_dr): Same.
1783 (graphite_carried_dependence_level_k): Same.
1784 * graphite-ppl.c (ppl_powerset_is_empty): New.
1785 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
1786 * tree-data-ref.c (dump_data_reference): Print the basic block index.
1788 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1790 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
1791 the "a followed by b" relation and document it.
1793 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1795 * graphite-dependences.c (build_lexicographical_constraint): Stop the
1796 iteration when the bag of constraints is empty.
1798 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1800 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
1802 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1804 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
1805 nest and two loop depths as parameters.
1806 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
1807 lst_perfect_nestify.
1809 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1811 * graphite-dependences.c (print_pddr): Call
1812 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
1814 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1816 * graphite-ppl.c (debug_gmp_value): New.
1817 * graphite-ppl.h (debug_gmp_value): Declared.
1819 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
1821 * doc/install.texi: Document availability of cloog-0.16.
1823 2011-01-25 Vladimir Kargov <kargov@gmail.com>
1825 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
1826 invalid postdominance info.
1828 2011-01-24 Jan Hubicka <jh@suse.cz>
1831 * doc/extend.texi (weak pragma): Drop claim that it must
1832 appear before definition.
1833 * varasm.c (merge_weak, declare_weak): Only sanity check
1834 that DECL is not output at a time it is declared weak.
1836 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
1838 * machmode.def: Fixed comments.
1840 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
1842 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
1844 2011-01-24 Paul Koning <ni1d@arrl.net>
1846 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1849 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
1852 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
1853 (block_info): Add scanned and prev.
1854 (move_or_delete_vzeroupper_2): Return if the basic block
1855 has been scanned and the upper 128bit state is unchanged
1857 (move_or_delete_vzeroupper_1): Return true if the exit
1859 (move_or_delete_vzeroupper): Visit basic blocks using the
1860 work-list based algorithm based on vt_find_locations in
1863 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
1865 2011-01-24 Nick Clifton <nickc@redhat.com>
1867 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
1868 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
1869 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
1870 then define __v850e1__.
1871 * doc/invoke.texi: Document -mv850es.
1873 2011-01-24 Richard Henderson <rth@redhat.com>
1875 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
1876 compound unordered comparisons.
1877 * config/rx/rx.c (rx_split_fp_compare): Remove.
1878 * config/rx/rx-protos.h: Update.
1879 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
1880 (cbranchsf4): Don't call rx_split_fp_compare.
1881 (*cbranchsf4): Use rx_split_cbranch.
1882 (*cmpsf): Don't accept "i" constraint.
1883 (*conditional_branch): Only valid after reload.
1884 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
1886 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
1889 * config/rs6000/altivec.md (vector constant splitters): Add
1890 support for creating vector single precision constants if -mvsx is
1891 used and we would create the constant using Altivec primitives.
1893 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
1894 Richard Sandiford <rdsandiford@googlemail.com>
1896 PR rtl-optimization/47166
1897 * reload1.c (emit_reload_insns): Disable the spill_reg_store
1898 mechanism for PRE_MODIFY and POST_MODIFY.
1899 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
1902 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
1904 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
1906 2011-01-22 Jan Hubicka <jh@suse.cz>
1909 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
1911 2011-01-22 Jan Hubicka <jh@suse.cz>
1913 PR tree-optimization/43884
1915 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
1916 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
1918 2011-01-22 Anatoly Sokolov <aesok@post.ru>
1920 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
1921 * config/s390/s390.c (s390_register_move_cost,
1922 s390_memory_move_cost): New.
1923 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
1925 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1928 * except.c (sjlj_assign_call_site_values): Move setting the
1929 crtl->uses_eh_lsda flag to ...
1930 (sjlj_mark_call_sites): ... here.
1931 (sjlj_emit_function_enter): Support NULL dispatch label.
1932 (sjlj_build_landing_pads): In a function with no landing pads
1933 that still has must-not-throw regions, generate code to register
1934 a personality function with empty LSDA.
1936 2011-01-21 Richard Henderson <rth@redhat.com>
1938 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
1940 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
1942 * compare-elim.c: New file.
1943 * Makefile.in (OBJS-common): Add it.
1944 (compare-elim.o): New.
1945 * common.opt (fcompare-elim): New.
1946 * opts.c (default_options_table): Add OPT_fcompare_elim.
1947 * tree-pass.h (pass_compare_elim_after_reload): New.
1948 * passes.c (init_optimization_passes): Add it.
1949 * recog.h: Protect against re-inclusion.
1950 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
1951 * doc/invoke.texi (-fcompare-elim): Document it.
1952 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
1953 * doc/tm.texi: Rebuild.
1955 2011-01-22 Nick Clifton <nickc@redhat.com>
1957 * config/rx/rx.md (cstoresf4): Pass comparison operator to
1958 rx_split_fp_compare.
1960 2011-01-22 Nick Clifton <nickc@redhat.com>
1962 * config/rx/rx.md (UNSPEC_CONST): New.
1963 (deallocate_and_return): Wrap the amount popped off the stack in
1964 an UNSPEC_CONST in order to stop it being rejected by
1965 -mmax-constant-size.
1966 (pop_and_return): Add a "(return)" rtx.
1967 (call): Drop the immediate operand.
1968 (call_internal): Likewise.
1969 (call_value): Likewise.
1970 (call_value_internal): Likewise.
1971 (sibcall_internal): Likewise.
1972 (sibcall_value_internal): Likewise.
1973 (sibcall): Likewise. Generate an explicit call using
1975 (sibcall_value): Likewise.
1976 (mov<>): FAIL if a constant operand is not legitimate.
1977 (addsi3_unpsec): New pattern.
1979 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
1980 (ok_for_max_constant): New function.
1981 (gen_safe_add): New function.
1982 (rx_expand_prologue): Use gen_safe_add.
1983 (rx_expand_epilogue): Likewise.
1984 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
1987 2011-01-21 Jeff Law <law@redhat.com>
1989 PR tree-optimization/47053
1990 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
1991 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
1992 statements are deleted.
1993 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
1994 is nonempty, then purge dead edges and cleanup the CFG.
1996 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
2000 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
2002 * tree-dfa.c (create_var_ann): Mark variable as used.
2004 2011-01-21 Jakub Jelinek <jakub@redhat.com>
2007 * except.c (convert_to_eh_region_ranges): Emit queued no-region
2008 notes from other section in hot/cold partitioning even if
2009 last_action is -3. Increment call_site_base.
2011 PR rtl-optimization/47366
2012 * fwprop.c (forward_propagate_into): Return bool. If
2013 any changes are made, -fnon-call-exceptions is used and
2014 REG_EH_REGION note is present, call purge_dead_edges
2015 and return true if it purged anything.
2016 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
2017 any EH edges were purged.
2019 2011-01-21 Jeff Law <law@redhat.com>
2021 PR rtl-optimization/41619
2022 * caller-save.c (setup_save_areas): Break out code to determine
2023 which hard regs are live across calls by examining the reload chains
2024 so that it is always used.
2025 Eliminate code which checked REG_N_CALLS_CROSSED.
2027 2011-01-21 Jakub Jelinek <jakub@redhat.com>
2029 PR tree-optimization/47355
2030 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
2031 NOP has non-debug uses beyond PHIs in new_bb.
2033 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
2036 * cfgexpand.c (account_used_vars_for_block): Only account vars
2037 that are annotated as used.
2038 (estimated_stack_frame_size): Don't set TREE_USED.
2039 * tree-dfa.c (create_var_ann): Mark variable as used.
2041 2011-01-21 Richard Guenther <rguenther@suse.de>
2044 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
2046 2011-01-21 Richard Guenther <rguenther@suse.de>
2048 PR tree-optimization/47365
2049 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
2050 (vn_reference_lookup_pieces): Adjust.
2051 (vn_reference_lookup): Likewise.
2052 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
2053 (vn_reference_lookup_3): Only look through kills if in
2054 VN_WALKREWRITE mode.
2055 (vn_reference_lookup_pieces): Adjust.
2056 (vn_reference_lookup): Likewise.
2057 (visit_reference_op_load): Likewise.
2058 (visit_reference_op_store): Likewise.
2059 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
2060 (compute_avail): Likewise.
2061 (eliminate): Likewise.
2063 2011-01-21 Jakub Jelinek <jakub@redhat.com>
2065 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
2066 DECL_IGNORED_P non-reg vars if they are used.
2068 PR tree-optimization/47391
2069 * varpool.c (const_value_known_p): Return false if
2072 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
2075 * config/i386/i386.c (ix86_local_alignment): Handle
2076 case for va_list_type_node is nil.
2077 (ix86_canonical_va_list_type): Likewise.
2079 2011-01-21 Alan Modra <amodra@gmail.com>
2081 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
2082 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
2084 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2086 * config/arm/arm.md (define_attr type): Rename f_load
2087 and f_store to f_fpa_load and f_fpa_store. Update.
2088 (write_conflict): Deal with rename fallout.
2089 (*push_fp_multi): Likewise.
2090 * config/arm/fpa.md (f_load): Use f_fpa_load.
2091 (f_store): Use f_fpa_store.
2092 (*movsf_fpa): Likewise.
2093 (*movdf_fpa): Likewise.
2094 (*movxf_fpa): Likewise.
2095 (*thumb2_movsf_fpa): Likewise.
2096 (*thumb2_movdf_fpa): Likewise.
2097 (*thumb2_movxf_fpa): Likewise.
2098 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
2099 f_loadd and f_stored.
2100 (*thumb2_movdi_vfp): Likewise.
2101 (*thumb2_movsf_vfp): Fix attribute to f_loads.
2102 (*thumb2_movsi_vfp): Likewise.
2103 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
2104 Use f_loads instead of f_load.
2105 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
2107 2011-01-20 Anatoly Sokolov <aesok@post.ru>
2109 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
2110 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
2111 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2112 (xtensa_mode_dependent_address_p): New function.
2113 (constantpool_address_p): Make static. Change return type to bool.
2114 Change argument type to const_rtx. Use CONST_INT_P predicate.
2116 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
2119 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
2121 2011-01-20 Jakub Jelinek <jakub@redhat.com>
2124 * cfgexpand.c (expand_debug_expr): Instead of generating
2125 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
2128 2011-01-20 Richard Guenther <rguenther@suse.de>
2131 * tree-inline.c (remap_gimple_op_r): Recurse manually for
2132 the pointer operand of MEM_REFs.
2134 2011-01-20 Jakub Jelinek <jakub@redhat.com>
2136 PR tree-optimization/46130
2137 * ipa-split.c (consider_split): If return_bb contains non-virtual
2138 PHIs other than for retval or if split_function would not adjust it,
2141 2011-01-20 Richard Guenther <rguenther@suse.de>
2143 PR tree-optimization/47167
2144 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
2145 Revert previous change, only avoid enumeral type changes.
2147 2011-01-19 Mike Stump <mikestump@comcast.net>
2149 * doc/tm.texi.in (BRANCH_COST): Englishify.
2150 * doc/tm.texi (BRANCH_COST): Likewise.
2152 2011-01-19 Dodji Seketeli <dodji@redhat.com>
2155 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
2156 (gen_scheduled_generic_parms_dies): New functions.
2157 (gen_struct_or_union_type_die): Schedule template parameters DIEs
2158 generation for the end of CU compilation.
2159 (dwarf2out_finish): Generate template parameters DIEs here.
2161 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
2164 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
2165 debug bind stmt on merge edges.
2167 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
2171 * function.c (instantiate_expr): Instantiate incoming rtl of
2172 implicit arguments, and recurse on VALUE_EXPRs.
2173 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
2174 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
2176 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
2178 * c-parser.c (c_parser_for_statement): Initialize
2179 collection_expression.
2181 2011-01-19 Joseph Myers <joseph@codesourcery.com>
2183 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
2185 2011-01-19 Joseph Myers <joseph@codesourcery.com>
2187 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
2188 (LINK_SHLIB_SPEC): Don't use %(link_path).
2189 (SUBTARGET_EXTRA_SPECS): Remove link_path.
2191 2011-01-19 Joseph Myers <joseph@codesourcery.com>
2193 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
2194 (NO_SHARED_LIB_SUPPORT): Remove.
2195 (LINK_SHLIB_SPEC): Remove one conditional definition.
2197 2011-01-19 Joseph Myers <joseph@codesourcery.com>
2199 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
2201 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
2202 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
2203 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
2204 %{call_shared} and conditionals on these options not being passed.
2205 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
2208 2011-01-19 Jakub Jelinek <jakub@redhat.com>
2210 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
2213 * ipa-split.c: Spelling fixes.
2215 2011-01-19 Richard Henderson <rth@redhat.com>
2217 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
2218 (*mulsi3): Likewise.
2220 * longlong.h [__mn10300__] (count_leading_zeros): New.
2221 [__mn10300__] (umul_ppmm, smul_ppmm): New.
2222 [__mn10300__] (add_ssaaaa, subddmmss): New.
2223 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
2224 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
2226 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2228 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
2230 2011-01-19 Richard Henderson <rth@redhat.com>
2232 * config/mn10300/mn10300.md (addsi3_flags): New.
2233 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
2234 (subsi3_flags, subc_internal, subdi3): New.
2235 (subdi3_internal, *subdi3_degenerate): New.
2236 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
2238 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
2239 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
2240 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
2241 * config/mn10300/mn10300-protos.h: Update.
2242 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
2243 (return_ret): Likewise. Rename from return_internal_regs.
2244 (return_internal): Remove.
2246 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
2247 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
2248 (mn10300_legitimate_constant_p): Likewise.
2249 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
2250 (mn10300_frame_size): New.
2251 (mn10300_expand_prologue): Use it.
2252 (mn10300_expand_epilogue): Likewise.
2253 (mn10300_initial_offset): Likewise.
2254 * config/mn10300/mn10300-protos.h: Update.
2255 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
2256 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
2257 (prologue, epilogue, return_internal): Tidy output code.
2258 (mn10300_store_multiple_operation, return): Likewise.
2259 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
2260 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
2261 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
2262 (load_pic, am33_load_pic): New.
2263 (mn10300_load_pic0, mn10300_load_pic1): New.
2265 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
2266 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
2267 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
2268 (cc_flags_for_mode, cc_flags_for_code): New.
2269 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
2270 overflow flag is not valid. Validate that the flags we need
2271 for the comparison are valid.
2272 (mn10300_output_cmp): Remove.
2273 (mn10300_output_add): New.
2274 (mn10300_select_cc_mode): Use cc_flags_for_code.
2275 (mn10300_split_cbranch): New.
2276 (mn10300_match_ccmode): New.
2277 (mn10300_split_and_operand_count): New.
2278 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
2280 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
2281 (addsi3): ... here. Use mn10300_output_add.
2282 (*addsi3_flags): New.
2283 (*am33_subsi3, *mn10300_subsi3): Merge...
2284 (subsi3): ... here. Use attribute isa.
2285 (*subsi3_flags): New.
2286 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
2288 (*am33_andsi3, *mn10300_andsi3): Merge...
2290 (*andsi3_flags): New.
2291 (andsi3 splitters): New.
2292 (*am33_iorsi3, *mn10300_iorsi3): Merge...
2294 (*iorsi3_flags): New.
2295 (*am33_xorsi3, *mn10300_xorsi3): Merge...
2297 (*xorsi3_flags): New.
2298 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
2299 (one_cmplsi2): ... here.
2300 (*one_cmplsi2_flags): New.
2301 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
2302 instead of "dax" in constraints. Use mn10300_split_cbranch.
2303 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
2304 use matching constraints to eliminate a self-comparison.
2305 (*integer_conditional_branch): Rename from integer_conditional_branch.
2306 Use int_mode_flags to match CC_REG.
2307 (*cbranchsi4_btst, *btstsi): New.
2308 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
2309 mn10300_split_cbranch.
2310 (*am33_cmpsf): Rename from am33_cmpsf.
2311 (*float_conditional_branch): Rename from float_conditional_branch.
2312 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
2313 (zero_extendqisi2): ... here.
2314 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
2315 (zero_extendhisi2): ... here.
2316 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
2317 (extendqisi2): ... here.
2318 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
2319 (extendhisi2): ... here.
2320 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
2321 (ashlsi3): ... here.
2322 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
2323 (lshrsi3): ... here.
2324 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
2325 (ashrsi3): ... here.
2326 (consecutive add peephole): Remove.
2327 * config/mn10300/predicates.md (label_ref_operand): New.
2328 (int_mode_flags): New.
2329 (CCZN_comparison_operator): New.
2331 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
2332 (throughput_42_latency_43): New reservation.
2333 (mulsidi3, umulsidi3): New expanders.
2334 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
2335 the MDR register to allocation; separately allocate the low and
2336 high parts of the DImode result.
2337 (umulsidi3_internal): Similarly.
2338 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
2339 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
2340 (udivsi3, umodsi3): Remove.
2341 (udivmodsi4, divmodsi4): New expanders.
2342 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
2343 (*divmodsi4): Simiarly.
2344 (ext_internal): New.
2346 * config/mn10300/constraints.md ("z"): New constraint.
2347 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
2348 (FIXED_REGISTERS): Don't fix MDR.
2349 (CALL_USED_REGSITERS): Reformat nicely.
2350 (REG_ALLOC_ORDER): Add MDR.
2351 (enum regclass): Add MDR_REGS.
2352 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
2353 (IRA_COVER_CLASSES): Add MDR_REGS.
2354 (REGNO_REG_CLASS): Handle MDR_REG.
2355 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
2356 (mn10300_register_move_cost): Likewise.
2357 * config/mn10300/mn10300.md (MDR_REG): New.
2358 (*movsi_internal): Handle moves to/from MDR_REGS.
2360 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
2362 (mn10300_secondary_reload): Tidy combination reload classes.
2363 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
2364 addresses for AM33. Allow symbolic offsets for reg+imm.
2365 (mn10300_regno_in_class_p): New.
2366 (mn10300_legitimize_reload_address): New.
2367 * config/mn10300/mn10300.h (enum reg_class): Remove
2368 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
2369 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
2371 (REG_CLASS_NAMES): Update to match.
2372 (REG_CLASS_CONTENTS): Likewise.
2373 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
2374 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
2375 (REGNO_IN_RANGE_P): Remove.
2376 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
2377 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
2378 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
2379 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
2380 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
2381 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
2382 (REGNO_GENERAL_P): New.
2383 (HAVE_POST_MODIFY_DISP): New.
2384 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
2385 (LEGITIMIZE_RELOAD_ADDRESS): New.
2386 * config/mn10300/mn10300-protos.h: Update.
2388 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
2389 DATA_REGS for AM33 stack-pointer destination.
2390 (mn10300_preferred_output_reload_class): Likewise.
2391 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
2392 into a form appropriate for ...
2393 (TARGET_SECONDARY_RELOAD): New.
2394 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
2395 * config/mn10300/mn10300-protos.h: Update.
2396 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
2397 reload_insi; use the "A" constraint for the scratch; handle AM33
2398 moves of sp to non-address registers.
2400 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
2401 (*movqi_internal): ... here.
2402 (*am33_movhi, *mn10300_movhi): Merge into...
2403 (*movhi_internal): ... here.
2404 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
2405 as the source/destination of moves from/to SP.
2406 (movsf): Only allow for AM33-2.
2407 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
2408 any integer constant constraint. Only allow for AM33-2. Tidy
2409 all of the alternative outputs.
2410 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
2411 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
2413 (udivsi3, umodsi3): New patterns for MN103 only.
2415 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
2417 * doc/tm.texi.in: Spell out that a lack of register class unions
2419 * doc/tm.texi: Regenerate.
2421 2011-01-19 Jakub Jelinek <jakub@redhat.com>
2423 PR rtl-optimization/47337
2424 * dce.c (check_argument_store): New function.
2425 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
2427 PR tree-optimization/47290
2428 * tree-eh.c (infinite_empty_loop_p): New function.
2429 (cleanup_empty_eh): Use it.
2431 2011-01-18 Steve Ellcey <sje@cup.hp.com>
2434 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
2435 (a64_expand_widen_sum): Ditto.
2436 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
2437 (vec_extract_evenodd_help): Ditto.
2438 (vec_extract_evenv4hi): Ditto.
2439 (vec_extract_oddv4hi): Ditto.
2440 (vec_extract_evenv2si): Ditto.
2441 (vec_extract_oddv2si): Ditto.
2442 (vec_extract_evenv2sf): Ditto.
2443 (vec_extract_oddv2sf): Ditto.
2444 (vec_pack_trunc_v4hi: Ditto.
2445 (vec_pack_trunc_v2si): Ditto.
2446 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
2447 (vec_interleave_highv8qi): Ditto.
2449 (vec_extract_oddv8qi): Ditto.
2450 (vec_interleave_lowv4hi): Ditto.
2451 (vec_interleave_highv4hi): Ditto.
2452 (vec_interleave_lowv2si): Ditto.
2453 (vec_interleave_highv2si): Ditto.
2455 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2457 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
2458 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
2459 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
2460 (pa_c_mode_for_suffix): New.
2461 (TARGET_EXPAND_BUILTIN): Define.
2462 (TARGET_C_MODE_FOR_SUFFIX): Define.
2463 (pa_builtins): Define.
2464 (pa_init_builtins): Register __float128 type and init new support
2466 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
2467 * config/pa/quadlib.c (_U_Qfcopysign): New.
2469 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
2472 * explow.c (allocate_dynamic_stack_space): Do not assume more than
2473 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
2476 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2478 PR tree-optimization/47179
2479 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
2480 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
2482 2011-01-18 Richard Guenther <rguenther@suse.de>
2484 PR rtl-optimization/47216
2485 * emit-rtl.c: Include tree-flow.h.
2486 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
2487 of replicating it with different semantics.
2488 * Makefile.in (emit-rtl.o): Adjust.
2490 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2492 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
2493 (cortex_a9_dp): Handle neon types correctly.
2495 2011-01-18 Jakub Jelinek <jakub@redhat.com>
2497 PR rtl-optimization/47299
2498 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
2499 subtarget. Use normal multiplication if both operands are constants.
2500 * expmed.c (expand_widening_mult): Don't try to optimize constant
2501 multiplication if op0 has VOIDmode. Convert op1 constant to mode
2504 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2506 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
2507 spacing after 'e.g.', typos, comma, hyphenation.
2509 2011-01-17 Richard Henderson <rth@redhat.com>
2511 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
2512 (rx_restricted_mem_operand): New.
2513 (rx_shift_operand): Use register_operand.
2514 (rx_source_operand, rx_compare_operand): Likewise.
2515 * config/rx/rx.md (addsi3_flags): New expander.
2516 (adddi3): Rewrite as expander.
2517 (adc_internal, *adc_flags, adddi3_internal): New patterns.
2518 (subsi3_flags): New expander.
2519 (subdi3): Rewrite as expander.
2520 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
2522 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
2523 (rx_init_builtins): Remove sat builtin.
2524 (rx_expand_builtin): Likewise.
2525 * config/rx/rx.md (ssaddsi3): New.
2526 (*sat): Rename from sat. Represent the CC_REG input.
2528 * config/rx/predicates.md (rshift_operator): New.
2529 * config/rx/rx.c (rx_expand_insv): Remove.
2530 * config/rx/rx-protos.h: Update.
2531 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
2532 operand to the canonical position.
2533 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
2534 (*bitclr, *bitclr_in_memory): Similarly.
2535 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
2536 (insv): Retain the zero_extract in the expansion.
2538 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
2539 (bswaphi2, bitinvert, revw): Likewise.
2541 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
2542 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
2543 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
2544 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
2545 (bitset, bitset_in_memory): Likewise.
2546 (bitinvert, bitinvert_in_memory): Likewise.
2547 (bitclr, bitclr_in_memory): Likewise.
2548 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
2549 (rx_strend, rx_cmpstrn): Likewise.
2550 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
2551 (bitop peep2 patterns): Remove.
2553 * config/rx/rx.c (rx_match_ccmode): New.
2554 * config/rx/rx-protos.h: Update.
2555 * config/rx/rx.md (abssi2): Clobber, don't set flags.
2556 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
2557 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
2558 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
2559 (fix_truncsfsi2, floatsisf2): Likewise.
2560 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
2561 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
2562 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
2563 (*subsi3_flags, *xorsi3_flags): New.
2565 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
2567 * config/rx/rx.c (rx_print_operand): Remove workaround for
2568 unsplit comparison operations.
2570 * config/rx/rx.md (movsicc): Split after reload.
2571 (*movsicc): Merge *movsieq and *movsine via match_operator.
2572 (*stcc): New pattern.
2574 * config/rx/rx.c (rx_float_compare_mode): Remove.
2575 * config/rx/rx.h (rx_float_compare_mode): Remove.
2576 * config/rx/rx.md (cstoresi4): Split after reload.
2577 (*sccc): New pattern.
2579 * config/rx/predicates.md (label_ref_operand): New.
2580 (rx_z_comparison_operator): New.
2581 (rx_zs_comparison_operator): New.
2582 (rx_fp_comparison_operator): New.
2583 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
2584 Validate that the flags are set properly for the comparison.
2585 (rx_gen_cond_branch_template): Remove.
2586 (rx_cc_modes_compatible): Remove.
2587 (mode_from_flags): New.
2588 (flags_from_code): Rename from flags_needed_for_conditional.
2589 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
2590 (rx_select_cc_mode): Likewise.
2591 (rx_split_fp_compare): New.
2592 (rx_split_cbranch): New.
2593 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
2594 (*cbranchsi4): Use match_operator and rx_split_cbranch.
2595 (*cbranchsf4): Similarly.
2596 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
2597 match_operator and rx_split_cbranch.
2598 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
2599 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
2600 (*cmpsi): Rename from cmpsi.
2601 (*tstsi): Rename from tstsi.
2602 (*cmpsf): Rename from cmpsf; use CC_Fmode.
2603 (*conditional_branch): Rename from conditional_branch.
2604 (*reveresed_conditional_branch): Remove.
2605 (b<code>): Remove expander.
2606 * config/rx/rx-protos.h: Update.
2608 * config/rx/rx.c (rx_compare_redundant): Remove.
2609 * config/rx/rx.md (cmpsi): Don't use it.
2610 * config/rx/rx-protos.h: Update.
2612 * config/rx/rx-modes.def (CC_F): New mode.
2613 * config/rx/rx.c (rx_select_cc_mode): New.
2614 * config/rx/rx.h (SELECT_CC_MODE): Use it.
2615 * config/rx/rx-protos.h: Update.
2617 2011-01-17 Richard Henderson <rth@redhat.com>
2619 * except.c (dump_eh_tree): Fix stray ; after for statement.
2621 2011-01-17 Richard Guenther <rguenther@suse.de>
2623 PR tree-optimization/47313
2624 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
2625 handling before copying the body. Properly deal with
2626 by-reference result in SSA form.
2628 2011-01-17 Ian Lance Taylor <iant@google.com>
2631 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
2632 (struct_value_alias_set): Don't define.
2633 (sparc_option_override): Don't set sparc_sr_alias_set and
2634 struct_value_alias_set.
2635 (save_or_restore_regs): Use gen_frame_mem rather than calling
2637 (sparc_struct_value_rtx): Likewise.
2639 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
2642 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
2644 (_mm_maskstore_pd): Likewise.
2645 (_mm_maskload_ps): Likewise.
2646 (_mm_maskstore_ps): Likewise.
2647 (_mm256_maskload_pd): Change mask to __m256i.
2648 (_mm256_maskstore_pd): Likewise.
2649 (_mm256_maskload_ps): Likewise.
2650 (_mm256_maskstore_ps): Likewise.
2652 * config/i386/i386-builtin-types.def: Updated.
2653 (ix86_expand_special_args_builtin): Likewise.
2655 * config/i386/i386.c (bdesc_special_args): Update
2656 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
2657 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
2658 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
2659 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
2661 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
2662 Use <avxpermvecmode> on mask register.
2663 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
2665 2011-01-17 Olivier Hainque <hainque@adacore.com>
2666 Michael Haubenwallner <michael.haubenwallner@salomon.at>
2667 Eric Botcazou <ebotcazou@adacore.com>
2670 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
2671 if <= USHRT_MAX in 32-bit mode.
2673 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2675 * doc/install.texi (Configuration, Specific): Wrap long
2676 lines in examples. Allow line wrapping in long options
2677 and URLs where beneficial for PDF output.
2679 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
2681 * config/mips/mips.c (mips_classify_symbol): Don't return
2682 SYMBOL_PC_RELATIVE for nonlocal labels.
2684 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
2686 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
2688 2011-01-15 Jan Hubicka <jh@suse.cz>
2690 PR tree-optimization/47276
2691 * ipa.c (function_and_variable_visibility): Do not try to mark alias
2692 declarations as needed.
2694 2011-01-15 Martin Jambor <mjambor@suse.cz>
2696 * common.opt (fdevirtualize): New flag.
2697 * doc/invoke.texi (Option Summary): Document it.
2698 * opts.c (default_options_table): Add devirtualize flag.
2699 * ipa-prop.c (detect_type_change): Return immediately if
2700 devirtualize flag is not set.
2701 (detect_type_change_ssa): Likewise.
2702 (compute_known_type_jump_func): Likewise.
2703 (ipa_analyze_virtual_call_uses): Likewise.
2705 2011-01-14 Martin Jambor <mjambor@suse.cz>
2707 PR tree-optimization/45934
2708 PR tree-optimization/46302
2709 * ipa-prop.c (type_change_info): New type.
2710 (stmt_may_be_vtbl_ptr_store): New function.
2711 (check_stmt_for_type_change): Likewise.
2712 (detect_type_change): Likewise.
2713 (detect_type_change_ssa): Likewise.
2714 (compute_complex_assign_jump_func): Check for dynamic type change.
2715 (compute_complex_ancestor_jump_func): Likewise.
2716 (compute_known_type_jump_func): Likewise.
2717 (compute_scalar_jump_functions): Likewise.
2718 (ipa_analyze_virtual_call_uses): Likewise.
2719 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
2721 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2723 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
2724 * config/i386/i386.opt (msse5): New Alias.
2726 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2728 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
2729 * config/sparc/linux64.h (CC1_SPEC): Likewise.
2730 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
2731 * config/sparc/sparc.h (CC1_SPEC): Likewise.
2733 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2735 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
2737 * config/sparc/linux64.h (CC1_SPEC): Likewise.
2738 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
2739 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
2740 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
2742 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
2744 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2746 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
2748 2011-01-14 Mike Stump <mikestump@comcast.net>
2750 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
2751 * config/fr30/fr30.md: Likweise
2752 (movsi_push): Likewise.
2753 (movsi_pop): Likewise.
2754 (enter_func): Likewise.
2755 * config/moxie/moxie.md (movsi_push): Likewise.
2756 (movsi_pop): Likewise.
2758 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2760 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
2761 %{no_archive} %{exact_version}.
2762 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
2763 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
2764 %{no_archive} %{exact_version}.
2765 * config/mips/openbsd.h (LINK_SPEC): Likewise.
2766 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
2767 * config/mips/vxworks.h: Likewise.
2769 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2771 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
2773 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2775 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
2776 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
2778 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2780 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
2783 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2785 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
2787 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
2788 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
2790 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
2791 Don't handle -shlib.
2793 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2795 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
2796 (CC1_SPEC): Don't handle -profile.
2798 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2800 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
2801 * config/mips/mips.h (CC1_SPEC): Likewise.
2803 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2805 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
2806 * config/mips/mips.h (CC1_SPEC): Likewise.
2808 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2810 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
2811 * config/m32r/linux.h (LINK_SPEC): Likewise.
2812 * config/mips/linux.h (LINK_SPEC): Likewise.
2813 * config/mips/linux64.h (LINK_SPEC): Likewise.
2814 * config/sparc/linux.h (LINK_SPEC): Likewise.
2815 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
2816 LINK_SPEC): Likewise.
2817 * config/xtensa/linux.h (LINK_SPEC): Likewise.
2819 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2821 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
2823 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
2825 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2827 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
2828 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
2830 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2832 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
2834 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2836 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
2837 supports -Bstatic/-Bdynamic.
2838 * configure: Regenerate.
2840 2011-01-14 Jan Hubicka <jh@suse.cz>
2841 Jack Howarth <howarth@bromo.med.uc.edu>
2844 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
2845 when checking debug_info_level. Test write_symbols instead of
2846 debug_hooks->var_location when setting flag_var_tracking_uninit.
2848 2011-01-14 Richard Guenther <rguenther@suse.de>
2850 PR tree-optimization/47179
2851 * target.def (ref_may_alias_errno): New target hook.
2852 * targhooks.h (default_ref_may_alias_errno): Declare.
2853 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
2854 (default_ref_may_alias_errno): New function.
2855 * target.h (struct ao_ref_s): Declare.
2856 * tree-ssa-alias.c: Include target.h.
2857 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
2858 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
2859 (targhooks.o): Likewise.
2860 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
2861 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
2863 2011-01-14 Richard Guenther <rguenther@suse.de>
2865 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
2867 2011-01-14 Richard Guenther <rguenther@suse.de>
2869 PR tree-optimization/47280
2870 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
2872 (tree_ssa_forward_propagate_single_use_vars): Deal with
2873 CFG changes from associate_plusminus.
2875 2011-01-14 Richard Guenther <rguenther@suse.de>
2879 2011-01-11 Richard Guenther <rguenther@suse.de>
2881 PR tree-optimization/46076
2882 * tree-ssa.c (useless_type_conversion_p): Conversions from
2883 unprototyped to empty argument list function types are useless.
2885 2011-01-14 Richard Guenther <rguenther@suse.de>
2887 PR tree-optimization/47286
2888 * tree-ssa-structalias.c (new_var_info): Register variables are global.
2890 2011-01-14 Martin Jambor <mjambor@suse.cz>
2893 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
2895 2011-01-13 Anatoly Sokolov <aesok@post.ru>
2897 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
2898 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2899 * config/xtensa/xtensa.c (xtensa_libcall_value,
2900 xtensa_function_value_regno_p): New functions.
2901 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
2903 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
2906 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
2908 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
2909 New function prototype.
2910 * config/i386/winnt.c (i386_pe_assemble_visibility):
2911 Warn only if attribute was specified by user.
2913 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
2916 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
2918 (floatunsdidf2_fcfidu): Ditto.
2920 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2922 * config/s390/s390.c (print_operand_address): Replace 'error' with
2923 'output_operand_lossage'.
2924 (print_operand): Likewise.
2926 2011-01-13 Jeff Law <law@redhat.com>
2928 PR rtl-optimization/39077
2929 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
2930 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
2931 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
2932 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
2933 * gcse.c (prune_insertions_deletions): New function.
2934 (compute_pre_data): Use it.
2936 2011-01-13 Dodji Seketeli <dodji@redhat.com>
2939 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
2941 (prune_unused_types_mark): Use it.
2943 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
2945 PR rtl-optimization/45352
2946 * sel-sched.c: Update copyright years.
2947 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
2948 in the advancing loop when we have issued issue_rate insns.
2950 2011-01-12 Richard Henderson <rth@redhat.com>
2952 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
2953 (TARGET_MD_ASM_CLOBBERS): New.
2955 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
2956 (TARGET_DELEGITIMIZE_ADDRESS): New.
2958 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
2959 (clzsi2, *bsch): New patterns.
2961 * config/mn10300/mn10300.md (INT): New mode iterator.
2962 (*mov<INT>_clr): New pattern, and peep2 to generate it.
2964 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
2965 flag_split_wide_types.
2967 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
2968 (mn10300_trampoline_init): Rewrite without a template, an immediate
2969 load and a direct branch.
2970 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
2972 2011-01-12 Anatoly Sokolov <aesok@post.ru>
2974 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2975 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
2976 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
2977 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2979 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
2982 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
2985 2011-01-12 Jan Hubicka <jh@suse.cz>
2988 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
2989 (PLUGIN_COND_CLOSE): New macro.
2990 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
2992 2011-01-12 Richard Guenther <rguenther@suse.de>
2995 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
2996 register variables in a MEM_REF.
2998 2011-01-12 Joseph Myers <joseph@codesourcery.com>
3000 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
3001 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
3002 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
3003 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3004 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3005 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
3006 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
3007 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
3008 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
3009 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
3010 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
3011 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
3012 * config/gnu-user.h: New. Copied from linux.h.
3013 (LINUX_TARGET_STARTFILE_SPEC): Rename to
3014 GNU_USER_TARGET_STARTFILE_SPEC.
3015 (LINUX_TARGET_ENDFILE_SPEC): Rename to
3016 GNU_USER_TARGET_ENDFILE_SPEC.
3017 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
3018 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
3019 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
3020 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
3021 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
3022 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
3023 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
3024 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
3025 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
3026 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
3027 * config/arm/linux-eabi.h (CC1_SPEC): Use
3028 GNU_USER_TARGET_CC1_SPEC.
3029 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
3030 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
3031 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
3032 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
3033 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
3034 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
3035 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
3036 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
3038 2011-01-12 Richard Guenther <rguenther@suse.de>
3041 * doc/invoke.texi (ffast-math): Document it is turned on
3044 2011-01-12 Jan Hubicka <jh@suse.cz>
3046 PR tree-optimization/47233
3047 * opts.c (common_handle_option): Disable ipa-reference with profile
3050 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
3052 * c-parser.c (c_parser_objc_at_property_declaration): Improved
3055 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
3057 * c-parser.c (c_lex_one_token): Updated and reindented some
3058 comments. No changes in code.
3060 2011-01-11 Ian Lance Taylor <iant@google.com>
3062 * godump.c (go_output_var): Don't output the variable if there is
3063 already a type with the same name.
3065 2011-01-11 Ian Lance Taylor <iant@google.com>
3067 * godump.c (go_format_type): Don't generate float80.
3069 2011-01-11 Richard Henderson <rth@redhat.com>
3071 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
3072 declaration. Rewrite for both speed and size.
3073 (mn10300_address_cost_1): Remove.
3074 (mn10300_register_move_cost): New.
3075 (mn10300_memory_move_cost): New.
3076 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
3077 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
3078 extensions, shifts, BSWAP, CLZ.
3079 (mn10300_wide_const_load_uses_clr): Remove.
3080 (TARGET_REGISTER_MOVE_COST): New.
3081 (TARGET_MEMORY_MOVE_COST): New.
3082 * config/mn10300/mn10300-protos.h: Update.
3083 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
3085 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
3086 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
3087 * config/mn10300/mn10300-protos.h: Update.
3088 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
3089 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
3090 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
3091 (*test_int_bitfield, *test_byte_bitfield): Remove.
3092 (*bit_test, *subreg_bit_test): Remove.
3093 * config/mn10300/predicates.md (const_8bit_operand): Remove.
3095 * config/mn10300/constraints.md ("c"): Rename from "A".
3096 ("A", "D"): New constraint letters.
3097 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
3098 (fmssf4, fnmasf4, fnmssf4): Likewise.
3100 * config/mn10300/mn10300.md (isa): New attribute.
3101 (enabled): New attribute.
3103 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
3104 (abssf2, negsf2): Define only for hardware fp.
3105 (sqrtsf2): Reformat.
3106 (addsf3, subsf3, mulsf3): Merge expander and insn.
3108 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
3109 (DEBUGGER_AUTO_OFFSET): Remove.
3110 (DEBUGGER_ARG_OFFSET): Remove.
3112 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
3113 Emit register stores with the same offsets as the hardware.
3114 (mn10300_store_multiple_operation): Don't check that the register
3115 save offsets are monotonic.
3116 * config/mn10300/mn10300-protos.h: Update.
3118 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
3120 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
3121 in terms of the value on the stack, not the MDR register.
3123 2011-01-11 Jan Hubicka <jh@suse.cz>
3127 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
3128 (symbol_alias_set_destroy, symbol_alias_set_contains,
3129 propagate_aliases_backward): Declare.
3130 * lto-streamer-out.c (struct sets): New sturcture.
3131 (trivally_defined_alias): New function.
3132 (output_alias_pair_p): Rewrite.
3133 (output_unreferenced_globals): Fix output of alias pairs.
3134 (produce_symtab): Likewise.
3135 * ipa.c (function_and_variable_visibility): Set weak alias destination
3137 * varasm.c (symbol_alias_set_t): Remove.
3138 (symbol_alias_set_destroy): Export.
3139 (propagate_aliases_forward, propagate_aliases_backward): New functions
3141 (compute_visible_aliases): ... this one; remove.
3142 (trivially_visible_alias): New
3143 (trivially_defined_alias): New.
3144 (remove_unreachable_alias_pairs): Rewrite.
3145 (finish_aliases_1): Reorganize code checking if alias is defined.
3146 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
3149 2011-01-11 Richard Guenther <rguenther@suse.de>
3151 PR tree-optimization/46076
3152 * tree-ssa.c (useless_type_conversion_p): Conversions from
3153 unprototyped to empty argument list function types are useless.
3155 2011-01-11 Richard Guenther <rguenther@suse.de>
3158 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
3159 volatile MEMs as MEM_READONLY_P.
3161 2011-01-11 Richard Guenther <rguenther@suse.de>
3163 PR tree-optimization/47239
3164 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
3166 2011-01-11 Jeff Law <law@redhat.com>
3168 PR tree-optimization/47086
3169 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
3170 IVs from statements that might throw.
3172 2011-01-10 Jan Hubicka <jh@suse.cz>
3175 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
3177 2011-01-10 Jan Hubicka <jh@suse.cz>
3180 * profile.c (read_profile_edge_counts): Ignore profile inconistency
3181 when correcting profile.
3183 2011-01-10 Jan Hubicka <jh@suse.cz>
3186 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
3188 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
3189 Restore DECL_FINI_PRIORITY.
3191 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3193 * doc/gimple.texi: Fix quoting of multi-word return values in
3194 @deftypefn statements. Ensure presence of return value. Wrap
3195 overlong @deftypefn lines.
3196 (is_gimple_operand, is_gimple_min_invariant_address): Remove
3197 descriptions of removed functions.
3198 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
3199 of multi-word return value in @deftypefn statement.
3201 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3203 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
3204 (Conditional Expressions, Logical Operators)
3205 (Statement and operand traversals): Do not indent smallexample
3206 code. Fix duplicate function argument in example.
3208 2011-01-10 Jeff Law <law@redhat.com>
3210 PR tree-optimization/47141
3211 * ipa-split.c (split_function): Handle case where we are
3212 returning a value and the return block has a virtual operand phi.
3214 2011-01-10 Jan Hubicka <jh@suse.cz>
3216 PR tree-optimization/47234
3217 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
3218 (pass_feedback_split_functions): Declare.
3219 * passes.c (init_optimization_passes): Add ipa-split as subpass of
3221 * ipa-split.c (gate_split_functions): Update comments; disable
3222 split-functions for profile_arc_flag and branch_probabilities.
3223 (gate_feedback_split_functions): New function.
3224 (execute_feedback_split_functions): New function.
3225 (pass_feedback_split_functions): New global var.
3227 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
3230 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
3231 calling gimple_call_set_cannot_inline.
3233 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
3235 * config/darwin-sections.def: Remove unused section.
3237 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
3240 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
3242 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
3245 * c-parser.c (c_parser_declaration_or_fndef): Improved
3248 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
3250 * config/i386/winnt.c (i386_pe_start_function): Make sure
3251 to switch back to function's section.
3253 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
3257 * plugin.c: Move include of dlfcn.h from here...
3258 * system.h: ... to here.
3260 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3262 * doc/cpp.texi (C++ Named Operators): Fix markup for header
3264 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
3265 two extra empty pages in PDF output.
3267 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
3270 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
3271 for error recovery purposes behave as if it was not specified so
3272 that the default type is usd.
3274 2011-01-07 Jan Hubicka <jh@suse.cz>
3276 PR tree-optmization/46469
3277 * ipa.c (function_and_variable_visibility): Clear needed flags on
3278 nodes with external decls; handle weakrefs merging correctly.
3280 2011-01-07 Joseph Myers <joseph@codesourcery.com>
3282 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
3285 2011-01-07 Jan Hubicka <jh@suse.cz>
3287 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
3288 and no longer claim that gold is required for linker plugin.
3289 * configure: Regenerate.
3290 * gcc.c (PLUGIN_COND): New macro.
3291 (LINK_COMMAND_SPEC): Use it.
3292 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
3293 * config.in (HAVE_LTO_PLUGIN): New.
3294 * configure.ac (--with-lto-plugin): New parameter; autodetect
3297 2011-01-07 Jan Hubicka <jh@suse.cz>
3299 PR tree-optimization/46367
3300 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
3301 when we can update original.
3302 (cgraph_mark_inline_edge): Sanity check.
3303 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
3305 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3307 * config/spu/spu.h (ASM_COMMENT_START): Define.
3309 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
3313 (SWITCH_KEEP_FOR_GCC): Likewise.
3314 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
3315 (do_spec_1): Handle "%>".
3317 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
3319 2011-01-07 Jakub Jelinek <jakub@redhat.com>
3322 * config/i386/i386.c (ix86_delegitimize_address): If
3323 simplify_gen_subreg fails, return orig_x.
3326 * value-prof.c (gimple_stringop_fixed_value): Handle
3327 lhs of the call properly.
3329 2011-01-07 Jan Hubicka <jh@suse.cz>
3332 * lto-opt.c (lto_reissue_options): Set flag_shlib.
3334 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
3336 * target.def (function_switched_text_sections): New hook.
3337 * doc/tm.texi: Regenerated.
3338 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
3339 * final.c (default_function_switched_text_sections): New.
3340 (final_scan_insn): Call function_switched_text_sections when a
3341 mid-function section change occurs.
3342 * output.h (default_function_switched_text_sections): Declare.
3343 * config/darwin-protos.h (darwin_function_switched_text_sections):
3345 * config/darwin.c (darwin_function_switched_text_sections): New.
3346 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
3348 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
3350 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
3351 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
3352 the secondary code fragment when outputting for DWARF == 2.
3354 2011-01-07 Anatoly Sokolov <aesok@post.ru>
3356 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3357 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
3359 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
3360 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3362 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
3365 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
3366 when it is not empty.
3368 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
3371 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
3372 (case ${target}): Add btver1.
3373 * config/i386/driver-i386.c (host_detect_local_cpu): Let
3374 -march=native recognize btver1 processors.
3375 * config/i386/i386-c.c (ix86_target_macros_internal): Add
3376 btver1 def_and_undef
3377 * config/i386/i386.c (struct processor_costs btver1_cost): New
3379 (m_BTVER1): New definition.
3380 (m_AMD_MULTIPLE): Includes m_BTVER1.
3381 (initial_ix86_tune_features): Add btver1 tune.
3382 (processor_target_table): Add btver1 entry.
3383 (static const char *const cpu_names): Add btver1 entry.
3384 (software_prefetching_beneficial_p): Add btver1.
3385 (ix86_option_override_internal): Add btver1 instruction sets.
3386 (ix86_issue_rate): Add btver1.
3387 (ix86_adjust_cost): Add btver1.
3388 * config/i386/i386.h (TARGET_BTVER1): New definition.
3389 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
3390 (enum processor_type): Add PROCESSOR_BTVER1.
3391 * config/i386/i386.md (define_attr "cpu"): Add btver1.
3393 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3396 * config/i386/i386.c (legitimize_tls_address)
3397 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
3398 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
3399 (tls_initial_exec_64_sun): New pattern.
3401 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
3403 * doc/invoke.texi (Overall Options): Improve wording and markup
3404 of the description of -wrapper.
3406 2011-01-06 Joseph Myers <joseph@codesourcery.com>
3408 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
3409 rdynamic, threads): New Driver options.
3411 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3414 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
3415 if coming from .tdata.
3416 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
3418 2011-01-06 Jan Hubicka <jh@suse.cz>
3421 * collect2.c (main): Do not enable LTOmode when plugin is active.
3423 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3426 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
3427 --version output if supported.
3428 * configure: Regenerate.
3430 2011-01-06 Joseph Myers <joseph@codesourcery.com>
3432 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
3435 2011-01-06 Jakub Jelinek <jakub@redhat.com>
3438 * c-convert.c (convert): When converting a complex expression
3439 other than COMPLEX_EXPR to a different complex type, ensure
3440 c_save_expr is called instead of save_expr, unless in_late_binary_op.
3441 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
3442 when converting COMPLEX_TYPE.
3444 2011-01-06 Ira Rosen <irar@il.ibm.com>
3446 PR tree-optimization/47139
3447 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
3448 only the last reduction value is used outside the loop. Update
3451 2011-01-05 Joseph Myers <joseph@codesourcery.com>
3453 * config/rtems.opt: New.
3454 * config.gcc (*-*-rtems*): Use rtems.opt.
3456 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
3458 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
3459 processors do not support 3DNow instructions.
3461 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3463 * config/spu/spu.c (spu_option_override): Set parameter
3464 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
3466 2011-01-05 Jan Hubicka <jh@suse.cz>
3468 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
3469 at the command line.
3471 2011-01-05 Martin Jambor <mjambor@suse.cz>
3474 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
3475 deltas on streamed outgoing edges.
3476 (output_node_opt_summary): Output info for outgoing edges only when
3477 the node is in new parameter set.
3478 (output_cgraph_opt_summary): New parameter set, passed to the two
3479 aforementioned functions. Update its forward declaration and its
3482 2011-01-05 Tom Tromey <tromey@redhat.com>
3484 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
3485 operator to c_finish_omp_atomic.
3486 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
3487 (build_unary_op): Update.
3488 (build_modify_expr): Update.
3489 (build_asm_expr): Update.
3491 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3493 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
3494 newly inserted insns.
3496 (spu_emit_branch_hint): Likewise.
3497 (insert_hbrp_for_ilb_runout): Likewise.
3498 (spu_machine_dependent_reorg): Call df_finish_pass after
3499 schedule_insns returns.
3501 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3503 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
3505 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
3507 PR tree-optimization/47005
3508 * tree-sra.c (struct access): Add 'non_addressable' bit.
3509 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
3510 (decide_one_param_reduction): Return 0 if the parameter is passed by
3511 reference and one of the accesses in the group is non_addressable.
3513 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
3515 PR tree-optimization/47056
3516 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
3517 (mark_load): Likewise. Handle FUNCTION_DECL specially.
3518 (mark_store): Likewise. Pass STMT to ipa_record_reference.
3520 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
3522 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
3523 initializer. Skip view conversions from aggregate types.
3525 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
3528 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
3530 2011-01-04 Philipp Thomas <pth@suse.de>
3532 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
3535 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3537 * function.c (thread_prologue_and_epilogue_insns): Do not crash
3538 on empty epilogue sequences.
3540 2011-01-04 Joseph Myers <joseph@codesourcery.com>
3542 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
3543 non-static): New Driver options.
3545 2011-01-04 Jie Zhang <jie@codesourcery.com>
3548 * gcc.c (default_compilers[]): Set combinable field to 0
3549 for all assembly languages.
3551 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
3553 * config/mips/loongson3a.md: New file.
3554 * config/mips/mips.md: Include loongson3a.md.
3555 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
3558 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
3561 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
3562 instead of convert_memory_address_addr_space on the base expression.
3564 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3566 * config/spu/spu.c (spu_option_override): Update error text
3567 for bad -march= / -mtune= values.
3569 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3571 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
3572 if branch-hint optimization will be performed.
3574 2011-01-03 Jakub Jelinek <jakub@redhat.com>
3576 PR tree-optimization/47148
3577 * ipa-split.c (split_function): Convert arguments to
3578 DECL_ARG_TYPE if possible.
3580 PR tree-optimization/47155
3581 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
3584 PR rtl-optimization/47157
3585 * combine.c (try_combine): If undobuf.other_insn becomes
3586 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
3587 and set *new_direct_jump_p too.
3589 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
3591 PR tree-optimization/47021
3592 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
3594 2011-01-03 Jakub Jelinek <jakub@redhat.com>
3596 * gcc.c (process_command): Update copyright notice dates.
3597 * gcov.c (print_version): Likewise.
3598 * gcov-dump.c (print_version): Likewise.
3599 * mips-tfile.c (main): Likewise.
3600 * mips-tdump.c (main): Likewise.
3602 2011-01-03 Martin Jambor <mjambor@suse.cz>
3604 PR tree-optimization/46801
3605 * tree-sra.c (type_internals_preclude_sra_p): Check whether
3606 aggregate fields start at byte boundary instead of the bit-field flag.
3608 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
3611 * gcc.c (main): Revert revision 168407.
3613 2011-01-03 Martin Jambor <mjambor@suse.cz>
3615 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
3617 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3619 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
3620 vector optab to expand vector/scalar shift, update gimple to vector.
3622 2011-01-03 Martin Jambor <mjambor@suse.cz>
3624 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
3627 2011-01-03 Martin Jambor <mjambor@suse.cz>
3629 PR tree-optimization/46984
3630 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
3632 (cgraph_create_indirect_edge): Fixed line length.
3633 (cgraph_indirect_call_info): Declare.
3634 (cgraph_make_edge_direct) Update declaration.
3635 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
3636 (cgraph_create_indirect_edge): Use it.
3637 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
3639 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
3640 the new thunk_delta representation.
3641 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
3643 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
3644 (ipa_read_indirect_edge_info): Likewise.
3645 * lto-cgraph.c (output_edge_opt_summary): New function.
3646 (output_node_opt_summary): Call it on all outgoing edges.
3647 (input_edge_opt_summary): New function.
3648 (input_node_opt_summary): Call it on all outgoing edges.
3650 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
3653 * gcc.c (main): Don't check have_o when settting combine_inputs.
3655 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
3657 * regrename.c: Add general comment describing the pass.
3658 (struct du_head): Remove 'length' field.
3659 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
3660 (regrename_optimize): Do not sort chains. Rework comments, add others.
3661 Force renaming to the preferred class (if any) in the first pass and do
3662 not consider registers that belong to it in the second pass.
3663 (create_new_chain): Do not set 'length' field.
3664 (scan_rtx_reg): Likewise.
3666 2011-01-02 Jakub Jelinek <jakub@redhat.com>
3668 PR tree-optimization/47140
3669 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
3670 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
3673 PR rtl-optimization/47028
3674 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
3675 parm_birth_insn instead of at the beginning of first bb.
3677 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
3679 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
3680 Remove the word "see" before "@pxref".
3681 * doc/rtl.texi: Remove the word "see" before "@pxref".
3683 2011-01-01 Jan Hubicka <jh@suse.cz>
3685 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
3688 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
3691 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
3694 Copyright (C) 2011 Free Software Foundation, Inc.
3696 Copying and distribution of this file, with or without modification,
3697 are permitted in any medium without royalty provided the copyright
3698 notice and this notice are preserved.