1 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
3 PR tree-optimization/49545
4 * builtins.c (get_object_alignment_1): Update function comment.
5 Do not use DECL_ALIGN for functions, but test
6 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
7 * fold-const.c (get_pointer_modulus_and_residue): Don't check
9 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
11 2011-06-29 Jakub Jelinek <jakub@redhat.com>
14 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up
15 for non-MODE_INT modes instead of asserting the mode has MODE_INT
18 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
21 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
22 about uninitialized data attributed 'progmem' from here...
23 (avr_encode_section_info): ...to this new function.
24 (TARGET_ENCODE_SECTION_INFO): New define.
25 (avr_section_type_flags): For data in ".progmem.data", remove
26 section flag SECTION_WRITE.
28 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
30 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
32 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
33 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
35 * config/avr/avr.md (mulhisi3): New insn expender.
36 (umulhisi3): New insn expender.
37 (*mulhisi3_call): New insn.
38 (*umulhisi3_call): New insn.
40 2011-06-28 Joseph Myers <joseph@codesourcery.com>
42 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
44 2011-06-28 Richard Henderson <rth@redhat.com>
46 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
47 all code and arguments that handled pushes. Update all callers.
49 2011-06-28 Richard Henderson <rth@redhat.com>
51 * config/arm/arm.c (arm_output_function_prologue): Don't call
52 thumb1_output_function_prologue.
53 (arm_expand_prologue): Avoid dead store.
54 (number_of_first_bit_set): Use ctz_hwi.
55 (thumb1_emit_multi_reg_push): New.
56 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
57 to emit the entire prologue as rtl.
58 (thumb1_output_interwork): Split out from
59 thumb1_output_function_prologue.
60 (thumb1_output_function_prologue): Remove.
61 (arm_attr_length_push_multi): Handle thumb1.
62 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
63 (prologue_thumb1_interwork): New.
64 (*push_multi): Allow thumb1; use push_mult_memory_operand.
65 * config/arm/predicates.md (push_mult_memory_operand): New.
67 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
69 * config/sparc/sync.md (*stbar): Delete.
70 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
72 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
74 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
76 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
78 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
79 (TARGET_64BIT_DEFAULT): Define.
80 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
82 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
84 2011-06-28 Joseph Myers <joseph@codesourcery.com>
86 * common.opt (in_lto_p): New Variable entry.
87 * flags.h (in_lto_p): Move to common.opt.
88 * gcc.c: Include params.h.
89 (set_option_handlers): Also use common_handle_option and
91 (main): Call global_init_params, finish_params and
93 * opts.c (debug_type_names): Move from toplev.c.
94 (print_filtered_help): Access quiet_flag through opts pointer.
95 (common_handle_option): Return early in the driver for some
96 options. Access in_lto_p, dwarf_version and
97 warn_maybe_uninitialized through opts pointer.
98 * toplev.c (in_lto_p): Move to common.opt.
99 (debug_type_names): Move to opts.c.
100 * Makefile.in (OBJS): Remove opts.o.
101 (OBJS-libcommon-target): Add opts.o.
102 (gcc.o): Update dependencies.
104 2011-06-28 Kai Tietz <ktietz@redhat.com>
106 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve
109 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
111 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
112 with '=' constraint modifier.
113 (*divdf3_vfp): Likewise.
114 ("*mulsf3_vfp"): Likewise.
115 ("*muldf3_vfp"): Likewise.
116 ("*mulsf3negsf_vfp"): Likewise.
117 ("*muldf3negdf_vfp"): Likewise.
119 2011-06-28 Nick Clifton <nickc@redhat.com>
121 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
122 relaxation when performing an incremental link.
124 2011-06-28 Kai Tietz <ktietz@redhat.com>
126 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
127 within BB from last to first.
129 2011-06-28 Joseph Myers <joseph@codesourcery.com>
131 * genattr-common.c: New. Based on genattr.c.
132 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
133 (MOSTLYCLEANFILES): Add insn-attr-common.h.
134 (opts.o): Update dependencies.
135 (.PRECIOUS): Add insn-attr-common.h.
136 (simple_rtl_generated_h): Add insn-attr-common.h.
137 (build/genattr-common.o): New.
138 (genprogrtl): Add attr-common.
139 * genattr.c (main): Include insn-attr-common.h. Don't generate
140 definitions of DELAY_SLOTS or INSN_SCHEDULING.
141 * opts.c: Include insn-attr-common.h instead of rtl.h and
144 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
146 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
147 avr-*-* and avr-*-rtems* targets.
149 * config/avr/elf.h: New file.
150 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
151 (TARGET_ASM_SELECT_SECTION): Define.
152 (INIT_SECTION_ASM_OP): Undefine.
153 (FINI_SECTION_ASM_OP): Undefine.
154 (READONLY_DATA_SECTION_ASM_OP): Undefine.
155 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
156 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
158 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
159 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
160 (MAX_OFILE_ALIGNMENT): Move to elf.h.
161 (STRING_LIMIT): Move to elf.h.
162 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
163 (ASM_DECLARE_OBJECT_NAME): Remove.
165 (ASM_OUTPUT_SKIP): Remove.
166 (DWARF2_DEBUGGING_INFO): Remove.
167 (OBJECT_FORMAT_ELF): Remove.
168 (USER_LABEL_PREFIX): Remove.
169 (ASM_OUTPUT_EXTERNAL): Remove.
170 (ASM_OUTPUT_ASCII): Remove.
171 (TYPE_ASM_OP): Remove.
172 (SIZE_ASM_OP): Remove.
173 (WEAK_ASM_OP): Remove.
174 (STRING_ASM_OP): Remove.
175 (SET_ASM_OP): Remove.
176 (ASM_WEAKEN_LABEL): Remove.
177 (TYPE_OPERAND_FMT): Remove.
178 (ASM_DECLARE_FUNCTION_SIZE): Remove.
179 (ASM_FINISH_DECLARE_OBJECT): Remove.
180 (NO_DOLLAR_IN_LABEL): Remove.
181 (ASM_GENERATE_INTERNAL_LABEL): Remove.
182 (ASM_OUTPUT_CASE_LABEL): Remove.
183 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
184 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
185 (gas_output_ascii): Remove.
186 (gas_output_limited_string): Remove.
187 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
188 * config/avr/avr-protos.h
189 (gas_output_ascii): Remove prototye.
190 (gas_output_limited_string): Remove prototype.
192 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
195 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
198 2011-06-27 Jan Hubicka <jh@suse.cz>
200 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
201 node instead of references in node.
203 2011-06-27 Richard Henderson <rth@redhat.com>
205 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
206 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
209 2011-06-27 Jakub Jelinek <jakub@redhat.com>
211 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
213 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
214 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
215 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
216 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
217 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
218 (evaluate_stmt, execute_fold_all_builtins): Handle
219 BUILT_IN_ASSUME_ALIGNED.
220 * tree-ssa-dce.c (propagate_necessity): Likewise.
221 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
222 call_may_clobber_ref_p_1): Likewise.
223 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
224 (expand_builtin_assume_aligned): New function.
225 * doc/extend.texi (__builtin_assume_aligned): Document.
228 * cselib.c (promote_debug_loc): If cselib_preserve_constants
229 and l has two DEBUG_INSN owned locs instead of just one, adjust
230 the second location's setting_insn too.
232 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
235 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
237 2011-06-27 Nick Clifton <nickc@redhat.com>
239 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to
240 convert bit position of highest bit set into a count of the high
243 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
245 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
247 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
250 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
253 2011-06-27 Richard Guenther <rguenther@suse.de>
255 PR tree-optimization/49394
256 * passes.c (execute_one_pass): Restore current_pass after
257 applying IPA transforms.
259 2011-06-27 Kai Tietz <ktietz@redhat.com>
261 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
262 out of type precision after operation.
263 (find_bswap): Take for limit value the integer auto-
264 promotion into account.
266 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
268 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
269 forward scan as well.
271 2011-06-27 Tristan Gingold <gingold@adacore.com>
274 * config/vms/vms-protos.h: New file.
275 * config/vms/vms-crtlmap.map: New file.
276 * config/vms/vms.c: New file.
277 * config/vms/make-crtlmap.awk: New file.
278 * config/vms/vms-crtl.h: File removed.
279 * config/vms/vms-crtl-64.h: File removed.
280 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
281 * config/alpha/vms64.h: Do not include vms-crtl-64.h
282 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
283 clear some builtins on VMS. Calls vms_patch_builtins.
284 (avms_asm_output_external): Remove.
285 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
286 (struct crtl_name_spec): Remove
287 (DO_CTRL_NAMES): Remove.
288 * config/ia64/vms.h (struct crtl_name_spec): Remove
289 (DO_CTRL_NAMES): Remove.
290 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
291 clear some builtins on VMS. Calls vms_patch_builtins.
292 (ia64_asm_output_external): Remove DO_CRTL_NAME.
293 * config/ia64/vms64.h: Do not include vms-crtl-64.h
294 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles,
297 2011-06-27 Tristan Gingold <gingold@adacore.com>
299 * config/alpha/alpha.c (alpha_end_function): Always generate .end
302 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
304 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
305 the function receives nonlocal gotos.
307 2011-06-27 Richard Guenther <rguenther@suse.de>
309 PR tree-optimization/49536
310 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
311 For non-scalar inner types use a scalar type according to
312 the scalar inner mode.
314 2011-06-27 Richard Guenther <rguenther@suse.de>
316 PR tree-optimization/49365
317 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
319 2011-06-27 Richard Guenther <rguenther@suse.de>
321 PR tree-optimization/49169
322 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
323 the alignment of function decls.
325 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
328 * config/darwin.c (darwin_mergeable_string_section): Place string
329 constants in '.cstring' rather than '.const' when CF/NSStrings are
332 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
334 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
335 (emit_save_register_window): Likewise.
336 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
337 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
338 Swap back %o7/%i7 in register naming.
340 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
343 * config/darwin.c (darwin_override_options): Improve warning when
344 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
345 is given with fpie/fPIE.
346 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
347 * config/darwin9.h (PIE_SPEC): New.
349 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
351 * timevar.c (timevar_print): Increase width for display of timevar
354 2011-06-24 Jakub Jelinek <jakub@redhat.com>
357 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
358 instead of TYPE_CHAIN for chain_next for types.
360 2011-06-24 Richard Henderson <rth@redhat.com>
362 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
363 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
364 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
365 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
366 (sparc_flat_expand_prologue): Emit individual instructions
367 instead of one of the above.
369 2011-06-24 Easwaran Raman <eraman@google.com>
371 PR rtl-optimization/49429
373 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
374 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
375 used to copy y into x.
376 * calls.c (initialize_argument_information): Mark
377 an argument addressable if it is passed by invisible reference.
378 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
379 if it is passed by reference.
381 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
383 PR rtl-optimization/49504
384 * rtlanal.c (nonzero_bits1): Properly handle addition or
385 subtraction of a pointer in Pmode if pointers extend unsigned.
386 (num_sign_bit_copies1): Likewise.
388 2011-06-24 Martin Jambor <mjambor@suse.cz>
390 PR tree-optimizations/49516
391 * tree-sra.c (sra_modify_assign): Choose the safe path for
392 aggregate copies if we also did scalar replacements.
394 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
397 * config/arm/predicates.md (add_operator): New.
398 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage
401 2011-06-24 Andi Kleen <ak@linux.intel.com>
403 * tree-sra.c (type_internals_preclude_sra_p): Add msg
404 parameter. Split up ifs and report reason in *msg.
406 (find_var_candiate): Add msg variable.
407 Split up ifs and report reason to reject.
408 (find_param_candidates): Add msg variable.
409 Pass msg to type_internals_preclude_sra_p.
411 2011-06-23 Jeff Law <law@redhat.com>
414 * reload.h (reload): Change to return a bool.
415 * ira.c (ira): If requested by reload, run a fast DCE pass after
416 reload has completed. Fix comment typo.
417 * reload1.c (need_dce): New file scoped static.
418 (reload): Set reload_completed here. Return whether or not a DCE
419 pass after reload is needed.
420 (delete_dead_insn): Set need_dce as needed.
423 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
424 to detect threading through joiner block. If there was already
425 an edge to the new target, then do not change the PHI nodes.
427 2011-06-23 Jakub Jelinek <jakub@redhat.com>
429 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
430 get_pointer_alignment to see if base isn't sufficiently aligned.
432 2011-06-23 Jan Hubicka <jh@suse.cz>
434 PR tree-optimize/49373
435 * tree-pass.h (all_late_ipa_passes): Declare.
436 * cgraphunit.c (init_lowered_empty_function): Fix properties.
437 (cgraph_optimize): Execute late passes; remove unreachable funcions
438 after materialization.
439 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
441 * passes.c (all_late_ipa_passes): Declare.
442 (dump_passes, register_pass): Handle late ipa passes.
443 (init_optimization_passes): Move ipa_pta to late passes; schedule
444 fixup_cfg at beggining of all_passes.
445 (apply_ipa_transforms): New function.
446 (execute_one_pass): When doing simple ipa pass, apply all transforms.
448 2011-06-23 Joseph Myers <joseph@codesourcery.com>
450 * params.c: Include common/common-target.h. Don't include tm.h.
451 (lang_independent_params): Move from toplev.c.
452 (global_init_params): New.
453 * params.h (global_init_params): Declare.
454 * target.def (default_params): Move to common-target.def.
455 * toplev.c (lang_independent_options): Remove.
456 (lang_independent_params): Move to params.c.
457 (general_init): Use global_init_params.
458 * common/common-target.def (option_default_params): Move from
460 * common/config/ia64/ia64-common.c: Include params.h.
461 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
463 * common/config/rs6000/rs6000-common.c: Include params.h.
464 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
466 * common/config/sh/sh-common.c: Include params.h.
467 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
469 * common/config/spu/spu-common.c: Include params.h.
470 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
472 * config/ia64/ia64.c (ia64_option_default_params,
473 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
474 * config/rs6000/rs6000.c (rs6000_option_default_params,
475 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
476 * config/sh/sh.c (sh_option_default_params,
477 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
478 * config/spu/spu.c (spu_option_default_params,
479 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
480 * Makefile.in (OBJS): Remove params.o.
481 (OBJS-libcommon-target): Add params.o.
482 (params.o, $(common_out_object_file)): Update dependencies.
483 * doc/tm.texi: Regenerate.
485 2011-06-23 Alan Modra <amodra@gmail.com>
488 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
489 invocation for 2011-06-09 changes.
491 2011-06-22 Jakub Jelinek <jakub@redhat.com>
494 * omp-low.c (expand_omp_for_static_nochunk): Only
495 use n ceil/ nthreads size for the first
496 n % nthreads threads in the team instead of
497 all threads except for the last few ones which
498 get less work or none at all.
501 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
504 2011-06-22 Richard Guenther <rguenther@suse.de>
506 PR tree-optimization/49493
507 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
508 Refer to the alias target of variables.
509 (associate_varinfo_to_alias_1): Remove.
510 (ipa_pta_execute): Do not associate aliases with anything.
511 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
512 (cgraph_function_node): Likewise.
513 (cgraph_function_or_thunk_node): Likewise.
514 (varpool_variable_node): Likewise.
516 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
518 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect
520 * config.gcc (arm*-*-linux*): Default to gnu tls.
521 (arm*-*-*): Add --with-tls option.
522 (all_defaults): Add 'tls'.
524 2011-06-22 Richard Henderson <rth@redhat.com>
526 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
527 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
528 (dwarf2out_frame_debug_cfa_window_save): Rename from
529 dwarf2out_window_save; make static.
530 * tree.h (dwarf2out_window_save): Don't declare.
532 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
533 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
534 (emit_save_register_window): Rename from gen_save_register_window;
535 emit the insn and add REG_CFA_* notes.
536 (sparc_expand_prologue): Update to match.
537 * config/sparc/sparc.md (save_register_window_1): Simplify from
538 save_register_window<P:mode>.
540 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
543 * config/i386/i386.md (*lea_general_2): Always allow SImode.
544 (*lea_general_2_zext): Likewise.
545 (imul to lea peepholes): Use const359_operand and check
546 TARGET_PARTIAL_REG_STALL.
548 * config/i386/predicates.md (const359_operand): New.
550 2011-06-22 Michael Matz <matz@suse.de>
552 * cgraphunit.c (assemble_thunk): Use correct return type.
554 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
555 Dmitry Melnik <dm@ispras.ru>
557 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
558 (neon_output_shift_immediate): Ditto.
559 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
561 (neon_output_shift_immediate): Ditto.
562 * config/arm/neon.md (vashl<mode>3): Modified constraint.
563 (vashr<mode>3_imm): New insn pattern.
564 (vlshr<mode>3_imm): Ditto.
565 (vashr<mode>3): Modified constraint.
566 (vlshr<mode>3): Ditto.
567 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
569 (imm_for_neon_rshift_operand): Ditto.
570 (imm_lshift_or_reg_neon): Ditto.
571 (imm_rshift_or_reg_neon): Ditto.
573 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
575 2011-06-22 Jakub Jelinek <jakub@redhat.com>
577 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
578 builtin calls even if likelyvalue is not CONSTANT.
579 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
580 Return get_value_for_expr of first operand
581 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
582 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
583 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
584 their non-checking counterparts.
585 (call_may_clobber_ref_p_1): Likewise.
586 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
587 like their non-checking counterparts.
588 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
589 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
590 like their non-checking counterparts.
591 (find_func_clobbers): Likewise.
592 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
593 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
595 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
596 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
597 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
598 of base type reference as argument.
599 (resolve_addr_in_expr): Likewise. Fix keep computation.
600 (convert_descriptor_to_signed): Renamed to...
601 (convert_descriptor_to_mode): ... this. For wider types convert
602 to unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to
604 (typed_binop): New function.
605 (scompare_loc_descriptor, ucompare_loc_descriptor,
606 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
607 default to unsigned type instead of signed.
610 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
611 (gimple_build_debug_source_bind_stat): New prototype.
612 (gimple_build_debug_source_bind): Define.
613 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
614 gimple_debug_source_bind_get_value,
615 gimple_debug_source_bind_get_value_ptr,
616 gimple_debug_source_bind_set_var,
617 gimple_debug_source_bind_set_value): New inlines.
618 * gimple.c (gimple_build_debug_source_bind_stat): New function.
619 * gimple-pretty-print.c (dump_gimple_debug): Handle
620 GIMPLE_DEBUG_SOURCE_BIND.
621 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
622 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
623 * tree-parloops.c (eliminate_local_variables,
624 separate_decls_in_region): Likewise.
625 (separate_decls_in_region_debug): Renamed from
626 separate_decls_in_region_debug_bind. Handle
627 gimple_debug_source_bind_p.
628 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
630 (DECL_HAS_DEBUG_ARGS_P): Define.
631 (struct tree_function_decl): Add has_debug_args_flag field.
632 * tree.c (debug_args_for_decl): New variable.
633 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
634 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
635 (rewrite_debug_stmt_uses): New function.
636 (rewrite_stmt): Use it to rewrite debug stmt uses.
637 * rtl.def (DEBUG_PARAMETER_REF): New.
638 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
639 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
641 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
642 * print-rtl.c (print_rtx): Likewise.
643 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
644 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
645 debug stmts in the first bb.
646 * tree-inline.c (remap_ssa_name): If remapping default def
647 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
648 a source bind debug stmt.
649 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
650 (maybe_move_debug_stmts_to_successors): Likewise.
651 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
652 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
653 debug args vector from old_decl to new_decl.
654 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
655 or modified parameters, add debug bind stmts before call
656 setting DEBUG_EXPR_DECL which is remembered in debug args
658 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
659 on DECL_DEBUG_EXPRs from debug args vector.
660 (expand_debug_source_expr): New function.
661 (expand_debug_locations): Use it for source bind insns.
662 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
663 * var-tracking.c (prepare_call_arguments): Add debug args
664 to call_arguments if any.
665 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
666 output_loc_operands, output_loc_operands_raw,
667 resolve_addr_in_expr, compare_loc_operands): Handle
668 DW_OP_GNU_parameter_ref.
669 (get_ref_die_offset, parameter_ref_descriptor): New functions.
670 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
671 (gen_subprogram_die): Handle parameters identified by
674 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
676 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
677 * doc/install.texi (Configuration): Document --with-tls.
678 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
679 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
680 (arm_tls_descseq_addr): New.
681 (legitimize_tls_address): Add tlsdesc support.
682 (arm_cannot_copy_insn_p): Check for tlscall.
683 (arm_emit_tls_decoration): Likewise.
684 * config/arm/arm.h (TARGET_GNU2_TLS): New.
685 (OPTION_DEFAULT_SPECS): Add with-tls support.
686 * config/arm/arm.md (R1_REGNUM): Define.
688 * config/arm/arm.opt (tls_type): New enumeration type and values.
689 (mtls-dialect): New switch.
690 * config/arm/arm-opts.h (enum tls_type): New.
692 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
694 * attribs.c (register_attribute): Added assert to check that all
695 attribute specs are registered with a name that is not empty and
696 does not start with '_'.
697 (decl_attributes): Avoid the lookup of the "naked" attribute spec
698 if the function has no attributes.
699 * tree.c (is_attribute_with_length_p): Removed.
700 (is_attribute_p): Removed.
701 (private_is_attribute_p): New.
702 (private_lookup_attribute): New.
703 (lookup_attribute): Removed.
704 (lookup_ident_attribute): New.
705 (remove_attribute): Require the first argument to be in the form
706 'text', not '__text__'. Updated asserts.
707 (merge_attributes): Use lookup_ident_attributes instead of
709 (merge_dllimport_decl_attributes): Use remove_attribute.
710 (attribute_list_contained): Likewise.
711 (attribute_list_equal): Immediately return 1 if the arguments are
713 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
714 'int'. Require the first argument to be in the form 'text', not
715 '__text__'. Require the second argument to be an identifier.
716 (lookup_attribute): Made inline. Require the first argument to be
717 in the form 'text', not '__text__'.
718 (private_is_attribute_p, private_lookup_attribute): New.
721 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
723 * builtins.c: Add sync_ or SYNC__ to builtin names.
724 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
725 * omp-low.c: Add sync_ or SYNC__ to builtin names.
727 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
730 * config/avr/avr.md (extzv): New expander.
732 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
733 * config/avr/constraints.md (C04): New constraint.
734 * doc/md.texi (Machine Constraints): Document it.
736 2011-06-21 Jakub Jelinek <jakub@redhat.com>
739 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
740 unsignedp argument instead of 1 for clrsb_optab.
741 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
742 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
743 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
744 * optabs.c (widen_leading): Call widen_operand and expand_unop
745 with 0 as unsignedp argument instead of 1 for clrsb_optab.
746 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
748 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
750 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
752 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
754 * gensupport.c (add_define_attr): New static function.
755 (is_predicable): Allow multi-alternative lists for the "predicable"
757 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
758 (process_one_cond_exec): Call alter_attrs_for_insn.
759 * doc/md.texi (Defining Attributes): Mention some standard names.
760 (Conditional Execution): Update documentation for "predicable".
762 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
763 __builtin_clrsbll): Document.
764 * doc/rtl.texi (clrsb): New entry.
765 * optabs.c (widen_leading): Renamed from widen_clz. New argument
766 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
767 (expand_unop): Handle clrsb_optab.
768 (init_optabs): Initialize it.
769 * optabs.h (enum optab_index): New entry OTI_clrsb.
770 (clrsb_optab): Define.
771 * genopinit.c (optabs): Add an entry for it.
772 * builtins.c (expand_builtin): Handle clrsb builtin functions.
773 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
774 BUILT_IN_CLRSBLL): New.
775 * rtl.def (CLRSB): New code.
776 * dwarf2out.c (mem_loc_descriptor): Handle it.
777 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
778 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
780 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
781 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
782 (__ctzDI2): Move declaration.
783 * config/bfin/bfin.md (clrsbsi2): New expander.
784 (signbitssi2): Use the CLRSB rtx.
785 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
786 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
788 2011-06-21 Richard Guenther <rguenther@suse.de>
790 * ipa-inline-transform.c (inline_transform): Fix previous change.
792 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
794 PR tree-optimization/49478
795 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
796 with constant operand.
798 2011-06-21 Richard Guenther <rguenther@suse.de>
800 * ipa-inline-transform.c (inline_transform): Fix typo.
802 2011-06-21 Richard Guenther <rguenther@suse.de>
804 PR tree-optimization/49483
805 * tree-vect-stmts.c (vectorizable_assignment): Also handle
806 VIEW_CONVERT_EXPR conversions.
808 2011-06-21 Joseph Myers <joseph@codesourcery.com>
810 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
811 * config/avr/avr-tables.opt: New file (generated).
812 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
813 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
815 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
816 (avr_option_override): Don't process -mmcu= argument here. Set
817 avr_current_device using avr_mcu_index.
818 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
819 * config/avr/avr.opt (mmcu=): Use Enum.
820 * config/avr/t-avr (avr-devices.o): Update dependencies.
821 ($(srcdir)/config/avr/avr-tables.opt): New.
822 * target.def (help): Remove.
823 * doc/tm.texi.in (TARGET_HELP): Remove.
824 * doc/tm.texi: Regenerate.
825 * opts.c: Don't include target.h.
826 (common_handle_option): Don't call targetm.help.
827 * system.h (TARGET_HELP): Poison.
828 * Makefile.in (opts.o): Update dependencies.
830 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
832 * config/usegld.h: New file.
833 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
834 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
835 (LIB_SPEC): Likewise. Search /lib.
836 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
837 (RDYNAMIC_SPEC): Handle GNU ld.
838 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
840 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
841 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
842 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
843 (STACK_CHECK_STATIC_BUILTIN): Define.
844 * config/sol2.opt (compat-bsd): Remove.
845 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
846 * config/sol2-bi.h: New file.
847 * config/sol2-gld.h: Remove.
848 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
849 (NO_DBX_BNSYM_ENSYM): Remove.
850 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
851 (STACK_CHECK_STATIC_BUILTIN): Remove.
852 Test USE_GLD instead of TARGET_GNU_LD.
853 * config/i386/sol2-10.h: Rename to ...
854 * config/i386/sol2-bi.h .. this.
855 (SUBTARGET_EXTRA_SPECS): Redefine.
856 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
857 (MULTILIB_DEFAULTS): Remove.
858 (DEFAULT_ARCH32_P): Define.
859 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
860 (ARCH64_SUBDIR): Define.
861 Test USE_GLD instead of TARGET_GNU_LD.
862 (I386_EMULATION): Rename to ...
863 (ARCH32_EMULATION): ... this.
864 (X86_64_EMULATION): Rename to ...
865 (ARCH64_EMULATION): ... this.
866 (TARGET_LD_EMULATION): Remove.
867 (LINK_ARCH_SPEC): Remove.
868 * config/i386/sol2-gas.h: Remove.
869 * config/i386/t-sol2-10: Rename to ...
870 * config/i386/t-sol2-64: ... this.
871 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
872 (AS_SPARC64_FLAG): Define.
873 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
874 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
875 depending on TARGET_CPU_DEFAULT.
876 (CPP_CPU_SPEC): Redefine.
877 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
878 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
879 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
880 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
881 ASM_ARCH_DEFAULT_SPEC): Redefine.
882 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
883 LINK_ARCH_DEFAULT_SPEC.
884 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
885 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
886 (ARCH64_SUBDIR): Define.
887 (LINK_ARCH64_SPEC): Redefine.
888 (CC1_SPEC): Redefine.
889 (OPTION_DEFAULT_SPECS): Redefine.
890 (MULTILIB_DEFAULTS): Define.
891 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
892 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
893 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
894 (NO_DBX_BNSYM_ENSYM): Remove.
895 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
896 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
897 (TARGET_ASM_NAMED_SECTION): Likewise.
898 (STACK_CHECK_STATIC_BUILTIN): Remove.
899 * config/sparc/sol2-bi.h: Remove.
900 * config/sparc/sol2-gas-bi.h: Remove.
901 * config/sparc/sol2-gas.h: Remove.
902 * config/sparc/sol2-gld-bi.h: Remove.
903 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
905 (*-*-solaris2*): ... here.
907 2011-06-21 Christian Bruel <christian.bruel@st.com>
910 * ipa-inline.c (can_inline_edge_p): Check
911 !DECL_DISREGARD_INLINE_LIMITS.
913 2011-06-21 Christian Bruel <christian.bruel@st.com>
916 * cgraphunit.c (process_function_and_variable_attributes): warn when
917 always_inline functions that are not inline.
918 * ipa-inline-transform.c (inline_transform): Always call
920 * tree-inline.c (tree_inlinable_function_p): Use error instead
922 (expand_call_inline): Likewise.
924 2011-06-21 Jakub Jelinek <jakub@redhat.com>
926 * Makefile.in (dg_target_exps): Set.
927 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
928 instead of 7, try to divide it more evenly.
930 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
933 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
934 (avx256_split_unaligned_store): New definition.
935 (ix86_option_override_internal): Enable avx256 unaligned load/store
936 splitting only when avx256_split_unaligned_load/store is set.
938 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
940 * regrename.c (scan_rtx_reg): Handle the case where we write to an
941 open chain in a smaller mode without failing the entire block.
943 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
946 * combine.c (cant_combine_insn_p): Don't check zero/sign
947 extended hard registers.
949 2011-06-21 Alan Modra <amodra@gmail.com>
951 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
952 CONST high part large-toc address.
953 (rs6000_tls_referenced_p): Make static.
954 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
956 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
959 * combine.c (cant_combine_insn_p): Check zero/sign extended
962 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
965 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
966 one of the operands is a register.
968 2011-06-20 Kai Tietz <ktietz@redhat.com>
970 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
971 operations in combination with binary and.
973 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
975 * regrename.c (do_replace): Don't update notes.
977 2011-06-20 Alan Modra <amodra@gmail.com>
979 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
980 of toc-relative address in CONST.
981 (rs6000_delegitimize_address): Recognize changed address.
982 (rs6000_legitimize_reload_address): Likewise.
983 (rs6000_emit_move): Don't force these constants to memory.
984 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
985 toc-relative address in CONST.
986 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
987 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
989 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
991 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
992 (count_trailing_zeros): Likewise.
994 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
997 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
998 .init_array can be used with .ctors on targets.
999 * configure: Regenerated.
1001 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
1003 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
1004 if the element type is volatile.
1006 2011-06-18 Jan Hubicka <jh@suse.cz>
1008 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
1010 (lto_symtab_resolve_can_prevail_p): Likewise.
1011 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
1012 * cgraphbuild.c (record_reference): Remove extra body alias code.
1013 (mark_load): Likewise.
1014 (mark_store): Likewise.
1015 * cgraph.h (varpool_node): Remove extra_name filed;
1016 add alias_of and extraname_alias.
1017 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
1018 (varpool_alias_aliased_node): New inline function.
1019 (varpool_variable_node): New function.
1020 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
1021 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
1022 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
1023 (input_varpool_node): Likewise.
1024 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
1025 (varpool_externally_visible_p): Remove extra body alias code.
1026 (function_and_variable_visibility): Likewise.
1027 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
1028 (ipa_pta_execute): Use it.
1029 * varpool.c (varpool_remove_node): Remove extra name alias code.
1030 (varpool_mark_needed_node): Likewise.
1031 (varpool_analyze_pending_decls): Analyze aliases.
1032 (assemble_aliases): New functoin.
1033 (varpool_assemble_decl): Use it.
1034 (varpool_create_variable_alias): New function.
1035 (varpool_extra_name_alias): Rewrite.
1036 (varpool_for_node_and_aliases): New function.
1038 2011-06-18 Jakub Jelinek <jakub@redhat.com>
1041 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
1042 last_arg_constant and last argument doesn't match its predicate,
1043 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
1044 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
1045 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
1046 spelling of error message.
1047 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
1048 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
1049 const_0_to_255_operand instead of const_int_operand.
1052 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1054 * config/i386/sse.md (blendbits): Remove mode attribute.
1055 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1056 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1057 Check integer value of operand 3 in insn constraint.
1059 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
1061 PR rtl-optimization/48542
1062 * reload.c (find_equiv_reg): Stop looking when finding a
1064 * reload1.c (reload_as_needed): Invalidate all reload
1065 registers when crossing a setjmp-type call.
1067 2011-06-16 Jeff Law <law@redhat.com>
1069 * tree-ssa-threadupdate.c (struct redirection_data): New field
1071 (THREAD_TARGET2): Define.
1072 (redirection_data_eq): Also check that the intermediate edge is equal.
1073 (lookup_redirection_data): Drop useless argument. Extract the
1074 outgoing_edge and intermediate edge from E. Callers updated.
1075 (copy_phi_args, update_destination_phis): New functions.
1076 (fix_duplicate_block_edges): Likewise.
1077 (create_edge_and_update_destination_phis): Duplicate all the edges
1078 hung off e->aux. Use copy_phi_args.
1079 (create_duplicates): Use fix_duplicate_block_edges.
1080 (fixup_template_block): Likewise.
1081 (redirect_edges): If necessary, redirect the joiner block's incoming
1082 edge to the duplicate of the joiner block.
1083 (thread_block): Don't muck up loops when threading through a joiner
1085 (thread_through_loop_header): Handle threading through a joiner block.
1086 (mark_threaded_blocks, register_jump_thread): Likewise.
1087 * tree-flow.h (register_jump_thread): Add new argument. Callers
1089 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
1090 (thread_across_edge): Handle threading through a joiner block.
1092 2011-06-16 Martin Jambor <mjambor@suse.cz>
1094 PR tree-optimization/49343
1095 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
1096 calculate offset, provide 2nd operand for the new COMPONENT_REF.
1098 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
1100 * config/darwin-protos.h (machopic_select_rtx_section): Move to
1101 inside RTX_CODE ifdef.
1103 2011-06-16 Tom de Vries <tom@codesourcery.com>
1106 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
1107 Disallow NULL pointer for pointer arithmetic.
1109 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1113 2011-06-10 Wei Guozhi <carrot@google.com>
1116 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1117 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1118 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1120 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1122 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1123 (arm_legitimate_ldrd_p): New prototype.
1124 (arm_output_ldrd): New prototype.
1125 * config/arm/arm.c (arm_check_ldrd_operands): New function.
1126 (arm_legitimate_ldrd_p): New function.
1127 (arm_output_ldrd): New function.
1129 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
1132 * doc/tm.texi.in: Update Copyright date.
1133 * doc/tm.texi: Regenerate.
1134 * targhooks.c (default_setup_incoming_varargs): Replace
1135 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1136 (default_pretend_outgoing_varargs_named): Likewise.
1137 (hook_pass_by_reference_must_pass_in_stack): Likewise.
1138 (hook_callee_copies_named): Likewise.
1139 (default_function_arg_advance): Likewise.
1140 (default_function_arg): Likewise.
1141 (default_function_incoming_arg): Likewise.
1142 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1143 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1144 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1145 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1146 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1147 * targhooks.h (default_setup_incoming_varargs): Likewise.
1148 (default_pretend_outgoing_varargs_named): Likewise.
1149 (hook_pass_by_reference_must_pass_in_stack): Likewise.
1150 (hook_callee_copies_named): Likewise.
1151 (default_function_arg_advance): Likewise.
1152 (default_function_arg): Likewise.
1153 (default_function_incoming_arg): Likewise.
1154 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1155 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1156 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1157 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1158 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1159 * target.def (pass_by_reference): Likewise.
1160 (setup_incoming_varargs, strict_argument_naming): Likewise.
1161 (pretend_outgoing_varargs_named, callee_copies): Likewise.
1162 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
1163 (function_incoming_arg): Likewise.
1164 * target.h: Don't include "tm.h" .
1165 (cumulative_args_t): New typedef.
1166 [GCC_TM_H] (get_cumulative_args): New static inline function.
1167 [GCC_TM_H] (pack_cumulative_args): Likewise.
1168 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
1169 argument type with cumulative_args_t.
1170 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
1171 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
1172 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
1173 (frv_arg_partial_bytes, frv_function_arg): Likewise.
1174 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
1175 (frv_function_arg_1): Likewise.
1176 * config/s390/s390.c (s390_pass_by_reference): Likewise.
1177 (s390_function_arg_advance, s390_function_arg): Likewise.
1178 * config/m32c/m32c.c (m32c_function_arg): Likewise.
1179 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
1180 (m32c_strict_argument_naming): Likewise.
1181 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
1182 (spu_function_arg_advance): Likewise.
1183 (spu_setup_incoming_varargs): Likewise. Make static.
1184 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
1186 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
1187 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1188 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
1189 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
1190 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
1191 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
1192 (mep_pass_by_reference, mep_function_arg): Likewise.
1193 (mep_function_arg_advance): Likewise.
1194 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1195 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
1196 (m32r_function_arg, m32r_function_arg_advance): Likewise.
1197 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
1198 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
1199 (ix86_function_arg, ix86_pass_by_reference): Likewise.
1200 (ix86_setup_incoming_varargs): Likewise.
1201 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
1202 (sh_strict_argument_naming): Likewise.
1203 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
1204 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
1205 (sh_function_arg_advance, sh_function_arg): Likewise.
1206 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
1207 (pdp11_function_arg_advance): Likewise.
1208 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
1210 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
1211 * config/avr/avr.c (avr_function_arg): Likewise.
1212 (avr_function_arg_advance): Likewise.
1213 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
1214 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
1215 (xtensa_function_arg_1): Likewise.
1216 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
1218 (xstormy16_function_arg): Likewise.
1219 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
1220 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
1221 (fr30_function_arg_advance): Likewise.
1222 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1223 (lm32_function_arg, lm32_function_arg_advance): Likewise.
1224 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1225 (moxie_function_arg, moxie_function_arg_advance): Likewise.
1226 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
1227 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
1228 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
1229 (cris_function_arg, cris_function_incoming_arg): Likewise.
1230 (cris_function_arg_advance, cris_function_arg_1): Likewise.
1231 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
1232 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
1233 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
1234 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1235 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
1236 (mn10300_arg_partial_bytes): Likewise.
1237 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
1238 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
1239 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
1240 (ia64_function_arg_1): Likewise.
1241 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
1242 (m68k_function_arg): Likewise.
1243 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
1244 (rs6000_function_arg, setup_incoming_varargs): Likewise.
1245 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
1246 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
1247 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
1248 (picochip_arg_advance): Likewise.
1249 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1250 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
1251 (mcore_function_arg_advance): Likewise.
1252 * config/score/score.c (score_pass_by_reference): Likewise.
1253 (score_function_arg_advance): Likewise.
1254 (score_arg_partial_bytes): Likewise. Make static.
1255 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
1256 * config/arm/arm.c (arm_arg_partial_bytes): Replace
1257 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1258 (arm_function_arg, arm_function_arg_advance): Likewise.
1259 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
1260 * config/pa/pa.c (pa_pass_by_reference): Likewise.
1261 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
1262 (pa_function_arg): Likewise.
1263 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
1264 (mips_function_arg, mips_function_arg_advance): Likewise.
1265 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
1266 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
1267 * config/vax/vax.c (vax_function_arg): Likewise.
1268 (vax_function_arg_advance): Likewise.
1269 * config/h8300/h8300.c (h8300_function_arg): Likewise.
1270 (h8300_function_arg_advance): Likewise.
1271 * config/v850/v850.c (v850_pass_by_reference): Likewise.
1272 (v850_strict_argument_naming, v850_function_arg): Likewise.
1273 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
1274 (v850_setup_incoming_varargs): Likewise.
1275 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1276 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
1277 (mmix_function_arg, mmix_pass_by_reference): Likewise.
1278 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
1280 * config/bfin/bfin.c (setup_incoming_varargs): Replace
1281 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1282 (bfin_function_arg_advance, bfin_function_arg): Likewise.
1283 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
1284 * calls.c (emit_call_1): Change type of args_so_far to
1285 cumulative_args_t. Changed all callers.
1286 (initialize_argument_information): Likewise.
1287 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
1288 * dse.c (get_call_args): Likewise.
1289 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1290 * function.c (pass_by_reference, reference_callee_copied): Likewise.
1291 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
1292 New member args_so_far_v. Changed all users.
1293 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
1294 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1295 * config/mips/mips.c (mips_output_args_xfer): Likewise.
1296 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1297 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1298 * config/microblaze/microblaze.c (microblaze_expand_prologue):
1300 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
1301 m32r_pass_by_reference.
1303 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
1305 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
1306 argument to be a VEC of statements.
1307 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
1308 assert that pattern statements have to have their vector type set.
1309 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
1310 Change the first argument to be a VEC of statements. Update
1312 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
1313 (vect_handle_widen_mult_by_const): New function.
1314 (vect_recog_widen_mult_pattern): Change the first argument to be a
1315 VEC of statements. Update documentation. Check that the constant is
1316 INTEGER_CST. Support multiplication by a constant that fits an
1317 intermediate type - call vect_handle_widen_mult_by_const.
1318 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
1319 call. Handle additional pattern statements if necessary.
1321 2011-06-16 Nick Clifton <nickc@redhat.com>
1324 * config.gcc: Set cpu_type to v850 for any V850 architecture.
1325 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
1326 md_file, extra_modes, out_file and extra_options are these are all
1327 deduced from cpu_type.
1329 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
1331 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
1332 truncation mask to 63.
1334 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
1338 * longlong.h: Add AVR support:
1339 (count_leading_zeros): New macro.
1340 (count_trailing_zeros): New macro.
1341 (COUNT_LEADING_ZEROS_0): New macro.
1342 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
1343 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
1344 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
1345 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
1346 (LIB2FUNCS_EXCLUDE): Add _clz.
1347 * config/avr/libgcc.S (XCALL): Move up in file.
1348 (XJMP): New C Macro.
1349 (DEFUN): New asm macro.
1350 (ENDF): New asm macro.
1351 (__ffssi2): New function.
1352 (__ffshi2): New function.
1353 (__loop_ffsqi2): New function.
1354 (__ctzsi2): New function.
1355 (__ctzhi2): New function.
1356 (__clzdi2): New function.
1357 (__clzsi2): New function.
1358 (__clzhi2): New function.
1359 (__paritydi2): New function.
1360 (__paritysi2): New function.
1361 (__parityhi2): New function.
1362 (__parityqi2): New function.
1363 (__popcounthi2): New function.
1364 (__popcountsi2): New function.
1365 (__popcountdi2): New function.
1366 (__popcountqi2): New function.
1367 (__bswapsi2): New function.
1368 (__bswapdi2): New function.
1369 (__ashldi3): New function.
1370 (__ashrdi3): New function.
1371 (__lshrdi3): New function.
1372 Fix suspicous lines.
1374 2011-06-16 Richard Guenther <rguenther@suse.de>
1376 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
1378 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
1380 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
1381 equality compares against zero for the lower bit.
1383 2011-06-16 Jakub Jelinek <jakub@redhat.com>
1385 PR tree-optimization/49419
1386 * tree-vrp.c (execute_vrp): Call init_range_assertions
1387 before estimate_numbers_of_iterations, call
1388 free_number_of_iterations_estimates before calling
1389 remove_range_assertions.
1391 2011-06-16 Revital Eres <revital.eres@linaro.org>
1393 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
1394 (struct partial_schedule): Add rows_length field.
1395 (verify_partial_schedule): Check rows_length.
1396 (ps_insert_empty_row): Handle rows_length.
1397 (create_partial_schedule): Likewise.
1398 (free_partial_schedule): Likewise.
1399 (reset_partial_schedule): Likewise.
1400 (create_ps_insn): Remove rest_count argument.
1401 (remove_node_from_ps): Update rows_length.
1402 (add_node_to_ps): Update rows_length and call create_ps_insn
1403 without passing row_rest_count.
1404 (rotate_partial_schedule): Update rows_length.
1406 2011-06-16 Revital Eres <revital.eres@linaro.org>
1408 * ddg.c (add_intra_loop_mem_dep): New function.
1409 (build_intra_loop_deps): Call it.
1411 2011-06-13 Jeff Law <law@redhat.com>
1413 * df-problems.c (df_lr_local_compute): Manually CSE
1414 PIC_OFFSET_TABLE_REGNUM.
1415 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
1416 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
1418 2011-06-13 Jan Hubicka <jh@suse.cz>
1420 * cgraphunit.c (handle_alias_pairs): New function.
1421 (cgraph_finalize_compilation_unit): Use it.
1422 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
1423 as externally visible.
1425 2011-06-15 Richard Guenther <rguenther@suse.de>
1427 * expr.c (expand_expr_real_2): Reduce all integral types to
1429 (expand_expr_real_1): Likewise.
1431 2011-06-15 Martin Jambor <mjambor@suse.cz>
1433 PR tree-optimization/48613
1434 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1435 ipa_node_params_vector is NULL.
1437 2011-06-15 Jakub Jelinek <jakub@redhat.com>
1440 * dwarf2out.c (dw_loc_list_node): Add force field.
1441 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
1442 location in the list, even if it is modified before first real insn.
1443 (output_loc_list): Emit empty ranges with force flag set.
1444 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
1446 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
1449 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
1450 (fence_to_rewind). Use it to notice when bookkeeping will be placed
1451 above a fence. Update comments.
1452 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
1453 placed just above it. Do not allow NULL place_to_insert.
1455 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
1457 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
1458 (slpeel_tree_peel_loop_to_edge): Don't call
1459 remove_dead_stmts_from_loop.
1460 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1461 remove irrelevant pattern statements. For irrelevant statements
1462 check if it is the last statement of a detected pattern, use
1463 corresponding pattern statement instead.
1464 (destroy_loop_vec_info): No need to remove pattern statements,
1465 only free stmt_vec_info.
1466 (vect_transform_loop): For irrelevant statements check if it is
1467 the last statement of a detected pattern, use corresponding
1468 pattern statement instead.
1469 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
1470 pattern statements. Set basic block for the new statement.
1471 (vect_pattern_recog): Update documentation.
1472 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
1473 operands of pattern statements.
1474 (vectorizable_call): Fix printing. In case of a pattern statement
1475 use the lhs of the original statement when creating a dummy
1476 statement to replace the original call.
1477 (vect_analyze_stmt): For irrelevant statements check if it is
1478 the last statement of a detected pattern, use corresponding
1479 pattern statement instead.
1480 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
1481 statements use gsi of the original statement.
1483 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1485 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
1486 common/common-target-def.h.
1487 * target.def (default_target_flags, handle_option,
1488 supports_split_stack, optimization_table, init_struct,
1489 except_unwind_info, unwind_tables_default, have_named_sections):
1490 Move to common/common-target.def.
1491 * target.h (enum opt_levels, struct default_options): Move to
1492 common/common-target.h.
1493 * targhooks.c (default_except_unwind_info,
1494 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1495 default_target_handle_option, empty_optimization_table): Move to
1496 common/common-targhooks.c.
1497 * targhooks.h (default_except_unwind_info,
1498 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1499 default_target_handle_option, empty_optimization_table): Move to
1500 common/common-targhooks.h.
1501 * common/common-target-def.h: Include common/common-targhooks.h.
1502 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
1504 * common/common-target.def (handle_option, option_init_struct,
1505 option_optimization_table, default_target_flags,
1506 except_unwind_info, supports_split_stack, unwind_tables_default,
1507 have_named_sections): Move from target.def.
1508 (HOOK_PREFIX): Undefine at end of file.
1509 * common/common-target.h: Include input.h.
1510 (enum opt_levels, struct default_options): Move from target.h.
1511 * common/common-targhooks.c, common/common-targhooks.h: New.
1512 * config.gcc (target_has_targetm_common): Default to yes.
1513 (moxie*): Set target_has_targetm_common=no.
1514 (hppa*-*-*): Don't set target_has_targetm_common=yes.
1515 * doc/tm.texi: Regenerate.
1516 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
1517 (C_TARGET_DEF_H): Add common/common-targhooks.h.
1518 (GCC_OBJS): Remove vec.o.
1519 (OBJS): Remove hooks.o and vec.o.
1520 (OBJS-libcommon-target): Add vec.o, hooks.o and
1521 common/common-targhooks.o.
1522 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
1523 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
1524 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
1525 cfglayout.o, $(out_object_file), $(common_out_object_file)):
1526 Update dependencies.
1527 (common/common-targhooks.o): New.
1528 * common/config/default-common.c: Include tm.h. Add FIXME comment.
1529 * common/config/pa/pa-common.c: Include more headers. Take
1530 copyright dates from pa.c.
1531 (pa_option_optimization_table, pa_handle_option,
1532 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
1533 TARGET_HANDLE_OPTION): Move from pa.c.
1534 * common/config/alpha/alpha-common.c,
1535 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
1536 common/config/bfin/bfin-common.c,
1537 common/config/cris/cris-common.c,
1538 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
1539 common/config/h8300/h8300-common.c,
1540 common/config/i386/i386-common.c,
1541 common/config/ia64/ia64-common.c,
1542 common/config/iq2000/iq2000-common.c,
1543 common/config/lm32/lm32-common.c,
1544 common/config/m32c/m32c-common.c,
1545 common/config/m32r/m32r-common.c,
1546 common/config/m68k/m68k-common.c,
1547 common/config/mcore/mcore-common.c,
1548 common/config/mep/mep-common.c,
1549 common/config/microblaze/microblaze-common.c,
1550 common/config/mips/mips-common.c,
1551 common/config/mmix/mmix-common.c,
1552 common/config/mn10300/mn10300-common.c,
1553 common/config/pdp11/pdp11-common.c,
1554 common/config/picochip/picochip-common.c,
1555 common/config/rs6000/rs6000-common.c,
1556 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
1557 common/config/score/score-common.c, common/config/sh/sh-common.c,
1558 common/config/sparc/sparc-common.c,
1559 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
1560 common/config/vax/vax-common.c,
1561 common/config/xstormy16/xstormy16-common.c,
1562 common/config/xtensa/xtensa-common.c: New.
1563 * config/alpha/alpha.c: Include common/common-target.h.
1564 (alpha_option_optimization_table, alpha_handle_option,
1565 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1566 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
1567 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
1568 * config/arm/arm.c (arm_option_optimization_table,
1569 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1570 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
1572 * config/avr/avr.c (avr_option_optimization_table,
1573 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1575 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
1576 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
1577 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
1578 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
1579 * config/cris/cris.c (cris_option_optimization_table,
1580 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1581 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
1583 * config/fr30/fr30.c (fr30_option_optimization_table,
1584 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
1586 * config/frv/frv.c (frv_option_optimization_table,
1587 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
1588 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
1589 * config/h8300/h8300.c (h8300_option_optimization_table,
1590 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1591 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
1592 * config/i386/i386-protos.h (ix86_handle_option): Declare.
1593 * config/i386/i386.c: Include common/common-target.h.
1594 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
1595 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
1596 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
1597 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
1598 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
1599 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
1600 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
1601 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
1602 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
1603 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
1604 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
1605 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
1606 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
1607 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
1608 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
1609 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
1610 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
1611 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
1612 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
1613 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
1614 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
1615 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
1616 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
1617 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
1618 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
1619 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
1620 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
1621 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
1622 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
1623 ix86_option_optimization_table, ix86_option_init_struct,
1624 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
1625 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1626 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
1628 * config/i386/t-i386 (i386.o): Update dependencies.
1629 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
1630 * config/ia64/ia64.c (ia64_option_optimization_table,
1631 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1632 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1633 ia64_handle_option): Move to ia64-common.c.
1634 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
1635 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
1636 * config/lm32/lm32.c (lm32_option_optimization_table,
1637 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1639 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
1641 * config/m32r/m32r.c (m32r_option_optimization_table,
1642 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1643 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1644 m32r_handle_option): Move to m32r-common.c.
1645 (m32r_memory_move_cost): Remove comment referring to
1646 TARGET_HANDLE_OPTION.
1647 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
1648 Move to m68k-common.c.
1649 * config/mcore/mcore.c (mcore_option_optimization_table,
1650 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1651 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
1652 * config/mep/mep.c (mep_option_optimization_table,
1653 mep_handle_option, TARGET_HANDLE_OPTION,
1654 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
1655 Move to mep-common.c.
1656 * config/microblaze/microblaze.c
1657 (microblaze_option_optimization_table,
1658 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1659 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
1660 * config/mips/mips.c (mips_handle_option,
1661 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1662 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
1664 * config/mmix/mmix.c (mmix_option_optimization_table,
1665 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1666 Move to mmix-common.c.
1667 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
1668 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
1669 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1670 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
1671 * config/pa/pa.c: Include common/common-target.h.
1672 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1673 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1674 pa_handle_option): Move to pa-common.c.
1675 (pa_option_override): Use targetm_common.except_unwind_info.
1676 (pa_asm_output_mi_thunk, pa_function_section): Use
1677 targetm_common.have_named_sections.
1678 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
1679 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1680 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1681 pdp11_handle_option, pdp11_option_init_struct): Move to
1683 * config/picochip/picochip.c (picochip_option_optimization_table,
1684 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
1685 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
1686 * config/rs6000/rs6000.c: Include common/common-target.h.
1687 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
1688 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
1689 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
1690 rs6000_handle_option): Move to rs6000-common.c.
1691 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
1692 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
1693 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1694 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
1695 * config/s390/s390.c (processor_flags_table,
1696 s390_option_optimization_table, s390_option_init_struct,
1697 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
1698 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1699 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
1700 * config/s390/s390.h (processor_flags_table): Declare.
1701 * config/score/score.c (score_option_optimization_table,
1702 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1703 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
1704 score_handle_option): Move to score-common.c.
1705 * config/sh/sh.c (sh_option_optimization_table,
1706 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1707 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1708 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
1709 * config/sparc/sparc.c: Include common/common-target.h.
1710 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1711 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
1712 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
1713 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
1714 spu_option_init_struct): Move to spu-common.c.
1715 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
1716 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
1717 * config/v850/v850.c (small_memory_physical_max,
1718 v850_handle_memory_optionn v850_handle_option,
1719 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1720 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
1722 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
1723 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
1724 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1725 Move to xtensa-common.c.
1726 * cfglayout.c: Include common/common-target.h.
1727 (fixup_reorder_chain): Use targetm_common.have_named_sections.
1728 * cfgrtl.c: Include common/common-target.h.
1729 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
1730 targetm_common.have_named_sections.
1731 * dbxout.c: Include common/common-target.h.
1732 (dbxout_function_end): Use targetm_common.have_named_sections.
1733 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
1734 targetm_common.except_unwind_info.
1735 * dwarf2out.c: Include common/common-target.h.
1736 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1737 dwarf2out_begin_prologue, dwarf2out_frame_init,
1738 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
1739 targetm_common.except_unwind_info.
1740 * except.c: Include common/common-target.h.
1741 (init_eh, finish_eh_generation,
1742 output_one_function_exception_table): Use
1743 targetm_common.except_unwind_info.
1744 (switch_to_exception_section): Use targetm_common.have_named_sections.
1745 * explow.c: Include common/common-target.h.
1746 * expr.c: Include common/common-target.h.
1747 (build_personality_function): Use targetm_common.except_unwind_info.
1748 * function.c: Include common/common-target.h.
1749 (expand_function_end): Use targetm_common.except_unwind_info.
1750 * haifa-sched.c: Include common/common-target.h.
1751 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
1752 * lto-opts.c: Include common/common-target.h instead of target.h.
1753 (lto_reissue_options): Use targetm_common.handle_option.
1754 * opts.c: Include common/common-target.h.
1755 (target_handle_option): Use targetm_common.handle_option.
1756 (init_options_struct): Update comment referring to
1757 targetm.target_option.optimization. Use
1758 targetm_common.default_target_flags,
1759 targetm_common.unwind_tables_default and
1760 targetm_common.option_init_struct.
1761 (default_options_optimization): Use
1762 targetm_common.option_optimization_table.
1763 (finish_options): Use targetm_common.except_unwind_info,
1764 targetm_common.unwind_tables_default,
1765 targetm_common.have_named_sections and
1766 targetm_common.supports_split_stack.
1767 * toplev.c: Include common/common-target.h.
1768 (process_options): Use targetm_common.have_named_sections.
1769 * tree-tailcall.c: Include common/common-target.h.
1770 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
1771 * tree.c: Include common/common-target.h.
1772 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
1773 * varasm.c: Include common/common-target.h.
1774 (resolve_unique_section, hot_function_section,
1775 default_function_section): Use targetm_common.have_named_sections.
1777 2011-06-14 Easwaran Raman <eraman@google.com>
1779 PR rtl-optimization/44194
1780 * dse.c: Include tree-flow.h
1781 (insn_info): Add new field non_frame_wild_read.
1782 (group_info): Add new fields escaped_n and escaped_p.
1783 (kill_on_calls): New variable.
1784 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
1785 (dse_step0): Initialize kill_on_calls.
1786 (can_escape): New function.
1787 (set_usage_bits): Add additional parameter; record information
1788 about escaped locations.
1789 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
1790 (dse_step2_nospill): Set kill_on_calls based on
1791 group->escaped_n and group->escaped_n.
1792 (add_wild_read): Refactor into...
1793 (reset_active_stores): ... New function, and
1794 (free_read_records): ... New function.
1795 (add_non_frame_wild_read): New function.
1796 (scan_insn): Call add_non_frame_wild_read on non-const calls.
1797 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
1798 (dse_step5_nospill): Call scan_reads_nospill for instructions
1799 marked as non_frame_wild_read.
1800 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
1802 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1804 * common/common-target-def.h, common/common-target.def,
1805 common/common-target.h, common/config/default-common.c,
1806 common/config/pa/pa-common.c: New files.
1807 * Makefile.in (common_out_file, common_out_object_file,
1808 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
1809 (OBJS-libcommon-target): Include $(common_out_object_file).
1810 (prefix.o): Update dependencies.
1811 ($(common_out_object_file), common/common-target-hooks-def.h,
1812 s-common-target-hooks-def-h): New.
1813 (s-tm-texi): Also check timestamp on common-target.def.
1814 (build/genhooks.o): Update dependencies.
1815 * config.gcc (common_out_file, target_has_targetm_common): Define.
1816 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
1817 TARGET_ALWAYS_STRIP_DOTDOT.
1818 * configure.ac (common_out_object_file): Define.
1819 (common_out_file, common_out_object_file): Substitute.
1820 (common): Create directory.
1821 * configure: Regenerate.
1822 * doc/tm.texi.in (targetm_common): Document.
1823 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
1824 * doc/tm.texi: Regenerate.
1825 * genhooks.c (hook_array): Also include common/common-target.def.
1826 * prefix.c (tm.h): Don't include.
1827 (common/common-target.h): Include.
1828 (ALWAYS_STRIP_DOTDOT): Don't define.
1829 (update_path): Use targetm_common.always_strip_dotdot instead of
1830 ALWAYS_STRIP_DOTDOT.
1831 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
1833 2011-06-14 David Li <davidxl@google.com>
1835 * passes.c (execute_function_todo): Remove TODO_dump_func.
1836 (execute_one_pass): Remove TODO_dump_func.
1837 (execute_function_dump): New function.
1838 * tree-vrp.c: Remove TODO_dump_func.
1839 * regrename.c: Remove TODO_dump_func.
1840 * fwprop.c: Remove TODO_dump_func.
1841 * tree-into-ssa.c: Remove TODO_dump_func.
1842 * tree-complex.c: Remove TODO_dump_func.
1843 * tracer.c: Remove TODO_dump_func.
1844 * tree-loop-distribution.c: Remove TODO_dump_func.
1845 * postreload-gcse.c: Remove TODO_dump_func.
1846 * postreload.c: Remove TODO_dump_func.
1847 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
1848 * tree-tailcall.c: Remove TODO_dump_func.
1849 * ipa-cp.c: Remove TODO_dump_func.
1850 * final.c: Remove TODO_dump_func.
1851 * tree-emutls.c: Remove TODO_dump_func.
1852 * omp-low.c: Remove TODO_dump_func.
1853 * tree-ssa-dse.c: Remove TODO_dump_func.
1854 * tree-ssa-uncprop.c: Remove TODO_dump_func.
1855 * auto-inc-dec.c: Remove TODO_dump_func.
1856 * reorg.c: Remove TODO_dump_func.
1857 * tree-ssa-copyrename.c: Remove TODO_dump_func.
1858 * tree-ssa-ccp.c: Remove TODO_dump_func.
1859 * compare-elim.c: Remove TODO_dump_func.
1860 * mode-switching.c: Remove TODO_dump_func.
1861 * modulo-sched.c: Remove TODO_dump_func.
1862 * tree-call-cdce.c: Remove TODO_dump_func.
1863 * cse.c: Remove TODO_dump_func.
1864 * web.c: Remove TODO_dump_func.
1865 * tree-stdarg.c: Remove TODO_dump_func.
1866 * lto-streamer-out.c: Remove TODO_dump_func.
1867 * tree-ssa-math-opts.c: Remove TODO_dump_func.
1868 * tree-ssa-dom.c: Remove TODO_dump_func.
1869 * tree-nrv.c: Remove TODO_dump_func.
1870 * loop-init.c: Remove TODO_dump_func.
1871 * gimple-low.c: Remove TODO_dump_func.
1872 * ipa-inline.c: Remove TODO_dump_func.
1873 * tree-ssa-sink.c: Remove TODO_dump_func.
1874 * jump.c: Remove TODO_dump_func.
1875 * ifcvt.c: Remove TODO_dump_func.
1876 * tree-ssa-loop.c: Remove TODO_dump_func.
1877 * recog.c: Remove TODO_dump_func.
1878 * dse.c: Remove TODO_dump_func.
1879 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
1880 * matrix-reorg.c: Remove TODO_dump_func.
1881 * tree-eh.c: Remove TODO_dump_func.
1882 * regmove.c: Remove TODO_dump_func.
1883 * function.c: Remove TODO_dump_func.
1884 * tree-vectorizer.c: Remove TODO_dump_func.
1885 * ipa-split.c: Remove TODO_dump_func.
1886 * gcse.c: Remove TODO_dump_func.
1887 * tree-if-conv.c: Remove TODO_dump_func.
1888 * init-regs.c: Remove TODO_dump_func.
1889 * tree-ssa-phiopt.c: Remove TODO_dump_func.
1890 * implicit-zee.c: Remove TODO_dump_func.
1891 * lower-subreg.c: Remove TODO_dump_func.
1892 * bt-load.c: Remove TODO_dump_func.
1893 * tree-dfa.c: Remove TODO_dump_func.
1894 * except.c: Remove TODO_dump_func.
1895 * emit-rtl.c: Remove TODO_dump_func.
1896 * store-motion.c: Remove TODO_dump_func.
1897 * cfgexpand.c: Remove TODO_dump_func.
1898 * tree-cfgcleanup.c: Remove TODO_dump_func.
1899 * cfgcleanup.c: Remove TODO_dump_func.
1900 * tree-ssa-pre.c: Remove TODO_dump_func.
1901 * tree-sra.c: Remove TODO_dump_func.
1902 * tree-mudflap.c: Remove TODO_dump_func.
1903 * tree-ssa-copy.c: Remove TODO_dump_func.
1904 * cfglayout.c: Remove TODO_dump_func.
1905 * tree-ssa-forwprop.c: Remove TODO_dump_func.
1906 * tree-ssa-dce.c: Remove TODO_dump_func.
1907 * ira.c: Remove TODO_dump_func.
1908 * tree-ssa.c: Remove TODO_dump_func.
1909 * integrate.c: Remove TODO_dump_func.
1910 * tree-optimize.c: Remove TODO_dump_func.
1911 * tree-ssa-phiprop.c: Remove TODO_dump_func.
1912 * tree-object-size.c: Remove TODO_dump_func.
1913 * combine.c: Remove TODO_dump_func.
1914 * bb-reorder.c: Remove TODO_dump_func.
1915 * cprop.c: Remove TODO_dump_func.
1916 * var-tracking.c: Remove TODO_dump_func.
1917 * tree-profile.c: Remove TODO_dump_func.
1918 * tree-vect-generic.c: Remove TODO_dump_func.
1919 * reg-stack.c: Remove TODO_dump_func.
1920 * sched-rgn.c: Remove TODO_dump_func.
1921 * tree-ssa-structalias.c: Remove TODO_dump_func.
1922 * tree-switch-conversion.c: Remove TODO_dump_func.
1923 * tree-cfg.c: Remove TODO_dump_func.
1924 * tree-ssa-reassoc.c: Remove TODO_dump_func.
1925 * combine-stack-adj.c: Remove TODO_dump_func.
1926 * dce.c: Remove TODO_dump_func.
1927 * tree-ssanames.c: Remove TODO_dump_func.
1928 * regcprop.c: Remove TODO_dump_func.
1930 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
1933 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
1934 and properly handle result not in Pmode.
1936 2011-06-14 Robert Millan <rmh@gnu.org>
1938 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
1939 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
1942 * config/i386/kfreebsd-gnu64.h: New file.
1943 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
1944 with `i386/kfreebsd-gnu64.h'.
1946 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
1947 (GNU_USER_LINK_EMULATION64): New macros.
1948 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
1949 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
1950 of hardcoding `elf_i386' and `elf_x86_64'.
1952 2011-06-14 Nick Clifton <nickc@redhat.com>
1955 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
1958 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
1960 2011-06-14 Jakub Jelinek <jakub@redhat.com>
1963 * tree.h (DECL_NONSHAREABLE): Define.
1964 (struct tree_decl_common): Change decl_common_unused to
1965 decl_nonshareable_flag.
1966 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
1967 Ignore vars with DECL_NONSHAREABLE bit set.
1968 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
1969 on stores to automatic aggregate vars.
1971 PR rtl-optimization/49390
1973 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
1975 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1978 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
1979 Tom de Vries <tom@codesourcery.com>
1982 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
1983 Document changed semantics.
1984 (max_stmt_executions, max_stmt_executions_int): Declare.
1985 * tree-data-ref.c (estimated_loop_iterations)
1986 (estimated_loop_iterations_int): Move functions...
1987 * tree-ssa-loop-niter.c (estimated_loop_iterations)
1988 (estimated_loop_iterations_int): here.
1989 (record_estimate): Change nb_iterations_upper_bound and
1990 nb_iterations_estimate semantics.
1991 (max_stmt_executions, max_stmt_executions_int): New function.
1992 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
1993 (max_stmt_executions_tree): this.
1994 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
1995 estimated_loop_iterations_tree.
1996 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
1997 max_stmt_executions_int instead of estimated_loop_iterations_int.
1998 * predict.c (predict_loops): Idem.
1999 * tree-parloops.c (parallelize_loops): Idem.
2000 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
2001 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
2002 (init_omega_for_ddr_1): Idem.
2003 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
2004 (loop_prefetch_arrays): Idem
2005 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
2006 max_stmt_executions instead of estimated_loop_iterations.
2007 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
2008 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
2009 instead of nb_iterations_upper_bound.
2011 2011-06-13 Jan Hubicka <jh@suse.cz>
2013 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
2015 2011-06-14 Richard Henderson <rth@redhat.com>
2018 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
2019 (based_loc_descr): Assert it's true.
2020 (compute_frame_pointer_to_fb_displacement): Set it, rather than
2021 aborting immediately.
2023 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
2024 Mingfeng Wu <mingfeng@faraday-tech.com>
2026 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
2028 2011-06-13 Jan Hubicka <jh@suse.cz>
2030 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
2032 2011-06-13 Jan Hubicka <jh@suse.cz>
2034 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
2035 similarly to DECL_COMDAT.
2036 * cgraphunit.c (cgraph_analyze_function): Likewise.
2037 * ipa.c (function_and_variable_visibility): Likewise.
2039 2011-06-13 Jan Hubicka <jh@suse.cz>
2041 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
2042 BINFO_VIRTUALS when streaming for ltrans unit.
2044 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
2046 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
2047 (movdi_internal64): Same.
2049 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
2052 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
2053 a set of similar patterns, where the MATCH_OPERAND for the function
2054 argument is replaced with individual references to hardware registers.
2055 (save_fpregs_<mode>): Ditto
2056 (restore_gpregs_<mode>): Ditto
2057 (return_and_restore_gpregs_<mode>): Ditto
2058 (return_and_restore_fpregs_<mode>): Ditto
2059 (return_and_restore_fpregs_aix_<mode>): Ditto
2061 2011-06-13 Jan Hubicka <jh@suse.cz>
2063 * ipa-utils.c (postorder_stack): New structure.
2064 (ipa_reverse_postorder): Handle aliases.
2066 2011-06-13 Jan Hubicka <jh@suse.cz>
2068 * ipa-inline.c (reset_edge_caches): Walk aliases.
2069 (update_caller_keys): Do not test inlinability of aliases.
2070 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
2071 (do_estimate_growth): Fix typo.
2073 2011-06-13 Jan Hubicka <jh@suse.cz>
2075 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
2076 (can_remove_node_now_p): ... here; handle same comdat groups.
2077 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
2078 (inline_call): Update use of can_remove_node_now_p.
2080 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2082 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
2083 condition to disallow non-identical memory locations.
2084 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
2085 preference to bit manipulation instructions.
2087 2011-06-13 Jan Hubicka <jh@suse.cz>
2089 * cgraph.c (cgraph_for_node_thunks_and_aliases,
2090 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
2091 (nonremovable_p): New function.
2092 (cgraph_can_remove_if_no_direct_calls_p): New function.
2093 (used_from_object_file_p): New functoin.
2094 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
2095 references from aliases.
2096 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
2097 * ipa-inline.c (check_caller_edge): New function.
2098 (want_inline_function_called_once_p): Use it; accept aliases called
2100 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
2102 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2105 * config/arm/neon.md (vec_pack_trunc): Set the lengths
2106 correctly for the case with Quad vectors.
2108 2011-06-13 Jakub Jelinek <jakub@redhat.com>
2109 Ira Rosen <ira.rosen@linaro.org>
2111 PR tree-optimization/49352
2112 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
2113 all, make sure loop_use_stmt after the loop is a def stmt of a used
2114 SSA_NAME that is the only one defined inside of the loop. Don't
2115 check for COND_EXPR and GIMPLE_BINARY_RHS.
2116 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
2117 check_reduction is true.
2119 2011-06-11 Jan Hubicka <jh@suse.cz>
2122 * ipa.c (cgraph_externally_visible_p): Check resolution info.
2124 2011-06-11 Jan Hubicka <jh@suse.cz>
2127 * ipa-inline-transform.c: Include tree-pass.h
2128 (inline_transform): Set TODO_update_ssa_only_virtuals.
2129 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
2131 2011-06-11 Jan Hubicka <jh@suse.cz>
2134 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
2137 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
2139 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
2140 Take number of iterations to peel into account for equally frequent
2141 misalignment values.
2143 2011-06-11 Jan Hubicka <jh@suse.cz>
2145 * lto-streamer-out.c (produce_symtab): Stream out the newly
2146 represented aliases.
2148 2011-06-11 Jan Hubicka <jh@suse.cz>
2150 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
2152 (ipa_update_after_lto_read): Likewise.
2153 (ipa_write_node_info): Do not sream call_with_var_arguments.
2154 (ipa_read_node_info): Likewise.
2156 2011-06-11 Jan Hubicka <jh@suse.cz>
2158 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
2160 2011-06-11 Jan Hubicka <jh@suse.cz>
2162 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
2163 (lto_symtab_resolve_can_prevail_p): Likewise.
2164 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
2165 * cgraph.c (same_body_aliases_done): New global var.
2166 (cgraph_same_body_alias_1): Rename to ...
2167 (cgraph_create_function_alias): ... this one; reorg to new
2169 (cgraph_same_body_alias): Use cgraph_create_function_alias;
2170 record references when asked to.
2171 (cgraph_add_thunk): Fix formating.
2172 (cgraph_get_node): Kill same body alias code.
2173 (cgraph_node_for_asm): Likewise.
2174 (cgraph_remove_same_body_alias): Remove.
2175 (cgraph_remove_node): Kill same body alias code.
2176 (cgraph_mark_address_taken_node): Mark also the aliased function
2177 as having address taken.
2178 (dump_cgraph_node): Dump same body aliases.
2179 (cgraph_for_node_thunks_and_aliases): Update for new alias
2181 (cgraph_for_node_and_aliases): Likewise.
2182 * cgraph.h (same_body): Kll pointer.
2183 (same_body_alias): Update comment.
2184 (same_body_aliases_done): Declare.
2185 (cgraph_remove_same_body_alias): Remove declaration.
2186 (cgraph_create_function_alias): Declare.
2187 (cgraph_process_same_body_aliases): Declare.
2188 (cgraph_function_with_gimple_body_p): Check for alias.
2189 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
2190 (cgraph_alias_aliased_node): New function.
2191 (cgraph_function_node): Update for new aliases.
2192 (cgraph_function_or_thunk_node): Likewise.
2193 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
2194 (inline_call): Remove dead aliases.
2195 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
2196 name hack for same body aliases.
2197 (clone_of_p): Look through aliases.
2198 (verify_cgraph_node): Verify aliases.
2199 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
2200 (cgraph_process_same_body_aliases): New function.
2201 (process_function_and_variable_attributes): Disable weakref warning on
2203 (cgraph_analyze_functions): Handle aliases.
2204 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
2205 (assemble_thunks): Rename to ...
2206 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
2207 (cgraph_expand_function): Remove alias output code.
2208 (cgraph_output_in_order): Skip aliases.
2209 (cgraph_preserve_function_body_p): Aliases don't need preserving.
2210 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
2211 (ipa_record_reference): Do not assert on alias references.
2212 (ipa_ref_has_aliases_p): New function.
2213 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
2214 (ipa_ref_has_aliases_p): Declare.
2215 * lto-cgraph.c (lto_output_node): Handle aliases.
2216 (input_node): Likewise.
2217 * lto-streamer-out.c (lto_output): Skip aliases.
2218 (produce_symtab): Kill same_body_alias code.
2219 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
2220 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
2221 * ipa-inline.c (update_caller_keys): Walk aliases.
2222 (inline_small_functions): Fix thinko in previous patch.
2223 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
2224 (function_and_variable_visibility): Do not walk same body aliases.
2225 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
2226 (ipa_pta_execute): Use it.
2228 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2230 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
2231 (*vec_dupv2df): Rename from vec_dupv2df.
2232 (vec_dupv2df): New expander.
2234 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2236 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
2238 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2240 * config/i386/i386.md: Use default value in "isa" attribute.
2241 * config/i386/sse.md: Ditto.
2242 * config/i386/mmx.md: Ditto.
2244 2011-06-10 Wei Guozhi <carrot@google.com>
2247 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2248 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2249 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2251 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2253 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2254 (arm_legitimate_ldrd_p): New prototype.
2255 (arm_output_ldrd): New prototype.
2256 * config/arm/arm.c (arm_check_ldrd_operands): New function.
2257 (arm_legitimate_ldrd_p): New function.
2258 (arm_output_ldrd): New function.
2260 2011-06-10 David Li <davidxl@google.com>
2262 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2263 * passes.c (passr_eq): New function.
2264 (create_pass_tab): New function.
2265 (pass_traverse): New function.
2266 (dump_one_pass): New function.
2267 (dump_pass_list): New function.
2268 (dump_passes): New function.
2270 2011-06-10 Jan Hubicka <jh@suse.cz>
2272 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
2273 setting the nothrow flag.
2274 * ipa-reference.c (propagate): Skip aliases.
2275 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
2276 (propagate_nothrow): Skip aliases; do not update cgraph.
2277 (local_pure_const): Do not update cgraph.
2278 * tree-profile.c (tree_profiling): Do fixup_cfg.
2280 2011-06-10 Jan Hubicka <jh@suse.cz>
2282 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
2283 (cgraph_local_node_p): ... here; handle aliases.
2284 (has_addr_references_p): Break out from ...;
2285 (cgraph_remove_unreachable_nodes) ... here.
2287 2011-06-10 Jan Hubicka <jh@suse.cz>
2289 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
2290 * common.opt (flag_inline_functions_called_once): Do not
2293 2011-06-10 Jan Hubicka <jh@suse.cz>
2295 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
2296 (ipcp_initialize_node_lattices): Do not deal with aliases;
2297 Do not try to propagate through thunks.
2298 (ipcp_change_tops_to_bottom): Do not deal with aliases.
2300 2011-06-10 Jan Hubicka <jh@suse.cz>
2302 * ipa-prop.c (ipa_write_node_info): Stream jump functions
2304 (ipa_read_node_info): Likewise.
2306 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2309 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
2310 (build_and_insert_call): Likewise.
2311 (build_and_insert_ref): New.
2312 (gimple_expand_builtin_pow): Minor cleanup.
2313 (gimple_expand_builtin_cabs): New.
2314 (execute_cse_sincos): Add case for BUILT_IN_CABS.
2316 2011-06-10 Jan Hubicka <jh@suse.cz>
2318 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
2319 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
2320 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
2321 (ipcp_propagate_stage): Skip aliases when propagating.
2322 (ipcp_need_redirect_p): Skip aliases.
2323 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
2324 collect_callers_of_node.
2325 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
2327 (ipa_compute_jump_functions): Look through aliases.
2329 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2331 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
2333 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2335 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
2337 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
2339 2011-06-10 Jan Hubicka <jh@suse.cz>
2341 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
2342 Update call of gimple_get_virt_method_for_binfo.
2343 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
2344 refuse_thunks parameter.
2345 (gimple_fold_call): Update.
2346 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
2348 2011-06-10 Jan Hubicka <jh@suse.cz>
2350 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
2351 (not_all_callers_have_enough_arguments_p): ... this one; turn into
2352 worker for cgraph_for_node_and_aliases.
2353 (convert_callers_for_node): Break out from ...
2354 (convert_callers): ... here.
2355 (modify_function): Use collect_callers_of_node.
2356 (ipa_early_sra): Use cgraph_for_node_and_aliases.
2358 2011-06-10 Richard Guenther <rguenther@suse.de>
2360 PR tree-optimization/49361
2361 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
2362 when not already in gimple form.
2364 2011-06-10 Richard Guenther <rguenther@suse.de>
2367 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
2368 FOR_EACH_PHI_OR_STMT_USE.
2370 2011-06-10 Jan Hubicka <jh@suse.cz>
2372 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
2373 (clone_inlined_nodes): ... here.
2374 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
2375 to real destination prior inlining.
2376 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2377 can_early_inline_edge_p, want_early_inline_function_p,
2378 want_early_inline_function_p, want_inline_small_function_p,
2379 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
2380 edge_badness, update_all_callee_keys, lookup_recursive_calls,
2381 add_new_edges_to_heap, inline_small_functions, flatten_function,
2382 inline_always_inline_functions, early_inline_small_functions): Use
2383 cgraph_function_or_thunk_node.
2384 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
2385 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
2386 (do_estimate_edge_growth_1): Break out from ...
2387 (do_estimate_growth) ... here; walk aliases.
2388 (inline_generate_summary): Skip aliases.
2390 2011-06-10 Richard Guenther <rguenther@suse.de>
2392 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
2393 forward when combining, visit inserted stmts when a stmt was changed.
2395 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
2397 * tree.h (error_operand_p): Add.
2398 * dbxout.c (dbxout_type_fields): Use the latter.
2399 * c-decl.c (add_stmt): Likewise.
2400 * gimplify.c (omp_add_variable, omp_notice_variable,
2401 gimplify_scan_omp_clauses): Likewise.
2403 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
2405 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
2406 when a value is actually passed in regs.
2408 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
2409 Laurent Rougé <laurent.rouge@menta.fr>
2411 * doc/invoke.texi (SPARC options): Add -mflat.
2412 * config/sparc/sparc.opt: Likewise.
2413 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
2414 (sparc_flat_expand_prologue): Declare.
2415 (sparc_flat_expand_epilogue): Likewise.
2416 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
2417 (CPP_ENDIAN_SPEC): Replace with...
2418 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
2419 (CPP_SPEC): Adjust to above change.
2420 (EXTRA_SPECS): Likewise.
2421 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
2422 (INCOMING_REGNO): Likewise.
2423 (OUTGOING_REGNO): Likewise.
2424 (LOCAL_REGNO): Likewise.
2425 (SETUP_FRAME_ADDRESSES): Likewise.
2426 (FIXED_REGISTERS): Set 0 for %fp.
2427 (CALL_USED_REGISTERS): Likewise.
2428 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
2429 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
2430 (RETURN_ADDR_REGNUM): Define.
2431 (RETURN_ADDR_RTX): Use it.
2432 (INCOMING_RETURN_ADDR_REGNUM): Define.
2433 (INCOMING_RETURN_ADDR_RTX): Use it.
2434 (DWARF_FRAME_RETURN_COLUMN): Likewise.
2435 (EH_RETURN_REGNUM): Define.
2436 (EH_RETURN_STACKADJ_RTX): Use it.
2437 (EH_RETURN_HANDLER_RTX): Delete.
2438 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
2439 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
2441 (struct machine_function): Add frame_size, apparent_frame_size,
2442 frame_base_reg, frame_base_offset, n_global_fp_regs and
2443 save_local_in_regs_p fields.
2444 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
2445 sparc_frame_base_offset, sparc_n_global_fp_regs,
2446 sparc_save_local_in_regs_p): New macros.
2447 (sparc_option_override): Error out if -fcall-saved-REG is specified
2449 (eligible_for_restore_insn): Fix formatting.
2450 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
2451 (eligible_for_sibcall_delay): Likewise.
2452 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
2453 (sparc_legitimate_address_p): Adjust to above change.
2454 (save_global_or_fp_reg_p): New predicate.
2455 (return_addr_reg_needed_p): Likewise.
2456 (save_local_or_in_reg_p): Likewise.
2457 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
2458 (SORR_SAVE, SORR_RESTORE): Delete.
2459 (sorr_pred_t): New typedef.
2460 (sorr_act_t): New enum.
2461 (save_or_restore_regs): Rename to...
2462 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
2463 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
2464 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
2465 mechanism. Add CFI information for double-word saves in 32-bit mode.
2466 (emit_adjust_base_to_offset): New function extracted from...
2467 (emit_save_or_restore_regs): ...this. Rename the rest to...
2468 (emit_save_or_restore_regs_global_fp_regs): ...this.
2469 (emit_save_or_restore_regs_local_in_regs): New function.
2470 (gen_create_flat_frame_[123]): New functions.
2471 (sparc_expand_prologue): Use SIZE local variable. Adjust.
2472 (sparc_flat_expand_prologue): New function.
2473 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
2474 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
2475 (sparc_flat_expand_epilogue): New function.
2476 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
2477 (output_return): Likewise.
2478 (output_sibcall): Likewise.
2479 (sparc_output_mi_thunk): Likewise.
2480 (sparc_frame_pointer_required): Likewise.
2481 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
2482 function optimization.
2483 * config/sparc/sparc.md (flat): New attribute.
2484 (prologue): Add TARGET_FLAT handling.
2485 (save_register_window): Disable if TARGET_FLAT.
2486 (create_flat_frame_[123]): New patterns.
2487 (epilogue): Add TARGET_FLAT handling.
2488 (sibcall_epilogue): Likewise.
2489 (eh_return): New expander.
2490 (eh_return_internal): New insn and splitter.
2491 (return_internal): Add TARGET_FLAT handling.
2492 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
2493 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
2494 (nonlocal_goto): Add TARGET_FLAT handling.
2495 * config/sparc/t-elf: Add -mflat multilib.
2496 * config/sparc/t-leon: Likewise.
2498 2011-06-10 Jan Hubicka <jh@suse.cz>
2500 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
2501 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
2502 (self_recursive_p): Use cgraph_function_node.
2503 (propagate_pure_const): Likewise.
2504 (propagate_nothrow): Likewise.
2505 * ipa-reference.c (ipa_reference_get_not_read_global): Use
2506 cgraph_function_node.
2507 (propagate_bits): Likewise.
2508 (propagate): Likewise.
2510 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2511 Richard Earnshaw <rearnsha@arm.com>
2513 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
2514 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
2515 (*thumb2_movdi_vfp): Delete.
2516 (*arm_movdi_vfp_cortexa8): Delete.
2517 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
2518 (*movdi_vfp_cortexa8): Likewise.
2520 2011-06-10 Richard Guenther <rguenther@suse.de>
2522 * stor-layout.c (initialize_sizetypes): Give names to all
2525 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
2527 PR tree-optimization/49318
2528 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
2529 irrelevant pattern statements.
2531 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2533 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
2536 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
2539 2011-06-09 Jan Hubicka <jh@suse.cz>
2541 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
2542 do not recompute reachable flag.
2543 (cgraph_finalize_function, cgraph_analyze_functions): Set
2544 redefined_extern_inline here.
2546 2011-06-09 Jan Hubicka <jh@suse.cz>
2548 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
2549 (cgraph_only_called_directly_p): ... this one; bring offline.
2550 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
2551 varpool_used_from_object_file_p): Drop names from the declaratoin.
2552 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
2553 collect_callers_of_node): New.
2554 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
2555 (cgraph_edge_recursive_p): Use cgraph_function_node.
2556 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
2557 (cgraph_node_cannot_be_local_p_1): Break out from ...
2558 (cgraph_node_can_be_local_p): ... here; walk aliases.
2559 (cgraph_for_node_thunks_and_aliases): New function.
2560 (cgraph_for_node_and_aliases): New function.
2561 (cgraph_make_node_local_1): Break out from ...
2562 (cgraph_make_node_local) ... here; use
2563 cgraph_for_node_thunks_and_aliases.
2564 (cgraph_set_nothrow_flag_1): Break out from ...
2565 (cgraph_set_nothrow_flag) ... here;
2566 use cgraph_for_node_thunks_and_aliases.
2567 (cgraph_set_const_flag_1): Break out from ...
2568 (cgraph_set_const_flag) ... here;
2569 use cgraph_for_node_thunks_and_aliases.
2570 (cgraph_set_pure_flag_1): Break out from ...
2571 (cgraph_set_pure_flag) ... here;
2572 use cgraph_for_node_thunks_and_aliases.
2573 (cgraph_propagate_frequency_1): Break out from ...
2574 (cgraph_propagate_frequency) ... here; use
2575 cgraph_for_node_thunks_and_aliases.
2576 (cgraph_used_from_object_file_p): Do not care about aliases.
2577 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
2579 (collect_callers_of_node_1, collect_callers_of_node): New functions.
2581 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2583 PR rtl-optimization/49154
2584 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
2585 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
2586 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
2587 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
2588 * config/cris/cris.h (cris_register_move_cost): Remove
2589 !TARGET_V32 code. Tweak comments.
2591 2011-06-09 Jan Hubicka <jh@suse.cz>
2593 * cgraphbuild.c (record_eh_tables): Mark personality function as having
2596 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2598 PR rtl-optimization/49154
2599 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
2600 is a matching slot in the hashtable, assign it to classes_ptr.
2602 PR rtl-optimization/49154
2603 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
2605 * doc/tm.texi: Regenerate.
2607 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
2610 * config/sh/sh.md (UNSPEC_CHKADD): New.
2611 (chk_guard_add): New define_insn_and_split.
2612 (symGOT_load): Use chk_guard_add instead of blockage.
2614 2011-06-09 Kai Tietz <ktietz@redhat.com>
2616 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
2618 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
2620 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
2622 2011-06-09 Wei Guozhi <carrot@google.com>
2625 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
2626 (peephole2 for conditional move): Generate 16 bit instructions.
2628 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
2630 * config/i386/i386.md (*movdi_internal_rex64): Merge
2631 alternatives 6 and 8.
2633 2011-06-09 David Li <davidxl@google.com>
2635 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2636 * passes.c (passr_eq): New function.
2637 (create_pass_tab): New function.
2638 (pass_traverse): New function.
2639 (dump_one_pass): New function.
2640 (dump_pass_list): New function.
2641 (dump_passes): New function.
2643 2011-06-09 David Li <davidxl@google.com>
2645 * tree-complex.c (tree_lower_complex): Gate cleanup.
2646 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
2647 (execute_optimize_stdarg): Ditto.
2648 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
2649 (execute_cleanup_eh_1): Ditto.
2650 (execute_cleanup_eh): Ditto.
2651 * gcse.c (gate_rtl_pre): Ditto.
2652 (execute_rtl_pre): Ditto.
2653 * except.c (finish_eh_generation): Ditto.
2654 (convert_to_eh_region_ranges): Ditto.
2655 * cprop.c (one_cprop_pass): Ditto.
2657 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
2660 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
2661 in all basic blocks.
2663 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2665 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
2666 (HAVE_ENABLE_EXECUTE_STACK): Define.
2667 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
2668 (HAVE_ENABLE_EXECUTE_STACK): Define.
2669 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
2670 (HAVE_ENABLE_EXECUTE_STACK): Define.
2671 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
2672 (ENABLE_EXECUTE_STACK): Remove.
2673 (HAVE_ENABLE_EXECUTE_STACK): Define.
2674 [IN_LIBGCC2]: Don't include <windows.h>.
2675 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2676 (HAVE_ENABLE_EXECUTE_STACK): Define.
2677 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
2678 (HAVE_ENABLE_EXECUTE_STACK): Define.
2679 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
2680 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
2681 (HAVE_ENABLE_EXECUTE_STACK): Define.
2682 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
2683 (HAVE_ENABLE_EXECUTE_STACK): Define.
2684 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
2685 (HAVE_ENABLE_EXECUTE_STACK): Define.
2686 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2687 (HAVE_ENABLE_EXECUTE_STACK): Define.
2688 * config/alpha/alpha.c (alpha_trampoline_init): Test
2689 HAVE_ENABLE_EXECUTE_STACK.
2690 * config/i386/i386.c (ix86_trampoline_init): Likewise.
2691 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2692 (sparc64_initialize_trampoline): Likewise.
2693 * libgcc2.c [L_enable_execute_stack]: Remove.
2694 * system.h (ENABLE_EXECUTE_STACK): Poison.
2695 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
2696 * doc/tm.texi: Regenerate.
2697 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
2699 2011-06-09 Jakub Jelinek <jakub@redhat.com>
2702 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
2703 variable. After resetting and rescanning insn continue with previous
2706 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2708 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
2709 (gcc_cv_ld_hidden): Likewise.
2710 * configure: Regenerate.
2711 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
2712 (ix86_stack_protect_fail): Mark unused.
2713 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
2714 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
2715 [TARGET_MACHO]: Don't define.
2716 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
2717 (TARGET_STACK_PROTECT_FAIL): Likewise.
2718 (rs6000_stack_protect_fail): Mark unused.
2719 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
2720 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
2722 2011-06-08 Andi Kleen <ak@linux.intel.com>
2724 * varasm.c (get_section): Print location of other conflict
2725 for section conflicts.
2727 2011-06-08 Andi Kleen <ak@linux.intel.com>
2729 * config/i386/driver-i386.c (host_detect_local_cpu):
2730 Add model 0x2d Intel CPU.
2732 2011-06-08 Andi Kleen <ak@linux.intel.com>
2734 * reginfo.c (global_regs_decl): Add.
2735 (globalize_reg): Add decl parameter. Compute location. Pass location
2736 to warnings and add inform. Store decl in global_regs_decl.
2737 * rtl.h (globalize_reg): Update prototype.
2738 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
2740 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
2742 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
2744 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
2747 * config/sh/predicates.md (general_movsrc_operand): Check
2748 mode for memory with indexed address for QI and HImode.
2749 (general_movdst_operand): Likewise.
2751 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
2753 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
2755 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
2757 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
2758 (num_ssa_operands): Likewise.
2759 (op_iter_init_phiuse): Forward-declare.
2760 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
2762 2011-06-08 Nick Clifton <nickc@redhat.com>
2764 * doc/invoke.texi (ARM Options): Update description of
2767 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
2769 * config/i386/driver-i386.c (host_detect_local_cpu): Support
2770 unknown Intel family 0x6 CPUs.
2772 2011-06-08 Martin Jambor <mjambor@suse.cz>
2774 * tree-sra.c (mark_rw_status): Removed.
2775 (analyze_access_subtree): New parameter parent instead of
2776 mark_read and mark_write, propagate from that.
2778 2011-06-08 Julian Brown <julian@codesourcery.com>
2780 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
2781 for double-precision helper functions in hard-float mode if only
2782 single-precision arithmetic is supported in hardware.
2784 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
2786 PR rtl-optimization/49303
2787 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
2788 code_motion_path_driver returned 0 or 1.
2789 (sel_region_finish): Clear h_d_i_d.
2791 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
2793 * config/sh/sh.c (prepare_move_operands): Set pic register
2794 appropriately for global and local dynamic tls models even
2795 if flag_pic is unset.
2797 2011-06-07 Jason Merrill <jason@redhat.com>
2799 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
2801 2011-06-07 Xinliang David Li <davidxl@google.com>
2802 * passes.c (enable_disable_pass): Handle assembler name.
2803 (is_pass_explicitly_enabled_or_disabled): Ditto.
2805 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2807 PR tree-optimization/48497
2808 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
2810 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2812 PR tree-optimization/46728
2813 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
2814 to use gimple_val_nonnegative_real_p.
2815 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
2816 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
2818 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
2820 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
2822 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
2824 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
2827 2011-06-07 Richard Guenther <rguenther@suse.de>
2829 * stor-layout.c (initialize_sizetypes): Initialize all
2830 sizetypes based on target definitions.
2831 (set_sizetype): Remove.
2832 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
2833 * tree.h (set_sizetype): Remove.
2835 2011-06-07 Nick Clifton <nickc@redhat.com>
2837 * config.gcc: Unify V850 architecture options and add support for
2838 newer V850 architectures.
2839 * config/v850/t-v850e: Delete.
2841 2011-06-07 Richard Guenther <rguenther@suse.de>
2843 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
2844 Call set_sizetype from here.
2846 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
2848 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
2849 (*maddhisi4tb, *maddhisi4tt): New define_insns.
2851 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
2852 Andrew Stubbs <ams@codesourcery.com>
2854 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
2856 * doc/md.texi (Canonicalization of Instructions): Document widening
2857 multiply canonicalization.
2859 2011-06-07 Jakub Jelinek <jakub@redhat.com>
2861 PR gcov-profile/49299
2862 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
2864 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
2866 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
2868 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
2869 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
2870 vect_recog_pow_pattern): Likewise.
2871 (vect_pattern_recog_1): Remove declaration.
2872 (widened_name_p): Remove declaration. Add new argument to specify
2873 whether to check that both types are either signed or unsigned.
2874 (vect_recog_widen_mult_pattern): Update documentation. Handle
2875 unsigned patterns and multiplication by constants.
2876 (vect_pattern_recog_1): Update vect_recog_func references. Use
2877 statement information from the statement returned from pattern
2878 detection functions.
2879 (vect_pattern_recog): Update vect_recog_func reference.
2880 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
2881 multiplication by a constant use the type of the other operand.
2883 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
2885 PR rtl-optimization/49145
2886 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
2888 2011-06-06 Jakub Jelinek <jakub@redhat.com>
2891 * dwarf2out.c (native_encode_initializer): Decrement count in each
2895 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
2899 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
2900 if stmt folded into nothing.
2901 * tree-inline.c (fold_marked_statements): If a builtin at the end of
2902 a bb folded into nothing, just update cgraph edges and move to next bb.
2903 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
2904 to be NULL. Don't compute count and frequency if new_call is NULL.
2906 2011-06-04 Diego Novillo <dnovillo@google.com>
2908 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
2909 (cgraph.o): Likewise.
2910 (cgraphunit.o): Likewise.
2911 * cgraphunit.c: Include lto-streamer.h
2912 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
2914 * lto-streamer-in.c (unpack_value_fields): Call
2915 streamer_hooks.unpack_value_fields if set.
2916 (lto_materialize_tree): For unhandled nodes, first try to
2917 call lto_streamer_hooks.alloc_tree, if it exists.
2918 (lto_input_ts_decl_common_tree_pointers): Move reading of
2919 DECL_INITIAL to lto_streamer_read_tree.
2920 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
2921 (lto_streamer_read_tree): New.
2922 (lto_reader_init): Rename from lto_init_reader.
2923 Move initialization code to lto/lto.c.
2924 * lto-streamer-out.c (pack_value_fields): Call
2925 streamer_hooks.pack_value_fields if set.
2926 (lto_output_tree_ref): For tree nodes that are not normally indexable,
2927 call streamer_hooks.indexable_with_decls_p before giving up.
2928 (lto_output_ts_decl_common_tree_pointers): Move handling
2929 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
2930 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
2931 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
2932 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
2933 (lto_streamer_write_tree): New.
2934 (lto_output): Call lto_streamer_init directly.
2935 (lto_writer_init): Remove.
2936 * lto-streamer.c (streamer_hooks): New.
2937 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
2938 instead of lto_preload_common_nodes.
2939 (lto_is_streamable): Move from lto-streamer.h
2940 (lto_streamer_hooks_init): New.
2941 (streamer_hooks): New.
2942 (streamer_hooks_init): New.
2943 * lto-streamer.h (struct output_block): Forward declare.
2944 (struct lto_input_block): Likewise.
2945 (struct data_in): Likewise.
2946 (struct bitpack_d): Likewise.
2947 (struct streamer_hooks): Declare.
2948 (streamer_hooks): Declare.
2949 (lto_streamer_hooks_init): Declare.
2950 (lto_streamer_write_tree): Declare.
2951 (lto_streamer_read_tree): Declare.
2952 (streamer_hooks_init): Declare.
2953 (lto_is_streamable): Move to lto-streamer.c
2955 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2957 * longlong.h (smul_ppmm): The resulting register pair contains the
2958 higher order word first.
2960 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2962 PR tree-optimization/46728
2963 * builtins.c (powi_table): Remove.
2964 (powi_lookup_cost): Remove.
2965 (powi_cost): Remove.
2966 (expand_powi_1): Remove.
2967 (expand_powi): Remove.
2968 (expand_builtin_pow_root): Remove.
2969 (expand_builtin_pow): Remove.
2970 (expand_builtin_powi): Eliminate handling of constant exponent.
2971 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
2973 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2975 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
2977 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2979 * dce.c (reset_unmarked_insns_debug_uses): New.
2980 (delete_unmarked_insns): Skip debug insns.
2981 (prescan_insns_for_dce): Likewise.
2982 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
2983 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
2984 active reg can be found.
2985 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
2986 (convert_regs_1): Use it.
2988 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2990 * tree-pretty-print.c (dump_function_header): Add flags.
2991 Don't dump decl_uid with nouid.
2992 * tree-pretty-print.h (dump_function_header): Adjust.
2993 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
2994 * passes.c (pass_init_dump_file): Pass dump_flags on.
2995 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
2997 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3000 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
3002 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
3004 PR tree-optimization/49243
3005 * calls.c (setjmp_call_p): Also check if fndecl has the
3006 returns_twice attribute.
3008 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3010 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
3013 2011-06-06 Richard Henderson <rth@redhat.com>
3014 Georg-Johann Lay <avr@gjlay.de>
3017 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
3019 * config/avr/avr.md ("insv"): New insn expander.
3020 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
3021 "*insv.not.io", "*insv.reg"): New insns.
3023 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
3026 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
3027 to nonimmediate_operand from memory_operand for the operand that is to
3028 be forced to memory by the expander. Lose the constraints.
3030 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
3032 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
3033 EH return when delayed branches are disabled.
3035 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
3037 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
3038 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
3040 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
3041 Simplify MODE_V1DF and MODE_V2SF handling.
3042 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
3043 Simplify MODE_SF handling.
3045 2011-06-04 Jan Hubicka <jh@suse.cz>
3047 PR tree-optimization/48893
3048 PR tree-optimization/49091
3049 PR tree-optimization/49179
3050 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
3053 2011-06-04 Jan Hubicka <jh@suse.cz>
3056 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
3059 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
3061 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
3063 2011-06-04 Jakub Jelinek <jakub@redhat.com>
3066 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
3067 to be strictly smaller than 1 << shiftcount.
3069 2011-06-04 Jan Hubicka <jh@suse.cz>
3071 PR tree-optimize/48929
3072 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
3075 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
3078 * calls.c (emit_call_1): Prefer the __builtin declaration of
3081 2011-06-03 Diego Novillo <dnovillo@google.com>
3083 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
3084 (lto_input_tree_pointers): Likewise.
3085 * lto-streamer-out.c (pack_value_fields): Likewise.
3086 (lto_output_tree_pointers): Likewise.
3087 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
3088 and OPTIMIZATION_NODE.
3090 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3092 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
3093 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
3094 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
3095 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
3096 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
3097 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
3098 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
3099 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
3100 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
3101 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
3102 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
3103 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
3104 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
3105 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
3106 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
3107 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
3108 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
3109 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
3110 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
3111 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
3112 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
3113 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
3114 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
3115 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
3116 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
3117 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
3118 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
3119 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
3120 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
3121 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
3122 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
3123 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
3124 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
3125 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
3126 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
3127 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
3128 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
3129 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
3130 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
3131 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
3132 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
3133 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
3134 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
3135 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
3136 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
3137 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
3138 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
3139 * system.h (MD_UNWIND_SUPPORT): Poison.
3140 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
3141 * doc/tm.texi: Regenerate.
3142 * unwind-dw2.c: Include md-unwind-support.h instead of
3144 * config/ia64/unwind-ia64.c: Likewise.
3145 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
3147 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
3149 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
3151 2011-06-03 Richard Henderson <rth@redhat.com>
3152 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3154 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
3155 (sigill_hdlr): Correct insn, insn size.
3156 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
3158 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3160 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
3162 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
3163 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
3164 * config/mips/t-iris: Remove.
3165 * config/mips/t-irix6: New file.
3166 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
3168 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3170 * Makefile.in (LIB2ADDEHDEP): Remove.
3171 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
3172 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
3173 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
3174 * config/t-darwin (LIB2ADDEHDEP): Remove.
3175 * config/t-freebsd (LIB2ADDEHDEP): Remove.
3176 * config/t-linux (LIB2ADDEHDEP): Remove.
3178 2011-06-03 Diego Novillo <dnovillo@google.com>
3180 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
3181 (lto_register_var_decl_in_symtab): Likewise.
3182 (lto_register_function_decl_in_symtab): Likewise.
3183 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
3184 logic to uniquify_nodes.
3186 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3188 * config/alpha/t-osf5: Remove.
3189 * config/alpha/t-osf-pthread: Remove.
3190 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
3191 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
3193 2011-06-03 Julian Brown <julian@codesourcery.com>
3195 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
3196 (strongarm1110): Use strongarm tuning.
3197 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
3198 * config/arm/arm.c (arm_strongarm_tune): New.
3199 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3200 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
3201 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
3202 setting, using previous defaults or 1 for Cortex-A5.
3203 (arm_option_override): Set max_insns_skipped from current tuning.
3205 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
3207 * doc/install.texi (Options specification): Document --with-specs.
3209 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3211 * config/arm/neon.md (orndi3_neon): Actually split it.
3213 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
3215 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
3216 * var-tracking.c (reverse_op): Limite recurse depth to 5.
3218 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
3221 * target.def (delay_sched2, delay_vartrack): New.
3222 * doc/tm.texi.in: Update.
3223 * doc/tm.texi: Rebuild.
3224 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
3225 * var-tracking.c (gate_handle_var_tracking): Likewise.
3226 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
3227 (bfin_flag_var_tracking): Drop.
3228 (output_file_start): Don't save and override flag_var_tracking.
3229 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
3230 (bfin_reorg): Test original variables.
3231 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3232 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
3233 (ia64_flag_var_tracking): Drop.
3234 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3235 (ia64_file_start): Don't save and override flag_var_tracking.
3236 (ia64_override_options_after_change): Ditto
3237 flag_schedule_insns_after_reload.
3238 (ia64_reorg): Test original variables.
3239 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
3240 (picochip_flag_var_tracking): Drop.
3241 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3242 (picochip_option_override): Don't save and override
3243 flag_schedule_insns_after_reload.
3244 (picochip_asm_file_start): Ditto flag_var_tracking.
3245 (picochip_reorg): Test original variables.
3246 * config/spu/spu.c (spu_flag_var_tracking): Drop.
3247 (TARGET_DELAY_VARTRACK): Define.
3248 (spu_var_tracking): New.
3249 (spu_machine_dependent_reorg): Call it.
3250 (asm_file_start): Don't save and override flag_var_tracking.
3252 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
3255 * config/sh/predicates.md (general_movsrc_operand): Return 0
3256 for memory and memory subreg of which address is an invalid
3257 indexed address for QI and HImode.
3258 (general_movdst_operand): Likewise.
3260 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3262 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
3263 edges only, when there is a non-local label in the function.
3264 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
3266 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
3268 * config/i386/constraints.md (Y3): New register constraint.
3269 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
3270 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
3271 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
3272 *sse2_interleave_lowv2df.
3274 2011-06-02 Julian Brown <julian@codesourcery.com>
3276 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
3277 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
3278 (arm_cortex_a5_tune): New.
3280 2011-06-02 Julian Brown <julian@codesourcery.com>
3282 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
3283 * config/arm/arm.c (arm_default_branch_cost): New.
3284 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3285 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
3286 (arm_fa726_tune): Set branch_cost field using
3287 arm_default_branch_cost.
3288 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
3289 current_tune structure.
3290 * dojump.c (tm_p.h): Include file.
3292 2011-06-02 Julian Brown <julian@codesourcery.com>
3294 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
3296 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
3297 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
3298 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
3300 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
3301 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
3302 (arm_fa726te_tune): Add prefer_constant_pool setting.
3303 (arm_v6t2_tune, arm_cortex_tune): New.
3304 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
3305 prefer_constant_pool setting.
3307 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
3309 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
3311 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
3312 (*movdf_internal) <case 6,7,8>: Ditto.
3314 * config/i386/constraints.md (Y4): New register constraint.
3315 * config/i386/sse.md (vec_set<mode>_0): Merge with
3316 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
3317 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
3318 *vec_extractv2di_1_sse.
3319 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
3320 and *vec_concatv2di_rex64_sse.
3322 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
3325 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
3326 of cgraph_local_info for null before attempting to use it.
3328 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3330 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
3331 (current_function_dynamic_alloc_count): Delete.
3332 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
3333 (expand_builtin_nonlocal_goto): Remove obsolete comment.
3334 (expand_builtin_update_setjmp_buf): Remove dead code.
3335 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
3336 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
3338 * function.c (instantiate_virtual_regs): Likewise.
3339 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
3340 for a block with a single abnormal incoming edge.
3341 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
3342 (SETJMP_VIA_SAVE_AREA): Delete.
3343 * config/sparc/sparc-protos.h (load_got_register): Declare.
3344 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3345 (load_got_register): Make global.
3346 (sparc_frame_pointer_required): Add 'static'.
3347 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
3348 (sparc_builtin_setjmp_frame_value): New function.
3349 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
3350 (save_stack_nonlocal): New expander.
3351 (restore_stack_nonlocal): Likewise.
3352 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
3353 (nonlocal_goto_internal): New insn.
3354 (goto_handler_and_restore): Delete.
3355 (builtin_setjmp_setup): Likewise.
3356 (do_builtin_setjmp_setup): Likewise.
3358 (builtin_setjmp_receiver): New expander.
3360 2011-06-01 David Li <davidxl@google.com>
3363 * tree-pretty-print.c (dump_function_header): Format cleanup.
3365 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
3368 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
3369 needed when original operands are used for msw_skip comparison.
3371 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3374 * var-tracking.c (add_uses, add_stores): Don't call
3375 cselib_subst_to_values on ENTRY_VALUE.
3377 2011-06-01 Diego Novillo <dnovillo@google.com>
3379 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
3380 output_record_start with LTO_null instead of output_zero.
3381 (lto_output_ts_binfo_tree_pointers): Likewise.
3382 (lto_output_tree): Likewise.
3383 (output_eh_try_list): Likewise.
3384 (output_eh_region): Likewise.
3385 (output_eh_lp): Likewise.
3386 (output_eh_regions): Likewise.
3387 (output_bb): Likewise.
3388 (output_function): Likewise.
3389 (output_unreferenced_globals): Likewise.
3390 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
3391 instead of NUM_TREE_CODES.
3392 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
3393 (lto_output_int_in_range): Change << to >> when shifting VAL.
3395 2011-06-01 Diego Novillo <dnovillo@google.com>
3397 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
3398 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
3400 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3403 * optabs.h (valid_multiword_target_p): Declare.
3404 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
3405 doing multi-word operations.
3406 * optabs.c (expand_binop): Likewise.
3407 (expand_doubleword_bswap): Likewise.
3408 (expand_absneg_bit): Likewise.
3409 (expand_unop): Likewise.
3410 (expand_copysign_bit): Likewise.
3411 (multiword_target_p): New function.
3413 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3415 PR rtl-optimization/48830
3416 PR rtl-optimization/48808
3417 PR rtl-optimization/48792
3418 * reload.c (push_reload): Check contains_reg_of_mode.
3419 * reload1.c (strip_paradoxical_subreg): New function.
3420 (gen_reload_chain_without_interm_reg_p): Use it to handle
3421 paradoxical subregs.
3422 (emit_output_reload_insns, gen_reload): Likewise.
3424 2011-06-01 David Li <davidxl@google.com>
3426 * predict.c : Change pass name
3429 * tree-profile.c: Ditto.
3432 2011-06-01 David Li <davidxl@google.com>
3434 * tree-pretty-print.c (dump_function_header): New function.
3435 * final.c (rest_of_clean_state): Use header dumper.
3436 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
3437 * passes.c (pass_init_dump_file): Use header dumper.
3439 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3441 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
3442 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
3443 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
3445 (mem_loc_descriptor): Use them.
3447 * var-tracking.c (create_entry_value): New function.
3448 (vt_add_function_parameter): Use it.
3450 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3452 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
3453 Include <signal.h>, <ucontext.h>.
3454 (sigill_caught): Define.
3455 (sigill_hdlr): New function.
3456 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
3457 insns can be executed.
3458 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
3459 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
3461 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3463 * config/t-slibgcc-darwin: Move to ...
3464 * config/t-slibgcc-dummy: ... this. Clarify comments.
3465 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
3466 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
3467 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
3468 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
3469 Remove i386/t-crtstuff from tmake_file.
3470 (i[34567]86-*-solaris2*): Remove t-svr4,
3471 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
3473 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
3474 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
3475 sparc/t-crtfm from tmake_file.
3476 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
3477 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
3479 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
3480 * config/i386/t-nwld (SHLIB_LINK): Remove.
3481 * config/i386/t-rtems-i386: Rename to ...
3482 * config/i386/t-rtems: ... this.
3483 ($(T)crti.o, $(T)crtn.o): Remove.
3484 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
3485 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
3486 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
3487 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
3488 EXTRA_MULTILIB_PARTS): Remove.
3489 * config/sparc/t-sol2-64: Likewise.
3490 * config/sparc/t-sol2: Remove.
3491 * config/sparc/t-crtin: Remove.
3492 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
3493 * config/i386/gmon-sol2.c: Remove.
3494 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
3495 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
3496 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
3497 * config/i386/sol2-gc1.asm: Remove.
3498 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
3499 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
3500 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
3501 * config/t-slibgcc-sld: Remove.
3503 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3505 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
3506 base_type_for_mode with op_mode instead of mode.
3508 2011-06-01 Paul Brook <paul@cpodesourcery.com>
3510 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
3512 * config/arm/arm-tune.md: Regenerate.
3513 * config/arm/arm-tables.opt: Regenerate.
3514 * config/arm/arm.c (FL_DIV): Rename...
3515 (FL_THUMB_DIV): ... to this.
3516 (FL_ARM_DIV): Define.
3517 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
3518 (arm_arch_hwdiv): Remove.
3519 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
3520 (arm_issue_rate): Add cortexr5.
3521 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
3522 __ARM_ARCH_EXT_IDIV__.
3523 (TARGET_IDIV): Define.
3524 (arm_arch_hwdiv): Remove.
3525 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
3526 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
3527 (divsi3, udivsi3): New patterns.
3528 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
3529 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
3531 2011-06-01 Martin Jambor <mjambor@suse.cz>
3533 * ipa-utils.c (ipa_dfs_info): New field scc_no.
3534 * ipa-utils.c (searchc): Set scc_no.
3536 2011-06-01 Martin Jambor <mjambor@suse.cz>
3538 * ipa-utils.c (searchc_env): New field allow_overwritable.
3539 (searchc): do not ignore edges to overwritable nodes if indicated
3540 by env->allow_overwritable.
3541 (ipa_reduced_postorder): Set env.allow_overwritable.
3543 2011-06-01 Richard Guenther <rguenther@suse.de>
3545 * tree.c (free_lang_data): Do not reset boolean_type_node nor
3547 * lto-streamer.c (lto_record_common_node): Take node pointer,
3548 do not register types.
3549 (lto_preload_common_nodes): Explicitly skip preloading nodes
3550 that differ between frontends.
3552 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
3554 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
3557 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
3559 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
3560 parameter value for dump. Dump cost on outermost call only.
3561 (rs6000_memory_move_cost): Dump cost on outermost call only.
3563 2011-05-31 Jakub Jelinek <jakub@redhat.com>
3565 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
3566 DW_OP_GNU_convert ops.
3568 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
3569 cselib_preserve_constants.
3570 (cselib_lookup_1): If cselib_preserve_constants,
3571 a new VALUE is being created for REG and there is a VALUE for the
3572 same register in wider mode, add another loc with lowpart SUBREG of
3574 (cselib_subst_to_values): Handle ENTRY_VALUE.
3575 * var-tracking.c (replace_expr_with_values): Return NULL for
3577 * dwarf2out.c (convert_descriptor_to_signed): New function.
3578 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
3579 instead of two shifts.
3580 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
3581 the right mode if needed.
3582 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
3583 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
3584 convert_descriptor_to_signed.
3585 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
3586 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
3589 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
3591 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3593 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
3594 of X87MODEI12 and SWI48x instead of SSEMODEI24.
3595 (SWI248x): New mode iterator, rename from X87MODEI.
3596 (X87MODEI): Remove mode iterator.
3597 (X87MODEI12): Ditto.
3598 (SSEMODEI24): Ditto.
3600 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3602 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
3603 * doc/invoke.texi: Document max-vartrack-expr-depth.
3604 * var-tracking.c (EXPR_DEPTH): New.
3605 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
3607 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3609 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
3610 * config/i386/sse.md: Add n to negated FMA pattern names.
3612 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3614 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
3616 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3618 * gengtype-state.c (read_state_params_structs): Initialize previous.
3620 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3622 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
3623 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
3625 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3627 * config/i386/i386.md (*movtf_internal): Avoid allocating general
3628 registers. Penalize F*r->o alternative to prevent partial memory
3629 stalls. Slightly penalize *roF->*r alternative. Generate SSE
3630 CONST_DOUBLE immediates when optimizing function for size. Do not move
3631 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3632 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
3633 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
3634 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
3636 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
3638 (fp_register_operand splitters): Use fp_register_operand
3639 constraint. Do not use FP_REG_P in insn condition.
3640 (any_fp_register_operand splitters): Use any_fp_register_operand
3641 constraint. Do not use ANY_FP_REG_P in insn condition.
3643 2011-05-31 Jan Hubicka <jh@suse.cz>
3645 * cgraph.h (cgraph_inline_failed_t): Give enum a name
3646 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
3647 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
3648 (lto_output_edge): Use output_enum and var_len_unsigned.
3649 (lto_output_varpool_node): Likewise.
3650 (input_overwrite_node): Do not take resolution parameter;
3651 extract it from a bitpack.
3652 (input_node): Do not read resolution; use input_enum and
3654 (input_varpool_node): Likewise.
3655 (input_edge): Likewise.
3656 (input_cgraph_1): Likewise.
3658 2011-05-31 Richard Guenther <rguenther@suse.de>
3660 * gimple.c (gimple_register_canonical_type): Do not register
3661 any types via gimple_register_type.
3663 2011-05-31 Jan Hubicka <jh@suse.cz>
3665 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
3668 2011-05-31 Jakub Jelinek <jakub@redhat.com>
3670 PR rtl-optimization/49235
3671 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
3672 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
3674 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
3676 PR tree-optimization/49093
3677 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
3680 2011-05-31 Dodji Seketeli <dodji@redhat.com>
3683 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
3684 for concrete functions containing the code of cloned functions.
3686 2011-05-31 Richard Guenther <rguenther@suse.de>
3688 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
3690 (forward_propagate_into_comparison_1): ... this.
3691 (forward_propagate_comparison): Rename to ...
3692 (forward_propagate_into_comparison): ... this. Split out
3693 real forward propagation code to ...
3694 (forward_propagate_comparison): ... this.
3695 (forward_propagate_into_gimple_cond): Remove looping.
3696 (forward_propagate_into_cond): Likewise.
3697 (simplify_not_neg_expr): Return whether we have done something.
3698 (simplify_gimple_switch): Likewise.
3699 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
3700 (ssa_forward_propagate_and_combine): ... this. Re-structure
3701 to do a forward forward-propagation walk on BBs and a backward
3702 stmt combining walk on BBs. Consistently re-scan changed statements.
3703 (pass_forwprop): Adjust.
3705 2011-05-30 Ian Lance Taylor <iant@google.com>
3707 * godump.c (go_format_type): Correct length of name added to
3708 obstack for anonymous field.
3710 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
3713 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
3714 part of the second operand is 0.
3716 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
3718 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
3719 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
3720 to memory for !TARGET_MEMORY_MISMATCH_STALL.
3721 (*movdf_internal_rex64): Do not penalize F->r alternative.
3722 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
3723 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
3724 when optimizing function for size. Do not move CONST_DOUBLEs
3725 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3726 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
3727 SUBREGs. Do not check for MEM_P operands in the insn condition,
3728 check for ANY_FP_REGNO_P instead.
3729 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
3730 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
3732 * config/i386/i386.c (ix86_option_override_internal): Do not
3733 set TARGET_INTEGER_DFMODE_MOVES here.
3735 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
3738 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
3740 2011-05-30 Jakub Jelinek <jakub@redhat.com>
3742 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
3743 DW_TAG_rvalue_reference_type even for
3744 -gdwarf-4 -fno-debug-types-section.
3746 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3748 PR tree-optimization/46728
3749 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
3750 (build_and_insert_binop): New.
3751 (gimple_expand_builtin_pow): Reorder args for
3752 build_and_insert_call; use build_and_insert_binop; add more
3753 optimizations for fractional exponents.
3755 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3760 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3762 * tree.h (struct tree_identifier): Inherit from tree_typed, not
3764 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3765 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3766 TS_BASE instead of TS_COMMON.
3767 * varasm.c (assemble_name): Remove assert.
3769 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
3771 * config.gcc: Keep obselete list sorted.
3773 2011-05-30 Jakub Jelinek <jakub@redhat.com>
3774 Eric Botcazou <ebotcazou@adacore.com>
3776 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
3777 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
3778 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
3779 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
3780 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
3782 2011-05-30 Richard Guenther <rguenther@suse.de>
3784 * gimple.c (gimple_types_compatible_p_1): Compare record
3785 and union type members properly.
3787 2011-05-30 Richard Guenther <rguenther@suse.de>
3789 PR tree-optimization/49210
3790 * ipa-split.c (split_function): Care for the case where the call
3791 result is not trivially convertible to the result holding variable.
3793 2011-05-30 Richard Guenther <rguenther@suse.de>
3795 PR tree-optimization/49218
3796 * tree-vrp.c (adjust_range_with_scev): Properly check whether
3799 2011-05-30 Richard Guenther <rguenther@suse.de>
3801 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
3802 New function split out from ...
3803 (forward_propagate_into_gimple_cond): ... here. Adjust.
3804 (forward_propagate_into_cond): Likewise.
3805 (forward_propagate_comparison): Also propagate into
3806 comparisons on assignment RHS. Change return value to
3807 behave similar to forward_propagate_into_cond.
3808 (tree_ssa_forward_propagate_single_use_vars): Handle
3809 strict-overflow warnings properly for forward_propagate_comparison.
3811 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3813 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
3815 * configure: Regenerate.
3817 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
3819 PR tree-optimization/49199
3820 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
3821 non-reduction operands are either defined in the loop or by induction.
3823 2011-05-29 Xinliang David Li <davidxl@google.com>
3825 * opts-global.c (handle_common_deferred_options): Handle new options.
3826 * passes.c (register_one_dump_file): Call register_pass_name.
3827 (execute_one_pass): Check explicit enable/disable flag.
3828 (passr_hash): New function.
3830 (register_pass_name): Ditto.
3831 (get_pass_by_name): Ditto.
3834 (enable_pass): Ditto.
3835 (disable_pass): Ditto.
3836 (is_pass_explicitly_enabled_or_disabled): Ditto.
3838 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
3840 * config/i386/i386.md (*movoi_internal_avx): Use
3841 standard_sse_constant_opcode for alternative 0.
3842 (*movti_internal_sse): Ditto.
3843 (*movti_internal_rex64): Use standard_sse_constant_opcode for
3845 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
3847 (*movsi_internal): Ditto.
3848 (*movdi_internal): Ditto. Add ssecvt type moves.
3850 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
3853 * rtlanal.c (simplify_subreg_regno): Adjust comment.
3855 2011-05-29 Jakub Jelinek <jakub@redhat.com>
3857 PR rtl-optimization/49095
3858 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
3859 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
3861 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
3864 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
3865 recurse_p argument. Only follow register copies if it is set,
3866 and prevent mips_find_pic_call_symbol from recursing.
3867 (mips_find_pic_call_symbol): Add a recurse_p argument.
3868 Pass it to mips_pic_call_symbol_from_set.
3869 (mips_annotate_pic_calls): Update accordingly.
3871 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
3873 * emit-rtl.c (try_split): Use a loop to search for
3874 NOTE_INSN_CALL_ARG_LOCATIONs.
3876 2011-05-29 Richard Guenther <rguenther@suse.de>
3878 PR tree-optimization/49217
3879 * ipa-pure-const.c (propagate_pure_const): Fix typos.
3881 2011-05-28 Jan Hubicka <jh@suse.cz>
3883 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
3885 (string_slot_free): Remove
3886 (create_output_block): Initialize obstack.
3887 (destroy_output_block): Free obstack.
3888 (lto_string_index): Add PERSISTENT parameter; do not duplicate
3889 the string unless it needs to be added into the hash.
3890 (lto_output_string_with_length): Add persistent attribute;
3891 handle NULL strings.
3892 (lto_output_string): Add PERSISTENT parameter.
3893 (output_string_cst, output_identifier): Simplify.
3894 (lto_output_location_bitpack): Update.
3895 (lto_output_builtin_tree): Update.
3896 * lto-streamer.h (struct output_block): Add obstack.
3897 (lto_output_string, lto_output_string_with_length): Remove
3898 declarations; functions are static now.
3900 2011-05-28 Jan Hubicka <jh@suse.cz>
3902 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
3903 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
3904 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
3905 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
3906 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
3907 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
3908 unpack_ts_decl_with_vis_value_fields,
3909 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
3910 lto_get_builtin_tree): Use enum and variable length i/o.
3911 * basic-block.h (profile_status_d): Add PROFILE_LAST.
3912 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
3914 (bp_pack_enum, bp_unpack_enum): New macros.
3916 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3918 * genrecog.c: Remove redundant forward declarations.
3920 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3922 * config.gcc: Deprecate mips*-*-openbsd*.
3924 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3927 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
3930 2011-05-27 Andrew Pinski <pinskia@gmail.com>
3933 * gengtype.c (vec_prefix_type): New function.
3934 (note_def_vec): Use vec_prefix_type and change the length
3935 attribute to be based on the prefix.
3936 * vec.c: Include coretypes.h before vec.h.
3937 (struct vec_prefix): Remove.
3938 (vec_gc_p_reserve): Change the offsetof to sizeof.
3939 (vec_gc_p_reserve_exact): Likewise.
3940 (vec_heap_p_reserve): Likewise.
3941 (vec_heap_p_reserve_exact): Likewise.
3942 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
3943 (vec_stack_p_reserve): Change the offsetof to sizeof.
3944 (vec_stack_p_reserve_exact): Likewise.
3945 * vec.h (struct vec_prefix): New struct definition.
3946 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
3947 (VEC_T_GTY(T,B)): Likewise.
3948 (DEF_VEC_FUNC_P(T)): Use prefix field.
3949 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
3950 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
3952 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3954 PR tree-optimization/46728
3955 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
3956 (powi_as_mults): Add gimple_set_location.
3957 (build_and_insert_call): New.
3958 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
3959 0.5, 0.25, 0.75, 1./3., or 1./6.
3961 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
3963 * doc/contrib.texi: Update copyright years.
3964 (Contributors): Add Zdenek Sojka.
3966 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3968 * c-decl.c (c_push_function_context): Copy the current statement
3970 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
3971 (finish_struct): Call building_stmt_list_p instead of checking
3973 * c-parser.c (c_parser_postfix_expression): Likewise.
3974 * c-typeck.c (c_end_compound_stmt): Likewise.
3975 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
3976 * tree-iterator.c (stmt_list_cache): Change to a VEC.
3977 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
3978 (free_stmt_list): Likewise.
3979 * tree.h (struct tree_statement_list): Include typed_tree instead
3981 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
3982 as TS_TYPED instead of TS_COMMON.
3984 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3985 Uros Bizjak <ubizjak@gmail.com>
3987 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
3988 (HAVE_AS_IX86_TLSGDPTL): Define.
3989 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
3990 (HAVE_AS_IX86_TLSLDMPLT): Define.
3991 * configure: Regenerate.
3992 * config.in: Regenerate.
3993 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
3994 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
3995 TARGET_SUN_TLS, use @tlsgdplt or @plt.
3996 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
3997 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
3999 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
4001 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
4003 * sched-int.h (struct _haifa_deps_insn_data): New members cond
4005 (INSN_COND, INSN_REVERSE_COND): New macros.
4006 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
4008 (sched_get_condition_with_rev): Cache the results, and look them up
4010 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
4011 are clobbered by the current insn.
4012 * target.def (exposed_pipline): New sched data hook.
4013 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
4014 * doc/tm.texi: Regenerate.
4016 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4018 PR tree-optimization/49170
4019 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
4022 2011-05-27 Richard Guenther <rguenther@suse.de>
4025 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
4028 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
4030 * haifa-sched.c (sched_scan_info): Remove.
4031 (schedule_block): Call sched_extend_luids rather than sched_init_luids
4033 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
4035 (sched_scan): Remove.
4036 (sched_extend_luids): Renamed from luids_extend_insn and no longer
4037 static. All callers changed.
4038 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
4039 static. All callers changed.
4040 (sched_init_luids): Remove all arguments except the first. All
4041 callers changed. Don't use sched_scan.
4042 (haifa_init_h_i_d): Likewise.
4043 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
4044 manually rather than using sched_init_luids. Likewise with
4045 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
4046 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
4047 rather than sched_init_luids with NULL args.
4048 * sel-sched-ir.c (new_insns): Remove variable.
4049 (sched_scan): New static function, previously in haifa-sched.c. Remove
4050 all arguments but the first two; all callers changed.
4051 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
4052 rather than sched_init_luids.
4053 (sel_init_bbs): Remove second argument. All callers changed.
4054 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
4055 with NULL arguments.
4056 (create_insn_rtx_from_pattern): Likewise.
4057 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
4058 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
4059 (sched_init_insn_luid, sched_extend_luids): Declare.
4060 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
4063 2011-05-27 Richard Guenther <rguenther@suse.de>
4066 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
4067 A CMP B ? (T) true : (T) false for non-integral types T again.
4069 2011-05-27 Jan Hubicka <jh@suse.cz>
4071 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
4072 so 0 means NULL string.
4073 (lto_output_string_with_length): ... here.
4074 (lto_output_string, output_string_cst, output_identifier): Update
4075 handling of NULL strings.
4076 (lto_output_location_bitpack): New function.
4077 (lto_output_location): Use it.
4078 (lto_output_tree_ref): Use output_record_start.
4079 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
4081 * lto-streamer-in.c (string_for_index): Break out from ...; offset
4083 (input_string_internal): ... here;
4084 (input_string_cst, input_identifier, lto_input_string): Update handling
4086 (lto_input_location_bitpack): New function
4087 (lto_input_location): Use it.
4088 (unpack_ts_type_common_value_fields): Pack align & alias in var len
4090 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
4091 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
4092 (bp_pack_value): Sanity check the value range.
4093 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
4095 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
4098 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
4100 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
4101 call_arg_location instructions down the floor.
4103 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
4105 PR rtl-optimization/49154
4106 * ira.c (setup_pressure_classes): Process class without sublcasses
4107 as a candidate for pressure classes.
4109 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
4111 PR rtl-optimization/48575
4112 * genrecog.c (position_type): New enum.
4113 (position): New structure.
4114 (decision): Use position structure instead of a string.
4115 (root_pos, peep2_insn_pos_list): New variables.
4116 (next_position, compare_positions): New functions.
4117 (new_decision): Use position structures instead of strings.
4118 (maybe_both_true): Likewise.
4119 (change_state): Likewise.
4120 (write_tree): Likewise.
4121 (make_insn_sequence): Likewise.
4123 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4125 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
4126 TS_BASE instead of TS_COMMON.
4127 (find_decls_types_r): Check for TS_TYPED structure before looking at
4129 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
4131 (BLOCK_CHAIN): Use new chain field.
4133 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
4135 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
4136 moves expensive on Power7 also.
4138 2011-05-26 Richard Guenther <rguenther@suse.de>
4140 * fold-const.c (fold_unary_loc): Remove bogus code.
4142 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4144 * tree.h (struct tree_identifier): Inherit from tree_typed, not
4146 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4147 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4148 TS_BASE instead of TS_COMMON.
4149 * varasm.c (assemble_name): Remove assert.
4151 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
4153 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
4155 * libgcc-std.ver: Delete file.
4157 2011-05-26 Richard Guenther <rguenther@suse.de>
4159 PR tree-optimization/48702
4160 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
4161 only when we know the base address is within bounds.
4162 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
4163 assume the base address of TARGET_MEM_REFs is in bounds.
4165 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4168 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
4169 declaration in TARGET_SOLARIS.
4171 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
4173 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
4174 The instruction is then expanded explicitly.
4175 (supported_compare): Callable instruction.
4176 (compare): Likewise.
4178 2011-05-26 Jakub Jelinek <jakub@redhat.com>
4181 * gimplify.c (shortcut_cond_r): Don't special case
4182 COND_EXPRs if they have void type on one of their arms.
4184 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
4186 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
4187 to reduce duplication, and to achieve a slightly more logical order
4190 2011-05-26 Jakub Jelinek <jakub@redhat.com>
4192 PR tree-optimization/49161
4193 * tree-vrp.c (struct case_info): New type.
4194 (compare_case_labels): Sort case_info structs instead of
4195 trees, and not primarily by CASE_LABEL uids but by
4196 label_for_block indexes.
4197 (find_switch_asserts): Put case labels into struct case_info
4198 array instead of TREE_VEC, adjust sorting, compare label_for_block
4199 values instead of CASE_LABELs.
4201 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4203 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
4204 ("orndi3_neon"): Likewise.
4205 ("bic<mode>3_neon"): Likewise.
4207 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
4209 PR tree-optimization/49038
4210 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
4211 Ensure at least one epilogue iteration if required by data
4213 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4214 to mark loops that require peeling for gaps.
4215 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
4216 (vect_get_known_peeling_cost): Take peeling for gaps into
4218 (vect_transform_loop): Generate epilogue if required by data
4220 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
4221 loop as requiring an epilogue if there are gaps in the end of
4224 2011-05-25 Ian Lance Taylor <iant@google.com>
4226 * godump.c (go_format_type): Output the first field with a usable
4229 2011-05-25 Ian Lance Taylor <iant@google.com>
4231 * godump.c (go_format_type): Check for invalid type names, pointer
4232 target types, and struct field types.
4234 2011-05-25 Jason Merrill <jason@redhat.com>
4236 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
4238 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
4240 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
4242 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4244 * config/i386/i386.md (*movqi_extv_1)): Put back
4245 "register_operand" check in "type" calculation.
4246 (*movqi_extzv_2): Likewise.
4248 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4250 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
4252 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4255 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
4256 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
4257 __divxc3, __divtc3): Wrap definitions in #ifndef.
4259 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4262 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
4263 "register_operand" check and replace q_regs_operand with
4264 QIreg_operand in "type" calculation.
4265 (*movqi_extv_1): Likewise.
4266 (*movqi_extzv_2_rex64): Likewise.
4267 (*movqi_extzv_2): Likewise.
4269 * config/i386/predicates.md (QIreg_operand): New.
4271 2011-05-25 Richard Guenther <rguenther@suse.de>
4273 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4274 type-based offset disambiguation, streamline MEM_REF and
4275 TARGET_MEM_REF handling.
4277 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4279 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
4280 (bdesc_special_args): Add pause intrinsic.
4282 * config/i386/i386.md (UNSPEC_PAUSE): New.
4285 * config/i386/ia32intrin.h (__pause): Likewise.
4287 * doc/extend.texi (X86 Built-in Functions): Add documentation for
4290 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4292 PR tree-optimization/46728
4293 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
4294 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
4296 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
4298 * tree.h (struct tree_exp): Inherit from struct tree_typed.
4299 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
4300 instead of TS_COMMON.
4302 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4304 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
4305 LIBGCC2_GNU_PREFIX is defined.
4307 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
4308 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
4309 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
4310 __clz_tab): Define using __N.
4311 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
4312 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
4313 * target.def (libfunc_gnu_prefix): New hook.
4314 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
4315 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
4316 * doc/tm.texi: Regenerate.
4317 * system.h (LIBGCC2_GNU_PREFIX): Poison.
4318 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
4320 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
4321 (init_optabs): Likewise for the bswap libfuncs.
4322 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
4324 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
4325 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
4326 * libgcc-std.ver: Remove.
4327 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
4328 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
4330 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4331 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
4332 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
4333 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
4334 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
4335 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4336 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4337 * config/fixed-bit.h (FIXED_OP): Define differently depending on
4338 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
4339 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
4341 2011-05-25 Jan Hubicka <jh@suse.cz>
4343 * lto-streamer-out.c (output_record_start): Use lto_output_enum
4344 (lto_output_tree): Use output_record_start.
4345 * lto-streamer-in.c (input_record_start): Use lto_input_enum
4346 (lto_get_pickled_tree): Use input_record_start.
4347 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
4348 (lto_value_range_error): New function.
4349 * lto-streamer.h (lto_value_range_error): Declare.
4350 (lto_output_int_in_range, lto_input_int_in_range): New functions.
4351 (lto_output_enum, lto_input_enum): New macros.
4353 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
4355 * common.opt (flag_stack_usage_info): New variable.
4356 (-Wstack-usage): New option.
4357 * doc/invoke.texi (Warning options): Document -Wstack-usage.
4358 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
4359 <OPT_fstack_usage>: Likewise.
4360 * toplev.c (output_stack_usage): Handle -Wstack-usage.
4361 * calls.c (expand_call): Test flag_stack_usage_info variable instead
4362 of flag_stack_usage.
4363 (emit_library_call_value_1): Likewise.
4364 * explow.c (allocate_dynamic_stack_space): Likewise.
4365 * function.c (instantiate_virtual_regs ): Likewise.
4366 (prepare_function_start): Likewise.
4367 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
4368 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
4369 * config/arm/arm.c (arm_expand_prologue): Likewise.
4370 (thumb1_expand_prologue): Likewise.
4371 * config/avr/avr.c (expand_prologue): Likewise.
4372 * config/i386/i386.c (ix86_expand_prologue): Likewise.
4373 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4374 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
4375 * config/mips/mips.c (mips_expand_prologue): Likewise.
4376 * config/pa/pa.c (hppa_expand_prologue): Likewise.
4377 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4378 * config/s390/s390.c (s390_emit_prologue): Likewise.
4379 * config/sh/sh.c (sh_expand_prologue): Likewise.
4380 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4381 * config/spu/spu.c (spu_expand_prologue): Likewise.
4383 2011-05-25 Richard Guenther <rguenther@suse.de>
4385 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
4386 (gimple_canonical_types_compatible_p): Likewise.
4388 2011-05-25 Jan Hubicka <jh@suse.cz>
4391 * ipa.c (function_and_variable_visibility): Only add to same
4392 comdat group list if DECL_ONE_ONLY.
4394 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
4396 PR rtl-optimization/49014
4397 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
4399 2011-05-25 Jakub Jelinek <jakub@redhat.com>
4402 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4404 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4406 PR rtl-optimization/48757
4407 * ira-build.c (loop_with_eh_edge_p): Rename to
4408 loop_with_complex_edge_p, check edges on complexity, make function
4410 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
4413 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4415 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
4416 force flag_ira_share_save_slots to 0.
4418 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4420 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
4421 (vt_initialize): Set PROLOGUE_BB unconditionally.
4422 Add block comment about CFA_BASE_RTX machinery.
4423 Reset FP_CFA_OFFSET to -1 on all invalid paths.
4424 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
4426 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
4429 * c-parser.c (c_parser_objc_class_instance_variables): More robust
4430 parsing of syntax error in ObjC instance variable lists. In
4431 particular, avoid an infinite loop if there is a stray ']'.
4432 Updated error message.
4434 2011-05-24 Ian Lance Taylor <iant@google.com>
4436 * godump.c (go_define): Don't accept a string immediately after
4439 2011-05-24 Ian Lance Taylor <iant@google.com>
4441 * godump.c (struct godump_container): Add invalid_hash field.
4442 (go_format_type): Return false if type is found in invalid_hash.
4443 (go_output_typedef): Add invalid type to invalid_hash.
4444 (go_finish): Create and delete invalid_hash.
4446 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4448 PR tree-optimization/46728
4449 * tree-ssa-math-opts.c (powi_table): New.
4450 (powi_lookup_cost): New.
4452 (powi_as_mults_1): New.
4453 (powi_as_mults): New.
4454 (gimple_expand_builtin_powi): New.
4455 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
4456 (gate_cse_sincos): Remove sincos/cexp restriction.
4458 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4461 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
4463 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
4464 * mips-tdump.c: Likewise.
4466 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
4469 * config/i386/driver-i386.c (host_detect_local_cpu): Always
4470 add -mno-XXX. Handle FMA.
4472 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4474 PR rtl-optimization/48633
4475 * ira-build.c (loop_with_eh_edge_p): New function.
4476 (mark_loops_for_removal): Use it.
4478 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4480 PR rtl-optimization/48971
4481 * ira.c (setup_pressure_classes): Don't check register move cost
4482 for classes with one registers. Don't add pressure class if there
4483 is a pressure class with the same available hard registers.
4484 Check contains_reg_of_mode. Fix a typo in collecting
4485 temp_hard_regset. Ignore hard registers not belonging to a class.
4487 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
4490 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
4492 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4493 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4495 PR gcov-profile/48845
4496 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
4498 2011-05-24 Richard Guenther <rguenther@suse.de>
4500 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
4501 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
4502 (gimple_types_compatible_p_1): Adjust.
4503 (iterative_hash_canonical_type): Do not bother about complete vs.
4505 (gimple_canonical_types_compatible_p): Likewise.
4507 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4509 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
4511 2011-05-24 Richard Guenther <rguenther@suse.de>
4514 * gimple.c (gimple_register_canonical_type): Revert
4516 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
4517 does not for a tree for the case where it matters. Cache
4518 pointer-type alias-sets.
4520 2011-05-24 Joseph Myers <joseph@codesourcery.com>
4522 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
4523 (OBJS): Remove options.o, opts-common.o and prefix.o.
4524 (OBJS-libcommon-target): New.
4525 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
4526 (BACKEND): Include libcommon-target.a.
4527 (MOSTLYCLEANFILES): Include libcommon-target.a.
4528 (libcommon-target.a): New.
4529 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
4532 2011-05-23 Joseph Myers <joseph@codesourcery.com>
4534 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
4535 parts of output shared with the driver.
4536 * optc-gen.awk: Don't generate parts of output not shared with the
4538 * opth-gen.awk: Remove GCC_DRIVER conditionals.
4539 * doc/options.texi (SourcerInclude): Mention options-save.c.
4540 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
4541 (OBJS): Add options-save.o.
4542 (options-save.c, options-save.o): New.
4543 (options.o): Update dependencies.
4544 (gcc-options.o): Remove.
4545 (mostlyclean): Remove options-save.c.
4547 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4550 * dbxout.c: Include cgraph.h.
4551 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
4552 and without value expr, return NULL if no varpool node exists for
4553 it or if it is not needed.
4554 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
4557 * c-decl.c (start_decl): Convert expr to void_type_node.
4559 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
4561 PR rtl-optimization/48826
4562 * emit-rtl.c (try_split): When splitting a call that is followed
4563 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
4565 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4567 * cfgexpand.c (expand_debug_expr): For unused non-addressable
4568 parameters passed in memory prefer using DECL_INCOMING_RTL over
4569 the pseudos it will be copied into.
4571 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
4574 * config/i386/i386.c (ix86_option_override_internal): Save the
4575 initial options after checking vzeroupper.
4577 2011-05-23 David Li <davidxl@google.com>
4579 PR tree-optimization/48988
4580 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
4581 Initialize has_valid_pred for each pred chain.
4583 2011-05-23 Richard Guenther <rguenther@suse.de>
4585 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
4586 (iterative_hash_gimple_type): Always hash type names.
4588 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4590 * c-typeck.c (build_function_call_vec): Tweak call to
4591 check_function_arguments.
4593 2011-05-23 Richard Guenther <rguenther@suse.de>
4595 PR tree-optimization/49115
4596 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
4597 is not necessarily carried out, do not claim it kills the ref.
4598 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4600 2011-05-23 Richard Guenther <rguenther@suse.de>
4603 * builtins.c (fold_builtin_memory_op): Be less restrictive about
4604 what pointer types we accept for folding.
4606 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4608 * gthr-gnat.c: Remove.
4609 * gthr-gnat.h: Remove.
4610 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
4611 * config/t-freebsd (LIB2ADDEH): Likewise.
4612 * config/t-linux (LIB2ADDEH): Likewise.
4613 * config/t-sol2 (LIB2ADDEH): Likewise.
4614 * config/ia64/t-vms (LIB2ADDEH): Likewise.
4615 * configure.ac (target_thread_file): Remove gnat handling.
4616 * configure: Regenerate.
4617 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
4619 2011-05-23 Tristan Gingold <gingold@adacore.com>
4620 Eric Botcazou <ebotcazou@adacore.com>
4622 * gcov.c (create_file_names): If no object directory is specified,
4623 keep the directory of the file.
4625 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4627 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
4628 * configure: Regenerate.
4630 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4633 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
4634 failed and the comparison has a single bit signed type, use
4635 constm1_rtx instead of const1_rtx for true value.
4636 (do_store_flag): If ops->type is single bit signed type, disable
4637 signel bit test optimization and pass -1 instead of 1 as last
4638 parameter to emit_store_flag_force.
4640 2011-05-23 Tom de Vries <tom@codesourcery.com>
4643 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
4645 (infer_loop_bounds_from_undefined): Use new function.
4647 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
4649 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
4650 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
4651 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
4653 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
4655 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4657 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
4658 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
4661 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
4663 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
4665 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4667 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
4668 UNSPEC_MOVE_PIC pattern.
4670 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4672 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
4673 (sparc-*-rtems*): Likewise.
4674 (sparc64-*-elf*): Likewise.
4675 (sparc64-*-rtems*): Likewise.
4676 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
4677 * config/sparc/t-crtin: New file.
4678 * config/sparc/t-sol2 (crti.o): Delete rule.
4680 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
4681 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
4682 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
4683 (ENDFILE_SPEC): Add crtn.o.
4685 2011-05-22 Tom de Vries <tom@codesourcery.com>
4688 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
4689 CODE_CONTAINS_STRUCT (TS_COMMON).
4691 2011-05-22 Jakub Jelinek <jakub@redhat.com>
4694 * expmed.c (extract_fixed_bit_field): Test whether target can be used
4695 only after deciding which mode to use.
4697 2011-05-22 Tom de Vries <tom@codesourcery.com>
4700 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
4701 for call to get_shiftadd_cost.
4703 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
4706 * config/i386/cpuid.h (bit_MMXEXT): New define.
4708 2011-05-22 Nick Clifton <nickc@redhat.com>
4710 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
4711 initialisation of non-existant args[2] element. Use args[] array
4712 not arg[] array to pass arguments to build_function_type_list.
4714 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
4716 PR tree-optimization/49087
4717 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
4719 2011-05-21 Jason Merrill <jason@redhat.com>
4722 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
4723 static storage duration.
4725 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
4727 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
4730 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
4732 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
4733 false if there are call-saved registers here...
4734 (sparc_can_use_return_insn_p): ...but here instead.
4735 (save_or_restore_regs): Fix thinko.
4736 (sparc_expand_prologue): Use current_function_is_leaf.
4737 (sparc_frame_pointer_required): Likewise.
4739 2011-05-21 Nick Clifton <nickc@redhat.com>
4742 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
4744 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
4746 * gengtype.c (walk_type): Implemented "atomic" GTY option.
4747 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
4749 2011-05-21 Joseph Myers <joseph@codesourcery.com>
4751 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
4752 * optc-gen.awk: Move common code to opt-read.awk.
4753 * opth-gen.awk: Likewise.
4754 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
4756 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
4758 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
4760 2011-05-20 Tom de Vries <tom@codesourcery.com>
4763 * tree-ssa-loop-ivopts.c: Include expmed.h.
4764 (get_shiftadd_cost): New function.
4765 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
4767 2011-05-20 Jakub Jelinek <jakub@redhat.com>
4770 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
4771 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
4773 2011-05-20 Joseph Myers <joseph@codesourcery.com>
4775 * Makefile.in: Update comment referring to $(OBJS-common).
4777 2011-05-20 Ian Lance Taylor <iant@google.com>
4779 * godump.c (go_output_typedef): Put enum constants in the macro
4780 hash table to avoid duplicate Go const definitions.
4782 2011-05-20 Joseph Myers <joseph@codesourcery.com>
4784 * Makefile.in (LIBDEPS): Add libcommon.a.
4786 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
4787 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
4788 pretty-print.o and version.o.
4789 (OBJS-libcommon): New.
4790 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
4791 (BACKEND): Add libcommon.a.
4792 (MOSTLYCLEANFILES): Likewise.
4794 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
4795 (cpp$(exeext)): Likewise.
4796 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
4797 pretty-print.o and input.o.
4798 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
4799 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
4801 (mips-tfile): Don't explicitly use version.o.
4802 (mips-tdump): Likewise.
4803 (gcov.o): Depend on $(DIAGNOSTIC_H).
4804 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
4805 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
4806 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
4807 * gcov-dump.c: Include intl.h and diagnostic.h.
4808 (main): Initialize diagnostics.
4809 * gcov.c: Include diagnostic.h.
4811 (main): Initialize diagnostics.
4812 * lto-wrapper.c: Include diagnostic.h.
4813 (main): Initialize diagnostics.
4815 2011-05-20 Michael Matz <matz@suse.de>
4817 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
4819 2011-05-20 Michael Matz <matz@suse.de>
4820 Richard Guenther <rguenther@suse.de>
4822 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
4823 use lto_streamer_cache_append directly instead of returning a VEC.
4824 (preload_common_node): Remove.
4825 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
4827 (lto_streamer_cache_create): Call lto_preload_common_nodes.
4829 2011-05-20 Richard Guenther <rguenther@suse.de>
4831 PR tree-optimization/49079
4832 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
4833 MEM_REFs correctly for the trailing array access detection.
4834 Special case constants the same way as decls for overall size
4837 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
4839 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
4842 2011-05-20 Jakub Jelinek <jakub@redhat.com>
4844 PR tree-optimization/49073
4845 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
4846 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
4847 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
4849 2011-05-20 Richard Guenther <rguenther@suse.de>
4852 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
4853 of pointer types the same way the middle-end does.
4855 2011-05-20 Richard Guenther <rguenther@suse.de>
4857 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
4858 or pointer-to chains. Delay all fixup to uniquify_nodes.
4860 2011-05-19 Quentin Neill <quentin.neill@amd.com>
4862 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
4863 (fma4_fmaddsub): Likewise
4865 2011-05-19 Jan Hubicka <jh@suse.cz>
4867 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
4868 (GIMPLE_TYPE_PAIR_SIZE): New macro.
4869 (type_pair_cache): New static var.
4870 (lookup_type_pair): Use fixed sized custom hash; make inline.
4871 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
4872 calls of lookup_type_pair.
4873 (print_gimple_types_stats): Remove cache stats.
4874 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
4877 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
4879 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
4880 when TARGET_RDRND is active.
4881 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
4882 Generate dummy SImode target register when target is NULL.
4884 2011-05-19 Joseph Myers <joseph@codesourcery.com>
4886 * config/arm/arm-fpus.def: New.
4887 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
4889 * config/arm/arm-tables.opt: Regenerate.
4890 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
4891 (arm_option_override): Don't decode FPU name to string here.
4892 * config/arm/arm.opt (mfpu=): Use Enum.
4893 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
4894 Update dependencies.
4896 2011-05-19 Joseph Myers <joseph@codesourcery.com>
4898 * collect2.c: Include diagnostic.h.
4899 (fatal_perror, fatal, error, fancy_abort): Remove.
4900 (main): Set progname. Call xmalloc_set_program_name and
4901 diagnostic_initialize.
4902 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
4903 scan_libraries, resolve_lib_name): Call fatal_error instead of
4904 fatal and fatal_perror.
4905 * collect2.h (error, fatal, fatal_perror): Don't declare.
4906 * tlink.c: Include diagnostic-core.h.
4907 (recompile_files): Call fatal_error instead of fatal_perror.
4908 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
4909 pretty-print.o and input.o.
4910 (collect2.o, tlink.o): Update dependencies.
4912 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4914 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
4916 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4919 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
4920 COMDAT group syntax, both SPARC and x86 variants.
4921 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
4922 * configure: Regenerate.
4923 * config/sol2.h (TARGET_SOLARIS): Define.
4924 (PUSHSECTION_FORMAT): Remove.
4925 (SECTION_NAME_FORMAT): Define.
4926 * config/sol2.c: Include hashtab.h.
4927 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
4928 expansion, using SECTION_NAME_FORMAT.
4929 (solaris_comdat_htab): New variable.
4930 (struct comdat_entry): Define.
4931 (comdat_hash): New function.
4932 (comdat_eq): New function.
4933 (solaris_elf_asm_comdat_section): New function.
4934 (solaris_define_comdat_signature): New function.
4935 (solaris_code_end): New function.
4936 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
4937 (solaris_code_end): Declare.
4938 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
4939 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
4941 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
4942 Remove ATTRIBUTE_UNUSED.
4943 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
4944 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
4945 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
4946 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
4947 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
4948 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
4949 (PUSHSECTION_FORMAT): Remove.
4950 (SECTION_NAME_FORMAT): Redefine.
4952 2011-05-19 Kai Tietz <ktietz@redhat.com>
4954 * tree-cfg.c (verify_gimple_assign_binary): Barf on
4955 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
4956 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
4958 2011-05-19 Anatoly Sokolov <aesok@post.ru>
4959 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4961 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
4963 2011-05-19 Richard Guenther <rguenther@suse.de>
4966 * tree-object-size.c (addr_object_size): If the pointed-to
4967 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
4969 2011-05-19 Richard Guenther <rguenther@suse.de>
4971 * gimple.c (gimple_types_compatible_p_1): Compare names of
4972 the types themselves.
4973 (iterative_hash_gimple_type): And hash them that way.
4974 (gimple_register_type_1): If we register a main variant properly
4975 initialize the leader to ourselves.
4977 2011-05-19 Tom de Vries <tom@codesourcery.com>
4980 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
4981 get_loop_invariant_expr_id.
4982 (get_loop_invariant_expr_id): Use get_expr_id.
4983 (parm_decl_cost): New function.
4984 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
4985 Improve bound cost estimation. Use different inv_expr_id for elim and
4988 2011-05-19 Tom de Vries <tom@codesourcery.com>
4991 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
4992 cost_base.cost == 0.
4994 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
4997 * config/i386/sse.md
4998 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
5001 2011-05-18 Jakub Jelinek <jakub@redhat.com>
5003 PR tree-optimization/49039
5004 * tree-vrp.c (extract_range_from_binary_expr): For
5005 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
5006 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
5008 2011-05-18 Tom de Vries <tom@codesourcery.com>
5011 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
5013 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
5015 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
5016 (*tls_global_dynamic_64): Ditto.
5017 (*tls_local_dynamic_base_32_gnu): Ditto.
5018 (*tls_local_dynamic_base_64): Ditto.
5019 (tls_initial_exec_64_sun): Ditto.
5021 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
5023 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
5024 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
5026 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
5027 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
5028 * config/bfin/bfin.c (bfin_cpus): Add bf592.
5029 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5030 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
5031 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
5032 * config/bfin/elf.h (LIB_SPEC): Add bf592.
5034 2011-05-18 Joseph Myers <joseph@codesourcery.com>
5036 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
5037 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
5038 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
5039 target_thread_pointer, arm_structure_size_boundary, struct
5040 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
5041 struct abi_name, arm_all_abis): Remove.
5042 (arm_option_override) Don't process most enumerated option values here.
5043 Don't process target_fpe_name here. Work with integer not string for
5044 structure size boundary; use separate diagnostics for each case.
5045 * config/arm/arm.h (enum float_abi_type, enum
5046 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
5048 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
5049 arm_structure_size_boundary): Remove.
5050 * config/arm/arm.opt (mabi=): Use Enum and Init.
5051 (arm_abi_type): New Enum and EnumValue entries.
5052 (mfloat-abi=): Use Enum and Init.
5053 (float_abi_type): New Enum and EnumValue entries.
5054 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
5055 (mfp16-format=): Use Enum and Init.
5056 (arm_fp16_format_type): New Enum and EnumValue entries.
5057 (mstructure-size-boundary=): Use UInteger and Init.
5058 (mtp=): Use Enum and Init.
5059 (arm_tp_type): New Enum and EnumValue entries.
5061 2011-05-18 Richard Guenther <rguenther@suse.de>
5063 PR tree-optimization/49018
5064 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
5065 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
5066 gimple_has_side_effects.
5068 2011-05-18 Richard Guenther <rguenther@suse.de>
5070 * gimple.c (gimple_register_type_1): New function, split out from ...
5071 (gimple_register_type): ... here. Avoid infinite recursion.
5073 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
5075 PR tree-optimization/41881
5076 * tree-vectorizer.h (struct _loop_vec_info): Add new field
5077 reduction_chains along with a macro for its access.
5078 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
5079 (destroy_loop_vec_info): Free reduction chains.
5080 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
5081 (vect_is_slp_reduction): New function.
5082 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
5083 (vect_create_epilog_for_reduction): Support SLP reduction chains.
5084 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
5085 definition types for reduction chains.
5086 (vect_supported_load_permutation_p): Don't allow permutations for
5088 (vect_analyze_slp_instance): Support reduction chains.
5089 (vect_analyze_slp): Try to build SLP instance from reduction chains.
5090 (vect_get_constant_vectors): Handle reduction chains.
5091 (vect_schedule_slp_instance): Mark the first statement of the
5092 reduction chain as reduction.
5094 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
5096 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
5097 names for group elements access.
5098 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
5099 reduction chains as well. Remove data reference and interleaving
5100 related words from the fields names.
5101 * tree-vect-loop.c (vect_transform_loop): Use new names for group
5103 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
5104 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
5105 vect_update_interleaving_chain, vect_same_range_drs,
5106 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
5107 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
5108 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
5109 vect_analyze_group_access, vect_analyze_data_ref_access,
5110 vect_create_data_ref_ptr, vect_transform_strided_load,
5111 vect_record_strided_load_vectors): Likewise.
5112 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
5113 vect_model_load_cost, vectorizable_store, vectorizable_load,
5114 vect_remove_stores, new_stmt_vec_info): Likewise.
5115 * tree-vect-slp.c (vect_build_slp_tree,
5116 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
5118 2011-05-18 Richard Guenther <rguenther@suse.de>
5121 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
5122 operand verification.
5123 (verify_gimple_assign_binary): Likewise.
5124 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
5125 to non-1-precision BOOLEAN_TYPEs.
5127 2011-05-18 Tom de Vries <tom@codesourcery.com>
5130 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
5132 2011-05-18 Jakub Jelinek <jakub@redhat.com>
5134 PR tree-optimization/49000
5135 * tree-ssa.c (execute_update_addresses_taken): Call
5136 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
5137 be rewritten and decl has been marked for renaming, reset
5140 2011-05-17 Joseph Myers <joseph@codesourcery.com>
5142 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
5143 enum_opts_set when testing if attributes have set -mfpmath=.
5145 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
5147 * config/mips/mips.c (mips_handle_option): Remove unused variable.
5149 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
5151 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
5153 * tree-inline.c (maybe_inline_call_in_expr): Initialize
5154 id.transform_lang_insert_block with NULL.
5156 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
5158 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
5159 (output_fp_compare): Change args 3 and 4 to bool.
5160 (ix86_expand_call): Change arg 6 to bool.
5161 (ix86_attr_length_immediate_default): Change arg 2 to bool.
5162 (ix86_attr_length_vex_default): Change arg 3 to bool.
5163 * config/i386/i386.md: Update all uses.
5164 * config/i386/i386.c: Ditto.
5165 (ix86_flags_dependent): Change return type to bool.
5167 2011-05-17 Richard Guenther <rguenther@suse.de>
5169 * gimple.c (type_hash_pair_compare): Fix comparison.
5171 2011-05-17 Richard Guenther <rguenther@suse.de>
5173 * gimple.c (iterative_hash_gimple_type): Simplify singleton
5174 case some more, fix final hash value of the non-singleton case.
5176 2011-05-17 Richard Guenther <rguenther@suse.de>
5180 2011-05-16 Richard Guenther <rguenther@suse.de>
5182 * gimple.c (gimple_types_compatible_p_1): Use names of the
5183 type itself, not its main variant.
5184 (iterative_hash_gimple_type): Likewise.
5186 2011-05-17 Richard Guenther <rguenther@suse.de>
5188 * gimple.c (gimple_register_canonical_type): Use the main-variant
5189 leader for computing the canonical type.
5191 2011-05-17 Nick Clifton <nickc@redhat.com>
5193 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
5196 * config/rx/rx.md: Add peephole to remove redundant extensions
5198 (bitset_in_memory): Use rx_restricted_mem_operand.
5199 (bitinvert_in_memory): Likewise.
5200 (bitclr_in_memory): Likewise.
5202 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
5203 Nick Clifton <nickc@redhat.com>
5205 * config/rx/rx.md: Add peepholes to match a register move followed
5206 by a comparison of the moved register. Replace these with an
5207 addition of zero that does both actions in one instruction.
5209 2011-05-17 Jakub Jelinek <jakub@redhat.com>
5212 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
5213 predicate to allow CONST_INT.
5214 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
5216 2011-05-16 Joseph Myers <joseph@codesourcery.com>
5218 * opts-common.c (opt_enum_arg_to_value): New.
5219 * opts.h (opt_enum_arg_to_value): Declare.
5220 * config/i386/i386.opt (fpmath): Remove.
5221 (mfpmath=): Use Enum, Init and Save.
5222 (fpmath_unit): New Enum and EnumValue entries.
5223 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
5224 name for function fpmath state.
5225 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
5226 * config/i386/i386.c: Include diagnostic.h.
5227 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
5228 (ix86_target_string): Take enum fpmath_unit value instead of string.
5229 (ix86_debug_options): Update call to ix86_target_string.
5230 (ix86_option_override_internal): Don't process fpmath strings here.
5231 (x86_function_specific_save, ix86_function_specific_restore):
5232 Don't handle fpmath state specially.
5233 (ix86_function_specific_print): Pass fpmath state to
5234 ix86_target_string instead of printing in this function.
5235 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
5236 Handle enum attributes.
5237 (IX86_ATTR_ENUM, ix86_opt_enum): New.
5238 (ix86_valid_target_attribute_tree): Update option_strings
5239 handling. Handle fpmath as enum option.
5240 (ix86_can_inline_p): Update field names for function fpmath state.
5241 (ix86_expand_builtin): Update call to ix86_target_string.
5242 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
5243 (ix86_fpmath): Remove.
5244 * config/i386/t-i386 (i386.o): Update dependencies.
5246 2011-05-16 Joseph Myers <joseph@codesourcery.com>
5248 PR preprocessor/48677
5249 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
5250 from decoded_options[0], not from itself.
5252 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
5254 * config/i386/constraints.md (z): New constraint.
5255 * config/i386/i386.c (c): New mode attribute.
5256 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
5257 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
5258 constraint for operand 0.
5259 (*call_vzeroupper): Ditto.
5260 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
5261 (*call_rex64_ms_sysv_vzeroupper): Ditto.
5262 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
5263 Use "lzm" constraint for operand 0.
5264 (*call_pop_vzeroupper): Ditto.
5265 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
5266 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
5267 constraint for operand 0.
5268 (*sibcall_vzeroupper): Ditto.
5269 (*sibcall_rex64_ms_sysv): Ditto.
5270 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
5271 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
5272 *sibcall_pop_1. Use "Uz" constraint for operand 0.
5273 (*sibcall_pop_vzeroupper): Ditto.
5274 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
5275 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
5276 mode iterator. Use "<c>zm" constraint for operand 1.
5277 (*call_value_vzeroupper): Ditto.
5278 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
5280 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
5281 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
5282 *call_value_pop_1. Use "lzm" constraint for operand 1.
5283 (*call_value_pop_vzeroupper): Ditto.
5284 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
5285 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
5286 mode iterator. Use "Uz" constraint for operand 1.
5287 (*sibcall_value_vzeroupper): Ditto.
5288 (*sibcall_value_rex64_ms_sysv): Ditto.
5289 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
5290 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
5291 constraint for operand 1.
5292 (*sibcall_value_pop_vzeroupper): Ditto.
5293 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
5294 and "z" constraint for operand 2.
5295 (*tls_global_dynamic_32_gnu): Ditto.
5296 (*tls_local_dynamic_base_32_gnu): Ditto.
5297 (*tls_local_dynamic_base_64): Ditto.
5298 (*tls_local_dynamic_32_once): Ditto.
5299 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
5301 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
5303 2011-05-16 Richard Guenther <rguenther@suse.de>
5305 * gimple.c (gimple_types_compatible_p_1): Use names of the
5306 type itself, not its main variant.
5307 (iterative_hash_gimple_type): Likewise.
5309 2011-05-16 Richard Guenther <rguenther@suse.de>
5311 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
5312 always visit pointer target and function result and argument types.
5314 2011-05-16 Jason Merrill <jason@redhat.com>
5317 * tree-inline.c (copy_statement_list): Put back recursion.
5319 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
5323 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
5324 * config/avr/avr.md ("*ior<mode>qi.byte0",
5325 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
5327 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
5330 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
5331 register is needed for a function argument.
5333 2011-05-16 Richard Guenther <rguenther@suse.de>
5335 * gimple.c (struct type_hash_pair): New type.
5336 (type_hash_pair_compare): New function.
5337 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
5339 2011-05-16 Revital Eres <revital.eres@linaro.org>
5341 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
5343 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
5345 * config/i386/i386.md (floating point move splitters): Fix
5346 usage of standard_80387_constant_p.
5347 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
5349 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
5351 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
5353 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
5355 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
5356 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
5357 (tree_ssa_lim_finalize): Likewise.
5359 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
5361 * config/i386/constraint.md (Yd, Yx): New register constraints.
5362 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
5363 Yd conditional register constraint.
5364 (*movtf_internal): Use standard_sse_constant_opcode.
5365 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
5366 Yx conditional register constraint.
5367 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
5368 Yd conditional register constraint. Use standard_sse_constant_p to
5369 check for valid SSE constants and call standard_sse_constant_opcode to
5371 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
5372 constants and call standard_sse_constant_opcode to output SSE insn.
5373 * config/i386/i386.c (ix86_option_ovverride_internal): Set
5374 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
5375 optimize_size is set.
5376 (standard_sse_constant_opcode): Output conditional AVX insn templates.
5378 2011-05-14 Tobias Burnus <burnus@net-b.de>
5380 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
5382 2011-05-13 Martin Jambor <mjambor@suse.cz>
5384 * ipa-prop.c (ipa_cst_from_jfunc): New function.
5385 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
5386 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
5387 (evaluate_conditions_for_ipcp_clone): Removed.
5388 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
5389 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
5390 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
5392 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
5394 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
5395 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
5396 lieu of MAY_HAVE_DEBUG_STMTS.
5397 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
5398 debug statements if !MAY_HAVE_DEBUG_STMTS.
5400 2011-05-13 Martin Thuresson <martint@google.com>
5402 PR gcov-profile/47793
5403 * libgcov.c (gcov_exit): Support relative profile paths.
5404 * doc/invoke.texi (-fprofile-dir): Update for above change.
5406 2011-05-13 Richard Guenther <rguenther@suse.de>
5408 * gimple.c (gimple_canonical_types_compatible_p): Do not use
5409 type-pair caching, do not compare hashes.
5411 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
5414 * tree-cfg.c (edge_to_cases_cleanup): Return true.
5415 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
5417 2011-05-13 Kai Tietz <ktietz@redhat.com>
5419 * gimplify.c (gimplify_expr): Make sure operand is boolified.
5420 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
5421 compatible type for TRUTH_NOT_EXPR.
5423 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
5425 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
5426 (ix86_hard_regno_mode_ok): Change return value to bool. Use
5427 can_create_pseudo_p ().
5429 2011-05-13 Richard Guenther <rguenther@suse.de>
5432 * gimple.c (iterative_hash_gimple_type): Revert change in
5433 pointer target and function result and argument hashing.
5435 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
5437 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
5438 (*movxf_internal_nointeger): Ditto.
5439 (*movdf_internal_rex64): Ditto.
5440 (*movdf_internal): Ditto.
5441 (*movdf_internal_nointeger): Ditto.
5442 (*movsf_internal): Ditto.
5443 (sincos splitters): Use can_create_pseudo ().
5445 2011-05-13 Joseph Myers <joseph@codesourcery.com>
5447 * config/i386/i386-opts.h: New.
5448 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
5449 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
5450 ix86_section_threshold): Remove.
5451 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
5452 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
5454 (ix86_option_override_internal): Don't decode strings for options
5455 other than -march=, -mtune= and -mfpmath=. Don't allow for
5456 __attribute__ uses in remaining diagnostics for options with
5457 string arguments. Don't check for integer arguments being negative.
5458 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
5459 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
5460 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
5461 ix86_branch_cost, ix86_section_threshold): Remove.
5462 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
5464 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
5466 (masm=): Use Enum and Init.
5467 (asm_dialect): New Enum and EnumValue entries.
5468 (mbranch-cost=): Use UInteger.
5469 (mlarge-data-threshold=): Use UInteger and Init.
5470 (mcmodel=): Use Enum and Init.
5471 (cmodel): New Enum and EnumValue entries.
5472 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
5473 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
5474 mregparm=): Use UInteger.
5475 (mstringop-strategy=): Use Enum and Init.
5476 (stringop_alg): New Enum and EnumValue entries.
5477 (mtls-dialect=): Use Enum and Init.
5478 (tls_dialect): New Enum and EnumValue entries.
5479 (mabi=): Use Enum and Init.
5480 (calling_abi): New Enum and EnumValue entries.
5481 (mveclibabi=): Use Enum and Init.
5482 (ix86_veclibabi): New Enum and EnumValue entries.
5484 2011-05-13 Nick Clifton <nickc@redhat.com>
5486 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
5487 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
5489 2011-05-13 Kai Tietz <ktietz@redhat.com>
5492 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
5493 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
5494 (gimple_boolify): Check for cast for boolean_type_node instead for
5497 2011-05-13 Richard Guenther <rguenther@suse.de>
5499 PR tree-optimization/48172
5500 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
5501 multiplying by number of iterations for equal step.
5502 (vect_create_cond_for_alias_checks): Likewise.
5504 2011-05-13 Andreas Schwab <schwab@redhat.com>
5506 * configure.ac: Use AS_HELP_STRING throughout.
5507 * configure: Regenerate.
5509 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
5511 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
5512 (ix86_emit_restore_regs_using_mov): Likewise.
5513 (ix86_emit_restore_sse_regs_using_mov): Likewise.
5515 2011-05-12 Anatoly Sokolov <aesok@post.ru>
5517 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
5518 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
5519 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
5520 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
5521 RTX_OK_FOR_OLO10_P): ...here.
5522 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
5525 2011-05-12 Kai Tietz <ktietz@redhat.com>
5527 * gimplify.c (gimple_boolify): Re-boolify expression
5528 arguments even if expression type is of kind BOOLEAN_TYPE.
5529 (gimplify_boolean_expr): Removed.
5530 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
5531 and XOR. Additional take care that we keep expression's type.
5532 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
5533 of TRUTH_AND|OR|XOR_EXPR.
5535 2011-05-12 Jakub Jelinek <jakub@redhat.com>
5537 PR tree-optimization/48975
5538 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
5539 on all bbs here and free and clear ifc_bbs at the end.
5541 2011-05-12 Richard Guenther <rguenther@suse.de>
5543 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
5544 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
5545 until after simple checks.
5546 (gimple_types_compatible_p): Likewise.
5547 (iterative_hash_gimple_type): Always hash pointer targets
5548 and function return and argument types.
5549 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
5550 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
5551 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
5552 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
5553 completely in the simple compare section.
5554 (gimple_register_canonical_type): Query the cache again after
5557 2011-05-12 Richard Guenther <rguenther@suse.de>
5559 PR tree-optimization/48172
5560 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
5561 the number of iterations from the segment size calculation.
5562 (vect_create_cond_for_alias_checks): Adjust.
5564 2011-05-12 Jakub Jelinek <jakub@redhat.com>
5567 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
5568 if validate_subreg fails.
5570 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
5572 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
5573 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
5576 2011-05-12 DJ Delorie <dj@redhat.com>
5578 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
5579 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
5580 created builtin into rx_builtins array.
5581 (rx_builtin_decl): New function.
5582 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
5584 2011-05-12 DJ Delorie <dj@redhat.com>
5585 Nick Clifton <nickc@redhat.com>
5587 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
5588 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
5589 (rx_is_legitimate_address): Add pre-decrement and post-increment
5590 addressing in HImode and QImode. Fix test for out of range
5592 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
5593 (rx_align_for_label): Test label before extracting its usage count.
5594 (rx_adjust_insn_lengths): Fix selection of insn codes.
5595 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5597 2011-05-11 Jason Merrill <jason@redhat.com>
5599 * tree.c (type_hash_canon): Use struct tree_type_non_common.
5601 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
5603 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
5604 reindent the subsequent block.
5606 2011-05-11 Satoru Takabayashi <satorux@google.com>
5607 Paul Pluzhnikov <ppluzhnikov@google.com>
5609 * doc/install.texi (Configuration): Document --with-linker-hash-style.
5610 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
5611 * config.in: Add LINKER_HASH_STYLE.
5612 * configure.ac: Add --with-linker-hash-style.
5613 * configure: Regenerate.
5615 2011-05-11 Richard Guenther <rguenther@suse.de>
5618 * gimple.c (iterative_hash_canonical_type): Fix typo.
5620 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
5622 * config/i386/i386.c (legitimize_tls_address)
5623 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5624 expanders directly for TARGET_GNU2_TLS. Determine pic and
5625 __tls_get_addr symbol reference here. Update call to
5626 gen_tls_global_dynamic_{32,64} for added arguments.
5627 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5628 expanders directly for TARGET_GNU2_TLS. Determine
5629 __tls_get_addr symbol reference here. Update call to
5630 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
5631 unique UNSPEC REG_EQUIV to libcall block.
5632 (ix86_tls_get_addr): Declare static.
5633 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
5634 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
5635 Do not determine pic and __tls_get_addr symbol reference here. Do not
5636 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
5637 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
5638 (tls_global_dynamic_64): Add operand 2. Do not determine
5639 __tls_get_addr symbol reference here. Do not call
5640 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
5641 (tls_local_dynamic_base64): Ditto for operand 1.
5643 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
5645 * function.c (expand_function_start): Initialize stack_check_probe_note
5646 only if the generic stack checking mechanism is used.
5648 2011-05-11 Richard Guenther <rguenther@suse.de>
5650 PR tree-optimization/15256
5651 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
5652 (A & B) | C, combine (A op CST1) op CST2.
5653 (tree_ssa_forward_propagate_single_use_vars): Only bother to
5654 visit assigns that have uses.
5656 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
5658 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
5659 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
5660 (unpack_ts_type_common_value_fields): ...this. Update comment.
5661 (unpack_value_fields): Adjust for renaming.
5662 (lto_input_ts_type_tree_pointers): Split into...
5663 (lto_input_ts_type_common_tree_pointer): ...this and...
5664 (lto_input_ts_type_non_common_tree_pointers): ...this.
5665 (lto_input_tree_pointers): Adjust for above split.
5666 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
5667 (pack_ts_type_common_value_fields): ...this. Update comment.
5668 (lto_output_ts_type_tree_pointers): Split into...
5669 (lto_output_ts_type_common_tree_pointers): ...this and...
5670 (lto_output_ts_type_non_common_tree_pointers): ...this.
5671 (lto_output_tree_pointers): Adjust for above split.
5672 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
5673 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
5674 * stor-layout.c (vector_type_mode): Adjust location of mode field.
5675 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
5677 (struct tree_type): Split into...
5678 (struct tree_type_common: ...this and...
5679 (struct tree_type_with_lang_specific): ...this and...
5680 (struct tree_type_non_common): ...this. Adjust accessor macros
5682 (TYPE_VALUES_RAW): Define.
5683 (union tree_node): Update for above changes.
5684 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
5686 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
5687 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
5688 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
5689 * treestructu.def (TS_TYPE): Remove.
5690 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
5693 2011-05-11 Jakub Jelinek <jakub@redhat.com>
5696 * tree-ssa.c (reset_debug_uses): New function.
5697 * tree-flow.h (reset_debug_uses): New prototype.
5698 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
5699 * tree-loop-distribution.c (generate_loops_for_partition): Call
5700 reset_debug_uses on the stmts that will be removed. Keep around
5701 all debug stmts, don't count them as bits in partition bitmap.
5702 (generate_builtin): Don't count debug stmts or labels as bits in
5705 2011-05-11 Richard Guenther <rguenther@suse.de>
5707 * gimple.c (gimple_type_hash_1): Merge with ...
5708 (gimple_type_hash): ... this.
5709 (gtc_visit): Remove mode parameter and simplify accordingly.
5710 (gimple_types_compatible_p_1): Likewise.
5711 (gimple_types_compatible_p): Likewise.
5712 (iterative_hash_gimple_type): Likewise.
5714 (gimple_type_eq): Adjust.
5716 2011-05-11 Revital Eres <revital.eres@linaro.org>
5718 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
5719 enters the branch create an anti edge in the opposite direction
5720 to prevent the creation of reg-moves.
5721 * modulo-sched.c: Adjust comment to reflect the fact we are
5722 scheduling closing branch.
5723 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
5724 (stage_count): New field in struct partial_schedule.
5725 (calculate_stage_count): New function.
5726 (normalize_sched_times): Rename to reset_sched_times and handle
5727 incrementing the sched time of the nodes by a constant value
5728 passed as parameter.
5729 (duplicate_insns_of_cycles): Skip closing branch.
5730 (sms_schedule_by_order): Schedule closing branch.
5731 (ps_insn_find_column): Handle closing branch.
5732 (sms_schedule): Call reset_sched_times and adjust the code to
5733 support scheduling of the closing branch.
5734 (ps_insert_empty_row): Update calls to normalize_sched_times
5735 and rotate_partial_schedule functions.
5737 2011-05-11 Richard Guenther <rguenther@suse.de>
5740 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
5742 2011-05-11 Joseph Myers <joseph@codesourcery.com>
5744 * opts.c (finish_options): Move warning settings from process_options.
5745 * toplev.c (process_options): Move warning settings to finish_options.
5747 2011-05-11 Richard Guenther <rguenther@suse.de>
5749 PR tree-optimization/18041
5750 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
5751 (simplify_bitwise_binary): ... this. Handle operand conversions
5752 by applying them to the result instead.
5753 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
5755 2011-05-11 Richard Guenther <rguenther@suse.de>
5757 * gimple.c (gimple_canonical_types_compatible_p): Split out
5758 from gimple_types_compatible_p and friends. Do not recurse
5759 to pointed-to types.
5760 (gimple_canonical_type_eq): Use it.
5761 (iterative_hash_canonical_type): Split out from
5762 iterative_hash_gimple_type and friends. Do not recurse
5763 to pointed-to types.
5764 (gimple_canonical_type_hash): Use it, allocate the hash here.
5766 2011-05-11 Revital Eres <revital.eres@linaro.org>
5768 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
5771 2011-05-11 Revital Eres <revital.eres@linaro.org>
5773 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
5774 instead of PREV_INSN.
5776 2011-05-11 Revital Eres <revital.eres@linaro.org>
5778 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
5779 * loop-doloop.c (doloop_condition_get): Likewise.
5780 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
5782 * config/arm/arm.md (*addsi3_compare0): Remove "*".
5784 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5786 * tree.def (CASE_LABEL_EXPR): Add an operand.
5787 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
5789 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5791 * c-decl.c (c_override_global_bindings_to_false): Remove.
5792 (global_bindings_p): Don't check
5793 c_override_global_bindings_to_false.
5794 * c-tree.h (c_override_global_bindings_to_false): Remove.
5795 * c-typeck.c (composite_type): Don't set
5796 c_override_global_bindings_to_false.
5798 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5800 PR target/48857, 48495
5801 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
5803 (VSX_MOVE_MODE): Ditto.
5804 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
5805 VSX vector types. Add V2DImode.
5806 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
5807 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
5808 (MODES_TIEABLE_P): Ditto.
5810 * config/rs6000/rs6000.c (rs6000_emit_move): Use
5811 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
5813 (init_cumulative_args): Ditto.
5814 (rs6000_function_arg_boundary): Ditto.
5815 (rs6000_function_arg_advance_1): Ditto.
5816 (rs6000_function_arg): Ditto.
5817 (rs6000_function_ok_for_sibcall): Ditto.
5818 (emit_frame_save): Ditto.
5819 (rs6000_function_value): Ditto.
5820 (rs6000_libcall_value): Ditto.
5822 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5824 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
5825 i386/darwin-lib.h to $libgcc_tm_file.
5826 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
5828 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5830 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
5832 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5834 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
5835 * config/rs6000/rs6000-tables.opt: New file (generated).
5836 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
5837 rs6000/rs6000-tables.opt to extra_options.
5838 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
5839 * config/rs6000/rs6000.c (rs6000_select): Remove.
5840 (processor_target_table): Move contents to rs6000-cpus.def.
5841 (darwin_rs6000_override_options): Check
5842 global_options_set.x_rs6000_cpu_index instead of
5843 rs6000_select[1].string.
5844 (rs6000_option_override_internal): Likewise.
5845 (rs6000_handle_option): Don't assert that global structures are in
5846 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
5847 (rs6000_default_cpu): New variable.
5848 (rs6000_file_start): Set it instead of local default_cpu. Check
5849 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
5850 global_options_set.x_rs6000_tune_index instead of rs6000_select.
5851 (rs6000_darwin_file_start): Check rs6000_default_cpu and
5852 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
5853 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
5854 rs6000_select): Remove.
5855 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
5857 (mcpu=, mtune=): Use Var, Init, Enum and Save.
5858 * config/rs6000/t-rs6000
5859 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
5860 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5861 global_options_set.x_rs6000_cpu_index instead of
5862 rs6000_select[1].string.
5863 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5864 global_options_set.x_rs6000_cpu_index instead of
5865 rs6000_select[1].string.
5867 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5869 * config.gcc (libgcc_tm_file): Define instead of including files
5870 from ../../libgcc/config/ in tm_file.
5871 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
5872 * configure: Regenerate.
5873 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
5874 libgcc_tm.h, cs-libgcc_tm.h): New.
5875 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
5876 (clean): Remove libgcc_tm.h.
5877 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
5878 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
5879 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
5881 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
5884 * config/avr/avr.c (avr_ret_register): Return unsigned int
5886 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
5887 it to avr_libcall_value.
5888 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
5890 (avr_expand_binop_builtin): Ditto.
5891 (avr_expand_unop_builtin): Ditto.
5893 2011-05-10 DJ Delorie <dj@redhat.com>
5895 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
5896 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
5897 * config/rx/rx.c (rx_align_for_label): Add label and
5898 uses_threshold parameters. Do not align when the label is not
5900 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
5902 2011-05-10 Richard Guenther <rguenther@suse.de>
5904 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
5905 a series of conversions and apply foldings similar to what
5907 (tree_ssa_forward_propagate_single_use_vars): Call it.
5909 2011-05-10 Jakub Jelinek <jakub@redhat.com>
5911 PR tree-optimization/48611
5912 PR tree-optimization/48794
5913 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
5914 referenced from RESX or EH_DISPATCH arguments.
5917 * dfp.c (decimal_to_decnumber): Handle conversion from
5918 dconst{1,2,m1,half}.
5920 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5922 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
5923 for !flag_prefer_avx128.
5924 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
5926 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
5928 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
5929 (fold_ternary_loc): Use expr_location_or.
5931 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
5934 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
5935 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
5936 Pmode and mem_mode is not VOIDmode.
5938 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
5940 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
5941 TYPE_QUAL_RESTRICT): Convert to enum.
5943 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5945 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
5946 (const_pow2_1_to_8_operand): Ditto.
5947 (const_pow2_1_to_128_operand): Ditto.
5948 (const_pow2_1_to_32768_operand): Ditto.
5949 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
5950 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
5951 in insn constraint to check integer value of operand 3.
5952 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
5954 (PINSR_MODE): New mode iterator.
5955 (sse2p4_1): New mode attribute.
5956 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
5957 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
5958 iterator. Use const_int_operand instead of
5959 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
5960 exact_log2 in insn constraint to check integer value of operand 3.
5962 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5964 * config/i386/sse.md (blendbits): Remove mode attribute.
5965 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
5966 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
5967 Check integer value of operand 3 in insn constraint.
5969 2011-05-09 Richard Guenther <rguenther@suse.de>
5971 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
5973 (lto_symtab_merge): Likewise. Do not register types here.
5974 (lto_symtab_merge_decls_2): Likewise.
5975 (lto_symtab_merge_decls_1): Likewise.
5976 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
5977 * gimple.c (enum gtc_mode): Declare.
5978 (gimple_types_compatible_p): Make static.
5980 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5982 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
5983 temporary register to match Pmode.
5985 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5987 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
5988 and *vec_concatv4si_1_avx.
5990 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5992 PR rtl-optimization/48927
5993 * ira-conflicts.c (commutative_constraint_p): Use
5994 recog_data.alternative_enabled_p to disable alternatives where
5995 "enabled" attribute is false.
5996 (get_dup_num): Ditto.
5997 * ira-lives.c (single_reg_class): Ditto.
5998 (ira_implicitly_set_insn_hard_regs): Ditto.
6000 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
6002 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
6003 (dataflow_set_preserve_mem_locs): Likewise.
6005 2011-05-09 Philipp Thomas <pth@suse.de>
6007 * config/mep/mep.c (mep_validate_vliw): Syntax description
6008 should not be translated.
6010 2011-05-09 Joseph Myers <joseph@codesourcery.com>
6012 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
6013 * config/mips/mips-tables.opt: New file (generated).
6014 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
6015 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
6016 MIPS_ARCH_OPTION_NATIVE): Define.
6017 * config/mips/mips.c (mips_cpu_info_table): Move contents to
6019 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
6020 mips_parse_cpu): Remove.
6021 (mips_cpu_info_from_opt, mips_default_arch): New.
6022 (mips_handle_option): Don't assert that global structures are in
6023 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
6024 (mips_option_override): Use new variables and functions to set
6025 state of these options. Use strcmp to check for individual CPU names.
6026 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
6028 * config/mips/mips.opt (march=): Use ToLower and Enum.
6029 (mips): Use ToLower, Enum and Var.
6030 (mtune=): Use ToLower and Enum.
6031 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
6033 2011-05-08 Jan Hubicka <jh@suse.cz>
6035 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
6036 Arrange type pairs to be UID ordered.
6037 (gimple_lookup_type_leader): Make inline.
6039 2011-05-09 Nick Clifton <nickc@redhat.com>
6042 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
6046 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
6049 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
6051 * combine.c (simplify_comparison): Abstract out parts into...
6052 (simplify_compare_const): ... new function.
6053 (try_combine): Generalize parallel arithmetic/compare combining
6054 to call simplify_compare_const() and CANONICALIZE_COMPARE().
6056 2011-05-08 Jan Hubicka <jh@suse.cz>
6058 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
6059 (cgraph_create_virtual_clone): Call hooks once virtual clone
6061 * cgraph.h (cgraph_clone_node): Update prototype.
6062 * ipa-cp.c (ipcp_estimate_growth): Use
6063 estimate_ipcp_clone_size_and_time.
6064 * ipa-inline-transform.c (clone_inlined_nodes): Update.
6065 * lto-cgraph.c (input_node): Update.
6066 * ipa-inline.c (recursive_inlining): Update.
6067 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
6068 (evaluate_conditions_for_known_args): Break out from ...
6069 (evaluate_conditions_for_edge): ... here.
6070 (evaluate_conditions_for_ipcp_clone): New function.
6071 (inline_node_duplication_hook): Update clone summary based
6073 (estimate_callee_size_and_time): Rename to ...
6074 (estimate_node_size_and_time): take NODE instead of EDGE;
6075 take POSSIBLE_TRUTHS as argument.
6076 (estimate_callee_size_and_time): Update.
6077 (estimate_ipcp_clone_size_and_time): New function.
6078 (do_estimate_edge_time): Update.
6080 2011-05-08 Richard Guenther <rguenther@suse.de>
6084 * expmed.c (expand_shift_1): Compute adjusted constant shift
6087 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
6089 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
6091 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
6093 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
6095 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
6097 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
6099 2011-05-07 Jan Hubicka <jh@suse.cz>
6101 * ipa-inline-transform.c (inline_call): Account when program size
6103 * ipa-inline.c (relative_time_benefit): New function.
6104 (edge_badness): Reorganize to be power 2 based; fix thinko when
6105 computing badness for negative growth; update comments to match
6106 reality; better dumps.
6108 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
6110 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
6111 type to bool and adjust comment.
6112 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
6113 (fold_mathfn_compare): Remove calls to global_bindings_p.
6114 (fold_inf_compare): Likewise.
6115 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
6116 * c-tree.h (global_bindings_p): Adjust prototype.
6117 * c-decl.c (global_bindings_p): Return bool and simplify.
6119 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
6121 PR tree-optimization/48837
6122 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
6123 when accumulator transformation is performed.
6125 2011-05-06 Jan Hubicka <jh@suse.cz>
6127 * i386.h (ix86_tune_indices): Add
6128 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
6129 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
6130 * i386.c (initial_ix86_tune_features): Add
6131 X86_SOFTARE_PREFETCHING_BENEFICIAL.
6132 (software_prefetching_beneficial_p): Remove predicate.
6133 (ix86_option_override_internal): Use new macro.
6135 2011-05-06 Jan Hubicka <jh@suse.cz>
6137 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
6139 2011-05-06 Jan Hubicka <jh@suse.cz>
6141 * cgraph.c (cgraph_add_thunk): Create real function node instead
6142 of alias node; finalize it and mark needed/reachale; arrange visibility
6143 to be right and add it into the corresponding same comdat group list.
6144 (dump_cgraph_node): Dump thunks.
6145 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
6146 cgraph_function_with_gimple_body_p,
6147 cgraph_first_function_with_gimple_body,
6148 cgraph_next_function_with_gimple_body): New functions.
6149 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
6151 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
6152 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6153 * cgraphunit.c (cgraph_finalize_function): Only look into possible
6154 devirtualization when optimizing.
6155 (verify_cgraph_node): Verify thunks.
6156 (cgraph_analyze_function): Analyze thunks.
6157 (cgraph_mark_functions_to_output): Output thunks only in combination
6158 with function they are assigned to.
6159 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
6160 alias into normal node.
6161 (assemble_thunks): New functoin.
6162 (cgraph_expand_function): Use it.
6163 * lto-cgraph.c (lto_output_node): Stream thunks.
6164 (input_overwrite_node): Stream in thunks.
6165 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
6166 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
6167 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
6168 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
6169 (inline_analyze_function): Do not care about thunk jump functions.
6170 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
6171 * ipa-prop.c (ipa_prop_write_jump_functions): Use
6172 cgraph_function_with_gimple_body_p.
6173 * passes.c (do_per_function_toporder): Use
6174 cgraph_function_with_gimple_body_p.
6175 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6176 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
6177 (function_called_by_processed_nodes_p): Likewise.
6179 2011-05-06 Joseph Myers <joseph@codesourcery.com>
6181 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
6182 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
6184 (mabi=): Replace with separate entries for mabi=altivec,
6185 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
6186 mabi=ieeelongdouble and mabi=ibmlongdouble.
6187 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
6188 check for -mabi=spe without SPE ABI support here.
6189 (rs6000_handle_option): Replace OPT_mabi_ handling with
6190 OPT_mabi_altivec and OPT_mabi_spe handling.
6192 2011-05-06 Cary Coutant <ccoutant@google.com>
6194 * dwarf2out.c (contains_subprogram_definition): New function.
6195 (should_move_die_to_comdat): Call it.
6197 2011-05-06 Jeff Law <law@redhat.com>
6199 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
6200 remove_ctrl_stmt_and_useless_edges.
6201 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
6202 (fixup_template_block, thread_single_edge): Likewise.
6203 (mark_threaded_blocks): Use THREAD_TARGET.
6205 2011-05-06 Alan Modra <amodra@gmail.com>
6208 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6209 const0_rtx as the arg to the dummy __tls_get_addr libcall.
6211 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
6213 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
6214 constraint modifier to "r".
6216 2011-05-06 Joseph Myers <joseph@codesourcery.com>
6218 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
6219 fall through for OPT_mcmodel_.
6221 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6223 * config/s390/s390.c (s390_asm_trampoline_template): Comment
6225 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
6227 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6230 * config/arm/arm.opt (marm): Document it.
6231 (mthumb): Reject negative variant.
6233 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
6236 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6237 Fix typo in "ccvt" variable name.
6239 2011-05-06 Tristan Gingold <gingold@adacore.com>
6242 * config/vms/vms-ar.c (main): Remove cwd variable.
6244 2011-05-06 Jakub Jelinek <jakub@redhat.com>
6247 * var-tracking.c (prepare_call_arguments): Move else before #endif.
6249 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
6251 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
6252 * gimplify.c (gimplify_switch_expr): Likewise.
6253 * omp-low.c (expand_omp_sections): Likewise.
6254 * tree-eh.c (lower_try_finally_switch): Likewise.
6255 (lower_eh_dispatch): Likewise.
6256 * tree.h (build_case_label): Declare.
6257 * tree.c (build_case_label): Define.
6259 2011-05-05 Jason Merrill <jason@redhat.com>
6262 * tree-inline.c (copy_tree_r): Use copy_statement_list.
6263 (copy_statement_list): Don't recurse.
6264 * stor-layout.c (copy_self_referential_tree_r): Don't allow
6267 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6269 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
6270 through from -mfpu= handling.
6271 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
6273 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
6275 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
6278 2011-05-05 Steve Ellcey <sje@cup.hp.com>
6280 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
6282 (hppa[12]*-*-hpux11*): Ditto.
6283 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
6284 * config/ia64/hpux-unix2003.h: New.
6285 * config/pa/pa-hpux1131.opt: New.
6286 * config/pa/pa-hpux1131.h: New.
6287 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
6288 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
6289 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
6291 2011-05-05 Jakub Jelinek <jakub@redhat.com>
6294 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
6295 instead of mode as 3rd argument to recursive call.
6296 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
6297 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
6299 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
6300 don't give up if mode is Pmode and mem_mode is not VOIDmode.
6301 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
6302 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
6304 2011-05-05 Julian Brown <julian@codesourcery.com>
6306 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
6307 parenthesis in D-register case.
6309 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6311 * opt-functions.awk (var_type_struct): Handle Enum options.
6312 * optc-gen.awk: Don't check range of variables of character type.
6313 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
6314 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
6315 rs6000_sdata_name, rs6000_explicit_options): Remove.
6316 (rs6000_option_override_internal): Check for -malign-power here.
6317 Use global_options_set instead of rs6000_explicit_options.
6318 (rs6000_parse_fpu_option): Remove.
6319 (rs6000_handle_option): Access variables via opts and opts_set
6320 pointers. Use error_at and warning_at. Add fall-through
6321 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
6322 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
6323 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
6324 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
6325 here. Don't use rs6000_parse_fpu_option.
6326 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
6327 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
6328 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
6330 (mspe): Use Var and Save.
6331 (mtraceback=): Use Enum and Var.
6332 (rs6000_traceback_type): New Enum and EnumValue entries.
6333 (mfloat-gprs=): Use Enum, Var and Save.
6334 (rs6000_float_gprs): New Enum and EnumValue entries.
6335 (mlong-double-): use Var and Save.
6336 (msched-costly-dep=, minsert-sched-nops=): Use Var.
6337 (malign-): Use Enum and Var.
6338 (rs6000_alignment_flags): New Enum and EnumValue entries.
6340 (fpu_type_t): New Enum and EnumValue entries.
6341 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6342 global_options_set instead of rs6000_explicit_options.
6343 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6344 global_options_set instead of rs6000_explicit_options.
6345 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6346 global_options_set instead of rs6000_explicit_options.
6347 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6348 global_options_set instead of rs6000_explicit_options.
6349 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
6350 global_options_set instead of rs6000_explicit_options.
6351 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6352 global_options_set instead of rs6000_explicit_options.
6353 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
6355 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6356 global_options_set instead of rs6000_explicit_options.
6357 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
6358 (rs6000_cmodel): New Enum and EnumValue entries.
6359 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6360 global_options_set instead of rs6000_explicit_options.
6361 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
6362 (mtls-size=): Use Enum and Var.
6363 (rs6000_tls_size): New Enum and EnumValue entries.
6365 2011-05-05 Michael Matz <matz@suse.de>
6367 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
6368 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
6369 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
6370 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
6371 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
6372 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
6373 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
6374 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
6375 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
6376 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
6377 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
6378 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
6379 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
6380 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
6381 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
6382 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
6384 2011-05-05 Richard Guenther <rguenther@suse.de>
6386 * expmed.c (expand_variable_shift): Rename to ...
6387 (expand_shift_1): ... this. Take an expanded shift amount.
6388 For rotates recurse directly not building trees for the shift amount.
6389 (expand_variable_shift): Wrap around expand_shift_1.
6390 (expand_shift): Adjust.
6392 2011-05-05 Jakub Jelinek <jakub@redhat.com>
6394 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
6396 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
6398 * tree.h (get_pending_sizes): Remove prototype.
6399 (put_pending_size): Likewise.
6400 (put_pending_sizes): Likewise.
6401 * stor-layout.c (pending_sizes): Delete.
6402 (get_pending_sizes): Likewise.
6403 (put_pending_size): Likewise.
6404 (put_pending_sizes): Likewise.
6405 (variable_size): Do not call put_pending_size and tidy up.
6406 * function.h (struct function): Remove dont_save_pending_sizes_p.
6407 * lto-streamer-in.c (input_function): Do not stream it.
6408 * lto-streamer-out.c (output_function): Likewise.
6409 * tree-inline.c (initialize_cfun): Do not copy it.
6410 * c-decl.c (store_parm_decls): Do not set it.
6411 * omp-low.c (create_task_copyfn): Likewise.
6412 * tree-optimize.c (tree_rest_of_compilation): Likewise.
6414 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
6416 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
6418 (*movdf_internal): Ditto.
6419 (*movdf_internal_nointeger): Ditto.
6420 (*movsf_internal): Ditto.
6422 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6424 * c-decl.c (finish_decl): Don't call get_pending_sizes.
6425 (grokparm): Add parameter expr. Pass it to grokdeclarator.
6426 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
6427 (c_variable_size): Remove.
6428 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
6429 call put_pending_sizes.
6430 (get_parm_info): Add parameter expr. Use it to set
6431 arg_info->pending_sizes.
6432 (store_parm_decls): Use arg_info->pending_sizes instead or calling
6434 * c-parser.c (c_parser_parms_declarator): Update call to
6435 c_parser_parms_list_declarator.
6436 (c_parser_parms_list_declarator): Take parameter expr. Update
6437 call to push_parm_decl. Update recursive call. Don't call
6438 get_pending_sizes. Update calls to get_parm_info.
6439 (c_parser_objc_method_definition): Update calls to
6440 c_parser_objc_method_decl and objc_start_method_definition.
6441 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
6442 (c_parser_objc_method_decl): Add parameter expr. Update call to
6444 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
6445 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
6446 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
6448 2011-05-05 Michael Hope <michael.hope@linaro.org>
6451 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
6454 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6456 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
6457 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6458 (spu_output_mi_thunk): New function.
6460 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6462 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
6463 targetm.asm_out.print_operand.
6464 * config/sol2.c: Include target.h.
6466 2011-05-04 Jan Hubicka <jh@suse.cz>
6468 * ipa-inline.c (reset_edge_caches): New function.
6469 (update_caller_keys): Add check_inlinablity_for; do not
6470 reset edge caches; remove now unnecesary loop.
6471 (update_callee_keys): Add comments; reset node_growth_cache of callee.
6472 (update_all_callee_keys): Likewise.
6473 (inline_small_functions): Sanity check cache; update code
6476 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
6478 PR rtl-optimization/47612
6479 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
6480 as the last insn of the sequence to be moved.
6482 2011-05-04 Tobias Burnus <burnus@net-b.de>
6485 * doc/invoke.texi (Ofast): Document that it
6486 enables Fortran's -fno-protect-parens.
6488 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
6490 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
6492 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
6494 * stor-layout.c (variable_size): Do not issue errors.
6496 2011-05-04 Richard Guenther <rguenther@suse.de>
6498 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
6499 for array-ref indices.
6500 (tree_coverage_counter_addr): Likewise.
6501 (build_fn_info_type): Use size_int for index types.
6502 (build_gcov_info): Likewise.
6504 2011-05-04 Richard Guenther <rguenther@suse.de>
6506 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
6508 * c-typeck.c (really_start_incremental_init): Use bitsize_int
6509 for constructor indices.
6510 (push_init_level): Likewise.
6512 2011-05-04 Richard Guenther <rguenther@suse.de>
6514 * explow.c (promote_mode): Move variable declarations before code.
6516 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
6518 * tree.h (build_function_type_array): Declare.
6519 (build_varargs_function_type_array): Declare.
6520 (build_function_type_vec, build_varargs_function_type_vec): Define.
6521 * tree.c (build_function_type_array_1): New function.
6522 (build_function_type_array): New function.
6523 (build_varargs_function_type_array): New function.
6525 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
6527 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
6528 before setting STMT_VINFO_TYPE.
6530 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6532 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
6533 instead of spu_pass_by_reference.
6535 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6537 * calls.c (emit_library_call_value_1): Invoke
6538 promote_function_mode hook on libcall arguments.
6539 * explow.c (promote_function_mode, promote_mode): Handle TYPE
6540 argument being NULL.
6541 * targhooks.c (default_promote_function_mode): Lisewise.
6542 * config/s390/s390.c (s390_promote_function_mode): Likewise.
6543 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
6545 * doc/tm.texi: Document that TYPE argument might be NULL.
6547 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6549 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
6551 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6554 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
6556 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6558 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
6559 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
6561 * mips-tfile.c: ... here.
6562 Don't include coretypes.h, tm.h, filenames.h.
6563 (saber_stop): Remove definition and all calls.
6564 [__SABER__]: Remove.
6565 (__LINE__): Remove default.
6566 (Size_t, Ptrdiff_t): Remove definitions.
6567 Replace by size_t, ptrdiff_t.
6568 [!MIPS_DEBUGGING_INFO]: Remove.
6569 (SHASH_SIZE, THASH_SIZE): Remove defaults.
6570 (progname): Add const.
6572 Replace all uses by static.
6573 (ALIGN_SYMTABLE_OFFSET): Remove default.
6574 * mips-tdump.c: Don't include coretypes.h, tm.h.
6575 Remove !MIPS_IS_STAB guard.
6576 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
6577 $(TM_H), filenames.h dependencies.
6578 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
6580 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6583 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
6584 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6586 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6589 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
6590 account and save/restore RETS.
6591 (PROFILE_BEFORE_PROLOGUE): Define.
6592 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
6593 the push insn to use predecrement.
6595 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6598 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
6600 2011-05-04 Nick Clifton <nickc@redhat.com>
6602 * config/mn10300/mn10300.c: Include cfgloop.h.
6604 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
6605 Lcc or a FLcc insn into the instruction stream.
6606 (mn10300_block_contains_call): New function. Returns true if the
6607 given basic block contains a CALL insn.
6608 (mn10300_loop_contains_call_insn): New function. Returns true if
6609 the given loop contains a CALL insn.
6610 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
6611 to use the SETLB and Lcc or FLcc insns.
6612 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
6613 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
6614 * config/mn10300/mn10300.opt (msetlb): New option. Used to
6615 disable the SETLB optimization.
6616 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
6617 __SETLB__ or __NO_SETLB__.
6618 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
6619 (movsf_internal): Handle MDR register.
6620 (cmpsi): Make visible.
6621 (setlb): New pattern.
6623 (FLcc): New pattern.
6625 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
6628 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
6629 for reg<->xmm moves.
6630 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
6631 (vec_concatv2di_rex64_sse): Ditto.
6632 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
6633 (*vec_extractv2di_1_rex64): Ditto.
6636 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6638 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6640 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
6642 2011-05-04 Richard Guenther <rguenther@suse.de>
6644 * tree.h (int_const_binop): Remove notrunc argument.
6645 * fold-const.c (int_const_binop): Remove notrunc argument. Always
6646 create integer constants that are properly truncated.
6647 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
6648 (const_binop): Remove zero notrunc argument to int_const_binop.
6649 (size_binop_loc): Likewise.
6650 (fold_div_compare): Likewise.
6651 (maybe_canonicalize_comparison_1): Likewise.
6652 (fold_comparison): Likewise.
6653 (fold_binary_loc): Likewise.
6654 (multiple_of_p): Likewise.
6655 * expr.c (store_constructor): Likewise.
6656 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
6657 (maybe_fold_stmt_addition): Likewise.
6658 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
6659 * stor-layout.c (layout_type): Likewise.
6660 * tree-data-ref.c (tree_fold_divides_p): Likewise.
6661 * tree-sra.c (build_ref_for_offset): Likewise.
6662 (build_user_friendly_ref_for_offset): Likewise.
6663 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
6664 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
6665 * tree-ssa-loop-niter.c (inverse): Likewise.
6666 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6667 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
6668 * tree-switch-conversion.c (check_range): Likewise.
6669 (build_constructors): Likewise.
6670 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
6671 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
6672 (extract_range_from_assert): Likewise.
6673 (vrp_int_const_binop): Likewise.
6674 (extract_range_from_binary_expr): Likewise.
6675 (extract_range_from_unary_expr): Likewise.
6676 (check_array_ref): Likewise.
6677 (find_case_label_range): Likewise.
6678 (simplify_div_or_mod_using_ranges): Likewise.
6679 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
6680 comparing case labels for merging.
6682 2011-05-03 Mark Wielaard <mjw@redhat.com>
6684 * dwarf2out.c (debug_str_hash_forced): Removed.
6685 (gen_label_for_indirect_string): Removed.
6686 (get_debug_string_label): Removed.
6687 (AT_string_form): Generate label directly.
6688 (output_indirect_string): Test indirect_string_node for
6689 DW_FORM_strp instead of checking label and refcount.
6690 (prune_indirect_string): Removed.
6691 (prune_unused_types): Don't check debug_str_hash_forced or
6692 call prune_indirect_string.
6694 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
6697 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
6699 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
6703 * combine.c (try_combine): Skip debug insns at m_split tests.
6705 2011-04-26 Mark Wielaard <mjw@redhat.com>
6708 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
6709 when info_section_emitted.
6711 2011-05-03 Joseph Myers <joseph@codesourcery.com>
6713 * config/mips/mips-opts.h: New.
6714 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
6716 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
6717 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
6718 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
6720 * config/mips/mips.h (enum mips_code_readable_setting): Move to
6722 (mips_abi, mips_code_readable): Don't declare.
6723 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
6724 (mabi=): Use Enum and Var.
6725 (mips_abi): New Enum and EnumValue entries.
6726 (mcode-readable=): Use Enum and Var.
6727 (mips_code_readable_setting): New Enum and EnumValue entries.
6728 (mr10k-cache-barrier=): Use Enum and Var.
6729 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
6731 2011-05-03 Jan Hubicka <jh@suse.cz>
6733 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
6734 replace hash by pointer map.
6735 (cgraph_node_set_element_def, cgraph_node_set_element,
6736 const_cgraph_node_set_element, varpool_node_set_element_def,
6737 varpool_node_set_element, const_varpool_node_set_element): Remove.
6738 (free_cgraph_node_set, free_varpool_node_set): New function.
6739 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
6740 * tree-emutls.c: Free varpool node set.
6741 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
6742 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6743 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
6744 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6745 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
6746 Move here from ipa.c; implement using pointer_map
6747 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
6748 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6749 debug_cgraph_node_set, varpool_node_set_new,
6750 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6751 dump_varpool_node_set, debug_varpool_node_set):
6752 Move to ipa-uitls.c.
6753 * passes.c (ipa_write_summaries): Update.
6755 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6757 From Mike Frysinger:
6758 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
6759 bf542/bf544/bf547/bf548/bf549.
6761 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
6763 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
6765 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6768 * config/bfin/bfin.md (MOVCC): New mode_macro.
6769 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
6770 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
6771 comments from generated assembly.
6773 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6776 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
6777 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
6778 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
6779 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
6780 * config/bfin/lib1funcs.asm (___muldi3): New function.
6782 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6784 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
6785 build_function_type_list instead of build_function_type.
6786 Rearrange initialization of `args' to do so.
6788 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6790 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
6791 instead of build_function_type.
6793 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6795 * config/rs6000/rs6000.c (spe_init_builtins): Call
6796 build_function_type_list instead of build_function_type.
6797 (paired_init_builtins, altivec_init_builtins): Likewise.
6798 (builtin_function_type): Likewise.
6800 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6802 * config/sh/sh.c (sh_media_init_builtins): Call
6803 build_function_type_list instead of build_function_type.
6805 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6807 * config/sparc/sparc.c (sparc_file_end): Call
6808 build_function_type_list instead of build_function_type.
6810 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6812 * config/alpha/alpha.c (alpha_init_builtins): Call
6813 build_function_type_list instead of build_function_type.
6815 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6817 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
6818 build_function_type_list instead of build_function_type.
6820 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6822 * config/iq2000/i2000.c (iq2000_init_builtins): Call
6823 build_function_type_list instead of build_function_type.
6824 Delete `endlink' variable.
6826 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6828 * config/avr/avr.c (avr_init_builtins): Call
6829 build_function_type_list instead of build_function_type.
6831 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6833 * config/picochip/picochip.c (picochip_init_builtins): Call
6834 build_function_type_list instead of build_function_type.
6835 Delete `endlink' variable.
6837 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6839 * config/bfin/bfin.c (bfin_init_builtins): Call
6840 build_function_type_list instead of build_function_type.
6842 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6845 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
6846 that's not CONST_INT. Seemingly redundant check is due to PR39768.
6848 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6851 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
6852 libbffastfp overrides libgcc when -mfast-fp.
6854 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6856 Originally from Bernd Schmidt
6857 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
6858 * config/bfin/bfin.c (override_options): Test it and error if
6861 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6863 Originally From Bernd Schmidt
6864 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
6867 2011-05-03 Jeff Law <law@redhat.com>
6869 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
6870 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
6871 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
6872 than accessing AUX field directly. Free the AUX field before
6874 (thread_block, thread_through_loop_header): Likewise.
6875 (thread_single_edge, mark_threaded_blocks): Likewise.
6876 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
6877 (register_jump_thread): Do not attempt to thread to a NULL edge.
6879 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
6881 * function.c (init_function_start): Call decide_function_section.
6882 * varasm.c (decide_function_section): New function.
6883 (assemble_start_function): When not using
6884 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
6885 or first_function_block_is_cold.
6886 * rtl.h (decide_function_section): Declare.
6888 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
6889 Jakub Jelinek <jakub@redhat.com>
6892 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
6893 only succeed if req_mode is the same as set_mode.
6895 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
6897 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
6898 * genemit.c (gen_exp): Handle RETURN.
6899 * emit-rtl.c (verify_rtx_sharing): Likewise.
6900 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
6901 * rtl.c (copy_rtx): RETURN is shared.
6902 * rtl.h (enum global_rtl_index): Add GR_RETURN.
6904 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
6905 * config/s390/s390.c (s390_emit_epilogue): Likewise.
6906 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
6907 * config/cris/cris.c (cris_expand_return): Likewise.
6908 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
6909 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
6910 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
6911 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
6912 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
6914 * config/v850/v850.c (expand_epilogue): Likewise.
6915 * config/bfin/bfin.c (bfin_expand_call): Likewise.
6916 * config/arm/arm.md (epilogue): Likewise.
6917 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
6918 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
6919 variable to ret_reg.
6921 2011-05-03 Richard Guenther <rguenther@suse.de>
6924 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
6925 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
6926 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6928 2011-05-03 Richard Guenther <rguenther@suse.de>
6930 * c-decl.c (grokdeclarator): Instead of looking at
6931 TREE_OVERFLOW check if the constant fits in the index type.
6933 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6935 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
6936 (vec_store_lanes<mode><mode>): Likewise.
6938 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6940 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
6941 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
6942 convert_optab_index values.
6943 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
6944 * genopinit.c (optabs): Initialize the new optabs.
6945 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
6946 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
6947 (expand_STORE_LANES): New functions.
6948 * tree.h (build_array_type_nelts): Declare.
6949 * tree.c (build_array_type_nelts): New function.
6950 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
6951 (vect_model_load_cost): Likewise.
6952 (vect_store_lanes_supported, vect_load_lanes_supported)
6953 (vect_record_strided_load_vectors): Declare.
6954 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
6955 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
6956 (vect_transform_strided_load): Split out statement recording into...
6957 (vect_record_strided_load_vectors): ...this new function.
6958 * tree-vect-stmts.c (create_vector_array, read_vector_array)
6959 (write_vector_array, create_array_ref): New functions.
6960 (vect_model_store_cost): Add store_lanes_p argument.
6961 (vect_model_load_cost): Add load_lanes_p argument.
6962 (vectorizable_store): Try to use store-lanes functions for
6964 (vectorizable_load): Likewise load-lanes and loads.
6965 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
6966 to vect_model_store_cost.
6967 (vect_build_slp_tree): Likewise vect_model_load_cost.
6969 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6971 * hooks.h (hook_bool_mode_uhwi_false): Declare.
6972 * hooks.c (hook_bool_mode_uhwi_false): New function.
6973 * target.def (array_mode_supported_p): New hook.
6974 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
6975 * doc/tm.texi: Regenerate.
6976 * stor-layout.c (mode_for_array): New function.
6977 (layout_type): Use it.
6978 * config/arm/arm.c (arm_array_mode_supported_p): New function.
6979 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
6981 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
6984 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
6985 for -fstack-check if the size to allocate is negative.
6987 2011-05-02 Lawrence Crowl <crowl@google.com>
6989 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
6990 (timevar_cond_start): New for starting a timer only when it is not
6992 (timevar_cond_stop): New for stopping a timer when it was not already
6995 * timevar.c (timevar_stop): Enable start/stop timers to start again.
6996 (timevar_cond_start): New as above.
6997 (timevar_cond_stop): New as above.
6999 * timevar.def: Add start/stop timers for compiler phases,
7000 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
7001 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
7002 and TV_PHASE_FINALIZE.
7003 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
7004 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
7005 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
7006 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
7007 Make unused TV_OVERLOAD into a start/stop timer.
7009 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
7010 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
7011 to indicate that they are start/stop timers.
7013 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
7014 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
7015 Move initialization to do_compile.
7016 (do_compile): Add initialization from above.
7017 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
7019 * c-decl.c (c_write_global_declarations): Add start/stop of
7020 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
7022 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
7023 or TV_PARSE_INLINE, as appropriate.
7024 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
7025 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
7027 2011-05-02 Jason Merrill <jason@redhat.com>
7030 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
7032 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
7035 * c-decl.c (finish_decl): Only create a composite if the types are
7038 2011-05-02 Joseph Myers <joseph@codesourcery.com>
7040 * config/fr30/fr30-protos.h (Mmode): Don't define.
7041 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
7042 definition where used.
7043 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
7044 define. Expand definitions where used.
7045 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
7046 Expand definitions where used.
7047 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
7048 rx_function_arg, rx_function_arg_advance,
7049 rx_function_arg_boundary): Expand definitions of those macros.
7050 * config/v850/v850-protos.h (Mmode): Don't define. Expand
7051 definition where used.
7053 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
7055 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
7057 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
7058 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
7059 with *movv2sf_internal_rex64_avx.
7060 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
7061 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
7062 Use %v prefix in insn mnemonic to handle TARGET_AVX.
7063 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
7064 "vex" in "prefix" attribute calculation.
7065 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
7067 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
7070 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
7071 inputs match the output.
7073 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
7076 * config/m68k/m68k.c (m68k_expand_prologue): Set
7077 current_function_static_stack_size.
7079 2011-05-02 Jan Hubicka <jh@suse.cz>
7081 * lto-streamer.c (lto_streamer_cache_insert_1,
7082 lto_streamer_cache_lookup, lto_streamer_cache_create,
7083 lto_streamer_cache_delete): Use pointer map instead of hashtable.
7084 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
7086 2011-05-02 Joseph Myers <joseph@codesourcery.com>
7088 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
7089 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
7090 config/m68k/t-opts: New files.
7091 * config/m68k/m68k-tables.opt: New file (generated).
7092 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
7093 extra_options and m68k/t-opts to tmake_file.
7094 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
7095 (all_isas): Initialize using m68k-isas.def.
7096 (all_microarchs): Initialize using m68k-microarchs.def.
7097 (m68k_find_selection): Remove.
7098 (m68k_handle_option): Don't assert that global structures are in
7099 use. Use error_at. Access variables via opts pointer. Don't
7100 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
7101 directly for -m68020-40 and -m68020-60.
7102 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
7103 m68k_tune_entry here.
7104 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
7106 (m68k_library_id_string): Remove declaration.
7107 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
7108 (m68k_library_id_string): New Variable.
7109 (march=, mcpu=, mtune=): Use Enum and Var.
7111 2011-05-02 Richard Guenther <rguenther@suse.de>
7113 * varasm.c (output_constructor_regular_field): Compute zero-based
7114 index with double-ints. Make sure to ICE instead of producing
7116 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
7117 in asserts. Properly use a signed type.
7119 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
7121 * config/i386/sse.md (V): New mode iterator.
7122 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
7124 (V_256): Rename from AVX256MODE.
7125 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
7126 condition to all users.
7128 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
7129 condition to all users.
7130 (VF_128): Make V4SF mode unconditional.
7131 (VF_256): Rename from AVX256MODEF2P.
7132 (VI4F_128): Rename from SSEMODE4S.
7133 (VI8F_128): Rename from SSEMODE2D.
7134 (VI4F_256): Rename from AVX256MODE8P.
7135 (VI8F_256): Rename from AVX256MODE4P.
7136 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
7137 (ssescalarmodesuffix): Remove SF and DF modes.
7138 (SSEMODE124): Remove.
7139 (SSEMODE1248): Ditto.
7140 (SSEMODEF2P): Ditto.
7141 (AVXMODEF2P): Ditto.
7142 (AVXMODEFDP): Ditto.
7143 (AVXMODEFSP): Ditto.
7144 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
7146 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
7148 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
7149 xop_pcmov_<mode>256. Use V mode iterator.
7151 Adjust RTX patterns globally for renamed mode attributes.
7153 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7155 * haifa-sched.c (sched_emit_insn): Emit insn before first
7156 non-scheduled insn. Inform back-end about new insn. Add
7157 new insn to scheduled_insns list.
7159 2011-05-02 Richard Guenther <rguenther@suse.de>
7161 PR tree-optimization/48822
7162 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
7163 (process_scc): Indicate which iteration we start.
7165 2011-05-02 Jan Hubicka <jh@suse.cz>
7167 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
7168 (lto_section_overrun): New.
7169 * lto-section-out.c (append_block): Rename to ...
7170 (lto_append_block): ... this one; export.
7171 (lto_output_1_stream): Move lto lto-streamer.h
7172 (lto_output_data_stream): Update.
7173 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
7174 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
7177 2011-05-02 Richard Guenther <rguenther@suse.de>
7179 * tree.c (tree_code_counts): New global array.
7180 (record_node_allocation_statistics): Count individual tree codes.
7181 (dump_tree_statistics): Dump individual code stats.
7183 2011-05-01 Jan Hubicka <jh@suse.cz>
7185 * ipa-inline.c (caller_growth_limits): Fix thinko when
7186 looking for largest stack frame.
7187 * ipa-inline.h (dump_inline_summary): Declare.
7188 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
7190 (dump_inline_summary): Export.
7191 (debug_inline_summary): Declare as DEBUG_FUNCTION.
7193 2011-05-01 Anatoly Sokolov <aesok@post.ru>
7195 * reginfo.c (memory_move_cost): Change rclass argument type form
7196 'enum reg_class' to reg_class_t.
7197 * reload.h (memory_move_cost): Update prototype.
7198 * postreload.c reload_cse_simplify_set): Change type dclass var to
7200 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
7202 (ira_allocate_and_set_costs): Change aclass argument type form
7203 'enum reg_class' to reg_class_t.
7204 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
7205 Change aclass argument type to reg_class_t.
7206 (update_conflict_hard_reg_costs): Change type aclass and pref vars
7208 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
7209 memory_move_cost call.
7211 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
7212 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
7213 Change type tmp var to reg_class_t.
7215 2011-04-30 Jan Hubicka <jh@suse.cz>
7217 * ipa-inline.c (can_inline_edge_p): Disregard limits when
7218 inlining into function with flatten attribute.
7219 (want_inline_small_function_p): Be more realistic about inlining
7220 cold calls where callee size grows.
7222 2011-04-30 Jan Hubicka <jh@suse.cz>
7224 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
7227 2011-04-30 Anatoly Sokolov <aesok@post.ru>
7229 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7230 PRINT_OPERAND_PUNCT_VALID_P): Remove.
7231 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
7232 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
7233 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7234 (print_operand): Rename to...
7235 (sparc_print_operand): ...this. Make static. Adjust
7236 sparc_print_operand function call.
7237 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
7240 2011-04-30 Jan Hubicka <jh@suse.cz>
7243 * ipa-inline.c (early_inliner): Disable when doing late
7244 addition of function.
7246 2011-04-30 Jakub Jelinek <jakub@redhat.com>
7248 * dwarf2out.c (get_address_mode): New inline.
7249 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
7250 if not dwarf_strict emit
7251 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
7252 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
7253 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
7254 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
7255 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
7256 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
7257 mem_loc_descriptor callers.
7258 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7259 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
7260 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
7261 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
7262 (base_types): New variable.
7263 (get_base_type_offset, calc_base_type_die_sizes,
7264 base_type_for_mode, mark_base_types, base_type_cmp,
7265 move_marked_base_types): New functions.
7266 (calc_die_sizes): Assert that die_offset is 0 or equal to
7268 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
7269 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
7270 callers. If not dwarf_strict, call mem_loc_descriptor even for
7271 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
7272 (gen_subprogram_die): Don't give up on call site parameters
7273 with non-integral or large integral modes. Adjust
7274 mem_loc_descriptor callers.
7275 (prune_unused_types): Call prune_unused_types_mark on base_types
7277 (resolve_addr): Call mark_base_types.
7278 (dwarf2out_finish): Call move_marked_base_types.
7280 PR tree-optimization/48809
7281 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
7283 (gen_inbound_check): Don't compute index_expr - range_min in utype
7284 again, instead reuse SSA_NAME initialized in build_arrays.
7285 Remove two useless gsi_for_stmt calls.
7287 2011-04-29 Jeff Law <law@redhat.com>
7289 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
7291 2011-04-29 Martin Jambor <mjambor@suse.cz>
7293 * cgraph.h (cgraph_postorder): Remove declaration.
7294 * ipa-utils.h (ipa_free_postorder_info): Declare.
7295 (ipa_reverse_postorder): Likewise.
7296 * cgraphunit.c: Include ipa-utils.h.
7297 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
7298 * ipa-inline.c: Include ipa-utils.h.
7299 (ipa_inline): Update call to ipa_reverse_postorder.
7300 * ipa-pure-const.c (propagate_pure_const): Update call to
7301 ipa_reduced_postorder and ipa_print_order. Call
7302 ipa_free_postorder_info to clean up.
7303 (propagate_nothrow): Likewise.
7304 * ipa-reference.c (propagate): Removed a useless call to
7305 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
7306 and ipa_print_order. Call ipa_free_postorder_info to clean up.
7307 * ipa.c: Include ipa-utils.h.
7308 (ipa_profile): Update call to ipa_reverse_postorder.
7309 (cgraph_postorder): Moved to...
7310 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
7311 (ipa_utils_print_order): Renamed to ipa_print_order.
7312 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
7314 (ipa_free_postorder_info): New function.
7315 * passes.c: Include ipa-utils.h.
7316 (do_per_function_toporder): Update call to ipa_reverse_postorder.
7317 (ipa_write_summaries): Likewise.
7318 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
7319 (cgraphunit.o): Likewise.
7321 (ipa-inline.o): Likewise.
7323 2011-04-29 Jan Hubicka <jh@suse.cz>
7325 * gcc.dg/tree-ssa/inline-10.c: New testcase.
7326 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
7327 * ipa-inline.h (clause_t): Turn into unsigned int.
7328 * ipa-inline-analysis.c (add_clause): Do more simplification.
7329 (and_predicates): Shortcut more cases.
7330 (predicates_equal_p): Move forward; check that clauses are properly
7332 (or_predicates): Shortcut more cases.
7333 (edge_execution_predicate): Rewrite as...
7334 (set_cond_stmt_execution_predicate): ... this function; handle
7335 __builtin_constant_p.
7336 (set_switch_stmt_execution_predicate): New .
7337 (compute_bb_predicates): New.
7338 (will_be_nonconstant_predicate): Update TODO.
7339 (estimate_function_body_sizes): Use compute_bb_predicates
7340 and free them later, always try to estimate if stmt is constant.
7341 (estimate_time_after_inlining, estimate_size_after_inlining):
7342 Gracefully handle optimized out edges.
7343 (read_predicate): Fix off by one error.
7345 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
7347 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
7349 2011-04-27 Xinliang David Li <davidxl@google.com>
7351 * tree-profile.c (init_ic_make_global_vars): Set
7352 tls attribute on ic vars.
7353 * coverage.c (coverage_end_function): Initialize
7354 function_list with zero.
7356 2011-04-29 Richard Guenther <rguenther@suse.de>
7358 * builtins.c (fold_builtin_classify_type): Use integer_type_node
7359 for the type of the result.
7360 (fold_builtin_isascii): Likewise.
7361 (fold_builtin_toascii): Use integer_type_node where appropriate.
7362 (fold_builtin_logb): Likewise.
7363 (fold_builtin_frexp): Likewise.
7364 (fold_builtin_strstr): Likewise.
7365 (fold_builtin_strpbrk): Likewise.
7366 (fold_builtin_fputs): Likewise.
7367 (fold_builtin_sprintf): Likewise.
7368 (fold_builtin_snprintf): Likewise.
7369 (fold_builtin_printf): Likewise.
7370 (do_mpfr_remquo): Use a proper type for the assigned constant.
7371 (do_mpfr_lgamma_r): Likewise.
7372 * dwarf2out.c (resolve_one_addr): Use size_int.
7373 * except.c (init_eh): Likewise.
7374 (assign_filter_values): Use integer_type_node for filter values.
7375 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
7377 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
7378 for EH region numbers.
7379 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
7380 for the shift amount.
7382 2011-04-29 Richard Guenther <rguenther@suse.de>
7384 * expr.h (expand_shift): Rename to ...
7385 (expand_variable_shift): ... this.
7386 (expand_shift): Take a constant shift amount.
7387 * expmed.c (expand_shift): Rename to ...
7388 (expand_variable_shift): ... this.
7389 (expand_shift): New wrapper around expand_variable_shift.
7390 * expr.c (convert_move, emit_group_load_1, emit_group_store,
7391 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
7392 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
7393 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
7394 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
7395 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
7396 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
7397 emit_store_flag_1, emit_store_flag): Likewise.
7398 * builtins.c (expand_builtin_signbit): Likewise.
7399 * calls.c (load_register_parameters): Likewise.
7400 * function.c (assign_parm_setup_block): Likewise.
7401 * lower-subreg.c (resolve_shift_zext): Likewise.
7402 * optabs.c (widen_bswap, expand_abs_nojump,
7403 expand_one_cmpl_abs_nojump, expand_float): Likewise.
7404 * spu/spu.c (spu_expand_extv): Likewise.
7405 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
7407 2011-04-29 Richard Guenther <rguenther@suse.de>
7409 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
7410 for the remapped region number.
7411 * predict.c (build_predict_expr): Use integer_type_node for the
7413 * fold-const.c (fold_binary_loc): Use integer_type_node for
7414 the shift amount. Use a proper type for the PLUS_EXPR operand.
7416 2011-04-29 Michael Matz <matz@suse.de>
7418 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
7419 other trees that just builtins.
7420 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
7422 2011-04-29 Richard Guenther <rguenther@suse.de>
7424 * tree-nested.c (get_trampoline_type): Use size_int.
7425 (get_nl_goto_field): Likewise.
7426 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
7428 (lower_eh_constructs_2): Likewise.
7429 (lower_resx): Likewise.
7430 (lower_eh_dispatch): Likewise.
7431 * tree-mudflap.c (mf_build_string): Use size_int.
7432 (mudflap_register_call): Use integer_type_node for the flag.
7433 (mudflap_enqueue_constant): Use size_int.
7434 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
7435 instead of rebuilding it.
7437 2011-04-29 Richard Guenther <rguenther@suse.de>
7439 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
7440 Handle OBJ_TYPE_REF.
7441 (find_func_aliases_for_call): Use it more consistently.
7443 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
7445 * haifa-sched.c (last_nondebug_scheduled_insn): New.
7446 (rank_for_schedule): Use it.
7447 (schedule_block): Set it.
7449 2011-04-28 David Li <davidxl@google.com>
7451 * tree.c (crc32_string): Use crc32_byte.
7452 (crc32_byte): New function.
7453 * tree.h (crc32_byte): New function.
7454 * gcov.c (read_graph_file): Handle new cfg_cksum.
7455 (read_count_file): Ditto.
7456 * profile.c (instrument_values): Ditto.
7457 (get_exec_counts): Ditto.
7458 (read_profile_edge_counts): Ditto.
7459 (compute_branch_probabilities): Ditto.
7460 (compute_value_histograms): Ditto.
7461 (branch_prob): Ditto.
7462 (end_branch_prob): Ditto.
7463 * coverage.c (read_counts_file): Ditto.
7464 (get_coverage_counts): Ditto.
7465 (tree_coverage_counter_addr): Ditto.
7466 (coverage_checksum_string): Ditto.
7467 (coverage_begin_output): Ditto.
7468 (coverage_end_function): Ditto.
7469 (build_fn_info_type): Ditto.
7470 (build_fn_info_value): Ditto.
7471 * libgcov.c (gcov_exit): Ditto.
7472 * gcov-dump.c (tag_function): Ditto.
7473 (compute_checksum): Remove.
7475 2011-04-29 Alan Modra <amodra@gmail.com>
7477 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7478 unspec plus offset. Tidy macho code.
7480 2011-04-29 Martin Jambor <mjambor@suse.cz>
7482 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
7483 node instead of a decl. Update all callers.
7484 * cgraph.h: Update declaration.
7486 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
7488 PR tree-optimization/48765
7489 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
7490 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
7491 to indicate if loop aware SLP is being used. Scan the statements
7492 and update the vectorization factor according to the type of
7493 vectorization before statement analysis.
7494 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
7495 pass it to vect_analyze_loop_operations.
7496 (vectorizable_reduction): Set number of copies to 1 in case of pure
7498 * tree-vect-stmts.c (vectorizable_conversion,
7499 vectorizable_assignment, vectorizable_shift,
7500 vectorizable_operation, vectorizable_type_demotion,
7501 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
7503 (vectorizable_condition): Move the check that it is not SLP
7504 vectorization before the number of copies check.
7505 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
7506 to vectorize the loop using SLP.
7508 2011-04-28 Jakub Jelinek <jakub@redhat.com>
7511 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
7514 2011-04-28 Joseph Myers <joseph@codesourcery.com>
7516 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
7517 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
7518 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7519 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7520 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
7522 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
7523 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7524 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7525 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7526 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7527 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
7529 * config/i386/linux.h (REG_NAME): Don't define.
7530 * config/i386/linux64.h (REG_NAME): Don't define.
7531 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
7532 Undefine before defining.
7534 2011-04-28 Jan Hubicka <jh@suse.cz>
7536 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
7537 nonconstant_names array.
7538 (estimate_function_body_sizes): Build nonconstant_names array; handle
7539 BUILT_IN_CONSTANT_P.
7541 2011-04-28 Richard Guenther <rguenther@suse.de>
7545 2011-04-28 Richard Guenther <rguenther@suse.de>
7547 * tree-ssa-structalias.c (solve_constraints): Build succ graph
7548 as late as possible.
7550 2011-04-28 Richard Guenther <rguenther@suse.de>
7552 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
7553 (debug_constraint): Do it here.
7554 (dump_constraints): And here.
7555 (rewrite_constraints): And here.
7556 (dump_constraint_edge): Remove.
7557 (dump_constraint_graph): Rewrite to produce DOT output.
7558 (solve_constraints): Build succ graph as late as possible.
7559 Dump constraint graphs before and after solving.
7561 2011-04-28 Richard Guenther <rguenther@suse.de>
7563 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7564 New function split out from ...
7565 (find_func_aliases): ... here. Call it.
7566 (find_func_aliases_for_call): Likewise.
7568 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
7570 * internal-fn.h (internal_fn_name_array): Declare.
7571 (internal_fn_flags_array): Likewise.
7573 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
7575 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
7576 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
7578 (ssemodefsuffix): Remove.
7579 (ssevecmodesuffix): New mode attribute.
7580 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
7581 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
7582 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
7583 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
7584 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
7585 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
7586 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
7587 ssemodesuffix mode attribute.
7588 (float splitters): Use ssevecmodesuffix mode attribute.
7589 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
7590 (sseinsmode): Rename from avxvecmode.
7591 (avxsizesuffix): Rename from avxmodesuffix.
7592 (sseintvecmode): Rename from avxpermvecmode.
7593 (ssedoublevecmode): Rename from ssedoublesizemode.
7594 (ssehalfvecmode): Rename from avxhalfvecmode.
7595 (ssescalarmode): Rename from avxscalarmode.
7596 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
7597 templates for ssemodesuffix mode attribute.
7598 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
7601 Adjust RTX patterns globally for renamed mode attributes.
7603 2011-04-27 Jan Hubcika <jh@suse.cz>
7605 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
7606 * ipa-inline-analysis.c: Include alloc-pool.h.
7607 (edge_predicate_pool): New.
7608 (trye_predicate_p): New function
7609 (false_predicate_p): New function.
7610 (add_clause): Sanity check that false clauses are "optimized";
7611 never add clauses to predicate that is already known to be false.
7612 (and_predicate): Use flase_predicate_p.
7613 (evaulate_predicate): Rename to ...
7614 (evaluate_predicate): ... this one; update all callers; assert
7615 that false is not listed among possible truths.
7616 (dump_predicate): Use true_predicate_p.
7617 (account_size_time): Use false_predicate_p.
7618 (evaulate_conditions_for_edge): Rename to ...
7619 (evaluate_conditions_for_edge) ... this one.
7620 (edge_set_predicate): New function.
7621 (inline_edge_duplication_hook): Duplicate edge predicates.
7622 (inline_edge_removal_hook): Free edge predicates.
7623 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
7624 (dump_inline_summary): Update.
7625 (estimate_function_body_sizes): Set edge predicates.
7626 (estimate_calls_size_and_time): Handle predicates.
7627 (estimate_callee_size_and_time): Update.
7628 (remap_predicate): Add toplev_predicate; update comment.
7629 (remap_edge_predicates): New function.
7630 (inline_merge_summary): Compute toplev predicate; update.
7631 (read_predicate): New function.
7632 (read_inline_edge_summary): Use it.
7633 (inline_read_section): Likewise.
7634 (write_predicate): New function.
7635 (write_inline_edge_summary): Use it.
7636 (inline_write_summary): Likewise.
7637 (inline_free_summary): Free alloc pool and edge summary vec.
7639 2011-04-27 Richard Guenther <rguenther@suse.de>
7641 * tree-ssa-structalias.c (changed_count): Remove.
7642 (changed): Use a bitmap.
7643 (unify_nodes): Adjust.
7644 (do_sd_constraint): Likewise.
7645 (do_ds_constraint): Likewise.
7646 (do_complex_constraint): Likewise.
7647 (solve_graph): Likewise.
7649 2011-04-27 Jan Hubicka <jh@suse.cz>
7651 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
7653 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
7655 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
7656 (avx_vperm2f128_*_operand): Ditto.
7657 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
7658 Use avx_vpermilp_parallel in insn condition.
7659 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
7660 Use avx_vperm2f128_parallel in insn condition.
7662 2011-04-27 Richard Guenther <rguenther@suse.de>
7664 * Makefile.in (tree-ssa-structalias.o): Remove
7665 gt-tree-ssa-structalias.h dependency.
7666 (GTFILES): Remove tree-ssa-structalias.c.
7667 * tree.c (allocate_decl_uid): New function.
7668 (make_node_stat): Use it.
7669 (copy_node_stat): Likewise.
7670 * tree.h (allocate_decl_uid): Declare.
7671 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
7672 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
7673 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
7674 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7675 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
7676 (struct heapvar_map): Likewise.
7677 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
7678 heapvar_insert): Likewise.
7679 (make_heapvar_for): Rename to ...
7680 (make_heapvar): ... this. Simplify.
7681 (fake_var_decl_obstack): New global var.
7682 (build_fake_var_decl): New function.
7683 (make_constraint_from_heapvar): Adjust.
7684 (handle_lhs_call): Likewise.
7685 (create_function_info_for): Likewise.
7686 (intra_create_variable_infos): Likewise.
7687 (init_alias_vars): Allocate fake_var_decl_obstack.
7688 (init_alias_heapvars, delete_alias_heapvars): Remove.
7689 (compute_points_to_sets): Do not call init_alias_heapvars.
7690 (ipa_pta_execute): Likewise.
7691 (delete_points_to_sets): Free fake_var_decl_obstack.
7693 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7695 * config/spu/divmovti4.c (union qword_UTItype): New data type.
7696 (si_from_UTItype, si_to_UTItype): New functions.
7697 (__udivmodti4): Use them to implement type-punning.
7698 * config/spu/multi3.c (union qword_TItype): New data type.
7699 (si_from_TItype, si_to_TItype): New functions.
7700 (__multi3): Use them to implement type-punning.
7702 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7704 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
7706 2011-04-27 Jan Hubicka <jh@suse.cz>
7708 * ipa-prop.c (function_insertion_hook_holder): New holder.
7709 (ipa_add_new_function): New function.
7710 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
7711 Register/deregister holder.
7713 2011-04-27 Richard Guenther <rguenther@suse.de>
7715 PR tree-optimization/48772
7716 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
7718 2011-04-27 Richard Guenther <rguenther@suse.de>
7720 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
7721 TARGET_MEM_REF handling.
7723 2011-04-27 Nick Clifton <nickc@redhat.com>
7725 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
7726 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
7727 (REG_CLASS_NAMES): Likewise.
7728 (REG_CLASS_CONTENTS): Likewise.
7729 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
7730 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
7731 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
7732 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
7733 (EVEN_REGS): New macro. Alias for QUAD_REGS.
7734 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
7735 duplicate register classes.
7736 (frv_class_likely_spilled_p): Likewise.
7737 (frv_register_move_cost): Likewise.
7739 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
7740 end of the regno_reg_class array.
7742 2011-04-27 Jakub Jelinek <jakub@redhat.com>
7745 * c-typeck.c (build_binary_op): Don't wrap arguments if
7746 int_operands is true.
7748 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
7751 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
7752 targetm.calls.must_pass_in_stack for void type.
7754 2011-04-26 Jan Hubicka <jh@suse.cz>
7756 * cgraphbuild.c (build_cgraph_edges): Update call
7757 of cgraph_create_edge and cgraph_create_indirect_edge.
7758 * cgraph.c (cgraph_create_edge_including_clones,
7759 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
7760 cgraph_update_edges_for_call_stmt_node): Do not take nest
7761 argument; do not initialize call_stmt_size/time.
7762 (dump_cgraph_node): Do not dump nest.
7763 (cgraph_clone_edge): Do not take loop_nest argument;
7764 do not propagate it; do not clone call_stmt_size/time.
7765 (cgraph_clone_node): Likewise.
7766 (cgraph_create_virtual_clone): Update.
7767 * cgraph.h (struct cgraph_edge): Remove
7768 call_stmt_size/call_stmt_time/loop_nest.
7769 (cgraph_create_edge, cgraph_create_indirect_edge,
7770 cgraph_create_edge_including_clones, cgraph_clone_node): Update
7772 * tree-emutls.c (gen_emutls_addr): Update.
7773 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
7774 loop_nest; handle indirect calls, too.
7775 (clone_inlined_nodes): Do not care about updating inline summaries.
7776 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
7777 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
7778 stream call_stmt_size/call_stmt_time/loop_nest.
7779 * ipa-inline.c (edge_badness): Update.
7780 (ipa_inline): dump summaries after inlining.
7781 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
7783 (inline_edge_summary): New function.
7784 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
7785 (inline_edge_removal_hook): Handle edge summaries.
7786 (inline_edge_duplication_hook): New hook.
7787 (inline_summary_alloc): Alloc hooks.
7788 (initialize_growth_caches): Do not register removal hooks.
7789 (free_growth_caches); Do not free removal hook.
7790 (dump_inline_edge_summary): New function.
7791 (dump_inline_summary): Use it.
7792 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
7793 (inline_update_callee_summaries): New function.
7794 (inline_merge_summary): Use it.
7795 (do_estimate_edge_time, do_estimate_edge_growth): Update.
7796 (read_inline_edge_summary): New function.
7797 (inline_read_section): Use it.
7798 (write_inline_edge_summary): New function.
7799 (inline_write_summary): Use it.
7800 (inline_free_summary): Free edge new holders.
7801 * tree-inline.c (copy_bb): Update.
7803 2011-04-26 Jason Merrill <jason@redhat.com>
7805 * tree-eh.c (lower_try_finally_switch): Create the label along with
7806 the CASE_LABEL_EXPR.
7808 2011-04-26 David S. Miller <davem@davemloft.net>
7809 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7811 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
7812 * configure: Regenerate.
7814 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
7817 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
7819 (VEC_reduc): New code iterator and splitters for vector reduction.
7820 (VEC_reduc_name): Ditto.
7821 (VEC_reduc_rtx): Ditto.
7822 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
7823 (reduc_<VEC_reduc_name>_v4sf): Ditto.
7825 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7826 support for extracting SF on VSX.
7828 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
7829 generating xscvspdp.
7830 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
7831 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
7832 double add, minimum, maximum vector reduction.
7833 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
7834 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
7835 optimize double vector reduction.
7836 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
7838 2011-04-26 Joseph Myers <joseph@codesourcery.com>
7840 * config/fr30/fr30.h (inhibit_libc): Don't define.
7841 * config/m32r/m32r-protos.h: Correct comment.
7842 * config/v850/v850.h (GHS_default_section_names,
7843 GHS_current_section_names): Use tree, not union tree_node *.
7845 2011-04-26 Xinliang David Li <davidxl@google.com>
7847 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
7848 * c-family/c-opts.c (c_common_handle_option): Set
7849 warn_maybe_uninitialized.
7850 * opts.c (common_handle_option): Ditto.
7851 * common.opt: New option.
7852 * tree-ssa.c (warn_uninit): Add one more parameter.
7853 (warn_uninitialized_var): Pass warning code.
7854 * tree-flow.h: Interface change.
7856 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7858 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
7859 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
7860 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
7862 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7864 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
7865 * config/mips/mips.opt (mmips-tfile): Remove.
7867 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
7868 mips-tdump reference to ...
7869 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
7870 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
7871 reference by Tru64 UNIX.
7873 2011-04-26 Jakub Jelinek <jakub@redhat.com>
7876 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
7877 is error_mark_node, set value to NULL.
7879 PR tree-optimization/48734
7880 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
7881 if return value from maybe_fold_*_comparsions isn't something
7882 the code is prepared to handle.
7884 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
7886 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
7888 (ext_QIreg_nomode_operands): Remove.
7889 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
7893 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
7895 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
7897 2011-04-26 Richard Guenther <rguenther@suse.de>
7899 * c-typeck.c (build_unary_op): Do not expand array-refs via
7900 pointer arithmetic. Only adjust qualifiers for function types.
7902 2011-04-26 Richard Guenther <rguenther@suse.de>
7905 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
7906 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
7907 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
7908 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
7910 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
7912 * doc/extend.texi: Document __underlying_type.
7914 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
7916 * config/rs6000/titan.md (automata_option "progress"): Remove.
7918 2011-04-25 Jeff Law <law@redhat.com>
7920 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
7922 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7924 * system.h (ENUM_BITFIELD): Remove.
7926 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
7927 Eric Botcazou <ebotcazou@adacore.com>
7929 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
7930 for STORE_FLAG_VALUE==-1 case.
7932 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
7935 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
7936 LEGITIMATE_PIC_OPERAND_P.
7938 2011-04-24 Jan Hubicka <jh@suse.cz>
7940 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
7942 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
7943 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
7944 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
7945 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
7946 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
7947 Sanity check predicate length.
7948 (remap_predicate): Likewise; sanity check jump functions.
7949 (inline_read_section, inline_write_summary): Sanity check
7952 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7955 * doc/extend.texi (Type Traits): Document __is_standard_layout,
7956 __is_literal_type, and __is_trivial; update throughout about
7957 possibly cv-qualified void types.
7959 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
7961 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
7962 testsuite and make it version agnostic.
7964 2011-04-22 Jan Hubicka <jh@suse.cz>
7966 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
7968 2011-04-23 Jakub Jelinek <jakub@redhat.com>
7971 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
7972 to VOID_TYPE even around MODIFY_EXPR.
7974 2011-04-22 Mike Stump <mikestump@comcast.net>
7976 * gensupport.c (read_md_rtx): Fix typo in comment.
7977 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
7980 2011-04-22 Jan Hubicka <jh@suse.cz>
7982 * gengtype.c (open_base_files): Add ipa-inline.h include.
7983 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
7984 ipa-prop.c; update all uses.
7985 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
7986 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
7987 merge summary of inlined function into former caller.
7988 * ipa-inline.c (max_benefit): Remove.
7989 (edge_badness): Compensate for removal of benefits.
7990 (update_caller_keys): Use
7991 reset_node_growth_cache/reset_edge_growth_cache.
7992 (update_callee_keys): Likewise.
7993 (update_all_callee_keys): Likewise.
7994 (inline_small_functions): Do not collect max_benefit; do not reset
7995 estimated_growth; call free_growth_caches and initialize_growth_caches.
7996 * ipa-inline.h (struct condition, type clause_t, struct predicate,
7997 struct size_time_entry): New structures.
7998 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
7999 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
8000 and estimated_growth.
8001 (edge_growth_cache_entry): New structure.
8002 (node_growth_cache, edge_growth_cache): New global vars.
8003 (estimate_growth): Turn into inline.
8004 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
8005 initialize_growth_caches, free_growth_caches): Declare.
8006 (estimate_edge_growth): Rewrite.
8007 (estimate_edge_time): Implement as inline cache lookup.
8008 (reset_node_growth_cache, reset_edge_growth_cache): New inline
8010 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
8011 (NUM_CONDITIONS): New constant.
8012 (predicate_conditions): New enum.
8013 (IS_NOT_CONSTANT): New constant.
8014 (edge_removal_hook_holder): New var.
8015 (node_growth_cache, edge_growth_cache): New global vars.
8016 (true_predicate, single_cond_predicate, false_predicate,
8017 not_inlined_predicate, add_condition, add_clause, and_predicates,
8018 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
8019 dump_clause, dump_predicate, account_size_time,
8020 evaulate_conditions_for_edge): New functions.
8021 (inline_summary_alloc): Move to heap.
8022 (inline_node_removal_hook): Clear condition and entry vectors.
8023 (inline_edge_removal_hook): New function.
8024 (initialize_growth_caches, free_growth_caches): New function.
8025 (dump_inline_summary): Update.
8026 (edge_execution_predicate): New function.
8027 (will_be_nonconstant_predicate): New function.
8028 (estimate_function_body_sizes): Compute BB and constantness predicates.
8029 (compute_inline_parameters): Do not clear estimated_growth.
8030 (estimate_edge_size_and_time): New function.
8031 (estimate_calls_size_and_time): New function.
8032 (estimate_callee_size_and_time): New function.
8033 (remap_predicate): New function.
8034 (inline_merge_summary): New function.
8035 (do_estimate_edge_time): New function based on...
8036 (estimate_edge_time): ... this one.
8037 (do_estimate_edge_growth): New function.
8038 (do_estimate_growth): New function based on....
8039 (estimate_growth): ... this one.
8040 (inline_analyze_function): Analyze after deciding on jump functions.
8041 (inline_read_section): New function.
8042 (inline_read_summary): Use it.
8043 (inline_write_summary): Write all the new data.
8044 * ipa-prop.c (ipa_get_param_decl_index): Export.
8045 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
8046 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
8048 (ipa_get_lattice): Move here from ipa-cp.c
8049 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
8050 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
8051 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
8052 cgraph_edge_inlinable_p): Remove.
8053 * cgraphunit.c: Include ipainline.h
8054 (cgraph_process_new_functions): Update call of
8055 compute_inline_parameters.
8057 2011-04-22 Richard Guenther <rguenther@suse.de>
8059 * tree.c (build_int_cst): Properly create canonicalized integer
8061 (build_int_cst_type): Remove scary comments.
8063 2011-04-22 Xinliang David Li <davidxl@google.com>
8065 * toplev.c (process_options): Enable -Werror=coverage-mismatch
8066 by default when -Wno-error is not specified.
8067 * opts-global.c (decode_options): Remove call to
8068 control_warning_options.
8070 2011-04-22 Jakub Jelinek <jakub@redhat.com>
8072 PR tree-optimization/48717
8073 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
8074 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
8076 2011-04-22 Joseph Myers <joseph@codesourcery.com>
8078 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
8079 definition where used.
8081 2011-04-22 Jakub Jelinek <jakub@redhat.com>
8084 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
8085 TREE_STATIC variables declared inside of some OpenMP construct.
8087 2011-04-22 Martin Jambor <mjambor@suse.cz>
8090 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
8092 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
8095 * c-typeck.c (pop_init_level): Do not warn about initializing
8098 2011-04-22 Alan Modra <amodra@gmail.com>
8100 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
8101 when returning call_cookie.
8102 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
8103 pointers, to functions with no more vector args than the current
8104 function, and some non-local calls for ABI_V4.
8105 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
8106 sibcall_nonlocal_aix64): Combine to ..
8107 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
8108 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
8109 (sibcall_value_nonlocal_aix<mode>): ..likewise.
8110 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
8111 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
8113 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
8114 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
8115 sibcall_value_symbolic_64): Delete.
8117 2011-04-21 Xinliang David Li <davidxl@google.com>
8119 * cgraph.h: Remove pid.
8120 * cgraph.c: Remove pid.
8121 * value-prof.c (init_node_map): New function.
8122 (del_node_map): New function.
8123 (find_func_by_funcdef_no): New function.
8124 (gimple_ic_transform): Call new function.
8125 * cgraphunit.c (cgraph_finalize_function): Remove pid.
8126 * function.c (get_last_funcdef_no): New function.
8127 * function.h (get_last_funcdef_no): New function.
8128 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
8129 to libgcov function.
8130 (tree-profiling): Call node map init and delete function.
8132 2011-04-21 Ian Lance Taylor <iant@google.com>
8134 * godump.c (go_format_type): Use exported Go name for anonymous
8137 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8139 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
8140 Call builtin_function_type_list instead of builtin_function_type.
8141 (UNARY, BINARY, TRINARY, QUAD): Likewise.
8143 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8145 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
8146 build_function_type_list instead of build_function_type.
8147 Delete variable `endlink'.
8149 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8151 * config/s390/s390.c (s390_init_builtins): Call
8152 build_function_type_list instead of build_function_type.
8154 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8156 * config/ia64/ia64.c (ia64_init_builtins): Call
8157 build_function_type_list instead of builtin_function_type.
8159 2011-04-21 Easwaran Raman <eraman@google.com>
8161 * cfgexpand.c (stack_var): Remove OFFSET...
8162 (add_stack_var): ...and its reference here...
8163 (expand_stack_vars): ...and here.
8164 (stack_var_cmp): Sort by descending order of size.
8165 (partition_stack_vars): Change heuristic.
8166 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
8167 (dump_stack_var_partition): Add newline after each partition.
8169 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
8170 Jeff Law <law@redhat.com>
8172 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
8173 * gengtype.c (matching_file_name_substitute): Likewise.
8175 2011-04-21 Richard Guenther <rguenther@suse.de>
8178 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
8180 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
8182 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
8184 2011-04-21 Richard Guenther <rguenther@suse.de>
8186 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
8189 2011-04-21 Richard Guenther <rguenther@suse.de>
8191 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
8192 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
8193 Use DECL_P, not SSA_VAR_P.
8194 (ptr_derefs_may_alias_p): Likewise.
8195 (ptr_deref_may_alias_ref_p_1): Likewise.
8196 (decl_refs_may_alias_p): Likewise.
8197 (refs_may_alias_p_1): Likewise.
8198 (ref_maybe_used_by_call_p_1): Likewise.
8199 (call_may_clobber_ref_p_1): Likewise.
8200 (indirect_ref_may_alias_decl_p): Assume indirect refrences
8201 are either MEM_REF or TARGET_MEM_REF.
8202 (indirect_refs_may_alias_p): Likewise.
8203 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
8204 for MEM_EXPR of indirect calls.
8206 2011-04-21 Tristan Gingold <gingold@adacore.com>
8208 * vmsdbgout.c (write_srccorr): Compute file length from the string.
8209 (dst_file_info_struct): Remove flen field.
8210 (lookup_filename): Remove code that set flen field.
8212 2011-04-21 Tristan Gingold <gingold@adacore.com>
8214 * config/ia64/ia64.c (ia64_start_function): Add a guard.
8216 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
8219 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
8220 vec_extract and vec_concat for non-SSE4_1 targets.
8222 2011-04-21 Richard Guenther <rguenther@suse.de>
8224 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
8227 2011-04-21 Joseph Myers <joseph@codesourcery.com>
8229 * config/i386/cygming.h (union tree_node, TREE): Don't define or
8231 (FILE): Don't undefine.
8233 2011-04-21 Joseph Myers <joseph@codesourcery.com>
8235 * config/alpha/alpha.c (struct machine_function): Use rtx, not
8237 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
8239 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
8240 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
8241 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
8243 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
8244 definitions where used.
8245 * config/microblaze/microblaze.h (struct microblaze_args): Use
8246 rtx, not struct rtx_def *.
8247 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
8249 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
8250 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
8251 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
8252 not struct rtx_def *.
8253 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
8255 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
8257 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
8259 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8261 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
8262 operand_equal_p to compare DR_BASE_ADDRESSes.
8263 (vect_check_interleaving): Likewise.
8265 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8268 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
8269 for all Neon struct constants.
8271 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8273 * target.def (legitimate_constant_p): New hook.
8274 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
8275 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
8276 * doc/tm.texi: Regenerate.
8277 * hooks.h (hook_bool_mode_rtx_true): Declare.
8278 * hooks.c (hook_bool_mode_rtx_true): Define.
8279 * system.h (LEGITIMATE_CONSTANT_P): Poison.
8280 * calls.c (precompute_register_parameters): Replace uses of
8281 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
8282 (emit_library_call_value_1): Likewise.
8283 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
8284 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
8285 * ira-costs.c (scan_one_insn): Likewise.
8286 * recog.c (general_operand, immediate_operand): Likewise.
8287 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
8288 * reload1.c (init_eliminable_invariants): Likewise.
8290 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
8292 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
8293 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
8295 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8296 * config/alpha/predicates.md (input_operand): Update call to
8297 alpha_legitimate_constant_p.
8299 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
8300 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
8301 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
8302 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8303 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
8304 (arm_legitimate_constant_p): New functions.
8305 (arm_cannot_force_const_mem): Make static.
8307 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
8309 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
8310 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
8311 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
8312 instead of bfin_legitimate_constant_p.
8313 (bfin_legitimate_constant_p): Make static. Add a mode argument.
8314 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8316 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
8318 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
8320 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
8321 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
8322 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8323 (frv_legitimate_constant_p): Make static. Add a mode argument.
8325 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
8326 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
8327 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
8329 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
8330 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
8331 * config/i386/i386.c (legitimate_constant_p): Rename to...
8332 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
8334 (ix86_cannot_force_const_mem): Update accordingly.
8335 (ix86_legitimate_address_p): Likewise.
8336 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8337 * config/i386/i386.md: Update commentary.
8339 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
8340 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
8341 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8342 (ia64_legitimate_constant_p): Make static. Add a mode argument.
8344 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
8346 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
8347 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
8348 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8349 (lm32_legitimate_constant_p): Make static. Add a mode argument.
8351 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
8352 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
8353 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
8355 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
8356 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8357 (m32r_legitimate_constant_p): New function.
8359 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
8360 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
8361 LEGITIMATE_CONSTANT_P.
8362 (LEGITIMATE_CONSTANT_P): Delete.
8363 * config/m68k/m68k.c (m68k_expand_prologue): Call
8364 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
8365 (m68k_legitimate_constant_p): New function.
8366 * config/m68k/m68k.md: Update comments.
8368 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
8369 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8370 (mcore_legitimate_constant_p): New function.
8372 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
8373 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
8374 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
8375 Add a mode argument.
8376 (mep_legitimate_address): Update accordingly.
8377 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8379 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
8381 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
8382 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
8383 static. Check OP's mode for VOIDmode.
8384 (microblaze_legitimate_constant_p): New function.
8385 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8387 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
8388 * config/mips/mips.c (mips_legitimate_constant_p): New function.
8389 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
8390 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8391 * config/mips/predicates.md: Update comments.
8393 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
8394 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
8395 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8396 (mmix_legitimate_constant_p): Make static, return a bool, and take
8398 (mmix_print_operand_address): Update accordingly.
8400 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
8402 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
8403 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
8404 static. Add a mode argument.
8405 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8407 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
8409 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
8410 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8411 (pa_legitimate_constant_p): New function.
8413 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
8415 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
8416 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8417 (pdp11_legitimate_constant_p): New function.
8419 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
8420 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8421 (rs6000_legitimate_constant_p): New function.
8423 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
8424 (rx_legitimate_constant_p): ...this.
8425 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
8426 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
8427 (rx_legitimate_constant_p): ...this.
8428 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8429 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
8431 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
8432 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
8433 * config/s390/s390.c (legitimate_constant_p): Rename to...
8434 (s390_legitimate_constant_p): ...this. Make static, return a bool,
8435 and add a mode argument.
8436 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8438 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
8440 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
8441 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8442 (sh_legitimate_constant_p): New function.
8444 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
8445 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
8446 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8447 (legitimate_constant_p): Rename to...
8448 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
8450 (constant_address_p): Update accordingly.
8452 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
8453 argument and return a bool.
8454 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
8455 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8456 (spu_legitimate_constant_p): Add a mode argument and return a bool.
8457 (spu_rtx_costs): Update accordingly.
8458 * config/spu/predicates.md (vec_imm_operand): Likewise.
8460 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
8462 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
8463 * config/v850/v850.c (v850_legitimate_constant_p): New function.
8464 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8466 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
8467 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
8468 * config/vax/vax.c (legitimate_constant_p): Likewise.
8470 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
8471 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8472 (xtensa_legitimate_constant_p): New function.
8474 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8476 * target.def (cannot_force_const_mem): Add a mode argument.
8477 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
8478 * doc/tm.texi: Regenerate.
8479 * hooks.h (hook_bool_mode_rtx_false): Declare.
8480 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
8481 (hook_bool_mode_const_rtx_true): Likewise.
8482 (hook_bool_mode_rtx_false): New function.
8483 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
8484 to be non-VOID. Update call to cannot_force_const_mem.
8485 (find_reloads): Update accordingly.
8486 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
8487 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
8489 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
8490 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
8491 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
8492 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
8493 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
8494 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
8495 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
8496 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8497 (m68k_cannot_force_const_mem): ...this new function.
8498 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
8500 (mips_const_insns, mips_legitimize_const_move): Update calls.
8501 (mips_secondary_reload_class): Likewise.
8502 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8503 (pa_cannot_force_const_mem): ...this new function.
8504 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
8505 (rs6000_cannot_force_const_mem): ...this new function.
8506 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
8508 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
8509 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
8511 (xtensa_cannot_force_const_mem): ...this new function.
8513 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8515 * config/mips/mips.c (mips16_build_function_stub): Call
8516 build_function_type_list instead of build_function_type.
8517 (mips16_build_call_stub): Likewise.
8519 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8521 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
8522 instead of build_function_type.
8524 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8526 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
8527 instead of build_function_type.
8529 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
8532 * config/i386/i386.md (insv): Change operand 0 constraint to
8533 "register_operand". Change operand 1 and 2 constraint to
8534 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
8535 * config/i386/sse.md (sse4_1_pinsrb): Export.
8536 (sse2_pinsrw): Ditto.
8537 (sse4_1_pinsrd): Ditto.
8538 (sse4_1_pinsrq): Ditto.
8539 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
8540 * config/i386/i386.c (ix86_expand_pinsr): New.
8542 2011-04-20 Easwaran Raman <eraman@google.com>
8544 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
8545 containing union type only with -fstrict-aliasing.
8547 2011-04-20 Jim Meyering <meyering@redhat.com>
8549 Remove useless if-before-free tests.
8550 * calls.c (expand_call, save_area): Likewise.
8551 * cfgcleanup.c (try_forward_edges): Likewise.
8552 * collect2.c (collect_execute): Likewise.
8553 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
8554 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
8555 * coverage.c (coverage_checksum_string): Likewise.
8556 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
8557 * cselib.c (cselib_init): Likewise.
8558 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
8559 (df_set_clean_cfg): Likewise.
8560 * function.c (free_after_compilation): Likewise.
8561 * gcc.c (do_spec_1, main): Likewise.
8562 * gcov.c (create_file_names): Likewise.
8563 * gensupport.c (identify_predicable_attribute): Likewise.
8564 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
8565 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
8566 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
8567 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
8568 * ipa-pure-const.c (local_pure_const): Likewise.
8569 * ipa-reference.c (propagate): Likewise.
8570 * ira-costs.c (free_ira_costs): Likewise.
8571 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
8572 * matrix-reorg.c (mat_free): Likewise.
8573 * prefix.c (get_key_value): Likewise.
8574 * profile.c (compute_value_histograms): Likewise.
8575 * reload1.c (free_reg_equiv): Likewise.
8576 * sched-deps.c (free_deps): Likewise.
8577 * sel-sched-ir.c (fence_clear): Likewise.
8578 * sese.c (set_rename, if_region_set_false_region): Likewise.
8579 * tree-data-ref.c (free_rdg): Likewise.
8580 * tree-eh.c (lower_try_finally): Likewise.
8581 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
8582 * tree-ssa-live.c (delete_var_map): Likewise.
8583 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
8584 * tree-ssa-pre.c (phi_trans_add): Likewise.
8586 2011-04-20 Jakub Jelinek <jakub@redhat.com>
8588 PR tree-optimization/48611
8589 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
8590 beyond ERT_MUST_NOT_THROW region.
8592 2011-04-20 Catherine Moore <clm@codesourcery.com>
8594 * config/mips/mips.opt (mfix-24k): New.
8595 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
8596 * config/mips/mips.md (length): Increase by 4 for stores if
8598 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
8599 all noreorder if fixing 24K errata.
8600 * doc/invoke.texi: Document mfix-24k.
8602 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
8604 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
8605 quad-word modes, reduce to 9-bit index range when above 1016 limit.
8607 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
8609 * config/arm/arm.c (arm_gen_constant): Move movw support ....
8610 (const_ok_for_op): ... to here.
8612 2011-04-20 Kai Tietz <ktietz@redhat.com>
8614 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
8615 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
8617 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
8619 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
8621 2011-04-20 Richard Guenther <rguenther@suse.de>
8623 PR tree-optimization/47892
8624 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
8627 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
8629 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
8631 2011-04-20 Tristan Gingold <gingold@adacore.com>
8633 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
8635 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
8639 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
8640 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
8641 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
8642 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
8643 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
8645 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
8648 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
8649 (avr_asm_named_section, avr_asm_output_aligned_common,
8650 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
8651 New functions to update...
8652 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
8653 (avr_asm_init_sections): Overwrite section callbacks for
8654 data_section, bss_section.
8655 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
8657 (avr_file_end): ...here.
8659 2011-04-20 Richard Guenther <rguenther@suse.de>
8662 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
8663 objects and types here. Adjust for their offset before comparing.
8665 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
8667 * tree-vect-stmts.c (vectorizable_store): Only chain one related
8670 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
8672 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
8673 (GIMPLE_H): Include $(INTERNAL_FN_H).
8674 (OBJS-common): Add internal-fn.o.
8675 (internal-fn.o): New rule.
8676 * internal-fn.def: New file.
8677 * internal-fn.h: Likewise.
8678 * internal-fn.c: Likewise.
8679 * gimple.h: Include internal-fn.h.
8680 (GF_CALL_INTERNAL): New gf_mask.
8681 (gimple_statement_call): Put fntype into a union with a new
8683 (gimple_build_call_internal): Declare.
8684 (gimple_build_call_internal_vec): Likewise.
8685 (gimple_call_same_target_p): Likewise.
8686 (gimple_call_internal_p): New function.
8687 (gimple_call_internal_fn): Likewise.
8688 (gimple_call_fntype): Return null for internal calls.
8689 (gimple_call_set_fntype): Assert that the function is not internal.
8690 (gimple_call_set_fn): Likewise.
8691 (gimple_call_set_fndecl): Likewise.
8692 (gimple_call_set_internal_fn): New function.
8693 (gimple_call_addr_fndecl): Handle null functions.
8694 (gimple_call_return_type): Likewise null types.
8695 * gimple.c (gimple_build_call_internal_1): New function.
8696 (gimple_build_call_internal): Likewise.
8697 (gimple_build_call_internal_vec): Likewise.
8698 (gimple_call_same_target_p): Likewise.
8699 (gimple_call_flags): Handle calls to internal functions.
8700 (gimple_call_fnspec): New function.
8701 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
8702 (gimple_has_side_effects): Handle null functions.
8703 (gimple_rhs_has_side_effects): Likewise.
8704 (gimple_call_copy_skip_args): Handle calls to internal functions.
8705 * cfgexpand.c (expand_call_stmt): Likewise.
8706 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
8707 * gimple-fold.c (gimple_fold_call): Handle null functions.
8708 (gimple_fold_stmt_to_constant_1): Don't fold
8709 calls to internal functions.
8710 * gimple-low.c (gimple_check_call_args): Handle calls to internal
8712 * gimple-pretty-print.c (dump_gimple_call): Likewise.
8713 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
8714 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
8715 (do_warn_unused_result): Likewise.
8716 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
8717 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
8718 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
8719 the target of a call.
8720 (initialize_hash_element): Update accordingly.
8721 (hashable_expr_equal_p): Use gimple_call_same_target_p.
8722 (iterative_hash_hashable_expr): Handle calls to internal functions.
8723 (print_expr_hash_elt): Likewise.
8724 * tree-ssa-pre.c (can_value_number_call): Likewise.
8725 (eliminate): Handle null functions.
8726 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
8727 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
8728 (find_func_aliases): Likewise.
8729 * value-prof.c (gimple_ic_transform): Likewise.
8730 (gimple_indirect_call_to_profile): Likewise.
8731 * lto-streamer-in.c (input_gimple_stmt): Likewise.
8732 * lto-streamer-out.c (output_gimple_stmt): Likewise.
8734 2011-04-19 Jan Hubicka <jh@suse.cz>
8736 * ipa-inline-transform.c (save_inline_function_body): Add comments.
8737 * ipa-inline.c (inline_small_functions): Compute summaries first,
8738 populate heap later.
8740 2011-04-19 Jan Hubicka <jh@suse.cz>
8742 * cgraph.h (save_inline_function_body): Remove.
8743 * ipa-inline-transform.c: New file, broke out of...
8744 * ipa-inline.c: ... this one; Update toplevel comment.
8745 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
8747 (update_noncloned_frequencies): Move to ipa-inline-transform.c
8748 (cgraph_mark_inline_edge): Rename to inline_call; move to
8749 ipa-inline-transform.c.
8750 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
8751 move to ipa-inline-transform.c
8752 (recursive_inlining, inline_small_functions, flatten_function,
8753 ipa_inline, inline_always_inline_functions,
8754 early_inline_small_functions): Update.
8755 (inline_transform): Move to ipa-inline-transform.c.
8756 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
8758 * Makefile.in (ipa-inline-transform.o): New file.
8759 * cgraphunit.c (save_inline_function_body): Move to
8760 ipa-inline-transform.c
8762 2011-04-19 DJ Delorie <dj@redhat.com>
8764 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
8765 registers if we already know there aren't any.
8766 (m32c_emit_epilogue): Don't emit a barrier here.
8767 (m32c_emit_eh_epilogue): Likewise.
8768 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
8769 operands at expand time.
8770 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
8772 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
8773 duplicates. Provide aliases instead.
8774 * config/m32c/prologue.md (eh_return): Emit a barrier here.
8775 (eh_epilogue): Add a "(return)" here as a hint to other parts of
8778 2011-04-19 Anatoly Sokolov <aesok@post.ru>
8780 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
8781 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
8782 (general_or_i64_p, sparc_register_move_cost): New function.
8784 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8786 * doc/install.texi (Configuration, --enable-threads): Remove mach.
8787 Add lynx, mipssde. Sort table.
8789 2011-04-19 Xinliang David Li <davidxl@google.com>
8791 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
8794 2011-04-19 Jakub Jelinek <jakub@redhat.com>
8797 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
8798 is a SUBREG with non-MODE_INT mode inside of it.
8800 2011-04-19 Martin Jambor <mjambor@suse.cz>
8802 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
8803 also according to actual contants.
8804 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
8805 (gimple_fold_call): Use it.
8806 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
8808 2011-04-19 Martin Jambor <mjambor@suse.cz>
8810 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
8811 non-pointer assignments.
8813 2011-04-19 Martin Jambor <mjambor@suse.cz>
8815 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
8816 account anc_offset and otr_type from the indirect edge info.
8817 * ipa-prop.c (get_ancestor_addr_info): New function.
8818 (compute_complex_ancestor_jump_func): Assignment analysis moved to
8819 get_ancestor_addr_info, call it.
8820 (ipa_note_param_call): Do not initialize information about polymorphic
8821 calls, return the indirect call graph edge. Remove the last
8822 parameter, adjust all callers.
8823 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
8824 parameters. Initialize polymorphic information in the indirect edge.
8826 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
8829 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
8830 the types if they have different enumeration identifiers.
8832 2011-04-19 Jan Hubicka <jh@suse.cz>
8834 * cgraph.h (cgraph_optimize_for_size_p): Declare.
8835 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
8836 * predict.c (cgraph_optimize_for_size_p): Break out from ...
8837 (optimize_function_for_size_p) ... here.
8839 2011-04-19 Richard Guenther <rguenther@suse.de>
8842 * tree.c (free_lang_data): Do not reset the decl-assembler-name
8845 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
8847 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
8848 if DECL_NO_INLINE_WARNING_P is set on the function.
8850 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
8853 * reload1.c (inc_for_reload): Return void. All callers changed.
8854 (emit_input_reload_insns): Don't try to delete previous output
8855 reloads to a register, or record spill_reg_store for autoincs.
8857 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
8859 * gengtype.h: Updated copyright year.
8860 (struct input_file_st): Add inpisplugin field.
8861 (type_fileloc): New function.
8863 (write_typed_struct_alloc_def): Add gcc_assert.
8864 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
8865 (write_typed_alloc_defns): Don't output for plugin files.
8866 (input_file_by_name): Clear inpisplugin field.
8867 (main): Set inpisplugin field for plugin files.
8869 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
8871 * gengtype-state.c (string_eq): New.
8872 (read_state): Use string_eq instead of strcmp when creating the
8875 2011-04-19 Wei Guozhi <carrot@google.com>
8878 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
8879 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
8881 * config/arm/constraints.md (Uu): New constraint.
8882 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
8884 2011-04-19 Tristan Gingold <gingold@adacore.com>
8886 * config.gcc (-*-*-*vms): Added.
8887 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
8889 * config/vms/vms-ld.c: New file.
8890 * config/vms/vms-ar.c: New file.
8891 * config/vms/t-vmsnative: New file.
8893 2011-04-18 Xinliang David Li <davidxl@google.com>
8895 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
8897 2011-04-18 Jakub Jelinek <jakub@redhat.com>
8900 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
8901 if TREE_TYPE (v) is non-NULL.
8903 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
8904 gimple_get_virt_mehtod_for_binfo.
8905 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
8906 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
8908 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8910 2011-04-18 Michael Matz <matz@suse.de>
8911 Steve Ellcey <sje@cup.hp.com>
8913 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
8914 use its mode as source mode if it isn't VOIDmode.
8916 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
8918 * doc/passes.texi: Fill crossref nodes.
8920 2011-04-18 Jim Meyering <meyering@redhat.com>
8922 Fix doubled-word typos in comments and strings
8923 * config/alpha/vms-unwind.h: s/for for/for/
8924 * config/arm/unwind-arm.h: Likewise.
8925 * config/microblaze/microblaze.c: Likewise.
8926 * config/sh/constraints.md: s/in in/in/
8927 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
8929 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
8931 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
8932 (AVX_FLOAT_MODE_P): Ditto.
8933 (AVX128_VEC_FLOAT_MODE_P): Ditto.
8934 (AVX256_VEC_FLOAT_MODE_P): Ditto.
8935 (AVX_VEC_FLOAT_MODE_P): Ditto.
8936 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
8937 (UNSPEC_MASKSTORE): Ditto.
8938 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
8939 Merge from <sse>_movmsk<ssemodesuffix> and
8940 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
8941 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
8943 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
8944 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
8945 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
8947 2011-04-18 Jan Hubicka <jh@suse.cz>
8949 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
8951 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
8952 (want_inline_function_called_once_p): Break out the logic from
8954 (edge_badness): Ensure that profile is not misupdated.
8955 (lookup_recursive_calls): Prioritize by call frequencies.
8956 (inline_small_functions): Move program size estimates here;
8957 actually process whole queue even when unit growth has been
8958 met. (to properly compute inline_failed reasons and for the
8959 case unit size decrease.) Revisit comments on recursive inlining.
8960 (ipa_inline): Remove unit summary code; first inline hot calls
8961 of functions called once, cold calls next.
8962 (order, nnodes): Remove unused variables.
8963 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
8964 (GTFILES): Remove ipa-inline.c
8965 * sel-sched.c (fill_insns): Silence uninitialized var warning.
8967 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
8969 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
8971 2011-04-18 Jie Zhang <jie@codesourcery.com>
8972 Richard Earnshaw <rearnsha@arm.com>
8974 * arm.c (neon_builtin_type_bits): Remove.
8975 (typedef enum neon_builtin_mode): New.
8976 (T_MAX): Don't define.
8977 (typedef enum neon_builtin_datum): Remove bits, codes[],
8978 num_vars and base_fcode. Add mode, code and fcode.
8979 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
8980 VAR10): Change accordingly.
8981 (neon_builtin_data[]): Change accordingly
8982 (arm_init_neon_builtins): Change accordingly.
8983 (neon_builtin_compare): Remove.
8984 (locate_neon_builtin_icode): Remove.
8985 (arm_expand_neon_builtin): Change accordingly.
8987 * arm.h (enum arm_builtins): Move to ...
8988 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
8990 * arm.c (arm_builtin_decl): Declare.
8991 (TARGET_BUILTIN_DECL): Define.
8992 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
8993 (arm_builtin_decls[]): New.
8994 (arm_init_neon_builtins): Store builtin declarations in
8995 arm_builtin_decls[].
8996 (arm_init_tls_builtins): Likewise.
8997 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
8998 (arm_builtin_decl): New.
9000 2011-04-18 Richard Guenther <rguenther@suse.de>
9002 * tree.c (upper_bound_in_type): Build properly canonicalized
9004 (lower_bound_in_type): Likewise.
9006 2011-04-18 Richard Guenther <rguenther@suse.de>
9008 * gimple.h (gimple_call_addr_fndecl): New function.
9009 (gimple_call_fndecl): Use it.
9010 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
9012 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
9013 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
9015 2011-04-18 Richard Guenther <rguenther@suse.de>
9018 * tree.c (build_string): STRING_CST is now derived from tree_typed.
9020 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
9023 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
9024 DECL_IN_CONSTANT_POOL without RTL.
9026 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
9027 Ira Rosen <ira.rosen@linaro.org>
9030 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
9031 to match neon_vzip/vuzp/vtrn_internal.
9032 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
9033 outputs explicitly dependent on both inputs.
9034 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
9036 2011-04-18 Jakub Jelinek <jakub@redhat.com>
9038 PR tree-optimization/48616
9039 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
9040 whether the shift is by scalar or vector based on whether all SLP
9041 scalar stmts have the same rhs.
9043 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
9045 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
9048 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
9051 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
9054 2011-04-17 Jan Hubicka <jh@suse.cz>
9056 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
9057 * cgrpahunit.c (cgraph_finalize_function): Do not set
9058 finalized_by_frontend.
9059 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9060 finalized_by_frontend.
9062 2011-04-17 Jan Hubicka <jh@suse.cz>
9064 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
9065 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
9066 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
9067 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
9069 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
9071 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
9073 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
9076 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
9077 is non-null before accessing it.
9078 (input_cgraph): Remove trailing spaces.
9080 2011-04-17 Revital Eres <revital.eres@linaro.org>
9082 * params.def (sms-min-sc): New param flag.
9083 * modulo-sched.c (sms_schedule): Use it.
9084 * doc/invoke.texi (sms-min-sc): Document it.
9086 2011-04-17 Jan Hubicka <jh@suse.cz>
9088 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
9089 present, also set gimple_call_set_cannot_inline.
9090 * ipa-inline.c: Update toplevel comment.
9092 (cgraph_clone_inlined_nodes): Fix linebreaks.
9093 (cgraph_check_inline_limits): Restructure to ...
9094 (caller_growth_limits): ... this one; be more tolerant
9095 on growth in nested inline chains; add explanatory comment;
9096 fix stack accounting thinko introduced by previous patch.
9097 (cgraph_default_inline_p): Remove.
9098 (report_inline_failed_reason): New function.
9099 (can_inline_edge_p): New function.
9100 (can_early_inline_edge_p): New function.
9101 (leaf_node_p): Move upwards in file.
9102 (want_early_inline_function_p): New function.
9103 (want_inline_small_function_p): New function.
9104 (want_inline_self_recursive_call_p): New function.
9105 (cgraph_edge_badness): Rename to ...
9106 (edge_badness) ... this one; fix linebreaks.
9107 (update_edge_key): Update call of edge_baddness; add
9108 detailed dump about queue updates.
9109 (update_caller_keys): Use can_inline_edge_p and
9110 want_inline_small_function_p.
9111 (cgraph_decide_recursive_inlining): Rename to...
9112 (recursive_inlining): Use can_inline_edge_p and
9113 want_inline_self_recursive_call_p; simplify and remove no longer
9115 (cgraph_set_inline_failed): Remove.
9116 (add_new_edges_to_heap): Use can_inline_edge_p and
9117 want_inline_small_function_p.
9118 (cgraph_decide_inlining_of_small_functions): Rename to ...
9119 (inline_small_functions): ... this one; cleanup; use
9120 can/want predicates; cleanup debug ouput; work edges till fibheap
9121 is exhausted and do not stop once unit growth is reached; remove
9122 later loop processing remaining edges.
9123 (cgraph_flatten): Rename to ...
9124 (flatten_function): ... this one; use can_inline_edge_p
9125 and can_early_inline_edge_p predicates.
9126 (cgraph_decide_inlining): Rename to ...
9127 (ipa_inline): ... this one; remove unreachable nodes before
9128 inlining functions called once; simplify the pass.
9129 (cgraph_perform_always_inlining): Rename to ...
9130 (inline_always_inline_functions): ... this one; use
9131 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
9132 (cgraph_decide_inlining_incrementally): Rename to ...
9133 (early_inline_small_functions): ... this one; simplify
9134 using new predicates; cleanup; make dumps prettier.
9135 (cgraph_early_inlining): Rename to ...
9136 (early_inliner): newer inline regular functions into always-inlines;
9137 fix updating of call stmt summaries.
9138 (pass_early_inline): Update for new names.
9139 (inline_transform): Fix formating.
9140 (gate_cgraph_decide_inlining): Rename to ...
9141 (pass_ipa_inline): ... this one.
9142 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
9143 * ipa-inline-analysis.c (dump_inline_summary): Update.
9144 (compute_inline_parameters): Do not compute disregard_inline_limits;
9145 look for mismatching arguments.
9146 (estimate_growth): Fix handlig of non-trivial self recursion.
9147 (inline_read_summary): Do not read info->disregard_inline_limits.
9148 (inline_write_summary): Do not write info->disregard_inline_limits.
9149 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
9150 and move all checks into can_inline_edge_p predicate; re-enable code
9151 comparing optimization levels.
9152 (expand_call_inline): Do not test inline_forbidden_into_p.
9153 * Makefile.in (ipa-inline.o): Update arguments.
9155 2011-04-17 Revital Eres <revital.eres@linaro.org>
9157 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
9159 2011-04-17 Revital Eres <revital.eres@linaro.org>
9161 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
9163 2011-04-17 Michael Matz <matz@suse.de>
9165 PR tree-optimization/48622
9167 * ipa-inline-analysis.c (inline_read_summary): Read size/time
9168 in same order as they're written.
9170 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9172 * config/pa/predicates.md: Reorganize and simplify predicates.
9173 Eliminate duplicate code checks.
9174 (arith_operand): Rename to arith14_operand
9175 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
9176 * config/pa/pa.md: Use renamed operands.
9177 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
9178 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
9179 arith11_operand, adddi3_operand, indexed_memory_operand,
9180 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
9181 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
9182 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
9183 move_dest_operand, move_src_operand, prefetch_cc_operand,
9184 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
9185 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
9186 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
9187 div_operand, int5_operand, movb_comparison_operator,
9188 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
9189 arith_double_operand, ireg_operand, lhs_lshift_operand,
9190 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
9191 integer_store_memory_operand): Likewise.
9192 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
9193 (integer_store_memory_operand, read_only_operand,
9194 function_label_operand, borx_reg_operand,
9195 non_hard_reg_operand): Likewise.
9196 (eq_neq_comparison_operator): Delete unused operator.
9197 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
9198 function_label_operand.
9199 (emit_move_sequence): Likewise.
9201 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
9203 * config/i386/sse.md (sseunpackmode): New mode attribute.
9204 (ssepackmode): Ditto.
9205 (vec_pack_trunc_<mode>): Macroize expander from
9206 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
9207 (vec_unpacks_lo_<mode>): Macroize expander from
9208 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9209 (vec_unpacks_hi_<mode>): Macroize expander from
9210 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9211 (vec_unpacku_lo_<mode>): Macroize expander from
9212 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9213 (vec_unpacku_hi_<mode>): Macroize expander from
9214 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9215 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
9216 ix86_expand_sse4_unpack.
9217 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
9219 2011-04-16 Jan Hubicka <jh@suse.cz>
9221 * cgraphbuild.c: Include ipa-inline.h.
9222 (reset_inline_failed): Use initialize_inline_failed.
9223 * cgraph.c: Include ipa-inline.h.
9224 (cgraph_create_node_1): Do not initialize estimated_growth.
9225 (initialize_inline_failed): More to ipa-inline-analysis.c
9226 (dump_cgraph_node): Do not dump inline flags.
9227 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
9228 and disregard_inline_limits flags.
9229 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
9230 time, size, estimated_growth.
9231 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
9233 * cgraphunit.c (cgraph_decide_is_function_needed): Use
9234 DECL_DISREGARD_INLINE_LIMITS.
9235 (cgraph_analyze_function): Do not initialize
9236 node->local.disregard_inline_limits.
9237 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9238 inlinable, versionable and disregard_inline_limits.
9239 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
9240 cgraph_check_inline_limits, cgraph_default_inline_p,
9241 cgraph_edge_badness, update_caller_keys, update_callee_keys,
9242 add_new_edges_to_heap): Update.
9243 (cgraph_decide_inlining_of_small_function): Update; set
9244 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
9245 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
9246 cgraph_decide_inlining_incrementally): Update.
9247 * ipa-inline.h (inline_summary): Add inlinable, versionable,
9248 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
9249 time, size and estimated_growth parameters.
9250 (estimate_edge_growth): Update.
9251 (initialize_inline_failed): Declare.
9252 * ipa-split.c: Include ipa-inline.h
9253 (execute_split_functions): Update.
9254 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
9255 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
9256 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
9257 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
9258 estimated_growth to INT_MIN.
9259 (inline_node_duplication_hook): Likewise.
9260 (dump_inline_summary): Dump new fields.
9261 (compute_inline_parameters): Update.
9262 (estimate_edge_time, estimate_time_after_inlining,
9263 estimate_size_after_inlining, estimate_growth, inline_read_summary,
9264 inline_write_summary):
9265 (initialize_inline_failed): Move here from cgraph.c.
9266 * tree-sra.c: Include ipa-inline.h.
9267 (ipa_sra_preliminary_function_checks): Update.
9268 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
9271 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
9273 * config/i386/sse.md (V16): New mode iterator.
9275 (AVXMODEQI, AVXMODEDI): Remove.
9276 (sse2, sse3): New mode attribute.
9277 (mov<mode>): Use V16 mode iterator.
9278 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
9279 (push<mode>1): Use V16 mode iterator.
9280 (movmisalign<mode>): Ditto.
9281 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9282 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
9283 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9284 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
9285 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
9286 avx_movdqu<avxmodesuffix>.
9287 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
9288 *avx_movdqu<avxmodesuffix>.
9289 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
9290 avx_lddqu<avxmodesuffix>.
9291 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
9292 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
9293 avx_movnt<AVXMODEDI:mode>.
9294 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
9295 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
9297 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
9300 * haifa-sched.c (prune_ready_list, schedule_block): Use
9301 sched_pressure_p rather than flag_sched_pressure.
9303 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
9305 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9306 cgraph_get_node instead of cgraph_get_create_node.
9308 2011-04-15 Jakub Jelinek <jakub@redhat.com>
9310 * cfgexpand.c (expand_debug_expr): Use
9311 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
9313 2011-04-15 Michael Matz <matz@suse.de>
9315 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
9316 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
9317 * function.c (gimplify_parameters): Ditto.
9318 * gimplify.c (gimplify_vla_decl): Ditto.
9320 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
9321 (gimple_call_set_alloca_for_var): New inline function.
9322 (gimple_call_alloca_for_var_p): Ditto.
9323 * gimple.c (gimple_build_call_from_tree): Remember
9324 CALL_ALLOCA_FOR_VAR_P state.
9325 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
9327 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
9328 calls if they were for VLA objects.
9330 2011-04-15 Martin Jambor <mjambor@suse.cz>
9332 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
9335 2011-04-15 Martin Jambor <mjambor@suse.cz>
9338 * tree-emutls.c (lower_emutls_function_body): Call
9339 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
9342 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
9344 * c-decl.c (detect_field_duplicates): Call
9345 objc_detect_field_duplicates instead of objc_get_interface_ivars.
9347 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
9349 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
9350 * gimple.c (gimple_asm_clobbers_memory_p): Define.
9351 * ipa-pure-const.c (check_stmt): Call it.
9352 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
9354 2011-04-15 Richard Guenther <rguenther@suse.de>
9356 PR tree-optimization/48290
9357 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
9358 Properly decide inhibiting propagation based on the valueized
9359 operand. Do loop-closed SSA form preserving here ...
9360 (init_copy_prop): ... not here.
9362 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
9365 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
9366 (*ieee_smax<mode>3): Likewise.
9368 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9370 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
9371 Replace match_operand with match_dup for the third operand in
9374 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9376 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
9377 to track processing of conditionals. Update all callers.
9378 (try_combine, simplify_if_then_else): Update.
9380 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9382 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
9385 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
9387 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
9388 instead of match_operand for operand 3.
9390 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
9392 * recog.h (insn_operand_data): Add an "allows_mem" field.
9393 * genoutput.c (output_operand_data): Initialize it.
9394 * optabs.c (maybe_legitimize_operand_same_code): New function.
9395 (maybe_legitimize_operand): Use it when matching the original
9398 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
9400 * gimplify.c: Fix issues in comments throughout.
9401 (voidify_wrapper_expr): Fix long line.
9402 (build_stack_save_restore): Likewise.
9403 (gimplify_loop_expr): Likewise.
9404 (gimplify_compound_lval): Likewise.
9405 (gimplify_init_ctor_eval): Likewise.
9406 (gimplify_modify_expr_rhs): Likewise.
9407 (omp_notice_threadprivate_variable): Likewise.
9409 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
9411 * cfgexpand.c (expand_call_stmt): Convert the function type to the
9412 original one if this is not a builtin function.
9414 2011-04-14 Jakub Jelinek <jakub@redhat.com>
9417 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
9418 offset it as needed based on top 2 bits in operands[3], change
9419 MEM mode to SFmode and mask those 2 bits away from operands[3].
9421 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9423 * c-parser.c (c_parser_objc_protocol_definition): Updated for
9424 change from objc_declare_protocols() to objc_declare_protocol().
9426 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
9428 * config/i386/sse.md (sse4_1): New mode attribute.
9429 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
9430 avx_blend<ssemodesuffix><avxmodesuffix> and
9431 sse4_1_blend<ssemodesuffix> using VF mode iterator.
9432 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
9433 avx_blendv<ssemodesuffix><avxmodesuffix> and
9434 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
9435 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
9436 avx_dp<ssemodesuffix><avxmodesuffix> and
9437 sse4_1_dp<ssemodesuffix> using VF mode iterator.
9438 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
9439 (sse4_1_packusdw): Merge with *avx_packusdw.
9440 (sse4_1_pblendvb): Merge with *avx_pblendvb.
9441 (sse4_1_pblendw): Merge with *avx_pblendw.
9442 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
9443 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
9444 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
9446 (sse4_1_round<ssescalarmodesuffix>): Merge with
9447 *avx_round<ssescalarmodesuffix>.
9448 (aesenc): Merge with *avx_aesenc.
9449 (aesenclast): Merge with *avx_aesenclast.
9450 (aesdec): Merge with *avx_aesdec.
9451 (aesdeclast): Merge with *avx_aesdeclast.
9452 (pclmulqdq): Merge with *pclmulqdq.
9453 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
9455 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9457 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
9460 * cfgexpand.c (get_decl_align_unit): Renamed to ...
9461 (align_local_variable): This. Update DECL_ALIGN.
9462 (add_stack_var): Updated.
9463 (expand_one_stack_var): Likewise.
9465 2011-04-14 Richard Guenther <rguenther@suse.de>
9467 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
9469 (dse_initialize_block_local_data, dse_leave_block,
9470 record_voperand_set, get_stmt_uid): Likewise.
9471 (dse_possible_dead_store_p): Allow any kind of killing stmt.
9472 (dse_optimize_stmt): Remove voperand set handling code.
9473 Simplify and improve to handle any kind of killing stmt.
9474 (dse_record_phi): Remove.
9475 (dse_enter_block): Simplify.
9476 (tree_ssa_dse): Likewise.
9477 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
9479 2011-04-14 Jan Hubicka <jh@suse.cz>
9481 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
9482 * cgraph.h (struct inline_summary): Move to ipa-inline.h
9483 (cgraph_local_info): Remove inline_summary.
9484 * ipa-cp.c: Include ipa-inline.h.
9485 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
9486 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
9488 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
9489 (input_overwrite_node): Do not set inline summary.
9490 (input_node): Do not stream inline summary.
9491 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
9492 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
9493 growth; we do not have inline parameters computed for that anyway.
9494 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
9495 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
9496 (inline_summary_t): New type and VECtor.
9497 (debug_inline_summary, dump_inline_summaries): Declare.
9498 (inline_summary): Use VOCtor.
9499 (estimate_edge_growth): Kill hack computing call stmt size directly.
9500 * lto-section-in.c (lto_section_name): Add inline section.
9501 * ipa-inline-analysis.c: Include lto-streamer.h
9502 (node_removal_hook_holder, node_duplication_hook_holder): New holders
9503 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
9504 (inline_summary_vec): Define.
9505 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
9506 dump_inline_summaries): New functions.
9507 (estimate_function_body_sizes): Properly compute size/time of outgoing
9509 (compute_inline_parameters): Alloc inline_summary; do not compute
9510 size/time of incomming calls.
9511 (estimate_edge_time): Avoid missing time summary hack.
9512 (inline_read_summary): Read inline summary info.
9513 (inline_write_summary): Write inline summary info.
9514 (inline_free_summary): Free all hooks and inline summary vector.
9515 * lto-streamer.h: Add LTO_section_inline_summary section.
9516 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
9517 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
9519 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9521 * tree-vectorizer.h (vect_strided_store_supported): Add a
9522 HOST_WIDE_INT argument.
9523 (vect_strided_load_supported): Likewise.
9524 (vect_permute_store_chain): Return void.
9525 (vect_transform_strided_load): Likewise.
9526 (vect_permute_load_chain): Delete.
9527 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
9528 count argument. Check that the count is a power of two.
9529 (vect_strided_load_supported): Likewise.
9530 (vect_permute_store_chain): Return void. Update after above changes.
9531 Assert that the access is supported.
9532 (vect_permute_load_chain): Likewise.
9533 (vect_transform_strided_load): Return void.
9534 * tree-vect-stmts.c (vectorizable_store): Update calls after
9535 above interface changes.
9536 (vectorizable_load): Likewise.
9537 (vect_analyze_stmt): Don't check for strided powers of two here.
9539 2011-04-14 Richard Guenther <rguenther@suse.de>
9541 PR tree-optimization/48590
9542 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9543 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9544 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
9545 BUILT_IN_STACK_SAVE.
9546 * tree-ssa-dce.c (propagate_necessity): Handle
9547 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9549 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9551 * c-parser.c (c_parser_objc_class_declaration): Updated call to
9554 2011-04-14 Richard Guenther <rguenther@suse.de>
9556 * tree.h (get_object_alignment_1): Declare.
9557 * builtins.c (get_object_alignment_1): Split out worker from ...
9558 (get_object_alignment): ... here.
9559 * fold-const.c (get_pointer_modulus_and_residue): Use
9560 get_object_alignment_1.
9562 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9564 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
9566 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
9567 parameter. Generalise code to handle arrays as well as vectors.
9568 (vect_setup_realignment): Update accordingly.
9569 * tree-vect-stmts.c (vectorizable_store): Likewise.
9570 (vectorizable_load): Likewise.
9572 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9574 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
9575 within the per-copy loop.
9577 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9579 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
9582 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9584 * doc/options.texi (Negative): Explicitly mention that the
9585 Negative chain must be circular.
9587 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
9589 * function.h (block_chainon): Declare.
9590 * function.c (block_chainon): Define.
9592 2011-04-14 Anatoly Sokolov <aesok@post.ru>
9593 Eric Weddington <eric.weddington@atmel.com>
9594 Georg-Johann Lay <avr@gjlay.de>
9596 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
9598 (avr_init_builtins, avr_expand_builtin,
9599 avr_expand_delay_cycles, avr_expand_unop_builtin,
9600 avr_expand_binop_builtin ): New functions.
9601 (avr_builtin_id): New enum
9602 (struct avr_builtin_description): New struct
9603 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
9604 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
9606 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
9607 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
9608 UNSPECV_DELAY_CYCLES): new enumeration values
9609 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
9610 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
9611 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
9612 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
9613 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
9614 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
9615 "fmulsu"): New insns
9617 * config/avr/avr-c.c: fix line endings
9618 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
9619 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
9620 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
9621 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
9622 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
9624 * doc/extend.texi (AVR Built-in Functions): New node
9625 (Target Builtins): Add documentation of AVR
9628 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
9631 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
9632 alone. Error if non-const data has attribute progmem.
9634 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9636 * tree.h (struct tree_constructor): Include tree_typed instead of
9638 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
9639 TS_TYPED instead of TS_COMMON.
9641 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
9643 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
9644 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
9645 (sse2_psadbw): Merge with *avx_psadbw.
9646 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
9647 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
9648 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
9649 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
9650 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
9651 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
9652 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
9653 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
9654 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
9655 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
9656 (ssse3_palignrti): Merge with *avx_palignrti.
9658 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9660 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
9661 * tree-ssanames.c (fini_ssanames): VEC_free it.
9662 (make_ssa_name_fn): Update for VECness of free_ssanames.
9663 (release_ssa_name, release_dead_ssa_names): Likewise.
9664 * tree.h (struct tree_ssa_name): Include tree_typed instead of
9666 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
9667 TS_TYPED instead of TS_COMMON.
9669 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9671 * postreload-gcse.c (gcse_after_reload_main): Add calls to
9672 statistics_counter_event.
9673 * tree-ssa-copyrename.c (stats): Define.
9674 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
9675 statistics_counter_event.
9676 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
9677 (bswap_stats, widen_mul_stats): Define.
9678 (insert_reciprocals): Increment rdivs_inserted.
9679 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
9680 rfuncs_inserted. Add calls to statistics_counter_event.
9681 (execute_cse_sincos_1): Increment inserted.
9682 (execute_cse_sincos): Zeroize sincos_stats. Add call to
9683 statistics_counter_event.
9684 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
9685 of bswap_stats. Add calls to statistics_counter_event.
9686 (convert_mult_to_widen): Increment widen_mults_inserted.
9687 (convert_plusminus_to_widen): Increment maccs_inserted.
9688 (convert_mult_to_fma): Increment fmas_inserted.
9689 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
9690 calls to statistics_counter_event.
9692 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
9694 PR rtl-optimization/48455
9695 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
9696 `temp_costs->mem_cost'.
9698 2011-04-13 Jan Hubicka <jh@suse.cz>
9700 * ipa-inline.h: New file.
9701 * ipa-inline-analysis.c: New file. Broken out of ...
9702 * ipa-inline.c: ... this file; update toplevel comment;
9703 include ipa-inline.h
9704 (inline_summary): Move to ipa-inline.h
9705 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
9706 ipa-inline-analysis.c.
9707 (cgraph_estimate_time_after_inlining): Rename to
9708 estiamte_time_after_inlining; move to ipa-inline-analysis.c
9709 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
9710 to estimate_edge_growth.
9711 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
9712 rename to estimate_size_after_inlining.
9713 (cgraph_mark_inline_edge): Update for new naming convention.
9714 (cgraph_check_inline_limits): Likewise.
9715 (cgraph_edge_badness): Likewise.
9716 (cgraph_decide_recursive_inlining): Likewise.
9717 (cgraph_decide_inlining_of_small_functions): Likewise.
9718 (cgraph_decide_inlining_incrementally): Likewise.
9719 (cgraph_estimate_growth): Rename to estimate_growth; move to
9720 ipa-inline-analysis.c.
9721 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
9722 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
9723 (compute_inline_parameters): Likewise.
9724 (compute_inline_parameters_for_current): Likewise.
9725 (pass_inline_parameters): Likewise.
9726 (inline_indirect_intraprocedural_analysis): Likewise.
9727 (analyze_function): Rename to inline_analyze_function; likewise.
9728 (add_new_function): Move to ipa-inline-analysis.c.
9729 (inline_generate_summary): Likewise.
9730 (inline_read_summary): Likewise.
9731 (inline_write_summary): Likewise.
9732 * Makefile.in (ipa-inline-analysis.c): New file.
9734 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9736 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
9737 * configure: Regenerate.
9739 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9741 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
9742 instead of tree_common.
9743 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
9745 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
9746 TS_TYPED rather than TS_COMMON.
9747 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
9749 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
9752 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
9753 r20 around calls of __tablejump_elpm__
9755 2011-04-13 Jakub Jelinek <jakub@redhat.com>
9758 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
9760 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
9762 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
9764 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
9765 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
9766 (cfi_vec): New typedef.
9767 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
9768 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
9769 (cie_cfi_vec): New static variable.
9770 (cie_cfi_head): Delete.
9771 (add_cfi): Accept a cfi_vec * as first argument. All callers and
9772 declaration changed. Use vector rather than list operations.
9773 (new_cfi): Don't initialize the dw_cfi_next field.
9774 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
9775 rather than list operations.
9776 (lookup_cfa): Use vector rather than list operations.
9777 (output_cfis): New argument upto. Accept a cfi_vec rather than
9778 a dw_cfi_ref list head as argument. All callers changed.
9779 Iterate over the vector using upto as a maximum index.
9780 (output_all_cfis): New static function.
9781 (output_fde): Use vector rather than list operations. Use the
9782 new upto argument for output_cfis rather than manipulating a
9784 (dwarf2out_begin_prologue): Change initializations to match
9786 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
9787 from the vector length rather than searching for the end of a list.
9788 Use output_all_cfis.
9789 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
9791 2011-04-13 Nick Clifton <nickc@redhat.com>
9793 * config/rx/rx.md (movmemsi): Do not use this pattern when
9794 volatile pointers are involved.
9796 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
9798 * config/i386/sse.md (pinsrbits): Remove.
9799 (sse2_packsswb): Merge with *avx_packsswb.
9800 (sse2_packssdw): Merge with *avx_packssdw.
9801 (sse2_packuswb): Merge with *avx_packuswb.
9802 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
9803 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
9804 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
9805 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
9806 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
9807 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
9808 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
9809 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
9810 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
9811 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
9812 (sse2_loadld): Merge with *avx_loadld.
9813 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
9814 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
9815 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
9816 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
9817 (vec_concatv2di): Merge with *vec_concatv2di_avx.
9819 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
9821 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
9823 * print-tree.c (print_node): Likewise.
9824 * tree-inline.c (copy_tree_r): Likewise.
9825 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
9826 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
9827 instead of TS_COMMON.
9828 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
9829 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
9830 (copy_node_stat): Zero TREE_CHAIN only if necessary.
9831 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
9832 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
9834 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
9836 (TREE_CHAIN): Check for a TS_COMMON structure.
9837 (TREE_TYPE): Check for a TS_TYPED structure.
9839 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
9841 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9842 cgraph_get_create_node instead of cgraph_node.
9844 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9846 * c-parser.c (c_parser_initelt): Updated call to
9847 objc_build_message_expr.
9848 (c_parser_postfix_expression): Likewise.
9850 2011-04-12 Kai Tietz <ktietz@redhat.com>
9852 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
9853 MASK_MS_BITFIELD_LAYOUT bit.
9855 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9857 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
9858 assert it is always true.
9859 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
9862 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9864 * c-parser.c (c_lex_one_token): Rewritten conditional used when
9865 compiling Objective-C to be more efficient.
9867 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
9869 * opts-common.c (decode_cmdline_options_to_array): Remove variable
9872 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9874 * recog.h, genoutput.c, optabs.c: Revert last patch.
9876 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9879 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
9881 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9883 * recog.h (insn_operand_data): Add an "allows_mem" field.
9884 * genoutput.c (output_operand_data): Initialize it.
9885 * optabs.c (maybe_legitimize_operand_same_code): New function.
9886 (maybe_legitimize_operand): Use it when matching the original
9889 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9891 * genpreds.c (process_define_predicate): Move most processing
9892 to gensupport.c. Continue to validate the expression.
9893 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
9894 (process_define_predicate): Move processing to gensupport.c.
9895 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
9896 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
9897 (compute_predicate_codes): Moved from genrecog.c. Add lineno
9899 (valid_predicate_name_p): New function, split out from old
9900 genpreds.c:process_define_predicate.
9901 (process_define_predicate): New function, combining code from
9902 old genpreds.c and genrecog.c functions.
9903 (process_rtx): Call it for DEFINE_PREDICATE and
9904 DEFINE_SPECIAL_PREDICATE.
9906 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9908 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
9909 size of a '%A' memory reference.
9910 (T_DREG, T_QREG): New neon_builtin_type_bits.
9911 (arm_init_neon_builtins): Assert that the load and store operands
9912 are neon_struct_operands.
9913 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
9914 (NEON_ARG_MEMORY): New builtin_arg.
9915 (neon_dereference_pointer): New function.
9916 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
9917 Handle NEON_ARG_MEMORY.
9918 (arm_expand_neon_builtin): Update after above interface changes.
9919 Use NEON_ARG_MEMORY for loads and stores.
9920 * config/arm/predicates.md (neon_struct_operand): New predicate.
9921 * config/arm/iterators.md (V_two_elem): Tweak formatting.
9922 (V_three_elem): Use BLKmode for accesses that have no associated mode.
9923 (V_four_elem): Tweak formatting.
9924 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
9925 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
9926 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
9927 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
9928 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
9929 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
9930 (neon_vst4<mode>): Replace pointer operand with a memory operand.
9931 Use %A in the output template.
9932 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
9933 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
9934 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
9935 the width of the memory access. Remove post-increment.
9936 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
9938 2011-04-12 Nick Clifton <nickc@redhat.com>
9940 * config/v850/v850.c (expand_prologue): Do not use the CALLT
9941 instruction for interrupt handlers if the target is the basic V850
9943 (expand_epilogue): Likewise.
9945 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9947 PR rtl-optimization/48549
9948 * combine.c (propagate_for_debug): Also stop after BB_END of
9949 this_basic_block. Process LAST and just stop processing after it.
9950 (combine_instructions): If last_combined_insn has been deleted,
9951 set last_combined_insn to its PREV_INSN.
9953 2011-04-12 Richard Guenther <rguenther@suse.de>
9955 PR tree-optimization/46076
9956 * gimple.h (struct gimple_statement_call): Add fntype field.
9957 (gimple_call_fntype): Adjust.
9958 (gimple_call_set_fntype): New function.
9959 * gimple.c (gimple_build_call_1): Set the call function type.
9960 * gimplify.c (gimplify_call_expr): Preserve the function
9961 type the frontend used for the call.
9962 (gimplify_modify_expr): Likewise.
9963 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
9965 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
9967 * tree-ssa.c (useless_type_conversion_p): Function pointer
9968 conversions are useless.
9970 2011-04-12 Martin Jambor <mjambor@suse.cz>
9972 * cgraph.h (cgraph_node): Remove function declaration.
9973 (cgraph_create_node): Declare.
9974 (cgraph_get_create_node): Likewise.
9975 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
9976 Updated all callers.
9977 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
9978 the decl does not already exist. Call cgraph_get_create_node instead
9980 (cgraph_get_create_node): New function.
9981 (cgraph_same_body_alias): Update comment.
9982 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
9983 assert it does not return NULL.
9984 (cgraph_update_edges_for_call_stmt): Likewise.
9985 (cgraph_clone_edge): Likewise.
9986 (cgraph_create_virtual_clone): Likewise.
9987 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
9988 instead of cgraph_node.
9989 (cgraph_add_new_function): Call cgraph_create_node or
9990 cgraph_get_create_node instead of cgraph_node.
9991 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
9992 instead of cgraph_node.
9993 (record_eh_tables): Likewise.
9994 (mark_address): Likewise.
9995 (mark_load): Likewise.
9996 (build_cgraph_edges): Call cgraph_get_create_node instead
9998 (rebuild_cgraph_edges): Likewise.
9999 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
10000 instead of cgraph_node.
10001 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
10003 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
10004 cgraph_create_node instead of cgraph_node.
10005 * c-decl.c (finish_function): Call cgraph_get_create_node instead
10007 * lto-cgraph.c (input_node): Likewise.
10008 * lto-streamer-in.c (input_function): Likewise.
10009 * varasm.c (mark_decl_referenced): Likewise.
10010 (assemble_alias): Likewise.
10012 2011-04-12 Martin Jambor <mjambor@suse.cz>
10014 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
10015 instead of cgraph_node and assert it does not return NULL.
10016 * lto-streamer-in.c (lto_read_body): Likewise.
10017 * omp-low.c (new_omp_context): Likewise.
10018 (create_task_copyfn): Likewise.
10019 * tree-emutls.c (lower_emutls_function_body): Likewise.
10020 * matrix-reorg.c (transform_allocation_sites): Likewise.
10022 2011-04-12 Jakub Jelinek <jakub@redhat.com>
10025 * c-typeck.c (build_asm_expr): Error out on attempts to use
10026 void type outputs or inputs for constraints that allow reg or
10027 don't allow memory.
10029 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
10030 Richard Earnshaw <rearnsha@arm.com>
10033 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
10034 to use sign-magnitude offsets. Reject unsupported unaligned
10035 cases. Add detailed description in comments.
10036 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
10037 condition from TARGET_32BIT to TARGET_ARM.
10039 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
10041 * tree.h (struct typed_tree): New.
10042 (struct tree_common): Include it instead of tree_base.
10043 (TREE_TYPE): Update for new location of type field.
10044 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
10045 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
10046 (union tree_node): Add typed field.
10047 * treestruct.def (TS_TYPED): New.
10048 * lto-streamer.c (check_handled_ts_structures): Handle it.
10049 * tree.c (MARK_TS_TYPED): New macro.
10050 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
10052 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
10054 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
10055 (force_nonfallthru): Do not alter the loop nest if no basic block
10058 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
10060 * config/i386/sse.md (VI): New mode iterator.
10061 (SSEMODEI): Remove.
10062 (AVX256MODEI): Ditto.
10063 (AVXMODEF4P): Ditto.
10064 (avxvecpsmode): Ditto.
10065 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
10066 (sse2_andnot<mode>3): New expander.
10067 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
10068 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
10069 (<any_logic:code><mode>3): Use VI mode iterator.
10070 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
10071 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
10072 (*andnottf3): Handle AVX three-operand constraints.
10073 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
10075 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10076 Robert Millan <rmh@gnu.org>
10078 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
10079 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
10080 GNU_USER_DYNAMIC_LINKER64): Define.
10081 (REG_NAME): Don't undefine.
10082 (MD_UNWIND_SUPPORT): Undefine.
10083 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
10084 (REG_NAME): Don't undefine.
10085 (MD_UNWIND_SUPPORT): Undefine.
10086 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
10088 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10090 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
10091 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
10093 2011-04-11 Xinliang David Li <davidxl@google.com>
10095 * value-profile.c (check_ic_target): New function.
10096 (gimple_ic_transform): Sanity check indirect call target.
10097 * gimple-low.c (gimple_check_call_args): Interface change.
10098 (gimple_check_call_matching_types): New function.
10099 * tree-inline.c (tree_can_inline_p): Call new function.
10101 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
10103 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
10104 tree-pretty-print.h & realmpfr.h.
10106 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
10108 PR middle-end/48464
10109 * ira.c (setup_pressure_classes): Fix typo in loop condition.
10110 (setup_allocno_and_important_classes): Ditto.
10112 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10114 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
10115 GNU_USER_DYNAMIC_LINKER.
10116 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
10117 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10118 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
10119 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10120 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10121 GNU_USER_TARGET_OS_CPP_BUILTINS.
10122 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
10123 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10124 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10125 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10126 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
10127 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10128 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10129 GNU_USER_TARGET_OS_CPP_BUILTINS.
10130 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10131 GNU_USER_DYNAMIC_LINKER.
10132 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10133 GNU_USER_TARGET_OS_CPP_BUILTINS.
10134 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
10135 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10136 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
10137 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10138 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
10139 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
10140 GNU_USER_DYNAMIC_LINKER64): Remove.
10141 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
10142 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10143 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10144 GNU_USER_DYNAMIC_LINKER.
10145 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10146 GNU_USER_TARGET_OS_CPP_BUILTINS.
10147 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10148 GNU_USER_TARGET_OS_CPP_BUILTINS.
10149 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
10150 to GNU_USER_TARGET_OS_CPP_BUILTINS.
10151 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10152 GNU_USER_TARGET_OS_CPP_BUILTINS.
10153 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
10154 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
10155 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10156 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
10157 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10158 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10159 GNU_USER_DYNAMIC_LINKER.
10160 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10161 GNU_USER_TARGET_OS_CPP_BUILTINS.
10162 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
10163 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10164 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10165 GNU_USER_DYNAMIC_LINKER.
10166 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10167 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10168 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
10169 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10170 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10171 GNU_USER_DYNAMIC_LINKER.
10172 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
10173 GNU_USER_DYNAMIC_LINKERN32.
10174 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
10175 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
10176 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
10177 GNU_USER_DYNAMIC_LINKER32.
10178 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
10179 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10180 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10181 GNU_USER_DYNAMIC_LINKER.
10182 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10183 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10184 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
10185 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10186 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10187 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
10188 GNU_USER_DYNAMIC_LINKER32.
10189 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10190 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
10191 GNU_USER_DYNAMIC_LINKER.
10192 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
10193 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10194 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10195 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
10196 GNU_USER_DYNAMIC_LINKER64.
10197 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
10198 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10199 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10200 GNU_USER_DYNAMIC_LINKER.
10201 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
10202 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10203 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10204 GNU_USER_DYNAMIC_LINKER.
10205 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
10206 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10207 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10208 GNU_USER_DYNAMIC_LINKER32.
10209 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10210 GNU_USER_DYNAMIC_LINKER64.
10211 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10212 GNU_USER_DYNAMIC_LINKER64.
10213 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
10214 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10215 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
10216 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10217 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10219 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10221 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
10222 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
10223 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
10224 GNU_USER_DYNAMIC_LINKER.
10225 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10226 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
10227 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
10228 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
10229 GNU_USER_DYNAMIC_LINKER64.
10230 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10231 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
10232 GNU_USER_LINK_EMULATION.
10233 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
10234 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
10235 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
10236 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
10237 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
10238 CPP_SPEC, CC1_SPEC): Remove.
10239 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
10240 (GNU_USER_DYNAMIC_LINKER): Define.
10241 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
10242 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
10243 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
10244 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
10245 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
10246 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
10247 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10248 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
10249 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
10250 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
10251 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
10252 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
10253 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
10254 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
10255 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
10256 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10257 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10258 GNU_USER_DYNAMIC_LINKER.
10259 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10260 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10261 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10262 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10263 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10264 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10265 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
10266 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
10267 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
10268 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
10270 2011-04-11 Kai Tietz <ktietz@redhat.com>
10274 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
10275 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
10277 (ix86_is_msabi_thiscall): Removed.
10278 (ix86_is_type_thiscall): Likewise.
10279 (ix86_get_callcvt): New function.
10280 (ix86_comp_type_attributes): Simplify check.
10281 (ix86_function_regparm): Use ix86_get_callcvt for calling
10282 convention attribute checks.
10283 (ix86_return_pops_args): Likewise.
10284 (ix86_static_chain): Likewise.
10285 (x86_this_parameter): Likewise.
10286 (x86_output_mi_thunk): Likewise.
10287 (ix86_function_type_abi): Optimize check for types without attributes.
10288 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
10289 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
10290 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
10292 (IX86_BASE_CALLCVT): Helper macro.
10293 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10294 Use ix86_get_callcvt for calling convention attribute checks and avoid
10295 symbol-decoration for stdcall in TARGET_RTD case.
10296 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
10298 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
10301 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
10303 * config/i386/sse.md (VI_128): New mode iterator.
10304 (VI12_128): Rename from SSEMODE12.
10305 (VI14_128): Rename from SSEMODE14.
10306 (VI124_128): New mode iterator.
10307 (VI24_128): Rename from SSEMODE248.
10308 (VI248_128): Rename from SSEMODE248.
10309 (SSEMODE124C8): Remove.
10310 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10311 (*sse2_<plusminus_insn><mode>3): Merge with
10312 *avx_<plusminus_insn><mode>3.
10313 (*mulv8hi3): Merge with *avx_mulv8hi3.
10314 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
10315 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
10316 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
10317 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
10318 (ashr<mode>3): Merge with *avx_ashr<mode>3.
10319 (lshr<mode>3): Merge with *avx_lshr<mode>3.
10320 (ashl<mode>3): Merge with *avx_ashl<mode>3.
10321 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
10322 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
10323 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10324 (*<smaxmin:code>v8hi3): Ditto.
10325 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
10326 (*<smaxmin:code>v16qi3): Ditto.
10327 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
10328 (*sse2_eq<mode>3): Ditto.
10329 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
10330 (*sse2_gt<mode>3): Ditto.
10331 (vcondv2di): Split out of vcond<mode>.
10332 (vconduv2di): Split out of vcondu<mode>.
10334 2011-04-11 Richard Guenther <rguenther@suse.de>
10336 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
10337 before calling tree_low_cst.
10339 2011-04-11 Richard Guenther <rguenther@suse.de>
10341 * stor-layout.c (layout_type): Compute all array index size operations
10342 in the original type.
10343 (initialize_sizetypes): Add comment.
10344 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
10346 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10348 * common.opt (Tbss=, Tdata=, Ttext=): New options.
10350 2011-04-11 Martin Jambor <mjambor@suse.cz>
10352 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
10353 of cgraph_node, handle NULL return value.
10354 (cgraph_global_info): Likewise.
10355 (cgraph_rtl_info): Likewise.
10356 * tree-inline.c (estimate_num_insns): Likewise.
10357 * gimplify.c (unshare_body): Likewise.
10358 (unvisit_body): Likewise.
10359 (gimplify_body): Likewise.
10360 * predict.c (optimize_function_for_size_p): Likewise.
10361 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10362 (call_may_clobber_ref_p_1): Likewise.
10363 * varasm.c (function_section_1): Likewise.
10364 (assemble_start_function): Likewise.
10366 2011-04-11 Martin Jambor <mjambor@suse.cz>
10368 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
10370 * final.c (rest_of_clean_state): Likewise.
10371 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
10372 * passes.c (pass_init_dump_file): Likewise.
10373 (execute_all_ipa_transforms): Likewise.
10374 (function_called_by_processed_nodes_p): Likewise.
10375 * predict.c (maybe_hot_frequency_p): Likewise.
10376 (probably_never_executed_bb_p): Likewise.
10377 (compute_function_frequency): Likewise.
10378 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
10379 (unnest_nesting_tree_1): Likewise.
10380 (lower_nested_functions): Likewise.
10381 * tree-optimize.c (execute_fixup_cfg): Likewise.
10382 (tree_rest_of_compilation): Likewise.
10383 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
10384 * tree-sra.c (ipa_early_sra): Likewise.
10385 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10386 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
10387 * ipa.c (record_cdtor_fn): Likewise.
10388 * ipa-inline.c (cgraph_early_inlining): Likewise.
10389 (compute_inline_parameters_for_current): Likewise.
10390 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10391 * ipa-pure-const.c (local_pure_const): Likewise.
10392 * ipa-split.c (split_function): Likewise.
10393 (execute_split_functions): Likewise.
10394 * cgraphbuild.c (build_cgraph_edges): Likewise.
10395 (rebuild_cgraph_edges): Likewise.
10396 (cgraph_rebuild_references): Likewise.
10397 (remove_cgraph_callee_edges): Likewise.
10398 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
10399 (verify_cgraph_node): Likewise.
10400 (cgraph_analyze_functions): Likewise.
10401 (cgraph_preserve_function_body_p): Likewise.
10402 (save_inline_function_body): Likewise.
10403 (save_inline_function_body): Likewise.
10404 * tree-inline.c (copy_bb): Likewise.
10405 (optimize_inline_calls): Likewise.
10407 2011-04-11 Martin Jambor <mjambor@suse.cz>
10409 PR tree-optimization/48195
10410 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
10411 ipa_check_create_edge_args.
10412 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
10413 ipa_check_create_edge_args.
10414 * ipa-inline.c (inline_generate_summary): Do not call
10415 ipa_check_create_node_params and ipa_check_create_edge_args.
10416 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
10417 ipa_check_create_edge_args.
10419 2011-04-09 Anatoly Sokolov <aesok@post.ru>
10421 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
10423 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10424 * function.c (record_hard_reg_sets): Likewise.
10425 * ira.c (compute_regs_asm_clobbered): Likewise.
10426 * sched-deps.c (sched_analyze_1): Likewise.
10427 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
10429 2011-04-09 Xinliang David Li <davidxl@google.com>
10431 PR tree-optimization/PR48484
10432 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
10433 has_valid_pred lazily
10435 2011-04-09 Duncan Sands <baldrick@free.fr>
10437 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
10439 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
10441 * combine.c (combine_validate_cost): Adjust comments. Set registered
10442 cost of I0 to zero at the end, if any.
10444 2011-04-08 Xinliang David Li <davidxl@google.com>
10446 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
10447 to insane profile data.
10449 2011-04-08 Xinliang David Li <davidxl@google.com>
10451 * ipa-cp.c (ipcp_update_profiling): Correct
10452 negative scale factor due to insane profile data.
10454 2011-04-08 Xinliang David Li <davidxl@google.com>
10456 * final.c (dump_basic_block_info): New function.
10457 (final): Dump basic block.
10458 (final_scan_insn): Remove old dump.
10460 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
10463 * config.gcc (i386-*-freebsd): Disable unwind table generation for
10466 2011-04-08 Michael Matz <matz@suse.de>
10468 PR middle-end/48389
10469 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
10471 (rebuild_jump_labels): Call rebuild_jump_labels_1.
10472 * rtl.h (rebuild_jump_labels_chain): Declare.
10473 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
10474 insns inserted on edges.
10476 2011-04-08 Joseph Myers <joseph@codesourcery.com>
10478 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
10479 * config/arm/arm-arches.def: New.
10480 * config/arm/arm-opts.h: New.
10481 * config/arm/genopt.sh: New.
10482 * config/arm/arm-tables.opt: New (generated).
10483 * config/arm/arm.c (arm_handle_option, arm_target_help,
10484 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
10485 (all_architectures): Get most table contents from arm-arches.def.
10486 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
10487 arm_selected_tune here.
10488 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
10489 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
10490 (march=, mcpu=, mtune=): Use Enum and Var.
10491 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
10492 (arm.o): Update dependencies.
10494 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
10496 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
10498 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
10499 (write_typed_alloc_defns): Likewise.
10500 (main): Calls write_typed_alloc_defns with output_header.
10502 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
10504 PR inline-asm/48435
10505 * ira-color.c (setup_profitable_hard_regs): Add comments.
10506 Don't take prohibited hard regs into account.
10507 (setup_conflict_profitable_regs): Rename to
10508 get_conflict_profitable_regs.
10509 (check_hard_reg_p): Check prohibited hard regs.
10511 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
10513 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
10514 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
10515 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
10517 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10520 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
10521 move from floating point to shift amount register.
10522 (emit_move_sequence): Remove secondary reload support for floating
10523 point to shift amount amount register copies.
10524 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
10525 amount register copies.
10526 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
10527 register, return false if mode isn't a scalar integer mode.
10528 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
10530 2011-04-08 Richard Guenther <rguenther@suse.de>
10532 * gimple.c (gimple_call_flags): Remove kludge.
10534 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10536 * sel-sched.c (sel_region_init): Move call to
10537 sel_setup_region_sched_flags after setup_current_loop_nest.
10539 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
10541 PR rtl-optimization/48272
10542 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
10543 init_insn_reg_pressure_info. Adjust a caller.
10544 * sched-int.h (init_insn_reg_pressure_info): Declare.
10545 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
10546 when sched-pressure is enabled.
10548 2011-04-08 Richard Guenther <rguenther@suse.de>
10550 * gimple.c (gimple_set_modified): Do not queue calls to
10551 MODIFIED_NORETURN_CALLS here ...
10552 * tree-ssa-operands.c (update_stmt_operands): ... but here.
10554 2011-04-08 Richard Guenther <rguenther@suse.de>
10557 * toplev.c (lang_dependent_init): Do not open asm_out_file
10558 in WPA mode, nor perform debug machinery initialization.
10559 (finalize): Do not unlink asm_out_file in WPA mode.
10561 2011-04-08 Richard Guenther <rguenther@suse.de>
10563 * gimple.h (gimple_call_fntype): New function.
10564 (gimple_call_return_type): Use it.
10565 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
10566 * gimple-low.c (gimple_check_call_args): Likewise.
10567 * gimple.c (gimple_call_flags): Likewise.
10568 (gimple_call_arg_flags): Likewise.
10569 (gimple_call_return_flags): Likewise.
10570 * tree-cfg.c (verify_gimple_call): Likewise.
10571 (do_warn_unused_result): Likewise.
10572 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
10573 * value-prof.c (gimple_ic_transform): Fix fndecl check.
10575 2011-04-08 Dmitry Melnik <dm@ispras.ru>
10577 PR rtl-optimization/48235
10578 * sel-sched.c (code_motion_process_successors): Recompute the last
10579 insn in basic block if control flow changed.
10580 (code_motion_path_driver): Ditto. Recompute the first insn as well.
10581 Update condition for ilist_remove.
10583 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10585 PR rtl-optimization/48302
10586 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
10587 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
10588 it to record added preheader blocks.
10589 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
10590 on to sel_add_loop_preheaders.
10591 (sel_region_init): Move call to setup_current_loop_nest after
10594 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10597 * cfgloop.h (loop_has_exit_edges): New helper.
10598 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
10600 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
10601 that have no exit edges.
10603 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10605 PR rtl-optimization/48442
10606 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
10607 all callers. Adjust assert.
10609 2011-04-08 Jakub Jelinek <jakub@redhat.com>
10611 PR tree-optimization/48377
10612 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
10613 is_packed to true even for types with smaller TYPE_ALIGN than
10616 2011-04-08 Richard Guenther <rguenther@suse.de>
10619 * doc/tm.texi: Re-generate.
10621 2011-04-08 Wei Guozhi <carrot@google.com>
10624 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
10625 * config/arm/arm.c (arm_attr_length_push_multi): New function.
10626 * config/arm/arm.md (*push_multi): Change the length computation to
10629 2011-04-08 Anatoly Sokolov <aesok@post.ru>
10631 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
10632 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
10633 * doc/tm.texi: Regenerate.
10634 * system.h (ASM_OUTPUT_BSS): Poison.
10635 * varasm.c (asm_output_bss): Remove function.
10636 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
10638 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
10639 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
10640 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
10641 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10643 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10645 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10647 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
10649 2011-04-07 Joseph Myers <joseph@codesourcery.com>
10651 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
10654 2011-04-07 Joseph Myers <joseph@codesourcery.com>
10656 * config/m68k/m68k.c (m68k_handle_option): Don't handle
10657 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
10658 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
10660 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10661 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
10662 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
10663 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
10664 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
10665 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
10666 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10667 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
10668 options. Don't map other m68k options manually. Don't handle
10669 old-style options as canonical.
10670 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10671 * doc/install.texi (m68k-*-*): Document binutils version requirement.
10673 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
10675 * basic-block.h (force_nonfallthru): Move to...
10676 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
10677 (force_nonfallthru): ...here.
10678 * cfghooks.c (force_nonfallthru): New function.
10679 * cfgrtl.c (force_nonfallthru): Rename into...
10680 (rtl_force_nonfallthru): ...this.
10681 (commit_one_edge_insertion): Do not set AUX field.
10682 (commit_edge_insertions): Do not discover new basic blocks.
10683 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
10684 (cfg_layout_rtl_cfg_hooks): Likewise.
10685 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
10686 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
10687 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
10689 2011-04-07 Anatoly Sokolov <aesok@post.ru>
10691 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10694 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
10696 * config/i386/sse.md: Update copyright year.
10697 (avxcvtvecmode): Remove.
10698 (sse_movhlps): Merge with *avx_movhlps.
10699 (sse_movlhps): Merge with *avx_movlhps.
10700 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
10701 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
10702 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
10703 (sse_loadhps): Merge with *avx_loadhps.
10704 (sse_storelps): Merge with *avx_storelps.
10705 (sse_loadlps): Merge with *avx_loadlps.
10706 (sse_movss): Merge with *avx_movss.
10707 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
10708 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
10709 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
10710 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
10711 (vec_set<mode>_0): Ditto.
10712 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
10713 (sse4_1_insertps): Merge with *avx_insertps.
10714 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
10715 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
10716 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
10717 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
10718 (sse2_storehpd): Merge with *avx_storehpd.
10719 (sse2_loadhpd): Merge with *avx_loadhpd.
10720 (sse2_loadlpd): Merge with *avx_loadlpd.
10721 (sse2_movsd): Merge with *avx_movsd.
10722 (*vec_concatv2df): Merge with *vec_concatv2df.
10724 2011-04-07 Jakub Jelinek <jakub@redhat.com>
10727 * combine.c (combine_instructions): Add last_combined_insn,
10728 update it if insn is after it, pass it to all try_combine calls.
10729 (try_combine): Add last_combined_insn parameter, pass it instead of
10730 i3 to propagate_for_debug.
10732 2011-04-07 Nick Clifton <nickc@redhat.com>
10734 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
10735 to handle MDR <-> data register transfers.
10736 (movhi_internal): Likewise.
10738 2011-04-07 Alan Modra <amodra@gmail.com>
10740 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
10741 previous stack info.
10743 2011-04-07 Tom de Vries <tom@codesourcery.com>
10746 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
10747 flow_find_cross_jump. Swap variables to implement backward replacement.
10748 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
10750 2011-04-07 Tom de Vries <tom@codesourcery.com>
10753 * cfgcleanup.c (walk_to_nondebug_insn): New function.
10754 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
10756 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
10757 src1 or src2. Redirect edges to the last basic block. Update
10758 frequency and count on multiple basic blocks in case of fallthru.
10760 2011-04-07 Tom de Vries <tom@codesourcery.com>
10763 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
10765 (old_insns_match_p): Change return type. Replace return false/true
10766 with return dir_none/dir_both. Use can_replace_by.
10767 (flow_find_cross_jump): Add dir_p parameter. Init replacement
10768 direction from dir_p. Register replacement direction in dir, last_dir
10769 and afterlast_dir. Handle new return type of old_insns_match_p using
10770 merge_dir. Return replacement direction in dir_p.
10771 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
10772 return type of old_insns_match_p.
10773 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
10774 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
10775 flow_find_cross_jump.
10776 * basic-block.h (enum replace_direction): New type.
10777 (flow_find_cross_jump): Add parameter to declaration.
10779 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
10781 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
10782 (AVXMODEDCVTPS2DQ): Ditto.
10783 (VEC_FLOAT_MODE): Ditto.
10784 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
10785 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10786 (<any_logic:code><mode>3): Use VF mode iterator.
10787 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
10788 Use VF mode iterator.
10789 (copysign<mode>3): Use VF mode iterator.
10790 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
10791 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10792 (*<any_logic:code><MODEF:mode>3): Merge with
10793 *avx_<any_logic:code><MODEF:mode>3.
10794 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
10795 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
10796 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
10797 (avx_cvtdq2ps<avxmodesuffix>): Remove.
10798 (sse2_cvtdq2ps): Use %v modifier.
10799 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
10800 (avx_cvtps2dq<avxmodesuffix>): Remove.
10801 (sse2_cvtps2dq): Use %v modifier.
10802 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
10803 (avx_cvttps2dq<avxmodesuffix>): Remove.
10804 (sse2_cvttps2dq): Use %v modifier.
10805 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
10806 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
10807 (sse2_cvtsd2siq): Fix insn template.
10808 (sse2_cvtsd2siq_2): Ditto.
10809 (sse2_cvttsd2siq): Ditto.
10810 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
10811 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
10813 2011-04-06 Joseph Myers <joseph@codesourcery.com>
10815 * gcov-io.c: Use GCC Runtime Library Exception.
10817 2011-04-06 Jakub Jelinek <jakub@redhat.com>
10820 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
10821 as base_reg whatever register reg has been eliminated to, instead
10822 of hardcoding STACK_POINTER_REGNUM.
10824 2011-04-06 Joseph Myers <joseph@codesourcery.com>
10826 * doc/tm.texi.in: Document C target hooks as separate from general
10828 * doc/tm.texi: Regenerate.
10829 * genhooks.c (struct hook_desc): Add docname field.
10830 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
10832 (hook_array): Include c-target.def.
10833 (emit_documentation): Use docname field in output.
10834 (emit_init_macros): Take docname argument. Only emit definitions
10835 for hooks matching docname.
10836 (main): Expect additional arguments in all cases. Pass argument
10837 to emit_init_macros.
10838 * target.def: Move initial macro definitions and comments to
10839 target-hooks-macros.h.
10840 (gcc_targetcm): Move to c-family/c-target.def.
10841 * target.h (targetcm): Move declaration to c-family/c-target.h.
10842 * targhooks.c (default_handle_c_option): Move to
10844 * targhooks.h (default_handle_c_option): Move declaration to
10845 c-family/c-common.h.
10846 * target-hooks-macros.h: New file.
10847 * config.gcc (target_has_targetcm): Define and use to add to
10848 c_target_objs and cxx_target_objs.
10849 * config/default-c.c: New file.
10850 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
10851 of target.h and target-def.h.
10852 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
10853 (darwin_objc_construct_string, darwin_cfstring_ref_p,
10854 darwin_check_cfstring_format_arg): Make static.
10855 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10856 TARGET_STRING_OBJECT_REF_TYPE_P,
10857 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
10858 * config/darwin-protos.h (darwin_objc_construct_string,
10859 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
10861 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10862 TARGET_STRING_OBJECT_REF_TYPE_P,
10863 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
10864 * config/t-darwin (darwin-c.o): Update dependencies.
10865 * system.h (TARGET_HAS_TARGETCM): Poison.
10866 * Makefile.in (TARGET_H): Update.
10867 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
10868 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
10869 (default-c.o): New target.
10870 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
10871 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
10872 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
10874 (build/genhooks.o): Update dependencies.
10876 2011-04-06 Richard Guenther <rguenther@suse.de>
10878 * ipa-inline.c (enum inlining_mode): Remove.
10879 (cgraph_flatten): Use some other token.
10880 (cgraph_edge_early_inlinable_p): New function, split out from ...
10881 (cgraph_perform_always_inlining): New function, split out from ...
10882 (cgraph_decide_inlining_incrementally): ... here.
10883 (cgraph_mark_inline_edge): Adjust.
10884 (cgraph_early_inlining): Re-structure.
10885 (pass_early_inline): Require SSA form.
10887 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
10888 Julian Brown <julian@codesourcery.com>
10889 Mark Shinwell <shinwell@codesourcery.com>
10891 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
10892 LO_REGS only for Thumb-1.
10893 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
10894 be used in short instructions when optimising for size on Thumb-2.
10896 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
10898 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
10899 associated with user returns to be preserved.
10901 2011-04-06 Tristan Gingold <gingold@adacore.com>
10903 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
10904 symbol_queue_size, DBXOUT_DECR_NESTING,
10905 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
10906 if XCOFF_DEBUGGING_INFO.
10908 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
10910 * config/i386/i386.md (attribute isa): New.
10911 (attribute enabled): New.
10912 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
10913 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
10914 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
10915 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
10916 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
10917 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10918 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
10919 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
10921 * config/i386/sse.md (VF): New mode iterator.
10925 (SSEMODEF4): Remove.
10926 (attribute sse): Handle V8SF and V4DF modes.
10927 (<absneg:code><mode>2): Use VF mode iterator.
10928 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
10930 (<plusminus_insn><mode>3): Use VF mode iterator.
10931 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10932 Use VF mode iterator.
10933 (<sse>_vm<plusminus_insn><mode>3): Merge with
10934 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
10935 (mul<mode>3): Use VF mode iterator.
10936 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
10937 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
10939 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
10940 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
10941 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
10942 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
10944 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
10945 Use VF1 mode iterator.
10946 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
10947 (sqrt<VF2:mode>2): New expander.
10948 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
10949 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
10950 and sqrtv2df2. Use VF mode iterator.
10951 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
10953 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
10954 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
10955 Use VF1 mode iterator.
10956 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
10957 (<smaxmin:code><mode>3): Use VF mode iterator.
10958 (*<smaxmin:code><mode>3_finite): Merge with
10959 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
10960 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10961 (<sse>_vm<smaxmin:code><mode>2): Merge with
10962 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
10963 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
10965 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
10967 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
10968 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
10969 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
10970 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
10971 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
10973 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
10974 Use VF_128 mode iterator.
10975 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
10977 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
10978 VF_128 mode iterator.
10979 (vcond<mode>): Use VF mode iterator.
10980 * config/i386/predicates.md (sse_comparison_operator): Merge with
10981 avx_comparison_float_operator. Do not declare as special_predicate.
10982 * config/i386/i386.c (struct builtin_description): Update for renamed
10984 (ix86_expand_args_builtin): Ditto.
10985 (ix86_expand_sse_compare_mask): Ditto.
10987 2011-04-06 Richard Guenther <rguenther@suse.de>
10989 * tree-inline.c (estimate_num_insns): For calls simply account
10990 for all passed arguments and a used return value.
10992 2011-04-06 Richard Guenther <rguenther@suse.de>
10994 PR tree-optimization/47663
10995 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
10996 call_stmt_time fields.
10997 (cgraph_edge_inlinable_p): Declare.
10998 (cgraph_edge_recursive_p): New inline function.
10999 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
11000 (cgraph_clone_edge): Copy it.
11001 * ipa-inline.c (cgraph_estimate_edge_time): New function.
11002 Account for call stmt time.
11003 (cgraph_estimate_time_after_inlining): Take edge argument.
11004 (cgraph_estimate_edge_growth): Account call stmt size.
11005 (cgraph_estimate_size_after_inlining): Take edge argument.
11006 (cgraph_mark_inline_edge): Adjust.
11007 (cgraph_check_inline_limits): Likewise.
11008 (cgraph_recursive_inlining_p): Remove.
11009 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
11010 (cgraph_decide_recursive_inlining): Take edge argument and
11012 (cgraph_decide_inlining_of_small_functions): Do not avoid
11013 diags for recursive inlining here.
11014 (cgraph_flatten): Adjust.
11015 (cgraph_decide_inlining_incrementally): Likewise.
11016 (estimate_function_body_sizes): Remove call cost handling.
11017 (compute_inline_parameters): Initialize caller edge call costs.
11018 (cgraph_estimate_edge_growth): New function.
11019 (cgraph_estimate_growth): Use it.
11020 (cgraph_edge_badness): Likewise.
11021 (cgraph_check_inline_limits): Take an edge argument.
11022 (cgraph_decide_inlining_of_small_functions): Adjust.
11023 (cgraph_decide_inlining): Likewise.
11024 * tree-inline.c (estimate_num_insns): Only account for call
11025 return value if it is used.
11026 (expand_call_inline): Avoid diagnostics on recursive inline
11028 * lto-cgraph.c (lto_output_edge): Output edge call costs.
11029 (input_edge): Input edge call costs.
11031 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11033 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
11035 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
11037 * doc/invoke.texi (Spec Files): Fix typo.
11039 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
11041 * profile.c (branch_prob): Move declaration of local variable. Remove
11042 obsolete ??? comment. Expand the location explicitly instead of using
11043 the LOCATION_FILE and LOCATION_LINE macros.
11045 2011-04-06 Wei Guozhi <carrot@google.com>
11048 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
11049 (arm_cond_branch): Likewise.
11050 (arm_cond_branch_reversed): Likewise.
11051 (arm_jump): Likewise.
11052 (push_multi): Likewise.
11053 * config/arm/constraints.md (Py): New constraint.
11055 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11058 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
11060 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
11061 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
11062 #ifdef DBX_DEBUGGING_INFO.
11064 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
11067 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
11068 if old and new states differ.
11070 2011-04-05 Joseph Myers <joseph@codesourcery.com>
11072 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
11073 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
11074 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
11075 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
11076 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
11077 mcfv4e): Use Alias.
11078 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
11079 ColdFire options to -mcpu= options.
11081 2011-04-05 Jeff Law <law@redhat.com>
11083 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
11084 check if BB is a successor of LOOP->header and return
11085 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
11087 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
11089 * cprop.c (struct reg_use): Remove.
11090 (reg_use_table): Make an array of RTX.
11091 (find_used_regs, constprop_register, local_cprop_pass,
11092 bypass_block): Simplify users of reg_use_table.
11093 (cprop_insn): Likewise. Iterate if copy propagation succeeded
11094 on one of the uses found by find_used_regs.
11096 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11099 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
11102 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11104 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
11106 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
11108 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
11110 PR middle-end/48441
11111 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
11113 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11115 * combine.c: Include obstack.h.
11116 (struct insn_link): Define.
11117 (uid_log_links): Adjust type.
11118 (FOR_EACH_LOG_LINK): New macro.
11119 (insn_link_obstack): Declare.
11120 (alloc_insn_link): Define.
11121 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
11122 type of link variables.
11123 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
11124 (try_combine, record_promoted_values, distribute_notes): Likewise.
11125 (distribute_links): Likewise. Tweak prototype.
11126 (clear_log_links): Delete.
11127 (adjust_for_new_dest): Call alloc_insn_link.
11128 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
11130 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11132 * gcse.c (modify_mem_list): Convert to an array of VECs.
11133 (canon_modify_mem_list, compute_transp): Tweak formatting.
11134 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
11135 (load_killed_in_block_p): Likewise.
11136 (record_last_mem_set_info): Likewise.
11137 (clear_modify_mem_tables): Likewise.
11139 2011-04-05 Tom de Vries <tom@codesourcery.com>
11141 PR middle-end/48461
11142 * function.c (emit_use_return_register_into_block): Only define if
11145 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
11147 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
11149 2011-04-05 Joseph Myers <joseph@codesourcery.com>
11151 * config/rx/rx-opts.h: New.
11152 * config/rx/rx.c (rx_cpu_type): Remove.
11153 (rx_handle_option): Don't assert that global structures are in
11154 use. Access variables via opts pointer. Defer most handling of
11155 OPT_mint_register_. Use error_at.
11156 (rx_option_override): Handle deferred OPT_mint_register_ here.
11157 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
11158 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
11159 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
11160 (rx_cpu_types): New Enum and EnumValue entries.
11161 (mint-register=): Use Defer and use Var accordingly.
11163 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11165 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
11166 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
11167 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
11169 (debug_free_queue, debug_nesting, symbol_queue_index):
11171 * dbxout.c: ...to here. Make static.
11173 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11175 * gcse.c (modify_pair): Define. Define a VEC of it.
11176 (canon_modify_mem_list): Convert to an array of VECs.
11177 (free_insn_expr_list_list): Delete.
11178 (clear_modify_mem_tables): Call VEC_free instead.
11179 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
11180 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
11181 (canon_list_insert, compute_transp): Likewise.
11183 2011-04-05 Tom de Vries <tom@codesourcery.com>
11186 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
11189 2011-04-05 Tom de Vries <tom@codesourcery.com>
11192 * function.c (emit_use_return_register_into_block): New function.
11193 (thread_prologue_and_epilogue_insns): Use
11194 emit_use_return_register_into_block.
11196 2011-04-05 Tom de Vries <tom@codesourcery.com>
11199 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
11202 2011-04-05 Tom de Vries <tom@codesourcery.com>
11204 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
11206 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
11208 * config/arm/arm.md (define_constants for unspec): Replace with
11210 (define_constants for unspecv): Replace with define_c_enum.
11211 * config/arm/neon.md (define_constants for unspec): Replace with
11214 2011-04-04 Richard Henderson <rth@redhat.com>
11217 * dwarf2out.c (output_line_info): Always emit line info from
11218 at least one section.
11219 (dwarf2out_init): Create text_section_line_info here ...
11220 (set_cur_line_info_table): ... not here.
11222 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
11225 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
11228 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
11230 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
11232 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
11233 (expr_equiv_p): Remove.
11234 (insert_set_in_table): Look at <dest, src> pair instead of expr.
11235 (hash_scan_set): Update call to insert_set_in_table.
11236 (dump_hash_table): Dump <dest, src> pair.
11237 (lookup_set): Simplify. Lookup <dest, src> pair.
11238 (compute_transp): Remove, fold heavily simplified code into...
11239 (compute_local_properties): ...here. Expect COMP and TRANSP
11241 (find_avail_set): Take set directly from struct expr.
11242 (find_bypass-set): Likewise.
11243 (bypass_block): Likewise.
11244 (cprop_insn): Likewise. Remove redundant INSN_P test.
11246 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
11247 checks on form of COND from find_implicit_sets to here.
11248 (find_implicit_sets): Cleanup control flow. Split critical edges
11249 if it exposes implicit sets. Allocate/resize implicit_sets as
11251 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
11252 changed something. Run df_analyze after find_implicit_sets if any
11253 edges were split. Do not allocate implicit_sets here.
11255 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
11256 (gcse_obstack): Renamed to cprop_obstack.
11257 (GNEW, GNEWVEC, GNEWVAR): Remove.
11259 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
11260 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
11261 (gcse_alloc): Likewise, and rename to cprop_alloc.
11262 (alloc_gcse_men, free_gcse_mem): Remove.
11263 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
11264 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
11265 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
11267 * cprop.c (oprs_not_set_p): Remove.
11268 (mark_set, mark_clobber): Remove.
11269 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
11270 (reg_not_set_p): New function.
11271 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
11272 (cprop_insn): Likewise.
11273 (cprop_jump): Use FOR_EACH_EDGE.
11275 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
11278 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
11279 (rank_for_schedule): Use scheduled_insns vector instead of
11280 last_scheduled_insn.
11281 (ok_for_early_queue_removal): Likewise.
11282 (queue_to_ready): Search forward in nonscheduled_insns_begin if
11284 (choose_ready): Likewise.
11285 (commit_schedule): Use VEC_iterate.
11286 (schedule_block): Initialize nonscheduled_insns_begin. If we have
11287 a dbg_cnt, use it and ensure the first insn is in the ready list.
11288 (haifa_sched_init): Allocate scheduled_insns.
11289 (sched_extend_ready_list): Don't allocate it; reserve space.
11290 (haifa_sched_finish): Free it.
11292 2011-04-04 Joseph Myers <joseph@codesourcery.com>
11294 * optc-gen.awk: Always remove type from Variable entry before
11295 recording in var_seen.
11297 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
11299 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
11300 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
11301 call to tidy_fallthru_edges.
11303 2011-04-04 Joseph Myers <joseph@codesourcery.com>
11305 * doc/options.texi (ToLower): Document.
11306 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
11307 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
11308 * opts.h (cl_option): Add cl_tolower field.
11309 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
11310 arguments with lowercase strings.
11311 * config/rx/rx.opt (mcpu=): Add ToLower.
11312 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
11315 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11317 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
11319 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11321 * config/vax/vax.c: Include reload.h.
11323 2011-04-04 Anatoly Sokolov <aesok@post.ru>
11325 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
11326 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11327 (sparc_preferred_reload_class): New function.
11329 2011-04-04 Jakub Jelinek <jakub@redhat.com>
11332 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11333 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
11335 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
11337 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
11338 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
11340 2011-04-03 Anatoly Sokolov <aesok@post.ru>
11342 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
11343 (ASM_OUTPUT_ALIGNED_BSS): Define.
11345 2011-04-03 Michael Matz <matz@suse.de>
11347 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
11348 and next_slot members.
11349 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
11350 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
11351 (lto_streamer_cache_append): Declare.
11352 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
11353 unsigned index, remove offset parameter, ensure that we append
11354 or update existing entries.
11355 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
11356 parameter, update next_slot for append.
11357 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
11359 (lto_streamer_cache_insert_at): Likewise.
11360 (lto_streamer_cache_append): New function.
11361 (lto_streamer_cache_lookup): Use unsigned index.
11362 (lto_streamer_cache_get): Likewise.
11363 (lto_record_common_node): Don't test tree_node_can_be_shared.
11364 (preload_common_node): Adjust call to lto_streamer_cache_insert.
11365 (lto_streamer_cache_delete): Don't free offsets member.
11366 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
11367 (lto_output_string_with_length): Use lto_output_data_stream.
11368 (lto_output_tree_header): Remove ix parameter, don't write it.
11369 (lto_output_builtin_tree): Likewise.
11370 (lto_write_tree): Adjust callers to above, don't track and write
11371 offset, write unsigned index.
11372 (output_unreferenced_globals): Don't emit all global vars.
11373 (write_global_references): Use unsigned indices.
11374 (lto_output_decl_state_refs): Likewise.
11375 (write_symbol): Likewise.
11376 * lto-streamer-in.c (lto_input_chain): Move earlier.
11377 (input_function): Use unsigned index.
11378 (input_alias_pairs): Don't read and then ignore all global vars.
11379 (lto_materialize_tree): Remove ix_p parameter, don't read index,
11380 don't pass it back, use lto_streamer_cache_append.
11381 (lto_register_var_decl_in_symtab): Use unsigned index.
11382 (lto_register_function_decl_in_symtab): Likewise.
11383 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
11385 (lto_get_builtin_tree): Don't read index, use
11386 lto_streamer_cache_append.
11387 (lto_read_tree): Adjust call to lto_materialize_tree.
11389 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
11390 don't use function calls in arguments to MIN.
11392 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
11395 * gimple.c (gimple_type_leader_entry): Mark deletable.
11397 2011-04-03 Alan Modra <amodra@gmail.com>
11399 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
11401 2011-04-03 Michael Matz <matz@suse.de>
11403 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
11405 * tree.h (tree_decl_non_common.vindex): Adjust comment.
11407 2011-04-03 Michael Matz <matz@suse.de>
11409 * cgraphbuild.c (record_reference): Canonicalize constructor values.
11410 * gimple-fold.c (canonicalize_constructor_val): Accept being called
11411 without function context.
11412 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
11413 current_function_decl and cfun.
11415 2011-04-03 Michael Matz <matz@suse.de>
11417 * tree.c (decl_init_priority_insert): Don't create entry for
11419 (decl_fini_priority_insert): Ditto.
11420 (fields_compatible_p, find_compatible_field): Remove.
11421 * tree.h (fields_compatible_p, find_compatible_field): Remove.
11422 * gimple.c (gimple_compare_field_offset): Adjust block comment.
11424 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
11426 * combine.c (try_combine): Remove useless local variable.
11428 2011-04-03 Richard Guenther <rguenther@suse.de>
11429 Ira Rosen <ira.rosen@linaro.org>
11431 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
11432 non-variable offsets and compare the remaining bases of the two
11433 accesses instead of looking for exact same data-ref.
11435 2011-04-02 Kai Tietz <ktietz@redhat.com>
11438 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
11440 * i386.c (ix86_is_msabi_thiscall): New helper function.
11441 (ix86_is_type_thiscall): New helper function.
11442 (ix86_comp_type_attributes): Handle thiscall for method-functions
11444 (init_cumulative_args): Likewise.
11445 (find_drap_reg): Likewise.
11446 (ix86_static_chain): Likewise.
11447 (x86_this_parameter): Likewise.
11448 (x86_output_mi_thunk): Likewise.
11450 2011-04-01 Olivier Hainque <hainque@adacore.com>
11451 Nicolas Setton <setton@adacore.com>
11452 Eric Botcazou <ebotcazou@adacore.com>
11454 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
11455 (add_gnat_descriptive_type_attribute): New function.
11456 (gen_array_type_die): Call it.
11457 (gen_enumeration_type_die): Likewise.
11458 (gen_struct_or_union_type_die): Likewise.
11459 (modified_type_die): Likewise.
11460 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
11461 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
11462 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
11464 2011-04-01 Jakub Jelinek <jakub@redhat.com>
11467 * dwarf2out.c (resolve_addr): Don't call force_decl_die
11468 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
11471 2011-03-17 Richard Guenther <rguenther@suse.de>
11474 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11475 origin for decls in other ltrans units.
11476 (input_varpool_node): Likewise.
11478 2011-04-01 Jakub Jelinek <jakub@redhat.com>
11480 PR middle-end/48335
11481 * expr.c (expand_assignment): Handle all possibilities
11482 if TO_RTX is CONCAT.
11483 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
11484 (store_split_bit_field): If SUBREG_REG (op0) or
11485 op0 itself has smaller mode than word, return it
11486 for offset 0 and const0_rtx for out-of-bounds stores.
11487 If word is const0_rtx, skip it.
11489 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
11491 * config/h8300/h8300.c (print_operand_address): Rename to...
11492 (h8300_print_operand_address): ...this. Make static. Adjust comments.
11493 Call h8300_print_operand and h8300_print_operand_address instead of
11494 print_operand and print_operand_address. Declare.
11495 (print_operand): Renake to...
11496 (h8300_print_operand): ...this. Make static. Adjust comments.
11497 Call h8300_print_operand instead of print_operand. Declare.
11498 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
11499 (h8300_register_move_cost): Likewise.
11500 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
11501 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
11502 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
11503 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
11504 * config/h8300/h8300-protos.h (print_operand): Delete.
11505 (print_operand_address): Delete.
11507 2011-04-01 Richard Henderson <rth@redhat.com>
11510 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
11511 in strict mode before dwarf4. Re-order tests to early out
11512 before switching sections.
11514 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
11516 * config/h8300/constraints.md: New file.
11517 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
11518 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
11519 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
11520 * config/h8300/predicates.md (bit_operand): Likewise.
11521 (incdec_operand): Use satisfies_constraint_M and
11522 satisfies_constraint_O. Don't use C code block.
11523 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
11524 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
11525 (compute_mov_length): Use satisfies_constraint_G.
11526 (fix_bit_operand): Use satisfies_constraint_U.
11527 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
11528 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
11529 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
11530 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
11531 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
11532 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
11533 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11534 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
11535 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
11536 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
11537 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
11538 (EXTRA_MEMORY_CONSTRAINT): Delete.
11540 2011-04-01 Andrew Pinski <pinskia@gmail.com>
11541 Michael Meissner <meissner@linux.vnet.ibm.com>
11544 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
11545 operands, as per the specifications.
11547 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
11548 (vec_extract_evenv4sf): Ditto.
11549 (vec_extract_evenv8hi): Ditto.
11550 (vec_extract_evenv16qi): Ditto.
11551 (vec_extract_oddv4si): Ditto.
11553 2011-03-31 Mark Wielaard <mjw@redhat.com>
11555 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
11556 high_pc attribute if the CU has no associated code. Only output
11557 DW_AT_entry_pc for CU if not generating strict dwarf and
11560 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
11562 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
11563 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
11565 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
11566 * final.c (final_start_function): Call the new function rather
11567 than using a NULL argument for dwarf2out_frame_debug.
11569 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
11570 that contains the prologue.
11572 * haifa-sched.c (queue_insn): New arg REASON. All callers
11573 changed. Print it in debugging output.
11575 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
11577 * sched-ebb.c (begin_schedule_ready): Remove second argument.
11578 Split most of the code into...
11579 (begin_move_insn): ... here. New function.
11580 (ebb_sched_info): Add a pointer to it.
11581 * haifa-sched.c (scheduled_insns): New static variable.
11582 (sched_extend_ready_list): Allocate it.
11583 (schedule_block): Use it to record the order of scheduled insns.
11584 Perform RTL changes to move insns only after all scheduling
11585 decisions have been made.
11586 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
11587 begin_move_insn field.
11588 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
11589 * sched-int.h (struct haifa_sched_info): Remove second argument
11590 from begin_schedule_ready hook. Add new member begin_move_insn.
11591 * sched-rgn.c (begin_schedule_ready): Remove second argument.
11592 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
11594 * haifa-sched.c (prune_ready_list): New function, broken out of
11596 (schedule_block): Use it.
11598 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11600 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
11602 2011-04-01 Kai Tietz <ktietz@redhat.com>
11604 * config.gcc (*-*-mingw*): Allow as option the
11605 posix threading model.
11606 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
11607 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
11609 (CPP_SPEC): Add pthread/no-pthread handling.
11610 (LIB_SPEC): Likewise.
11611 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
11612 (LIB_SPEC): Likewise.
11613 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
11614 flag to pass -pthread option for shared libgcc build.
11615 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
11616 for shared libgcc build.
11617 * config/i386/t-mingw-pthread: New file.
11618 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
11619 New define to enable use of library pthread by default.
11620 * config/i386/mingw.opt (pthread): New driver option.
11621 (no-pthread): New driver option.
11622 * config/i386/cygming.opt: Make sure trailing empty line is retained.
11623 * config/i386/mingw-w64.opt: Likewise.
11625 2011-04-01 Gary Funck <gary@intrepid.com>
11627 * c-decl.c (grokdeclarator): Fix formatting.
11629 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11631 * expr.c (emit_block_move_via_movmem): Use n_generator_args
11632 instead of n_operands.
11633 (set_storage_via_setmem): Likewise.
11634 * optabs.c (maybe_gen_insn): Likewise.
11635 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
11636 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
11637 (mips_expand_builtin_direct): Likewise.
11638 * config/spu/spu.c (expand_builtin_args): Likewise.
11640 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11642 * recog.h (insn_data_d): Add n_generator_args.
11643 * genoutput.c (data): Likewise.
11644 (output_insn_data): Print it.
11645 (max_opno, num_dups): Delete.
11646 (scan_operands): Just fill in "d->operand[...]".
11647 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
11649 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11651 * gensupport.h (pattern_stats): New structure.
11652 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
11653 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
11654 (max_operand_1, max_operand_vec): Delete.
11655 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
11657 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
11659 * emit-rtl.c (emit_pattern_after_setloc): New function.
11660 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
11661 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
11662 (emit_pattern_after): New function.
11663 (emit_insn_after, emit_jump_insn_after): Call it.
11664 (emit_call_insn_after, emit_debug_insn_after): Likewise.
11665 (emit_pattern_before_setloc): New function.
11666 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
11667 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
11669 (emit_pattern_before): New function.
11670 (emit_insn_before, emit_jump_insn_before): Call it.
11671 (emit_call_insn_before, emit_debug_insn_before): Likewise.
11673 2011-03-31 Richard Henderson <rth@redhat.com>
11675 * dwarf2out.c (dw_separate_line_info_ref): Remove.
11676 (dw_separate_line_info_entry): Remove.
11677 (enum dw_line_info_opcode): New.
11678 (dw_line_info_entry): Use it.
11679 (dw_line_info_table, dw_line_info_table_p): New.
11680 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
11681 (line_info_table, line_info_label_num): Remove.
11682 (line_info_table_in_use): Remove.
11683 (separate_line_info_table): Remove.
11684 (separate_line_info_table_allocated): Remove.
11685 (separate_line_info_table_in_use): Remove.
11686 (LINE_INFO_TABLE_INCREMENT): Remove.
11687 (line_info_label_num): New.
11688 (cur_line_info_table): New.
11689 (text_section_line_info, cold_text_section_line_info): New.
11690 (separate_line_info): New.
11691 (SEPARATE_LINE_CODE_LABEL): Remove.
11692 (print_dwarf_line_table): Remove.
11693 (debug_dwarf): Don't dump it.
11694 (output_one_line_info_table): New.
11695 (output_line_info): Use it.
11696 (new_line_info_table): New.
11697 (set_cur_line_info_table): New.
11698 (dwarf2out_switch_text_section): Use it.
11699 (dwarf2out_begin_function): Likewise.
11700 (push_dw_line_info_entry): New.
11701 (dwarf2out_source_line): Rewrite for new line info tables.
11702 (dwarf2out_init): Remove dead initailizations.
11704 2011-03-31 Joseph Myers <joseph@codesourcery.com>
11706 * opts.h (cl_option): Add comments to fields. Add bit-fields for
11708 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
11709 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
11710 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
11711 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
11712 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
11713 * opt-functions.awk (flag_init, switch_bit_fields): New.
11714 (switch_flags): Don't handle flags moved to bit-fields. Don't
11715 generate CL_MISSING_OK or CL_SAVE.
11716 * optc-gen.awk: Update to generate bit-field output as well as
11718 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
11719 bit-field instead of CL_REJECT_DRIVER flag.
11720 * opts-common.c (generate_canonical_option,
11721 decode_cmdline_option): Use bit-fields instead of CL_* flags.
11722 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
11723 instead of CL_REJECT_NEGATIVE flag.
11724 * toplev.c (print_switch_values): Use cl_report bit-field instead
11727 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
11729 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
11730 a zero minimum index only if it is redundant.
11732 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
11734 PR rtl-optimization/48381
11735 * ira-color.c (assign_hard_reg): Use hard reg set intersection
11736 instead of ira_class_hard_reg_index for calculating conflicting
11739 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
11741 * cprop.c: Clean up hash table building.
11742 (reg_avail_info): Remove.
11743 (oprs_available_p): Remove.
11744 (record_last_reg_set_info): Remove.
11745 (record_last_set_info): Remove.
11746 (reg_available_p): New function.
11747 (gcse_constant_p): Do not treat unfolded conditions as constants.
11748 (make_set_regs_unavailable): New function.
11749 (hash_scan_set): Simplify with new reg_available_p.
11750 (compute_hash_table_work): Traverse insns stream only once.
11751 Do not compute reg_avail_info. Traverse insns in reverse order.
11752 Record implicit sets after recording explicit sets from the block.
11754 2011-03-31 Michael Matz <matz@suse.de>
11756 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
11758 2011-03-31 Anatoly Sokolov <aesok@post.ru>
11760 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
11761 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
11762 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11763 (h8300_mode_dependent_address_p): New function.
11764 (h8300_get_index): Make static.
11766 2011-03-31 Jeff Law <law@redhat.com>
11768 * reload1.c (elimination_effects): Fix typo in recent change.
11770 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
11771 typo potentially leading to null pointer dereference.
11773 * caller-save.c (new_saved_hard_reg): Eliminate return value.
11774 (setup_save_areas): Corresponding changes to avoid useless
11777 * jump.c (reversed_comparison_code_parts): Avoid successive return
11778 statements when REVERSE_CONDITION is defined.
11780 * expr.c (expand_assignment): Avoid useless assignments.
11781 (expand_expr_real_1): Likewise.
11782 (expand_expr_real_2): Avoid useless statements.
11784 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
11786 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11788 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
11791 * stmt.c (expand_expr_stmt): Avoid useless assignment.
11793 2011-03-31 Joseph Myers <joseph@codesourcery.com>
11796 * doc/tm.texi.in (TARGET_VERSION): Remove.
11797 * doc/tm.texi: Regenerate.
11798 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
11799 * collect2.c (main): Don't use TARGET_VERSION.
11800 * mips-tdump.c (main): Don't use TARGET_VERSION.
11801 * mips-tfile.c (main): Don't use TARGET_VERSION.
11802 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
11803 * config/rs6000/vxworksae.h: Remove.
11804 * config/alpha/alpha.h (TARGET_VERSION): Remove.
11805 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
11806 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
11807 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
11808 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11809 * config/arm/arm.h (TARGET_VERSION): Remove.
11810 * config/arm/coff.h (TARGET_VERSION): Remove.
11811 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
11812 * config/arm/elf.h (TARGET_VERSION): Remove.
11813 * config/arm/freebsd.h (TARGET_VERSION): Remove.
11814 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
11815 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
11816 * config/arm/pe.h (TARGET_VERSION): Remove.
11817 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
11818 * config/arm/semi.h (TARGET_VERSION): Remove.
11819 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
11820 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
11821 * config/arm/vxworks.h (TARGET_VERSION): Remove.
11822 * config/avr/avr.h (TARGET_VERSION): Remove.
11823 * config/bfin/bfin.h (TARGET_VERSION): Remove.
11824 * config/fr30/fr30.h (TARGET_VERSION): Remove.
11825 * config/frv/frv.h (TARGET_VERSION): Remove.
11826 * config/h8300/h8300.h (TARGET_VERSION): Remove.
11827 * config/i386/cygwin.h (TARGET_VERSION): Remove.
11828 * config/i386/darwin.h (TARGET_VERSION): Remove.
11829 * config/i386/darwin64.h (TARGET_VERSION): Remove.
11830 * config/i386/djgpp.h (TARGET_VERSION): Remove.
11831 * config/i386/freebsd.h (TARGET_VERSION): Remove.
11832 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
11833 * config/i386/gnu.h (TARGET_VERSION): Remove.
11834 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
11835 * config/i386/i386elf.h (TARGET_VERSION): Remove.
11836 * config/i386/linux.h (TARGET_VERSION): Remove.
11837 * config/i386/linux64.h (TARGET_VERSION): Remove.
11838 * config/i386/lynx.h (TARGET_VERSION): Remove.
11839 * config/i386/mingw32.h (TARGET_VERSION): Remove.
11840 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
11841 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
11842 * config/i386/netware.h (TARGET_VERSION): Remove.
11843 * config/i386/nto.h (TARGET_VERSION): Remove.
11844 * config/i386/openbsd.h (TARGET_VERSION): Remove.
11845 * config/i386/vxworks.h (TARGET_VERSION): Remove.
11846 * config/ia64/elf.h (TARGET_VERSION): Remove.
11847 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
11848 * config/ia64/hpux.h (TARGET_VERSION): Remove.
11849 * config/ia64/linux.h (TARGET_VERSION): Remove.
11850 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11851 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
11852 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11853 * config/lm32/lm32.h (TARGET_VERSION): Remove.
11854 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
11855 * config/m32c/m32c.h (TARGET_VERSION): Remove.
11856 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
11857 * config/m32r/m32r.h (TARGET_VERSION): Remove.
11858 * config/m68k/linux.h (TARGET_VERSION): Remove.
11859 * config/m68k/m68k.h (TARGET_VERSION): Remove.
11860 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
11861 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
11862 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
11863 * config/mep/mep.h (TARGET_VERSION): Remove.
11864 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
11865 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11866 * config/mips/iris6.h (MACHINE_TYPE): Remove.
11867 * config/mips/linux.h (TARGET_VERSION): Remove.
11868 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
11869 * config/mips/vxworks.h (TARGET_VERSION): Remove.
11870 * config/mmix/mmix.h (TARGET_VERSION): Remove.
11871 * config/mn10300/linux.h (TARGET_VERSION): Remove.
11872 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
11873 * config/pa/pa.h (TARGET_VERSION): Remove.
11874 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
11875 * config/picochip/picochip.h (TARGET_VERSION): Remove.
11876 * config/rs6000/aix.h (TARGET_VERSION): Remove.
11877 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
11878 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
11879 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
11880 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
11881 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
11882 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
11883 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
11884 * config/rs6000/linux.h (TARGET_VERSION): Remove.
11885 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
11886 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
11887 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
11888 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
11889 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
11890 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
11891 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
11892 * config/s390/linux.h (TARGET_VERSION): Remove.
11893 * config/s390/s390.h (TARGET_VERSION): Remove.
11894 * config/s390/tpf.h (TARGET_VERSION): Remove.
11895 * config/score/score.h (TARGET_VERSION): Remove.
11896 * config/sh/linux.h (TARGET_VERSION): Remove.
11897 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
11898 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
11899 * config/sh/sh.h (TARGET_VERSION): Remove.
11900 * config/sh/sh64.h (TARGET_VERSION): Remove.
11901 * config/sh/superh.h (TARGET_VERSION): Remove.
11902 * config/sh/vxworks.h (TARGET_VERSION): Remove.
11903 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
11904 * config/sparc/linux.h (TARGET_VERSION): Remove.
11905 * config/sparc/linux64.h (TARGET_VERSION): Remove.
11906 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
11907 TARGET_NAME32, TARGET_NAME): Remove.
11908 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
11909 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
11910 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
11911 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
11912 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
11913 * config/spu/spu.h (TARGET_VERSION): Remove.
11914 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
11915 * config/v850/v850.h (TARGET_VERSION): Remove.
11916 * config/vax/linux.h (TARGET_VERSION): Remove.
11917 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
11918 * config/xtensa/elf.h (TARGET_VERSION): Remove.
11919 * config/xtensa/linux.h (TARGET_VERSION): Remove.
11921 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
11924 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
11925 frame-related from frame-unrelated adjustments to the stack pointer.
11927 2011-03-31 Jakub Jelinek <jakub@redhat.com>
11929 * common.opt (fdebug-types-section): Move earlier.
11930 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
11932 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
11934 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
11937 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
11939 * tree.h (CASE_CHAIN): Define.
11940 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
11941 (gimple_redirect_edge_and_branch): Likewise.
11943 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
11945 PR middle-end/48367
11946 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
11949 2011-03-30 Jeff Law <law@redhat.com>
11951 * PR bootstrap/48371
11952 * reload1.c (reload): Fix botch in last change.
11954 * reload.h (struct reload): Fix typo introduced in last change.
11956 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11958 * config/arm/arm.opt (mhard-float, msoft-float): Mark
11959 Undocumented. Remove help text.
11960 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
11963 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11965 * doc/options.texi (NegativeAlias): Document.
11966 (Alias): Mention NegativeAlias.
11967 * opt-functions.awk: Handle NegativeAlias.
11968 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
11969 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
11970 * opts.h (CL_NEGATIVE_ALIAS): Define.
11971 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
11972 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
11974 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
11976 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11977 mno-spe and mno-isel instead of mspe=no and -misel=no.
11979 2011-03-29 Mark Wielaard <mjw@redhat.com>
11981 * common.opt (fdebug-types-section): New flag.
11982 * doc/invoke.texi: Document new -fno-debug-types-section flag.
11983 * dwarf2out.c (use_debug_types): New define.
11984 (struct die_struct): Mark die_id with GTY desc use_debug_types.
11985 (print_die): Guard output of type unit signatures using
11987 (build_abbrev_table): Replace assert of dwarf_version >= 4
11988 with assert on use_debug_types.
11989 (size_of_die): Likewise.
11990 (unmark_dies): Likewise.
11991 (value_format): Decide AT_ref_external form on use_debug_types.
11992 (output_die): Replace dwarf_version version check guard with
11993 use_debug_types where appropriate.
11994 (modified_type_die): Likewise.
11995 (gen_reference_type_die): Likewise.
11996 (dwarf2out_start_source_file): Likewise.
11997 (dwarf2out_end_source_file): Likewise.
11998 (prune_unused_types_walk_attribs): Likewise.
11999 (dwarf2out_finish): Likewise.
12001 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
12003 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
12005 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12007 PR rtl-optimization/48332
12008 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
12009 mode of input operand N and modeN to its actual mode.
12011 2011-03-30 Jeff Law <law@redhat.com>
12013 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
12014 define accessor macro.
12015 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
12016 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
12017 (reg_equiv_init): Likewise.
12018 (reg_equivs_size): New variable.
12019 (reg_equiv_init_size): Remove.
12020 (allocate_initial_values): Move prototype to here from....
12021 * integrate.h (allocate_initial_values): Remove prototype.
12022 * integrate.c: Include reload.h.
12023 (allocate_initial_values): Corresponding changes.
12024 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
12025 (fix_reg_equiv_init, no_equiv): Corresponding changes.
12026 (update_equiv_regs): Corresponding changes.
12027 (ira): Corresponding changes.
12028 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
12029 (push_secondary_reload): Corresponding changes.
12030 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
12031 (make_memloc, find_reloads_address): Corresponding changes.
12032 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
12033 (find_reloads_address_1): Corresponding changes.
12034 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
12035 (refers_to_regno_for_reload_p): Corresponding changes.
12036 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
12037 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
12038 * reload1.c: Include ggc.h.
12039 (grow_reg_equivs): New function.
12040 (replace_pseudos_in, reload): Corresponding changes.
12041 (calculate_needs_all_insns, alter_regs): Corresponding changes.
12042 (eliminate_regs_1, elimination_effects): Corresponding changes.
12043 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
12044 (delete_output_reload): Likewise.
12045 * caller-save.c (mark_referenced_regs): Corresponding changes.
12046 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
12047 * frv/predicates.md (frv_load_operand): Corresponding changes.
12048 * microblaze/microblaze.c (double_memory_operand): Corresponding
12050 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
12051 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
12052 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
12053 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
12054 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
12056 * pa/pa.c (emit_move_sequence): Corresponding changes.
12057 * vax/vax.c (nonindexed_address_p): Corresponding changes.
12059 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12062 * config/arm/arm.c (coproc_secondary_reload_class): Handle
12063 structure modes. Don't check neon_vector_mem_operand for
12064 vector or structure modes.
12066 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12067 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12070 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
12071 operand 1 and reshuffle the operands to match.
12072 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
12074 2011-03-30 Christian Schüler <cschueler@gmx.de>
12077 * config/c.opt (F): Added 'Driver' to -F option.
12080 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
12082 * config/darwin.opt: Added '-arch' option.
12084 2011-03-30 Nick Clifton <nickc@redhat.com>
12086 * config/rx/rx.md: Add peepholes and patterns to combine
12087 extending loads and simple arithmetic instructions.
12088 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
12089 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
12090 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
12091 modes to use pre-decrement and post-increment addressing.
12092 (rx_is_restricted_memory_address): Add range checking of REG+INT
12094 (rx_print_operand): Add support for %Q. Fix handling of %Q.
12095 (rx_memory_move_cost): Adjust cost of stores.
12096 (rx_adjust_insn_length): New function.
12098 2011-03-30 Jakub Jelinek <jakub@redhat.com>
12101 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12102 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
12103 matching arg00/arg01 types.
12105 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
12107 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
12108 last_location to UNKNOWN_LOCATION.
12110 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
12113 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
12116 2011-03-30 Joseph Myers <joseph@codesourcery.com>
12117 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12120 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
12121 Init(PROCESSOR_V7).
12122 (sparc_cpu): Likewise.
12123 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
12126 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12129 PR middle-end/48342
12130 PR rtl-optimization/48345
12131 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
12132 hard regs for given mode from profitable regs when doing secondary
12135 2011-03-29 Jeff Law <law@redhat.com>
12138 * tree-ssa-threadupdate.c (struct redirection_data): Remove
12139 do_not_duplicate field.
12140 (lookup_redirection_data): Corresponding changes.
12141 (create_duplicates): Always create a template block.
12142 (redirect_edges): Remove code which reused the original block
12143 when it was going to become unreachable code.
12144 (thread_block): Don't set do_not_duplicate field.
12146 2011-03-29 Joseph Myers <joseph@codesourcery.com>
12148 * lto-opts.c (register_user_option_p, lto_register_user_option):
12149 Make type argument unsigned.
12150 * lto-streamer.h (lto_register_user_option): Make type argument
12152 * opth-gen.awk: Make CL_* macros unsigned.
12153 * opts-common.c (find_opt): Make lang_mask argument unsigned.
12154 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
12155 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
12156 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
12157 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
12158 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
12159 (find_opt): Make lang_mask argument unsigned.
12161 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12163 PR rtl-optimization/48331
12164 PR rtl-optimization/48334
12165 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
12166 for any used algorithm.
12168 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12170 * ira-conflicts.c (build_object_conflicts): Add unused attribute
12173 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
12175 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
12176 (alpha_option_override): Don't set alpha_sr_alias_set.
12177 (emit_frame_store_1): Use gen_frame_mem rather than calling
12179 (alpha_expand_epilogue): Ditto.
12181 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
12183 PR tree-optimization/48290
12184 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
12185 vectorization, check that relevant phis in the basic block after
12186 the inner loop are really inner loop's exit phis.
12188 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
12191 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
12192 (cached_dw_loc_list_def): New structure.
12193 (cached_dw_loc_list): New typedef.
12194 (cached_dw_loc_list_table): New variable.
12195 (cached_dw_loc_list_table_hash): New function.
12196 (cached_dw_loc_list_table_eq): Likewise.
12197 (add_location_or_const_value_attribute): Take a bool cache_p.
12198 Cache the list when the parameter is true.
12199 (gen_formal_parameter_die): Update caller.
12200 (gen_variable_die): Likewise.
12201 (dwarf2out_finish): Likewise.
12202 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
12203 while generating debug info for the decl.
12204 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
12205 (dwarf2out_init): Initialize cached_dw_loc_list_table.
12206 (resolve_addr): Cache the result of resolving a chain of
12209 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
12211 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
12212 conflict object hard regset nodes have intersecting hard reg sets.
12214 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
12215 after regstat_init_n_sets_and_refs.
12217 * ira.c: Add more comments at the top.
12218 (setup_stack_reg_pressure_class, setup_pressure_classes):
12219 Add comments how we compute the register pressure classes.
12220 (setup_allocno_and_important_classes): Add more comments.
12221 (setup_class_translate_array, reorder_important_classes)
12222 (setup_reg_class_relations): Add comments.
12224 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
12227 * ira-color.c: Add 2011 to the Copyright line.
12228 (assign_hard_reg): Add more comments.
12229 (improve_allocation): Ditto.
12231 * ira-costs.c: Add 2011 to the Copyright line.
12232 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
12234 (setup_regno_cost_classes_by_mode): Ditto.
12236 Initial patches from ira-improv branch:
12238 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12240 * ira-build.c (ira_create_object): Remove initialization of
12241 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
12242 (ira_create_allocno): Remove initialization of
12243 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
12244 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
12245 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12246 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
12247 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
12248 Initialize ALLOCNO_ADD_DATA.
12249 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
12250 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
12252 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
12253 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
12255 * ira.c (ira_reallocate): Remove.
12256 (setup_pressure_classes): Call
12257 ira_init_register_move_cost_if_necessary. Use
12258 ira_register_move_cost instead of ira_get_register_move_cost.
12259 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
12260 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
12262 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
12263 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12264 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
12265 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
12266 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
12267 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
12269 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
12270 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12271 (struct allocno_color_data): New.
12272 (allocno_color_data_t): New typedef.
12273 (allocno_color_data): New definition.
12274 (ALLOCNO_COLOR_DATA): New macro.
12275 (struct object_color_data): New.
12276 (object_color_data_t): New typedef.
12277 (object_color_data): New definition.
12278 (OBJECT_COLOR_DATA): New macro.
12279 (update_copy_costs, calculate_allocno_spill_cost): Call
12280 ira_init_register_move_cost_if_necessary. Use
12281 ira_register_move_cost instead of ira_get_register_move_cost.
12282 (move_spill_restore, update_curr_costs): Ditto.
12283 (allocno_spill_priority): Make it inline.
12284 (color_pass): Allocate and free allocno_color_dat and object_color_data.
12285 (struct coalesce_data, coalesce_data_t): New.
12286 (allocno_coalesce_data): New definition.
12287 (ALLOCNO_COALESCE_DATA): New macro.
12288 (merge_allocnos, coalesced_allocno_conflict_p): Use
12289 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
12290 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
12291 (coalesce_allocnos): Ditto.
12292 (setup_coalesced_allocno_costs_and_nums): Ditto.
12293 (collect_spilled_coalesced_allocnos): Ditto.
12294 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
12295 (setup_slot_coalesced_allocno_live_ranges): Ditto.
12296 (coalesce_spill_slots): Ditto.
12297 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
12298 free allocno_coalesce_data.
12300 * ira-conflicts.c: Fix formatting.
12301 (process_regs_for_copy): Call
12302 ira_init_register_move_cost_if_necessary. Use
12303 ira_register_move_cost instead of ira_get_register_move_cost.
12304 (build_object_conflicts): Optimize.
12306 * ira-costs.c (record_reg_classes): Optimize. Call
12307 ira_init_register_move_cost_if_necessary. Use
12308 ira_register_move_cost, ira_may_move_in_cost, and
12309 ira_may_move_out_cost instead of ira_get_register_move_cost and
12310 ira_get_may_move_cost.
12311 (record_address_regs): Ditto.
12312 (scan_one_insn): Optimize.
12313 (find_costs_and_classes): Optimize.
12314 (process_bb_node_for_hard_reg_moves): Call
12315 ira_init_register_move_cost_if_necessary. Use
12316 ira_register_move_cost instead of ira_get_register_move_cost.
12318 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
12319 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
12320 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
12321 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
12323 (ira_initiate_emit_data, ira_finish_emit_data)
12324 (create_new_allocno): New functions.
12325 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
12326 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
12327 Use ira_register_move_cost instead of ira_get_register_move_cost.
12329 * ira-int.h: Fix some comments.
12330 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
12331 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12332 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
12333 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
12335 (struct ira_allocno): Make mode and aclass a bitfield. Move other
12336 bitfield after mode. Make hard_regno a short int. Make
12337 hard_regno short. Remove first_coalesced_allocno and
12338 next_coalesced_allocno. Move mem_optimized_dest_p,
12339 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
12340 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
12341 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
12342 temp, colorable_p. Add new member add_data.
12343 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
12344 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
12345 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
12346 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
12347 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
12348 (ALLOCNO_ADD_DATA): New macro.
12349 (ira_emit_data_t): New typedef.
12350 (struct ira_emit_data): New. Move mem_optimized_dest_p,
12351 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
12352 from struct ira_allocno.
12353 (ALLOCNO_EMIT_DATA): New macro.
12354 (ira_allocno_emit_data, allocno_emit_reg): New.
12355 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
12356 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
12357 (OBJECT_ADD_DATA): New macro.
12358 (ira_reallocate): Remove.
12359 (ira_initiate_emit_data, ira_finish_emit_data): New.
12360 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
12361 (ira_init_register_move_cost_if_necessary): New.
12362 (ira_object_conflict_iter_next): Merge into
12363 ira_object_conflict_iter_cond.
12364 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
12366 * ira-live.c (process_single_reg_class_operands): Call
12367 ira_init_register_move_cost_if_necessary. Use
12368 ira_register_move_cost instead of ira_get_register_move_cost.
12370 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12372 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
12374 * ira-costs.c: Fix formatting.
12375 (cost_classes, cost_classes_num): Remove.
12376 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
12377 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
12378 (cost_classes_del, cost_classes_htab): New.
12379 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
12380 (initiate_regno_cost_classes, setup_cost_classes): New.
12381 (setup_regno_cost_classes_by_aclass): New.
12382 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
12383 (record_reg_classes): Use regno_cost_classes instead of
12384 cost_classes. Move checking opposite operand up.
12385 (record_address_regs): Use regno_cost_classes
12386 instead of cost_classes.
12387 (scan_one_insn): Ditto. Use always general register.
12388 (print_allocno_costs): Use regno_cost_classes instead of
12390 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
12391 (find_costs_and_classes): Set up cost classes for each registers.
12392 Use also their mode for this. Use regno_cost_classes instead of
12394 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
12396 (free_ira_costs, ira_init_costs): Don't use cost_classes.
12397 (ira_costs, ira_set_pseudo_classes): Call
12398 initiate_regno_cost_classes and finish_regno_cost_classes.
12400 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
12402 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
12404 * target.def (ira_cover_classes): Remove.
12406 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
12408 * doc/tm.texi.in: Ditto.
12410 * ira-conflicts.c: Remove mentioning cover classes from the file.
12411 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
12412 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
12414 * targhooks.c (default_ira_cover_classes): Remove.
12416 * targhooks.h (default_ira_cover_classes): Ditto.
12418 * haifa-sched.c: Remove mentioning cover classes from the file.
12419 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12420 ira_pressure_classes and ira_pressure_classes_num instead of
12421 ira_reg_class_cover_size and ira_reg_class_cover. Use
12422 sched_regno_pressure_class instead of sched_regno_cover_class.
12423 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
12424 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12426 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
12427 classes from the file.
12428 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
12429 (struct object_hard_regs, struct object_hard_regs_node): New.
12430 (struct ira_object): New members profitable_hard_regs,
12431 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
12432 (struct ira_allocno): Rename cover_class to aclass. Rename
12433 cover_class_cost and updated_cover_class_cost to class_cost and
12434 updated_class_cost. Remove splay_removed_p and
12435 left_conflict_size. Add new members colorable_p.
12436 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
12437 (ALLOCNO_COLORABLE_P): New macro.
12438 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
12439 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
12440 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
12441 (OBJECT_...): Rename parameter C to O.
12442 (OBJECT_PROFITABLE_HARD_REGS): New macro.
12443 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
12444 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
12445 (struct target_ira_int): New members x_ira_max_memory_move_cost,
12446 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
12447 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
12448 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
12449 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
12450 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
12451 x_ira_reg_class_subunion.
12452 (ira_max_memory_move_cost, ira_max_register_move_cost)
12453 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
12454 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
12455 (ira_important_class_nums, ira_reg_class_superunion): New macros.
12456 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
12457 (ira_reg_class_union): Rename to ira_reg_class_subunion.
12458 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12459 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12460 (ira_tune_allocno_costs_and_cover_classes): Rename to
12461 ira_tune_allocno_costs.
12462 (ira_debug_hard_regs_forest): New.
12463 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
12464 (ira_object_conflict_iter_next): Fix comments.
12465 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
12466 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
12467 cover_class to aclass.
12468 (ira_allocate_and_accumulate_costs): Ditto.
12469 (ira_allocate_and_set_or_copy_costs): Ditto.
12471 * opts.c (decode_options): Remove ira_cover_class check.
12473 * ira-color.c: Remove mentioning cover classes from the file. Use
12474 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
12475 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
12476 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12477 (splay-tree.h): Remove include.
12478 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
12479 before copy_freq_compare_func.
12480 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
12481 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
12483 (hard_regs_roots, hard_regs_node_vec): Ditto.
12484 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
12485 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
12486 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
12487 (create_new_object_hard_regs_node): Ditto.
12488 (add_new_object_hard_regs_node_to_forest): Ditto.
12489 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
12490 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
12492 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
12493 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
12494 (remove_unused_object_hard_regs_nodes): Ditto.
12495 (enumerate_object_hard_regs_nodes): Ditto.
12496 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
12497 (object_hard_regs_subnode_t): Ditto.
12498 (struct object_hard_regs_subnode): Ditto.
12499 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
12500 (setup_object_hard_regs_subnode_index): Ditto.
12501 (get_object_hard_regs_subnodes_num): Ditto.
12502 (form_object_hard_regs_nodes_forest): Ditto.
12503 (finish_object_hard_regs_nodes_tree): Ditto.
12504 (finish_object_hard_regs_nodes_forest): Ditto.
12505 (allocnos_have_intersected_live_ranges_p): Rename to
12506 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
12507 (pseudos_have_intersected_live_ranges_p): Rename to
12508 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
12509 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
12510 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
12511 (update_copy_costs): Remove assert. Skip cost update if the hard
12512 reg does not belong the class.
12513 (assign_hard_reg): Process only profitable hard regs.
12514 (uncolorable_allocnos_num): Make it scalar.
12515 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12516 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
12517 and ira_reg_class_max_nregs.
12518 (bucket_allocno_compare_func): Check frequency first.
12519 (sort_bucket): Add compare function as a parameter.
12520 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
12521 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
12522 (push_allocno_to_stack): Rewrite for checking new allocno
12524 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
12525 (push_only_colorable): Pass new parameter to sort_bucket.
12526 (push_allocno_to_spill): Remove.
12527 (allocno_spill_priority_compare): Make it inline and rewrite.
12528 (splay_tree_allocate, splay_tree_free): Remove.
12529 (allocno_spill_sort_compare): New function.
12530 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
12531 build and use splay tree. Choose first allocno in uncolorable
12532 allocno bucket to spill. Remove setting spill cost.
12533 (all_conflicting_hard_regs): Remove.
12534 (setup_allocno_available_regs_num): Check only profitable hard
12535 regs. Print info about hard regs nodes.
12536 (setup_allocno_left_conflicts_size): Remove.
12537 (put_allocno_into_bucket): Don't call
12538 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
12539 (improve_allocation): New.
12540 (color_allocnos): Call setup_profitable_hard_regs,
12541 form_object_hard_regs_nodes_forest, improve_allocation,
12542 finish_object_hard_regs_nodes_forest. Setup spill cost.
12543 (print_loop_title): Use pressure classes.
12544 (color_allocnso): Ditto.
12545 (do_coloring): Remove allocation and freeing splay_tree_node_pool
12546 and allocnos_for_spilling.
12547 (ira_sort_regnos_for_alter_reg): Don't setup members
12548 {first,next}_coalesced_allocno.
12549 (color): Remove allocating and freeing removed_splay_allocno_vec.
12550 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
12551 prohibited_class_mode_regs.
12553 * ira-lives.c: Remove mentioning cover classes from the file. Fix
12555 (update_allocno_pressure_excess_length): Use pressure classes.
12556 (inc_register_pressure, dec_register_pressure): Check for pressure
12558 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
12559 pressure class. Use ira_reg_class_nregs instead of
12560 ira_reg_class_max_nregs.
12561 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
12562 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
12563 (single_reg_class): Use ira_reg_class_nregs instead of
12564 ira_reg_class_max_nregs.
12565 (process_bb_node_lives): Use pressure classes.
12567 * ira-emit.c: Remove mentioning cover classes from the file. Use
12568 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
12569 (change_loop): Use pressure classes.
12570 (modify_move_list): Call ira_set_allocno_class instead of
12571 ira_set_allocno_cover_class.
12573 * ira-build.c: Remove mentioning cover classes from the file. Use
12574 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
12575 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
12576 ALLOCNO_UPDATED_CLASS_COST instead of
12577 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12578 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
12579 (ira_create_allocno): Remove initialization of
12580 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
12581 ALLOCNO_COLORABLE_P.
12582 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12583 Update conflict regs for the objects.
12584 (create_cap_allocno): Remove assert. Don't propagate
12585 ALLOCNO_AVAILABLE_REGS_NUM.
12586 (ira_free_allocno_costs): New function.
12587 (finish_allocno): Change a part of code into call of
12588 ira_free_allocno_costs.
12589 (low_pressure_loop_node_p): Use pressure classes.
12590 (object_range_compare_func): Don't compare classes.
12591 (setup_min_max_conflict_allocno_ids): Ditto.
12593 * loop-invariant.c: Remove mentioning cover classes from the file.
12594 Use ira_pressure_classes and ira_pressure_classes_num instead of
12595 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
12596 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
12597 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12598 Use reg_allocno_class instead of reg_cover_class.
12599 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
12600 STACK_REG_COVER_CLASS.
12601 (get_regno_cover_class): Rename to get_regno_pressure_class.
12602 (move_loop_invariants): Initialize and finalize regstat.
12604 * ira.c: Remove mentioning cover classes from the file. Add
12605 comments about coloring without cover classes. Use ALLOCNO_CLASS
12606 instead of ALLOCNO_COVER_CLASS. Fix formatting.
12607 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
12608 setup_class_subset_and_memory_move_costs.
12609 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
12610 (setup_cover_and_important_classes): Rename to
12611 setup_allocno_and_important_classes.
12612 (setup_class_translate_array): New.
12613 (setup_class_translate): Call it for allocno and pressure classes.
12614 (cover_class_order): Rename to allocno_class_order.
12615 (comp_reg_classes_func): Use ira_allocno_class_translate instead
12616 of ira_class_translate.
12617 (reorder_important_classes): Set up ira_important_class_nums.
12618 (setup_reg_class_relations): Set up ira_reg_class_superunion.
12619 (print_class_cover): Rename to print_classes. Add parameter.
12620 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12621 Print pressure classes too.
12622 (find_reg_class_closure): Rename to find_reg_classes. Don't call
12623 setup_reg_subclasses.
12624 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12625 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12626 (setup_prohibited_class_mode_regs): Use
12627 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
12628 (clarify_prohibited_class_mode_regs): New function.
12629 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
12630 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
12631 (ira_init_once): Initialize them.
12632 (free_register_move_costs): Process them.
12633 (ira_init): Move calls of find_reg_classes and
12634 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
12635 Call clarify_prohibited_class_mode_regs.
12636 (ira_no_alloc_reg): Remove.
12637 (too_high_register_pressure_p): Use pressure classes.
12639 * sched-deps.c: Remove mentioning cover classes from the file.
12640 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12641 ira_pressure_classes and ira_pressure_classes_num instead of
12642 ira_reg_class_cover_size and ira_reg_class_cover.
12643 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
12644 sched_regno_pressure_class instead of sched_regno_cover_class.
12645 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
12646 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12648 * ira.h: Add 2010 to Copyright.
12649 (ira_no_alloc_reg): Remove external.
12650 (struct target_ira): Rename x_ira_hard_regno_cover_class,
12651 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
12652 x_ira_class_translate to x_ira_hard_regno_allocno_class,
12653 x_ira_allocno_classes_num, x_ira_allocno_classes, and
12654 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
12655 x_ira_pressure_classes, x_ira_pressure_class_translate, and
12656 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
12657 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
12658 x_ira_no_alloc_regs.
12659 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12660 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
12661 ira_allocno_classes_num and ira_allocno_classes.
12662 (ira_class_translate): Rename to ira_allocno_class_translate.
12663 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
12664 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
12665 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12666 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
12667 (ira_no_alloc_regs): New.
12669 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
12670 classes from the file. Use ALLOCNO_CLASS instead of
12671 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
12672 ALLOCNO_COVER_CLASS_COST.
12673 (regno_cover_class): Rename to regno_aclass.
12674 (record_reg_classes): Use ira_reg_class_subunion instead of
12675 ira_reg_class_union.
12676 (record_address_regs): Check overflow.
12677 (scan_one_insn): Ditto.
12678 (print_allocno_costs): Print total mem cost fore regional allocation.
12679 (print_pseudo_costs): Use REG_N_REFS.
12680 (find_costs_and_classes): Use classes intersected with them on the
12681 1st pass. Check overflow. Use ira_reg_class_subunion instead of
12682 ira_reg_class_union. Use ira_allocno_class_translate and
12683 regno_aclass instead of ira_class_translate and regno_cover_class.
12684 Modify code for finding regno_aclass. Setup preferred classes for
12686 (setup_allocno_cover_class_and_costs): Rename to
12687 setup_allocno_class_and_costs. Use regno_aclass instead of
12688 regno_cover_class. Use ira_set_allocno_class instead of
12689 ira_set_allocno_cover_class.
12690 (init_costs, finish_costs): Use regno_aclass instead of
12692 (ira_costs): Use setup_allocno_class_and_costs instead of
12693 setup_allocno_cover_class_and_costs.
12694 (ira_tune_allocno_costs_and_cover_classes): Rename to
12695 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
12696 by processing objects. Use ira_reg_class_max_nregs instead of
12697 ira_reg_class_nregs.
12699 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
12701 * sched-int.h: Remove mentioning cover classes from the file.
12702 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
12704 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
12705 classes from the file.
12706 (struct reg_pref): Rename coverclass into allocnoclass.
12707 (reg_cover_class): Rename to reg_allocno_class.
12709 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
12711 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
12713 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
12715 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
12717 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
12719 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
12721 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
12723 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
12725 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
12727 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
12729 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
12730 (i386_ira_cover_classes): Ditto.
12732 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
12734 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
12736 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
12738 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
12740 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
12742 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
12744 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
12745 (mips_ira_cover_classes): Ditto.
12747 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
12749 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
12751 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
12753 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
12755 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
12757 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
12758 (IRA_COVER_CLASSES_VSX): Ditto.
12760 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
12761 (rs6000_ira_cover_classes): Ditto.
12763 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
12765 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
12767 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
12769 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
12771 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
12773 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
12775 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
12777 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
12779 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
12781 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
12783 2011-03-29 Jakub Jelinek <jakub@redhat.com>
12786 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
12787 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
12788 dw_fde_unlikely_section_end_label, cold_in_std_section,
12789 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
12790 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
12792 (output_fde): Use dw_fde_second_{begin,end} if second is
12793 true, otherwise dw_fde_{begin,end}.
12794 (output_call_frame_info): Test dw_fde_second_begin != NULL
12795 instead of dw_fde_switched_sections.
12796 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
12797 fields, initialize new fields. Initialize in_std_section
12798 unconditionally from the first partition.
12799 (dwarf2out_end_epilogue): Don't override dw_fde_end when
12800 dw_fde_second_begin is non-NULL.
12801 (dwarf2out_switch_text_section): Stop initializing removed
12802 dw_fde_struct fields, initialize new fields, initialize
12803 also dw_fde_end here. Set dw_fde_switch_cfi even when
12804 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
12805 (struct var_loc_list_def): Add last_before_switch field.
12806 (arange_table, arange_table_allocated, arange_table_in_use,
12807 ARANGE_TABLE_INCREMENT, add_arange): Removed.
12808 (size_of_aranges): Count !in_std_section and !second_in_std_section
12809 hunks in fdes, instead of looking at arange_table_in_use.
12810 (output_aranges): Add aranges_length argument, don't call
12811 size_of_aranges here. Instead of using aranges_table*
12812 emit ranges for fdes when !in_std_section resp.
12813 !second_in_std_section.
12814 (dw_loc_list): Break ranges crossing section switch.
12815 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
12816 use dw_fde_second_end instead of dw_fde_end as end of last range.
12817 (gen_subprogram_die): Don't call add_arange. Use
12818 dw_fde_{begin,end} for first partition and if switched
12819 section dw_fde_second_{begin,end} for the second.
12820 (var_location_switch_text_section_1,
12821 var_location_switch_text_section): New functions.
12822 (dwarf2out_begin_function): Initialize cold_text_section even
12823 when function_section () isn't text_section.
12824 (prune_unused_types): Don't walk arange_table.
12825 (dwarf2out_finish): Don't needlessly test
12826 flag_reorder_blocks_and_partition when testing cold_text_section_used.
12827 If info_section_emitted, call size_of_aranges and if it indicates
12828 non-empty .debug_aranges, call output_aranges with the computed
12829 size. Stop using removed dw_fde_struct fields, use
12830 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
12834 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
12835 create ENTRY_VALUE if incoming or address of incoming's MEM
12837 * dwarf2out.c (mem_loc_descriptor): Don't emit
12838 DW_OP_GNU_entry_value of DW_OP_fbreg.
12839 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
12840 on ENTRY_VALUE is able to find the canonical parameter VALUE.
12841 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
12842 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
12844 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
12845 is a REG_P or MEM_P with REG_P address, compute hash directly
12846 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
12847 (preserve_only_constants): Don't clear VALUES forwaring
12848 ENTRY_VALUE to some other VALUE.
12850 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
12852 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
12853 instead of GEN_INT.
12855 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
12857 * cfgexpand.c (expand_gimple_cond): Always set the source location and
12858 block before expanding the statement.
12859 (expand_gimple_stmt_1): Likewise. Set them here...
12860 (expand_gimple_stmt): ...and not here. Tidy.
12861 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
12864 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
12866 * Makefile.in: New rule for cprop.o.
12867 * gcse.c: Move constant/copy propagation to cprop.c.
12868 (compute_local_properties): Only handle expression tables.
12869 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
12870 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
12871 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
12872 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
12873 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
12874 compute_cprop_data, find_used_regs, try_replace_reg,
12875 find_avail_set, cprop_jump, constprop_register, cprop_insn,
12876 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
12877 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
12878 find_bypass_set, reg_killed_on_edge, bypass_block,
12879 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
12880 execute_rtl_cprop, pass_rtl_cprop): Move to...
12881 * cprop.c: ...here. New file, constant/copy propagation for RTL
12882 moved from gcse.c to here with minor cleanups in duplicated code.
12884 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
12886 * config/i386/i386.c (flag_opts): Fix a typo in
12887 -mavx256-split-unaligned-store.
12889 2011-03-28 Anatoly Sokolov <aesok@post.ru>
12891 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
12892 LIBCALL_VALUE): Remove macros.
12893 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12894 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12895 (h8300_function_value, h8300_libcall_value,
12896 h8300_function_value_regno_p): New functions.
12898 2011-03-28 Anatoly Sokolov <aesok@post.ru>
12900 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
12902 2011-03-28 Jeff Law <law@redhat.com>
12904 * tree-ssa-threadupdate.c (redirect_edges): Call
12905 create_edge_and_update_destination_phis as needed.
12906 (create_edge_and_update_destination_phis): Accept new BB argument.
12907 All callers updated.
12908 (thread_block): Do not update the profile when threading around
12909 intermediate blocks.
12910 (thread_single_edge): Likewise.
12911 (determine_bb_domination_status): If BB is not a successor of the
12912 loop header, return NONDOMINATING.
12913 (register_jump_thread): Note when we register a jump thread around
12914 an intermediate block.
12915 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
12916 (thread_across_edge): Use it.
12918 2011-03-28 Tristan Gingold <gingold@adacore.com>
12920 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
12921 when for_return is 2.
12923 2011-03-28 Jeff Law <law@redhat.com>
12925 * var-tracking.c (canonicalize_values_mark): Delete unused
12927 (canonicalize_values_star, set_variable_part): Likewise.
12928 (clobber_variable_part, delete_variable_part): Likewise.
12930 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
12932 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
12934 2011-03-28 Martin Jambor <mjambor@suse.cz>
12936 * tree-inline.c (expand_call_inline): Do not check that destination
12938 (optimize_inline_calls): Assert that destination node is analyzed.
12939 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
12940 not call tree_lowering_passes.
12941 * cgraph.h (cgraph_analyze_function): Declare.
12942 * cgraphunit.c (cgraph_analyze_function): Make public.
12944 2011-03-28 Joseph Myers <joseph@codesourcery.com>
12946 * config/sparc/sparc-opts.h: New.
12947 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
12948 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
12949 (sparc_option_override): Store processor_type enumeration rather
12950 than string in cpu_default. Remove name and enumeration from
12951 cpu_table. Directly default -mcpu then default -mtune from -mcpu
12952 without using sparc_select. Use target_flags_explicit instead of
12954 * config/sparc/sparc.h (enum processor_type): Move to
12956 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
12957 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
12958 HeaderInclude entry.
12959 (mcpu=, mtune=): Use Var and Enum.
12960 (sparc_processor_type): New Enum and EnumValue entries.
12962 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12963 Iain Sandoe <iains@gcc.gnu.org>
12966 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
12968 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
12970 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
12971 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
12972 Insert new statements at it in lieu of STMT.
12973 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
12974 * tree-vect-stmts.c (vectorizable_store): Likewise.
12975 (vectorizable_load): Likewise.
12977 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
12979 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
12984 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12986 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
12987 unaligned 256bit load/store.
12988 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
12989 (*avx_movdqu<avxmodesuffix>): Likewise.
12991 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12994 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
12995 * config/pa/pa.md (iordi3): Use new predicate in expander.
12996 (iorsi3): Likewise.
12998 2011-03-27 Anatoly Sokolov <aesok@post.ru>
13000 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
13001 FUNCTION_VALUE_REGNO_P): Remove macros.
13002 * config/mips/mips-protos.h (mips_function_value): Remove.
13003 * config/mips/mips.c (mips_function_value): Rename to...
13004 (mips_function_value_1): ... this. Make static. Handle receiving
13005 the function type in 'fn_decl_or_type' argument.
13006 (mips_function_value, mips_libcall_value,
13007 mips_function_value_regno_p): New function.
13008 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13009 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13011 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
13013 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
13014 and -mavx256-split-unaligned-store.
13015 (ix86_option_override_internal): Split 32-byte AVX unaligned
13016 load/store by default.
13017 (ix86_avx256_split_vector_move_misalign): New.
13018 (ix86_expand_vector_move_misalign): Use it.
13020 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
13021 -mavx256-split-unaligned-store.
13023 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
13024 256bit load/store. Generate unaligned store on misaligned memory
13026 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
13028 (*avx_movdqu<avxmodesuffix>): Likewise.
13030 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
13031 -mavx256-split-unaligned-store.
13033 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
13036 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
13039 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
13041 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
13042 opno arguments with an expand_operand. Use create_input_operand.
13043 (mips_prepare_builtin_target): Delete.
13044 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
13046 (mips_expand_builtin_direct): Use create_output_operand and
13047 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
13048 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
13049 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
13051 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
13053 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
13055 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
13057 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
13059 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
13060 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
13061 basic blocks and call commit_edge_insertions directly.
13062 (fixup_abnormal_edges): Move from here to...
13063 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
13064 on the edges and return whether some have actually been inserted.
13065 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
13068 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
13070 PR rtl-optimization/48144
13071 * sel-sched-ir.c (merge_history_vect): Factor out from ...
13072 (merge_expr_data): ... here.
13073 (av_set_intersect): Rename to av_set_code_motion_filter.
13074 Update all callers. Call merge_history_vect when an expression
13075 is found in both sets.
13076 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
13078 2011-03-26 Alan Modra <amodra@gmail.com>
13080 * config/rs6000/predicates.md (word_offset_memref_op): Handle
13081 cmodel medium addresses.
13082 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
13083 64-bit gpr loads and stores.
13084 (rs6000_secondary_reload_ppc64): New function.
13085 * config/rs6000/rs6000-protos.h: Declare it.
13086 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
13088 2011-03-26 Alan Modra <amodra@gmail.com>
13091 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
13092 GNU Go in traceback table.
13094 2011-03-25 Richard Henderson <rth@redhat.com>
13096 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
13097 if there are exactly 6 operands.
13098 (set_storage_via_setmem): Similarly.
13100 2011-03-25 Kai Tietz <ktietz@redhat.com>
13102 * collect2.c (write_c_file_stat): Handle backslash
13103 as right-hand directory separator.
13104 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
13105 checking just for slash.
13106 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
13107 instead of checking for trailing slash.
13108 * gcc.c (record_temp_file): Use filename_cmp instead
13110 (do_spec_1): Likewise.
13111 (replace_outfile_spec_function): Likewise.
13112 (is_directory): Use filename_ncmp instead of strncmp.
13113 (print_multilib_info): Likewise.
13114 * gcov.c (find_source): Use filename_cmp instead
13116 (make_gcov_file_name): Fix order of slash/backslash
13118 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
13119 (add_standard_paths): Likewise.
13120 * mips-tfile.c (saber_stop): Handle backslash.
13121 * prefix.c (update_path): Use filename_ncmp instead of
13123 * profile.c (output_location): Use filename_cmp instead
13125 * read-md.c (handle_toplevel_file): Handle backslash.
13126 * tlink.c (frob_extension): Likewise.
13127 * tree-cfg.c (same_line_p): Use filename_cmp instead of
13129 * tree-dump.c (dequeue_and_dump): Handle backslash.
13130 * tree.c (get_file_function_name): Likewise.
13131 * gengtype.c (read_input_list): Likewise.
13132 (get_file_realbasename): Likewise.
13133 (get_output_file_with_visibility): Use filename_cmp
13136 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
13138 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
13141 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
13143 * fold-const.c (expr_location_or): New function.
13144 (fold_truth_not_expr): Call it.
13146 2011-03-25 Jeff Law <law@redhat.com>
13148 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
13150 * c-family/c-common.c (def_fn_type): Likewise.
13151 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
13152 * emit-rtl.c (gen_rtvec): Likewise.
13153 * lto/lto-lang.c (def_fn_type): Likewise.
13155 2011-03-25 Richard Guenther <rguenther@suse.de>
13157 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
13158 also generate copies.
13159 (fini_copy_prop): Handle constant values properly.
13161 2011-03-25 Jakub Jelinek <jakub@redhat.com>
13163 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
13164 mode size instead of bitsize with DWARF2_ADDR_SIZE.
13165 (hash_loc_operands, compare_loc_operands): Handle
13166 DW_OP_GNU_entry_value.
13168 2011-03-25 Kai Tietz <ktietz@redhat.com>
13170 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
13171 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
13172 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
13173 comment and use macro TARGET_64BIT_MS_ABI instead.
13174 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
13175 and change default behavior for 32-bit MS_ABI.
13176 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
13177 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
13179 (ix86_cfun_abi): Likewise.
13180 (ix86_maybe_switch_abi): Adjust comment.
13181 (init_cumulative_args): Check for bit-ness in MS_ABI case.
13182 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
13183 instead of checking for SYSV_ABI.
13184 (ix86_nsaved_sseregs): Likewise.
13185 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
13187 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
13188 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
13189 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
13190 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
13191 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
13193 2011-03-25 Richard Guenther <rguenther@suse.de>
13195 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
13196 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13197 (verify_gimple): Remove.
13198 * tree-cfg.c (verify_gimple_call): Merge verification
13200 (verify_gimple_phi): Merge verification from verify_stmts.
13201 (verify_gimple_label): New function.
13202 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
13203 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13204 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
13205 (verify_stmts): Rename to verify_gimple_in_cfg.
13206 (verify_gimple_in_cfg): New function.
13207 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
13208 * tree-ssa.c (verify_ssa): Likewise.
13209 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
13211 2011-03-25 Richard Guenther <rguenther@suse.de>
13213 * passes.c (init_optimization_passes): Add FRE pass after
13216 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
13217 Andrew Stubbs <ams@codesourcery.com>
13219 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
13221 (arm_movdi_vfp_cortexa8): New pattern.
13222 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
13223 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
13224 instructions when tuning for Cortex-A8. Set attribute "arch".
13225 * config/arm/arm.md: Move include arm-tune.md up a bit.
13226 (define_attr "arch"): Add "onlya8" and "nota8" values.
13227 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
13229 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
13233 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13235 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13236 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13237 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13238 * passes.c (init_optimization_passes): Move
13239 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13241 2011-03-25 Kai Tietz <ktietz@redhat.com>
13243 * c-typeck.c (comptypes_internal): Replace target
13244 hook call of comp_type_attributes by version in tree.c file.
13245 * gimple.c (gimple_types_compatible_p_1): Likewise.
13246 * tree-ssa.c (useless_type_conversion_p): Likewise.
13247 * tree.c (build_type_attribute_qual_variant): Likewise.
13248 (attribute_value_equal): New static helper function.
13249 (comp_type_attributes): New function.
13250 (merge_attributes): Use attribute_value_equal for comparison.
13251 (attribute_list_contained): Likewise.
13252 * tree.h (comp_type_attributes): New prototype.
13254 2011-03-25 Richard Guenther <rguenther@suse.de>
13256 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
13257 of complex types at -O0.
13258 (verify_gimple_assign_binary): Likewise.
13259 (verify_gimple_assign_ternary): Likewise.
13261 2011-03-24 Mark Wielaard <mjw@redhat.com>
13263 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
13264 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
13266 2011-03-24 Mark Wielaard <mjw@redhat.com>
13269 * dwarf2out.c (output_abbrev_section): Only write table when
13270 abbrev_die_table_in_use > 1.
13272 2011-02-24 Richard Henderson <rth@redhat.com>
13274 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
13275 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
13276 (alpha_expand_unaligned_load_words): Use extql.
13277 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
13278 (emit_insxl): Handle all modes for consistency.
13280 2011-02-24 Richard Henderson <rth@redhat.com>
13282 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
13283 (alpha_expand_unaligned_load): Likewise.
13284 (alpha_expand_unaligned_store): Likewise.
13285 (alpha_expand_unaligned_load_words): Likewise.
13286 (alpha_expand_unaligned_store_words): Likewise.
13287 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
13288 (alpha_split_lock_test_and_set_12): Likewise.
13289 (print_operand, alpha_fold_builtin_extxx): Likewise.
13290 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
13291 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
13292 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
13293 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
13294 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
13295 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
13296 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
13297 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
13298 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
13299 (extwl, extll, extql): Similarly.
13300 (inswh, inslh, insqh): Similarly.
13301 (mskbl, mskwl, mskll, mskql): Similarly.
13302 (mskwh, msklh, mskqh): Similarly.
13304 2011-02-24 Richard Henderson <rth@redhat.com>
13306 * config/alpha/alpha.md (attribute isa): Add er, ner.
13307 (attribute enabled): Handle them.
13308 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
13310 2011-02-24 Richard Henderson <rth@redhat.com>
13312 * config/alpha/alpha.md (attribute isa): Add vms.
13313 (attribute enabled): Handle it.
13314 (*movsf): Merge *movsf_{nofix,fix,nofp}.
13315 (*movdf): Merge *movdf_{nofix,fix,nofp}.
13316 (*movtf): Rename from *movtf_internal for consistency.
13317 (*movsi): Merge with *movsi_nt_vms.
13318 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
13319 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
13320 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
13321 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
13323 2011-02-24 Richard Henderson <rth@redhat.com>
13325 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
13326 (extendqisi2, extendhisi2): Likewise.
13327 (extendqidi2): Simplify BWX/non-BWX expansions.
13328 (extendhidi2): Similarly.
13330 2011-02-24 Richard Henderson <rth@redhat.com>
13332 * config/alpha/alpha.md (attribute isa): New.
13333 (attribute enabled): New.
13334 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
13335 (zero_extendqisi2, zero_extendqidi2): Similarly.
13336 (zero_extendhisi2, zero_extendhidi2): Similarly.
13337 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
13339 2011-02-24 Richard Henderson <rth@redhat.com>
13341 * config/alpha/predicates.md (input_operand): Revert last change;
13342 update comment to mention 32-bit VMS rather than Windows.
13344 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13346 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13347 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13348 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13349 * passes.c (init_optimization_passes): Move
13350 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13352 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13354 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
13356 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
13358 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
13361 2011-03-24 Jakub Jelinek <jakub@redhat.com>
13364 * simplify-rtx.c (simplify_const_unary_operation): Call
13365 real_convert when changing mode class with FLOAT_EXTEND.
13367 2011-03-24 Nick Clifton <nickc@redhat.com>
13369 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
13370 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13371 * config/rx/rx.c (rx_option_override): Set align_jumps,
13372 align_loops and align_labels if not set by the user.
13373 (rx_align_for_label): New function.
13374 (rx_max_skip_for_label): New function.
13375 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
13376 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
13377 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
13378 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
13379 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
13381 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13383 PR rtl-optimization/48263
13384 * optabs.c (expand_binop_directly): Reinstate convert_modes code
13385 and original commutative_p handling. Use maybe_gen_insn.
13387 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13389 * reload.c (find_reloads_subreg_address): Add address_reloaded
13390 parameter and return true there if the full address has been
13392 (find_reloads_toplev): Pass address_reloaded flag.
13393 (find_reloads_address_1): Don't use address_reloaded parameter.
13395 2011-03-24 Jeff Law <law@redhat.com>
13397 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
13398 unused variable "ann".
13399 (remove_unused_locals): Likewise.
13401 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
13404 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
13407 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13409 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
13410 for invalid symbolic addresses.
13411 (s390_secondary_reload): Don't use s390_check_symref_alignment for
13414 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13416 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
13417 the argument in calls to fold_truth_not_expr.
13419 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13421 * tree.c (record_node_allocation_statistics): New function.
13422 (make_node_stat, copy_node_stat, build_string): Call it.
13423 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
13424 (build1_stat, build_omp_clause): Likewise.
13426 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13428 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
13431 2011-03-24 Richard Guenther <rguenther@suse.de>
13433 PR tree-optimization/48271
13434 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
13435 blocks that still exist.
13437 2011-03-24 Richard Guenther <rguenther@suse.de>
13439 PR tree-optimization/48270
13440 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
13441 not free datarefs before ddrs.
13443 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13445 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
13446 from the address built for a reference with variable offset.
13448 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
13451 * config/i386/i386.md (*movdf_internal_rex64): Do not split
13452 alternatives that can be handled with movq or movabsq insn.
13453 (*movdf_internal): Disable for !TARGET_64BIT.
13454 (*movdf_internal_nointeger): Ditto.
13455 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
13457 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13459 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13460 (FUNCTION_ARG_ADVANCE): Likewise.
13461 * tm.texi.in: Change references to them to hook references.
13462 * tm.texi: Regenerate.
13463 * targhooks.c (default_function_arg): Eliminate check for target macro.
13464 (default_function_incoming_arg): Likewise.
13465 (default_function_arg_advance): Likewise.
13466 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13467 (function_arg_advance): Likewise.
13468 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13470 2011-03-24 Richard Guenther <rguenther@suse.de>
13472 PR middle-end/48269
13473 * tree-object-size.c (addr_object_size): Do not double-account
13474 for MEM_REF offsets.
13476 2011-03-24 Diego Novillo <dnovillo@google.com>
13478 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
13479 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
13480 (lto_input_data_block): Move from lto-opts.c. Make extern.
13482 (lto_input_string): Rename from input_string. Make extern.
13484 * lto-streamer-out.c (lto_output_string_with_length): Rename from
13485 output_string_with_length.
13486 Output 0 to indicate a non-NULL string. Update all callers to
13488 (lto_output_string): Rename from output_string. Make extern.
13490 (lto_output_decl_state_streams): Make extern.
13491 (lto_output_decl_state_refs): Make extern.
13492 * lto-streamer.h (lto_input_string): Declare.
13493 (lto_input_data_block): Declare.
13494 (lto_output_string): Declare.
13495 (lto_output_string_with_length): Declare.
13496 (lto_output_decl_state_streams): Declare.
13497 (lto_output_decl_state_refs): Declare.
13499 2011-03-24 Richard Guenther <rguenther@suse.de>
13501 PR tree-optimization/46562
13502 * tree.c (build_invariant_address): New function.
13503 * tree.h (build_invariant_address): Declare.
13504 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
13505 a renamed function moved ...
13506 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
13507 Take valueization callback parameter.
13508 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
13509 * gimple-fold.h: New file.
13510 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
13511 (ccp_fold, fold_const_aggregate_ref,
13512 fold_ctor_reference, fold_nonarray_ctor_reference,
13513 fold_array_ctor_reference, fold_string_cst_ctor_reference,
13514 get_base_constructor): Move ...
13515 * gimple-fold.c: ... here.
13516 (gimple_fold_stmt_to_constant_1): New function
13517 split out from ccp_fold. Take a valueization callback parameter.
13518 Valueize all operands.
13519 (gimple_fold_stmt_to_constant): New wrapper function.
13520 (fold_const_aggregate_ref_1): New function split out from
13521 fold_const_aggregate_ref. Take a valueization callback parameter.
13522 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
13523 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
13524 invariant POINTER_PLUS_EXPRs to invariant form.
13525 (vn_valueize): New function.
13526 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
13527 * tree-vrp.c (vrp_valueize): New function.
13528 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
13529 to fold statements to constants.
13530 * tree-ssa-pre.c (eliminate): Properly guard propagation of
13531 function declarations.
13532 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
13533 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
13535 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13537 * config/h8300/predicates.md (jump_address_operand): Fix register
13540 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
13542 * doc/invoke.texi (max-stores-to-sink): Document.
13543 * params.h (MAX_STORES_TO_SINK): Define.
13544 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
13545 if either vectorization or if-conversion is disabled.
13546 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
13547 tree-vect-data-refs.c vect_equal_offsets.
13548 (dr_equal_offsets_p): New function.
13549 (find_data_references_in_bb): Remove static.
13550 * tree-data-ref.h (find_data_references_in_bb): Declare.
13551 (dr_equal_offsets_p): Likewise.
13552 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
13553 (vect_drs_dependent_in_basic_block): Update calls to
13554 vect_equal_offsets.
13555 (vect_check_interleaving): Likewise.
13556 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
13557 (cond_if_else_store_replacement): Rename to...
13558 (cond_if_else_store_replacement_1): ... this. Change arguments and
13560 (cond_if_else_store_replacement): New function.
13561 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
13562 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
13564 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
13567 * config/arm/arm.md (casesi): Use the gen_int_mode() function
13568 to subtract lower bound instead of GEN_INT().
13570 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
13575 * doc/extend.texi (Alignment): Move section to match order in TOC.
13576 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
13577 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
13579 2011-03-23 Jeff Law <law@redhat.com>
13581 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
13582 before removing the edge.
13584 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
13585 it may have been freed by redirect_branch_edge or
13586 redirect_edge_succ_nodup.
13588 2011-03-23 Richard Guenther <rguenther@suse.de>
13590 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
13591 (check_va_list_escapes): Likewise.
13592 (check_all_va_list_escapes): Likewise.
13594 2011-03-23 Richard Guenther <rguenther@suse.de>
13596 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
13597 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
13598 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
13599 (alias.o): Likewise.
13600 (ipa-type-escape.o): Remove.
13601 (ipa-struct-reorg.o): Likewise.
13602 (GTFILES): Remove ipa-struct-reorg.c.
13603 * alias.c: Do not include ipa-type-escape.h.
13604 * tree-ssa-alias.c: Likewise.
13605 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
13606 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
13607 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
13608 and ipa-type-escape passes.
13609 * tree-pass.h (pass_ipa_type_escape): Remove.
13610 (pass_ipa_struct_reorg): Likewise.
13611 * ipa-struct-reorg.h: Remove.
13612 * ipa-struct-reorg.c: Likewise.
13613 * ipa-type-escape.h: Likewise.
13614 * ipa-type-escape.c: Likewise.
13615 * doc/invoke.texi (-fipa-struct-reorg): Remove.
13616 (--param struct-reorg-cold-struct-ratio): Likewise.
13617 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13618 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13619 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
13621 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13623 * config/s390/2084.md: Enable all insn reservations also for z9_ec
13624 cpu attribute value.
13625 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
13626 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
13627 * config/s390/s390.c (processor_flags_table): New constant array.
13628 (s390_handle_arch_option): Remove.
13629 (s390_handle_option): Remove s390_handle_arch_option invocations
13630 and OPT_mwarn_framesize_ handling.
13631 (s390_option_override): Remove s390_handle_arch_option invocation.
13632 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
13634 * config/s390/s390.md (cpu attribute): Add z9_ec value.
13635 * config/s390/s390.opt (s390_tune, s390_arch)
13636 (march=): Replace s390_arch_option enum and values with
13637 processor_type. Set variable name to s390_arch. Set
13638 initialization value.
13639 (mtune=): Replace s390_arch_option with processor_type. Set
13640 variable name to s390_tune. Set initialization value.
13642 2011-03-23 Julian Brown <julian@codesourcery.com>
13644 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
13645 accesses which are not naturally aligned.
13647 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
13650 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
13652 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
13654 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
13655 parameter from "int" to "enum insn_code".
13656 (expand_operand_type): New enum.
13657 (expand_operand): New structure.
13658 (create_expand_operand): New function.
13659 (create_fixed_operand, create_output_operand): Likewise
13660 (create_input_operand, create_convert_operand_to): Likewise.
13661 (create_convert_operand_from, create_address_operand): Likewise.
13662 (create_integer_operand): Likewise.
13663 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
13664 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13665 (expand_insn, expand_jump_insn): Likewise.
13666 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
13667 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
13668 (expand_movstr, expand_builtin___clear_cache): Likewise.
13669 (expand_builtin_lock_release): Likewise.
13670 * explow.c (allocate_dynamic_stack_space): Likewise.
13671 (probe_stack_range): Likewise. Allow check_stack to FAIL,
13672 and use the default handling in that case.
13673 * expmed.c (check_predicate_volatile_ok): Delete.
13674 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
13675 (emit_cstore): Likewise.
13676 * expr.c (emit_block_move_via_movmem): Likewise.
13677 (set_storage_via_setmem, expand_assignment): Likewise.
13678 (emit_storent_insn, try_casesi): Likewise.
13679 (emit_single_push_insn): Likewise. Allow the expansion to fail.
13680 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
13681 (expand_vec_shift_expr, expand_binop_directly): Likewise.
13682 (expand_twoval_unop, expand_twoval_binop): Likewise.
13683 (expand_unop_direct, emit_indirect_jump): Likewise.
13684 (emit_conditional_move, vector_compare_rtx): Likewise.
13685 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
13686 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
13687 (expand_sync_lock_test_and_set): Likewise.
13688 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
13689 (emit_unop_insn): Likewise.
13690 (expand_copysign_absneg): Change icode to an insn_code.
13691 (create_convert_operand_from_type): New function.
13692 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
13693 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13694 (expand_insn, expand_jump_insn): Likewise.
13695 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
13696 than const_int_operand for operand 2.
13698 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13700 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
13703 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13705 * emit-rtl.c (emit_pattern_before_noloc): New function.
13706 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
13707 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
13708 (emit_pattern_after_noloc): New function.
13709 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
13710 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
13712 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13714 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
13715 (__ffsDI2): Likewise.
13717 2011-03-22 Richard Henderson <rth@redhat.com>
13719 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
13720 of !TARGET_ABI_OPEN_VMS.
13721 (alpha_trampoline_init, alpha_start_function): Likewise.
13722 (alpha_expand_epilogue, alpha_file_start): Likewise.
13723 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
13724 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
13725 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
13726 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
13727 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
13729 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13731 * config/s390/s390-opts.h: New.
13732 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
13733 s390_arch_flags, s390_warn_framesize, s390_stack_size,
13734 s390_stack_guard): Remove.
13735 (s390_handle_arch_option): Return void. Take enum
13736 s390_arch_option value instead of string and searching array.
13737 (s390_handle_option): Don't assert that global structures are in
13738 use. Access variables via opts pointer. Use error_at. Don't use
13739 sscanf for -mstack-guard= or -mstack-size=. Update call to
13740 s390_handle_arch_option.
13741 (s390_option_override): Update call to s390_handle_arch_option.
13742 (s390_emit_prologue): Use %d format for s390_stack_size in
13743 diagnostic. Use %wd for HOST_WIDE_INT.
13744 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
13745 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
13746 * config/s390/s390.opt (config/s390/s390-opts.h): New
13747 HeaderInclude entry.
13748 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
13749 s390_arch_flags, s390_warn_framesize): New Variable entries.
13750 (s390_arch_option): New Enum and EnumValue entries.
13751 (march=): Use Enum instead of Var.
13752 (mstack-guard=, mstack-size=): Use UInteger and Var.
13753 (mtune=): Use Enum.
13755 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13757 * config/score/score.c (score_handle_option): Don't assert that
13758 global structures are in use. Access target_flags via opts
13759 pointer. Use value of -march= option to determine target_flags
13761 * config/score/score.opt (march=): Use Enum.
13762 (score_arch): New Enum and EnumValue entries.
13764 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13766 * config/mep/mep.c (option_mtiny_specified): Remove.
13767 (mep_option_override): Move register handling for -mivc2 from
13768 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
13769 instead of option_mtiny_specified.
13770 (mep_handle_option): Access target_flags via opts pointer. Don't
13771 assert that global structures are in use. Defer part of -mivc2
13772 handling and move it to mep_option_override.
13773 * config/mep/mep.opt (IVC2): New Mask entry.
13774 (mivc2): Use Var and Defer instead of Mask.
13776 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13778 * config/v850/v850-opts.h: New.
13779 * config/v850/v850.c (small_memory): Replace with
13780 small_memory_physical_max array. Make that array static const.
13781 (v850_handle_memory_option): Take integer value of argument. Take
13782 gcc_options pointer, option text and location. Return void.
13783 Update for changes to small memory structures.
13784 (v850_handle_option): Access target_flags via opts pointer. Don't
13785 assert that global structures are in use. Update calls to
13786 v850_handle_memory_option.
13787 (v850_encode_data_area): Update references to small memory settings.
13788 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
13789 (enum small_memory_type): Move to v850-opts.h.
13790 * config/v850/v850.opt (config/v850/v850-opts.h): New
13791 HeaderInclude entry.
13792 (small_memory_max): New Variable entry.
13793 (msda): Replace by pair of options msda= and msda-. Use UInteger.
13794 (mtda, mzda): Likewise.
13796 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13798 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
13799 pointer. Don't assert that global structures are in use.
13801 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13803 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
13804 via opts pointer. Don't assert that global structures are in use.
13806 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13808 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
13809 (munix=93): Use Var.
13810 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
13811 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
13812 * config/pa/pa-opts.h: New.
13813 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
13814 (pa_handle_option): Don't assert that global structures are in
13815 use. Access target_flags via opts pointer. Don't handle
13816 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
13818 (pa_option_override): Handle deferred OPT_mfixed_range_.
13820 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13822 * config/mn10300/mn10300-opts.h: New.
13823 * config/mn10300/mn10300.c (mn10300_processor,
13824 mn10300_tune_string): Remove.
13825 (mn10300_handle_option): Don't assert that global structures are
13826 in use. Access mn10300_processor via opts pointer. Don't handle
13828 * config/mn10300/mn10300.h (enum processor_type): Move to
13830 (mn10300_processor): Remove.
13831 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
13832 HeaderInclude entry.
13833 (mn10300_processor): New Variable entry.
13836 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13838 * config/microblaze/microblaze.c: Don't include opts.h.
13839 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
13840 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
13841 (mno-clearbss): Use Var and Warn.
13843 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13845 * config/m32r/m32r-opts.h: New.
13846 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
13847 (m32r_handle_option): Don't assert that global structures are in
13848 use. Access target_flags and m32r_cache_flush_func via opts
13849 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
13850 OPT_mno_flush_trap here.
13851 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
13852 include of m32r-opts.h.
13853 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
13854 HeaderInclude entry.
13855 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
13856 (mmodel=): Use Enum and Var.
13857 (m32r_model): New Enum and EnumValue entries.
13858 (mno-flush-trap): Use Var.
13859 (msdata=): Use Enum and Var.
13860 (m32r_sdata): New Enum and EnumValue entries.
13862 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13864 * config/m32c/m32c.c: Don't include opts.h.
13865 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
13866 m32c_handle_option): Remove.
13867 (m32c_option_override): Check global_options_set.x_target_memregs
13868 instead of target_memregs_set.
13869 * config/m32c/m32c.h (target_memregs): Remove.
13870 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
13873 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13875 * config/iq2000/iq2000-opts.h: New.
13876 * config/iq2000/iq2000.c: Don't include opts.h.
13877 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
13878 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
13879 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
13880 HeaderInclude entry.
13881 (iq2000_tune): New Variable entry.
13882 (march=): Add comment. Use Enum.
13883 (iq2000_arch): New Enum and EnumValue entries.
13884 (mcpu=): Use Enum and Var.
13885 (iq2000_tune): New Enum and EnumValue entries.
13887 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13889 * config/ia64/ia64-opts.h: New.
13890 * config/ia64/ia64.c (ia64_tune): Remove.
13891 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
13892 here. Use error_at.
13893 (ia64_option_override): Handle deferred OPT_mfixed_range_.
13894 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
13895 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
13896 HeaderInclude entry.
13897 (ia64_tune): New Variable entry.
13898 (mfixed-range=): Use Defer and Var.
13899 (mtune=): Use Enum and Var.
13900 (ia64_tune): New Enum and EnumValue entries.
13902 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13904 * config/frv/frv-opts.h: New.
13905 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
13907 (frv_cpu_type): Remove.
13908 * config/frv/frv.c: Don't include opts.h.
13909 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
13910 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
13911 (frv_cpu_type): New Variable entry.
13912 (frv_cpu): New Enum and EnumValue entries.
13914 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13916 * config/cris/cris.c (cris_handle_option): Access target_flags via
13917 opts pointer. Don't assert that global structures are in use.
13918 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
13919 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
13921 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13923 * config/bfin/bfin-opts.h: New.
13924 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
13925 bfin_si_revision, bfin_workarounds): Remove.
13926 (bfin_cpus): Make static const.
13927 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
13928 not bfin_lib_id_given.
13929 (bfin_handle_option): Don't set bfin_lib_id_given. Access
13930 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
13931 pointer. Use error_at. Don't assert that global structures are in use.
13932 * config/bfin/bfin.h: Include bfin-opts.h.
13933 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
13934 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
13935 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
13936 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
13939 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13941 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
13942 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
13943 or -msoft-float here.
13944 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
13945 -msoft-float and -mhard-float.
13946 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
13947 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13949 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
13951 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
13952 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
13954 (LIBGCC_SPEC): Don't handle -msoft-float.
13955 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
13957 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13959 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
13960 -mfloat-abi=*, not -msoft-float and -mhard-float.
13961 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
13963 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
13964 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
13965 mhard-float and msoft-float.
13966 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
13967 mfloat-abi=soft in comments, not mhard-float and msoft-float.
13968 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
13969 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
13971 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
13972 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
13974 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
13976 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
13979 2011-03-22 Richard Henderson <rth@redhat.com>
13981 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
13982 TARGET_ABI_WINDOWS_NT.
13983 (alpha_output_function_end_prologue): Likewise.
13984 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
13985 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13986 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
13987 (trap, *movsi_nt_vms): Likewise.
13988 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
13989 (*tablejump_osf_nt_internal): Remove.
13990 * config/alpha/predicates.md (input_operand): Only test Pmode.
13992 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13994 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
13995 via opts pointer. Use error_at. Don't assert that global
13996 structures are in use.
13998 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14000 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
14001 (ix86_handle_option): Access ix86_isa_flags and
14002 ix86_isa_flags_explicit via opts pointer. Don't assert that
14003 global structures are in use.
14004 (ix86_function_specific_save, ix86_function_specific_restore):
14005 Update ix86_isa_flags_explicit field name.
14006 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
14007 (ix86_isa_flags_explicit): Rename TargetSave entry to
14008 x_ix86_isa_flags_explicit.
14010 2011-03-22 Richard Henderson <rth@redhat.com>
14012 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
14013 (alpha_option_override, direct_return): Likewise.
14014 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
14015 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
14016 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
14017 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14018 (alpha_expand_epilogue, alpha_end_function): Likewise.
14019 (alpha_init_libfuncs): Likewise.
14020 (struct machine_function): Remove unicosmk members.
14021 (print_operand) ['t']: Remove.
14022 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
14023 unicosmk_output_module_name, unicosmk_output_common,
14024 current_section_align, unicosmk_output_text_section_asm_op,
14025 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
14026 unicosmk_section_type_flags, unicosmk_unique_section,
14027 unicosmk_asm_named_section, unicosmk_insert_attributes,
14028 unicosmk_output_align, unicosmk_defer_case_vector,
14029 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
14030 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
14031 unicosmk_output_ssib, unicosmk_add_call_info_word,
14032 unicosmk_extern_head, unicosmk_output_default_externs,
14033 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
14034 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
14035 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
14036 * config/alpha/alpha-protos.h: Update.
14037 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
14038 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
14039 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
14040 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
14041 (*mulsi_se, mulvsi3): Likewise.
14042 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
14043 (*divmodsi_internal, call, call_value, realign): Likewise.
14044 (moddi3, umoddi3): Likewise; remove duplicate expander.
14045 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
14046 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
14047 (*movdi_nofix): Remove r/U alternative.
14048 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
14049 * config/alpha/constraints.md ("U"): Remove.
14050 * config/alpha/predicates.md (call_operand"): Don't test
14051 TARGET_ABI_UNICOSMK.
14053 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14055 * target.def (handle_option): Take gcc_options and
14056 cl_decoded_option pointers and location_t.
14057 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
14058 * doc/tm.texi: Regenerate.
14059 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
14060 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
14061 * lto-opts.c (lto_reissue_options): Generate option structure for
14062 targetm.handle_option call.
14063 * opts.c (target_handle_option): Update call to
14064 targetm.handle_option. Remove assertions about values now passed
14066 * targhooks.c (default_target_handle_option): New.
14067 * targhooks.h (default_target_handle_option): Declare.
14068 * config/alpha/alpha.c: Include opts.h.
14069 (alpha_handle_option): Update to new hook interface.
14070 * config/arm/arm.c: Include opts.h.
14071 (arm_handle_option): Update to new hook interface.
14072 * config/arm/t-arm (arm.o): Update dependencies.
14073 * config/bfin/bfin.c: Include opts.h.
14074 (bfin_handle_option): Update to new hook interface.
14075 * config/cris/cris.c: Include opts.h.
14076 (cris_handle_option): Update to new hook interface.
14077 * config/frv/frv.c: Include opts.h.
14078 (frv_handle_option): Update to new hook interface.
14079 * config/i386/i386.c: Include opts.h.
14080 (ix86_handle_option): Update to new hook interface.
14081 (ix86_valid_target_attribute_inner_p): Generate option structure
14082 for call to ix86_handle_option.
14083 * config/i386/t-i386 (i386.o): Update dependencies.
14084 * config/ia64/ia64.c: Include opts.h.
14085 (ia64_handle_option): Update to new hook interface.
14086 * config/ia64/t-ia64 (ia64.o): Update dependencies.
14087 * config/iq2000/iq2000.c: Include opts.h.
14088 (iq2000_handle_option): Update to new hook interface.
14089 * config/m32c/m32c.c: Include opts.h.
14090 (m32c_handle_option): Update to new hook interface.
14091 * config/m32r/m32r.c: Include opts.h.
14092 (m32r_handle_option): Update to new hook interface.
14093 * config/m68k/m68k.c: Include opts.h.
14094 (m68k_handle_option): Update to new hook interface.
14095 * config/mep/mep.c: Include opts.h.
14096 (mep_handle_option): Update to new hook interface.
14097 * config/microblaze/microblaze.c: Include opts.h.
14098 (microblaze_handle_option): Update to new hook interface.
14099 * config/mips/mips.c: Include opts.h.
14100 (mips_handle_option): Update to new hook interface.
14101 * config/mn10300/mn10300.c: Include opts.h.
14102 (mn10300_handle_option): Update to new hook interface.
14103 * config/pa/pa.c: Include opts.h.
14104 (pa_handle_option): Update to new hook interface.
14105 * config/pdp11/pdp11.c: Include opts.h.
14106 (pdp11_handle_option): Update to new hook interface.
14107 * config/rs6000/rs6000.c: Include opts.h.
14108 (rs6000_handle_option): Update to new hook interface.
14109 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
14110 * config/rx/rx.c: Include opts.h.
14111 (rx_handle_option): Update to new hook interface.
14112 * config/s390/s390.c: Include opts.h.
14113 (s390_handle_option): Update to new hook interface.
14114 * config/score/score.c: Include opts.h.
14115 (score_handle_option): Update to new hook interface.
14116 * config/sh/sh.c: Include opts.h.
14117 (sh_handle_option): Update to new hook interface.
14118 * config/sparc/sparc.c: Include opts.h.
14119 (sparc_handle_option): Update to new hook interface.
14120 * config/v850/v850.c: Include opts.h.
14121 (v850_handle_option): Update to new hook interface.
14123 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14125 * gcc.c (driver_unknown_option_callback): Only permit and save
14126 unknown -Wno- options.
14127 (driver_wrong_lang_callback): Save options directly instead of via
14128 driver_unknown_option_callback.
14130 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
14132 * combine.c (simplify_set): Try harder to find the best CC mode when
14133 simplifying a nested COMPARE on the RHS.
14135 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14137 * config/alpha/gnu.h: Remove.
14138 * config/arc: Remove directory.
14139 * config/arm/netbsd.h: Remove.
14140 * config/arm/t-pe: Remove.
14141 * config/crx: Remove directory.
14142 * config/i386/netbsd.h: Remove.
14143 * config/m68hc11: Remove directory.
14144 * config/m68k/uclinux-oldabi.h: Remove.
14145 * config/mcore/mcore-pe.h: Remove.
14146 * config/mcore/t-mcore-pe: Remove.
14147 * config/netbsd-aout.h: Remove.
14148 * config/rs6000/gnu.h: Remove.
14149 * config/sh/sh-symbian.h: Remove.
14150 * config/sh/symbian-base.c: Remove.
14151 * config/sh/symbian-c.c: Remove.
14152 * config/sh/symbian-cxx.c: Remove.
14153 * config/sh/symbian-post.h: Remove.
14154 * config/sh/symbian-pre.h: Remove.
14155 * config/sh/t-symbian: Remove.
14156 * config/svr3.h: Remove.
14157 * config/vax/netbsd.h: Remove.
14158 * config.build: Don't handle i[34567]86-*-pe.
14159 * config.gcc: Remove handling of deprecations for most deprecated
14161 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
14162 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
14163 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
14164 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
14165 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
14166 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
14168 * config.host: Don't handle i[34567]86-*-pe.
14169 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
14170 (ASM_SPEC32): Don't handle -mcall-gnu.
14171 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
14173 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
14174 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
14175 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14176 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
14177 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
14178 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
14179 conditional on SYMBIAN.
14180 * configure.ac: Don't handle powerpc*-*-gnu*.
14181 * configure: Regenerate.
14182 * doc/extend.texi (interrupt attribute): Don't mention CRX.
14183 * doc/install-old.texi (m6811, m6812): Don't mention.
14184 * doc/install.texi (arc-*-elf*): Don't document multilib option.
14185 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
14186 (m68k-uclinuxoldabi): Don't mention.
14187 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
14189 (-mcall-gnu): Remove.
14190 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
14191 families): Remove constraint documentation.
14193 2011-03-22 Marius Strobl <marius@FreeBSD.org>
14195 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
14196 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
14197 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
14199 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14202 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
14203 vector when peeking at the next token for vector, don't expand the
14206 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
14208 * config/avr/avr-protos.h (expand_epilogue): Change prototype
14209 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
14210 * config/avr/avr.c (init_cumulative_args)
14211 (avr_function_arg_advance): Use it.
14212 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
14214 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
14215 (avr_function_ok_for_sibcall): ...this new function.
14216 (avr_lookup_function_attribute1): New static Function.
14217 (avr_naked_function_p, interrupt_function_p)
14218 (signal_function_p, avr_OS_task_function_p)
14219 (avr_OS_main_function_p): Use it.
14220 * config/avr/avr.md ("sibcall", "sibcall_value")
14221 ("sibcall_epilogue"): New expander.
14222 ("*call_insn", "*call_value_insn"): New insn.
14223 ("call_insn", "call_value_insn"): Remove
14224 ("call", "call_value", "epilogue"): Change expander to handle
14227 2011-03-21 Nick Clifton <nickc@redhat.com>
14229 * doc/invoke.texi (Overall Options): Move closing brace to end of
14231 (Optimization Options): Add missing @gol.
14232 (Directory Options): Likewise.
14233 (i386 and x86-64 Options): Likewise.
14234 (RS6000 and PowerPC Options): Likewise.
14235 (i386 and x86-64 Windows Options): Likewise.
14236 (V850 Options): Add text missing from descriptions.
14238 2011-03-22 Richard Henderson <rth@redhat.com>
14240 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
14241 (avr_incoming_return_addr_rtx): New.
14242 (emit_push_byte): New.
14243 (expand_prologue): Use it. Remove incorrect dwarf annotation for
14244 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
14245 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
14246 (emit_pop_byte): New.
14247 (expand_epilogue): Use it. Pop frame pointer by bytes.
14248 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
14249 (INCOMING_RETURN_ADDR_RTX): New.
14250 (INCOMING_FRAME_SP_OFFSET): New.
14251 (ARG_POINTER_CFA_OFFSET): New.
14252 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
14253 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
14256 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
14258 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14260 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14261 (FUNCTION_ARG_ADVANCE): Likewise.
14262 * tm.texi.in: Change references to them to hook references.
14263 * tm.texi: Regenerate.
14264 * targhooks.c (default_function_arg): Eliminate check for target
14266 (default_function_incoming_arg): Likewise.
14267 (default_function_arg_advance): Likewise.
14268 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
14269 (function_arg_advance): Likewise.
14270 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14272 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14274 * tree.c (build_call_1): New function.
14275 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
14277 2011-03-22 Richard Guenther <rguenther@suse.de>
14279 PR tree-optimization/48228
14280 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
14281 for single-arg PHIs.
14283 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
14285 PR rtl-optimization/48143
14286 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
14287 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
14288 sse2_cvtps2pd): Likewise.
14290 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14292 * recog.c (canonicalize_change_group): Use validate_unshare_change.
14294 2011-03-22 Richard Guenther <rguenther@suse.de>
14296 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
14297 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
14298 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
14299 and REALIGN_LOAD_EXPR.
14300 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
14301 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
14302 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
14303 DOT_PROD_EXPR case ...
14304 (expand_expr_real_2): ... here.
14305 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
14306 and REALIGN_LOAD_EXPR.
14307 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
14308 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
14309 (vect_create_epilog_for_reduction): Likewise.
14310 (vectorizable_reduction): Likewise.
14311 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
14312 * tree-vect-stmts.c (vectorizable_load): Likewise.
14314 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
14316 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
14318 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14320 * config/s390/s390.c (s390_delegitimize_address): Fix offset
14321 handling for PLTOFF/GOTOFF.
14323 2011-03-22 Nick Clifton <nickc@redhat.com>
14325 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
14326 trailing backslash from the end of the macro definition.
14328 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14330 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
14333 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
14335 * expr.h (prepare_operand): Move to...
14336 * optabs.h (prepare_operand): ...here and change the insn code
14337 parameter from "int" to "enum insn_code".
14338 (insn_operand_matches): Declare.
14339 * expr.c (init_expr_target): Use insn_operand_matches.
14340 (compress_float_constant): Likewise.
14341 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
14342 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
14343 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
14344 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
14346 (gen_cond_trap): Likewise.
14347 (prepare_operand): Likewise. Change icode to an insn_code.
14348 (insn_operand_matches): New function.
14349 * reload.c (find_reloads_address_1): Use insn_operand_matches.
14350 * reload1.c (gen_reload): Likewise.
14351 * targhooks.c (default_secondary_reload): Likewise.
14353 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
14355 * config/alpha/alpha.md (unspec): New define_c_enum.
14358 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
14361 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
14362 between a call and its CALL_ARG_LOCATION note.
14364 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14366 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
14368 2011-03-21 Jakub Jelinek <jakub@redhat.com>
14372 * c-common.c (shorten_compare): If primopN is first sign-extended
14373 to opN and then zero-extended to result type, set primopN to opN.
14375 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
14377 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
14378 for barrier handlers.
14380 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14382 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
14383 UNSPEC constants to be in the unspec enumeration, and redefine
14384 all UNSPECV constants to be in the unspecv enumeration, so that
14385 dumps print which unspec/unspec_volatile this is.
14386 * config/rs6000/vector.md (UNSPEC_*): Ditto.
14387 * config/rs6000/paired.md (UNSPEC_*): Ditto.
14388 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
14389 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
14390 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
14392 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
14393 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
14394 UNSPECV_LWSYNC, since these are used as unspec_volatile.
14395 * config/rs6000/sync.md (isync, lwsync): Ditto.
14397 2011-03-21 Richard Guenther <rguenther@suse.de>
14399 * params.def (lto-min-partition): Fix typo.
14401 2011-03-21 Richard Guenther <rguenther@suse.de>
14404 * c-decl.c (grokdeclarator): Drop to the main variant only
14405 for array types. Drop flag_gen_aux_info check.
14407 2011-03-21 Richard Guenther <rguenther@suse.de>
14409 PR translation/47911
14410 * params.def (lto-partitions): Fix typo.
14411 (lto-min-partition): Fix wording.
14413 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
14415 * config/rs6000/t-freebsd: Remove duplication from file.
14417 2011-03-21 Richard Guenther <rguenther@suse.de>
14419 PR middle-end/47661
14420 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
14422 2011-03-21 Richard Guenther <rguenther@suse.de>
14425 * params.def (lto-partitions): Require at least 1 partition.
14427 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14429 * gthr-solaris.h: Remove.
14430 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
14431 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
14432 (LIB_SPEC): Likewise.
14433 * config/sol2.opt (threads): Remove.
14434 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
14435 (sparc*-*-solaris2*): Likewise.
14436 * configure.ac (enable_threads): Enable solaris support.
14437 * configure: Regenerate.
14438 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
14439 * doc/install.texi (Configuration, --enable-threads=lib): Remove
14442 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14444 * config.gcc: Obsolete *-*-solaris2.8*.
14445 * doc/install.texi (Specific, *-*-solaris2*): Document it.
14447 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14450 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
14451 reference. Solaris 8 perl works.
14453 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14456 * doc/install.texi (Prerequisites): Move jar etc. up.
14457 Explain support library version requirements.
14459 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14462 * doc/install.texi (Prerequisites): Move Perl to build
14463 requirements. Always necessary on Solaris 2 with Sun ld.
14465 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14467 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
14469 (Specific, i?86-*-solaris2.[89]): Likewise.
14470 (Specific, i?86-*-solaris2.10): Likewise.
14471 (Specific, mips-sgi-irix6): Likewise.
14472 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
14473 Update for binutils 2.21.
14475 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14477 * configure.ac (gcc_cv_lto_plugin): Fix typo.
14478 Allow -fuse-linker-plugin for non-default plugin linker.
14479 * configure: Regenerate.
14481 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
14484 * gengtype.c (files_rules): Added rule for cp/parser.h.
14486 2011-03-21 Jakub Jelinek <jakub@redhat.com>
14489 * config/s390/s390.c (s390_delegitimize_address): Don't call
14490 lowpart_subreg if orig_x has BLKmode.
14492 2011-03-21 Kai Tietz <ktietz@redhat.com>
14495 * doc/plugins.texi: Adjust documentation for plugin register_callback.
14496 * tree.h (attribute_spec): Add new member affects_type_identity.
14497 * attribs.c (empty_attribute_table): Adjust attribute_spec
14499 * config/alpha/alpha.c: Likewise.
14500 * config/arc/arc.c: Likewise.
14501 * config/arm/arm.c: Likewise.
14502 * config/avr/avr.c: Likewise.
14503 * config/bfin/bfin.c: Likewise.
14504 * config/crx/crx.c: Likewise.
14505 * config/darwin.h: Likewise.
14506 * config/h8300/h8300.c: Likewise.
14507 * config/i386/cygming.h: Likewise.
14508 * config/i386/i386.c: Likewise.
14509 * config/ia64/ia64.c: Likewise.
14510 * config/m32c/m32c.c: Likewise.
14511 * config/m32r/m32r.c: Likewise.
14512 * config/m68hc11/m68hc11.c: Likewise.
14513 * config/m68k/m68k.c: Likewise.
14514 * config/mcore/mcore.c: Likewise.
14515 * config/mep/mep.c: Likewise.
14516 * config/microblaze/microblaze.c: Likewise.
14517 * config/mips/mips.c: Likewise.
14518 * config/rs6000/rs6000.c: Likewise.
14519 * config/rx/rx.c: Likewise.
14520 * config/sh/sh.c: Likewise.
14521 * config/sol2.h: Likewise.
14522 * config/sparc/sparc.c: Likewise.
14523 * config/spu/spu.c: Likewise.
14524 * config/stormy16/stormy16.c: Likewise.
14525 * config/v850/v850.c: Likewise.
14527 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
14529 * simplify-rtx.c (simplify_binary_operation_1): Handle
14530 (xor (and A B) C) case when B and C are both constants.
14532 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
14534 * tree-dfa.c (add_referenced_var): Fix typo in comment.
14536 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
14539 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
14541 2011-03-20 Jakub Jelinek <jakub@redhat.com>
14543 PR rtl-optimization/48156
14544 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
14545 assume df and df_lr are not NULL.
14547 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14550 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
14551 between a call and its CALL_ARG_LOCATION note.
14553 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
14556 * config/sh/sh.c (find_barrier): Don't emit a constant pool
14557 between a call and its corresponding CALL_ARG_LOCATION note.
14559 2011-03-19 Anatoly Sokolov <aesok@post.ru>
14561 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
14562 instead of loop. Use HARD_REGISTER_NUM_P predicate.
14563 * haifa-sched.c (setup_ref_regs): Ditto.
14564 * caller-save.c (add_used_regs_1): Ditto.
14565 * dse.c (look_for_hardregs): Ditto.
14566 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
14567 * sched-rgn.c (check_live_1): Ditto.
14569 2011-03-18 Joseph Myers <joseph@codesourcery.com>
14571 * c-decl.c (diagnose_mismatched_decls): Give an error for
14572 redefining a typedef with variably modified type.
14574 2011-03-18 Joseph Myers <joseph@codesourcery.com>
14576 * c-decl.c (grokfield): Don't allow typedefs for structures or
14577 unions with no tag by default.
14578 * doc/extend.texi (Unnamed Fields): Update.
14580 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
14582 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
14583 Rewrite using indirect functions.
14584 (lwp_slwpcb): Ditto.
14585 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
14586 (avx_vinsertf128<mode>): Ditto.
14588 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14590 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
14593 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14595 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
14596 splitting between a call and its corresponding CALL_ARG_LOCATION note.
14598 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
14600 PR rtl-optimization/48170
14601 * gcse.c (hoist_code): Remove bogus asserts.
14603 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
14605 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
14606 computation for prologue/epilogue.
14608 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14610 * Makefile.in (check-consistency): Remove.
14612 2011-03-18 Jakub Jelinek <jakub@redhat.com>
14615 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
14616 arange_table_in_use is 0, but either text_section_used or
14617 cold_text_section_used is true. Don't call it if
14618 !info_section_emitted.
14620 2011-03-18 Anatoly Sokolov <aesok@post.ru>
14622 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
14623 FUNCTION_VALUE_REGNO_P): Remove.
14624 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
14626 * config/avr/avr.c (avr_ret_register): Make static inline.
14627 (avr_function_value_regno_p): New function.
14628 (avr_libcall_value): Make static. Add 'func' argument.
14629 (avr_function_value): Make static. Rename 'func' argument to
14630 'fn_decl_or_type', forward it to avr_libcall_value. Call
14631 avr_ret_register function instead of RET_REGISTER macro.
14632 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14634 2011-03-18 Jason Merrill <jason@redhat.com>
14637 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
14639 2011-03-18 Richard Guenther <rguenther@suse.de>
14641 * doc/install.texi (--enable-gold): Remove.
14642 (--with-plugin-ld): Document.
14643 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
14645 2011-03-18 Andrew Pinski <pinskia@gmail.com>
14647 PR middle-end/47790
14648 * expr.c (optimize_bitfield_assignment_op): Revamp to work
14649 again after expansion changes.
14651 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
14653 * combine.c (try_combine): Do simplification only call of
14654 subst() on i2 even when i1 is present. Update comments.
14656 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
14658 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
14659 and UNSPEC_PCREL_SYMOFF.
14661 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14663 * config/s390/s390.md: Use define_c_enum for the unspec constant
14666 2011-03-18 Richard Henderson <rth@redhat.com>
14667 Jakub Jelinek <jakub@redhat.com>
14670 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
14671 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
14673 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14675 PR middle-end/47725
14676 * combine.c (cant_combine_insn_p): Don't check zero/sign
14677 extended hard registers.
14679 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14681 PR middle-end/47725
14682 * combine.c (cant_combine_insn_p): Check zero/sign extended
14685 2011-03-17 Anatoly Sokolov <aesok@post.ru>
14687 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14688 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
14689 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
14690 Change return type to bool.
14691 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14693 2011-03-17 Jakub Jelinek <jakub@redhat.com>
14696 * var-tracking.c (prepare_call_arguments): If CALL target
14697 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
14698 pc instead of looking it up using cselib_lookup and use
14699 Pmode for it if x has VOIDmode.
14700 * dwarf2out.c (gen_subprogram_die): If also both first and
14701 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
14704 * function.c (assign_parms): For data.passed_pointer parms
14705 use MEM of data.entry_parm instead of data.entry_parm itself
14706 as DECL_INCOMING_RTL.
14707 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
14708 also when passed and declared mode is the same, DECL_RTL
14709 is a MEM with pseudo as address and DECL_INCOMING_RTL is
14712 2011-03-16 Jeff Law <law@redhat.com>
14714 PR rtl-optimization/37273
14715 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14716 handle them like argument loads from stack slots. Do not double
14717 count memory for memory constants and argument loads from stack slots.
14719 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14722 * var-tracking.c (prepare_call_arguments): Check SUBREG.
14724 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14727 * config/i386/i386.opt: Add Save to -mavx and -mfma.
14729 2011-03-17 Jakub Jelinek <jakub@redhat.com>
14732 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
14734 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
14735 Clear call_arg_locations and call_arg_loc_last always.
14737 PR middle-end/48152
14738 * var-tracking.c (prepare_call_arguments): If argument needs to be
14739 passed by reference, adjust argtype and mode.
14741 2011-03-17 Richard Guenther <rguenther@suse.de>
14743 PR middle-end/48134
14744 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
14745 a value make sure to fold the statement.
14747 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
14750 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
14751 return condition with !cfun->calls_alloca.
14753 2011-03-17 Richard Guenther <rguenther@suse.de>
14756 * lto-cgraph.c (input_overwrite_node): Clear the abstract
14757 origin for decls in other ltrans units.
14758 (input_varpool_node): Likewise.
14760 2011-03-17 Richard Guenther <rguenther@suse.de>
14762 PR middle-end/48165
14763 * tree-object-size.c (compute_object_offset): Properly return
14764 the offset operand of MEM_REFs as sizetype.
14766 2011-03-17 Jakub Jelinek <jakub@redhat.com>
14768 PR rtl-optimization/48141
14769 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
14770 * dse.c: Include params.h.
14771 (active_local_stores_len): New variable.
14772 (add_wild_read, dse_step1): Clear it when setting active_local_stores
14774 (record_store, check_mem_read_rtx): Decrease it when removing
14776 (scan_insn): Likewise. Increase it when adding to chain, if it
14777 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
14778 set active_local_stores to NULL before the addition.
14779 * Makefile.in (dse.o): Depend on $(PARAMS_H).
14781 PR rtl-optimization/48141
14782 * dse.c (record_store): If no positions are needed in an insn
14783 that cannot be deleted, at least unchain it from active_local_stores.
14785 2011-03-16 Dodji Seketeli <dodji@redhat.com>
14788 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
14789 (lookup_type_die_strip_naming_typedef): ... here.
14790 (get_context_die): Use it.
14791 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
14792 the anonymous struct named by the naming typedef.
14794 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
14797 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
14798 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14800 2011-03-16 Jeff Law <law@redhat.com>
14802 * tree-vrp.c (identify_jump_threads): Slightly simplify type
14803 check for operands of conditional. Allow type to be a pointer.
14805 2011-03-16 Richard Guenther <rguenther@suse.de>
14807 PR tree-optimization/48149
14808 * fold-const.c (fold_binary_loc): Fold
14809 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
14811 2011-03-16 Richard Guenther <rguenther@suse.de>
14813 PR tree-optimization/26134
14814 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
14815 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
14816 (non_rewritable_mem_ref_base): Handle complex type component
14817 accesses, constrain offsets for vector and complex extracts
14820 2011-03-16 Richard Guenther <rguenther@suse.de>
14822 PR tree-optimization/48146
14823 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
14824 operands avoiding the need for renaming.
14826 2011-03-16 Richard Guenther <rguenther@suse.de>
14828 * gimple-fold.c (maybe_fold_reference): Open-code relevant
14829 constant folding. Move MEM_REF canonicalization first.
14830 Rely on fold_const_aggregate_ref for initializer folding.
14831 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
14833 2011-03-16 Jakub Jelinek <jakub@redhat.com>
14835 PR middle-end/48136
14836 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
14837 arg0/arg1 or their arguments are always fold converted to matching
14840 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
14843 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14846 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
14847 Handle in-tree gold.
14848 (ld_vers): Extract binutils version for gold.
14849 (gcc_cv_ld_hidden): Handle gold here.
14850 (gcc_cv_lto_plugin): Determine level of linker plugin support.
14851 * configure: Regenerate.
14852 * config.in: Regenerate.
14853 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
14854 -fuse-linker-plugin otherwise.
14855 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
14856 (LINK_COMMAND_SPEC): Use it.
14857 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
14859 2011-03-16 Jakub Jelinek <jakub@redhat.com>
14861 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
14862 * calls.c: Remove debug.h include.
14863 (emit_call_1): Don't call virtual_call_token debug hook.
14864 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
14865 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
14866 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
14867 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
14868 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
14869 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
14870 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
14871 dwarf2out_virtual_call): Remove.
14872 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
14873 copy_call_info and virtual_call hooks.
14874 (dwarf2out_init): Don't initialize vcall_insn_table,
14875 debug_dcall_section and debug_vcall_section.
14876 (prune_unused_types): Don't mark nodes from dcall_table.
14877 (dwarf2out_finish): Don't output dcall or vcall tables.
14878 * final.c (final_scan_insn): Don't call direct_call or
14879 virtual_call debug hooks.
14880 * debug.h (struct gcc_debug_hooks): Remove direct_call,
14881 virtual_call_token, copy_call_info and virtual_call hooks.
14882 (debug_nothing_uid): Remove prototype.
14883 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
14884 copy_call_info and virtual_call hooks.
14885 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14886 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
14887 * debug.c (do_nothing_debug_hooks): Likewise.
14888 (debug_nothing_uid): Remove.
14889 * doc/invoke.texi (-fenable-icf-debug): Remove.
14890 * common.opt (-fenable-icf-debug): Likewise.
14892 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
14893 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
14894 call's MEM. Handle functions returning aggregate through a hidden
14895 first pointer. For virtual calls add clobbered pc to call arguments
14897 * dwarf2out.c (gen_subprogram_die): Emit
14898 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
14902 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
14903 * rtl.h (ENTRY_VALUE_EXP): Define.
14904 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
14905 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
14906 * print-rtl.c (print_rtx): Likewise.
14907 * gengtype.c (adjust_field_rtx_def): Likewise.
14908 * var-tracking.c (vt_add_function_parameter): Adjust
14909 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
14910 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
14911 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
14912 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
14913 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
14915 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
14916 Call var_location debug hook even on CALL_INSNs.
14917 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
14918 * rtl.def (ENTRY_VALUE): New.
14919 * dwarf2out.c: Include cfglayout.h.
14920 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
14921 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
14922 (struct call_arg_loc_node): New type.
14923 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
14924 tail_call_site_count): New variables.
14925 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
14926 DW_TAG_GNU_call_site_parameter.
14927 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
14928 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
14929 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
14930 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
14931 and DW_AT_GNU_all_source_call_sites.
14932 (mem_loc_descriptor): Handle ENTRY_VALUE.
14933 (add_src_coords_attributes): Don't add enything if
14934 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
14935 (dwarf2out_abstract_function): Save and clear call_arg_location,
14936 call_site_count and tail_call_site_count around dwarf2out_decl call.
14937 (gen_call_site_die): New function.
14938 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
14939 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
14940 (dwarf2out_function_decl): Clear call_arg_locations,
14941 call_arg_loc_last, set call_site_count and tail_call_site_count
14942 to -1 and free block_map.
14943 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
14944 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
14945 followed by any real instructions.
14946 (dwarf2out_begin_function): Set call_site_count and
14947 tail_call_site_count to 0.
14948 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
14949 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
14950 attempt to force a DIE for it and worst case remove the attribute.
14951 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
14952 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
14954 * var-tracking.c: Include tm_p.h.
14955 (vt_stack_adjustments): For calls call note_register_arguments.
14956 (argument_reg_set): New variable.
14957 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
14958 ensure the VALUE is resolved.
14959 (call_arguments): New variable.
14960 (prepare_call_arguments): New function.
14961 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
14962 (struct expand_loc_callback_data): Add ignore_cur_loc field.
14963 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
14964 always use the best expression.
14965 (vt_expand_loc): Add ignore_cur_loc argument.
14966 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
14967 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
14968 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
14969 note for all calls.
14970 (vt_add_function_parameter): Use cselib_lookup_from_insn.
14971 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
14972 argument. Don't call cselib_preserve_only_values and
14973 cselib_reset_table.
14974 (note_register_arguments): New function.
14975 (vt_initialize): Compute argument_reg_set. Call
14976 vt_add_function_parameters before processing basic blocks instead of
14977 afterwards. For calls call prepare_call_arguments before calling
14978 cselib_process_insn.
14979 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
14980 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
14981 (var-tracking.o): Depend on $(TM_P_H).
14982 * cfglayout.h (insn_scope): New prototype.
14983 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
14984 * cfglayout.c (insn_scope): No longer static.
14985 * insn-notes.def (CALL_ARG_LOCATION): New.
14986 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
14987 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
14988 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
14989 nothing for DECL_EXTERNAL BLOCK_VARS.
14991 2011-03-16 Alan Modra <amodra@gmail.com>
14994 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
14995 create invalid offset address for vsx splat insn.
14996 * config/rs6000/predicates.md (splat_input_operand): New.
14997 * config/rs6000/vsx.md (vsx_splat_*): Use it.
14999 2011-03-15 Xinliang David Li <davidxl@google.com>
15002 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
15003 (normalize_preds): New function.
15004 (is_use_properly_guarded): Normalize def predicates.
15006 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15009 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
15010 in the output template.
15012 2011-03-15 Richard Guenther <rguenther@suse.de>
15014 PR middle-end/47650
15015 * tree-pretty-print.c (dump_function_declaration): Properly
15016 dump unprototyped and varargs function types.
15018 2011-03-15 Richard Guenther <rguenther@suse.de>
15020 PR tree-optimization/13954
15021 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
15024 2011-03-15 Richard Guenther <rguenther@suse.de>
15026 PR tree-optimization/48037
15027 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
15028 selects into BIT_FIELD_REFs.
15029 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
15032 2011-03-15 Jakub Jelinek <jakub@redhat.com>
15034 PR tree-optimization/48129
15035 * builtins.c (fold_builtin_snprintf): Convert to type of
15036 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
15037 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
15039 2011-03-15 Richard Guenther <rguenther@suse.de>
15041 PR tree-optimization/41490
15042 * tree-ssa-dce.c (propagate_necessity): Handle returns without
15043 value but with VUSE.
15044 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
15046 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
15047 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
15048 * tree-tailcall.c (find_tail_calls): Ignore returns.
15050 2011-03-15 Richard Guenther <rguenther@suse.de>
15052 PR middle-end/48031
15053 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
15054 or variable-indexed array accesses when in gimple form.
15056 2011-03-15 Richard Guenther <rguenther@suse.de>
15058 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
15060 2011-03-15 Alan Modra <amodra@gmail.com>
15063 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
15064 presume symbol_refs without a symbol_ref_decl are suitably
15065 aligned, nor other trees we may see here. Handle anchor symbols.
15066 (legitimate_constant_pool_address_p): Comment. Add mode param.
15067 Check cmodel=medium addresses. Adjust all calls.
15068 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
15069 creating cmodel=medium optimized access to locals.
15070 * config/rs6000/constraints.md (R): Pass QImode to
15071 legitimate_constant_pool_address_p.
15072 * config/rs6000/predicates.md (input_operand): Pass mode to
15073 legitimate_constant_pool_address_p.
15074 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
15077 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
15080 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
15081 64-bit constants being loaded into registers other than GPRs such
15082 as loading 0 into a VSX register.
15084 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15086 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
15088 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15090 PR middle-end/47917
15091 * builtins.c (fold_builtin_snprintf): New function.
15092 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
15093 (fold_builtin_4): Likewise.
15095 PR middle-end/38878
15096 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
15097 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
15098 and C - X == X also strip nops from +/-/p+ operand.
15099 When optimizing -X == C, fold C to arg0's type.
15102 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
15103 emit it as add_AT_int instead of add_AT_unsigned.
15105 2011-03-14 Tom Tromey <tromey@redhat.com>
15107 * unwind-dw2.c: Include sys/sdt.h if it exists.
15108 (_Unwind_DebugHook): Use STAP_PROBE2.
15109 * config.in, configure: Rebuild.
15110 * configure.ac: Check for sys/sdt.h.
15112 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
15114 * config/i386/i386.md (ROUND_FLOOR): New constant.
15115 (ROUND_CEIL): Ditto.
15116 (ROUND_TRUNC): Ditto.
15117 (ROUND_MXCSR): Ditto.
15118 (ROUND_NO_EXC): Ditto.
15119 (rint<mode>2): Use new defines instead of numerical constants.
15120 (floor<mode>2): Ditto.
15121 (ceil<mode>2): Ditto.
15122 (btrunc<mode>2): Ditto.
15123 * config/i386/i386-builtin-types.def: Define ROUND function type
15125 * config/i386/i386.c (enum ix86_builtins): Add
15126 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
15127 (struct builtin_description): Add
15128 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
15129 (ix86_expand_sse_round): New static function.
15130 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
15132 (ix86_builtin_vectorized_function): Handle
15133 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15135 2011-03-14 Tom Tromey <tromey@redhat.com>
15137 * c-parser.c (c_parser_asm_string_literal): Clear
15138 warn_overlength_strings.
15140 2011-03-14 Tom Tromey <tromey@redhat.com>
15142 * c-parser.c (disable_extension_diagnostics): Save
15143 warn_overlength_strings.
15144 (restore_extension_diagnostics): Restore warn_overlength_strings.
15146 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15148 * BASE-VER: Change to 4.7.0.
15150 2011-03-14 Richard Guenther <rguenther@suse.de>
15152 PR middle-end/48098
15153 * tree.c (build_vector_from_val): Adjust assert to requirements
15156 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15159 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
15161 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
15163 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
15164 terms of target_flags_explicit. Adjust copyright year.
15166 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
15167 * config/rs6000/t-freebsd: New file. Add override for
15170 2011-03-13 Chris Demetriou <cgd@google.com>
15172 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
15173 (-fno-diagnostics-show-option): this, to reflect current default.
15174 (-Werror=): Update text about -fno-diagnostics-show-option.
15176 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
15179 * config/rs6000/predicates.md (easy_vector_constant_add_self,
15180 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
15181 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
15182 mode is not V2DImode or V2DFmode.
15183 (vspltis_constant): Do not handle V2DImode and V2DFmode.
15184 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
15185 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
15187 (movdi_internal64): Likewise.
15189 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
15191 PR tree-optimization/47127
15192 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
15194 (set_cloog_options): Same.
15195 (scop_to_clast): Same.
15196 (print_clast_stmt): Do not call cloog_state_malloc and
15198 (print_generated_program): Same.
15200 * graphite-clast-to-gimple.h (cloog_state): Declared.
15201 (scop_to_clast): Adjust declaration.
15202 * graphite.c (cloog_state): Defined here.
15203 (graphite_initialize): Call cloog_state_malloc.
15204 (graphite_finalize): Call cloog_state_free.
15206 2011-03-11 Jason Merrill <jason@redhat.com>
15208 * attribs.c (lookup_attribute_spec): Take const_tree.
15211 2011-03-11 Joseph Myers <joseph@codesourcery.com>
15213 * config/sparc/sparc.c (sparc_option_override): Use
15214 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
15216 2011-03-11 Richard Guenther <rguenther@suse.de>
15218 PR tree-optimization/48067
15219 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
15220 multiplication result will be only used once on the target
15223 2011-03-11 Richard Guenther <rguenther@suse.de>
15225 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
15227 2011-03-11 Richard Guenther <rguenther@suse.de>
15230 * tree.c (find_decls_types_r): Do not walk types only reachable
15231 from IDENTIFIER_NODEs.
15233 2011-03-11 Jakub Jelinek <jakub@redhat.com>
15235 PR middle-end/48044
15236 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
15237 all vnode->force_output nodes as needed.
15239 2011-03-11 Jason Merrill <jason@redhat.com>
15242 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
15243 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
15245 2011-03-11 Martin Jambor <mjambor@suse.cz>
15247 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
15250 2011-03-11 Jakub Jelinek <jakub@redhat.com>
15252 PR tree-optimization/48063
15253 * ipa-inline.c (cgraph_decide_inlining): Don't try to
15254 inline functions called once if !tree_can_inline_p (node->callers).
15256 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
15258 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
15260 * config/score/score3.c: Delete.
15261 * config/score/score3.h: Delete.
15262 * config/score/mul-div.S: Delete.
15263 * config/score/sfp-machine.h: Add new file.
15264 * config/score/constraints.md: Add new file.
15265 * config/score/t-score-softfp: Add new file.
15266 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
15267 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
15268 (score7_extra_constraint): Delete.
15269 (score7_option_override): Remove unused code.
15270 * config/score/score.c: Remove score3 and score5 define and code.
15271 * config/score/score.h: Remove score3 and score5 define and code.
15272 * config/score/score.md: Remove score3 template and unusual insn.
15273 * config/score/score.opt: Remove score3 and score5 options.
15275 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15277 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15278 when _HPUX_SOURCE is defined.
15279 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
15281 2011-03-10 Jason Merrill <jason@redhat.com>
15284 * stor-layout.c (layout_type): Don't set structural equality
15285 on arrays of incomplete type.
15286 * tree.c (type_hash_eq): Handle comparing them properly.
15288 2011-03-10 Jakub Jelinek <jakub@redhat.com>
15291 * config/s390/s390.c (s390_delegitimize_address): Make sure the
15292 result mode matches original rtl mode.
15294 2011-03-10 Nick Clifton <nickc@redhat.com>
15296 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
15297 (andsi3, andsi3_flags): Fix timings for three operand alternative.
15299 2011-03-09 Jakub Jelinek <jakub@redhat.com>
15301 PR rtl-optimization/47866
15302 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
15303 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
15304 if target wasn't scalar.
15305 * function.c (assign_stack_temp_for_type): Assert that neither
15306 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
15307 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
15309 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
15311 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15313 * config/s390/s390-protos.h (s390_label_align): New prototype.
15314 * config/s390/s390.c (s390_label_align): New function.
15315 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
15317 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
15320 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
15321 V2DI/V2DF constants. Only all 0's or all 1's are easy.
15322 (output_vec_const_move): Ditto.
15324 2011-03-08 Anatoly Sokolov <aesok@post.ru>
15326 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
15327 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
15328 * config/mips/mips.c (mips_preferred_reload_class): Make static.
15329 Change 'rclass' argument and result type to reg_class_t.
15330 (TARGET_PREFERRED_RELOAD_CLASS): Define.
15332 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
15334 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15335 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
15336 (TARGET_MEMORY_MOVE_COST): Define.
15337 (avr_register_move_cost, avr_memory_move_cost): New Functions.
15339 2011-03-08 Jakub Jelinek <jakub@redhat.com>
15342 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
15345 PR tree-optimization/48022
15346 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
15349 2011-03-07 Jakub Jelinek <jakub@redhat.com>
15352 * var-tracking.c (find_use_val): Return NULL for
15353 cui->sets && cui->store_p BLKmode MEMs.
15355 2011-03-07 Anatoly Sokolov <aesok@post.ru>
15357 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
15359 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
15360 xstormy16_print_operand_address): Remove.
15361 * config/stormy16/stormy16.c (xstormy16_print_operand,
15362 xstormy16_print_operand_address): Make static.
15363 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15365 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
15368 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
15369 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
15372 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
15375 * cfgloopmanip.c (fix_bb_placements): Return immediately
15376 if FROM is BASE_LOOP's header.
15378 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
15380 * gimplify.c (gimplify_function_tree): Fix building calls
15381 to __builtin_return_address.
15383 2011-03-07 Alan Modra <amodra@gmail.com>
15385 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
15386 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
15387 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
15388 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
15390 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
15391 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
15392 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
15393 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
15394 * config/rs6000/rs6000.c
15395 (rs6000_elf_end_indicate_exec_stack): Rename to..
15396 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
15397 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
15398 (rs6000_file_start): ..here.
15399 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
15400 file scope variables.
15401 (call_ABI_of_interest): New function.
15402 (init_cumulative_args): Set above vars when function return value
15403 is a float, vector, or small struct.
15404 (rs6000_function_arg_advance_1): Likewise for function args.
15405 (rs6000_va_start): Set rs6000_passes_float if variable arg function
15406 references float args.
15408 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
15410 * doc/cfg.texi: Remove "See" before @ref.
15411 * doc/invoke.texi: Likewise.
15413 2011-03-05 Jason Merrill <jason@redhat.com>
15415 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
15417 2011-03-05 Anthony Green <green@moxielogic.com>
15419 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
15421 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
15423 PR rtl-optimization/47899
15424 * cfgloopmanip.c (fix_bb_placements): Fix first argument
15425 to flow_loop_nested_p when moving the loop upward.
15427 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
15430 * arm.md (movhi_insn_arch4): Accept any immediate constant.
15432 2011-03-05 Jakub Jelinek <jakub@redhat.com>
15434 PR tree-optimization/47967
15435 * ipa-cp.c (build_const_val): Return NULL instead of creating
15436 VIEW_CONVERT_EXPR for mismatching sizes.
15437 (ipcp_create_replace_map): Return NULL if build_const_val failed.
15438 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
15439 give up on versioning.
15441 2011-03-05 Alan Modra <amodra@gmail.com>
15444 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15445 full cmodel medium/large lo_sum + high addresses.
15447 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15449 * config/s390/s390.c (s390_decompose_address): Reject non-literal
15450 pool references in UNSPEC_LTREL_OFFSET.
15452 2011-03-04 Jan Hubicka <jh@suse.cz>
15455 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
15456 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
15457 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
15459 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
15460 cgraph_add_thunk): Add node pointers.
15461 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
15462 associated to right node.
15463 (input_node): Update use of cgraph_same_body_alias
15464 and cgraph_add_thunk.
15466 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
15468 * config/i386/i386.opt (mprefer-avx128): New flag.
15469 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
15470 modes when the flag -mprefer-avx128 is on.
15472 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
15474 * dwarf2out.c (compare_loc_operands): Fix address handling.
15476 2011-03-04 Alan Modra <amodra@gmail.com>
15478 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
15480 2011-03-04 Richard Guenther <rguenther@suse.de>
15482 PR middle-end/47968
15483 * expmed.c (extract_bit_field_1): Prefer vector modes that
15484 vec_extract patterns can handle.
15486 2011-03-04 Richard Guenther <rguenther@suse.de>
15488 PR middle-end/47975
15489 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
15491 2011-03-04 Richard Henderson <rth@redhat.com>
15493 * explow.c (emit_stack_save): Remove 'after' parameter.
15494 (emit_stack_restore): Likewise.
15495 * expr.h: Update to match.
15496 * builtins.c, calls.c, stmt.c: Likewise.
15497 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
15498 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
15499 * function.c (expand_function_end): Insert the emit_stack_save
15500 sequence before parm_birth_insn instead of after.
15502 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
15504 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
15505 (ssse3_pmaddubsw128): Ditto.
15506 (ssse3_pmaddubsw): Ditto.
15508 2011-03-03 Steve Ellcey <sje@cup.hp.com>
15510 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
15512 2011-03-03 Jakub Jelinek <jakub@redhat.com>
15515 * gimplify.c (omp_add_variable): Only call omp_notice_variable
15516 on TYPE_SIZE_UNIT if it is a DECL.
15519 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
15520 first operand is not is_gimple_mem_ref_addr, try to fold it.
15521 If the operand still isn't is_gimple_mem_ref_addr, clear
15524 2011-03-03 Richard Guenther <rguenther@suse.de>
15526 PR middle-end/47283
15527 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
15529 (refs_may_alias_p_1): For release branches return true if
15530 we are confused by our input.
15532 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15534 * config/s390/s390.c (s390_function_value): Rename to ...
15535 (s390_function_and_libcall_value): ... this.
15536 (s390_function_value): New function.
15537 (s390_libcall_value): New function.
15538 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
15539 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
15540 target macro definitions.
15541 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
15543 2011-03-02 Joseph Myers <joseph@codesourcery.com>
15545 * config/i386/freebsd64.h (CC1_SPEC): Define.
15546 * config/i386/linux64.h (CC1_SPEC): Define.
15547 * config/i386/x86-64.h (CC1_SPEC): Don't define.
15549 2011-03-02 Anatoly Sokolov <aesok@post.ru>
15551 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15553 * config/stormy16/stormy16.c: Include reload.h.
15554 (xstormy16_memory_move_cost): New function.
15555 (TARGET_MEMORY_MOVE_COST): Define.
15557 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
15559 PR rtl-optimization/47925
15560 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
15561 with side effects. Remove the more-specific check for volatile asms.
15563 2011-03-02 Alan Modra <amodra@gmail.com>
15566 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
15567 toc relative addresses for valid offsets.
15569 2011-03-01 Richard Guenther <rguenther@suse.de>
15571 PR tree-optimization/47890
15572 * tree-vect-loop.c (get_initial_def_for_induction): Set
15573 related stmt properly.
15575 2011-03-01 Richard Guenther <rguenther@suse.de>
15578 * lto-streamer.c (lto_record_common_node): Also register
15579 the canonical type.
15581 2011-03-01 Richard Guenther <rguenther@suse.de>
15584 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15585 Do not stream DECL_ABSTRACT_ORIGIN.
15586 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15587 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15588 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15589 Do not stream DECL_ABSTRACT_ORIGIN.
15590 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15591 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15593 2011-02-28 Anatoly Sokolov <aesok@post.ru>
15595 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
15596 FUNCTION_VALUE_REGNO_P): Remove.
15597 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
15598 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
15599 Add 'outgoing' argument.
15600 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
15602 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15603 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15605 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
15608 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
15609 (lookup_filename): Likewise.
15610 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
15612 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
15613 Jakub Jelinek <jakub@redhat.com>
15615 PR middle-end/47893
15616 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
15617 (assign_stack_local_1): Change last argument type to int.
15618 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
15619 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
15620 don't record padding space into frame_space_list nor use those areas.
15621 (assign_stack_local): Adjust caller.
15622 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
15623 of assign_stack_local, pass 0 as last argument.
15624 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
15627 2011-02-28 Jakub Jelinek <jakub@redhat.com>
15630 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
15631 Use target address_mode and pointer_mode hooks instead of hardcoded
15632 Pmode and ptr_mode. Handle some simple cases of extending if
15633 POINTERS_EXTEND_UNSIGNED < 0.
15634 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
15635 Call convert_debug_memory_address.
15636 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
15637 convert_debug_memory_address.
15639 PR middle-end/46790
15640 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
15641 * configure: Regenerated.
15642 * config.in: Regenerated.
15643 * varasm.c (default_function_section): Return NULL
15644 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
15646 2011-02-28 Martin Jambor <mjambor@suse.cz>
15648 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
15649 the description to match the printed values.
15651 2011-02-28 Richard Guenther <rguenther@suse.de>
15653 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
15654 of the copied scope tree.
15656 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15658 * doc/extend.texi (Function Attributes): Avoid deeply (and
15659 wrongly) nested tables.
15661 2011-02-27 Jakub Jelinek <jakub@redhat.com>
15663 PR middle-end/47903
15664 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
15665 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
15666 r isn't op0 nor op1.
15668 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
15670 * config/avr/avr.md: Remove magic comment for emacs.
15672 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
15675 * config/avr/avr.c (avr_option_override): Use error on bad options.
15676 (avr_help): New function.
15677 (TARGET_HELP): Define.
15679 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
15682 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
15683 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
15685 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
15687 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
15688 (ARM Options): Ditto.
15689 (i386 and x86-64 Options): Ditto.
15690 (RX Options): Ditto.
15691 (SPARC Options): Ditto.
15693 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
15695 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
15696 FreeBSD 6 and later. Generally use cpu generic.
15698 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
15700 * doc/cpp.texi: Update copyright years.
15702 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
15705 * config/lm32/lm32.md (ashrsi3): Added needed variable.
15707 2011-02-25 Jon Beniston <jon@beniston.com>
15710 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
15711 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
15712 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
15713 (lm32_block_move_inline): Add type cast to remove warning.
15714 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
15715 (gen_int_relational): Move declarations to start of function.
15717 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
15719 PR tree-optimization/45470
15720 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
15721 can throw internally only.
15722 * tree-vect-stmts.c (vectorizable_call): Likewise.
15724 2011-02-24 Anatoly Sokolov <aesok@post.ru>
15726 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
15727 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15728 * config/stormy16/stormy16-protos.h
15729 (xstormy16_preferred_reload_class): Remove.
15730 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
15731 static. Change 'rclass' argument and return type to reg_class_t.
15732 (TARGET_PREFERRED_RELOAD_CLASS,
15733 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15735 2011-02-24 Richard Guenther <rguenther@suse.de>
15737 * lto-streamer-in.c (input_bb): Do not find referenced vars
15738 in debug statements.
15740 2011-02-23 Jason Merrill <jason@redhat.com>
15742 * common.opt (fabi-version): Document v5 and v6.
15744 2011-02-23 Richard Guenther <rguenther@suse.de>
15746 PR tree-optimization/47849
15747 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
15749 2011-02-23 Jie Zhang <jie@codesourcery.com>
15751 * opts-common.c (decode_cmdline_option): Print empty string
15752 argument as "" in decoded->orig_option_with_args_text.
15753 * gcc.c (execute): Print empty string argument as ""
15754 in the verbose output.
15755 (do_spec_1): Keep empty string argument.
15757 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
15759 * config.gcc: Declare score-* and crx-* obsolete.
15761 2011-02-23 Jie Zhang <jie@codesourcery.com>
15763 PR rtl-optimization/47763
15764 * web.c (web_main): Ignore naked clobber when replacing register.
15766 2011-02-22 Anatoly Sokolov <aesok@post.ru>
15768 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
15771 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
15774 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
15776 2011-02-22 Mike Stump <mikestump@comcast.net>
15778 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
15780 * configure: Regenerate.
15782 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
15784 PR rtl-optimization/46002
15785 * ira-color.c (update_copy_costs): Change class intersection
15786 test to reg_class_contents[] test of 'hard_regno'.
15788 2011-02-21 Joseph Myers <joseph@codesourcery.com>
15790 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
15791 than Driver option.
15792 * config/hpux11.opt (mt): Likewise.
15793 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
15794 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
15795 * config/vax/elf.opt (mno-asm-pic): Likewise.
15796 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
15798 2011-02-21 Mike Stump <mikestump@comcast.net>
15801 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
15802 tree so we can get save the type.
15803 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
15804 for CFString instead of trying to use past the end of the builtins.
15805 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
15806 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
15807 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
15808 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
15809 Rename to darwin_builtin_cfstring.
15810 (darwin_init_cfstring_builtins): Return the built type.
15812 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
15815 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
15816 (_mm256_insert_epi64): Use _mm_insert_epi64.
15818 2011-02-21 Anatoly Sokolov <aesok@post.ru>
15820 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15821 * config/stormy16/stormy16-protos.h
15822 (xstormy16_mode_dependent_address_p): Remove.
15823 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
15824 Make static. Change return type to bool. Change argument type to
15825 const_rtx. Remove dead code.
15826 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15828 2011-02-21 Richard Guenther <rguenther@suse.de>
15831 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15832 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15833 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
15835 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15836 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15838 2011-02-20 Richard Guenther <rguenther@suse.de>
15841 * tree.c (free_lang_data_in_decl): Clean builtins from
15842 the TU decl BLOCK_VARS.
15844 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
15848 * haifa-sched.c (fix_tick_ready): Skip tick computation
15851 2011-02-19 Richard Guenther <rguenther@suse.de>
15854 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
15855 Remove lazy BLOCK_VARS streaming.
15856 (lto_input_ts_block_tree_pointers): Likewise.
15857 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
15859 2011-02-19 Joseph Myers <joseph@codesourcery.com>
15861 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
15863 2011-02-19 Joseph Myers <joseph@codesourcery.com>
15865 * config/i386/biarch32.h, config/i386/mach.h,
15866 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
15868 2011-02-19 Jakub Jelinek <jakub@redhat.com>
15871 * config/i386/i386.md (peephole2 for shift and plus): Use
15872 operands[1] original mode in the first insn.
15874 2011-02-18 Mike Stump <mikestump@comcast.net>
15876 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
15878 2011-02-18 Jan Hubicka <jh@suse.cz>
15880 PR middle-end/47788
15881 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
15882 to zero when the function is not inlinable at all.
15884 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15886 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
15887 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15888 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
15889 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
15890 * config/pa/t-pa64: Likewise.
15891 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
15893 2011-02-18 Jakub Jelinek <jakub@redhat.com>
15896 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
15898 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15901 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
15903 2011-02-18 Anatoly Sokolov <aesok@post.ru>
15905 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
15906 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
15907 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
15908 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
15909 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
15910 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
15911 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
15912 m32r_load_postinc_p, m32r_store_preinc_predec_p,
15913 m32r_legitimate_address_p): New functions.
15914 * config/m32r/constraints.md (constraint "S"): Don't use
15915 STORE_PREINC_PREDEC_P.
15916 (constraint "U"): Don't use LOAD_POSTINC_P.
15918 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
15920 PR rtl-optimization/46178
15921 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
15922 compute ira_hard_regno_cover_class[].
15924 2011-02-18 Richard Guenther <rguenther@suse.de>
15927 * lto-streamer.h (lto_global_var_decls): Declare.
15928 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
15929 statics for global var processing.
15931 2011-02-18 Richard Guenther <rguenther@suse.de>
15933 PR tree-optimization/47737
15934 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
15935 edge dominance check.
15937 2011-02-18 Jakub Jelinek <jakub@redhat.com>
15940 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
15941 avoid invalid rtx sharing.
15943 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
15945 * doc/cpp.texi (Obsolete Features): Add background on the
15946 origin of assertions.
15948 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
15950 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
15952 * config/darwin.c (output_objc_section_asm_op): Added support for
15954 (is_objc_metadata): New.
15955 (darwin_objc2_section): New.
15956 (darwin_objc1_section): New.
15957 (machopic_select_section): Added support for ABI v1 and v2.
15958 (darwin_emit_objc_zeroed): New.
15959 (darwin_output_aligned_bss): Detect objc metadata and treat it
15961 (darwin_asm_output_aligned_decl_common): Same.
15962 (darwin_asm_output_aligned_decl_local): Same.
15963 * config/darwin-sections.def: Updated for ABI v1 and v2.
15964 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
15965 compiling Objective-C code for the NeXT runtime, default to using
15966 ABI version 0 for 32-bit, and version 2 for 64-bit.
15968 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15970 * common.opt (optimize_fast): New Variable.
15971 * opts.c (default_options_optimization): Use opts->x_optimize_fast
15972 instead of local variable ofast.
15974 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
15976 * doc/invoke.texi (fobjc-abi-version): Documented.
15977 (fobjc-nilcheck): Documented.
15978 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
15981 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15984 * common.opt (export-dynamic): New Driver option.
15985 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
15987 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15989 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
15991 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
15992 Jan Hubicka <jh@suse.cz>
15996 * cfgexpand.c (account_used_vars_for_block): Remove.
15997 (estimated_stack_frame_size): Use referenced vars.
15998 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
15999 that were referenced in the original function. Test src_fn
16000 rather than cfun. Drop redundant get_var_ann.
16001 (setup_one_parameter): Drop redundant get_var_ann.
16002 (declare_return_variable): Likewise.
16003 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
16004 (copy_arguments_for_versioning): Drop redundant get_var_ann.
16005 * ipa-inline.c (compute_inline_parameters): Do not compute
16006 disregard_inline_limits here.
16007 (compute_inlinable_for_current, pass_inlinable): New.
16008 (pass_inline_parameters): Require PROP_referenced_vars.
16009 * cgraphunit.c (cgraph_process_new_functions): Don't run
16010 compute_inline_parameters explicitly unless function is in SSA form.
16011 (cgraph_analyze_function): Set .disregard_inline_limits.
16012 * tree-sra.c (convert_callers): Compute inliner parameters
16013 only for functions already in SSA form.
16015 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16017 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
16018 -mlittle-endian-data.
16020 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16022 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
16023 -mno-fpu, not -fpu and -no-fpu.
16024 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
16025 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
16027 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
16030 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
16031 input reload with PLUS RTX.
16033 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16035 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
16036 of InverseVar(MDMX).
16038 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16040 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
16043 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16045 * config/mn10300/mn10300.opt (mno-crt0): New.
16047 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16049 * config/m68k/uclinux.opt (static-libc): New Driver option.
16051 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16053 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
16055 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16057 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
16058 %{muser-extend-enabled}.
16060 2011-02-16 Richard Guenther <rguenther@suse.de>
16062 PR tree-optimization/47738
16063 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
16064 the TODO from tree_predictive_commoning.
16066 2011-02-15 Jeff Law <law@redhat.com>
16069 2011-01-25 Jeff Law <law@redhat.com>
16071 PR rtl-optimization/37273
16072 * ira-costs.c (scan_one_insn): Detect constants living in memory and
16073 handle them like argument loads from stack slots. Do not double
16074 count memory for memory constants and argument loads from stack slots.
16076 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
16078 PR middle-end/47725
16079 * combine.c (cant_combine_insn_p): Revert the last change.
16081 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
16084 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
16085 mode for vector constants. Remove code that checks for TImode.
16087 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16091 * cgraph.h (compute_inline_parameters): Return void.
16092 * ipa-inline.c (compute_inline_parameters): Adjust.
16094 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16098 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
16100 * cfgexpand.c (estimated_stack_frame_size): Likewise.
16101 * ipa-inline.c (compute_inline_parameters): Adjust.
16103 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16107 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
16108 Adjust all users. Pass FN to...
16109 * tree-flow-inline.h (first_referenced_var): ... this. Add
16111 * ipa-struct-reorg.c: Adjust.
16112 * tree-dfa.c: Adjust.
16113 * tree-into-ssa.c: Adjust.
16114 * tree-sra.c: Adjust.
16115 * tree-ssa-alias.c: Adjust.
16116 * tree-ssa-live.c: Adjust.
16117 * tree-ssa.c: Adjust.
16118 * tree-ssanames.c: Adjust.
16119 * tree-tailcall.c: Adjust.
16121 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16125 * tree-flow.h (referenced_var_lookup): Add fn parameter.
16126 Adjust all callers.
16127 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
16128 * tree-flow-inline.h: Adjust.
16129 * gimple-pretty-print.c: Adjust.
16130 * tree-into-ssa.c: Adjust.
16131 * tree-ssa.c: Adjust.
16132 * cfgexpand.c: Adjust.
16134 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16136 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
16137 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16138 (EXTRA_CONSTRAINT): Delete.
16139 * config/iq2000/constraints.md: New file.
16140 * config/iq2000/iq2000.md: Include it.
16141 (define_insn ""): Delete.
16142 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
16143 unsupported constraint letters from patterns.
16144 (call_value, call_value_internal1): Likewise.
16145 (call_value_multiple_internal1): Likewise.
16147 2011-02-15 Nick Clifton <nickc@redhat.com>
16149 * config/mn10300/mn10300.c: Include tm-constrs.h.
16150 (struct liw_data): New data structure describing an LIW candidate
16152 (extract_bundle): Use struct liw_data. Allow small integer
16153 operands for some instructions.
16154 (check_liw_constraints): Use struct liw_data. Remove swapped
16155 parameter. Add comments describing the checks. Fix bug when
16156 assigning the source of liw1 to the source of liw2.
16157 (liw_candidate): Delete. Code moved into extract_bundle.
16158 (mn10300_bundle_liw): Use struct liw_data. Check constraints
16160 * config/mn10300/predicates.md (liw_operand): New predicate.
16161 Allows registers and small integer constants.
16162 * config/mn10300/constraints.md (O): New constraint. Accetps
16163 integers in the range -8 to +7 inclusive.
16164 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
16165 for moving a small integer into a register. Give this alternative
16167 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
16168 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
16169 using the J,K,L and M constraints,
16170 (liw): Remove SI mode on second operands to allow for HI and QI
16172 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
16175 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
16177 PR middle-end/47725
16178 * combine.c (cant_combine_insn_p): Check zero/sign extended
16181 2011-02-15 Richard Guenther <rguenther@suse.de>
16183 PR tree-optimization/47743
16184 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
16185 for a non-type-compatible VN lookup bail out.
16187 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16189 * config/fr30/constraints.md: New file.
16190 * config/fr30/fr30.md: Include it.
16191 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
16192 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16193 (EXTRA_CONSTRAINT): Delete.
16195 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16197 * config/frv/constraints.md: New file.
16198 * config/frv/predicates.md: Include it.
16199 * config/frv/frv.c (reg_class_from_letter): Delete.
16200 (frv_option_override): Don't initialize it.
16201 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
16202 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
16203 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
16204 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16205 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
16206 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16207 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
16208 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
16209 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
16210 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
16211 (REG_CLASS_FROM_CONSTRAINT): Delete.
16213 2011-02-15 Jakub Jelinek <jakub@redhat.com>
16215 PR middle-end/47581
16216 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
16217 if frame size is 0 in a leaf function.
16219 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16222 * config/alpha/host-osf.c: New file.
16223 * config/alpha/x-osf: New file.
16224 * config.host (alpha*-dec-osf*): Use it.
16226 2011-02-14 Anatoly Sokolov <aesok@post.ru>
16228 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16229 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
16230 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
16231 (rx_mode_dependent_address_p): ...this. Make static. Change argument
16233 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16235 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16237 * config/stormy16/constraints.md: New file.
16238 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
16239 Use satisfies_constraint_Q and satisfies_constraint_R.
16240 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
16242 (xstormy16_legitiamte_address_p): Declare.
16243 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
16244 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16245 (EXTRA_CONSTRAINT): Delete.
16246 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
16248 (xstormy16_extra_constraint_p): Delete.
16250 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
16252 PR tree-optimization/46494
16253 * loop-unroll.c (split_edge_and_insert): Adjust comment.
16254 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
16255 (pass_rtl_loop_done): Add TODO_verify_flow.
16256 * fwprop.c (pass_rtl_fwprop): Likewise.
16257 * modulo-sched.c (pass_sms): Likewise.
16258 * tree-ssa-dom.c (pass_dominator): Likewise.
16259 * tree-ssa-loop-ch.c (pass_ch): Likewise.
16260 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
16261 (pass_tree_loop_done): Likewise.
16262 * tree-ssa-pre.c (execute_pre): Likewise.
16263 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
16264 * tree-ssa-sink.c (pass_sink_code): Likewise.
16265 * tree-vrp.c (pass_vrp): Likewise.
16267 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16269 * config/v850/constraints.md: New file.
16270 * config/v850/v850.md: Include it.
16271 * config/v850/predicates.md (reg_or_0_operand): Use
16272 satisfies_constraint_G.
16273 (special_symbolref_operand): Use satisfies_constraint_K.
16274 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
16275 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
16276 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
16277 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16278 (EXTRA_CONSTRAINT): Delete.
16279 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
16280 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
16281 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
16283 2011-02-14 Anatoly Sokolov <aesok@post.ru>
16286 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
16289 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16291 * config/mcore/constraints.md: New file.
16292 * config/mcore/mcore.md: Include it.
16293 * config/mcore/mcore.c (reg_class_from_letter): Delete.
16294 * config/mcore/mcore.h (reg_class_from_letter): Delete.
16295 (REG_CLASS_FROM_LETTER): Delete.
16296 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
16297 insn_const_int_ok_for_constraint.
16298 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
16299 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
16300 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16301 (EXTRA_CONSTRAINT): Delete.
16303 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16306 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
16307 (IS_SIGHANDLER): Define.
16308 (sparc64_is_sighandler): New function, split off from
16309 sparc64_fallback_frame_state.
16310 (sparc_is_sighandler): New function, split off from
16311 sparc_fallback_frame_state.
16312 (sparc64_fallback_frame_state): Merge with ...
16313 (sparc_fallback_frame_state): ... this into ...
16314 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
16315 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
16316 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
16317 stack instead of hardcoded offsets.
16319 2011-02-14 Andriy Gapon <avg@freebsd.org>
16322 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
16324 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16326 * configure: Regenerate.
16328 2011-02-12 Joseph Myers <joseph@codesourcery.com>
16331 * gcc.c (asm_options): Correct spec matching --target-help.
16333 2011-02-12 Martin Jambor <mjambor@suse.cz>
16335 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
16336 to gimple call error.
16338 2011-02-12 Mike Stump <mikestump@comcast.net>
16340 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
16341 comments in backslash regions.
16343 2011-02-12 Mike Stump <mikestump@comcast.net>
16344 Jakub Jelinek <jakub@redhat.com>
16345 Iain Sandoe <iains@gcc.gnu.org>
16348 * dwarf2out.c (output_cfa_loc): When required, apply the
16349 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
16350 (output_loc_sequence): Likewise.
16351 (output_loc_operands_raw): Likewise.
16352 (output_loc_sequence_raw): Likewise.
16353 (output_cfa_loc): Likewise.
16354 (output_loc_list): Suppress register number adjustment when
16355 calling output_loc_sequence()
16356 (output_die): Likewise.
16358 2011-02-12 Anatoly Sokolov <aesok@post.ru>
16360 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16362 * config/xtensa/xtensa.c (xtensa_register_move_cost,
16363 xtensa_memory_move_cost): New functions.
16364 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
16366 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
16369 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
16370 in the current directory.
16371 * configure: Rebuilt.
16373 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16375 * config/darwin.c (darwin_override_options): Add a hunk missed
16376 from the commit of r168571. Trim comment line lengths and
16377 correct indents of the preceding block.
16379 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16381 * gcc.c (driver_handle_option): Concatenate the argument to -F with
16384 2011-02-11 Joseph Myers <joseph@codesourcery.com>
16386 * common.opt (nostartfiles): New Driver option.
16388 2011-02-11 Xinliang David Li <davidxl@google.com>
16390 PR tree-optimization/47707
16391 * tree-chrec.c (convert_affine_scev): Keep type precision.
16393 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
16395 PR tree-optimization/47420
16396 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
16398 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
16400 PR rtl-optimization/47614
16401 * rtl.h (check_for_inc_dec): Declare.
16402 * dse.c (check_for_inc_dec): Externalize...
16403 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
16404 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
16406 2011-02-11 Joseph Myers <joseph@codesourcery.com>
16409 * gcc.c (main): Do not compile inputs if there were errors in
16411 * opts-common.c (read_cmdline_option): Check for wrong language
16412 after other error checks.
16414 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
16416 * cgraph.c: Fix comment typos.
16417 * cgraph.h: Likewise.
16418 * cgraphunit.c: Likewise.
16419 * ipa-cp.c: Likewise.
16420 * ipa-inline.c: Likewise.
16421 * ipa-prop.c: Likewise.
16422 * ipa-pure-const.c: Likewise.
16423 * ipa-ref.c: Likewise.
16424 * ipa-reference.c: Likewise.
16426 2011-02-11 Jakub Jelinek <jakub@redhat.com>
16429 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
16431 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16434 * doc/sourcebuild.texi (Require Support): Document
16435 dg-require-ascii-locale.
16437 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
16439 * doc/lto.texi (Write summary): Fix missing parentheses.
16441 2011-02-10 DJ Delorie <dj@redhat.com>
16443 * config/m32c/m32c.c (m32c_option_override): Disable
16444 -fcombine-stack-adjustments until flag value tracking and compare
16445 optimization can be rewritten.
16447 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
16449 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
16451 (PROCESSOR_DEFAULT64): Likewise.
16453 2011-02-10 Richard Henderson <rth@redhat.com>
16455 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
16456 change from 2011-02-03.
16457 * config/rx/rx.c (flags_from_code): Likewise.
16458 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
16459 is valid, n/pz otherwise.
16460 (rx_select_cc_mode): Return CCmode if Y is not zero.
16462 2011-02-10 Richard Guenther <rguenther@suse.de>
16464 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
16466 2011-02-10 Richard Guenther <rguenther@suse.de>
16468 PR tree-optimization/47677
16469 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
16471 2011-02-10 Jakub Jelinek <jakub@redhat.com>
16474 * combine.c (make_compound_operation): Only change shifts into
16475 multiplication for SCALAR_INT_MODE_P.
16477 2011-02-10 Jie Zhang <jie@codesourcery.com>
16481 2011-02-05 Jie Zhang <jie@codesourcery.com>
16483 * web.c (entry_register): Don't clobber the number of the
16484 first uninitialized reference in used[].
16486 2011-02-09 Richard Guenther <rguenther@suse.de>
16488 PR tree-optimization/47664
16489 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
16492 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
16496 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
16498 (PROCESSOR_DEFAULT64): Same.
16499 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
16501 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16503 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
16505 2011-02-09 Martin Jambor <mjambor@suse.cz>
16507 PR middle-end/45505
16508 * tree-sra.c (struct access): New flags grp_scalar_read and
16509 grp_scalar_write. Changed description of assignment read and write
16511 (dump_access): Dump new flags, reorder all of them.
16512 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
16513 to detect multiple scalar reads.
16514 (analyze_access_subtree): Use the new scalar read write flags instead
16515 of the old flags. Adjusted comments.
16517 2011-02-08 DJ Delorie <dj@redhat.com>
16520 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
16523 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16525 * config/m68k/uclinux.opt: New.
16526 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
16528 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16530 * config/cris/elf.opt (sim): New Driver option.
16532 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16534 * config/xtensa/elf.opt: New.
16535 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
16537 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16539 * config/vax/elf.opt: New.
16540 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
16542 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16544 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
16546 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16548 * config/gnu-user.opt: New.
16549 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
16550 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
16551 *-*-uclinux*): Use gnu-user.opt.
16553 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
16555 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
16556 * config/i386/gnu.h (CPP_SPEC): Likewise.
16558 2011-02-08 Ian Lance Taylor <iant@google.com>
16560 * common.opt (fcx-limited-range): Add SetByCombined flag.
16561 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
16562 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
16563 (fassociative-math, freciprocal-math): Likewise.
16564 (funsafe-math-optimizations): Likewise.
16565 * opth-gen.awk: Handle SetByCombined.
16566 * optc-gen.awk: Likewise.
16567 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
16568 (set_unsafe_math_optimizations_flags): Likewise.
16569 * doc/options.texi (Option properties): Document SetByCombined.
16571 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16573 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
16574 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
16575 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
16576 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
16577 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
16579 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
16581 PR tree-optimization/46834
16582 PR tree-optimization/46994
16583 PR tree-optimization/46995
16584 * graphite-sese-to-poly.c (used_outside_reduction): New.
16585 (detect_commutative_reduction): Call used_outside_reduction.
16586 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
16587 translate_scalar_reduction_to_array only when at least one
16588 loop-phi/close-phi tuple has been detected.
16590 2011-02-08 Richard Guenther <rguenther@suse.de>
16592 PR middle-end/47639
16593 * tree-vect-generic.c (expand_vector_operations_1): Update
16595 (expand_vector_operations): ... not here. Cleanup EH info
16596 and the CFG if required.
16598 2011-02-08 Richard Guenther <rguenther@suse.de>
16600 PR tree-optimization/47641
16601 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
16602 require type compatibility.
16604 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16606 * gimple-low.c (lower_function_body): Don't remove the location of
16607 the return statement here.
16608 (lower_gimple_return): Do it here instead but only if the return
16609 statement is actually used twice.
16611 2011-02-08 Richard Guenther <rguenther@suse.de>
16613 PR tree-optimization/47632
16614 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
16615 unused up_to_stmt parameter, return whether cfg-cleanup is
16616 necessary, remove EH info properly.
16617 (forward_propagate_into_gimple_cond): Adjust caller.
16618 (forward_propagate_into_cond): Likewise.
16619 (forward_propagate_comparison): Likewise.
16620 (tree_ssa_forward_propagate_single_use_vars): Make
16621 forward_propagate_comparison case similar to the two others.
16623 2011-02-08 Nick Clifton <nickc@redhat.com>
16625 * config/mn10300/mn10300.opt (mliw): New command line option.
16626 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
16627 (liw_bundling): New automaton.
16628 (liw): New attribute.
16629 (liw_op): New attribute.
16630 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
16631 (movsi_internal): Add LIW attributes.
16632 (andsi3): Likewise.
16633 (iorsi3): Likewise.
16634 (xorsi3): Likewise.
16635 (addsi3): Separate register and immediate alternatives.
16636 Add LIW attributes.
16637 (subsi3): Likewise.
16639 (aslsi3): Likewise.
16640 (lshrsi3): Likewise.
16641 (ashrsi3): Likewise.
16642 (liw): New pattern.
16643 * config/mn10300/mn10300.c (liw_op_names): New
16644 (mn10300_print_operand): Handle 'W' operand descriptor.
16645 (extract_bundle): New function.
16646 (check_liw_constraints): New function.
16647 (liw_candidate): New function.
16648 (mn10300_bundle_liw): New function.
16649 (mn10300_reorg): New function.
16650 (TARGET_MACHINE_DEPENDENT_REORG): Define.
16651 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
16652 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
16653 __LIW__ or __NO_LIW__.
16654 * doc/invoke.texi: Describe the -mliw command line option.
16656 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16658 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
16659 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16660 pthread_mutex_unlock): Remove.
16661 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
16662 * config/pa/t-pa64: Likewise.
16663 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
16664 shared libc if not linking against libpthread.
16665 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
16667 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
16670 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
16671 on 10.6 and later to ensure that we always use the unwinder from
16672 the system. Only add -no_compact_unwind when tarteting darwin
16675 2011-02-07 Steve Ellcey <sje@cup.hp.com>
16678 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
16679 (vec_interleave_lowv2sf): Ditto.
16680 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
16681 (vec_extract_oddv2sf): Ditto.
16683 2011-02-07 Mike Stump <mikestump@comcast.net>
16686 Add __ieee_divdc3 entry point.
16687 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
16689 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
16690 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
16691 * config/darwin.c (darwin_rename_builtins): Add.
16692 * config/darwin-protos.h (darwin_rename_builtins): Add.
16694 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
16697 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
16700 2011-02-07 Mike Stump <mikestump@comcast.net>
16702 * config/darwin.opt (mmacosx-version-min): Update default OS version.
16704 2011-02-07 Denis Chertykov <chertykov@gmail.com>
16707 * config/avr/libgcc.S (exit): Move .endfunc
16709 2011-02-07 Richard Guenther <rguenther@suse.de>
16711 PR tree-optimization/47615
16712 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
16713 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
16714 (run_scc_vn): Initialize it.
16715 (visit_reference_op_load): Use it.
16716 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
16718 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16720 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
16721 DImode trapping arithmetic libfuncs.
16723 2011-02-07 Richard Guenther <rguenther@suse.de>
16725 PR tree-optimization/47621
16726 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
16728 (execute_update_addresses_taken): ... here. Make it more
16729 conservative in what we accept.
16731 2011-02-06 Joseph Myers <joseph@codesourcery.com>
16733 * config/sparc/freebsd.h (ASM_SPEC): Define.
16734 * config/sparc/vxworks.h (ASM_SPEC): Define.
16736 2011-02-06 Joseph Myers <joseph@codesourcery.com>
16738 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16740 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
16742 * doc/invoke.texi: Remove reference to compiler internals from
16743 user documentation.
16745 * reg-notes.def: Remove REG_VALUE_PROFILE.
16746 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
16748 2011-02-05 Jakub Jelinek <jakub@redhat.com>
16750 PR middle-end/47610
16751 * varasm.c (default_section_type_flags): If decl is NULL,
16752 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
16754 2011-02-05 Jie Zhang <jie@codesourcery.com>
16757 * web.c (entry_register): Don't clobber the number of the
16758 first uninitialized reference in used[].
16760 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
16762 PR tree-optimization/46194
16763 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
16764 (build_classic_dist_vector_1): Do not represent classic distance
16765 vectors when the access functions are variating in different loops.
16767 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16769 * config/mips/iris6.opt: New.
16770 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
16772 2011-02-04 Richard Henderson <rth@redhat.com>
16773 Steve Ellcey <sje@cup.hp.com>
16776 * config/ia64/predicates.md (mux1_brcst_element): New.
16777 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
16778 * config/ia64/ia64.c (ia64_unpack_assemble): New.
16779 (ia64_unpack_sign): New.
16780 (ia64_expand_unpack): Rewrite using new routines.
16781 (ia64_expand_widen_sum): Ditto.
16782 (ia64_expand_dot_prod_v8qi): Ditto.
16783 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
16784 routines, add endian check.
16785 (pmpy2_even): Rename from pmpy2_r, add endian check.
16786 (pmpy2_odd): Rename from pmpy2_l, add endian check.
16787 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
16788 (vec_widen_smult_hi_v4hi): Ditto.
16789 (vec_widen_umult_lo_v4hi): Ditto.
16790 (vec_widen_umult_hi_v4hi): Ditto.
16791 (mulv2si3): Change endian checks.
16792 (sdot_prodv4hi): Rewrite with new calls.
16793 (udot_prodv4hi): New.
16794 (vec_pack_ssat_v4hi): Add endian check.
16795 (vec_pack_usat_v4hi): Ditto.
16796 (vec_pack_ssat_v2si): Ditto.
16797 (max1_even): Rename from max1_r, add endian check.
16798 (max1_odd): Rename from max1_l, add endian check.
16799 (*mux1_rev): Format change.
16800 (*mux1_mix): Ditto.
16801 (*mux1_shuf): Ditto.
16802 (*mux1_alt): Ditto.
16803 (*mux1_brcst_v8qi): Use new predicate.
16804 (vec_extract_evenv8qi): Remove endian check.
16805 (vec_extract_oddv8qi): Ditto.
16806 (vec_interleave_lowv4hi): Format change.
16807 (vec_interleave_highv4hi): Ditto.
16808 (mix2_even): Rename from mix2_r, add endian check.
16809 (mix2_odd): Rename from mux2_l, add endian check.
16810 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
16811 (vec_extract_evenodd_helper): Format change.
16812 (vec_extract_evenv4hi): Remove endian check.
16813 (vec_extract_oddv4hi): Remove endian check.
16814 (vec_interleave_lowv2si): Format change.
16815 (vec_interleave_highv2si): Format change.
16816 (vec_initv2si): Remove endian check.
16817 (vecinit_v2si): Add endian check.
16818 (reduc_splus_v2sf): Add endian check.
16819 (reduc_smax_v2sf): Ditto.
16820 (reduc_smin_v2sf): Ditto.
16821 (vec_initv2sf): Remove endian check.
16822 (fpack): Add endian check.
16823 (fswap): Add endian check.
16824 (vec_interleave_highv2sf): Add endian check.
16825 (vec_interleave_lowv2sf): Add endian check.
16826 (fmix_lr): Add endian check.
16827 (vec_setv2sf): Format change.
16828 (*vec_extractv2sf_0_be): Use shift to extract operand.
16829 (*vec_extractv2sf_1_be): New.
16830 (vec_pack_trunc_v4hi): Add endian check.
16831 (vec_pack_trunc_v2si): Format change.
16833 2011-02-04 Jakub Jelinek <jakub@redhat.com>
16835 PR inline-asm/23200
16836 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
16837 do bb, locus and block comparison and disallow loads if it is not set.
16838 (stmt_is_replaceable_p): New function.
16839 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
16841 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
16842 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
16844 * tree-flow.h (stmt_is_replaceable_p): New prototype.
16846 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16848 * config/rs6000/xilinx.opt: New.
16849 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
16851 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16853 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
16855 2011-02-03 Anatoly Sokolov <aesok@post.ru>
16857 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
16858 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16859 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
16860 secondary_reload_info, xtensa_secondary_reload): Remove.
16861 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
16862 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16863 (xtensa_preferred_reload_class): Make static. Change return and
16864 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
16865 Use CONST_DOUBLE_P predicate.
16866 (xtensa_preferred_output_reload_class): New function.
16867 (xtensa_secondary_reload): Make static.
16869 2011-02-03 Joseph Myers <joseph@codesourcery.com>
16871 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
16872 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
16873 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
16875 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16877 PR middle-end/31490
16878 * output.h (SECTION_RELRO): Define.
16879 (SECTION_MACH_DEP): Adjust.
16880 (get_variable_section): New prototype.
16881 * varpool.c (varpool_finalize_named_section_flags): New function.
16882 (varpool_assemble_pending_decls): Call it.
16883 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
16884 * cgraphunit.c (cgraph_output_in_order): Call
16885 varpool_finalize_named_section_flags.
16886 * varasm.c (get_section): Allow section flags conflicts between
16887 relro and read-only sections if the section hasn't been declared yet.
16888 Set SECTION_OVERRIDE after diagnosing section type conflict.
16889 (get_variable_section): No longer static.
16890 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
16891 readonly sections that need relocations.
16892 (decl_readonly_section_1): New function.
16893 (decl_readonly_section): Use it.
16896 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
16897 Steve Ellcey <sje@cup.hp.com>
16899 PR middle-end/31490
16900 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
16901 if section attribute used.
16903 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16905 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
16906 * config/darwin.c (SECTION_NO_ANCHOR): Define.
16907 (darwin_init_sections): Remove assertion.
16909 2011-02-03 Nick Clifton <nickc@redhat.com>
16911 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
16913 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
16914 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
16915 instead of "n" and "pz".
16916 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
16919 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16922 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
16923 fma, expand FMA_EXPR as fma{,f,l} call.
16926 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
16927 copy them into a unsigned char variable and pass address of it to
16928 lto_output_data_stream.
16931 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
16932 around backend_init_target and lang_dependent_init_target calls.
16933 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
16934 (verify_cgraph_node): Don't call set_cfun here. Use
16935 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
16936 Set error_found for incorrectly represented calls to thunks.
16938 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
16941 PR rtl-optimization/43494
16942 * rtl.h (for_each_inc_dec_fn): New type.
16943 (for_each_inc_dec): Declare.
16944 * rtlanal.c (struct for_each_inc_dec_ops): New type.
16945 (for_each_inc_dec_find_inc_dec): New fn.
16946 (for_each_inc_dec_find_mem): New fn.
16947 (for_each_inc_dec): New fn.
16948 * dse.c (struct insn_size): Remove.
16949 (replace_inc_dec, replace_inc_dec_mem): Remove.
16950 (emit_inc_dec_insn_before): New fn.
16951 (check_for_inc_dec): Use it, along with for_each_inc_dec.
16952 (canon_address): Pass mem modes to cselib_lookup.
16953 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
16954 (cselib_lookup_from_insn): Likewise.
16955 (cselib_subst_to_values): Likewise.
16956 * cselib.c (find_slot_memmode): New var.
16957 (cselib_find_slot): New fn. Use it instead of
16958 htab_find_slot_with_hash everywhere.
16959 (entry_and_rtx_equal_p): Use find_slot_memmode.
16960 (autoinc_split): New fn.
16961 (rtx_equal_for_cselib_p): Rename and implement in terms of...
16962 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
16963 Deal with autoinc. Special-case recursion into MEMs.
16964 (cselib_hash_rtx): Likewise.
16965 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
16966 address and MEM modes.
16967 (cselib_subst_to_values): Add memmode, pass it on.
16969 (cselib_lookup): Add memmode argument, pass it on.
16970 (cselib_lookup_from_insn): Add memmode.
16971 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
16972 (struct cselib_record_autoinc_data): New.
16973 (cselib_record_autoinc_cb): New fn.
16974 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
16975 mode to cselib_lookup. Reset autoinced REGs here instead of...
16976 (cselib_process_insn): ... here.
16977 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
16979 (add_uses): Likewise, also to cselib_subst_to_values.
16980 (add_stores): Likewise.
16981 * sched-deps.c (add_insn_mem_dependence): Pass mode to
16982 cselib_subst_to_values.
16983 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
16984 * gcse.c (do_local_cprop): Adjusted.
16985 * postreload.c (reload_cse_simplify_set): Adjusted.
16986 (reload_cse_simplify_operands): Adjusted.
16987 * sel-sched-dump (debug_mem_addr_value): Pass mode.
16989 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
16991 PR tree-optimization/45122
16992 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
16993 unsafe assumptions when there's more than one loop exit.
16995 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16998 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16999 Document using vector double with the load/store builtins, and
17000 that the load/store builtins always use Altivec instructions.
17002 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
17003 to use altivec memory instructions, even on VSX.
17004 (vector_altivec_store_<mode>): Ditto.
17006 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
17009 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17010 V2DF, V2DI support to load/store overloaded builtins.
17012 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
17013 altivec load/store builtins for V2DF/V2DI types.
17015 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
17016 set avoid indexed addresses on power6 if -maltivec.
17017 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
17018 vector_altivec_load/vector_altivec_store builtins.
17019 (altivec_expand_st_builtin): Ditto.
17020 (altivec_expand_builtin): Add VSX memory builtins.
17021 (rs6000_init_builtins): Add V2DI types to internal types.
17022 (altivec_init_builtins): Add support for V2DF/V2DI altivec
17023 load/store builtins.
17024 (rs6000_address_for_altivec): Insure memory address is appropriate
17027 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
17028 vec_vsx_ld and vec_vsx_st.
17029 (vsx_store_<mode>): Ditto.
17031 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
17032 variables to hold long long types for VSX vector memory builtins.
17033 (RS6000_BTI_unsigned_long_long): Ditto.
17034 (long_long_integer_type_internal_node): Ditti.
17035 (long_long_unsigned_type_internal_node): Ditti.
17037 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
17038 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
17039 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
17041 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
17043 (vec_vsx_st): Ditto.
17045 2011-02-02 Joseph Myers <joseph@codesourcery.com>
17047 * config/pa/pa-hpux10.opt: New.
17048 * config/hpux11.opt (pthread): New Driver option.
17049 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
17050 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
17052 2011-02-02 Joseph Myers <joseph@codesourcery.com>
17054 * config/ia64/vms.opt: New.
17055 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
17057 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
17060 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
17061 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
17062 generator functions.
17063 (vsx_floatuns<VSi><mode>2): Ditto.
17064 (vsx_fix_trunc<mode><VSi>2): Ditto.
17065 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
17067 2011-02-02 Joseph Myers <joseph@codesourcery.com>
17069 * config/i386/djgpp.opt (posix): New Driver option.
17071 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
17073 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
17074 Move to the unsupported targets list.
17076 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
17078 PR rtl-optimization/47525
17079 * df-scan.c: Update copyright years.
17080 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
17081 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
17083 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17085 * config/i386/sysv4.h (TARGET_VERSION): Remove.
17086 (SUBTARGET_RETURN_IN_MEMORY): Remove.
17087 (ASM_OUTPUT_ASCII): Remove.
17088 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
17090 2011-02-02 Jeff Law <law@redhat.com>
17092 PR middle-end/47543
17093 * reload.c (find_reloads_address): Handle reg+d address where both
17094 components are invalid by reloading the entire address.
17096 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
17097 Richard Guenther <rguenther@suse.de>
17099 PR tree-optimization/40979
17101 * passes.c (init_optimization_passes): After LIM call copy_prop
17102 and DCE to clean up.
17103 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
17105 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
17107 PR tree-optimization/47576
17108 PR tree-optimization/47555
17109 * doc/invoke.texi (scev-max-expr-complexity): Documented.
17110 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17111 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
17112 * tree-scalar-evolution.c (follow_ssa_edge): Use
17113 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
17115 2011-02-02 Richard Guenther <rguenther@suse.de>
17117 PR tree-optimization/47566
17118 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
17120 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
17124 * tree-inline.c (declare_return_variable): Remove unused caller
17129 * tree-flow-inline.h (clear_is_used, is_used_p): New.
17130 * cfgexpand.c (account_used_vars_for_block): Use them.
17131 * tree-nrv.c (tree_nrv): Likewise.
17132 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
17133 (dump_scope_block): Likewise.
17134 (remove_unused_locals): Likewise.
17138 * tree-inline.c (declare_return_variable): Add result decl to
17139 local decls only once.
17140 * gimple-low.c (record_vars_into): Mark newly-created variables
17143 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
17149 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17151 (no_real_insns_p, schedule_block, set_priorities): Drop special
17152 treatment of boundary debug insns.
17153 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17154 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
17155 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17156 (BOUNDARY_DEBUG_INSN_P): Likewise.
17157 (SCHEDULE_DEBUG_INSN_P): Likewise.
17158 * sched-rgn.c (init_ready_list): Drop special treatment of
17159 boundary debug insns.
17160 * final.c (rest_of_clean_state): Clear notes' BB.
17162 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17164 * config/openbsd.opt (assert=): New Driver option.
17166 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17168 * config/i386/nto.opt: New.
17169 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
17171 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17173 * config/i386/netware.opt: New.
17174 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
17176 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17178 * config/interix.opt (posix): New Driver option.
17180 2011-02-01 DJ Delorie <dj@redhat.com>
17182 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
17184 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
17187 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
17189 PR tree-optimization/47561
17190 * toplev.c (process_options): Print the Graphite flags. Add
17191 flag_loop_flatten to the list of options requiring Graphite.
17193 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17195 * config/i386/cygming.opt (posix): New Driver option.
17197 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17199 * config/arm/vxworks.opt: New.
17200 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
17202 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17204 * config/alpha/elf.opt: New.
17205 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
17206 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
17208 2011-02-01 Richard Guenther <rguenther@suse.de>
17210 PR tree-optimization/47559
17211 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
17212 store-motion on references that can throw.
17214 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
17216 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
17217 * tree-pass.h (TDF_CSELIB): New macro.
17218 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
17219 cselib_lookup): Check for it rather than for TDF_DETAILS.
17221 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
17224 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
17225 is HOST_BIT_BUCKET.
17227 * opts.c (finish_options): Don't add x_aux_base_name if it is
17230 2011-02-01 Richard Guenther <rguenther@suse.de>
17232 PR tree-optimization/47555
17234 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
17236 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17238 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
17241 * config/lm32/t-lm32: Add multilib for all CPU options.
17243 2011-02-01 Richard Guenther <rguenther@suse.de>
17245 PR tree-optimization/47541
17246 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
17247 sure to have a field at offset zero.
17249 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17251 * config/arc/arc.opt (EB, EL): New Driver options.
17253 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17255 * config/alpha/osf5.opt: New.
17256 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
17258 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17260 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
17262 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
17264 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
17265 -floop-interchange.
17266 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
17267 is an alias of -floop-interchange and that it requires the
17268 Graphite infrastructure.
17269 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
17270 flag_loop_interchange based on the value of flag_tree_loop_linear.
17272 2011-01-31 Jakub Jelinek <jakub@redhat.com>
17273 Richard Guenther <rguenther@suse.de>
17275 PR tree-optimization/47538
17276 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
17277 type instead of r1type, except for comparisons. For right
17278 shifts and comparisons punt if there are mismatches in
17279 sizetype vs. non-sizetype types.
17281 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17283 * doc/sourcebuild.texi (Effective-Target Keywords): Document
17286 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17288 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
17290 * configure: Regenerate.
17292 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17294 * configure.ac (gcc_cv_ld_static_option): Define.
17295 (gcc_cv_ld_dynamic_option): Define.
17296 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
17298 (HAVE_LD_STATIC_DYNAMIC): Update message.
17299 (LD_STATIC_OPTION): Define.
17300 (LD_DYNAMIC_OPTION): Define.
17301 * configure: Regenerate.
17302 * config.in: Regenerate.
17303 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
17304 HAVE_LD_STATIC_DYNAMIC]: Use them.
17306 2011-01-31 Nick Clifton <nickc@redhat.com>
17308 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
17309 registers inside interrupt handlers if the handler is not a leaf
17312 2011-01-31 Nick Clifton <nickc@redhat.com>
17314 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
17315 reg_renumber returning an INVALID_REGNUM.
17317 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
17320 * doc/install.texi: Document host options discarded when cross
17321 configuring target libraries.
17323 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
17326 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
17329 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17331 (no_real_insns_p, schedule_block, set_priorities): Drop special
17332 treatment of boundary debug insns.
17333 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17334 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17335 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17336 (BOUNDARY_DEBUG_INSN_P): Likewise.
17337 (SCHEDULE_DEBUG_INSN_P): Likewise.
17338 * sched-rgn.c (init_ready_list): Drop special treatment of
17339 boundary debug insns.
17340 * final.c (rest_of_clean-state): Clear notes' BB.
17342 2011-01-31 Alan Modra <amodra@gmail.com>
17344 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
17345 toc relative expressions as we do in print_operand_address.
17347 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
17349 * doc/extend.texi: Follow spelling conventions.
17350 * doc/invoke.texi: Fix a typo.
17352 2011-01-30 Joseph Myers <joseph@codesourcery.com>
17354 * config/hpux11.opt: New.
17355 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
17356 ia64*-*-hpux*): Use hpux11.opt.
17358 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
17360 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
17363 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17365 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
17368 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17370 * doc/install.texi (Binaries): Remove outdated reference for
17371 Motorola 68HC11/68HC12 downloads.
17373 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17375 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
17378 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
17381 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
17384 2011-01-28 Ahmad Sharif <asharif@google.com>
17386 * value-prof.c (check_counter): Corrected error message.
17388 2011-01-29 Jie Zhang <jie@codesourcery.com>
17390 * config/arm/arm.c (arm_legitimize_reload_address): New.
17391 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17392 arm_legitimize_reload_address.
17393 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
17395 2011-01-28 Ian Lance Taylor <iant@google.com>
17397 * godump.c (go_define): Ignore macros whose definitions include
17398 two adjacent operands.
17400 2011-01-28 Jakub Jelinek <jakub@redhat.com>
17403 * varasm.c (force_const_mem): Store copy of x in desc->constant
17404 instead of x itself.
17405 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
17406 itself into REG_EQUAL note.
17408 2011-01-28 Joseph Myers <joseph@codesourcery.com>
17410 * config/freebsd.opt (posix, rdynamic): New Driver options.
17412 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17414 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
17415 -Bstatic/-Bdynamic.
17416 * configure: Regenerate.
17418 2011-01-27 Joseph Myers <joseph@codesourcery.com>
17420 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
17421 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
17423 2011-01-27 Anatoly Sokolov <aesok@post.ru>
17425 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
17426 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
17427 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17428 (s390_preferred_reload_class): Make static. Change return and
17429 'rclass' argument type to reg_class_t.
17431 2011-01-27 Jan Hubicka <jh@suse.cz>
17433 PR middle-end/46949
17434 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
17435 (process_function_and_variable_attributes): Check defined weakrefs.
17437 2011-01-27 Martin Jambor <mjambor@suse.cz>
17439 PR tree-optimization/47228
17440 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
17441 build_ref_for_offset.
17443 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17445 * config/spu/spu-elf.h (ASM_SPEC): Remove.
17447 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
17449 PR rtl-optimization/46856
17450 * postreload.c (reload_combine_recognize_const_pattern): Do not
17451 separate cc0 setter and user on cc0 targets.
17453 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
17456 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
17457 passed a VOID_TYPE expression, immediately emit an error and
17458 return error_mark_node.
17460 2011-01-26 Jeff Law <law@redhat.com>
17462 PR rtl-optimization/47464
17463 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
17464 rather than may_trap_p as needed.
17466 2011-01-26 DJ Delorie <dj@redhat.com>
17468 PR rtl-optimization/46878
17469 * combine.c (insn_a_feeds_b): Check for the implicit cc0
17470 setter/user dependency as well.
17472 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
17474 PR rtl-optimization/44469
17475 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
17476 after removing trivially dead basic blocks.
17478 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17480 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
17481 * config/frv/frv.h (LINK_SPEC): Likewise.
17482 * config/i386/netware.h (LINK_SPEC): Likewise.
17483 * config/m68k/linux.h (ASM_SPEC): Likewise.
17484 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
17485 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17486 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17487 * config/sparc/linux.h (ASM_SPEC): Likewise.
17488 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17489 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17491 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17493 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
17494 * config/frv/frv.h (ASM_SPEC): Likewise.
17495 * config/m68k/linux.h (ASM_SPEC): Likewise.
17496 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17497 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
17498 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17499 * config/sparc/linux.h (ASM_SPEC): Likewise.
17500 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17501 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17503 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17505 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
17506 * config/frv/frv.h (LINK_SPEC): Likewise.
17507 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17509 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17511 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
17512 * config/frv/frv.h (ASM_SPEC): Likewise.
17513 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
17514 * config/m68k/linux.h (ASM_SPEC): Likewise.
17515 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17516 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
17517 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17518 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
17519 * config/sparc/linux.h (ASM_SPEC): Likewise.
17520 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17521 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17522 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
17524 2011-01-26 Steve Ellcey <sje@cup.hp.com>
17527 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
17529 (vec_extract_evenodd_help): Ditto.
17530 (vec_extract_evenv4hi): Ditto.
17531 (vec_extract_oddv4hi): Ditto.
17532 (vec_interleave_lowv2si): Ditto.
17533 (vec_interleave_highv2si): Ditto.
17534 (vec_extract_evenv2si): Ditto.
17535 (vec_extract_oddv2si: Ditto.
17536 (vec_pack_trunc_v2si): Ditto.
17538 2011-01-22 Jan Hubicka <jh@suse.cz>
17541 * cgraph.h (cgraph_local_info): New field can_change_signature.
17542 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
17543 signature can change.
17544 (ipcp_estimate_growth): Call sequence simplify only if calle signature
17546 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
17547 (cgraph_function_versioning): We can not change signature of functions
17548 that don't allow that.
17549 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
17550 (lto_input_node): Likewise.
17551 * ipa-inline.c (compute_inline_parameters): Compute
17552 local.can_change_signature.
17553 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
17554 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
17555 functions that can not change signature.
17556 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
17557 init_cumulative_args): Do not use local calling conventions
17558 for functions that can not change signature.
17560 2011-01-22 Jan Hubicka <jh@suse.cz>
17562 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
17564 2011-01-26 Richard Guenther <rguenther@suse.de>
17566 PR tree-optimization/47190
17567 * cgraphunit.c (process_common_attributes): New function.
17568 (process_function_and_variable_attributes): Use it.
17570 2011-01-26 Richard Guenther <rguenther@suse.de>
17573 * cgraphbuild.c (record_eh_tables): Record reference to personality
17576 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
17579 * sel-sched.c (moveup_expr): Don't let debug insns prevent
17580 non-debug insns from moving up.
17582 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
17585 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
17586 t-dlldir{,-x} fragment for build and add it to tmake_file.
17587 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
17588 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
17589 * config/i386/t-dlldir: New file.
17590 (SHLIB_DLLDIR): Define.
17591 * config/i386/t-dlldir-x: New file.
17592 (SHLIB_DLLDIR): Define.
17593 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
17594 (SHLIB_INSTALL): Use it.
17596 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
17599 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
17600 lower bound of the allowed Thumb-2 coprocessor load/store
17601 index range to -256. Add explaining comment.
17603 2011-01-25 Ian Lance Taylor <iant@google.com>
17605 * godump.c (go_define): Improve lexing of macro expansion to only
17606 accept expressions which match Go spec.
17608 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
17611 * tree.c (handle_dll_attribute): Handle it.
17612 * doc/extend.texi (@item dllexport): Mention it.
17613 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
17615 2011-01-25 Ian Lance Taylor <iant@google.com>
17617 PR tree-optimization/26854
17618 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
17619 (decl_jump_unsafe): Move higher in file, with no other change.
17620 (bind): Set has_jump_unsafe_decl if appropriate.
17621 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
17622 (check_earlier_gotos): Likewise.
17623 (c_check_switch_jump_warnings): Likewise.
17625 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
17627 * doc/invoke.texi (Warning Options): Add missing hyphen.
17628 (-fprofile-dir): Minor grammatical fixes.
17629 (-fbranch-probabilities): Likewise.
17631 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
17635 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17637 (no_real_insns_p, schedule_block, set_priorities): Drop special
17638 treatment of boundary debug insns.
17639 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17640 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17641 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17642 (BOUNDARY_DEBUG_INSN_P): Likewise.
17643 (SCHEDULE_DEBUG_INSN_P): Likewise.
17644 * sched-rgn.c (init_ready_list): Drop special treatment of
17645 boundary debug insns.
17646 * final.c (rest_of_clean-state): Clear notes' BB.
17648 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17650 * Makefile.in (LAMBDA_H): Removed.
17651 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
17652 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
17653 lambda-trans.o, and tree-loop-linear.o.
17654 (lto-symtab.o): Remove dependence on LAMBDA_H.
17655 (tree-loop-linear.o): Remove rule.
17656 (lambda-mat.o): Same.
17657 (lambda-trans.o): Same.
17658 (lambda-code.o): Same.
17659 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
17660 (tree-vect-slp.o): Same.
17661 * hwint.h (gcd): Moved here.
17662 (least_common_multiple): Same.
17663 * lambda-code.c: Removed.
17664 * lambda-mat.c: Removed.
17665 * lambda-trans.c: Removed.
17666 * lambda.h: Removed.
17667 * tree-loop-linear.c: Removed.
17668 * lto-symtab.c: Do not include lambda.h.
17669 * omega.c (gcd): Removed.
17670 * passes.c (init_optimization_passes): Remove pass_linear_transform.
17671 * tree-data-ref.c (print_lambda_vector): Moved here.
17672 (lambda_vector_copy): Same.
17673 (lambda_matrix_copy): Same.
17674 (lambda_matrix_id): Same.
17675 (lambda_vector_first_nz): Same.
17676 (lambda_matrix_row_add): Same.
17677 (lambda_matrix_row_exchange): Same.
17678 (lambda_vector_mult_const): Same.
17679 (lambda_vector_negate): Same.
17680 (lambda_matrix_row_negate): Same.
17681 (lambda_vector_equal): Same.
17682 (lambda_matrix_right_hermite): Same.
17683 * tree-data-ref.h: Do not include lambda.h.
17684 (lambda_vector): Moved here.
17685 (lambda_matrix): Same.
17686 (dependence_level): Same.
17687 (lambda_transform_legal_p): Removed declaration.
17688 (lambda_collect_parameters): Same.
17689 (lambda_compute_access_matrices): Same.
17690 (lambda_vector_gcd): Same.
17691 (lambda_vector_new): Same.
17692 (lambda_vector_clear): Same.
17693 (lambda_vector_lexico_pos): Same.
17694 (lambda_vector_zerop): Same.
17695 (lambda_matrix_new): Same.
17696 * tree-flow.h (least_common_multiple): Removed declaration.
17697 * tree-parloops.c (lambda_trans_matrix): Moved here.
17698 (LTM_MATRIX): Same.
17699 (LTM_ROWSIZE): Same.
17700 (LTM_COLSIZE): Same.
17701 (LTM_DENOMINATOR): Same.
17702 (lambda_trans_matrix_new): Same.
17703 (lambda_matrix_vector_mult): Same.
17704 (lambda_transform_legal_p): Same.
17705 * tree-pass.h (pass_linear_transform): Removed declaration.
17706 * tree-ssa-loop.c (tree_linear_transform): Removed.
17707 (gate_tree_linear_transform): Removed.
17708 (pass_linear_transform): Removed.
17709 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
17710 flag_loop_interchange.
17712 2011-01-25 Jakub Jelinek <jakub@redhat.com>
17714 PR tree-optimization/47265
17715 PR tree-optimization/47443
17716 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
17717 if name still has some uses.
17719 2011-01-25 Martin Jambor <mjambor@suse.cz>
17721 PR tree-optimization/47382
17722 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
17723 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
17725 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
17727 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
17728 sjlj_except_unwind_info.
17730 2011-01-25 Richard Guenther <rguenther@suse.de>
17732 PR tree-optimization/47426
17733 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
17734 visible functions results escape.
17736 2011-01-25 Jakub Jelinek <jakub@redhat.com>
17739 * config/arm/arm.c (any_sibcall_uses_r3): New function.
17740 (arm_get_frame_offsets): Use it.
17742 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17743 Jakub Jelinek <jakub@redhat.com>
17745 PR tree-optimization/47271
17746 * tree-if-conv.c (bb_postdominates_preds): New.
17747 (if_convertible_bb_p): Call bb_postdominates_preds.
17748 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
17749 (predicate_scalar_phi): Call bb_postdominates_preds.
17751 2011-01-25 Nick Clifton <nickc@redhat.com>
17753 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
17754 * config/rx/rx.c (rx_function_value): Likewise.
17755 (rx_promote_function_mode): Likewise.
17756 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
17757 in order to make it legitimate.
17758 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
17759 make sure that the first operand is the same as the result register.
17760 (addsi3_unspec): Delete.
17761 (subdi3): Do not accept immediate operands.
17762 (subdi3_internal): Likewise.
17764 2011-01-25 Jeff Law <law@redhat.com>
17766 PR rtl-optimization/37273
17767 * ira-costs.c (scan_one_insn): Detect constants living in memory and
17768 handle them like argument loads from stack slots. Do not double
17769 count memory for memory constants and argument loads from stack slots.
17771 2011-01-25 Jakub Jelinek <jakub@redhat.com>
17773 PR tree-optimization/47427
17774 PR tree-optimization/47428
17775 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
17776 coalesce if the new root var would be TREE_READONLY.
17778 2011-01-25 Richard Guenther <rguenther@suse.de>
17780 PR middle-end/47414
17781 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
17782 correct type for TBAA.
17784 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17786 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
17787 (close_phi_written_to_memory): Call for_each_index with
17788 dr_indices_valid_in_loop.
17790 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17792 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
17793 when it is initialized.
17795 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17797 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
17798 call to graphite_find_data_references_in_stmt.
17799 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
17800 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
17801 call to graphite_find_data_references_in_stmt.
17802 (analyze_drs_in_stmts): Same.
17803 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
17804 in which the scalar analysis of indices is performed.
17805 (create_data_ref): Same. Update call to dr_analyze_indices.
17806 (find_data_references_in_stmt): Update call to create_data_ref.
17807 (graphite_find_data_references_in_stmt): Same.
17808 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
17810 (create_data_ref): Same.
17811 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
17812 call to create_data_ref.
17814 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17816 * graphite-sese-to-poly.c (build_poly_scop): Move
17817 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
17819 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17821 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
17822 VAR_DECL, PARM_DECL, and RESULT_DECL.
17824 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17826 * graphite-dependences.c (reduction_dr_1): Allow several reductions
17827 in a reduction PBB.
17828 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
17829 that have already been marked as PBB_IS_REDUCTION.
17831 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17833 * graphite-scop-detection.c (same_close_phi_node): New.
17834 (remove_duplicate_close_phi): New.
17835 (make_close_phi_nodes_unique): New.
17836 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
17838 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17840 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
17841 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
17842 of both data references to be the same.
17844 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17846 * graphite-dependences.c (build_lexicographical_constraint): Remove
17847 the gdim parameter.
17848 (build_lexicographical_constraint): Adjust call to
17849 ppl_powerset_is_empty.
17850 (dependence_polyhedron): Same.
17851 (graphite_legal_transform_dr): Same.
17852 (graphite_carried_dependence_level_k): Same.
17853 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
17855 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
17857 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17859 * graphite-sese-to-poly.c
17860 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
17861 (close_phi_written_to_memory): New.
17862 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
17865 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17867 * doc/install.texi: Update the expected version number of PPL to 0.11.
17868 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
17869 #if PPL_VERSION_MINOR < 11.
17871 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17873 * graphite-dependences.c: Include graphite-cloog-util.h.
17874 (new_poly_ddr): Inlined into dependence_polyhedron.
17875 (free_poly_ddr): Moved close by new_poly_ddr.
17876 (dependence_polyhedron_1): Renamed dependence_polyhedron.
17877 Early return NULL when ppl_powerset_is_empty returns true.
17878 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
17879 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
17880 (graphite_legal_transform_dr): Call new_poly_ddr.
17881 (graphite_carried_dependence_level_k): Same.
17882 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
17883 (dot_transformed_deps_stmt_1): Removed.
17884 (dot_deps_stmt_1): Call dot_deps_stmt_2.
17885 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
17886 (dot_deps_1): Call dot_deps_2.
17887 * Makefile.in (graphite-dependences.o): Add missing dependence on
17888 graphite-cloog-util.h.
17890 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17892 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
17893 (build_lexicographical_constraint): Same.
17894 (dependence_polyhedron_1): Same.
17895 (graphite_legal_transform_dr): Same.
17896 (graphite_carried_dependence_level_k): Same.
17897 * graphite-ppl.c (ppl_powerset_is_empty): New.
17898 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
17899 * tree-data-ref.c (dump_data_reference): Print the basic block index.
17901 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17903 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
17904 the "a followed by b" relation and document it.
17906 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17908 * graphite-dependences.c (build_lexicographical_constraint): Stop the
17909 iteration when the bag of constraints is empty.
17911 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17913 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
17915 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17917 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
17918 nest and two loop depths as parameters.
17919 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
17920 lst_perfect_nestify.
17922 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17924 * graphite-dependences.c (print_pddr): Call
17925 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
17927 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17929 * graphite-ppl.c (debug_gmp_value): New.
17930 * graphite-ppl.h (debug_gmp_value): Declared.
17932 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
17934 * doc/install.texi: Document availability of cloog-0.16.
17936 2011-01-25 Vladimir Kargov <kargov@gmail.com>
17938 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
17939 invalid postdominance info.
17941 2011-01-24 Jan Hubicka <jh@suse.cz>
17944 * doc/extend.texi (weak pragma): Drop claim that it must
17945 appear before definition.
17946 * varasm.c (merge_weak, declare_weak): Only sanity check
17947 that DECL is not output at a time it is declared weak.
17949 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
17951 * machmode.def: Fixed comments.
17953 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
17955 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
17957 2011-01-24 Paul Koning <ni1d@arrl.net>
17959 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
17962 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
17965 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
17966 (block_info): Add scanned and prev.
17967 (move_or_delete_vzeroupper_2): Return if the basic block
17968 has been scanned and the upper 128bit state is unchanged
17969 from the last scan.
17970 (move_or_delete_vzeroupper_1): Return true if the exit
17972 (move_or_delete_vzeroupper): Visit basic blocks using the
17973 work-list based algorithm based on vt_find_locations in
17976 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
17978 2011-01-24 Nick Clifton <nickc@redhat.com>
17980 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
17981 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
17982 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
17983 then define __v850e1__.
17984 * doc/invoke.texi: Document -mv850es.
17986 2011-01-24 Richard Henderson <rth@redhat.com>
17988 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
17989 compound unordered comparisons.
17990 * config/rx/rx.c (rx_split_fp_compare): Remove.
17991 * config/rx/rx-protos.h: Update.
17992 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
17993 (cbranchsf4): Don't call rx_split_fp_compare.
17994 (*cbranchsf4): Use rx_split_cbranch.
17995 (*cmpsf): Don't accept "i" constraint.
17996 (*conditional_branch): Only valid after reload.
17997 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
17999 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18002 * config/rs6000/altivec.md (vector constant splitters): Add
18003 support for creating vector single precision constants if -mvsx is
18004 used and we would create the constant using Altivec primitives.
18006 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
18007 Richard Sandiford <rdsandiford@googlemail.com>
18009 PR rtl-optimization/47166
18010 * reload1.c (emit_reload_insns): Disable the spill_reg_store
18011 mechanism for PRE_MODIFY and POST_MODIFY.
18012 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
18015 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
18017 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
18019 2011-01-22 Jan Hubicka <jh@suse.cz>
18022 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
18024 2011-01-22 Jan Hubicka <jh@suse.cz>
18026 PR tree-optimization/43884
18028 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
18029 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
18031 2011-01-22 Anatoly Sokolov <aesok@post.ru>
18033 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
18034 * config/s390/s390.c (s390_register_move_cost,
18035 s390_memory_move_cost): New.
18036 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
18038 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18040 PR middle-end/47401
18041 * except.c (sjlj_assign_call_site_values): Move setting the
18042 crtl->uses_eh_lsda flag to ...
18043 (sjlj_mark_call_sites): ... here.
18044 (sjlj_emit_function_enter): Support NULL dispatch label.
18045 (sjlj_build_landing_pads): In a function with no landing pads
18046 that still has must-not-throw regions, generate code to register
18047 a personality function with empty LSDA.
18049 2011-01-21 Richard Henderson <rth@redhat.com>
18051 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
18053 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
18055 * compare-elim.c: New file.
18056 * Makefile.in (OBJS-common): Add it.
18057 (compare-elim.o): New.
18058 * common.opt (fcompare-elim): New.
18059 * opts.c (default_options_table): Add OPT_fcompare_elim.
18060 * tree-pass.h (pass_compare_elim_after_reload): New.
18061 * passes.c (init_optimization_passes): Add it.
18062 * recog.h: Protect against re-inclusion.
18063 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
18064 * doc/invoke.texi (-fcompare-elim): Document it.
18065 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
18066 * doc/tm.texi: Rebuild.
18068 2011-01-22 Nick Clifton <nickc@redhat.com>
18070 * config/rx/rx.md (cstoresf4): Pass comparison operator to
18071 rx_split_fp_compare.
18073 2011-01-22 Nick Clifton <nickc@redhat.com>
18075 * config/rx/rx.md (UNSPEC_CONST): New.
18076 (deallocate_and_return): Wrap the amount popped off the stack in
18077 an UNSPEC_CONST in order to stop it being rejected by
18078 -mmax-constant-size.
18079 (pop_and_return): Add a "(return)" rtx.
18080 (call): Drop the immediate operand.
18081 (call_internal): Likewise.
18082 (call_value): Likewise.
18083 (call_value_internal): Likewise.
18084 (sibcall_internal): Likewise.
18085 (sibcall_value_internal): Likewise.
18086 (sibcall): Likewise. Generate an explicit call using
18088 (sibcall_value): Likewise.
18089 (mov<>): FAIL if a constant operand is not legitimate.
18090 (addsi3_unpsec): New pattern.
18092 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
18093 (ok_for_max_constant): New function.
18094 (gen_safe_add): New function.
18095 (rx_expand_prologue): Use gen_safe_add.
18096 (rx_expand_epilogue): Likewise.
18097 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
18100 2011-01-21 Jeff Law <law@redhat.com>
18102 PR tree-optimization/47053
18103 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
18104 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
18105 statements are deleted.
18106 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
18107 is nonempty, then purge dead edges and cleanup the CFG.
18109 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18112 Temporarily revert:
18113 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18115 * tree-dfa.c (create_var_ann): Mark variable as used.
18117 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18119 PR middle-end/45566
18120 * except.c (convert_to_eh_region_ranges): Emit queued no-region
18121 notes from other section in hot/cold partitioning even if
18122 last_action is -3. Increment call_site_base.
18124 PR rtl-optimization/47366
18125 * fwprop.c (forward_propagate_into): Return bool. If
18126 any changes are made, -fnon-call-exceptions is used and
18127 REG_EH_REGION note is present, call purge_dead_edges
18128 and return true if it purged anything.
18129 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
18130 any EH edges were purged.
18132 2011-01-21 Jeff Law <law@redhat.com>
18134 PR rtl-optimization/41619
18135 * caller-save.c (setup_save_areas): Break out code to determine
18136 which hard regs are live across calls by examining the reload chains
18137 so that it is always used.
18138 Eliminate code which checked REG_N_CALLS_CROSSED.
18140 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18142 PR tree-optimization/47355
18143 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
18144 NOP has non-debug uses beyond PHIs in new_bb.
18146 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18149 * cfgexpand.c (account_used_vars_for_block): Only account vars
18150 that are annotated as used.
18151 (estimated_stack_frame_size): Don't set TREE_USED.
18152 * tree-dfa.c (create_var_ann): Mark variable as used.
18154 2011-01-21 Richard Guenther <rguenther@suse.de>
18156 PR middle-end/47395
18157 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
18159 2011-01-21 Richard Guenther <rguenther@suse.de>
18161 PR tree-optimization/47365
18162 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
18163 (vn_reference_lookup_pieces): Adjust.
18164 (vn_reference_lookup): Likewise.
18165 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
18166 (vn_reference_lookup_3): Only look through kills if in
18167 VN_WALKREWRITE mode.
18168 (vn_reference_lookup_pieces): Adjust.
18169 (vn_reference_lookup): Likewise.
18170 (visit_reference_op_load): Likewise.
18171 (visit_reference_op_store): Likewise.
18172 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
18173 (compute_avail): Likewise.
18174 (eliminate): Likewise.
18176 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18178 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
18179 DECL_IGNORED_P non-reg vars if they are used.
18181 PR tree-optimization/47391
18182 * varpool.c (const_value_known_p): Return false if
18185 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
18188 * config/i386/i386.c (ix86_local_alignment): Handle
18189 case for va_list_type_node is nil.
18190 (ix86_canonical_va_list_type): Likewise.
18192 2011-01-21 Alan Modra <amodra@gmail.com>
18194 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
18195 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
18197 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18199 * config/arm/arm.md (define_attr type): Rename f_load
18200 and f_store to f_fpa_load and f_fpa_store. Update.
18201 (write_conflict): Deal with rename fallout.
18202 (*push_fp_multi): Likewise.
18203 * config/arm/fpa.md (f_load): Use f_fpa_load.
18204 (f_store): Use f_fpa_store.
18205 (*movsf_fpa): Likewise.
18206 (*movdf_fpa): Likewise.
18207 (*movxf_fpa): Likewise.
18208 (*thumb2_movsf_fpa): Likewise.
18209 (*thumb2_movdf_fpa): Likewise.
18210 (*thumb2_movxf_fpa): Likewise.
18211 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
18212 f_loadd and f_stored.
18213 (*thumb2_movdi_vfp): Likewise.
18214 (*thumb2_movsf_vfp): Fix attribute to f_loads.
18215 (*thumb2_movsi_vfp): Likewise.
18216 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
18217 Use f_loads instead of f_load.
18218 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
18220 2011-01-20 Anatoly Sokolov <aesok@post.ru>
18222 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18223 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
18224 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18225 (xtensa_mode_dependent_address_p): New function.
18226 (constantpool_address_p): Make static. Change return type to bool.
18227 Change argument type to const_rtx. Use CONST_INT_P predicate.
18229 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
18232 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
18234 2011-01-20 Jakub Jelinek <jakub@redhat.com>
18237 * cfgexpand.c (expand_debug_expr): Instead of generating
18238 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
18241 2011-01-20 Richard Guenther <rguenther@suse.de>
18243 PR middle-end/47370
18244 * tree-inline.c (remap_gimple_op_r): Recurse manually for
18245 the pointer operand of MEM_REFs.
18247 2011-01-20 Jakub Jelinek <jakub@redhat.com>
18249 PR tree-optimization/46130
18250 * ipa-split.c (consider_split): If return_bb contains non-virtual
18251 PHIs other than for retval or if split_function would not adjust it,
18254 2011-01-20 Richard Guenther <rguenther@suse.de>
18256 PR tree-optimization/47167
18257 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
18258 Revert previous change, only avoid enumeral type changes.
18260 2011-01-19 Mike Stump <mikestump@comcast.net>
18262 * doc/tm.texi.in (BRANCH_COST): Englishify.
18263 * doc/tm.texi (BRANCH_COST): Likewise.
18265 2011-01-19 Dodji Seketeli <dodji@redhat.com>
18268 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
18269 (gen_scheduled_generic_parms_dies): New functions.
18270 (gen_struct_or_union_type_die): Schedule template parameters DIEs
18271 generation for the end of CU compilation.
18272 (dwarf2out_finish): Generate template parameters DIEs here.
18274 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18277 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
18278 debug bind stmt on merge edges.
18280 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18284 * function.c (instantiate_expr): Instantiate incoming rtl of
18285 implicit arguments, and recurse on VALUE_EXPRs.
18286 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
18287 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
18289 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18291 * c-parser.c (c_parser_for_statement): Initialize
18292 collection_expression.
18294 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18296 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
18298 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18300 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
18301 (LINK_SHLIB_SPEC): Don't use %(link_path).
18302 (SUBTARGET_EXTRA_SPECS): Remove link_path.
18304 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18306 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
18307 (NO_SHARED_LIB_SUPPORT): Remove.
18308 (LINK_SHLIB_SPEC): Remove one conditional definition.
18310 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18312 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
18314 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
18315 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
18316 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
18317 %{call_shared} and conditionals on these options not being passed.
18318 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
18321 2011-01-19 Jakub Jelinek <jakub@redhat.com>
18323 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
18326 * ipa-split.c: Spelling fixes.
18328 2011-01-19 Richard Henderson <rth@redhat.com>
18330 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
18331 (*mulsi3): Likewise.
18333 * longlong.h [__mn10300__] (count_leading_zeros): New.
18334 [__mn10300__] (umul_ppmm, smul_ppmm): New.
18335 [__mn10300__] (add_ssaaaa, subddmmss): New.
18336 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
18337 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
18339 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18341 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
18343 2011-01-19 Richard Henderson <rth@redhat.com>
18345 * config/mn10300/mn10300.md (addsi3_flags): New.
18346 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
18347 (subsi3_flags, subc_internal, subdi3): New.
18348 (subdi3_internal, *subdi3_degenerate): New.
18349 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
18351 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
18352 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
18353 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
18354 * config/mn10300/mn10300-protos.h: Update.
18355 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
18356 (return_ret): Likewise. Rename from return_internal_regs.
18357 (return_internal): Remove.
18359 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
18360 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
18361 (mn10300_legitimate_constant_p): Likewise.
18362 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
18363 (mn10300_frame_size): New.
18364 (mn10300_expand_prologue): Use it.
18365 (mn10300_expand_epilogue): Likewise.
18366 (mn10300_initial_offset): Likewise.
18367 * config/mn10300/mn10300-protos.h: Update.
18368 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
18369 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
18370 (prologue, epilogue, return_internal): Tidy output code.
18371 (mn10300_store_multiple_operation, return): Likewise.
18372 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
18373 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
18374 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
18375 (load_pic, am33_load_pic): New.
18376 (mn10300_load_pic0, mn10300_load_pic1): New.
18378 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
18379 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
18380 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
18381 (cc_flags_for_mode, cc_flags_for_code): New.
18382 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
18383 overflow flag is not valid. Validate that the flags we need
18384 for the comparison are valid.
18385 (mn10300_output_cmp): Remove.
18386 (mn10300_output_add): New.
18387 (mn10300_select_cc_mode): Use cc_flags_for_code.
18388 (mn10300_split_cbranch): New.
18389 (mn10300_match_ccmode): New.
18390 (mn10300_split_and_operand_count): New.
18391 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
18393 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
18394 (addsi3): ... here. Use mn10300_output_add.
18395 (*addsi3_flags): New.
18396 (*am33_subsi3, *mn10300_subsi3): Merge...
18397 (subsi3): ... here. Use attribute isa.
18398 (*subsi3_flags): New.
18399 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
18401 (*am33_andsi3, *mn10300_andsi3): Merge...
18402 (andsi3): ... here.
18403 (*andsi3_flags): New.
18404 (andsi3 splitters): New.
18405 (*am33_iorsi3, *mn10300_iorsi3): Merge...
18406 (iorsi3): ... here.
18407 (*iorsi3_flags): New.
18408 (*am33_xorsi3, *mn10300_xorsi3): Merge...
18409 (xorsi3): ... here.
18410 (*xorsi3_flags): New.
18411 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
18412 (one_cmplsi2): ... here.
18413 (*one_cmplsi2_flags): New.
18414 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
18415 instead of "dax" in constraints. Use mn10300_split_cbranch.
18416 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
18417 use matching constraints to eliminate a self-comparison.
18418 (*integer_conditional_branch): Rename from integer_conditional_branch.
18419 Use int_mode_flags to match CC_REG.
18420 (*cbranchsi4_btst, *btstsi): New.
18421 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
18422 mn10300_split_cbranch.
18423 (*am33_cmpsf): Rename from am33_cmpsf.
18424 (*float_conditional_branch): Rename from float_conditional_branch.
18425 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
18426 (zero_extendqisi2): ... here.
18427 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
18428 (zero_extendhisi2): ... here.
18429 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
18430 (extendqisi2): ... here.
18431 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
18432 (extendhisi2): ... here.
18433 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
18434 (ashlsi3): ... here.
18435 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
18436 (lshrsi3): ... here.
18437 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
18438 (ashrsi3): ... here.
18439 (consecutive add peephole): Remove.
18440 * config/mn10300/predicates.md (label_ref_operand): New.
18441 (int_mode_flags): New.
18442 (CCZN_comparison_operator): New.
18444 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
18445 (throughput_42_latency_43): New reservation.
18446 (mulsidi3, umulsidi3): New expanders.
18447 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
18448 the MDR register to allocation; separately allocate the low and
18449 high parts of the DImode result.
18450 (umulsidi3_internal): Similarly.
18451 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
18452 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
18453 (udivsi3, umodsi3): Remove.
18454 (udivmodsi4, divmodsi4): New expanders.
18455 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
18456 (*divmodsi4): Simiarly.
18457 (ext_internal): New.
18459 * config/mn10300/constraints.md ("z"): New constraint.
18460 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
18461 (FIXED_REGISTERS): Don't fix MDR.
18462 (CALL_USED_REGSITERS): Reformat nicely.
18463 (REG_ALLOC_ORDER): Add MDR.
18464 (enum regclass): Add MDR_REGS.
18465 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
18466 (IRA_COVER_CLASSES): Add MDR_REGS.
18467 (REGNO_REG_CLASS): Handle MDR_REG.
18468 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
18469 (mn10300_register_move_cost): Likewise.
18470 * config/mn10300/mn10300.md (MDR_REG): New.
18471 (*movsi_internal): Handle moves to/from MDR_REGS.
18473 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
18475 (mn10300_secondary_reload): Tidy combination reload classes.
18476 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
18477 addresses for AM33. Allow symbolic offsets for reg+imm.
18478 (mn10300_regno_in_class_p): New.
18479 (mn10300_legitimize_reload_address): New.
18480 * config/mn10300/mn10300.h (enum reg_class): Remove
18481 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
18482 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
18483 SP_OR_GENERAL_REGS.
18484 (REG_CLASS_NAMES): Update to match.
18485 (REG_CLASS_CONTENTS): Likewise.
18486 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
18487 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
18488 (REGNO_IN_RANGE_P): Remove.
18489 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
18490 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
18491 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
18492 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
18493 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
18494 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
18495 (REGNO_GENERAL_P): New.
18496 (HAVE_POST_MODIFY_DISP): New.
18497 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
18498 (LEGITIMIZE_RELOAD_ADDRESS): New.
18499 * config/mn10300/mn10300-protos.h: Update.
18501 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
18502 DATA_REGS for AM33 stack-pointer destination.
18503 (mn10300_preferred_output_reload_class): Likewise.
18504 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
18505 into a form appropriate for ...
18506 (TARGET_SECONDARY_RELOAD): New.
18507 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
18508 * config/mn10300/mn10300-protos.h: Update.
18509 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
18510 reload_insi; use the "A" constraint for the scratch; handle AM33
18511 moves of sp to non-address registers.
18513 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
18514 (*movqi_internal): ... here.
18515 (*am33_movhi, *mn10300_movhi): Merge into...
18516 (*movhi_internal): ... here.
18517 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
18518 as the source/destination of moves from/to SP.
18519 (movsf): Only allow for AM33-2.
18520 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
18521 any integer constant constraint. Only allow for AM33-2. Tidy
18522 all of the alternative outputs.
18523 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
18524 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
18526 (udivsi3, umodsi3): New patterns for MN103 only.
18528 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
18530 * doc/tm.texi.in: Spell out that a lack of register class unions
18532 * doc/tm.texi: Regenerate.
18534 2011-01-19 Jakub Jelinek <jakub@redhat.com>
18536 PR rtl-optimization/47337
18537 * dce.c (check_argument_store): New function.
18538 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
18540 PR tree-optimization/47290
18541 * tree-eh.c (infinite_empty_loop_p): New function.
18542 (cleanup_empty_eh): Use it.
18544 2011-01-18 Steve Ellcey <sje@cup.hp.com>
18547 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
18548 (a64_expand_widen_sum): Ditto.
18549 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
18550 (vec_extract_evenodd_help): Ditto.
18551 (vec_extract_evenv4hi): Ditto.
18552 (vec_extract_oddv4hi): Ditto.
18553 (vec_extract_evenv2si): Ditto.
18554 (vec_extract_oddv2si): Ditto.
18555 (vec_extract_evenv2sf): Ditto.
18556 (vec_extract_oddv2sf): Ditto.
18557 (vec_pack_trunc_v4hi: Ditto.
18558 (vec_pack_trunc_v2si): Ditto.
18559 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
18560 (vec_interleave_highv8qi): Ditto.
18562 (vec_extract_oddv8qi): Ditto.
18563 (vec_interleave_lowv4hi): Ditto.
18564 (vec_interleave_highv4hi): Ditto.
18565 (vec_interleave_lowv2si): Ditto.
18566 (vec_interleave_highv2si): Ditto.
18568 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18570 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
18571 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
18572 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
18573 (pa_c_mode_for_suffix): New.
18574 (TARGET_EXPAND_BUILTIN): Define.
18575 (TARGET_C_MODE_FOR_SUFFIX): Define.
18576 (pa_builtins): Define.
18577 (pa_init_builtins): Register __float128 type and init new support
18579 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
18580 * config/pa/quadlib.c (_U_Qfcopysign): New.
18582 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
18584 PR middle-end/46894
18585 * explow.c (allocate_dynamic_stack_space): Do not assume more than
18586 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
18589 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18591 PR tree-optimization/47179
18592 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
18593 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
18595 2011-01-18 Richard Guenther <rguenther@suse.de>
18597 PR rtl-optimization/47216
18598 * emit-rtl.c: Include tree-flow.h.
18599 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
18600 of replicating it with different semantics.
18601 * Makefile.in (emit-rtl.o): Adjust.
18603 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18605 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
18606 (cortex_a9_dp): Handle neon types correctly.
18608 2011-01-18 Jakub Jelinek <jakub@redhat.com>
18610 PR rtl-optimization/47299
18611 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
18612 subtarget. Use normal multiplication if both operands are constants.
18613 * expmed.c (expand_widening_mult): Don't try to optimize constant
18614 multiplication if op0 has VOIDmode. Convert op1 constant to mode
18617 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18619 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
18620 spacing after 'e.g.', typos, comma, hyphenation.
18622 2011-01-17 Richard Henderson <rth@redhat.com>
18624 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
18625 (rx_restricted_mem_operand): New.
18626 (rx_shift_operand): Use register_operand.
18627 (rx_source_operand, rx_compare_operand): Likewise.
18628 * config/rx/rx.md (addsi3_flags): New expander.
18629 (adddi3): Rewrite as expander.
18630 (adc_internal, *adc_flags, adddi3_internal): New patterns.
18631 (subsi3_flags): New expander.
18632 (subdi3): Rewrite as expander.
18633 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
18635 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
18636 (rx_init_builtins): Remove sat builtin.
18637 (rx_expand_builtin): Likewise.
18638 * config/rx/rx.md (ssaddsi3): New.
18639 (*sat): Rename from sat. Represent the CC_REG input.
18641 * config/rx/predicates.md (rshift_operator): New.
18642 * config/rx/rx.c (rx_expand_insv): Remove.
18643 * config/rx/rx-protos.h: Update.
18644 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
18645 operand to the canonical position.
18646 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
18647 (*bitclr, *bitclr_in_memory): Similarly.
18648 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
18649 (insv): Retain the zero_extract in the expansion.
18651 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
18652 (bswaphi2, bitinvert, revw): Likewise.
18654 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
18655 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
18656 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
18657 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
18658 (bitset, bitset_in_memory): Likewise.
18659 (bitinvert, bitinvert_in_memory): Likewise.
18660 (bitclr, bitclr_in_memory): Likewise.
18661 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
18662 (rx_strend, rx_cmpstrn): Likewise.
18663 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
18664 (bitop peep2 patterns): Remove.
18666 * config/rx/rx.c (rx_match_ccmode): New.
18667 * config/rx/rx-protos.h: Update.
18668 * config/rx/rx.md (abssi2): Clobber, don't set flags.
18669 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
18670 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
18671 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
18672 (fix_truncsfsi2, floatsisf2): Likewise.
18673 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
18674 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
18675 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
18676 (*subsi3_flags, *xorsi3_flags): New.
18678 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
18680 * config/rx/rx.c (rx_print_operand): Remove workaround for
18681 unsplit comparison operations.
18683 * config/rx/rx.md (movsicc): Split after reload.
18684 (*movsicc): Merge *movsieq and *movsine via match_operator.
18685 (*stcc): New pattern.
18687 * config/rx/rx.c (rx_float_compare_mode): Remove.
18688 * config/rx/rx.h (rx_float_compare_mode): Remove.
18689 * config/rx/rx.md (cstoresi4): Split after reload.
18690 (*sccc): New pattern.
18692 * config/rx/predicates.md (label_ref_operand): New.
18693 (rx_z_comparison_operator): New.
18694 (rx_zs_comparison_operator): New.
18695 (rx_fp_comparison_operator): New.
18696 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
18697 Validate that the flags are set properly for the comparison.
18698 (rx_gen_cond_branch_template): Remove.
18699 (rx_cc_modes_compatible): Remove.
18700 (mode_from_flags): New.
18701 (flags_from_code): Rename from flags_needed_for_conditional.
18702 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
18703 (rx_select_cc_mode): Likewise.
18704 (rx_split_fp_compare): New.
18705 (rx_split_cbranch): New.
18706 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
18707 (*cbranchsi4): Use match_operator and rx_split_cbranch.
18708 (*cbranchsf4): Similarly.
18709 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
18710 match_operator and rx_split_cbranch.
18711 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
18712 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
18713 (*cmpsi): Rename from cmpsi.
18714 (*tstsi): Rename from tstsi.
18715 (*cmpsf): Rename from cmpsf; use CC_Fmode.
18716 (*conditional_branch): Rename from conditional_branch.
18717 (*reveresed_conditional_branch): Remove.
18718 (b<code>): Remove expander.
18719 * config/rx/rx-protos.h: Update.
18721 * config/rx/rx.c (rx_compare_redundant): Remove.
18722 * config/rx/rx.md (cmpsi): Don't use it.
18723 * config/rx/rx-protos.h: Update.
18725 * config/rx/rx-modes.def (CC_F): New mode.
18726 * config/rx/rx.c (rx_select_cc_mode): New.
18727 * config/rx/rx.h (SELECT_CC_MODE): Use it.
18728 * config/rx/rx-protos.h: Update.
18730 2011-01-17 Richard Henderson <rth@redhat.com>
18732 * except.c (dump_eh_tree): Fix stray ; after for statement.
18734 2011-01-17 Richard Guenther <rguenther@suse.de>
18736 PR tree-optimization/47313
18737 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
18738 handling before copying the body. Properly deal with
18739 by-reference result in SSA form.
18741 2011-01-17 Ian Lance Taylor <iant@google.com>
18744 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
18745 (struct_value_alias_set): Don't define.
18746 (sparc_option_override): Don't set sparc_sr_alias_set and
18747 struct_value_alias_set.
18748 (save_or_restore_regs): Use gen_frame_mem rather than calling
18750 (sparc_struct_value_rtx): Likewise.
18752 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
18755 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
18756 (_mm_maskstore_pd): Likewise.
18757 (_mm_maskload_ps): Likewise.
18758 (_mm_maskstore_ps): Likewise.
18759 (_mm256_maskload_pd): Change mask to __m256i.
18760 (_mm256_maskstore_pd): Likewise.
18761 (_mm256_maskload_ps): Likewise.
18762 (_mm256_maskstore_ps): Likewise.
18764 * config/i386/i386-builtin-types.def: Updated.
18765 (ix86_expand_special_args_builtin): Likewise.
18767 * config/i386/i386.c (bdesc_special_args): Update
18768 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
18769 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
18770 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
18771 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
18773 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
18774 Use <avxpermvecmode> on mask register.
18775 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
18777 2011-01-17 Olivier Hainque <hainque@adacore.com>
18778 Michael Haubenwallner <michael.haubenwallner@salomon.at>
18779 Eric Botcazou <ebotcazou@adacore.com>
18782 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
18783 if <= USHRT_MAX in 32-bit mode.
18785 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18787 * doc/install.texi (Configuration, Specific): Wrap long
18788 lines in examples. Allow line wrapping in long options
18789 and URLs where beneficial for PDF output.
18791 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
18793 * config/mips/mips.c (mips_classify_symbol): Don't return
18794 SYMBOL_PC_RELATIVE for nonlocal labels.
18796 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
18798 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
18800 2011-01-15 Jan Hubicka <jh@suse.cz>
18802 PR tree-optimization/47276
18803 * ipa.c (function_and_variable_visibility): Do not try to mark alias
18804 declarations as needed.
18806 2011-01-15 Martin Jambor <mjambor@suse.cz>
18808 * common.opt (fdevirtualize): New flag.
18809 * doc/invoke.texi (Option Summary): Document it.
18810 * opts.c (default_options_table): Add devirtualize flag.
18811 * ipa-prop.c (detect_type_change): Return immediately if
18812 devirtualize flag is not set.
18813 (detect_type_change_ssa): Likewise.
18814 (compute_known_type_jump_func): Likewise.
18815 (ipa_analyze_virtual_call_uses): Likewise.
18817 2011-01-14 Martin Jambor <mjambor@suse.cz>
18819 PR tree-optimization/45934
18820 PR tree-optimization/46302
18821 * ipa-prop.c (type_change_info): New type.
18822 (stmt_may_be_vtbl_ptr_store): New function.
18823 (check_stmt_for_type_change): Likewise.
18824 (detect_type_change): Likewise.
18825 (detect_type_change_ssa): Likewise.
18826 (compute_complex_assign_jump_func): Check for dynamic type change.
18827 (compute_complex_ancestor_jump_func): Likewise.
18828 (compute_known_type_jump_func): Likewise.
18829 (compute_scalar_jump_functions): Likewise.
18830 (ipa_analyze_virtual_call_uses): Likewise.
18831 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
18833 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18835 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
18836 * config/i386/i386.opt (msse5): New Alias.
18838 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18840 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
18841 * config/sparc/linux64.h (CC1_SPEC): Likewise.
18842 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18843 * config/sparc/sparc.h (CC1_SPEC): Likewise.
18845 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18847 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
18849 * config/sparc/linux64.h (CC1_SPEC): Likewise.
18850 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18851 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
18852 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
18854 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
18856 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18858 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
18860 2011-01-14 Mike Stump <mikestump@comcast.net>
18862 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
18863 * config/fr30/fr30.md: Likweise
18864 (movsi_push): Likewise.
18865 (movsi_pop): Likewise.
18866 (enter_func): Likewise.
18867 * config/moxie/moxie.md (movsi_push): Likewise.
18868 (movsi_pop): Likewise.
18870 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18872 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
18873 %{no_archive} %{exact_version}.
18874 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
18875 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
18876 %{no_archive} %{exact_version}.
18877 * config/mips/openbsd.h (LINK_SPEC): Likewise.
18878 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
18879 * config/mips/vxworks.h: Likewise.
18881 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18883 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
18885 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18887 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
18888 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
18890 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18892 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
18895 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18897 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
18899 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
18900 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
18902 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
18903 Don't handle -shlib.
18905 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18907 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
18908 (CC1_SPEC): Don't handle -profile.
18910 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18912 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
18913 * config/mips/mips.h (CC1_SPEC): Likewise.
18915 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18917 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
18918 * config/mips/mips.h (CC1_SPEC): Likewise.
18920 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18922 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
18923 * config/m32r/linux.h (LINK_SPEC): Likewise.
18924 * config/mips/linux.h (LINK_SPEC): Likewise.
18925 * config/mips/linux64.h (LINK_SPEC): Likewise.
18926 * config/sparc/linux.h (LINK_SPEC): Likewise.
18927 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
18928 LINK_SPEC): Likewise.
18929 * config/xtensa/linux.h (LINK_SPEC): Likewise.
18931 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18933 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
18935 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
18937 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18939 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
18940 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
18942 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18944 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
18946 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18948 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
18949 supports -Bstatic/-Bdynamic.
18950 * configure: Regenerate.
18952 2011-01-14 Jan Hubicka <jh@suse.cz>
18953 Jack Howarth <howarth@bromo.med.uc.edu>
18956 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
18957 when checking debug_info_level. Test write_symbols instead of
18958 debug_hooks->var_location when setting flag_var_tracking_uninit.
18960 2011-01-14 Richard Guenther <rguenther@suse.de>
18962 PR tree-optimization/47179
18963 * target.def (ref_may_alias_errno): New target hook.
18964 * targhooks.h (default_ref_may_alias_errno): Declare.
18965 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
18966 (default_ref_may_alias_errno): New function.
18967 * target.h (struct ao_ref_s): Declare.
18968 * tree-ssa-alias.c: Include target.h.
18969 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
18970 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
18971 (targhooks.o): Likewise.
18972 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
18973 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
18975 2011-01-14 Richard Guenther <rguenther@suse.de>
18977 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
18979 2011-01-14 Richard Guenther <rguenther@suse.de>
18981 PR tree-optimization/47280
18982 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
18983 return CFG changes.
18984 (tree_ssa_forward_propagate_single_use_vars): Deal with
18985 CFG changes from associate_plusminus.
18987 2011-01-14 Richard Guenther <rguenther@suse.de>
18989 PR middle-end/47281
18991 2011-01-11 Richard Guenther <rguenther@suse.de>
18993 PR tree-optimization/46076
18994 * tree-ssa.c (useless_type_conversion_p): Conversions from
18995 unprototyped to empty argument list function types are useless.
18997 2011-01-14 Richard Guenther <rguenther@suse.de>
18999 PR tree-optimization/47286
19000 * tree-ssa-structalias.c (new_var_info): Register variables are global.
19002 2011-01-14 Martin Jambor <mjambor@suse.cz>
19004 PR middle-end/46823
19005 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
19007 2011-01-13 Anatoly Sokolov <aesok@post.ru>
19009 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
19010 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19011 * config/xtensa/xtensa.c (xtensa_libcall_value,
19012 xtensa_function_value_regno_p): New functions.
19013 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
19015 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
19018 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
19020 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
19021 New function prototype.
19022 * config/i386/winnt.c (i386_pe_assemble_visibility):
19023 Warn only if attribute was specified by user.
19025 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
19028 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
19030 (floatunsdidf2_fcfidu): Ditto.
19032 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19034 * config/s390/s390.c (print_operand_address): Replace 'error' with
19035 'output_operand_lossage'.
19036 (print_operand): Likewise.
19038 2011-01-13 Jeff Law <law@redhat.com>
19040 PR rtl-optimization/39077
19041 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
19042 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
19043 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
19044 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
19045 * gcse.c (prune_insertions_deletions): New function.
19046 (compute_pre_data): Use it.
19048 2011-01-13 Dodji Seketeli <dodji@redhat.com>
19051 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
19053 (prune_unused_types_mark): Use it.
19055 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
19057 PR rtl-optimization/45352
19058 * sel-sched.c: Update copyright years.
19059 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
19060 in the advancing loop when we have issued issue_rate insns.
19062 2011-01-12 Richard Henderson <rth@redhat.com>
19064 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
19065 (TARGET_MD_ASM_CLOBBERS): New.
19067 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
19068 (TARGET_DELEGITIMIZE_ADDRESS): New.
19070 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
19071 (clzsi2, *bsch): New patterns.
19073 * config/mn10300/mn10300.md (INT): New mode iterator.
19074 (*mov<INT>_clr): New pattern, and peep2 to generate it.
19076 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
19077 flag_split_wide_types.
19079 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
19080 (mn10300_trampoline_init): Rewrite without a template, an immediate
19081 load and a direct branch.
19082 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
19084 2011-01-12 Anatoly Sokolov <aesok@post.ru>
19086 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19087 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
19088 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
19089 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19091 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
19094 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
19097 2011-01-12 Jan Hubicka <jh@suse.cz>
19100 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
19101 (PLUGIN_COND_CLOSE): New macro.
19102 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
19104 2011-01-12 Richard Guenther <rguenther@suse.de>
19107 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
19108 register variables in a MEM_REF.
19110 2011-01-12 Joseph Myers <joseph@codesourcery.com>
19112 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
19113 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
19114 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
19115 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
19116 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
19117 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
19118 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
19119 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
19120 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
19121 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
19122 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
19123 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
19124 * config/gnu-user.h: New. Copied from linux.h.
19125 (LINUX_TARGET_STARTFILE_SPEC): Rename to
19126 GNU_USER_TARGET_STARTFILE_SPEC.
19127 (LINUX_TARGET_ENDFILE_SPEC): Rename to
19128 GNU_USER_TARGET_ENDFILE_SPEC.
19129 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
19130 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
19131 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
19132 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
19133 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
19134 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
19135 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
19136 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
19137 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
19138 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
19139 * config/arm/linux-eabi.h (CC1_SPEC): Use
19140 GNU_USER_TARGET_CC1_SPEC.
19141 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
19142 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
19143 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
19144 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
19145 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
19146 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
19147 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
19148 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
19150 2011-01-12 Richard Guenther <rguenther@suse.de>
19153 * doc/invoke.texi (ffast-math): Document it is turned on
19156 2011-01-12 Jan Hubicka <jh@suse.cz>
19158 PR tree-optimization/47233
19159 * opts.c (common_handle_option): Disable ipa-reference with profile
19162 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
19164 * c-parser.c (c_parser_objc_at_property_declaration): Improved
19167 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
19169 * c-parser.c (c_lex_one_token): Updated and reindented some
19170 comments. No changes in code.
19172 2011-01-11 Ian Lance Taylor <iant@google.com>
19174 * godump.c (go_output_var): Don't output the variable if there is
19175 already a type with the same name.
19177 2011-01-11 Ian Lance Taylor <iant@google.com>
19179 * godump.c (go_format_type): Don't generate float80.
19181 2011-01-11 Richard Henderson <rth@redhat.com>
19183 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
19184 declaration. Rewrite for both speed and size.
19185 (mn10300_address_cost_1): Remove.
19186 (mn10300_register_move_cost): New.
19187 (mn10300_memory_move_cost): New.
19188 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
19189 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
19190 extensions, shifts, BSWAP, CLZ.
19191 (mn10300_wide_const_load_uses_clr): Remove.
19192 (TARGET_REGISTER_MOVE_COST): New.
19193 (TARGET_MEMORY_MOVE_COST): New.
19194 * config/mn10300/mn10300-protos.h: Update.
19195 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
19197 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
19198 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
19199 * config/mn10300/mn10300-protos.h: Update.
19200 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
19201 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
19202 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
19203 (*test_int_bitfield, *test_byte_bitfield): Remove.
19204 (*bit_test, *subreg_bit_test): Remove.
19205 * config/mn10300/predicates.md (const_8bit_operand): Remove.
19207 * config/mn10300/constraints.md ("c"): Rename from "A".
19208 ("A", "D"): New constraint letters.
19209 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
19210 (fmssf4, fnmasf4, fnmssf4): Likewise.
19212 * config/mn10300/mn10300.md (isa): New attribute.
19213 (enabled): New attribute.
19215 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
19216 (abssf2, negsf2): Define only for hardware fp.
19217 (sqrtsf2): Reformat.
19218 (addsf3, subsf3, mulsf3): Merge expander and insn.
19220 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
19221 (DEBUGGER_AUTO_OFFSET): Remove.
19222 (DEBUGGER_ARG_OFFSET): Remove.
19224 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
19225 Emit register stores with the same offsets as the hardware.
19226 (mn10300_store_multiple_operation): Don't check that the register
19227 save offsets are monotonic.
19228 * config/mn10300/mn10300-protos.h: Update.
19230 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
19232 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
19233 in terms of the value on the stack, not the MDR register.
19235 2011-01-11 Jan Hubicka <jh@suse.cz>
19239 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
19240 (symbol_alias_set_destroy, symbol_alias_set_contains,
19241 propagate_aliases_backward): Declare.
19242 * lto-streamer-out.c (struct sets): New sturcture.
19243 (trivally_defined_alias): New function.
19244 (output_alias_pair_p): Rewrite.
19245 (output_unreferenced_globals): Fix output of alias pairs.
19246 (produce_symtab): Likewise.
19247 * ipa.c (function_and_variable_visibility): Set weak alias destination
19249 * varasm.c (symbol_alias_set_t): Remove.
19250 (symbol_alias_set_destroy): Export.
19251 (propagate_aliases_forward, propagate_aliases_backward): New functions
19253 (compute_visible_aliases): ... this one; remove.
19254 (trivially_visible_alias): New
19255 (trivially_defined_alias): New.
19256 (remove_unreachable_alias_pairs): Rewrite.
19257 (finish_aliases_1): Reorganize code checking if alias is defined.
19258 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
19261 2011-01-11 Richard Guenther <rguenther@suse.de>
19263 PR tree-optimization/46076
19264 * tree-ssa.c (useless_type_conversion_p): Conversions from
19265 unprototyped to empty argument list function types are useless.
19267 2011-01-11 Richard Guenther <rguenther@suse.de>
19269 PR middle-end/45235
19270 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
19271 volatile MEMs as MEM_READONLY_P.
19273 2011-01-11 Richard Guenther <rguenther@suse.de>
19275 PR tree-optimization/47239
19276 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
19278 2011-01-11 Jeff Law <law@redhat.com>
19280 PR tree-optimization/47086
19281 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
19282 IVs from statements that might throw.
19284 2011-01-10 Jan Hubicka <jh@suse.cz>
19287 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
19289 2011-01-10 Jan Hubicka <jh@suse.cz>
19292 * profile.c (read_profile_edge_counts): Ignore profile inconistency
19293 when correcting profile.
19295 2011-01-10 Jan Hubicka <jh@suse.cz>
19298 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
19299 DECL_FINI_PRIORITY.
19300 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
19301 Restore DECL_FINI_PRIORITY.
19303 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19305 * doc/gimple.texi: Fix quoting of multi-word return values in
19306 @deftypefn statements. Ensure presence of return value. Wrap
19307 overlong @deftypefn lines.
19308 (is_gimple_operand, is_gimple_min_invariant_address): Remove
19309 descriptions of removed functions.
19310 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
19311 of multi-word return value in @deftypefn statement.
19313 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19315 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
19316 (Conditional Expressions, Logical Operators)
19317 (Statement and operand traversals): Do not indent smallexample
19318 code. Fix duplicate function argument in example.
19320 2011-01-10 Jeff Law <law@redhat.com>
19322 PR tree-optimization/47141
19323 * ipa-split.c (split_function): Handle case where we are
19324 returning a value and the return block has a virtual operand phi.
19326 2011-01-10 Jan Hubicka <jh@suse.cz>
19328 PR tree-optimization/47234
19329 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
19330 (pass_feedback_split_functions): Declare.
19331 * passes.c (init_optimization_passes): Add ipa-split as subpass of
19333 * ipa-split.c (gate_split_functions): Update comments; disable
19334 split-functions for profile_arc_flag and branch_probabilities.
19335 (gate_feedback_split_functions): New function.
19336 (execute_feedback_split_functions): New function.
19337 (pass_feedback_split_functions): New global var.
19339 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
19342 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
19343 calling gimple_call_set_cannot_inline.
19345 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
19347 * config/darwin-sections.def: Remove unused section.
19349 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
19352 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
19354 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
19357 * c-parser.c (c_parser_declaration_or_fndef): Improved
19360 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
19362 * config/i386/winnt.c (i386_pe_start_function): Make sure
19363 to switch back to function's section.
19365 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
19369 * plugin.c: Move include of dlfcn.h from here...
19370 * system.h: ... to here.
19372 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19374 * doc/cpp.texi (C++ Named Operators): Fix markup for header
19376 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
19377 two extra empty pages in PDF output.
19379 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
19382 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
19383 for error recovery purposes behave as if it was not specified so
19384 that the default type is usd.
19386 2011-01-07 Jan Hubicka <jh@suse.cz>
19388 PR tree-optmization/46469
19389 * ipa.c (function_and_variable_visibility): Clear needed flags on
19390 nodes with external decls; handle weakrefs merging correctly.
19392 2011-01-07 Joseph Myers <joseph@codesourcery.com>
19394 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
19397 2011-01-07 Jan Hubicka <jh@suse.cz>
19399 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
19400 and no longer claim that gold is required for linker plugin.
19401 * configure: Regenerate.
19402 * gcc.c (PLUGIN_COND): New macro.
19403 (LINK_COMMAND_SPEC): Use it.
19404 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
19405 * config.in (HAVE_LTO_PLUGIN): New.
19406 * configure.ac (--with-lto-plugin): New parameter; autodetect
19409 2011-01-07 Jan Hubicka <jh@suse.cz>
19411 PR tree-optimization/46367
19412 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
19413 when we can update original.
19414 (cgraph_mark_inline_edge): Sanity check.
19415 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
19417 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19419 * config/spu/spu.h (ASM_COMMENT_START): Define.
19421 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
19424 * gcc.c (%>S): New.
19425 (SWITCH_KEEP_FOR_GCC): Likewise.
19426 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
19427 (do_spec_1): Handle "%>".
19429 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
19431 2011-01-07 Jakub Jelinek <jakub@redhat.com>
19434 * config/i386/i386.c (ix86_delegitimize_address): If
19435 simplify_gen_subreg fails, return orig_x.
19438 * value-prof.c (gimple_stringop_fixed_value): Handle
19439 lhs of the call properly.
19441 2011-01-07 Jan Hubicka <jh@suse.cz>
19444 * lto-opt.c (lto_reissue_options): Set flag_shlib.
19446 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19448 * target.def (function_switched_text_sections): New hook.
19449 * doc/tm.texi: Regenerated.
19450 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19451 * final.c (default_function_switched_text_sections): New.
19452 (final_scan_insn): Call function_switched_text_sections when a
19453 mid-function section change occurs.
19454 * output.h (default_function_switched_text_sections): Declare.
19455 * config/darwin-protos.h (darwin_function_switched_text_sections):
19457 * config/darwin.c (darwin_function_switched_text_sections): New.
19458 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19460 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19462 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
19463 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
19464 the secondary code fragment when outputting for DWARF == 2.
19466 2011-01-07 Anatoly Sokolov <aesok@post.ru>
19468 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19469 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
19471 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
19472 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19474 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
19477 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
19478 when it is not empty.
19480 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
19483 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
19484 (case ${target}): Add btver1.
19485 * config/i386/driver-i386.c (host_detect_local_cpu): Let
19486 -march=native recognize btver1 processors.
19487 * config/i386/i386-c.c (ix86_target_macros_internal): Add
19488 btver1 def_and_undef
19489 * config/i386/i386.c (struct processor_costs btver1_cost): New
19491 (m_BTVER1): New definition.
19492 (m_AMD_MULTIPLE): Includes m_BTVER1.
19493 (initial_ix86_tune_features): Add btver1 tune.
19494 (processor_target_table): Add btver1 entry.
19495 (static const char *const cpu_names): Add btver1 entry.
19496 (software_prefetching_beneficial_p): Add btver1.
19497 (ix86_option_override_internal): Add btver1 instruction sets.
19498 (ix86_issue_rate): Add btver1.
19499 (ix86_adjust_cost): Add btver1.
19500 * config/i386/i386.h (TARGET_BTVER1): New definition.
19501 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
19502 (enum processor_type): Add PROCESSOR_BTVER1.
19503 * config/i386/i386.md (define_attr "cpu"): Add btver1.
19505 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19508 * config/i386/i386.c (legitimize_tls_address)
19509 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
19510 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
19511 (tls_initial_exec_64_sun): New pattern.
19513 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
19515 * doc/invoke.texi (Overall Options): Improve wording and markup
19516 of the description of -wrapper.
19518 2011-01-06 Joseph Myers <joseph@codesourcery.com>
19520 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
19521 rdynamic, threads): New Driver options.
19523 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19526 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
19527 if coming from .tdata.
19528 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
19530 2011-01-06 Jan Hubicka <jh@suse.cz>
19533 * collect2.c (main): Do not enable LTOmode when plugin is active.
19535 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19538 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
19539 --version output if supported.
19540 * configure: Regenerate.
19542 2011-01-06 Joseph Myers <joseph@codesourcery.com>
19544 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
19547 2011-01-06 Jakub Jelinek <jakub@redhat.com>
19550 * c-convert.c (convert): When converting a complex expression
19551 other than COMPLEX_EXPR to a different complex type, ensure
19552 c_save_expr is called instead of save_expr, unless in_late_binary_op.
19553 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
19554 when converting COMPLEX_TYPE.
19556 2011-01-06 Ira Rosen <irar@il.ibm.com>
19558 PR tree-optimization/47139
19559 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
19560 only the last reduction value is used outside the loop. Update
19563 2011-01-05 Joseph Myers <joseph@codesourcery.com>
19565 * config/rtems.opt: New.
19566 * config.gcc (*-*-rtems*): Use rtems.opt.
19568 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
19570 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
19571 processors do not support 3DNow instructions.
19573 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19575 * config/spu/spu.c (spu_option_override): Set parameter
19576 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
19578 2011-01-05 Jan Hubicka <jh@suse.cz>
19580 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
19581 at the command line.
19583 2011-01-05 Martin Jambor <mjambor@suse.cz>
19586 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
19587 deltas on streamed outgoing edges.
19588 (output_node_opt_summary): Output info for outgoing edges only when
19589 the node is in new parameter set.
19590 (output_cgraph_opt_summary): New parameter set, passed to the two
19591 aforementioned functions. Update its forward declaration and its
19594 2011-01-05 Tom Tromey <tromey@redhat.com>
19596 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
19597 operator to c_finish_omp_atomic.
19598 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
19599 (build_unary_op): Update.
19600 (build_modify_expr): Update.
19601 (build_asm_expr): Update.
19603 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19605 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
19606 newly inserted insns.
19607 (pad_bb): Likewise.
19608 (spu_emit_branch_hint): Likewise.
19609 (insert_hbrp_for_ilb_runout): Likewise.
19610 (spu_machine_dependent_reorg): Call df_finish_pass after
19611 schedule_insns returns.
19613 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19615 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
19617 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
19619 PR tree-optimization/47005
19620 * tree-sra.c (struct access): Add 'non_addressable' bit.
19621 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
19622 (decide_one_param_reduction): Return 0 if the parameter is passed by
19623 reference and one of the accesses in the group is non_addressable.
19625 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
19627 PR tree-optimization/47056
19628 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
19629 (mark_load): Likewise. Handle FUNCTION_DECL specially.
19630 (mark_store): Likewise. Pass STMT to ipa_record_reference.
19632 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
19634 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
19635 initializer. Skip view conversions from aggregate types.
19637 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
19640 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
19642 2011-01-04 Philipp Thomas <pth@suse.de>
19644 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
19647 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19649 * function.c (thread_prologue_and_epilogue_insns): Do not crash
19650 on empty epilogue sequences.
19652 2011-01-04 Joseph Myers <joseph@codesourcery.com>
19654 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
19655 non-static): New Driver options.
19657 2011-01-04 Jie Zhang <jie@codesourcery.com>
19660 * gcc.c (default_compilers[]): Set combinable field to 0
19661 for all assembly languages.
19663 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
19665 * config/mips/loongson3a.md: New file.
19666 * config/mips/mips.md: Include loongson3a.md.
19667 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
19670 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
19672 PR middle-end/47017
19673 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
19674 instead of convert_memory_address_addr_space on the base expression.
19676 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19678 * config/spu/spu.c (spu_option_override): Update error text
19679 for bad -march= / -mtune= values.
19681 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19683 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
19684 if branch-hint optimization will be performed.
19686 2011-01-03 Jakub Jelinek <jakub@redhat.com>
19688 PR tree-optimization/47148
19689 * ipa-split.c (split_function): Convert arguments to
19690 DECL_ARG_TYPE if possible.
19692 PR tree-optimization/47155
19693 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
19694 when computing uns.
19696 PR rtl-optimization/47157
19697 * combine.c (try_combine): If undobuf.other_insn becomes
19698 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
19699 and set *new_direct_jump_p too.
19701 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
19703 PR tree-optimization/47021
19704 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
19706 2011-01-03 Jakub Jelinek <jakub@redhat.com>
19708 * gcc.c (process_command): Update copyright notice dates.
19709 * gcov.c (print_version): Likewise.
19710 * gcov-dump.c (print_version): Likewise.
19711 * mips-tfile.c (main): Likewise.
19712 * mips-tdump.c (main): Likewise.
19714 2011-01-03 Martin Jambor <mjambor@suse.cz>
19716 PR tree-optimization/46801
19717 * tree-sra.c (type_internals_preclude_sra_p): Check whether
19718 aggregate fields start at byte boundary instead of the bit-field flag.
19720 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
19723 * gcc.c (main): Revert revision 168407.
19725 2011-01-03 Martin Jambor <mjambor@suse.cz>
19727 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
19729 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19731 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
19732 vector optab to expand vector/scalar shift, update gimple to vector.
19734 2011-01-03 Martin Jambor <mjambor@suse.cz>
19736 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
19739 2011-01-03 Martin Jambor <mjambor@suse.cz>
19741 PR tree-optimization/46984
19742 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
19744 (cgraph_create_indirect_edge): Fixed line length.
19745 (cgraph_indirect_call_info): Declare.
19746 (cgraph_make_edge_direct) Update declaration.
19747 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
19748 (cgraph_create_indirect_edge): Use it.
19749 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
19751 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
19752 the new thunk_delta representation.
19753 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
19755 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
19756 (ipa_read_indirect_edge_info): Likewise.
19757 * lto-cgraph.c (output_edge_opt_summary): New function.
19758 (output_node_opt_summary): Call it on all outgoing edges.
19759 (input_edge_opt_summary): New function.
19760 (input_node_opt_summary): Call it on all outgoing edges.
19762 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
19765 * gcc.c (main): Don't check have_o when settting combine_inputs.
19767 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
19769 * regrename.c: Add general comment describing the pass.
19770 (struct du_head): Remove 'length' field.
19771 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
19772 (regrename_optimize): Do not sort chains. Rework comments, add others.
19773 Force renaming to the preferred class (if any) in the first pass and do
19774 not consider registers that belong to it in the second pass.
19775 (create_new_chain): Do not set 'length' field.
19776 (scan_rtx_reg): Likewise.
19778 2011-01-02 Jakub Jelinek <jakub@redhat.com>
19780 PR tree-optimization/47140
19781 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
19782 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
19783 to bit_value_binop.
19785 PR rtl-optimization/47028
19786 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
19787 parm_birth_insn instead of at the beginning of first bb.
19789 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
19791 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
19792 Remove the word "see" before "@pxref".
19793 * doc/rtl.texi: Remove the word "see" before "@pxref".
19795 2011-01-01 Jan Hubicka <jh@suse.cz>
19797 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
19800 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
19803 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
19806 Copyright (C) 2011 Free Software Foundation, Inc.
19808 Copying and distribution of this file, with or without modification,
19809 are permitted in any medium without royalty provided the copyright
19810 notice and this notice are preserved.