1 2011-06-28 Richard Henderson <rth@redhat.com>
3 * config/arm/arm.c (arm_output_function_prologue): Don't call
4 thumb1_output_function_prologue.
5 (arm_expand_prologue): Avoid dead store.
6 (number_of_first_bit_set): Use ctz_hwi.
7 (thumb1_emit_multi_reg_push): New.
8 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
9 to emit the entire prologue as rtl.
10 (thumb1_output_interwork): Split out from
11 thumb1_output_function_prologue.
12 (thumb1_output_function_prologue): Remove.
13 (arm_attr_length_push_multi): Handle thumb1.
14 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
15 (prologue_thumb1_interwork): New.
16 (*push_multi): Allow thumb1; use push_mult_memory_operand.
17 * config/arm/predicates.md (push_mult_memory_operand): New.
19 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
21 * config/sparc/sync.md (*stbar): Delete.
22 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
24 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
26 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
28 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
31 (TARGET_64BIT_DEFAULT): Define.
32 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
34 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
36 2011-06-28 Joseph Myers <joseph@codesourcery.com>
38 * common.opt (in_lto_p): New Variable entry.
39 * flags.h (in_lto_p): Move to common.opt.
40 * gcc.c: Include params.h.
41 (set_option_handlers): Also use common_handle_option and
43 (main): Call global_init_params, finish_params and
45 * opts.c (debug_type_names): Move from toplev.c.
46 (print_filtered_help): Access quiet_flag through opts pointer.
47 (common_handle_option): Return early in the driver for some
48 options. Access in_lto_p, dwarf_version and
49 warn_maybe_uninitialized through opts pointer.
50 * toplev.c (in_lto_p): Move to common.opt.
51 (debug_type_names): Move to opts.c.
52 * Makefile.in (OBJS): Remove opts.o.
53 (OBJS-libcommon-target): Add opts.o.
54 (gcc.o): Update dependencies.
56 2011-06-28 Kai Tietz <ktietz@redhat.com>
58 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve
61 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
63 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
64 with '=' constraint modifier.
65 (*divdf3_vfp): Likewise.
66 ("*mulsf3_vfp"): Likewise.
67 ("*muldf3_vfp"): Likewise.
68 ("*mulsf3negsf_vfp"): Likewise.
69 ("*muldf3negdf_vfp"): Likewise.
71 2011-06-28 Nick Clifton <nickc@redhat.com>
73 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
74 relaxation when performing an incremental link.
76 2011-06-28 Kai Tietz <ktietz@redhat.com>
78 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
79 within BB from last to first.
81 2011-06-28 Joseph Myers <joseph@codesourcery.com>
83 * genattr-common.c: New. Based on genattr.c.
84 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
85 (MOSTLYCLEANFILES): Add insn-attr-common.h.
86 (opts.o): Update dependencies.
87 (.PRECIOUS): Add insn-attr-common.h.
88 (simple_rtl_generated_h): Add insn-attr-common.h.
89 (build/genattr-common.o): New.
90 (genprogrtl): Add attr-common.
91 * genattr.c (main): Include insn-attr-common.h. Don't generate
92 definitions of DELAY_SLOTS or INSN_SCHEDULING.
93 * opts.c: Include insn-attr-common.h instead of rtl.h and
96 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
98 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
99 avr-*-* and avr-*-rtems* targets.
101 * config/avr/elf.h: New file.
102 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
103 (TARGET_ASM_SELECT_SECTION): Define.
104 (INIT_SECTION_ASM_OP): Undefine.
105 (FINI_SECTION_ASM_OP): Undefine.
106 (READONLY_DATA_SECTION_ASM_OP): Undefine.
107 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
108 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
110 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
111 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
112 (MAX_OFILE_ALIGNMENT): Move to elf.h.
113 (STRING_LIMIT): Move to elf.h.
114 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
115 (ASM_DECLARE_OBJECT_NAME): Remove.
117 (ASM_OUTPUT_SKIP): Remove.
118 (DWARF2_DEBUGGING_INFO): Remove.
119 (OBJECT_FORMAT_ELF): Remove.
120 (USER_LABEL_PREFIX): Remove.
121 (ASM_OUTPUT_EXTERNAL): Remove.
122 (ASM_OUTPUT_ASCII): Remove.
123 (TYPE_ASM_OP): Remove.
124 (SIZE_ASM_OP): Remove.
125 (WEAK_ASM_OP): Remove.
126 (STRING_ASM_OP): Remove.
127 (SET_ASM_OP): Remove.
128 (ASM_WEAKEN_LABEL): Remove.
129 (TYPE_OPERAND_FMT): Remove.
130 (ASM_DECLARE_FUNCTION_SIZE): Remove.
131 (ASM_FINISH_DECLARE_OBJECT): Remove.
132 (NO_DOLLAR_IN_LABEL): Remove.
133 (ASM_GENERATE_INTERNAL_LABEL): Remove.
134 (ASM_OUTPUT_CASE_LABEL): Remove.
135 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
136 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
137 (gas_output_ascii): Remove.
138 (gas_output_limited_string): Remove.
139 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
140 * config/avr/avr-protos.h
141 (gas_output_ascii): Remove prototye.
142 (gas_output_limited_string): Remove prototype.
144 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
147 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
150 2011-06-27 Jan Hubicka <jh@suse.cz>
152 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
153 node instead of references in node.
155 2011-06-27 Richard Henderson <rth@redhat.com>
157 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
158 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
161 2011-06-27 Jakub Jelinek <jakub@redhat.com>
163 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
165 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
166 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
167 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
168 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
169 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
170 (evaluate_stmt, execute_fold_all_builtins): Handle
171 BUILT_IN_ASSUME_ALIGNED.
172 * tree-ssa-dce.c (propagate_necessity): Likewise.
173 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
174 call_may_clobber_ref_p_1): Likewise.
175 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
176 (expand_builtin_assume_aligned): New function.
177 * doc/extend.texi (__builtin_assume_aligned): Document.
180 * cselib.c (promote_debug_loc): If cselib_preserve_constants
181 and l has two DEBUG_INSN owned locs instead of just one, adjust
182 the second location's setting_insn too.
184 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
187 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
189 2011-06-27 Nick Clifton <nickc@redhat.com>
191 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to
192 convert bit position of highest bit set into a count of the high
195 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
197 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
199 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
202 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
205 2011-06-27 Richard Guenther <rguenther@suse.de>
207 PR tree-optimization/49394
208 * passes.c (execute_one_pass): Restore current_pass after
209 applying IPA transforms.
211 2011-06-27 Kai Tietz <ktietz@redhat.com>
213 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
214 out of type precision after operation.
215 (find_bswap): Take for limit value the integer auto-
216 promotion into account.
218 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
220 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
221 forward scan as well.
223 2011-06-27 Tristan Gingold <gingold@adacore.com>
226 * config/vms/vms-protos.h: New file.
227 * config/vms/vms-crtlmap.map: New file.
228 * config/vms/vms.c: New file.
229 * config/vms/make-crtlmap.awk: New file.
230 * config/vms/vms-crtl.h: File removed.
231 * config/vms/vms-crtl-64.h: File removed.
232 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
233 * config/alpha/vms64.h: Do not include vms-crtl-64.h
234 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
235 clear some builtins on VMS. Calls vms_patch_builtins.
236 (avms_asm_output_external): Remove.
237 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
238 (struct crtl_name_spec): Remove
239 (DO_CTRL_NAMES): Remove.
240 * config/ia64/vms.h (struct crtl_name_spec): Remove
241 (DO_CTRL_NAMES): Remove.
242 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
243 clear some builtins on VMS. Calls vms_patch_builtins.
244 (ia64_asm_output_external): Remove DO_CRTL_NAME.
245 * config/ia64/vms64.h: Do not include vms-crtl-64.h
246 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles,
249 2011-06-27 Tristan Gingold <gingold@adacore.com>
251 * config/alpha/alpha.c (alpha_end_function): Always generate .end
254 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
256 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
257 the function receives nonlocal gotos.
259 2011-06-27 Richard Guenther <rguenther@suse.de>
261 PR tree-optimization/49536
262 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
263 For non-scalar inner types use a scalar type according to
264 the scalar inner mode.
266 2011-06-27 Richard Guenther <rguenther@suse.de>
268 PR tree-optimization/49365
269 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
271 2011-06-27 Richard Guenther <rguenther@suse.de>
273 PR tree-optimization/49169
274 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
275 the alignment of function decls.
277 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
280 * config/darwin.c (darwin_mergeable_string_section): Place string
281 constants in '.cstring' rather than '.const' when CF/NSStrings are
284 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
286 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
287 (emit_save_register_window): Likewise.
288 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
289 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
290 Swap back %o7/%i7 in register naming.
292 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
295 * config/darwin.c (darwin_override_options): Improve warning when
296 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
297 is given with fpie/fPIE.
298 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
299 * config/darwin9.h (PIE_SPEC): New.
301 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
303 * timevar.c (timevar_print): Increase width for display of timevar
306 2011-06-24 Jakub Jelinek <jakub@redhat.com>
309 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
310 instead of TYPE_CHAIN for chain_next for types.
312 2011-06-24 Richard Henderson <rth@redhat.com>
314 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
315 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
316 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
317 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
318 (sparc_flat_expand_prologue): Emit individual instructions
319 instead of one of the above.
321 2011-06-24 Easwaran Raman <eraman@google.com>
323 PR rtl-optimization/49429
325 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
326 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
327 used to copy y into x.
328 * calls.c (initialize_argument_information): Mark
329 an argument addressable if it is passed by invisible reference.
330 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
331 if it is passed by reference.
333 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
335 PR rtl-optimization/49504
336 * rtlanal.c (nonzero_bits1): Properly handle addition or
337 subtraction of a pointer in Pmode if pointers extend unsigned.
338 (num_sign_bit_copies1): Likewise.
340 2011-06-24 Martin Jambor <mjambor@suse.cz>
342 PR tree-optimizations/49516
343 * tree-sra.c (sra_modify_assign): Choose the safe path for
344 aggregate copies if we also did scalar replacements.
346 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
349 * config/arm/predicates.md (add_operator): New.
350 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage
353 2011-06-24 Andi Kleen <ak@linux.intel.com>
355 * tree-sra.c (type_internals_preclude_sra_p): Add msg
356 parameter. Split up ifs and report reason in *msg.
358 (find_var_candiate): Add msg variable.
359 Split up ifs and report reason to reject.
360 (find_param_candidates): Add msg variable.
361 Pass msg to type_internals_preclude_sra_p.
363 2011-06-23 Jeff Law <law@redhat.com>
366 * reload.h (reload): Change to return a bool.
367 * ira.c (ira): If requested by reload, run a fast DCE pass after
368 reload has completed. Fix comment typo.
369 * reload1.c (need_dce): New file scoped static.
370 (reload): Set reload_completed here. Return whether or not a DCE
371 pass after reload is needed.
372 (delete_dead_insn): Set need_dce as needed.
375 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
376 to detect threading through joiner block. If there was already
377 an edge to the new target, then do not change the PHI nodes.
379 2011-06-23 Jakub Jelinek <jakub@redhat.com>
381 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
382 get_pointer_alignment to see if base isn't sufficiently aligned.
384 2011-06-23 Jan Hubicka <jh@suse.cz>
386 PR tree-optimize/49373
387 * tree-pass.h (all_late_ipa_passes): Declare.
388 * cgraphunit.c (init_lowered_empty_function): Fix properties.
389 (cgraph_optimize): Execute late passes; remove unreachable funcions
390 after materialization.
391 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
393 * passes.c (all_late_ipa_passes): Declare.
394 (dump_passes, register_pass): Handle late ipa passes.
395 (init_optimization_passes): Move ipa_pta to late passes; schedule
396 fixup_cfg at beggining of all_passes.
397 (apply_ipa_transforms): New function.
398 (execute_one_pass): When doing simple ipa pass, apply all transforms.
400 2011-06-23 Joseph Myers <joseph@codesourcery.com>
402 * params.c: Include common/common-target.h. Don't include tm.h.
403 (lang_independent_params): Move from toplev.c.
404 (global_init_params): New.
405 * params.h (global_init_params): Declare.
406 * target.def (default_params): Move to common-target.def.
407 * toplev.c (lang_independent_options): Remove.
408 (lang_independent_params): Move to params.c.
409 (general_init): Use global_init_params.
410 * common/common-target.def (option_default_params): Move from
412 * common/config/ia64/ia64-common.c: Include params.h.
413 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
415 * common/config/rs6000/rs6000-common.c: Include params.h.
416 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
418 * common/config/sh/sh-common.c: Include params.h.
419 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
421 * common/config/spu/spu-common.c: Include params.h.
422 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
424 * config/ia64/ia64.c (ia64_option_default_params,
425 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
426 * config/rs6000/rs6000.c (rs6000_option_default_params,
427 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
428 * config/sh/sh.c (sh_option_default_params,
429 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
430 * config/spu/spu.c (spu_option_default_params,
431 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
432 * Makefile.in (OBJS): Remove params.o.
433 (OBJS-libcommon-target): Add params.o.
434 (params.o, $(common_out_object_file)): Update dependencies.
435 * doc/tm.texi: Regenerate.
437 2011-06-23 Alan Modra <amodra@gmail.com>
440 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
441 invocation for 2011-06-09 changes.
443 2011-06-22 Jakub Jelinek <jakub@redhat.com>
446 * omp-low.c (expand_omp_for_static_nochunk): Only
447 use n ceil/ nthreads size for the first
448 n % nthreads threads in the team instead of
449 all threads except for the last few ones which
450 get less work or none at all.
453 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
456 2011-06-22 Richard Guenther <rguenther@suse.de>
458 PR tree-optimization/49493
459 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
460 Refer to the alias target of variables.
461 (associate_varinfo_to_alias_1): Remove.
462 (ipa_pta_execute): Do not associate aliases with anything.
463 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
464 (cgraph_function_node): Likewise.
465 (cgraph_function_or_thunk_node): Likewise.
466 (varpool_variable_node): Likewise.
468 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
470 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect
472 * config.gcc (arm*-*-linux*): Default to gnu tls.
473 (arm*-*-*): Add --with-tls option.
474 (all_defaults): Add 'tls'.
476 2011-06-22 Richard Henderson <rth@redhat.com>
478 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
479 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
480 (dwarf2out_frame_debug_cfa_window_save): Rename from
481 dwarf2out_window_save; make static.
482 * tree.h (dwarf2out_window_save): Don't declare.
484 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
485 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
486 (emit_save_register_window): Rename from gen_save_register_window;
487 emit the insn and add REG_CFA_* notes.
488 (sparc_expand_prologue): Update to match.
489 * config/sparc/sparc.md (save_register_window_1): Simplify from
490 save_register_window<P:mode>.
492 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
495 * config/i386/i386.md (*lea_general_2): Always allow SImode.
496 (*lea_general_2_zext): Likewise.
497 (imul to lea peepholes): Use const359_operand and check
498 TARGET_PARTIAL_REG_STALL.
500 * config/i386/predicates.md (const359_operand): New.
502 2011-06-22 Michael Matz <matz@suse.de>
504 * cgraphunit.c (assemble_thunk): Use correct return type.
506 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
507 Dmitry Melnik <dm@ispras.ru>
509 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
510 (neon_output_shift_immediate): Ditto.
511 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
513 (neon_output_shift_immediate): Ditto.
514 * config/arm/neon.md (vashl<mode>3): Modified constraint.
515 (vashr<mode>3_imm): New insn pattern.
516 (vlshr<mode>3_imm): Ditto.
517 (vashr<mode>3): Modified constraint.
518 (vlshr<mode>3): Ditto.
519 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
521 (imm_for_neon_rshift_operand): Ditto.
522 (imm_lshift_or_reg_neon): Ditto.
523 (imm_rshift_or_reg_neon): Ditto.
525 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
527 2011-06-22 Jakub Jelinek <jakub@redhat.com>
529 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
530 builtin calls even if likelyvalue is not CONSTANT.
531 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
532 Return get_value_for_expr of first operand
533 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
534 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
535 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
536 their non-checking counterparts.
537 (call_may_clobber_ref_p_1): Likewise.
538 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
539 like their non-checking counterparts.
540 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
541 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
542 like their non-checking counterparts.
543 (find_func_clobbers): Likewise.
544 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
545 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
547 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
548 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
549 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
550 of base type reference as argument.
551 (resolve_addr_in_expr): Likewise. Fix keep computation.
552 (convert_descriptor_to_signed): Renamed to...
553 (convert_descriptor_to_mode): ... this. For wider types convert
554 to unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to
556 (typed_binop): New function.
557 (scompare_loc_descriptor, ucompare_loc_descriptor,
558 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
559 default to unsigned type instead of signed.
562 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
563 (gimple_build_debug_source_bind_stat): New prototype.
564 (gimple_build_debug_source_bind): Define.
565 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
566 gimple_debug_source_bind_get_value,
567 gimple_debug_source_bind_get_value_ptr,
568 gimple_debug_source_bind_set_var,
569 gimple_debug_source_bind_set_value): New inlines.
570 * gimple.c (gimple_build_debug_source_bind_stat): New function.
571 * gimple-pretty-print.c (dump_gimple_debug): Handle
572 GIMPLE_DEBUG_SOURCE_BIND.
573 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
574 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
575 * tree-parloops.c (eliminate_local_variables,
576 separate_decls_in_region): Likewise.
577 (separate_decls_in_region_debug): Renamed from
578 separate_decls_in_region_debug_bind. Handle
579 gimple_debug_source_bind_p.
580 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
582 (DECL_HAS_DEBUG_ARGS_P): Define.
583 (struct tree_function_decl): Add has_debug_args_flag field.
584 * tree.c (debug_args_for_decl): New variable.
585 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
586 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
587 (rewrite_debug_stmt_uses): New function.
588 (rewrite_stmt): Use it to rewrite debug stmt uses.
589 * rtl.def (DEBUG_PARAMETER_REF): New.
590 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
591 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
593 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
594 * print-rtl.c (print_rtx): Likewise.
595 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
596 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
597 debug stmts in the first bb.
598 * tree-inline.c (remap_ssa_name): If remapping default def
599 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
600 a source bind debug stmt.
601 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
602 (maybe_move_debug_stmts_to_successors): Likewise.
603 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
604 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
605 debug args vector from old_decl to new_decl.
606 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
607 or modified parameters, add debug bind stmts before call
608 setting DEBUG_EXPR_DECL which is remembered in debug args
610 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
611 on DECL_DEBUG_EXPRs from debug args vector.
612 (expand_debug_source_expr): New function.
613 (expand_debug_locations): Use it for source bind insns.
614 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
615 * var-tracking.c (prepare_call_arguments): Add debug args
616 to call_arguments if any.
617 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
618 output_loc_operands, output_loc_operands_raw,
619 resolve_addr_in_expr, compare_loc_operands): Handle
620 DW_OP_GNU_parameter_ref.
621 (get_ref_die_offset, parameter_ref_descriptor): New functions.
622 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
623 (gen_subprogram_die): Handle parameters identified by
626 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
628 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
629 * doc/install.texi (Configuration): Document --with-tls.
630 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
631 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
632 (arm_tls_descseq_addr): New.
633 (legitimize_tls_address): Add tlsdesc support.
634 (arm_cannot_copy_insn_p): Check for tlscall.
635 (arm_emit_tls_decoration): Likewise.
636 * config/arm/arm.h (TARGET_GNU2_TLS): New.
637 (OPTION_DEFAULT_SPECS): Add with-tls support.
638 * config/arm/arm.md (R1_REGNUM): Define.
640 * config/arm/arm.opt (tls_type): New enumeration type and values.
641 (mtls-dialect): New switch.
642 * config/arm/arm-opts.h (enum tls_type): New.
644 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
646 * attribs.c (register_attribute): Added assert to check that all
647 attribute specs are registered with a name that is not empty and
648 does not start with '_'.
649 (decl_attributes): Avoid the lookup of the "naked" attribute spec
650 if the function has no attributes.
651 * tree.c (is_attribute_with_length_p): Removed.
652 (is_attribute_p): Removed.
653 (private_is_attribute_p): New.
654 (private_lookup_attribute): New.
655 (lookup_attribute): Removed.
656 (lookup_ident_attribute): New.
657 (remove_attribute): Require the first argument to be in the form
658 'text', not '__text__'. Updated asserts.
659 (merge_attributes): Use lookup_ident_attributes instead of
661 (merge_dllimport_decl_attributes): Use remove_attribute.
662 (attribute_list_contained): Likewise.
663 (attribute_list_equal): Immediately return 1 if the arguments are
665 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
666 'int'. Require the first argument to be in the form 'text', not
667 '__text__'. Require the second argument to be an identifier.
668 (lookup_attribute): Made inline. Require the first argument to be
669 in the form 'text', not '__text__'.
670 (private_is_attribute_p, private_lookup_attribute): New.
673 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
675 * builtins.c: Add sync_ or SYNC__ to builtin names.
676 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
677 * omp-low.c: Add sync_ or SYNC__ to builtin names.
679 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
682 * config/avr/avr.md (extzv): New expander.
684 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
685 * config/avr/constraints.md (C04): New constraint.
686 * doc/md.texi (Machine Constraints): Document it.
688 2011-06-21 Jakub Jelinek <jakub@redhat.com>
691 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
692 unsignedp argument instead of 1 for clrsb_optab.
693 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
694 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
695 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
696 * optabs.c (widen_leading): Call widen_operand and expand_unop
697 with 0 as unsignedp argument instead of 1 for clrsb_optab.
698 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
700 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
702 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
704 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
706 * gensupport.c (add_define_attr): New static function.
707 (is_predicable): Allow multi-alternative lists for the "predicable"
709 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
710 (process_one_cond_exec): Call alter_attrs_for_insn.
711 * doc/md.texi (Defining Attributes): Mention some standard names.
712 (Conditional Execution): Update documentation for "predicable".
714 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
715 __builtin_clrsbll): Document.
716 * doc/rtl.texi (clrsb): New entry.
717 * optabs.c (widen_leading): Renamed from widen_clz. New argument
718 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
719 (expand_unop): Handle clrsb_optab.
720 (init_optabs): Initialize it.
721 * optabs.h (enum optab_index): New entry OTI_clrsb.
722 (clrsb_optab): Define.
723 * genopinit.c (optabs): Add an entry for it.
724 * builtins.c (expand_builtin): Handle clrsb builtin functions.
725 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
726 BUILT_IN_CLRSBLL): New.
727 * rtl.def (CLRSB): New code.
728 * dwarf2out.c (mem_loc_descriptor): Handle it.
729 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
730 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
732 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
733 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
734 (__ctzDI2): Move declaration.
735 * config/bfin/bfin.md (clrsbsi2): New expander.
736 (signbitssi2): Use the CLRSB rtx.
737 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
738 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
740 2011-06-21 Richard Guenther <rguenther@suse.de>
742 * ipa-inline-transform.c (inline_transform): Fix previous change.
744 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
746 PR tree-optimization/49478
747 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
748 with constant operand.
750 2011-06-21 Richard Guenther <rguenther@suse.de>
752 * ipa-inline-transform.c (inline_transform): Fix typo.
754 2011-06-21 Richard Guenther <rguenther@suse.de>
756 PR tree-optimization/49483
757 * tree-vect-stmts.c (vectorizable_assignment): Also handle
758 VIEW_CONVERT_EXPR conversions.
760 2011-06-21 Joseph Myers <joseph@codesourcery.com>
762 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
763 * config/avr/avr-tables.opt: New file (generated).
764 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
765 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
767 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
768 (avr_option_override): Don't process -mmcu= argument here. Set
769 avr_current_device using avr_mcu_index.
770 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
771 * config/avr/avr.opt (mmcu=): Use Enum.
772 * config/avr/t-avr (avr-devices.o): Update dependencies.
773 ($(srcdir)/config/avr/avr-tables.opt): New.
774 * target.def (help): Remove.
775 * doc/tm.texi.in (TARGET_HELP): Remove.
776 * doc/tm.texi: Regenerate.
777 * opts.c: Don't include target.h.
778 (common_handle_option): Don't call targetm.help.
779 * system.h (TARGET_HELP): Poison.
780 * Makefile.in (opts.o): Update dependencies.
782 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
784 * config/usegld.h: New file.
785 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
786 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
787 (LIB_SPEC): Likewise. Search /lib.
788 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
789 (RDYNAMIC_SPEC): Handle GNU ld.
790 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
792 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
793 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
794 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
795 (STACK_CHECK_STATIC_BUILTIN): Define.
796 * config/sol2.opt (compat-bsd): Remove.
797 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
798 * config/sol2-bi.h: New file.
799 * config/sol2-gld.h: Remove.
800 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
801 (NO_DBX_BNSYM_ENSYM): Remove.
802 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
803 (STACK_CHECK_STATIC_BUILTIN): Remove.
804 Test USE_GLD instead of TARGET_GNU_LD.
805 * config/i386/sol2-10.h: Rename to ...
806 * config/i386/sol2-bi.h .. this.
807 (SUBTARGET_EXTRA_SPECS): Redefine.
808 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
809 (MULTILIB_DEFAULTS): Remove.
810 (DEFAULT_ARCH32_P): Define.
811 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
812 (ARCH64_SUBDIR): Define.
813 Test USE_GLD instead of TARGET_GNU_LD.
814 (I386_EMULATION): Rename to ...
815 (ARCH32_EMULATION): ... this.
816 (X86_64_EMULATION): Rename to ...
817 (ARCH64_EMULATION): ... this.
818 (TARGET_LD_EMULATION): Remove.
819 (LINK_ARCH_SPEC): Remove.
820 * config/i386/sol2-gas.h: Remove.
821 * config/i386/t-sol2-10: Rename to ...
822 * config/i386/t-sol2-64: ... this.
823 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
824 (AS_SPARC64_FLAG): Define.
825 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
826 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
827 depending on TARGET_CPU_DEFAULT.
828 (CPP_CPU_SPEC): Redefine.
829 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
830 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
831 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
832 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
833 ASM_ARCH_DEFAULT_SPEC): Redefine.
834 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
835 LINK_ARCH_DEFAULT_SPEC.
836 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
837 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
838 (ARCH64_SUBDIR): Define.
839 (LINK_ARCH64_SPEC): Redefine.
840 (CC1_SPEC): Redefine.
841 (OPTION_DEFAULT_SPECS): Redefine.
842 (MULTILIB_DEFAULTS): Define.
843 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
844 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
845 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
846 (NO_DBX_BNSYM_ENSYM): Remove.
847 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
848 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
849 (TARGET_ASM_NAMED_SECTION): Likewise.
850 (STACK_CHECK_STATIC_BUILTIN): Remove.
851 * config/sparc/sol2-bi.h: Remove.
852 * config/sparc/sol2-gas-bi.h: Remove.
853 * config/sparc/sol2-gas.h: Remove.
854 * config/sparc/sol2-gld-bi.h: Remove.
855 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
857 (*-*-solaris2*): ... here.
859 2011-06-21 Christian Bruel <christian.bruel@st.com>
862 * ipa-inline.c (can_inline_edge_p): Check
863 !DECL_DISREGARD_INLINE_LIMITS.
865 2011-06-21 Christian Bruel <christian.bruel@st.com>
868 * cgraphunit.c (process_function_and_variable_attributes): warn when
869 always_inline functions that are not inline.
870 * ipa-inline-transform.c (inline_transform): Always call
872 * tree-inline.c (tree_inlinable_function_p): Use error instead
874 (expand_call_inline): Likewise.
876 2011-06-21 Jakub Jelinek <jakub@redhat.com>
878 * Makefile.in (dg_target_exps): Set.
879 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
880 instead of 7, try to divide it more evenly.
882 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
885 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
886 (avx256_split_unaligned_store): New definition.
887 (ix86_option_override_internal): Enable avx256 unaligned load/store
888 splitting only when avx256_split_unaligned_load/store is set.
890 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
892 * regrename.c (scan_rtx_reg): Handle the case where we write to an
893 open chain in a smaller mode without failing the entire block.
895 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
898 * combine.c (cant_combine_insn_p): Don't check zero/sign
899 extended hard registers.
901 2011-06-21 Alan Modra <amodra@gmail.com>
903 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
904 CONST high part large-toc address.
905 (rs6000_tls_referenced_p): Make static.
906 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
908 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
911 * combine.c (cant_combine_insn_p): Check zero/sign extended
914 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
917 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
918 one of the operands is a register.
920 2011-06-20 Kai Tietz <ktietz@redhat.com>
922 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
923 operations in combination with binary and.
925 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
927 * regrename.c (do_replace): Don't update notes.
929 2011-06-20 Alan Modra <amodra@gmail.com>
931 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
932 of toc-relative address in CONST.
933 (rs6000_delegitimize_address): Recognize changed address.
934 (rs6000_legitimize_reload_address): Likewise.
935 (rs6000_emit_move): Don't force these constants to memory.
936 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
937 toc-relative address in CONST.
938 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
939 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
941 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
943 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
944 (count_trailing_zeros): Likewise.
946 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
949 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
950 .init_array can be used with .ctors on targets.
951 * configure: Regenerated.
953 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
955 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
956 if the element type is volatile.
958 2011-06-18 Jan Hubicka <jh@suse.cz>
960 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
962 (lto_symtab_resolve_can_prevail_p): Likewise.
963 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
964 * cgraphbuild.c (record_reference): Remove extra body alias code.
965 (mark_load): Likewise.
966 (mark_store): Likewise.
967 * cgraph.h (varpool_node): Remove extra_name filed;
968 add alias_of and extraname_alias.
969 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
970 (varpool_alias_aliased_node): New inline function.
971 (varpool_variable_node): New function.
972 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
973 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
974 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
975 (input_varpool_node): Likewise.
976 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
977 (varpool_externally_visible_p): Remove extra body alias code.
978 (function_and_variable_visibility): Likewise.
979 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
980 (ipa_pta_execute): Use it.
981 * varpool.c (varpool_remove_node): Remove extra name alias code.
982 (varpool_mark_needed_node): Likewise.
983 (varpool_analyze_pending_decls): Analyze aliases.
984 (assemble_aliases): New functoin.
985 (varpool_assemble_decl): Use it.
986 (varpool_create_variable_alias): New function.
987 (varpool_extra_name_alias): Rewrite.
988 (varpool_for_node_and_aliases): New function.
990 2011-06-18 Jakub Jelinek <jakub@redhat.com>
993 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
994 last_arg_constant and last argument doesn't match its predicate,
995 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
996 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
997 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
998 spelling of error message.
999 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
1000 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
1001 const_0_to_255_operand instead of const_int_operand.
1004 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1006 * config/i386/sse.md (blendbits): Remove mode attribute.
1007 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1008 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1009 Check integer value of operand 3 in insn constraint.
1011 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
1013 PR rtl-optimization/48542
1014 * reload.c (find_equiv_reg): Stop looking when finding a
1016 * reload1.c (reload_as_needed): Invalidate all reload
1017 registers when crossing a setjmp-type call.
1019 2011-06-16 Jeff Law <law@redhat.com>
1021 * tree-ssa-threadupdate.c (struct redirection_data): New field
1023 (THREAD_TARGET2): Define.
1024 (redirection_data_eq): Also check that the intermediate edge is equal.
1025 (lookup_redirection_data): Drop useless argument. Extract the
1026 outgoing_edge and intermediate edge from E. Callers updated.
1027 (copy_phi_args, update_destination_phis): New functions.
1028 (fix_duplicate_block_edges): Likewise.
1029 (create_edge_and_update_destination_phis): Duplicate all the edges
1030 hung off e->aux. Use copy_phi_args.
1031 (create_duplicates): Use fix_duplicate_block_edges.
1032 (fixup_template_block): Likewise.
1033 (redirect_edges): If necessary, redirect the joiner block's incoming
1034 edge to the duplicate of the joiner block.
1035 (thread_block): Don't muck up loops when threading through a joiner
1037 (thread_through_loop_header): Handle threading through a joiner block.
1038 (mark_threaded_blocks, register_jump_thread): Likewise.
1039 * tree-flow.h (register_jump_thread): Add new argument. Callers
1041 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
1042 (thread_across_edge): Handle threading through a joiner block.
1044 2011-06-16 Martin Jambor <mjambor@suse.cz>
1046 PR tree-optimization/49343
1047 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
1048 calculate offset, provide 2nd operand for the new COMPONENT_REF.
1050 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
1052 * config/darwin-protos.h (machopic_select_rtx_section): Move to
1053 inside RTX_CODE ifdef.
1055 2011-06-16 Tom de Vries <tom@codesourcery.com>
1058 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
1059 Disallow NULL pointer for pointer arithmetic.
1061 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1065 2011-06-10 Wei Guozhi <carrot@google.com>
1068 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1069 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1070 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1072 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1074 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1075 (arm_legitimate_ldrd_p): New prototype.
1076 (arm_output_ldrd): New prototype.
1077 * config/arm/arm.c (arm_check_ldrd_operands): New function.
1078 (arm_legitimate_ldrd_p): New function.
1079 (arm_output_ldrd): New function.
1081 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
1084 * doc/tm.texi.in: Update Copyright date.
1085 * doc/tm.texi: Regenerate.
1086 * targhooks.c (default_setup_incoming_varargs): Replace
1087 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1088 (default_pretend_outgoing_varargs_named): Likewise.
1089 (hook_pass_by_reference_must_pass_in_stack): Likewise.
1090 (hook_callee_copies_named): Likewise.
1091 (default_function_arg_advance): Likewise.
1092 (default_function_arg): Likewise.
1093 (default_function_incoming_arg): Likewise.
1094 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1095 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1096 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1097 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1098 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1099 * targhooks.h (default_setup_incoming_varargs): Likewise.
1100 (default_pretend_outgoing_varargs_named): Likewise.
1101 (hook_pass_by_reference_must_pass_in_stack): Likewise.
1102 (hook_callee_copies_named): Likewise.
1103 (default_function_arg_advance): Likewise.
1104 (default_function_arg): Likewise.
1105 (default_function_incoming_arg): Likewise.
1106 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1107 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1108 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1109 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1110 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1111 * target.def (pass_by_reference): Likewise.
1112 (setup_incoming_varargs, strict_argument_naming): Likewise.
1113 (pretend_outgoing_varargs_named, callee_copies): Likewise.
1114 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
1115 (function_incoming_arg): Likewise.
1116 * target.h: Don't include "tm.h" .
1117 (cumulative_args_t): New typedef.
1118 [GCC_TM_H] (get_cumulative_args): New static inline function.
1119 [GCC_TM_H] (pack_cumulative_args): Likewise.
1120 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
1121 argument type with cumulative_args_t.
1122 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
1123 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
1124 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
1125 (frv_arg_partial_bytes, frv_function_arg): Likewise.
1126 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
1127 (frv_function_arg_1): Likewise.
1128 * config/s390/s390.c (s390_pass_by_reference): Likewise.
1129 (s390_function_arg_advance, s390_function_arg): Likewise.
1130 * config/m32c/m32c.c (m32c_function_arg): Likewise.
1131 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
1132 (m32c_strict_argument_naming): Likewise.
1133 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
1134 (spu_function_arg_advance): Likewise.
1135 (spu_setup_incoming_varargs): Likewise. Make static.
1136 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
1138 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
1139 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1140 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
1141 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
1142 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
1143 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
1144 (mep_pass_by_reference, mep_function_arg): Likewise.
1145 (mep_function_arg_advance): Likewise.
1146 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1147 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
1148 (m32r_function_arg, m32r_function_arg_advance): Likewise.
1149 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
1150 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
1151 (ix86_function_arg, ix86_pass_by_reference): Likewise.
1152 (ix86_setup_incoming_varargs): Likewise.
1153 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
1154 (sh_strict_argument_naming): Likewise.
1155 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
1156 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
1157 (sh_function_arg_advance, sh_function_arg): Likewise.
1158 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
1159 (pdp11_function_arg_advance): Likewise.
1160 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
1162 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
1163 * config/avr/avr.c (avr_function_arg): Likewise.
1164 (avr_function_arg_advance): Likewise.
1165 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
1166 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
1167 (xtensa_function_arg_1): Likewise.
1168 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
1170 (xstormy16_function_arg): Likewise.
1171 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
1172 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
1173 (fr30_function_arg_advance): Likewise.
1174 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1175 (lm32_function_arg, lm32_function_arg_advance): Likewise.
1176 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1177 (moxie_function_arg, moxie_function_arg_advance): Likewise.
1178 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
1179 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
1180 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
1181 (cris_function_arg, cris_function_incoming_arg): Likewise.
1182 (cris_function_arg_advance, cris_function_arg_1): Likewise.
1183 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
1184 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
1185 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
1186 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1187 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
1188 (mn10300_arg_partial_bytes): Likewise.
1189 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
1190 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
1191 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
1192 (ia64_function_arg_1): Likewise.
1193 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
1194 (m68k_function_arg): Likewise.
1195 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
1196 (rs6000_function_arg, setup_incoming_varargs): Likewise.
1197 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
1198 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
1199 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
1200 (picochip_arg_advance): Likewise.
1201 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1202 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
1203 (mcore_function_arg_advance): Likewise.
1204 * config/score/score.c (score_pass_by_reference): Likewise.
1205 (score_function_arg_advance): Likewise.
1206 (score_arg_partial_bytes): Likewise. Make static.
1207 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
1208 * config/arm/arm.c (arm_arg_partial_bytes): Replace
1209 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1210 (arm_function_arg, arm_function_arg_advance): Likewise.
1211 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
1212 * config/pa/pa.c (pa_pass_by_reference): Likewise.
1213 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
1214 (pa_function_arg): Likewise.
1215 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
1216 (mips_function_arg, mips_function_arg_advance): Likewise.
1217 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
1218 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
1219 * config/vax/vax.c (vax_function_arg): Likewise.
1220 (vax_function_arg_advance): Likewise.
1221 * config/h8300/h8300.c (h8300_function_arg): Likewise.
1222 (h8300_function_arg_advance): Likewise.
1223 * config/v850/v850.c (v850_pass_by_reference): Likewise.
1224 (v850_strict_argument_naming, v850_function_arg): Likewise.
1225 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
1226 (v850_setup_incoming_varargs): Likewise.
1227 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1228 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
1229 (mmix_function_arg, mmix_pass_by_reference): Likewise.
1230 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
1232 * config/bfin/bfin.c (setup_incoming_varargs): Replace
1233 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1234 (bfin_function_arg_advance, bfin_function_arg): Likewise.
1235 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
1236 * calls.c (emit_call_1): Change type of args_so_far to
1237 cumulative_args_t. Changed all callers.
1238 (initialize_argument_information): Likewise.
1239 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
1240 * dse.c (get_call_args): Likewise.
1241 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1242 * function.c (pass_by_reference, reference_callee_copied): Likewise.
1243 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
1244 New member args_so_far_v. Changed all users.
1245 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
1246 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1247 * config/mips/mips.c (mips_output_args_xfer): Likewise.
1248 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1249 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1250 * config/microblaze/microblaze.c (microblaze_expand_prologue):
1252 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
1253 m32r_pass_by_reference.
1255 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
1257 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
1258 argument to be a VEC of statements.
1259 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
1260 assert that pattern statements have to have their vector type set.
1261 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
1262 Change the first argument to be a VEC of statements. Update
1264 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
1265 (vect_handle_widen_mult_by_const): New function.
1266 (vect_recog_widen_mult_pattern): Change the first argument to be a
1267 VEC of statements. Update documentation. Check that the constant is
1268 INTEGER_CST. Support multiplication by a constant that fits an
1269 intermediate type - call vect_handle_widen_mult_by_const.
1270 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
1271 call. Handle additional pattern statements if necessary.
1273 2011-06-16 Nick Clifton <nickc@redhat.com>
1276 * config.gcc: Set cpu_type to v850 for any V850 architecture.
1277 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
1278 md_file, extra_modes, out_file and extra_options are these are all
1279 deduced from cpu_type.
1281 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
1283 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
1284 truncation mask to 63.
1286 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
1290 * longlong.h: Add AVR support:
1291 (count_leading_zeros): New macro.
1292 (count_trailing_zeros): New macro.
1293 (COUNT_LEADING_ZEROS_0): New macro.
1294 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
1295 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
1296 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
1297 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
1298 (LIB2FUNCS_EXCLUDE): Add _clz.
1299 * config/avr/libgcc.S (XCALL): Move up in file.
1300 (XJMP): New C Macro.
1301 (DEFUN): New asm macro.
1302 (ENDF): New asm macro.
1303 (__ffssi2): New function.
1304 (__ffshi2): New function.
1305 (__loop_ffsqi2): New function.
1306 (__ctzsi2): New function.
1307 (__ctzhi2): New function.
1308 (__clzdi2): New function.
1309 (__clzsi2): New function.
1310 (__clzhi2): New function.
1311 (__paritydi2): New function.
1312 (__paritysi2): New function.
1313 (__parityhi2): New function.
1314 (__parityqi2): New function.
1315 (__popcounthi2): New function.
1316 (__popcountsi2): New function.
1317 (__popcountdi2): New function.
1318 (__popcountqi2): New function.
1319 (__bswapsi2): New function.
1320 (__bswapdi2): New function.
1321 (__ashldi3): New function.
1322 (__ashrdi3): New function.
1323 (__lshrdi3): New function.
1324 Fix suspicous lines.
1326 2011-06-16 Richard Guenther <rguenther@suse.de>
1328 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
1330 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
1332 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
1333 equality compares against zero for the lower bit.
1335 2011-06-16 Jakub Jelinek <jakub@redhat.com>
1337 PR tree-optimization/49419
1338 * tree-vrp.c (execute_vrp): Call init_range_assertions
1339 before estimate_numbers_of_iterations, call
1340 free_number_of_iterations_estimates before calling
1341 remove_range_assertions.
1343 2011-06-16 Revital Eres <revital.eres@linaro.org>
1345 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
1346 (struct partial_schedule): Add rows_length field.
1347 (verify_partial_schedule): Check rows_length.
1348 (ps_insert_empty_row): Handle rows_length.
1349 (create_partial_schedule): Likewise.
1350 (free_partial_schedule): Likewise.
1351 (reset_partial_schedule): Likewise.
1352 (create_ps_insn): Remove rest_count argument.
1353 (remove_node_from_ps): Update rows_length.
1354 (add_node_to_ps): Update rows_length and call create_ps_insn
1355 without passing row_rest_count.
1356 (rotate_partial_schedule): Update rows_length.
1358 2011-06-16 Revital Eres <revital.eres@linaro.org>
1360 * ddg.c (add_intra_loop_mem_dep): New function.
1361 (build_intra_loop_deps): Call it.
1363 2011-06-13 Jeff Law <law@redhat.com>
1365 * df-problems.c (df_lr_local_compute): Manually CSE
1366 PIC_OFFSET_TABLE_REGNUM.
1367 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
1368 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
1370 2011-06-13 Jan Hubicka <jh@suse.cz>
1372 * cgraphunit.c (handle_alias_pairs): New function.
1373 (cgraph_finalize_compilation_unit): Use it.
1374 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
1375 as externally visible.
1377 2011-06-15 Richard Guenther <rguenther@suse.de>
1379 * expr.c (expand_expr_real_2): Reduce all integral types to
1381 (expand_expr_real_1): Likewise.
1383 2011-06-15 Martin Jambor <mjambor@suse.cz>
1385 PR tree-optimization/48613
1386 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1387 ipa_node_params_vector is NULL.
1389 2011-06-15 Jakub Jelinek <jakub@redhat.com>
1392 * dwarf2out.c (dw_loc_list_node): Add force field.
1393 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
1394 location in the list, even if it is modified before first real insn.
1395 (output_loc_list): Emit empty ranges with force flag set.
1396 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
1398 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
1401 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
1402 (fence_to_rewind). Use it to notice when bookkeeping will be placed
1403 above a fence. Update comments.
1404 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
1405 placed just above it. Do not allow NULL place_to_insert.
1407 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
1409 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
1410 (slpeel_tree_peel_loop_to_edge): Don't call
1411 remove_dead_stmts_from_loop.
1412 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1413 remove irrelevant pattern statements. For irrelevant statements
1414 check if it is the last statement of a detected pattern, use
1415 corresponding pattern statement instead.
1416 (destroy_loop_vec_info): No need to remove pattern statements,
1417 only free stmt_vec_info.
1418 (vect_transform_loop): For irrelevant statements check if it is
1419 the last statement of a detected pattern, use corresponding
1420 pattern statement instead.
1421 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
1422 pattern statements. Set basic block for the new statement.
1423 (vect_pattern_recog): Update documentation.
1424 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
1425 operands of pattern statements.
1426 (vectorizable_call): Fix printing. In case of a pattern statement
1427 use the lhs of the original statement when creating a dummy
1428 statement to replace the original call.
1429 (vect_analyze_stmt): For irrelevant statements check if it is
1430 the last statement of a detected pattern, use corresponding
1431 pattern statement instead.
1432 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
1433 statements use gsi of the original statement.
1435 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1437 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
1438 common/common-target-def.h.
1439 * target.def (default_target_flags, handle_option,
1440 supports_split_stack, optimization_table, init_struct,
1441 except_unwind_info, unwind_tables_default, have_named_sections):
1442 Move to common/common-target.def.
1443 * target.h (enum opt_levels, struct default_options): Move to
1444 common/common-target.h.
1445 * targhooks.c (default_except_unwind_info,
1446 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1447 default_target_handle_option, empty_optimization_table): Move to
1448 common/common-targhooks.c.
1449 * targhooks.h (default_except_unwind_info,
1450 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1451 default_target_handle_option, empty_optimization_table): Move to
1452 common/common-targhooks.h.
1453 * common/common-target-def.h: Include common/common-targhooks.h.
1454 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
1456 * common/common-target.def (handle_option, option_init_struct,
1457 option_optimization_table, default_target_flags,
1458 except_unwind_info, supports_split_stack, unwind_tables_default,
1459 have_named_sections): Move from target.def.
1460 (HOOK_PREFIX): Undefine at end of file.
1461 * common/common-target.h: Include input.h.
1462 (enum opt_levels, struct default_options): Move from target.h.
1463 * common/common-targhooks.c, common/common-targhooks.h: New.
1464 * config.gcc (target_has_targetm_common): Default to yes.
1465 (moxie*): Set target_has_targetm_common=no.
1466 (hppa*-*-*): Don't set target_has_targetm_common=yes.
1467 * doc/tm.texi: Regenerate.
1468 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
1469 (C_TARGET_DEF_H): Add common/common-targhooks.h.
1470 (GCC_OBJS): Remove vec.o.
1471 (OBJS): Remove hooks.o and vec.o.
1472 (OBJS-libcommon-target): Add vec.o, hooks.o and
1473 common/common-targhooks.o.
1474 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
1475 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
1476 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
1477 cfglayout.o, $(out_object_file), $(common_out_object_file)):
1478 Update dependencies.
1479 (common/common-targhooks.o): New.
1480 * common/config/default-common.c: Include tm.h. Add FIXME comment.
1481 * common/config/pa/pa-common.c: Include more headers. Take
1482 copyright dates from pa.c.
1483 (pa_option_optimization_table, pa_handle_option,
1484 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
1485 TARGET_HANDLE_OPTION): Move from pa.c.
1486 * common/config/alpha/alpha-common.c,
1487 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
1488 common/config/bfin/bfin-common.c,
1489 common/config/cris/cris-common.c,
1490 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
1491 common/config/h8300/h8300-common.c,
1492 common/config/i386/i386-common.c,
1493 common/config/ia64/ia64-common.c,
1494 common/config/iq2000/iq2000-common.c,
1495 common/config/lm32/lm32-common.c,
1496 common/config/m32c/m32c-common.c,
1497 common/config/m32r/m32r-common.c,
1498 common/config/m68k/m68k-common.c,
1499 common/config/mcore/mcore-common.c,
1500 common/config/mep/mep-common.c,
1501 common/config/microblaze/microblaze-common.c,
1502 common/config/mips/mips-common.c,
1503 common/config/mmix/mmix-common.c,
1504 common/config/mn10300/mn10300-common.c,
1505 common/config/pdp11/pdp11-common.c,
1506 common/config/picochip/picochip-common.c,
1507 common/config/rs6000/rs6000-common.c,
1508 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
1509 common/config/score/score-common.c, common/config/sh/sh-common.c,
1510 common/config/sparc/sparc-common.c,
1511 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
1512 common/config/vax/vax-common.c,
1513 common/config/xstormy16/xstormy16-common.c,
1514 common/config/xtensa/xtensa-common.c: New.
1515 * config/alpha/alpha.c: Include common/common-target.h.
1516 (alpha_option_optimization_table, alpha_handle_option,
1517 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1518 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
1519 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
1520 * config/arm/arm.c (arm_option_optimization_table,
1521 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1522 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
1524 * config/avr/avr.c (avr_option_optimization_table,
1525 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1527 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
1528 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
1529 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
1530 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
1531 * config/cris/cris.c (cris_option_optimization_table,
1532 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1533 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
1535 * config/fr30/fr30.c (fr30_option_optimization_table,
1536 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
1538 * config/frv/frv.c (frv_option_optimization_table,
1539 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
1540 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
1541 * config/h8300/h8300.c (h8300_option_optimization_table,
1542 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1543 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
1544 * config/i386/i386-protos.h (ix86_handle_option): Declare.
1545 * config/i386/i386.c: Include common/common-target.h.
1546 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
1547 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
1548 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
1549 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
1550 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
1551 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
1552 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
1553 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
1554 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
1555 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
1556 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
1557 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
1558 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
1559 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
1560 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
1561 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
1562 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
1563 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
1564 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
1565 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
1566 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
1567 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
1568 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
1569 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
1570 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
1571 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
1572 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
1573 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
1574 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
1575 ix86_option_optimization_table, ix86_option_init_struct,
1576 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
1577 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1578 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
1580 * config/i386/t-i386 (i386.o): Update dependencies.
1581 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
1582 * config/ia64/ia64.c (ia64_option_optimization_table,
1583 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1584 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1585 ia64_handle_option): Move to ia64-common.c.
1586 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
1587 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
1588 * config/lm32/lm32.c (lm32_option_optimization_table,
1589 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1591 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
1593 * config/m32r/m32r.c (m32r_option_optimization_table,
1594 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1595 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1596 m32r_handle_option): Move to m32r-common.c.
1597 (m32r_memory_move_cost): Remove comment referring to
1598 TARGET_HANDLE_OPTION.
1599 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
1600 Move to m68k-common.c.
1601 * config/mcore/mcore.c (mcore_option_optimization_table,
1602 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1603 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
1604 * config/mep/mep.c (mep_option_optimization_table,
1605 mep_handle_option, TARGET_HANDLE_OPTION,
1606 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
1607 Move to mep-common.c.
1608 * config/microblaze/microblaze.c
1609 (microblaze_option_optimization_table,
1610 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1611 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
1612 * config/mips/mips.c (mips_handle_option,
1613 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1614 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
1616 * config/mmix/mmix.c (mmix_option_optimization_table,
1617 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1618 Move to mmix-common.c.
1619 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
1620 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
1621 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1622 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
1623 * config/pa/pa.c: Include common/common-target.h.
1624 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1625 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1626 pa_handle_option): Move to pa-common.c.
1627 (pa_option_override): Use targetm_common.except_unwind_info.
1628 (pa_asm_output_mi_thunk, pa_function_section): Use
1629 targetm_common.have_named_sections.
1630 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
1631 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1632 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1633 pdp11_handle_option, pdp11_option_init_struct): Move to
1635 * config/picochip/picochip.c (picochip_option_optimization_table,
1636 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
1637 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
1638 * config/rs6000/rs6000.c: Include common/common-target.h.
1639 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
1640 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
1641 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
1642 rs6000_handle_option): Move to rs6000-common.c.
1643 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
1644 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
1645 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1646 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
1647 * config/s390/s390.c (processor_flags_table,
1648 s390_option_optimization_table, s390_option_init_struct,
1649 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
1650 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1651 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
1652 * config/s390/s390.h (processor_flags_table): Declare.
1653 * config/score/score.c (score_option_optimization_table,
1654 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1655 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
1656 score_handle_option): Move to score-common.c.
1657 * config/sh/sh.c (sh_option_optimization_table,
1658 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1659 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1660 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
1661 * config/sparc/sparc.c: Include common/common-target.h.
1662 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1663 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
1664 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
1665 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
1666 spu_option_init_struct): Move to spu-common.c.
1667 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
1668 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
1669 * config/v850/v850.c (small_memory_physical_max,
1670 v850_handle_memory_optionn v850_handle_option,
1671 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1672 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
1674 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
1675 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
1676 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1677 Move to xtensa-common.c.
1678 * cfglayout.c: Include common/common-target.h.
1679 (fixup_reorder_chain): Use targetm_common.have_named_sections.
1680 * cfgrtl.c: Include common/common-target.h.
1681 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
1682 targetm_common.have_named_sections.
1683 * dbxout.c: Include common/common-target.h.
1684 (dbxout_function_end): Use targetm_common.have_named_sections.
1685 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
1686 targetm_common.except_unwind_info.
1687 * dwarf2out.c: Include common/common-target.h.
1688 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1689 dwarf2out_begin_prologue, dwarf2out_frame_init,
1690 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
1691 targetm_common.except_unwind_info.
1692 * except.c: Include common/common-target.h.
1693 (init_eh, finish_eh_generation,
1694 output_one_function_exception_table): Use
1695 targetm_common.except_unwind_info.
1696 (switch_to_exception_section): Use targetm_common.have_named_sections.
1697 * explow.c: Include common/common-target.h.
1698 * expr.c: Include common/common-target.h.
1699 (build_personality_function): Use targetm_common.except_unwind_info.
1700 * function.c: Include common/common-target.h.
1701 (expand_function_end): Use targetm_common.except_unwind_info.
1702 * haifa-sched.c: Include common/common-target.h.
1703 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
1704 * lto-opts.c: Include common/common-target.h instead of target.h.
1705 (lto_reissue_options): Use targetm_common.handle_option.
1706 * opts.c: Include common/common-target.h.
1707 (target_handle_option): Use targetm_common.handle_option.
1708 (init_options_struct): Update comment referring to
1709 targetm.target_option.optimization. Use
1710 targetm_common.default_target_flags,
1711 targetm_common.unwind_tables_default and
1712 targetm_common.option_init_struct.
1713 (default_options_optimization): Use
1714 targetm_common.option_optimization_table.
1715 (finish_options): Use targetm_common.except_unwind_info,
1716 targetm_common.unwind_tables_default,
1717 targetm_common.have_named_sections and
1718 targetm_common.supports_split_stack.
1719 * toplev.c: Include common/common-target.h.
1720 (process_options): Use targetm_common.have_named_sections.
1721 * tree-tailcall.c: Include common/common-target.h.
1722 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
1723 * tree.c: Include common/common-target.h.
1724 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
1725 * varasm.c: Include common/common-target.h.
1726 (resolve_unique_section, hot_function_section,
1727 default_function_section): Use targetm_common.have_named_sections.
1729 2011-06-14 Easwaran Raman <eraman@google.com>
1731 PR rtl-optimization/44194
1732 * dse.c: Include tree-flow.h
1733 (insn_info): Add new field non_frame_wild_read.
1734 (group_info): Add new fields escaped_n and escaped_p.
1735 (kill_on_calls): New variable.
1736 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
1737 (dse_step0): Initialize kill_on_calls.
1738 (can_escape): New function.
1739 (set_usage_bits): Add additional parameter; record information
1740 about escaped locations.
1741 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
1742 (dse_step2_nospill): Set kill_on_calls based on
1743 group->escaped_n and group->escaped_n.
1744 (add_wild_read): Refactor into...
1745 (reset_active_stores): ... New function, and
1746 (free_read_records): ... New function.
1747 (add_non_frame_wild_read): New function.
1748 (scan_insn): Call add_non_frame_wild_read on non-const calls.
1749 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
1750 (dse_step5_nospill): Call scan_reads_nospill for instructions
1751 marked as non_frame_wild_read.
1752 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
1754 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1756 * common/common-target-def.h, common/common-target.def,
1757 common/common-target.h, common/config/default-common.c,
1758 common/config/pa/pa-common.c: New files.
1759 * Makefile.in (common_out_file, common_out_object_file,
1760 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
1761 (OBJS-libcommon-target): Include $(common_out_object_file).
1762 (prefix.o): Update dependencies.
1763 ($(common_out_object_file), common/common-target-hooks-def.h,
1764 s-common-target-hooks-def-h): New.
1765 (s-tm-texi): Also check timestamp on common-target.def.
1766 (build/genhooks.o): Update dependencies.
1767 * config.gcc (common_out_file, target_has_targetm_common): Define.
1768 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
1769 TARGET_ALWAYS_STRIP_DOTDOT.
1770 * configure.ac (common_out_object_file): Define.
1771 (common_out_file, common_out_object_file): Substitute.
1772 (common): Create directory.
1773 * configure: Regenerate.
1774 * doc/tm.texi.in (targetm_common): Document.
1775 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
1776 * doc/tm.texi: Regenerate.
1777 * genhooks.c (hook_array): Also include common/common-target.def.
1778 * prefix.c (tm.h): Don't include.
1779 (common/common-target.h): Include.
1780 (ALWAYS_STRIP_DOTDOT): Don't define.
1781 (update_path): Use targetm_common.always_strip_dotdot instead of
1782 ALWAYS_STRIP_DOTDOT.
1783 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
1785 2011-06-14 David Li <davidxl@google.com>
1787 * passes.c (execute_function_todo): Remove TODO_dump_func.
1788 (execute_one_pass): Remove TODO_dump_func.
1789 (execute_function_dump): New function.
1790 * tree-vrp.c: Remove TODO_dump_func.
1791 * regrename.c: Remove TODO_dump_func.
1792 * fwprop.c: Remove TODO_dump_func.
1793 * tree-into-ssa.c: Remove TODO_dump_func.
1794 * tree-complex.c: Remove TODO_dump_func.
1795 * tracer.c: Remove TODO_dump_func.
1796 * tree-loop-distribution.c: Remove TODO_dump_func.
1797 * postreload-gcse.c: Remove TODO_dump_func.
1798 * postreload.c: Remove TODO_dump_func.
1799 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
1800 * tree-tailcall.c: Remove TODO_dump_func.
1801 * ipa-cp.c: Remove TODO_dump_func.
1802 * final.c: Remove TODO_dump_func.
1803 * tree-emutls.c: Remove TODO_dump_func.
1804 * omp-low.c: Remove TODO_dump_func.
1805 * tree-ssa-dse.c: Remove TODO_dump_func.
1806 * tree-ssa-uncprop.c: Remove TODO_dump_func.
1807 * auto-inc-dec.c: Remove TODO_dump_func.
1808 * reorg.c: Remove TODO_dump_func.
1809 * tree-ssa-copyrename.c: Remove TODO_dump_func.
1810 * tree-ssa-ccp.c: Remove TODO_dump_func.
1811 * compare-elim.c: Remove TODO_dump_func.
1812 * mode-switching.c: Remove TODO_dump_func.
1813 * modulo-sched.c: Remove TODO_dump_func.
1814 * tree-call-cdce.c: Remove TODO_dump_func.
1815 * cse.c: Remove TODO_dump_func.
1816 * web.c: Remove TODO_dump_func.
1817 * tree-stdarg.c: Remove TODO_dump_func.
1818 * lto-streamer-out.c: Remove TODO_dump_func.
1819 * tree-ssa-math-opts.c: Remove TODO_dump_func.
1820 * tree-ssa-dom.c: Remove TODO_dump_func.
1821 * tree-nrv.c: Remove TODO_dump_func.
1822 * loop-init.c: Remove TODO_dump_func.
1823 * gimple-low.c: Remove TODO_dump_func.
1824 * ipa-inline.c: Remove TODO_dump_func.
1825 * tree-ssa-sink.c: Remove TODO_dump_func.
1826 * jump.c: Remove TODO_dump_func.
1827 * ifcvt.c: Remove TODO_dump_func.
1828 * tree-ssa-loop.c: Remove TODO_dump_func.
1829 * recog.c: Remove TODO_dump_func.
1830 * dse.c: Remove TODO_dump_func.
1831 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
1832 * matrix-reorg.c: Remove TODO_dump_func.
1833 * tree-eh.c: Remove TODO_dump_func.
1834 * regmove.c: Remove TODO_dump_func.
1835 * function.c: Remove TODO_dump_func.
1836 * tree-vectorizer.c: Remove TODO_dump_func.
1837 * ipa-split.c: Remove TODO_dump_func.
1838 * gcse.c: Remove TODO_dump_func.
1839 * tree-if-conv.c: Remove TODO_dump_func.
1840 * init-regs.c: Remove TODO_dump_func.
1841 * tree-ssa-phiopt.c: Remove TODO_dump_func.
1842 * implicit-zee.c: Remove TODO_dump_func.
1843 * lower-subreg.c: Remove TODO_dump_func.
1844 * bt-load.c: Remove TODO_dump_func.
1845 * tree-dfa.c: Remove TODO_dump_func.
1846 * except.c: Remove TODO_dump_func.
1847 * emit-rtl.c: Remove TODO_dump_func.
1848 * store-motion.c: Remove TODO_dump_func.
1849 * cfgexpand.c: Remove TODO_dump_func.
1850 * tree-cfgcleanup.c: Remove TODO_dump_func.
1851 * cfgcleanup.c: Remove TODO_dump_func.
1852 * tree-ssa-pre.c: Remove TODO_dump_func.
1853 * tree-sra.c: Remove TODO_dump_func.
1854 * tree-mudflap.c: Remove TODO_dump_func.
1855 * tree-ssa-copy.c: Remove TODO_dump_func.
1856 * cfglayout.c: Remove TODO_dump_func.
1857 * tree-ssa-forwprop.c: Remove TODO_dump_func.
1858 * tree-ssa-dce.c: Remove TODO_dump_func.
1859 * ira.c: Remove TODO_dump_func.
1860 * tree-ssa.c: Remove TODO_dump_func.
1861 * integrate.c: Remove TODO_dump_func.
1862 * tree-optimize.c: Remove TODO_dump_func.
1863 * tree-ssa-phiprop.c: Remove TODO_dump_func.
1864 * tree-object-size.c: Remove TODO_dump_func.
1865 * combine.c: Remove TODO_dump_func.
1866 * bb-reorder.c: Remove TODO_dump_func.
1867 * cprop.c: Remove TODO_dump_func.
1868 * var-tracking.c: Remove TODO_dump_func.
1869 * tree-profile.c: Remove TODO_dump_func.
1870 * tree-vect-generic.c: Remove TODO_dump_func.
1871 * reg-stack.c: Remove TODO_dump_func.
1872 * sched-rgn.c: Remove TODO_dump_func.
1873 * tree-ssa-structalias.c: Remove TODO_dump_func.
1874 * tree-switch-conversion.c: Remove TODO_dump_func.
1875 * tree-cfg.c: Remove TODO_dump_func.
1876 * tree-ssa-reassoc.c: Remove TODO_dump_func.
1877 * combine-stack-adj.c: Remove TODO_dump_func.
1878 * dce.c: Remove TODO_dump_func.
1879 * tree-ssanames.c: Remove TODO_dump_func.
1880 * regcprop.c: Remove TODO_dump_func.
1882 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
1885 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
1886 and properly handle result not in Pmode.
1888 2011-06-14 Robert Millan <rmh@gnu.org>
1890 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
1891 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
1894 * config/i386/kfreebsd-gnu64.h: New file.
1895 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
1896 with `i386/kfreebsd-gnu64.h'.
1898 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
1899 (GNU_USER_LINK_EMULATION64): New macros.
1900 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
1901 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
1902 of hardcoding `elf_i386' and `elf_x86_64'.
1904 2011-06-14 Nick Clifton <nickc@redhat.com>
1907 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
1910 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
1912 2011-06-14 Jakub Jelinek <jakub@redhat.com>
1915 * tree.h (DECL_NONSHAREABLE): Define.
1916 (struct tree_decl_common): Change decl_common_unused to
1917 decl_nonshareable_flag.
1918 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
1919 Ignore vars with DECL_NONSHAREABLE bit set.
1920 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
1921 on stores to automatic aggregate vars.
1923 PR rtl-optimization/49390
1925 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
1927 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1930 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
1931 Tom de Vries <tom@codesourcery.com>
1934 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
1935 Document changed semantics.
1936 (max_stmt_executions, max_stmt_executions_int): Declare.
1937 * tree-data-ref.c (estimated_loop_iterations)
1938 (estimated_loop_iterations_int): Move functions...
1939 * tree-ssa-loop-niter.c (estimated_loop_iterations)
1940 (estimated_loop_iterations_int): here.
1941 (record_estimate): Change nb_iterations_upper_bound and
1942 nb_iterations_estimate semantics.
1943 (max_stmt_executions, max_stmt_executions_int): New function.
1944 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
1945 (max_stmt_executions_tree): this.
1946 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
1947 estimated_loop_iterations_tree.
1948 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
1949 max_stmt_executions_int instead of estimated_loop_iterations_int.
1950 * predict.c (predict_loops): Idem.
1951 * tree-parloops.c (parallelize_loops): Idem.
1952 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
1953 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
1954 (init_omega_for_ddr_1): Idem.
1955 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
1956 (loop_prefetch_arrays): Idem
1957 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
1958 max_stmt_executions instead of estimated_loop_iterations.
1959 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
1960 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
1961 instead of nb_iterations_upper_bound.
1963 2011-06-13 Jan Hubicka <jh@suse.cz>
1965 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
1967 2011-06-14 Richard Henderson <rth@redhat.com>
1970 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
1971 (based_loc_descr): Assert it's true.
1972 (compute_frame_pointer_to_fb_displacement): Set it, rather than
1973 aborting immediately.
1975 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
1976 Mingfeng Wu <mingfeng@faraday-tech.com>
1978 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
1980 2011-06-13 Jan Hubicka <jh@suse.cz>
1982 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
1984 2011-06-13 Jan Hubicka <jh@suse.cz>
1986 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
1987 similarly to DECL_COMDAT.
1988 * cgraphunit.c (cgraph_analyze_function): Likewise.
1989 * ipa.c (function_and_variable_visibility): Likewise.
1991 2011-06-13 Jan Hubicka <jh@suse.cz>
1993 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
1994 BINFO_VIRTUALS when streaming for ltrans unit.
1996 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
1998 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
1999 (movdi_internal64): Same.
2001 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
2004 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
2005 a set of similar patterns, where the MATCH_OPERAND for the function
2006 argument is replaced with individual references to hardware registers.
2007 (save_fpregs_<mode>): Ditto
2008 (restore_gpregs_<mode>): Ditto
2009 (return_and_restore_gpregs_<mode>): Ditto
2010 (return_and_restore_fpregs_<mode>): Ditto
2011 (return_and_restore_fpregs_aix_<mode>): Ditto
2013 2011-06-13 Jan Hubicka <jh@suse.cz>
2015 * ipa-utils.c (postorder_stack): New structure.
2016 (ipa_reverse_postorder): Handle aliases.
2018 2011-06-13 Jan Hubicka <jh@suse.cz>
2020 * ipa-inline.c (reset_edge_caches): Walk aliases.
2021 (update_caller_keys): Do not test inlinability of aliases.
2022 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
2023 (do_estimate_growth): Fix typo.
2025 2011-06-13 Jan Hubicka <jh@suse.cz>
2027 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
2028 (can_remove_node_now_p): ... here; handle same comdat groups.
2029 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
2030 (inline_call): Update use of can_remove_node_now_p.
2032 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2034 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
2035 condition to disallow non-identical memory locations.
2036 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
2037 preference to bit manipulation instructions.
2039 2011-06-13 Jan Hubicka <jh@suse.cz>
2041 * cgraph.c (cgraph_for_node_thunks_and_aliases,
2042 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
2043 (nonremovable_p): New function.
2044 (cgraph_can_remove_if_no_direct_calls_p): New function.
2045 (used_from_object_file_p): New functoin.
2046 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
2047 references from aliases.
2048 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
2049 * ipa-inline.c (check_caller_edge): New function.
2050 (want_inline_function_called_once_p): Use it; accept aliases called
2052 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
2054 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2057 * config/arm/neon.md (vec_pack_trunc): Set the lengths
2058 correctly for the case with Quad vectors.
2060 2011-06-13 Jakub Jelinek <jakub@redhat.com>
2061 Ira Rosen <ira.rosen@linaro.org>
2063 PR tree-optimization/49352
2064 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
2065 all, make sure loop_use_stmt after the loop is a def stmt of a used
2066 SSA_NAME that is the only one defined inside of the loop. Don't
2067 check for COND_EXPR and GIMPLE_BINARY_RHS.
2068 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
2069 check_reduction is true.
2071 2011-06-11 Jan Hubicka <jh@suse.cz>
2074 * ipa.c (cgraph_externally_visible_p): Check resolution info.
2076 2011-06-11 Jan Hubicka <jh@suse.cz>
2079 * ipa-inline-transform.c: Include tree-pass.h
2080 (inline_transform): Set TODO_update_ssa_only_virtuals.
2081 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
2083 2011-06-11 Jan Hubicka <jh@suse.cz>
2086 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
2089 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
2091 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
2092 Take number of iterations to peel into account for equally frequent
2093 misalignment values.
2095 2011-06-11 Jan Hubicka <jh@suse.cz>
2097 * lto-streamer-out.c (produce_symtab): Stream out the newly
2098 represented aliases.
2100 2011-06-11 Jan Hubicka <jh@suse.cz>
2102 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
2104 (ipa_update_after_lto_read): Likewise.
2105 (ipa_write_node_info): Do not sream call_with_var_arguments.
2106 (ipa_read_node_info): Likewise.
2108 2011-06-11 Jan Hubicka <jh@suse.cz>
2110 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
2112 2011-06-11 Jan Hubicka <jh@suse.cz>
2114 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
2115 (lto_symtab_resolve_can_prevail_p): Likewise.
2116 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
2117 * cgraph.c (same_body_aliases_done): New global var.
2118 (cgraph_same_body_alias_1): Rename to ...
2119 (cgraph_create_function_alias): ... this one; reorg to new
2121 (cgraph_same_body_alias): Use cgraph_create_function_alias;
2122 record references when asked to.
2123 (cgraph_add_thunk): Fix formating.
2124 (cgraph_get_node): Kill same body alias code.
2125 (cgraph_node_for_asm): Likewise.
2126 (cgraph_remove_same_body_alias): Remove.
2127 (cgraph_remove_node): Kill same body alias code.
2128 (cgraph_mark_address_taken_node): Mark also the aliased function
2129 as having address taken.
2130 (dump_cgraph_node): Dump same body aliases.
2131 (cgraph_for_node_thunks_and_aliases): Update for new alias
2133 (cgraph_for_node_and_aliases): Likewise.
2134 * cgraph.h (same_body): Kll pointer.
2135 (same_body_alias): Update comment.
2136 (same_body_aliases_done): Declare.
2137 (cgraph_remove_same_body_alias): Remove declaration.
2138 (cgraph_create_function_alias): Declare.
2139 (cgraph_process_same_body_aliases): Declare.
2140 (cgraph_function_with_gimple_body_p): Check for alias.
2141 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
2142 (cgraph_alias_aliased_node): New function.
2143 (cgraph_function_node): Update for new aliases.
2144 (cgraph_function_or_thunk_node): Likewise.
2145 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
2146 (inline_call): Remove dead aliases.
2147 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
2148 name hack for same body aliases.
2149 (clone_of_p): Look through aliases.
2150 (verify_cgraph_node): Verify aliases.
2151 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
2152 (cgraph_process_same_body_aliases): New function.
2153 (process_function_and_variable_attributes): Disable weakref warning on
2155 (cgraph_analyze_functions): Handle aliases.
2156 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
2157 (assemble_thunks): Rename to ...
2158 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
2159 (cgraph_expand_function): Remove alias output code.
2160 (cgraph_output_in_order): Skip aliases.
2161 (cgraph_preserve_function_body_p): Aliases don't need preserving.
2162 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
2163 (ipa_record_reference): Do not assert on alias references.
2164 (ipa_ref_has_aliases_p): New function.
2165 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
2166 (ipa_ref_has_aliases_p): Declare.
2167 * lto-cgraph.c (lto_output_node): Handle aliases.
2168 (input_node): Likewise.
2169 * lto-streamer-out.c (lto_output): Skip aliases.
2170 (produce_symtab): Kill same_body_alias code.
2171 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
2172 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
2173 * ipa-inline.c (update_caller_keys): Walk aliases.
2174 (inline_small_functions): Fix thinko in previous patch.
2175 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
2176 (function_and_variable_visibility): Do not walk same body aliases.
2177 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
2178 (ipa_pta_execute): Use it.
2180 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2182 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
2183 (*vec_dupv2df): Rename from vec_dupv2df.
2184 (vec_dupv2df): New expander.
2186 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2188 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
2190 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2192 * config/i386/i386.md: Use default value in "isa" attribute.
2193 * config/i386/sse.md: Ditto.
2194 * config/i386/mmx.md: Ditto.
2196 2011-06-10 Wei Guozhi <carrot@google.com>
2199 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2200 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2201 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2203 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2205 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2206 (arm_legitimate_ldrd_p): New prototype.
2207 (arm_output_ldrd): New prototype.
2208 * config/arm/arm.c (arm_check_ldrd_operands): New function.
2209 (arm_legitimate_ldrd_p): New function.
2210 (arm_output_ldrd): New function.
2212 2011-06-10 David Li <davidxl@google.com>
2214 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2215 * passes.c (passr_eq): New function.
2216 (create_pass_tab): New function.
2217 (pass_traverse): New function.
2218 (dump_one_pass): New function.
2219 (dump_pass_list): New function.
2220 (dump_passes): New function.
2222 2011-06-10 Jan Hubicka <jh@suse.cz>
2224 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
2225 setting the nothrow flag.
2226 * ipa-reference.c (propagate): Skip aliases.
2227 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
2228 (propagate_nothrow): Skip aliases; do not update cgraph.
2229 (local_pure_const): Do not update cgraph.
2230 * tree-profile.c (tree_profiling): Do fixup_cfg.
2232 2011-06-10 Jan Hubicka <jh@suse.cz>
2234 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
2235 (cgraph_local_node_p): ... here; handle aliases.
2236 (has_addr_references_p): Break out from ...;
2237 (cgraph_remove_unreachable_nodes) ... here.
2239 2011-06-10 Jan Hubicka <jh@suse.cz>
2241 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
2242 * common.opt (flag_inline_functions_called_once): Do not
2245 2011-06-10 Jan Hubicka <jh@suse.cz>
2247 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
2248 (ipcp_initialize_node_lattices): Do not deal with aliases;
2249 Do not try to propagate through thunks.
2250 (ipcp_change_tops_to_bottom): Do not deal with aliases.
2252 2011-06-10 Jan Hubicka <jh@suse.cz>
2254 * ipa-prop.c (ipa_write_node_info): Stream jump functions
2256 (ipa_read_node_info): Likewise.
2258 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2261 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
2262 (build_and_insert_call): Likewise.
2263 (build_and_insert_ref): New.
2264 (gimple_expand_builtin_pow): Minor cleanup.
2265 (gimple_expand_builtin_cabs): New.
2266 (execute_cse_sincos): Add case for BUILT_IN_CABS.
2268 2011-06-10 Jan Hubicka <jh@suse.cz>
2270 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
2271 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
2272 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
2273 (ipcp_propagate_stage): Skip aliases when propagating.
2274 (ipcp_need_redirect_p): Skip aliases.
2275 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
2276 collect_callers_of_node.
2277 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
2279 (ipa_compute_jump_functions): Look through aliases.
2281 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2283 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
2285 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2287 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
2289 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
2291 2011-06-10 Jan Hubicka <jh@suse.cz>
2293 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
2294 Update call of gimple_get_virt_method_for_binfo.
2295 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
2296 refuse_thunks parameter.
2297 (gimple_fold_call): Update.
2298 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
2300 2011-06-10 Jan Hubicka <jh@suse.cz>
2302 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
2303 (not_all_callers_have_enough_arguments_p): ... this one; turn into
2304 worker for cgraph_for_node_and_aliases.
2305 (convert_callers_for_node): Break out from ...
2306 (convert_callers): ... here.
2307 (modify_function): Use collect_callers_of_node.
2308 (ipa_early_sra): Use cgraph_for_node_and_aliases.
2310 2011-06-10 Richard Guenther <rguenther@suse.de>
2312 PR tree-optimization/49361
2313 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
2314 when not already in gimple form.
2316 2011-06-10 Richard Guenther <rguenther@suse.de>
2319 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
2320 FOR_EACH_PHI_OR_STMT_USE.
2322 2011-06-10 Jan Hubicka <jh@suse.cz>
2324 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
2325 (clone_inlined_nodes): ... here.
2326 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
2327 to real destination prior inlining.
2328 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2329 can_early_inline_edge_p, want_early_inline_function_p,
2330 want_early_inline_function_p, want_inline_small_function_p,
2331 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
2332 edge_badness, update_all_callee_keys, lookup_recursive_calls,
2333 add_new_edges_to_heap, inline_small_functions, flatten_function,
2334 inline_always_inline_functions, early_inline_small_functions): Use
2335 cgraph_function_or_thunk_node.
2336 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
2337 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
2338 (do_estimate_edge_growth_1): Break out from ...
2339 (do_estimate_growth) ... here; walk aliases.
2340 (inline_generate_summary): Skip aliases.
2342 2011-06-10 Richard Guenther <rguenther@suse.de>
2344 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
2345 forward when combining, visit inserted stmts when a stmt was changed.
2347 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
2349 * tree.h (error_operand_p): Add.
2350 * dbxout.c (dbxout_type_fields): Use the latter.
2351 * c-decl.c (add_stmt): Likewise.
2352 * gimplify.c (omp_add_variable, omp_notice_variable,
2353 gimplify_scan_omp_clauses): Likewise.
2355 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
2357 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
2358 when a value is actually passed in regs.
2360 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
2361 Laurent Rougé <laurent.rouge@menta.fr>
2363 * doc/invoke.texi (SPARC options): Add -mflat.
2364 * config/sparc/sparc.opt: Likewise.
2365 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
2366 (sparc_flat_expand_prologue): Declare.
2367 (sparc_flat_expand_epilogue): Likewise.
2368 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
2369 (CPP_ENDIAN_SPEC): Replace with...
2370 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
2371 (CPP_SPEC): Adjust to above change.
2372 (EXTRA_SPECS): Likewise.
2373 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
2374 (INCOMING_REGNO): Likewise.
2375 (OUTGOING_REGNO): Likewise.
2376 (LOCAL_REGNO): Likewise.
2377 (SETUP_FRAME_ADDRESSES): Likewise.
2378 (FIXED_REGISTERS): Set 0 for %fp.
2379 (CALL_USED_REGISTERS): Likewise.
2380 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
2381 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
2382 (RETURN_ADDR_REGNUM): Define.
2383 (RETURN_ADDR_RTX): Use it.
2384 (INCOMING_RETURN_ADDR_REGNUM): Define.
2385 (INCOMING_RETURN_ADDR_RTX): Use it.
2386 (DWARF_FRAME_RETURN_COLUMN): Likewise.
2387 (EH_RETURN_REGNUM): Define.
2388 (EH_RETURN_STACKADJ_RTX): Use it.
2389 (EH_RETURN_HANDLER_RTX): Delete.
2390 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
2391 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
2393 (struct machine_function): Add frame_size, apparent_frame_size,
2394 frame_base_reg, frame_base_offset, n_global_fp_regs and
2395 save_local_in_regs_p fields.
2396 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
2397 sparc_frame_base_offset, sparc_n_global_fp_regs,
2398 sparc_save_local_in_regs_p): New macros.
2399 (sparc_option_override): Error out if -fcall-saved-REG is specified
2401 (eligible_for_restore_insn): Fix formatting.
2402 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
2403 (eligible_for_sibcall_delay): Likewise.
2404 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
2405 (sparc_legitimate_address_p): Adjust to above change.
2406 (save_global_or_fp_reg_p): New predicate.
2407 (return_addr_reg_needed_p): Likewise.
2408 (save_local_or_in_reg_p): Likewise.
2409 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
2410 (SORR_SAVE, SORR_RESTORE): Delete.
2411 (sorr_pred_t): New typedef.
2412 (sorr_act_t): New enum.
2413 (save_or_restore_regs): Rename to...
2414 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
2415 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
2416 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
2417 mechanism. Add CFI information for double-word saves in 32-bit mode.
2418 (emit_adjust_base_to_offset): New function extracted from...
2419 (emit_save_or_restore_regs): ...this. Rename the rest to...
2420 (emit_save_or_restore_regs_global_fp_regs): ...this.
2421 (emit_save_or_restore_regs_local_in_regs): New function.
2422 (gen_create_flat_frame_[123]): New functions.
2423 (sparc_expand_prologue): Use SIZE local variable. Adjust.
2424 (sparc_flat_expand_prologue): New function.
2425 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
2426 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
2427 (sparc_flat_expand_epilogue): New function.
2428 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
2429 (output_return): Likewise.
2430 (output_sibcall): Likewise.
2431 (sparc_output_mi_thunk): Likewise.
2432 (sparc_frame_pointer_required): Likewise.
2433 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
2434 function optimization.
2435 * config/sparc/sparc.md (flat): New attribute.
2436 (prologue): Add TARGET_FLAT handling.
2437 (save_register_window): Disable if TARGET_FLAT.
2438 (create_flat_frame_[123]): New patterns.
2439 (epilogue): Add TARGET_FLAT handling.
2440 (sibcall_epilogue): Likewise.
2441 (eh_return): New expander.
2442 (eh_return_internal): New insn and splitter.
2443 (return_internal): Add TARGET_FLAT handling.
2444 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
2445 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
2446 (nonlocal_goto): Add TARGET_FLAT handling.
2447 * config/sparc/t-elf: Add -mflat multilib.
2448 * config/sparc/t-leon: Likewise.
2450 2011-06-10 Jan Hubicka <jh@suse.cz>
2452 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
2453 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
2454 (self_recursive_p): Use cgraph_function_node.
2455 (propagate_pure_const): Likewise.
2456 (propagate_nothrow): Likewise.
2457 * ipa-reference.c (ipa_reference_get_not_read_global): Use
2458 cgraph_function_node.
2459 (propagate_bits): Likewise.
2460 (propagate): Likewise.
2462 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2463 Richard Earnshaw <rearnsha@arm.com>
2465 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
2466 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
2467 (*thumb2_movdi_vfp): Delete.
2468 (*arm_movdi_vfp_cortexa8): Delete.
2469 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
2470 (*movdi_vfp_cortexa8): Likewise.
2472 2011-06-10 Richard Guenther <rguenther@suse.de>
2474 * stor-layout.c (initialize_sizetypes): Give names to all
2477 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
2479 PR tree-optimization/49318
2480 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
2481 irrelevant pattern statements.
2483 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2485 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
2488 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
2491 2011-06-09 Jan Hubicka <jh@suse.cz>
2493 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
2494 do not recompute reachable flag.
2495 (cgraph_finalize_function, cgraph_analyze_functions): Set
2496 redefined_extern_inline here.
2498 2011-06-09 Jan Hubicka <jh@suse.cz>
2500 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
2501 (cgraph_only_called_directly_p): ... this one; bring offline.
2502 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
2503 varpool_used_from_object_file_p): Drop names from the declaratoin.
2504 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
2505 collect_callers_of_node): New.
2506 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
2507 (cgraph_edge_recursive_p): Use cgraph_function_node.
2508 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
2509 (cgraph_node_cannot_be_local_p_1): Break out from ...
2510 (cgraph_node_can_be_local_p): ... here; walk aliases.
2511 (cgraph_for_node_thunks_and_aliases): New function.
2512 (cgraph_for_node_and_aliases): New function.
2513 (cgraph_make_node_local_1): Break out from ...
2514 (cgraph_make_node_local) ... here; use
2515 cgraph_for_node_thunks_and_aliases.
2516 (cgraph_set_nothrow_flag_1): Break out from ...
2517 (cgraph_set_nothrow_flag) ... here;
2518 use cgraph_for_node_thunks_and_aliases.
2519 (cgraph_set_const_flag_1): Break out from ...
2520 (cgraph_set_const_flag) ... here;
2521 use cgraph_for_node_thunks_and_aliases.
2522 (cgraph_set_pure_flag_1): Break out from ...
2523 (cgraph_set_pure_flag) ... here;
2524 use cgraph_for_node_thunks_and_aliases.
2525 (cgraph_propagate_frequency_1): Break out from ...
2526 (cgraph_propagate_frequency) ... here; use
2527 cgraph_for_node_thunks_and_aliases.
2528 (cgraph_used_from_object_file_p): Do not care about aliases.
2529 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
2531 (collect_callers_of_node_1, collect_callers_of_node): New functions.
2533 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2535 PR rtl-optimization/49154
2536 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
2537 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
2538 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
2539 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
2540 * config/cris/cris.h (cris_register_move_cost): Remove
2541 !TARGET_V32 code. Tweak comments.
2543 2011-06-09 Jan Hubicka <jh@suse.cz>
2545 * cgraphbuild.c (record_eh_tables): Mark personality function as having
2548 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2550 PR rtl-optimization/49154
2551 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
2552 is a matching slot in the hashtable, assign it to classes_ptr.
2554 PR rtl-optimization/49154
2555 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
2557 * doc/tm.texi: Regenerate.
2559 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
2562 * config/sh/sh.md (UNSPEC_CHKADD): New.
2563 (chk_guard_add): New define_insn_and_split.
2564 (symGOT_load): Use chk_guard_add instead of blockage.
2566 2011-06-09 Kai Tietz <ktietz@redhat.com>
2568 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
2570 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
2572 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
2574 2011-06-09 Wei Guozhi <carrot@google.com>
2577 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
2578 (peephole2 for conditional move): Generate 16 bit instructions.
2580 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
2582 * config/i386/i386.md (*movdi_internal_rex64): Merge
2583 alternatives 6 and 8.
2585 2011-06-09 David Li <davidxl@google.com>
2587 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2588 * passes.c (passr_eq): New function.
2589 (create_pass_tab): New function.
2590 (pass_traverse): New function.
2591 (dump_one_pass): New function.
2592 (dump_pass_list): New function.
2593 (dump_passes): New function.
2595 2011-06-09 David Li <davidxl@google.com>
2597 * tree-complex.c (tree_lower_complex): Gate cleanup.
2598 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
2599 (execute_optimize_stdarg): Ditto.
2600 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
2601 (execute_cleanup_eh_1): Ditto.
2602 (execute_cleanup_eh): Ditto.
2603 * gcse.c (gate_rtl_pre): Ditto.
2604 (execute_rtl_pre): Ditto.
2605 * except.c (finish_eh_generation): Ditto.
2606 (convert_to_eh_region_ranges): Ditto.
2607 * cprop.c (one_cprop_pass): Ditto.
2609 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
2612 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
2613 in all basic blocks.
2615 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2617 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
2618 (HAVE_ENABLE_EXECUTE_STACK): Define.
2619 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
2620 (HAVE_ENABLE_EXECUTE_STACK): Define.
2621 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
2622 (HAVE_ENABLE_EXECUTE_STACK): Define.
2623 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
2624 (ENABLE_EXECUTE_STACK): Remove.
2625 (HAVE_ENABLE_EXECUTE_STACK): Define.
2626 [IN_LIBGCC2]: Don't include <windows.h>.
2627 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2628 (HAVE_ENABLE_EXECUTE_STACK): Define.
2629 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
2630 (HAVE_ENABLE_EXECUTE_STACK): Define.
2631 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
2632 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
2633 (HAVE_ENABLE_EXECUTE_STACK): Define.
2634 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
2635 (HAVE_ENABLE_EXECUTE_STACK): Define.
2636 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
2637 (HAVE_ENABLE_EXECUTE_STACK): Define.
2638 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2639 (HAVE_ENABLE_EXECUTE_STACK): Define.
2640 * config/alpha/alpha.c (alpha_trampoline_init): Test
2641 HAVE_ENABLE_EXECUTE_STACK.
2642 * config/i386/i386.c (ix86_trampoline_init): Likewise.
2643 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2644 (sparc64_initialize_trampoline): Likewise.
2645 * libgcc2.c [L_enable_execute_stack]: Remove.
2646 * system.h (ENABLE_EXECUTE_STACK): Poison.
2647 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
2648 * doc/tm.texi: Regenerate.
2649 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
2651 2011-06-09 Jakub Jelinek <jakub@redhat.com>
2654 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
2655 variable. After resetting and rescanning insn continue with previous
2658 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2660 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
2661 (gcc_cv_ld_hidden): Likewise.
2662 * configure: Regenerate.
2663 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
2664 (ix86_stack_protect_fail): Mark unused.
2665 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
2666 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
2667 [TARGET_MACHO]: Don't define.
2668 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
2669 (TARGET_STACK_PROTECT_FAIL): Likewise.
2670 (rs6000_stack_protect_fail): Mark unused.
2671 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
2672 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
2674 2011-06-08 Andi Kleen <ak@linux.intel.com>
2676 * varasm.c (get_section): Print location of other conflict
2677 for section conflicts.
2679 2011-06-08 Andi Kleen <ak@linux.intel.com>
2681 * config/i386/driver-i386.c (host_detect_local_cpu):
2682 Add model 0x2d Intel CPU.
2684 2011-06-08 Andi Kleen <ak@linux.intel.com>
2686 * reginfo.c (global_regs_decl): Add.
2687 (globalize_reg): Add decl parameter. Compute location. Pass location
2688 to warnings and add inform. Store decl in global_regs_decl.
2689 * rtl.h (globalize_reg): Update prototype.
2690 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
2692 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
2694 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
2696 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
2699 * config/sh/predicates.md (general_movsrc_operand): Check
2700 mode for memory with indexed address for QI and HImode.
2701 (general_movdst_operand): Likewise.
2703 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
2705 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
2707 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
2709 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
2710 (num_ssa_operands): Likewise.
2711 (op_iter_init_phiuse): Forward-declare.
2712 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
2714 2011-06-08 Nick Clifton <nickc@redhat.com>
2716 * doc/invoke.texi (ARM Options): Update description of
2719 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
2721 * config/i386/driver-i386.c (host_detect_local_cpu): Support
2722 unknown Intel family 0x6 CPUs.
2724 2011-06-08 Martin Jambor <mjambor@suse.cz>
2726 * tree-sra.c (mark_rw_status): Removed.
2727 (analyze_access_subtree): New parameter parent instead of
2728 mark_read and mark_write, propagate from that.
2730 2011-06-08 Julian Brown <julian@codesourcery.com>
2732 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
2733 for double-precision helper functions in hard-float mode if only
2734 single-precision arithmetic is supported in hardware.
2736 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
2738 PR rtl-optimization/49303
2739 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
2740 code_motion_path_driver returned 0 or 1.
2741 (sel_region_finish): Clear h_d_i_d.
2743 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
2745 * config/sh/sh.c (prepare_move_operands): Set pic register
2746 appropriately for global and local dynamic tls models even
2747 if flag_pic is unset.
2749 2011-06-07 Jason Merrill <jason@redhat.com>
2751 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
2753 2011-06-07 Xinliang David Li <davidxl@google.com>
2754 * passes.c (enable_disable_pass): Handle assembler name.
2755 (is_pass_explicitly_enabled_or_disabled): Ditto.
2757 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2759 PR tree-optimization/48497
2760 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
2762 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2764 PR tree-optimization/46728
2765 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
2766 to use gimple_val_nonnegative_real_p.
2767 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
2768 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
2770 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
2772 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
2774 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
2776 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
2779 2011-06-07 Richard Guenther <rguenther@suse.de>
2781 * stor-layout.c (initialize_sizetypes): Initialize all
2782 sizetypes based on target definitions.
2783 (set_sizetype): Remove.
2784 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
2785 * tree.h (set_sizetype): Remove.
2787 2011-06-07 Nick Clifton <nickc@redhat.com>
2789 * config.gcc: Unify V850 architecture options and add support for
2790 newer V850 architectures.
2791 * config/v850/t-v850e: Delete.
2793 2011-06-07 Richard Guenther <rguenther@suse.de>
2795 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
2796 Call set_sizetype from here.
2798 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
2800 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
2801 (*maddhisi4tb, *maddhisi4tt): New define_insns.
2803 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
2804 Andrew Stubbs <ams@codesourcery.com>
2806 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
2808 * doc/md.texi (Canonicalization of Instructions): Document widening
2809 multiply canonicalization.
2811 2011-06-07 Jakub Jelinek <jakub@redhat.com>
2813 PR gcov-profile/49299
2814 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
2816 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
2818 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
2820 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
2821 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
2822 vect_recog_pow_pattern): Likewise.
2823 (vect_pattern_recog_1): Remove declaration.
2824 (widened_name_p): Remove declaration. Add new argument to specify
2825 whether to check that both types are either signed or unsigned.
2826 (vect_recog_widen_mult_pattern): Update documentation. Handle
2827 unsigned patterns and multiplication by constants.
2828 (vect_pattern_recog_1): Update vect_recog_func references. Use
2829 statement information from the statement returned from pattern
2830 detection functions.
2831 (vect_pattern_recog): Update vect_recog_func reference.
2832 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
2833 multiplication by a constant use the type of the other operand.
2835 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
2837 PR rtl-optimization/49145
2838 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
2840 2011-06-06 Jakub Jelinek <jakub@redhat.com>
2843 * dwarf2out.c (native_encode_initializer): Decrement count in each
2847 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
2851 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
2852 if stmt folded into nothing.
2853 * tree-inline.c (fold_marked_statements): If a builtin at the end of
2854 a bb folded into nothing, just update cgraph edges and move to next bb.
2855 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
2856 to be NULL. Don't compute count and frequency if new_call is NULL.
2858 2011-06-04 Diego Novillo <dnovillo@google.com>
2860 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
2861 (cgraph.o): Likewise.
2862 (cgraphunit.o): Likewise.
2863 * cgraphunit.c: Include lto-streamer.h
2864 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
2866 * lto-streamer-in.c (unpack_value_fields): Call
2867 streamer_hooks.unpack_value_fields if set.
2868 (lto_materialize_tree): For unhandled nodes, first try to
2869 call lto_streamer_hooks.alloc_tree, if it exists.
2870 (lto_input_ts_decl_common_tree_pointers): Move reading of
2871 DECL_INITIAL to lto_streamer_read_tree.
2872 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
2873 (lto_streamer_read_tree): New.
2874 (lto_reader_init): Rename from lto_init_reader.
2875 Move initialization code to lto/lto.c.
2876 * lto-streamer-out.c (pack_value_fields): Call
2877 streamer_hooks.pack_value_fields if set.
2878 (lto_output_tree_ref): For tree nodes that are not normally indexable,
2879 call streamer_hooks.indexable_with_decls_p before giving up.
2880 (lto_output_ts_decl_common_tree_pointers): Move handling
2881 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
2882 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
2883 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
2884 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
2885 (lto_streamer_write_tree): New.
2886 (lto_output): Call lto_streamer_init directly.
2887 (lto_writer_init): Remove.
2888 * lto-streamer.c (streamer_hooks): New.
2889 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
2890 instead of lto_preload_common_nodes.
2891 (lto_is_streamable): Move from lto-streamer.h
2892 (lto_streamer_hooks_init): New.
2893 (streamer_hooks): New.
2894 (streamer_hooks_init): New.
2895 * lto-streamer.h (struct output_block): Forward declare.
2896 (struct lto_input_block): Likewise.
2897 (struct data_in): Likewise.
2898 (struct bitpack_d): Likewise.
2899 (struct streamer_hooks): Declare.
2900 (streamer_hooks): Declare.
2901 (lto_streamer_hooks_init): Declare.
2902 (lto_streamer_write_tree): Declare.
2903 (lto_streamer_read_tree): Declare.
2904 (streamer_hooks_init): Declare.
2905 (lto_is_streamable): Move to lto-streamer.c
2907 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2909 * longlong.h (smul_ppmm): The resulting register pair contains the
2910 higher order word first.
2912 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2914 PR tree-optimization/46728
2915 * builtins.c (powi_table): Remove.
2916 (powi_lookup_cost): Remove.
2917 (powi_cost): Remove.
2918 (expand_powi_1): Remove.
2919 (expand_powi): Remove.
2920 (expand_builtin_pow_root): Remove.
2921 (expand_builtin_pow): Remove.
2922 (expand_builtin_powi): Eliminate handling of constant exponent.
2923 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
2925 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2927 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
2929 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2931 * dce.c (reset_unmarked_insns_debug_uses): New.
2932 (delete_unmarked_insns): Skip debug insns.
2933 (prescan_insns_for_dce): Likewise.
2934 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
2935 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
2936 active reg can be found.
2937 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
2938 (convert_regs_1): Use it.
2940 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2942 * tree-pretty-print.c (dump_function_header): Add flags.
2943 Don't dump decl_uid with nouid.
2944 * tree-pretty-print.h (dump_function_header): Adjust.
2945 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
2946 * passes.c (pass_init_dump_file): Pass dump_flags on.
2947 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
2949 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2952 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
2954 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
2956 PR tree-optimization/49243
2957 * calls.c (setjmp_call_p): Also check if fndecl has the
2958 returns_twice attribute.
2960 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2962 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
2965 2011-06-06 Richard Henderson <rth@redhat.com>
2966 Georg-Johann Lay <avr@gjlay.de>
2969 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
2971 * config/avr/avr.md ("insv"): New insn expander.
2972 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
2973 "*insv.not.io", "*insv.reg"): New insns.
2975 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
2978 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
2979 to nonimmediate_operand from memory_operand for the operand that is to
2980 be forced to memory by the expander. Lose the constraints.
2982 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
2984 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
2985 EH return when delayed branches are disabled.
2987 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
2989 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
2990 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
2992 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
2993 Simplify MODE_V1DF and MODE_V2SF handling.
2994 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
2995 Simplify MODE_SF handling.
2997 2011-06-04 Jan Hubicka <jh@suse.cz>
2999 PR tree-optimization/48893
3000 PR tree-optimization/49091
3001 PR tree-optimization/49179
3002 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
3005 2011-06-04 Jan Hubicka <jh@suse.cz>
3008 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
3011 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
3013 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
3015 2011-06-04 Jakub Jelinek <jakub@redhat.com>
3018 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
3019 to be strictly smaller than 1 << shiftcount.
3021 2011-06-04 Jan Hubicka <jh@suse.cz>
3023 PR tree-optimize/48929
3024 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
3027 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
3030 * calls.c (emit_call_1): Prefer the __builtin declaration of
3033 2011-06-03 Diego Novillo <dnovillo@google.com>
3035 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
3036 (lto_input_tree_pointers): Likewise.
3037 * lto-streamer-out.c (pack_value_fields): Likewise.
3038 (lto_output_tree_pointers): Likewise.
3039 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
3040 and OPTIMIZATION_NODE.
3042 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3044 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
3045 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
3046 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
3047 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
3048 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
3049 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
3050 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
3051 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
3052 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
3053 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
3054 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
3055 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
3056 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
3057 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
3058 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
3059 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
3060 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
3061 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
3062 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
3063 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
3064 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
3065 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
3066 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
3067 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
3068 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
3069 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
3070 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
3071 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
3072 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
3073 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
3074 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
3075 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
3076 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
3077 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
3078 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
3079 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
3080 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
3081 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
3082 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
3083 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
3084 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
3085 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
3086 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
3087 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
3088 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
3089 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
3090 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
3091 * system.h (MD_UNWIND_SUPPORT): Poison.
3092 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
3093 * doc/tm.texi: Regenerate.
3094 * unwind-dw2.c: Include md-unwind-support.h instead of
3096 * config/ia64/unwind-ia64.c: Likewise.
3097 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
3099 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
3101 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
3103 2011-06-03 Richard Henderson <rth@redhat.com>
3104 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3106 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
3107 (sigill_hdlr): Correct insn, insn size.
3108 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
3110 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3112 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
3114 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
3115 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
3116 * config/mips/t-iris: Remove.
3117 * config/mips/t-irix6: New file.
3118 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
3120 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3122 * Makefile.in (LIB2ADDEHDEP): Remove.
3123 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
3124 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
3125 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
3126 * config/t-darwin (LIB2ADDEHDEP): Remove.
3127 * config/t-freebsd (LIB2ADDEHDEP): Remove.
3128 * config/t-linux (LIB2ADDEHDEP): Remove.
3130 2011-06-03 Diego Novillo <dnovillo@google.com>
3132 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
3133 (lto_register_var_decl_in_symtab): Likewise.
3134 (lto_register_function_decl_in_symtab): Likewise.
3135 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
3136 logic to uniquify_nodes.
3138 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3140 * config/alpha/t-osf5: Remove.
3141 * config/alpha/t-osf-pthread: Remove.
3142 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
3143 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
3145 2011-06-03 Julian Brown <julian@codesourcery.com>
3147 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
3148 (strongarm1110): Use strongarm tuning.
3149 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
3150 * config/arm/arm.c (arm_strongarm_tune): New.
3151 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3152 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
3153 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
3154 setting, using previous defaults or 1 for Cortex-A5.
3155 (arm_option_override): Set max_insns_skipped from current tuning.
3157 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
3159 * doc/install.texi (Options specification): Document --with-specs.
3161 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3163 * config/arm/neon.md (orndi3_neon): Actually split it.
3165 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
3167 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
3168 * var-tracking.c (reverse_op): Limite recurse depth to 5.
3170 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
3173 * target.def (delay_sched2, delay_vartrack): New.
3174 * doc/tm.texi.in: Update.
3175 * doc/tm.texi: Rebuild.
3176 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
3177 * var-tracking.c (gate_handle_var_tracking): Likewise.
3178 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
3179 (bfin_flag_var_tracking): Drop.
3180 (output_file_start): Don't save and override flag_var_tracking.
3181 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
3182 (bfin_reorg): Test original variables.
3183 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3184 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
3185 (ia64_flag_var_tracking): Drop.
3186 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3187 (ia64_file_start): Don't save and override flag_var_tracking.
3188 (ia64_override_options_after_change): Ditto
3189 flag_schedule_insns_after_reload.
3190 (ia64_reorg): Test original variables.
3191 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
3192 (picochip_flag_var_tracking): Drop.
3193 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3194 (picochip_option_override): Don't save and override
3195 flag_schedule_insns_after_reload.
3196 (picochip_asm_file_start): Ditto flag_var_tracking.
3197 (picochip_reorg): Test original variables.
3198 * config/spu/spu.c (spu_flag_var_tracking): Drop.
3199 (TARGET_DELAY_VARTRACK): Define.
3200 (spu_var_tracking): New.
3201 (spu_machine_dependent_reorg): Call it.
3202 (asm_file_start): Don't save and override flag_var_tracking.
3204 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
3207 * config/sh/predicates.md (general_movsrc_operand): Return 0
3208 for memory and memory subreg of which address is an invalid
3209 indexed address for QI and HImode.
3210 (general_movdst_operand): Likewise.
3212 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3214 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
3215 edges only, when there is a non-local label in the function.
3216 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
3218 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
3220 * config/i386/constraints.md (Y3): New register constraint.
3221 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
3222 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
3223 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
3224 *sse2_interleave_lowv2df.
3226 2011-06-02 Julian Brown <julian@codesourcery.com>
3228 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
3229 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
3230 (arm_cortex_a5_tune): New.
3232 2011-06-02 Julian Brown <julian@codesourcery.com>
3234 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
3235 * config/arm/arm.c (arm_default_branch_cost): New.
3236 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3237 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
3238 (arm_fa726_tune): Set branch_cost field using
3239 arm_default_branch_cost.
3240 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
3241 current_tune structure.
3242 * dojump.c (tm_p.h): Include file.
3244 2011-06-02 Julian Brown <julian@codesourcery.com>
3246 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
3248 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
3249 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
3250 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
3252 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
3253 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
3254 (arm_fa726te_tune): Add prefer_constant_pool setting.
3255 (arm_v6t2_tune, arm_cortex_tune): New.
3256 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
3257 prefer_constant_pool setting.
3259 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
3261 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
3263 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
3264 (*movdf_internal) <case 6,7,8>: Ditto.
3266 * config/i386/constraints.md (Y4): New register constraint.
3267 * config/i386/sse.md (vec_set<mode>_0): Merge with
3268 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
3269 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
3270 *vec_extractv2di_1_sse.
3271 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
3272 and *vec_concatv2di_rex64_sse.
3274 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
3277 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
3278 of cgraph_local_info for null before attempting to use it.
3280 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3282 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
3283 (current_function_dynamic_alloc_count): Delete.
3284 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
3285 (expand_builtin_nonlocal_goto): Remove obsolete comment.
3286 (expand_builtin_update_setjmp_buf): Remove dead code.
3287 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
3288 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
3290 * function.c (instantiate_virtual_regs): Likewise.
3291 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
3292 for a block with a single abnormal incoming edge.
3293 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
3294 (SETJMP_VIA_SAVE_AREA): Delete.
3295 * config/sparc/sparc-protos.h (load_got_register): Declare.
3296 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3297 (load_got_register): Make global.
3298 (sparc_frame_pointer_required): Add 'static'.
3299 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
3300 (sparc_builtin_setjmp_frame_value): New function.
3301 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
3302 (save_stack_nonlocal): New expander.
3303 (restore_stack_nonlocal): Likewise.
3304 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
3305 (nonlocal_goto_internal): New insn.
3306 (goto_handler_and_restore): Delete.
3307 (builtin_setjmp_setup): Likewise.
3308 (do_builtin_setjmp_setup): Likewise.
3310 (builtin_setjmp_receiver): New expander.
3312 2011-06-01 David Li <davidxl@google.com>
3315 * tree-pretty-print.c (dump_function_header): Format cleanup.
3317 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
3320 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
3321 needed when original operands are used for msw_skip comparison.
3323 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3326 * var-tracking.c (add_uses, add_stores): Don't call
3327 cselib_subst_to_values on ENTRY_VALUE.
3329 2011-06-01 Diego Novillo <dnovillo@google.com>
3331 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
3332 output_record_start with LTO_null instead of output_zero.
3333 (lto_output_ts_binfo_tree_pointers): Likewise.
3334 (lto_output_tree): Likewise.
3335 (output_eh_try_list): Likewise.
3336 (output_eh_region): Likewise.
3337 (output_eh_lp): Likewise.
3338 (output_eh_regions): Likewise.
3339 (output_bb): Likewise.
3340 (output_function): Likewise.
3341 (output_unreferenced_globals): Likewise.
3342 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
3343 instead of NUM_TREE_CODES.
3344 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
3345 (lto_output_int_in_range): Change << to >> when shifting VAL.
3347 2011-06-01 Diego Novillo <dnovillo@google.com>
3349 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
3350 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
3352 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3355 * optabs.h (valid_multiword_target_p): Declare.
3356 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
3357 doing multi-word operations.
3358 * optabs.c (expand_binop): Likewise.
3359 (expand_doubleword_bswap): Likewise.
3360 (expand_absneg_bit): Likewise.
3361 (expand_unop): Likewise.
3362 (expand_copysign_bit): Likewise.
3363 (multiword_target_p): New function.
3365 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3367 PR rtl-optimization/48830
3368 PR rtl-optimization/48808
3369 PR rtl-optimization/48792
3370 * reload.c (push_reload): Check contains_reg_of_mode.
3371 * reload1.c (strip_paradoxical_subreg): New function.
3372 (gen_reload_chain_without_interm_reg_p): Use it to handle
3373 paradoxical subregs.
3374 (emit_output_reload_insns, gen_reload): Likewise.
3376 2011-06-01 David Li <davidxl@google.com>
3378 * predict.c : Change pass name
3381 * tree-profile.c: Ditto.
3384 2011-06-01 David Li <davidxl@google.com>
3386 * tree-pretty-print.c (dump_function_header): New function.
3387 * final.c (rest_of_clean_state): Use header dumper.
3388 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
3389 * passes.c (pass_init_dump_file): Use header dumper.
3391 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3393 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
3394 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
3395 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
3397 (mem_loc_descriptor): Use them.
3399 * var-tracking.c (create_entry_value): New function.
3400 (vt_add_function_parameter): Use it.
3402 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3404 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
3405 Include <signal.h>, <ucontext.h>.
3406 (sigill_caught): Define.
3407 (sigill_hdlr): New function.
3408 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
3409 insns can be executed.
3410 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
3411 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
3413 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3415 * config/t-slibgcc-darwin: Move to ...
3416 * config/t-slibgcc-dummy: ... this. Clarify comments.
3417 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
3418 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
3419 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
3420 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
3421 Remove i386/t-crtstuff from tmake_file.
3422 (i[34567]86-*-solaris2*): Remove t-svr4,
3423 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
3425 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
3426 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
3427 sparc/t-crtfm from tmake_file.
3428 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
3429 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
3431 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
3432 * config/i386/t-nwld (SHLIB_LINK): Remove.
3433 * config/i386/t-rtems-i386: Rename to ...
3434 * config/i386/t-rtems: ... this.
3435 ($(T)crti.o, $(T)crtn.o): Remove.
3436 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
3437 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
3438 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
3439 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
3440 EXTRA_MULTILIB_PARTS): Remove.
3441 * config/sparc/t-sol2-64: Likewise.
3442 * config/sparc/t-sol2: Remove.
3443 * config/sparc/t-crtin: Remove.
3444 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
3445 * config/i386/gmon-sol2.c: Remove.
3446 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
3447 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
3448 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
3449 * config/i386/sol2-gc1.asm: Remove.
3450 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
3451 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
3452 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
3453 * config/t-slibgcc-sld: Remove.
3455 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3457 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
3458 base_type_for_mode with op_mode instead of mode.
3460 2011-06-01 Paul Brook <paul@cpodesourcery.com>
3462 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
3464 * config/arm/arm-tune.md: Regenerate.
3465 * config/arm/arm-tables.opt: Regenerate.
3466 * config/arm/arm.c (FL_DIV): Rename...
3467 (FL_THUMB_DIV): ... to this.
3468 (FL_ARM_DIV): Define.
3469 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
3470 (arm_arch_hwdiv): Remove.
3471 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
3472 (arm_issue_rate): Add cortexr5.
3473 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
3474 __ARM_ARCH_EXT_IDIV__.
3475 (TARGET_IDIV): Define.
3476 (arm_arch_hwdiv): Remove.
3477 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
3478 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
3479 (divsi3, udivsi3): New patterns.
3480 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
3481 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
3483 2011-06-01 Martin Jambor <mjambor@suse.cz>
3485 * ipa-utils.c (ipa_dfs_info): New field scc_no.
3486 * ipa-utils.c (searchc): Set scc_no.
3488 2011-06-01 Martin Jambor <mjambor@suse.cz>
3490 * ipa-utils.c (searchc_env): New field allow_overwritable.
3491 (searchc): do not ignore edges to overwritable nodes if indicated
3492 by env->allow_overwritable.
3493 (ipa_reduced_postorder): Set env.allow_overwritable.
3495 2011-06-01 Richard Guenther <rguenther@suse.de>
3497 * tree.c (free_lang_data): Do not reset boolean_type_node nor
3499 * lto-streamer.c (lto_record_common_node): Take node pointer,
3500 do not register types.
3501 (lto_preload_common_nodes): Explicitly skip preloading nodes
3502 that differ between frontends.
3504 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
3506 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
3509 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
3511 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
3512 parameter value for dump. Dump cost on outermost call only.
3513 (rs6000_memory_move_cost): Dump cost on outermost call only.
3515 2011-05-31 Jakub Jelinek <jakub@redhat.com>
3517 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
3518 DW_OP_GNU_convert ops.
3520 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
3521 cselib_preserve_constants.
3522 (cselib_lookup_1): If cselib_preserve_constants,
3523 a new VALUE is being created for REG and there is a VALUE for the
3524 same register in wider mode, add another loc with lowpart SUBREG of
3526 (cselib_subst_to_values): Handle ENTRY_VALUE.
3527 * var-tracking.c (replace_expr_with_values): Return NULL for
3529 * dwarf2out.c (convert_descriptor_to_signed): New function.
3530 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
3531 instead of two shifts.
3532 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
3533 the right mode if needed.
3534 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
3535 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
3536 convert_descriptor_to_signed.
3537 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
3538 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
3541 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
3543 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3545 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
3546 of X87MODEI12 and SWI48x instead of SSEMODEI24.
3547 (SWI248x): New mode iterator, rename from X87MODEI.
3548 (X87MODEI): Remove mode iterator.
3549 (X87MODEI12): Ditto.
3550 (SSEMODEI24): Ditto.
3552 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3554 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
3555 * doc/invoke.texi: Document max-vartrack-expr-depth.
3556 * var-tracking.c (EXPR_DEPTH): New.
3557 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
3559 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3561 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
3562 * config/i386/sse.md: Add n to negated FMA pattern names.
3564 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3566 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
3568 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3570 * gengtype-state.c (read_state_params_structs): Initialize previous.
3572 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3574 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
3575 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
3577 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3579 * config/i386/i386.md (*movtf_internal): Avoid allocating general
3580 registers. Penalize F*r->o alternative to prevent partial memory
3581 stalls. Slightly penalize *roF->*r alternative. Generate SSE
3582 CONST_DOUBLE immediates when optimizing function for size. Do not move
3583 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3584 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
3585 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
3586 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
3588 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
3590 (fp_register_operand splitters): Use fp_register_operand
3591 constraint. Do not use FP_REG_P in insn condition.
3592 (any_fp_register_operand splitters): Use any_fp_register_operand
3593 constraint. Do not use ANY_FP_REG_P in insn condition.
3595 2011-05-31 Jan Hubicka <jh@suse.cz>
3597 * cgraph.h (cgraph_inline_failed_t): Give enum a name
3598 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
3599 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
3600 (lto_output_edge): Use output_enum and var_len_unsigned.
3601 (lto_output_varpool_node): Likewise.
3602 (input_overwrite_node): Do not take resolution parameter;
3603 extract it from a bitpack.
3604 (input_node): Do not read resolution; use input_enum and
3606 (input_varpool_node): Likewise.
3607 (input_edge): Likewise.
3608 (input_cgraph_1): Likewise.
3610 2011-05-31 Richard Guenther <rguenther@suse.de>
3612 * gimple.c (gimple_register_canonical_type): Do not register
3613 any types via gimple_register_type.
3615 2011-05-31 Jan Hubicka <jh@suse.cz>
3617 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
3620 2011-05-31 Jakub Jelinek <jakub@redhat.com>
3622 PR rtl-optimization/49235
3623 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
3624 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
3626 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
3628 PR tree-optimization/49093
3629 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
3632 2011-05-31 Dodji Seketeli <dodji@redhat.com>
3635 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
3636 for concrete functions containing the code of cloned functions.
3638 2011-05-31 Richard Guenther <rguenther@suse.de>
3640 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
3642 (forward_propagate_into_comparison_1): ... this.
3643 (forward_propagate_comparison): Rename to ...
3644 (forward_propagate_into_comparison): ... this. Split out
3645 real forward propagation code to ...
3646 (forward_propagate_comparison): ... this.
3647 (forward_propagate_into_gimple_cond): Remove looping.
3648 (forward_propagate_into_cond): Likewise.
3649 (simplify_not_neg_expr): Return whether we have done something.
3650 (simplify_gimple_switch): Likewise.
3651 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
3652 (ssa_forward_propagate_and_combine): ... this. Re-structure
3653 to do a forward forward-propagation walk on BBs and a backward
3654 stmt combining walk on BBs. Consistently re-scan changed statements.
3655 (pass_forwprop): Adjust.
3657 2011-05-30 Ian Lance Taylor <iant@google.com>
3659 * godump.c (go_format_type): Correct length of name added to
3660 obstack for anonymous field.
3662 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
3665 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
3666 part of the second operand is 0.
3668 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
3670 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
3671 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
3672 to memory for !TARGET_MEMORY_MISMATCH_STALL.
3673 (*movdf_internal_rex64): Do not penalize F->r alternative.
3674 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
3675 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
3676 when optimizing function for size. Do not move CONST_DOUBLEs
3677 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3678 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
3679 SUBREGs. Do not check for MEM_P operands in the insn condition,
3680 check for ANY_FP_REGNO_P instead.
3681 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
3682 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
3684 * config/i386/i386.c (ix86_option_override_internal): Do not
3685 set TARGET_INTEGER_DFMODE_MOVES here.
3687 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
3690 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
3692 2011-05-30 Jakub Jelinek <jakub@redhat.com>
3694 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
3695 DW_TAG_rvalue_reference_type even for
3696 -gdwarf-4 -fno-debug-types-section.
3698 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3700 PR tree-optimization/46728
3701 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
3702 (build_and_insert_binop): New.
3703 (gimple_expand_builtin_pow): Reorder args for
3704 build_and_insert_call; use build_and_insert_binop; add more
3705 optimizations for fractional exponents.
3707 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3712 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3714 * tree.h (struct tree_identifier): Inherit from tree_typed, not
3716 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3717 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3718 TS_BASE instead of TS_COMMON.
3719 * varasm.c (assemble_name): Remove assert.
3721 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
3723 * config.gcc: Keep obselete list sorted.
3725 2011-05-30 Jakub Jelinek <jakub@redhat.com>
3726 Eric Botcazou <ebotcazou@adacore.com>
3728 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
3729 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
3730 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
3731 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
3732 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
3734 2011-05-30 Richard Guenther <rguenther@suse.de>
3736 * gimple.c (gimple_types_compatible_p_1): Compare record
3737 and union type members properly.
3739 2011-05-30 Richard Guenther <rguenther@suse.de>
3741 PR tree-optimization/49210
3742 * ipa-split.c (split_function): Care for the case where the call
3743 result is not trivially convertible to the result holding variable.
3745 2011-05-30 Richard Guenther <rguenther@suse.de>
3747 PR tree-optimization/49218
3748 * tree-vrp.c (adjust_range_with_scev): Properly check whether
3751 2011-05-30 Richard Guenther <rguenther@suse.de>
3753 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
3754 New function split out from ...
3755 (forward_propagate_into_gimple_cond): ... here. Adjust.
3756 (forward_propagate_into_cond): Likewise.
3757 (forward_propagate_comparison): Also propagate into
3758 comparisons on assignment RHS. Change return value to
3759 behave similar to forward_propagate_into_cond.
3760 (tree_ssa_forward_propagate_single_use_vars): Handle
3761 strict-overflow warnings properly for forward_propagate_comparison.
3763 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3765 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
3767 * configure: Regenerate.
3769 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
3771 PR tree-optimization/49199
3772 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
3773 non-reduction operands are either defined in the loop or by induction.
3775 2011-05-29 Xinliang David Li <davidxl@google.com>
3777 * opts-global.c (handle_common_deferred_options): Handle new options.
3778 * passes.c (register_one_dump_file): Call register_pass_name.
3779 (execute_one_pass): Check explicit enable/disable flag.
3780 (passr_hash): New function.
3782 (register_pass_name): Ditto.
3783 (get_pass_by_name): Ditto.
3786 (enable_pass): Ditto.
3787 (disable_pass): Ditto.
3788 (is_pass_explicitly_enabled_or_disabled): Ditto.
3790 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
3792 * config/i386/i386.md (*movoi_internal_avx): Use
3793 standard_sse_constant_opcode for alternative 0.
3794 (*movti_internal_sse): Ditto.
3795 (*movti_internal_rex64): Use standard_sse_constant_opcode for
3797 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
3799 (*movsi_internal): Ditto.
3800 (*movdi_internal): Ditto. Add ssecvt type moves.
3802 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
3805 * rtlanal.c (simplify_subreg_regno): Adjust comment.
3807 2011-05-29 Jakub Jelinek <jakub@redhat.com>
3809 PR rtl-optimization/49095
3810 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
3811 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
3813 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
3816 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
3817 recurse_p argument. Only follow register copies if it is set,
3818 and prevent mips_find_pic_call_symbol from recursing.
3819 (mips_find_pic_call_symbol): Add a recurse_p argument.
3820 Pass it to mips_pic_call_symbol_from_set.
3821 (mips_annotate_pic_calls): Update accordingly.
3823 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
3825 * emit-rtl.c (try_split): Use a loop to search for
3826 NOTE_INSN_CALL_ARG_LOCATIONs.
3828 2011-05-29 Richard Guenther <rguenther@suse.de>
3830 PR tree-optimization/49217
3831 * ipa-pure-const.c (propagate_pure_const): Fix typos.
3833 2011-05-28 Jan Hubicka <jh@suse.cz>
3835 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
3837 (string_slot_free): Remove
3838 (create_output_block): Initialize obstack.
3839 (destroy_output_block): Free obstack.
3840 (lto_string_index): Add PERSISTENT parameter; do not duplicate
3841 the string unless it needs to be added into the hash.
3842 (lto_output_string_with_length): Add persistent attribute;
3843 handle NULL strings.
3844 (lto_output_string): Add PERSISTENT parameter.
3845 (output_string_cst, output_identifier): Simplify.
3846 (lto_output_location_bitpack): Update.
3847 (lto_output_builtin_tree): Update.
3848 * lto-streamer.h (struct output_block): Add obstack.
3849 (lto_output_string, lto_output_string_with_length): Remove
3850 declarations; functions are static now.
3852 2011-05-28 Jan Hubicka <jh@suse.cz>
3854 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
3855 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
3856 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
3857 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
3858 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
3859 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
3860 unpack_ts_decl_with_vis_value_fields,
3861 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
3862 lto_get_builtin_tree): Use enum and variable length i/o.
3863 * basic-block.h (profile_status_d): Add PROFILE_LAST.
3864 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
3866 (bp_pack_enum, bp_unpack_enum): New macros.
3868 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3870 * genrecog.c: Remove redundant forward declarations.
3872 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3874 * config.gcc: Deprecate mips*-*-openbsd*.
3876 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3879 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
3882 2011-05-27 Andrew Pinski <pinskia@gmail.com>
3885 * gengtype.c (vec_prefix_type): New function.
3886 (note_def_vec): Use vec_prefix_type and change the length
3887 attribute to be based on the prefix.
3888 * vec.c: Include coretypes.h before vec.h.
3889 (struct vec_prefix): Remove.
3890 (vec_gc_p_reserve): Change the offsetof to sizeof.
3891 (vec_gc_p_reserve_exact): Likewise.
3892 (vec_heap_p_reserve): Likewise.
3893 (vec_heap_p_reserve_exact): Likewise.
3894 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
3895 (vec_stack_p_reserve): Change the offsetof to sizeof.
3896 (vec_stack_p_reserve_exact): Likewise.
3897 * vec.h (struct vec_prefix): New struct definition.
3898 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
3899 (VEC_T_GTY(T,B)): Likewise.
3900 (DEF_VEC_FUNC_P(T)): Use prefix field.
3901 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
3902 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
3904 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3906 PR tree-optimization/46728
3907 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
3908 (powi_as_mults): Add gimple_set_location.
3909 (build_and_insert_call): New.
3910 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
3911 0.5, 0.25, 0.75, 1./3., or 1./6.
3913 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
3915 * doc/contrib.texi: Update copyright years.
3916 (Contributors): Add Zdenek Sojka.
3918 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3920 * c-decl.c (c_push_function_context): Copy the current statement
3922 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
3923 (finish_struct): Call building_stmt_list_p instead of checking
3925 * c-parser.c (c_parser_postfix_expression): Likewise.
3926 * c-typeck.c (c_end_compound_stmt): Likewise.
3927 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
3928 * tree-iterator.c (stmt_list_cache): Change to a VEC.
3929 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
3930 (free_stmt_list): Likewise.
3931 * tree.h (struct tree_statement_list): Include typed_tree instead
3933 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
3934 as TS_TYPED instead of TS_COMMON.
3936 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3937 Uros Bizjak <ubizjak@gmail.com>
3939 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
3940 (HAVE_AS_IX86_TLSGDPTL): Define.
3941 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
3942 (HAVE_AS_IX86_TLSLDMPLT): Define.
3943 * configure: Regenerate.
3944 * config.in: Regenerate.
3945 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
3946 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
3947 TARGET_SUN_TLS, use @tlsgdplt or @plt.
3948 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
3949 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
3951 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
3953 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3955 * sched-int.h (struct _haifa_deps_insn_data): New members cond
3957 (INSN_COND, INSN_REVERSE_COND): New macros.
3958 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
3960 (sched_get_condition_with_rev): Cache the results, and look them up
3962 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
3963 are clobbered by the current insn.
3964 * target.def (exposed_pipline): New sched data hook.
3965 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
3966 * doc/tm.texi: Regenerate.
3968 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3970 PR tree-optimization/49170
3971 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
3974 2011-05-27 Richard Guenther <rguenther@suse.de>
3977 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
3980 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3982 * haifa-sched.c (sched_scan_info): Remove.
3983 (schedule_block): Call sched_extend_luids rather than sched_init_luids
3985 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
3987 (sched_scan): Remove.
3988 (sched_extend_luids): Renamed from luids_extend_insn and no longer
3989 static. All callers changed.
3990 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
3991 static. All callers changed.
3992 (sched_init_luids): Remove all arguments except the first. All
3993 callers changed. Don't use sched_scan.
3994 (haifa_init_h_i_d): Likewise.
3995 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
3996 manually rather than using sched_init_luids. Likewise with
3997 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
3998 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
3999 rather than sched_init_luids with NULL args.
4000 * sel-sched-ir.c (new_insns): Remove variable.
4001 (sched_scan): New static function, previously in haifa-sched.c. Remove
4002 all arguments but the first two; all callers changed.
4003 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
4004 rather than sched_init_luids.
4005 (sel_init_bbs): Remove second argument. All callers changed.
4006 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
4007 with NULL arguments.
4008 (create_insn_rtx_from_pattern): Likewise.
4009 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
4010 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
4011 (sched_init_insn_luid, sched_extend_luids): Declare.
4012 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
4015 2011-05-27 Richard Guenther <rguenther@suse.de>
4018 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
4019 A CMP B ? (T) true : (T) false for non-integral types T again.
4021 2011-05-27 Jan Hubicka <jh@suse.cz>
4023 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
4024 so 0 means NULL string.
4025 (lto_output_string_with_length): ... here.
4026 (lto_output_string, output_string_cst, output_identifier): Update
4027 handling of NULL strings.
4028 (lto_output_location_bitpack): New function.
4029 (lto_output_location): Use it.
4030 (lto_output_tree_ref): Use output_record_start.
4031 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
4033 * lto-streamer-in.c (string_for_index): Break out from ...; offset
4035 (input_string_internal): ... here;
4036 (input_string_cst, input_identifier, lto_input_string): Update handling
4038 (lto_input_location_bitpack): New function
4039 (lto_input_location): Use it.
4040 (unpack_ts_type_common_value_fields): Pack align & alias in var len
4042 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
4043 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
4044 (bp_pack_value): Sanity check the value range.
4045 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
4047 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
4050 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
4052 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
4053 call_arg_location instructions down the floor.
4055 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
4057 PR rtl-optimization/49154
4058 * ira.c (setup_pressure_classes): Process class without sublcasses
4059 as a candidate for pressure classes.
4061 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
4063 PR rtl-optimization/48575
4064 * genrecog.c (position_type): New enum.
4065 (position): New structure.
4066 (decision): Use position structure instead of a string.
4067 (root_pos, peep2_insn_pos_list): New variables.
4068 (next_position, compare_positions): New functions.
4069 (new_decision): Use position structures instead of strings.
4070 (maybe_both_true): Likewise.
4071 (change_state): Likewise.
4072 (write_tree): Likewise.
4073 (make_insn_sequence): Likewise.
4075 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4077 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
4078 TS_BASE instead of TS_COMMON.
4079 (find_decls_types_r): Check for TS_TYPED structure before looking at
4081 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
4083 (BLOCK_CHAIN): Use new chain field.
4085 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
4087 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
4088 moves expensive on Power7 also.
4090 2011-05-26 Richard Guenther <rguenther@suse.de>
4092 * fold-const.c (fold_unary_loc): Remove bogus code.
4094 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4096 * tree.h (struct tree_identifier): Inherit from tree_typed, not
4098 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4099 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4100 TS_BASE instead of TS_COMMON.
4101 * varasm.c (assemble_name): Remove assert.
4103 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
4105 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
4107 * libgcc-std.ver: Delete file.
4109 2011-05-26 Richard Guenther <rguenther@suse.de>
4111 PR tree-optimization/48702
4112 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
4113 only when we know the base address is within bounds.
4114 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
4115 assume the base address of TARGET_MEM_REFs is in bounds.
4117 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4120 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
4121 declaration in TARGET_SOLARIS.
4123 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
4125 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
4126 The instruction is then expanded explicitly.
4127 (supported_compare): Callable instruction.
4128 (compare): Likewise.
4130 2011-05-26 Jakub Jelinek <jakub@redhat.com>
4133 * gimplify.c (shortcut_cond_r): Don't special case
4134 COND_EXPRs if they have void type on one of their arms.
4136 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
4138 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
4139 to reduce duplication, and to achieve a slightly more logical order
4142 2011-05-26 Jakub Jelinek <jakub@redhat.com>
4144 PR tree-optimization/49161
4145 * tree-vrp.c (struct case_info): New type.
4146 (compare_case_labels): Sort case_info structs instead of
4147 trees, and not primarily by CASE_LABEL uids but by
4148 label_for_block indexes.
4149 (find_switch_asserts): Put case labels into struct case_info
4150 array instead of TREE_VEC, adjust sorting, compare label_for_block
4151 values instead of CASE_LABELs.
4153 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4155 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
4156 ("orndi3_neon"): Likewise.
4157 ("bic<mode>3_neon"): Likewise.
4159 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
4161 PR tree-optimization/49038
4162 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
4163 Ensure at least one epilogue iteration if required by data
4165 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4166 to mark loops that require peeling for gaps.
4167 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
4168 (vect_get_known_peeling_cost): Take peeling for gaps into
4170 (vect_transform_loop): Generate epilogue if required by data
4172 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
4173 loop as requiring an epilogue if there are gaps in the end of
4176 2011-05-25 Ian Lance Taylor <iant@google.com>
4178 * godump.c (go_format_type): Output the first field with a usable
4181 2011-05-25 Ian Lance Taylor <iant@google.com>
4183 * godump.c (go_format_type): Check for invalid type names, pointer
4184 target types, and struct field types.
4186 2011-05-25 Jason Merrill <jason@redhat.com>
4188 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
4190 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
4192 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
4194 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4196 * config/i386/i386.md (*movqi_extv_1)): Put back
4197 "register_operand" check in "type" calculation.
4198 (*movqi_extzv_2): Likewise.
4200 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4202 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
4204 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4207 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
4208 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
4209 __divxc3, __divtc3): Wrap definitions in #ifndef.
4211 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4214 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
4215 "register_operand" check and replace q_regs_operand with
4216 QIreg_operand in "type" calculation.
4217 (*movqi_extv_1): Likewise.
4218 (*movqi_extzv_2_rex64): Likewise.
4219 (*movqi_extzv_2): Likewise.
4221 * config/i386/predicates.md (QIreg_operand): New.
4223 2011-05-25 Richard Guenther <rguenther@suse.de>
4225 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4226 type-based offset disambiguation, streamline MEM_REF and
4227 TARGET_MEM_REF handling.
4229 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4231 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
4232 (bdesc_special_args): Add pause intrinsic.
4234 * config/i386/i386.md (UNSPEC_PAUSE): New.
4237 * config/i386/ia32intrin.h (__pause): Likewise.
4239 * doc/extend.texi (X86 Built-in Functions): Add documentation for
4242 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4244 PR tree-optimization/46728
4245 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
4246 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
4248 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
4250 * tree.h (struct tree_exp): Inherit from struct tree_typed.
4251 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
4252 instead of TS_COMMON.
4254 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4256 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
4257 LIBGCC2_GNU_PREFIX is defined.
4259 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
4260 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
4261 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
4262 __clz_tab): Define using __N.
4263 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
4264 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
4265 * target.def (libfunc_gnu_prefix): New hook.
4266 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
4267 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
4268 * doc/tm.texi: Regenerate.
4269 * system.h (LIBGCC2_GNU_PREFIX): Poison.
4270 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
4272 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
4273 (init_optabs): Likewise for the bswap libfuncs.
4274 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
4276 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
4277 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
4278 * libgcc-std.ver: Remove.
4279 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
4280 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
4282 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4283 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
4284 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
4285 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
4286 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
4287 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4288 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4289 * config/fixed-bit.h (FIXED_OP): Define differently depending on
4290 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
4291 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
4293 2011-05-25 Jan Hubicka <jh@suse.cz>
4295 * lto-streamer-out.c (output_record_start): Use lto_output_enum
4296 (lto_output_tree): Use output_record_start.
4297 * lto-streamer-in.c (input_record_start): Use lto_input_enum
4298 (lto_get_pickled_tree): Use input_record_start.
4299 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
4300 (lto_value_range_error): New function.
4301 * lto-streamer.h (lto_value_range_error): Declare.
4302 (lto_output_int_in_range, lto_input_int_in_range): New functions.
4303 (lto_output_enum, lto_input_enum): New macros.
4305 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
4307 * common.opt (flag_stack_usage_info): New variable.
4308 (-Wstack-usage): New option.
4309 * doc/invoke.texi (Warning options): Document -Wstack-usage.
4310 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
4311 <OPT_fstack_usage>: Likewise.
4312 * toplev.c (output_stack_usage): Handle -Wstack-usage.
4313 * calls.c (expand_call): Test flag_stack_usage_info variable instead
4314 of flag_stack_usage.
4315 (emit_library_call_value_1): Likewise.
4316 * explow.c (allocate_dynamic_stack_space): Likewise.
4317 * function.c (instantiate_virtual_regs ): Likewise.
4318 (prepare_function_start): Likewise.
4319 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
4320 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
4321 * config/arm/arm.c (arm_expand_prologue): Likewise.
4322 (thumb1_expand_prologue): Likewise.
4323 * config/avr/avr.c (expand_prologue): Likewise.
4324 * config/i386/i386.c (ix86_expand_prologue): Likewise.
4325 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4326 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
4327 * config/mips/mips.c (mips_expand_prologue): Likewise.
4328 * config/pa/pa.c (hppa_expand_prologue): Likewise.
4329 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4330 * config/s390/s390.c (s390_emit_prologue): Likewise.
4331 * config/sh/sh.c (sh_expand_prologue): Likewise.
4332 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4333 * config/spu/spu.c (spu_expand_prologue): Likewise.
4335 2011-05-25 Richard Guenther <rguenther@suse.de>
4337 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
4338 (gimple_canonical_types_compatible_p): Likewise.
4340 2011-05-25 Jan Hubicka <jh@suse.cz>
4343 * ipa.c (function_and_variable_visibility): Only add to same
4344 comdat group list if DECL_ONE_ONLY.
4346 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
4348 PR rtl-optimization/49014
4349 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
4351 2011-05-25 Jakub Jelinek <jakub@redhat.com>
4354 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4356 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4358 PR rtl-optimization/48757
4359 * ira-build.c (loop_with_eh_edge_p): Rename to
4360 loop_with_complex_edge_p, check edges on complexity, make function
4362 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
4365 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4367 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
4368 force flag_ira_share_save_slots to 0.
4370 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4372 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
4373 (vt_initialize): Set PROLOGUE_BB unconditionally.
4374 Add block comment about CFA_BASE_RTX machinery.
4375 Reset FP_CFA_OFFSET to -1 on all invalid paths.
4376 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
4378 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
4381 * c-parser.c (c_parser_objc_class_instance_variables): More robust
4382 parsing of syntax error in ObjC instance variable lists. In
4383 particular, avoid an infinite loop if there is a stray ']'.
4384 Updated error message.
4386 2011-05-24 Ian Lance Taylor <iant@google.com>
4388 * godump.c (go_define): Don't accept a string immediately after
4391 2011-05-24 Ian Lance Taylor <iant@google.com>
4393 * godump.c (struct godump_container): Add invalid_hash field.
4394 (go_format_type): Return false if type is found in invalid_hash.
4395 (go_output_typedef): Add invalid type to invalid_hash.
4396 (go_finish): Create and delete invalid_hash.
4398 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4400 PR tree-optimization/46728
4401 * tree-ssa-math-opts.c (powi_table): New.
4402 (powi_lookup_cost): New.
4404 (powi_as_mults_1): New.
4405 (powi_as_mults): New.
4406 (gimple_expand_builtin_powi): New.
4407 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
4408 (gate_cse_sincos): Remove sincos/cexp restriction.
4410 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4413 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
4415 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
4416 * mips-tdump.c: Likewise.
4418 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
4421 * config/i386/driver-i386.c (host_detect_local_cpu): Always
4422 add -mno-XXX. Handle FMA.
4424 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4426 PR rtl-optimization/48633
4427 * ira-build.c (loop_with_eh_edge_p): New function.
4428 (mark_loops_for_removal): Use it.
4430 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4432 PR rtl-optimization/48971
4433 * ira.c (setup_pressure_classes): Don't check register move cost
4434 for classes with one registers. Don't add pressure class if there
4435 is a pressure class with the same available hard registers.
4436 Check contains_reg_of_mode. Fix a typo in collecting
4437 temp_hard_regset. Ignore hard registers not belonging to a class.
4439 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
4442 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
4444 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4445 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4447 PR gcov-profile/48845
4448 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
4450 2011-05-24 Richard Guenther <rguenther@suse.de>
4452 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
4453 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
4454 (gimple_types_compatible_p_1): Adjust.
4455 (iterative_hash_canonical_type): Do not bother about complete vs.
4457 (gimple_canonical_types_compatible_p): Likewise.
4459 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4461 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
4463 2011-05-24 Richard Guenther <rguenther@suse.de>
4466 * gimple.c (gimple_register_canonical_type): Revert
4468 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
4469 does not for a tree for the case where it matters. Cache
4470 pointer-type alias-sets.
4472 2011-05-24 Joseph Myers <joseph@codesourcery.com>
4474 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
4475 (OBJS): Remove options.o, opts-common.o and prefix.o.
4476 (OBJS-libcommon-target): New.
4477 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
4478 (BACKEND): Include libcommon-target.a.
4479 (MOSTLYCLEANFILES): Include libcommon-target.a.
4480 (libcommon-target.a): New.
4481 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
4484 2011-05-23 Joseph Myers <joseph@codesourcery.com>
4486 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
4487 parts of output shared with the driver.
4488 * optc-gen.awk: Don't generate parts of output not shared with the
4490 * opth-gen.awk: Remove GCC_DRIVER conditionals.
4491 * doc/options.texi (SourcerInclude): Mention options-save.c.
4492 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
4493 (OBJS): Add options-save.o.
4494 (options-save.c, options-save.o): New.
4495 (options.o): Update dependencies.
4496 (gcc-options.o): Remove.
4497 (mostlyclean): Remove options-save.c.
4499 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4502 * dbxout.c: Include cgraph.h.
4503 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
4504 and without value expr, return NULL if no varpool node exists for
4505 it or if it is not needed.
4506 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
4509 * c-decl.c (start_decl): Convert expr to void_type_node.
4511 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
4513 PR rtl-optimization/48826
4514 * emit-rtl.c (try_split): When splitting a call that is followed
4515 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
4517 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4519 * cfgexpand.c (expand_debug_expr): For unused non-addressable
4520 parameters passed in memory prefer using DECL_INCOMING_RTL over
4521 the pseudos it will be copied into.
4523 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
4526 * config/i386/i386.c (ix86_option_override_internal): Save the
4527 initial options after checking vzeroupper.
4529 2011-05-23 David Li <davidxl@google.com>
4531 PR tree-optimization/48988
4532 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
4533 Initialize has_valid_pred for each pred chain.
4535 2011-05-23 Richard Guenther <rguenther@suse.de>
4537 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
4538 (iterative_hash_gimple_type): Always hash type names.
4540 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4542 * c-typeck.c (build_function_call_vec): Tweak call to
4543 check_function_arguments.
4545 2011-05-23 Richard Guenther <rguenther@suse.de>
4547 PR tree-optimization/49115
4548 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
4549 is not necessarily carried out, do not claim it kills the ref.
4550 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4552 2011-05-23 Richard Guenther <rguenther@suse.de>
4555 * builtins.c (fold_builtin_memory_op): Be less restrictive about
4556 what pointer types we accept for folding.
4558 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4560 * gthr-gnat.c: Remove.
4561 * gthr-gnat.h: Remove.
4562 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
4563 * config/t-freebsd (LIB2ADDEH): Likewise.
4564 * config/t-linux (LIB2ADDEH): Likewise.
4565 * config/t-sol2 (LIB2ADDEH): Likewise.
4566 * config/ia64/t-vms (LIB2ADDEH): Likewise.
4567 * configure.ac (target_thread_file): Remove gnat handling.
4568 * configure: Regenerate.
4569 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
4571 2011-05-23 Tristan Gingold <gingold@adacore.com>
4572 Eric Botcazou <ebotcazou@adacore.com>
4574 * gcov.c (create_file_names): If no object directory is specified,
4575 keep the directory of the file.
4577 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4579 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
4580 * configure: Regenerate.
4582 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4585 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
4586 failed and the comparison has a single bit signed type, use
4587 constm1_rtx instead of const1_rtx for true value.
4588 (do_store_flag): If ops->type is single bit signed type, disable
4589 signel bit test optimization and pass -1 instead of 1 as last
4590 parameter to emit_store_flag_force.
4592 2011-05-23 Tom de Vries <tom@codesourcery.com>
4595 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
4597 (infer_loop_bounds_from_undefined): Use new function.
4599 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
4601 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
4602 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
4603 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
4605 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
4607 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4609 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
4610 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
4613 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
4615 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
4617 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4619 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
4620 UNSPEC_MOVE_PIC pattern.
4622 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4624 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
4625 (sparc-*-rtems*): Likewise.
4626 (sparc64-*-elf*): Likewise.
4627 (sparc64-*-rtems*): Likewise.
4628 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
4629 * config/sparc/t-crtin: New file.
4630 * config/sparc/t-sol2 (crti.o): Delete rule.
4632 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
4633 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
4634 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
4635 (ENDFILE_SPEC): Add crtn.o.
4637 2011-05-22 Tom de Vries <tom@codesourcery.com>
4640 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
4641 CODE_CONTAINS_STRUCT (TS_COMMON).
4643 2011-05-22 Jakub Jelinek <jakub@redhat.com>
4646 * expmed.c (extract_fixed_bit_field): Test whether target can be used
4647 only after deciding which mode to use.
4649 2011-05-22 Tom de Vries <tom@codesourcery.com>
4652 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
4653 for call to get_shiftadd_cost.
4655 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
4658 * config/i386/cpuid.h (bit_MMXEXT): New define.
4660 2011-05-22 Nick Clifton <nickc@redhat.com>
4662 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
4663 initialisation of non-existant args[2] element. Use args[] array
4664 not arg[] array to pass arguments to build_function_type_list.
4666 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
4668 PR tree-optimization/49087
4669 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
4671 2011-05-21 Jason Merrill <jason@redhat.com>
4674 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
4675 static storage duration.
4677 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
4679 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
4682 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
4684 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
4685 false if there are call-saved registers here...
4686 (sparc_can_use_return_insn_p): ...but here instead.
4687 (save_or_restore_regs): Fix thinko.
4688 (sparc_expand_prologue): Use current_function_is_leaf.
4689 (sparc_frame_pointer_required): Likewise.
4691 2011-05-21 Nick Clifton <nickc@redhat.com>
4694 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
4696 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
4698 * gengtype.c (walk_type): Implemented "atomic" GTY option.
4699 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
4701 2011-05-21 Joseph Myers <joseph@codesourcery.com>
4703 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
4704 * optc-gen.awk: Move common code to opt-read.awk.
4705 * opth-gen.awk: Likewise.
4706 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
4708 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
4710 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
4712 2011-05-20 Tom de Vries <tom@codesourcery.com>
4715 * tree-ssa-loop-ivopts.c: Include expmed.h.
4716 (get_shiftadd_cost): New function.
4717 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
4719 2011-05-20 Jakub Jelinek <jakub@redhat.com>
4722 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
4723 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
4725 2011-05-20 Joseph Myers <joseph@codesourcery.com>
4727 * Makefile.in: Update comment referring to $(OBJS-common).
4729 2011-05-20 Ian Lance Taylor <iant@google.com>
4731 * godump.c (go_output_typedef): Put enum constants in the macro
4732 hash table to avoid duplicate Go const definitions.
4734 2011-05-20 Joseph Myers <joseph@codesourcery.com>
4736 * Makefile.in (LIBDEPS): Add libcommon.a.
4738 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
4739 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
4740 pretty-print.o and version.o.
4741 (OBJS-libcommon): New.
4742 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
4743 (BACKEND): Add libcommon.a.
4744 (MOSTLYCLEANFILES): Likewise.
4746 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
4747 (cpp$(exeext)): Likewise.
4748 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
4749 pretty-print.o and input.o.
4750 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
4751 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
4753 (mips-tfile): Don't explicitly use version.o.
4754 (mips-tdump): Likewise.
4755 (gcov.o): Depend on $(DIAGNOSTIC_H).
4756 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
4757 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
4758 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
4759 * gcov-dump.c: Include intl.h and diagnostic.h.
4760 (main): Initialize diagnostics.
4761 * gcov.c: Include diagnostic.h.
4763 (main): Initialize diagnostics.
4764 * lto-wrapper.c: Include diagnostic.h.
4765 (main): Initialize diagnostics.
4767 2011-05-20 Michael Matz <matz@suse.de>
4769 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
4771 2011-05-20 Michael Matz <matz@suse.de>
4772 Richard Guenther <rguenther@suse.de>
4774 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
4775 use lto_streamer_cache_append directly instead of returning a VEC.
4776 (preload_common_node): Remove.
4777 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
4779 (lto_streamer_cache_create): Call lto_preload_common_nodes.
4781 2011-05-20 Richard Guenther <rguenther@suse.de>
4783 PR tree-optimization/49079
4784 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
4785 MEM_REFs correctly for the trailing array access detection.
4786 Special case constants the same way as decls for overall size
4789 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
4791 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
4794 2011-05-20 Jakub Jelinek <jakub@redhat.com>
4796 PR tree-optimization/49073
4797 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
4798 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
4799 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
4801 2011-05-20 Richard Guenther <rguenther@suse.de>
4804 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
4805 of pointer types the same way the middle-end does.
4807 2011-05-20 Richard Guenther <rguenther@suse.de>
4809 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
4810 or pointer-to chains. Delay all fixup to uniquify_nodes.
4812 2011-05-19 Quentin Neill <quentin.neill@amd.com>
4814 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
4815 (fma4_fmaddsub): Likewise
4817 2011-05-19 Jan Hubicka <jh@suse.cz>
4819 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
4820 (GIMPLE_TYPE_PAIR_SIZE): New macro.
4821 (type_pair_cache): New static var.
4822 (lookup_type_pair): Use fixed sized custom hash; make inline.
4823 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
4824 calls of lookup_type_pair.
4825 (print_gimple_types_stats): Remove cache stats.
4826 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
4829 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
4831 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
4832 when TARGET_RDRND is active.
4833 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
4834 Generate dummy SImode target register when target is NULL.
4836 2011-05-19 Joseph Myers <joseph@codesourcery.com>
4838 * config/arm/arm-fpus.def: New.
4839 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
4841 * config/arm/arm-tables.opt: Regenerate.
4842 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
4843 (arm_option_override): Don't decode FPU name to string here.
4844 * config/arm/arm.opt (mfpu=): Use Enum.
4845 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
4846 Update dependencies.
4848 2011-05-19 Joseph Myers <joseph@codesourcery.com>
4850 * collect2.c: Include diagnostic.h.
4851 (fatal_perror, fatal, error, fancy_abort): Remove.
4852 (main): Set progname. Call xmalloc_set_program_name and
4853 diagnostic_initialize.
4854 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
4855 scan_libraries, resolve_lib_name): Call fatal_error instead of
4856 fatal and fatal_perror.
4857 * collect2.h (error, fatal, fatal_perror): Don't declare.
4858 * tlink.c: Include diagnostic-core.h.
4859 (recompile_files): Call fatal_error instead of fatal_perror.
4860 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
4861 pretty-print.o and input.o.
4862 (collect2.o, tlink.o): Update dependencies.
4864 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4866 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
4868 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4871 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
4872 COMDAT group syntax, both SPARC and x86 variants.
4873 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
4874 * configure: Regenerate.
4875 * config/sol2.h (TARGET_SOLARIS): Define.
4876 (PUSHSECTION_FORMAT): Remove.
4877 (SECTION_NAME_FORMAT): Define.
4878 * config/sol2.c: Include hashtab.h.
4879 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
4880 expansion, using SECTION_NAME_FORMAT.
4881 (solaris_comdat_htab): New variable.
4882 (struct comdat_entry): Define.
4883 (comdat_hash): New function.
4884 (comdat_eq): New function.
4885 (solaris_elf_asm_comdat_section): New function.
4886 (solaris_define_comdat_signature): New function.
4887 (solaris_code_end): New function.
4888 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
4889 (solaris_code_end): Declare.
4890 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
4891 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
4893 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
4894 Remove ATTRIBUTE_UNUSED.
4895 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
4896 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
4897 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
4898 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
4899 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
4900 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
4901 (PUSHSECTION_FORMAT): Remove.
4902 (SECTION_NAME_FORMAT): Redefine.
4904 2011-05-19 Kai Tietz <ktietz@redhat.com>
4906 * tree-cfg.c (verify_gimple_assign_binary): Barf on
4907 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
4908 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
4910 2011-05-19 Anatoly Sokolov <aesok@post.ru>
4911 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4913 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
4915 2011-05-19 Richard Guenther <rguenther@suse.de>
4918 * tree-object-size.c (addr_object_size): If the pointed-to
4919 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
4921 2011-05-19 Richard Guenther <rguenther@suse.de>
4923 * gimple.c (gimple_types_compatible_p_1): Compare names of
4924 the types themselves.
4925 (iterative_hash_gimple_type): And hash them that way.
4926 (gimple_register_type_1): If we register a main variant properly
4927 initialize the leader to ourselves.
4929 2011-05-19 Tom de Vries <tom@codesourcery.com>
4932 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
4933 get_loop_invariant_expr_id.
4934 (get_loop_invariant_expr_id): Use get_expr_id.
4935 (parm_decl_cost): New function.
4936 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
4937 Improve bound cost estimation. Use different inv_expr_id for elim and
4940 2011-05-19 Tom de Vries <tom@codesourcery.com>
4943 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
4944 cost_base.cost == 0.
4946 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
4949 * config/i386/sse.md
4950 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
4953 2011-05-18 Jakub Jelinek <jakub@redhat.com>
4955 PR tree-optimization/49039
4956 * tree-vrp.c (extract_range_from_binary_expr): For
4957 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
4958 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
4960 2011-05-18 Tom de Vries <tom@codesourcery.com>
4963 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
4965 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
4967 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
4968 (*tls_global_dynamic_64): Ditto.
4969 (*tls_local_dynamic_base_32_gnu): Ditto.
4970 (*tls_local_dynamic_base_64): Ditto.
4971 (tls_initial_exec_64_sun): Ditto.
4973 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
4975 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
4976 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4978 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4979 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4980 * config/bfin/bfin.c (bfin_cpus): Add bf592.
4981 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4982 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
4983 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
4984 * config/bfin/elf.h (LIB_SPEC): Add bf592.
4986 2011-05-18 Joseph Myers <joseph@codesourcery.com>
4988 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
4989 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
4990 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
4991 target_thread_pointer, arm_structure_size_boundary, struct
4992 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
4993 struct abi_name, arm_all_abis): Remove.
4994 (arm_option_override) Don't process most enumerated option values here.
4995 Don't process target_fpe_name here. Work with integer not string for
4996 structure size boundary; use separate diagnostics for each case.
4997 * config/arm/arm.h (enum float_abi_type, enum
4998 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
5000 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
5001 arm_structure_size_boundary): Remove.
5002 * config/arm/arm.opt (mabi=): Use Enum and Init.
5003 (arm_abi_type): New Enum and EnumValue entries.
5004 (mfloat-abi=): Use Enum and Init.
5005 (float_abi_type): New Enum and EnumValue entries.
5006 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
5007 (mfp16-format=): Use Enum and Init.
5008 (arm_fp16_format_type): New Enum and EnumValue entries.
5009 (mstructure-size-boundary=): Use UInteger and Init.
5010 (mtp=): Use Enum and Init.
5011 (arm_tp_type): New Enum and EnumValue entries.
5013 2011-05-18 Richard Guenther <rguenther@suse.de>
5015 PR tree-optimization/49018
5016 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
5017 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
5018 gimple_has_side_effects.
5020 2011-05-18 Richard Guenther <rguenther@suse.de>
5022 * gimple.c (gimple_register_type_1): New function, split out from ...
5023 (gimple_register_type): ... here. Avoid infinite recursion.
5025 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
5027 PR tree-optimization/41881
5028 * tree-vectorizer.h (struct _loop_vec_info): Add new field
5029 reduction_chains along with a macro for its access.
5030 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
5031 (destroy_loop_vec_info): Free reduction chains.
5032 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
5033 (vect_is_slp_reduction): New function.
5034 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
5035 (vect_create_epilog_for_reduction): Support SLP reduction chains.
5036 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
5037 definition types for reduction chains.
5038 (vect_supported_load_permutation_p): Don't allow permutations for
5040 (vect_analyze_slp_instance): Support reduction chains.
5041 (vect_analyze_slp): Try to build SLP instance from reduction chains.
5042 (vect_get_constant_vectors): Handle reduction chains.
5043 (vect_schedule_slp_instance): Mark the first statement of the
5044 reduction chain as reduction.
5046 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
5048 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
5049 names for group elements access.
5050 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
5051 reduction chains as well. Remove data reference and interleaving
5052 related words from the fields names.
5053 * tree-vect-loop.c (vect_transform_loop): Use new names for group
5055 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
5056 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
5057 vect_update_interleaving_chain, vect_same_range_drs,
5058 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
5059 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
5060 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
5061 vect_analyze_group_access, vect_analyze_data_ref_access,
5062 vect_create_data_ref_ptr, vect_transform_strided_load,
5063 vect_record_strided_load_vectors): Likewise.
5064 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
5065 vect_model_load_cost, vectorizable_store, vectorizable_load,
5066 vect_remove_stores, new_stmt_vec_info): Likewise.
5067 * tree-vect-slp.c (vect_build_slp_tree,
5068 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
5070 2011-05-18 Richard Guenther <rguenther@suse.de>
5073 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
5074 operand verification.
5075 (verify_gimple_assign_binary): Likewise.
5076 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
5077 to non-1-precision BOOLEAN_TYPEs.
5079 2011-05-18 Tom de Vries <tom@codesourcery.com>
5082 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
5084 2011-05-18 Jakub Jelinek <jakub@redhat.com>
5086 PR tree-optimization/49000
5087 * tree-ssa.c (execute_update_addresses_taken): Call
5088 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
5089 be rewritten and decl has been marked for renaming, reset
5092 2011-05-17 Joseph Myers <joseph@codesourcery.com>
5094 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
5095 enum_opts_set when testing if attributes have set -mfpmath=.
5097 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
5099 * config/mips/mips.c (mips_handle_option): Remove unused variable.
5101 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
5103 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
5105 * tree-inline.c (maybe_inline_call_in_expr): Initialize
5106 id.transform_lang_insert_block with NULL.
5108 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
5110 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
5111 (output_fp_compare): Change args 3 and 4 to bool.
5112 (ix86_expand_call): Change arg 6 to bool.
5113 (ix86_attr_length_immediate_default): Change arg 2 to bool.
5114 (ix86_attr_length_vex_default): Change arg 3 to bool.
5115 * config/i386/i386.md: Update all uses.
5116 * config/i386/i386.c: Ditto.
5117 (ix86_flags_dependent): Change return type to bool.
5119 2011-05-17 Richard Guenther <rguenther@suse.de>
5121 * gimple.c (type_hash_pair_compare): Fix comparison.
5123 2011-05-17 Richard Guenther <rguenther@suse.de>
5125 * gimple.c (iterative_hash_gimple_type): Simplify singleton
5126 case some more, fix final hash value of the non-singleton case.
5128 2011-05-17 Richard Guenther <rguenther@suse.de>
5132 2011-05-16 Richard Guenther <rguenther@suse.de>
5134 * gimple.c (gimple_types_compatible_p_1): Use names of the
5135 type itself, not its main variant.
5136 (iterative_hash_gimple_type): Likewise.
5138 2011-05-17 Richard Guenther <rguenther@suse.de>
5140 * gimple.c (gimple_register_canonical_type): Use the main-variant
5141 leader for computing the canonical type.
5143 2011-05-17 Nick Clifton <nickc@redhat.com>
5145 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
5148 * config/rx/rx.md: Add peephole to remove redundant extensions
5150 (bitset_in_memory): Use rx_restricted_mem_operand.
5151 (bitinvert_in_memory): Likewise.
5152 (bitclr_in_memory): Likewise.
5154 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
5155 Nick Clifton <nickc@redhat.com>
5157 * config/rx/rx.md: Add peepholes to match a register move followed
5158 by a comparison of the moved register. Replace these with an
5159 addition of zero that does both actions in one instruction.
5161 2011-05-17 Jakub Jelinek <jakub@redhat.com>
5164 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
5165 predicate to allow CONST_INT.
5166 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
5168 2011-05-16 Joseph Myers <joseph@codesourcery.com>
5170 * opts-common.c (opt_enum_arg_to_value): New.
5171 * opts.h (opt_enum_arg_to_value): Declare.
5172 * config/i386/i386.opt (fpmath): Remove.
5173 (mfpmath=): Use Enum, Init and Save.
5174 (fpmath_unit): New Enum and EnumValue entries.
5175 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
5176 name for function fpmath state.
5177 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
5178 * config/i386/i386.c: Include diagnostic.h.
5179 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
5180 (ix86_target_string): Take enum fpmath_unit value instead of string.
5181 (ix86_debug_options): Update call to ix86_target_string.
5182 (ix86_option_override_internal): Don't process fpmath strings here.
5183 (x86_function_specific_save, ix86_function_specific_restore):
5184 Don't handle fpmath state specially.
5185 (ix86_function_specific_print): Pass fpmath state to
5186 ix86_target_string instead of printing in this function.
5187 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
5188 Handle enum attributes.
5189 (IX86_ATTR_ENUM, ix86_opt_enum): New.
5190 (ix86_valid_target_attribute_tree): Update option_strings
5191 handling. Handle fpmath as enum option.
5192 (ix86_can_inline_p): Update field names for function fpmath state.
5193 (ix86_expand_builtin): Update call to ix86_target_string.
5194 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
5195 (ix86_fpmath): Remove.
5196 * config/i386/t-i386 (i386.o): Update dependencies.
5198 2011-05-16 Joseph Myers <joseph@codesourcery.com>
5200 PR preprocessor/48677
5201 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
5202 from decoded_options[0], not from itself.
5204 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
5206 * config/i386/constraints.md (z): New constraint.
5207 * config/i386/i386.c (c): New mode attribute.
5208 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
5209 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
5210 constraint for operand 0.
5211 (*call_vzeroupper): Ditto.
5212 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
5213 (*call_rex64_ms_sysv_vzeroupper): Ditto.
5214 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
5215 Use "lzm" constraint for operand 0.
5216 (*call_pop_vzeroupper): Ditto.
5217 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
5218 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
5219 constraint for operand 0.
5220 (*sibcall_vzeroupper): Ditto.
5221 (*sibcall_rex64_ms_sysv): Ditto.
5222 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
5223 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
5224 *sibcall_pop_1. Use "Uz" constraint for operand 0.
5225 (*sibcall_pop_vzeroupper): Ditto.
5226 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
5227 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
5228 mode iterator. Use "<c>zm" constraint for operand 1.
5229 (*call_value_vzeroupper): Ditto.
5230 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
5232 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
5233 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
5234 *call_value_pop_1. Use "lzm" constraint for operand 1.
5235 (*call_value_pop_vzeroupper): Ditto.
5236 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
5237 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
5238 mode iterator. Use "Uz" constraint for operand 1.
5239 (*sibcall_value_vzeroupper): Ditto.
5240 (*sibcall_value_rex64_ms_sysv): Ditto.
5241 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
5242 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
5243 constraint for operand 1.
5244 (*sibcall_value_pop_vzeroupper): Ditto.
5245 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
5246 and "z" constraint for operand 2.
5247 (*tls_global_dynamic_32_gnu): Ditto.
5248 (*tls_local_dynamic_base_32_gnu): Ditto.
5249 (*tls_local_dynamic_base_64): Ditto.
5250 (*tls_local_dynamic_32_once): Ditto.
5251 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
5253 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
5255 2011-05-16 Richard Guenther <rguenther@suse.de>
5257 * gimple.c (gimple_types_compatible_p_1): Use names of the
5258 type itself, not its main variant.
5259 (iterative_hash_gimple_type): Likewise.
5261 2011-05-16 Richard Guenther <rguenther@suse.de>
5263 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
5264 always visit pointer target and function result and argument types.
5266 2011-05-16 Jason Merrill <jason@redhat.com>
5269 * tree-inline.c (copy_statement_list): Put back recursion.
5271 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
5275 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
5276 * config/avr/avr.md ("*ior<mode>qi.byte0",
5277 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
5279 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
5282 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
5283 register is needed for a function argument.
5285 2011-05-16 Richard Guenther <rguenther@suse.de>
5287 * gimple.c (struct type_hash_pair): New type.
5288 (type_hash_pair_compare): New function.
5289 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
5291 2011-05-16 Revital Eres <revital.eres@linaro.org>
5293 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
5295 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
5297 * config/i386/i386.md (floating point move splitters): Fix
5298 usage of standard_80387_constant_p.
5299 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
5301 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
5303 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
5305 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
5307 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
5308 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
5309 (tree_ssa_lim_finalize): Likewise.
5311 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
5313 * config/i386/constraint.md (Yd, Yx): New register constraints.
5314 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
5315 Yd conditional register constraint.
5316 (*movtf_internal): Use standard_sse_constant_opcode.
5317 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
5318 Yx conditional register constraint.
5319 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
5320 Yd conditional register constraint. Use standard_sse_constant_p to
5321 check for valid SSE constants and call standard_sse_constant_opcode to
5323 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
5324 constants and call standard_sse_constant_opcode to output SSE insn.
5325 * config/i386/i386.c (ix86_option_ovverride_internal): Set
5326 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
5327 optimize_size is set.
5328 (standard_sse_constant_opcode): Output conditional AVX insn templates.
5330 2011-05-14 Tobias Burnus <burnus@net-b.de>
5332 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
5334 2011-05-13 Martin Jambor <mjambor@suse.cz>
5336 * ipa-prop.c (ipa_cst_from_jfunc): New function.
5337 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
5338 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
5339 (evaluate_conditions_for_ipcp_clone): Removed.
5340 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
5341 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
5342 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
5344 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
5346 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
5347 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
5348 lieu of MAY_HAVE_DEBUG_STMTS.
5349 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
5350 debug statements if !MAY_HAVE_DEBUG_STMTS.
5352 2011-05-13 Martin Thuresson <martint@google.com>
5354 PR gcov-profile/47793
5355 * libgcov.c (gcov_exit): Support relative profile paths.
5356 * doc/invoke.texi (-fprofile-dir): Update for above change.
5358 2011-05-13 Richard Guenther <rguenther@suse.de>
5360 * gimple.c (gimple_canonical_types_compatible_p): Do not use
5361 type-pair caching, do not compare hashes.
5363 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
5366 * tree-cfg.c (edge_to_cases_cleanup): Return true.
5367 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
5369 2011-05-13 Kai Tietz <ktietz@redhat.com>
5371 * gimplify.c (gimplify_expr): Make sure operand is boolified.
5372 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
5373 compatible type for TRUTH_NOT_EXPR.
5375 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
5377 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
5378 (ix86_hard_regno_mode_ok): Change return value to bool. Use
5379 can_create_pseudo_p ().
5381 2011-05-13 Richard Guenther <rguenther@suse.de>
5384 * gimple.c (iterative_hash_gimple_type): Revert change in
5385 pointer target and function result and argument hashing.
5387 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
5389 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
5390 (*movxf_internal_nointeger): Ditto.
5391 (*movdf_internal_rex64): Ditto.
5392 (*movdf_internal): Ditto.
5393 (*movdf_internal_nointeger): Ditto.
5394 (*movsf_internal): Ditto.
5395 (sincos splitters): Use can_create_pseudo ().
5397 2011-05-13 Joseph Myers <joseph@codesourcery.com>
5399 * config/i386/i386-opts.h: New.
5400 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
5401 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
5402 ix86_section_threshold): Remove.
5403 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
5404 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
5406 (ix86_option_override_internal): Don't decode strings for options
5407 other than -march=, -mtune= and -mfpmath=. Don't allow for
5408 __attribute__ uses in remaining diagnostics for options with
5409 string arguments. Don't check for integer arguments being negative.
5410 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
5411 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
5412 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
5413 ix86_branch_cost, ix86_section_threshold): Remove.
5414 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
5416 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
5418 (masm=): Use Enum and Init.
5419 (asm_dialect): New Enum and EnumValue entries.
5420 (mbranch-cost=): Use UInteger.
5421 (mlarge-data-threshold=): Use UInteger and Init.
5422 (mcmodel=): Use Enum and Init.
5423 (cmodel): New Enum and EnumValue entries.
5424 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
5425 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
5426 mregparm=): Use UInteger.
5427 (mstringop-strategy=): Use Enum and Init.
5428 (stringop_alg): New Enum and EnumValue entries.
5429 (mtls-dialect=): Use Enum and Init.
5430 (tls_dialect): New Enum and EnumValue entries.
5431 (mabi=): Use Enum and Init.
5432 (calling_abi): New Enum and EnumValue entries.
5433 (mveclibabi=): Use Enum and Init.
5434 (ix86_veclibabi): New Enum and EnumValue entries.
5436 2011-05-13 Nick Clifton <nickc@redhat.com>
5438 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
5439 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
5441 2011-05-13 Kai Tietz <ktietz@redhat.com>
5444 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
5445 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
5446 (gimple_boolify): Check for cast for boolean_type_node instead for
5449 2011-05-13 Richard Guenther <rguenther@suse.de>
5451 PR tree-optimization/48172
5452 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
5453 multiplying by number of iterations for equal step.
5454 (vect_create_cond_for_alias_checks): Likewise.
5456 2011-05-13 Andreas Schwab <schwab@redhat.com>
5458 * configure.ac: Use AS_HELP_STRING throughout.
5459 * configure: Regenerate.
5461 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
5463 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
5464 (ix86_emit_restore_regs_using_mov): Likewise.
5465 (ix86_emit_restore_sse_regs_using_mov): Likewise.
5467 2011-05-12 Anatoly Sokolov <aesok@post.ru>
5469 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
5470 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
5471 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
5472 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
5473 RTX_OK_FOR_OLO10_P): ...here.
5474 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
5477 2011-05-12 Kai Tietz <ktietz@redhat.com>
5479 * gimplify.c (gimple_boolify): Re-boolify expression
5480 arguments even if expression type is of kind BOOLEAN_TYPE.
5481 (gimplify_boolean_expr): Removed.
5482 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
5483 and XOR. Additional take care that we keep expression's type.
5484 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
5485 of TRUTH_AND|OR|XOR_EXPR.
5487 2011-05-12 Jakub Jelinek <jakub@redhat.com>
5489 PR tree-optimization/48975
5490 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
5491 on all bbs here and free and clear ifc_bbs at the end.
5493 2011-05-12 Richard Guenther <rguenther@suse.de>
5495 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
5496 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
5497 until after simple checks.
5498 (gimple_types_compatible_p): Likewise.
5499 (iterative_hash_gimple_type): Always hash pointer targets
5500 and function return and argument types.
5501 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
5502 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
5503 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
5504 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
5505 completely in the simple compare section.
5506 (gimple_register_canonical_type): Query the cache again after
5509 2011-05-12 Richard Guenther <rguenther@suse.de>
5511 PR tree-optimization/48172
5512 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
5513 the number of iterations from the segment size calculation.
5514 (vect_create_cond_for_alias_checks): Adjust.
5516 2011-05-12 Jakub Jelinek <jakub@redhat.com>
5519 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
5520 if validate_subreg fails.
5522 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
5524 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
5525 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
5528 2011-05-12 DJ Delorie <dj@redhat.com>
5530 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
5531 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
5532 created builtin into rx_builtins array.
5533 (rx_builtin_decl): New function.
5534 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
5536 2011-05-12 DJ Delorie <dj@redhat.com>
5537 Nick Clifton <nickc@redhat.com>
5539 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
5540 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
5541 (rx_is_legitimate_address): Add pre-decrement and post-increment
5542 addressing in HImode and QImode. Fix test for out of range
5544 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
5545 (rx_align_for_label): Test label before extracting its usage count.
5546 (rx_adjust_insn_lengths): Fix selection of insn codes.
5547 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5549 2011-05-11 Jason Merrill <jason@redhat.com>
5551 * tree.c (type_hash_canon): Use struct tree_type_non_common.
5553 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
5555 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
5556 reindent the subsequent block.
5558 2011-05-11 Satoru Takabayashi <satorux@google.com>
5559 Paul Pluzhnikov <ppluzhnikov@google.com>
5561 * doc/install.texi (Configuration): Document --with-linker-hash-style.
5562 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
5563 * config.in: Add LINKER_HASH_STYLE.
5564 * configure.ac: Add --with-linker-hash-style.
5565 * configure: Regenerate.
5567 2011-05-11 Richard Guenther <rguenther@suse.de>
5570 * gimple.c (iterative_hash_canonical_type): Fix typo.
5572 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
5574 * config/i386/i386.c (legitimize_tls_address)
5575 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5576 expanders directly for TARGET_GNU2_TLS. Determine pic and
5577 __tls_get_addr symbol reference here. Update call to
5578 gen_tls_global_dynamic_{32,64} for added arguments.
5579 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5580 expanders directly for TARGET_GNU2_TLS. Determine
5581 __tls_get_addr symbol reference here. Update call to
5582 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
5583 unique UNSPEC REG_EQUIV to libcall block.
5584 (ix86_tls_get_addr): Declare static.
5585 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
5586 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
5587 Do not determine pic and __tls_get_addr symbol reference here. Do not
5588 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
5589 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
5590 (tls_global_dynamic_64): Add operand 2. Do not determine
5591 __tls_get_addr symbol reference here. Do not call
5592 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
5593 (tls_local_dynamic_base64): Ditto for operand 1.
5595 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
5597 * function.c (expand_function_start): Initialize stack_check_probe_note
5598 only if the generic stack checking mechanism is used.
5600 2011-05-11 Richard Guenther <rguenther@suse.de>
5602 PR tree-optimization/15256
5603 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
5604 (A & B) | C, combine (A op CST1) op CST2.
5605 (tree_ssa_forward_propagate_single_use_vars): Only bother to
5606 visit assigns that have uses.
5608 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
5610 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
5611 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
5612 (unpack_ts_type_common_value_fields): ...this. Update comment.
5613 (unpack_value_fields): Adjust for renaming.
5614 (lto_input_ts_type_tree_pointers): Split into...
5615 (lto_input_ts_type_common_tree_pointer): ...this and...
5616 (lto_input_ts_type_non_common_tree_pointers): ...this.
5617 (lto_input_tree_pointers): Adjust for above split.
5618 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
5619 (pack_ts_type_common_value_fields): ...this. Update comment.
5620 (lto_output_ts_type_tree_pointers): Split into...
5621 (lto_output_ts_type_common_tree_pointers): ...this and...
5622 (lto_output_ts_type_non_common_tree_pointers): ...this.
5623 (lto_output_tree_pointers): Adjust for above split.
5624 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
5625 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
5626 * stor-layout.c (vector_type_mode): Adjust location of mode field.
5627 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
5629 (struct tree_type): Split into...
5630 (struct tree_type_common: ...this and...
5631 (struct tree_type_with_lang_specific): ...this and...
5632 (struct tree_type_non_common): ...this. Adjust accessor macros
5634 (TYPE_VALUES_RAW): Define.
5635 (union tree_node): Update for above changes.
5636 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
5638 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
5639 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
5640 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
5641 * treestructu.def (TS_TYPE): Remove.
5642 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
5645 2011-05-11 Jakub Jelinek <jakub@redhat.com>
5648 * tree-ssa.c (reset_debug_uses): New function.
5649 * tree-flow.h (reset_debug_uses): New prototype.
5650 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
5651 * tree-loop-distribution.c (generate_loops_for_partition): Call
5652 reset_debug_uses on the stmts that will be removed. Keep around
5653 all debug stmts, don't count them as bits in partition bitmap.
5654 (generate_builtin): Don't count debug stmts or labels as bits in
5657 2011-05-11 Richard Guenther <rguenther@suse.de>
5659 * gimple.c (gimple_type_hash_1): Merge with ...
5660 (gimple_type_hash): ... this.
5661 (gtc_visit): Remove mode parameter and simplify accordingly.
5662 (gimple_types_compatible_p_1): Likewise.
5663 (gimple_types_compatible_p): Likewise.
5664 (iterative_hash_gimple_type): Likewise.
5666 (gimple_type_eq): Adjust.
5668 2011-05-11 Revital Eres <revital.eres@linaro.org>
5670 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
5671 enters the branch create an anti edge in the opposite direction
5672 to prevent the creation of reg-moves.
5673 * modulo-sched.c: Adjust comment to reflect the fact we are
5674 scheduling closing branch.
5675 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
5676 (stage_count): New field in struct partial_schedule.
5677 (calculate_stage_count): New function.
5678 (normalize_sched_times): Rename to reset_sched_times and handle
5679 incrementing the sched time of the nodes by a constant value
5680 passed as parameter.
5681 (duplicate_insns_of_cycles): Skip closing branch.
5682 (sms_schedule_by_order): Schedule closing branch.
5683 (ps_insn_find_column): Handle closing branch.
5684 (sms_schedule): Call reset_sched_times and adjust the code to
5685 support scheduling of the closing branch.
5686 (ps_insert_empty_row): Update calls to normalize_sched_times
5687 and rotate_partial_schedule functions.
5689 2011-05-11 Richard Guenther <rguenther@suse.de>
5692 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
5694 2011-05-11 Joseph Myers <joseph@codesourcery.com>
5696 * opts.c (finish_options): Move warning settings from process_options.
5697 * toplev.c (process_options): Move warning settings to finish_options.
5699 2011-05-11 Richard Guenther <rguenther@suse.de>
5701 PR tree-optimization/18041
5702 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
5703 (simplify_bitwise_binary): ... this. Handle operand conversions
5704 by applying them to the result instead.
5705 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
5707 2011-05-11 Richard Guenther <rguenther@suse.de>
5709 * gimple.c (gimple_canonical_types_compatible_p): Split out
5710 from gimple_types_compatible_p and friends. Do not recurse
5711 to pointed-to types.
5712 (gimple_canonical_type_eq): Use it.
5713 (iterative_hash_canonical_type): Split out from
5714 iterative_hash_gimple_type and friends. Do not recurse
5715 to pointed-to types.
5716 (gimple_canonical_type_hash): Use it, allocate the hash here.
5718 2011-05-11 Revital Eres <revital.eres@linaro.org>
5720 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
5723 2011-05-11 Revital Eres <revital.eres@linaro.org>
5725 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
5726 instead of PREV_INSN.
5728 2011-05-11 Revital Eres <revital.eres@linaro.org>
5730 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
5731 * loop-doloop.c (doloop_condition_get): Likewise.
5732 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
5734 * config/arm/arm.md (*addsi3_compare0): Remove "*".
5736 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5738 * tree.def (CASE_LABEL_EXPR): Add an operand.
5739 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
5741 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5743 * c-decl.c (c_override_global_bindings_to_false): Remove.
5744 (global_bindings_p): Don't check
5745 c_override_global_bindings_to_false.
5746 * c-tree.h (c_override_global_bindings_to_false): Remove.
5747 * c-typeck.c (composite_type): Don't set
5748 c_override_global_bindings_to_false.
5750 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5752 PR target/48857, 48495
5753 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
5755 (VSX_MOVE_MODE): Ditto.
5756 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
5757 VSX vector types. Add V2DImode.
5758 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
5759 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
5760 (MODES_TIEABLE_P): Ditto.
5762 * config/rs6000/rs6000.c (rs6000_emit_move): Use
5763 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
5765 (init_cumulative_args): Ditto.
5766 (rs6000_function_arg_boundary): Ditto.
5767 (rs6000_function_arg_advance_1): Ditto.
5768 (rs6000_function_arg): Ditto.
5769 (rs6000_function_ok_for_sibcall): Ditto.
5770 (emit_frame_save): Ditto.
5771 (rs6000_function_value): Ditto.
5772 (rs6000_libcall_value): Ditto.
5774 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5776 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
5777 i386/darwin-lib.h to $libgcc_tm_file.
5778 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
5780 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5782 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
5784 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5786 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
5787 * config/rs6000/rs6000-tables.opt: New file (generated).
5788 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
5789 rs6000/rs6000-tables.opt to extra_options.
5790 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
5791 * config/rs6000/rs6000.c (rs6000_select): Remove.
5792 (processor_target_table): Move contents to rs6000-cpus.def.
5793 (darwin_rs6000_override_options): Check
5794 global_options_set.x_rs6000_cpu_index instead of
5795 rs6000_select[1].string.
5796 (rs6000_option_override_internal): Likewise.
5797 (rs6000_handle_option): Don't assert that global structures are in
5798 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
5799 (rs6000_default_cpu): New variable.
5800 (rs6000_file_start): Set it instead of local default_cpu. Check
5801 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
5802 global_options_set.x_rs6000_tune_index instead of rs6000_select.
5803 (rs6000_darwin_file_start): Check rs6000_default_cpu and
5804 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
5805 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
5806 rs6000_select): Remove.
5807 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
5809 (mcpu=, mtune=): Use Var, Init, Enum and Save.
5810 * config/rs6000/t-rs6000
5811 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
5812 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5813 global_options_set.x_rs6000_cpu_index instead of
5814 rs6000_select[1].string.
5815 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5816 global_options_set.x_rs6000_cpu_index instead of
5817 rs6000_select[1].string.
5819 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5821 * config.gcc (libgcc_tm_file): Define instead of including files
5822 from ../../libgcc/config/ in tm_file.
5823 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
5824 * configure: Regenerate.
5825 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
5826 libgcc_tm.h, cs-libgcc_tm.h): New.
5827 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
5828 (clean): Remove libgcc_tm.h.
5829 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
5830 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
5831 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
5833 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
5836 * config/avr/avr.c (avr_ret_register): Return unsigned int
5838 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
5839 it to avr_libcall_value.
5840 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
5842 (avr_expand_binop_builtin): Ditto.
5843 (avr_expand_unop_builtin): Ditto.
5845 2011-05-10 DJ Delorie <dj@redhat.com>
5847 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
5848 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
5849 * config/rx/rx.c (rx_align_for_label): Add label and
5850 uses_threshold parameters. Do not align when the label is not
5852 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
5854 2011-05-10 Richard Guenther <rguenther@suse.de>
5856 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
5857 a series of conversions and apply foldings similar to what
5859 (tree_ssa_forward_propagate_single_use_vars): Call it.
5861 2011-05-10 Jakub Jelinek <jakub@redhat.com>
5863 PR tree-optimization/48611
5864 PR tree-optimization/48794
5865 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
5866 referenced from RESX or EH_DISPATCH arguments.
5869 * dfp.c (decimal_to_decnumber): Handle conversion from
5870 dconst{1,2,m1,half}.
5872 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5874 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
5875 for !flag_prefer_avx128.
5876 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
5878 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
5880 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
5881 (fold_ternary_loc): Use expr_location_or.
5883 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
5886 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
5887 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
5888 Pmode and mem_mode is not VOIDmode.
5890 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
5892 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
5893 TYPE_QUAL_RESTRICT): Convert to enum.
5895 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5897 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
5898 (const_pow2_1_to_8_operand): Ditto.
5899 (const_pow2_1_to_128_operand): Ditto.
5900 (const_pow2_1_to_32768_operand): Ditto.
5901 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
5902 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
5903 in insn constraint to check integer value of operand 3.
5904 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
5906 (PINSR_MODE): New mode iterator.
5907 (sse2p4_1): New mode attribute.
5908 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
5909 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
5910 iterator. Use const_int_operand instead of
5911 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
5912 exact_log2 in insn constraint to check integer value of operand 3.
5914 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5916 * config/i386/sse.md (blendbits): Remove mode attribute.
5917 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
5918 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
5919 Check integer value of operand 3 in insn constraint.
5921 2011-05-09 Richard Guenther <rguenther@suse.de>
5923 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
5925 (lto_symtab_merge): Likewise. Do not register types here.
5926 (lto_symtab_merge_decls_2): Likewise.
5927 (lto_symtab_merge_decls_1): Likewise.
5928 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
5929 * gimple.c (enum gtc_mode): Declare.
5930 (gimple_types_compatible_p): Make static.
5932 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5934 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
5935 temporary register to match Pmode.
5937 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5939 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
5940 and *vec_concatv4si_1_avx.
5942 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5944 PR rtl-optimization/48927
5945 * ira-conflicts.c (commutative_constraint_p): Use
5946 recog_data.alternative_enabled_p to disable alternatives where
5947 "enabled" attribute is false.
5948 (get_dup_num): Ditto.
5949 * ira-lives.c (single_reg_class): Ditto.
5950 (ira_implicitly_set_insn_hard_regs): Ditto.
5952 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
5954 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
5955 (dataflow_set_preserve_mem_locs): Likewise.
5957 2011-05-09 Philipp Thomas <pth@suse.de>
5959 * config/mep/mep.c (mep_validate_vliw): Syntax description
5960 should not be translated.
5962 2011-05-09 Joseph Myers <joseph@codesourcery.com>
5964 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
5965 * config/mips/mips-tables.opt: New file (generated).
5966 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
5967 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
5968 MIPS_ARCH_OPTION_NATIVE): Define.
5969 * config/mips/mips.c (mips_cpu_info_table): Move contents to
5971 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
5972 mips_parse_cpu): Remove.
5973 (mips_cpu_info_from_opt, mips_default_arch): New.
5974 (mips_handle_option): Don't assert that global structures are in
5975 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
5976 (mips_option_override): Use new variables and functions to set
5977 state of these options. Use strcmp to check for individual CPU names.
5978 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
5980 * config/mips/mips.opt (march=): Use ToLower and Enum.
5981 (mips): Use ToLower, Enum and Var.
5982 (mtune=): Use ToLower and Enum.
5983 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
5985 2011-05-08 Jan Hubicka <jh@suse.cz>
5987 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
5988 Arrange type pairs to be UID ordered.
5989 (gimple_lookup_type_leader): Make inline.
5991 2011-05-09 Nick Clifton <nickc@redhat.com>
5994 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
5998 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
6001 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
6003 * combine.c (simplify_comparison): Abstract out parts into...
6004 (simplify_compare_const): ... new function.
6005 (try_combine): Generalize parallel arithmetic/compare combining
6006 to call simplify_compare_const() and CANONICALIZE_COMPARE().
6008 2011-05-08 Jan Hubicka <jh@suse.cz>
6010 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
6011 (cgraph_create_virtual_clone): Call hooks once virtual clone
6013 * cgraph.h (cgraph_clone_node): Update prototype.
6014 * ipa-cp.c (ipcp_estimate_growth): Use
6015 estimate_ipcp_clone_size_and_time.
6016 * ipa-inline-transform.c (clone_inlined_nodes): Update.
6017 * lto-cgraph.c (input_node): Update.
6018 * ipa-inline.c (recursive_inlining): Update.
6019 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
6020 (evaluate_conditions_for_known_args): Break out from ...
6021 (evaluate_conditions_for_edge): ... here.
6022 (evaluate_conditions_for_ipcp_clone): New function.
6023 (inline_node_duplication_hook): Update clone summary based
6025 (estimate_callee_size_and_time): Rename to ...
6026 (estimate_node_size_and_time): take NODE instead of EDGE;
6027 take POSSIBLE_TRUTHS as argument.
6028 (estimate_callee_size_and_time): Update.
6029 (estimate_ipcp_clone_size_and_time): New function.
6030 (do_estimate_edge_time): Update.
6032 2011-05-08 Richard Guenther <rguenther@suse.de>
6036 * expmed.c (expand_shift_1): Compute adjusted constant shift
6039 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
6041 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
6043 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
6045 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
6047 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
6049 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
6051 2011-05-07 Jan Hubicka <jh@suse.cz>
6053 * ipa-inline-transform.c (inline_call): Account when program size
6055 * ipa-inline.c (relative_time_benefit): New function.
6056 (edge_badness): Reorganize to be power 2 based; fix thinko when
6057 computing badness for negative growth; update comments to match
6058 reality; better dumps.
6060 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
6062 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
6063 type to bool and adjust comment.
6064 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
6065 (fold_mathfn_compare): Remove calls to global_bindings_p.
6066 (fold_inf_compare): Likewise.
6067 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
6068 * c-tree.h (global_bindings_p): Adjust prototype.
6069 * c-decl.c (global_bindings_p): Return bool and simplify.
6071 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
6073 PR tree-optimization/48837
6074 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
6075 when accumulator transformation is performed.
6077 2011-05-06 Jan Hubicka <jh@suse.cz>
6079 * i386.h (ix86_tune_indices): Add
6080 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
6081 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
6082 * i386.c (initial_ix86_tune_features): Add
6083 X86_SOFTARE_PREFETCHING_BENEFICIAL.
6084 (software_prefetching_beneficial_p): Remove predicate.
6085 (ix86_option_override_internal): Use new macro.
6087 2011-05-06 Jan Hubicka <jh@suse.cz>
6089 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
6091 2011-05-06 Jan Hubicka <jh@suse.cz>
6093 * cgraph.c (cgraph_add_thunk): Create real function node instead
6094 of alias node; finalize it and mark needed/reachale; arrange visibility
6095 to be right and add it into the corresponding same comdat group list.
6096 (dump_cgraph_node): Dump thunks.
6097 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
6098 cgraph_function_with_gimple_body_p,
6099 cgraph_first_function_with_gimple_body,
6100 cgraph_next_function_with_gimple_body): New functions.
6101 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
6103 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
6104 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6105 * cgraphunit.c (cgraph_finalize_function): Only look into possible
6106 devirtualization when optimizing.
6107 (verify_cgraph_node): Verify thunks.
6108 (cgraph_analyze_function): Analyze thunks.
6109 (cgraph_mark_functions_to_output): Output thunks only in combination
6110 with function they are assigned to.
6111 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
6112 alias into normal node.
6113 (assemble_thunks): New functoin.
6114 (cgraph_expand_function): Use it.
6115 * lto-cgraph.c (lto_output_node): Stream thunks.
6116 (input_overwrite_node): Stream in thunks.
6117 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
6118 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
6119 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
6120 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
6121 (inline_analyze_function): Do not care about thunk jump functions.
6122 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
6123 * ipa-prop.c (ipa_prop_write_jump_functions): Use
6124 cgraph_function_with_gimple_body_p.
6125 * passes.c (do_per_function_toporder): Use
6126 cgraph_function_with_gimple_body_p.
6127 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6128 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
6129 (function_called_by_processed_nodes_p): Likewise.
6131 2011-05-06 Joseph Myers <joseph@codesourcery.com>
6133 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
6134 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
6136 (mabi=): Replace with separate entries for mabi=altivec,
6137 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
6138 mabi=ieeelongdouble and mabi=ibmlongdouble.
6139 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
6140 check for -mabi=spe without SPE ABI support here.
6141 (rs6000_handle_option): Replace OPT_mabi_ handling with
6142 OPT_mabi_altivec and OPT_mabi_spe handling.
6144 2011-05-06 Cary Coutant <ccoutant@google.com>
6146 * dwarf2out.c (contains_subprogram_definition): New function.
6147 (should_move_die_to_comdat): Call it.
6149 2011-05-06 Jeff Law <law@redhat.com>
6151 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
6152 remove_ctrl_stmt_and_useless_edges.
6153 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
6154 (fixup_template_block, thread_single_edge): Likewise.
6155 (mark_threaded_blocks): Use THREAD_TARGET.
6157 2011-05-06 Alan Modra <amodra@gmail.com>
6160 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6161 const0_rtx as the arg to the dummy __tls_get_addr libcall.
6163 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
6165 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
6166 constraint modifier to "r".
6168 2011-05-06 Joseph Myers <joseph@codesourcery.com>
6170 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
6171 fall through for OPT_mcmodel_.
6173 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6175 * config/s390/s390.c (s390_asm_trampoline_template): Comment
6177 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
6179 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6182 * config/arm/arm.opt (marm): Document it.
6183 (mthumb): Reject negative variant.
6185 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
6188 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6189 Fix typo in "ccvt" variable name.
6191 2011-05-06 Tristan Gingold <gingold@adacore.com>
6194 * config/vms/vms-ar.c (main): Remove cwd variable.
6196 2011-05-06 Jakub Jelinek <jakub@redhat.com>
6199 * var-tracking.c (prepare_call_arguments): Move else before #endif.
6201 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
6203 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
6204 * gimplify.c (gimplify_switch_expr): Likewise.
6205 * omp-low.c (expand_omp_sections): Likewise.
6206 * tree-eh.c (lower_try_finally_switch): Likewise.
6207 (lower_eh_dispatch): Likewise.
6208 * tree.h (build_case_label): Declare.
6209 * tree.c (build_case_label): Define.
6211 2011-05-05 Jason Merrill <jason@redhat.com>
6214 * tree-inline.c (copy_tree_r): Use copy_statement_list.
6215 (copy_statement_list): Don't recurse.
6216 * stor-layout.c (copy_self_referential_tree_r): Don't allow
6219 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6221 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
6222 through from -mfpu= handling.
6223 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
6225 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
6227 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
6230 2011-05-05 Steve Ellcey <sje@cup.hp.com>
6232 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
6234 (hppa[12]*-*-hpux11*): Ditto.
6235 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
6236 * config/ia64/hpux-unix2003.h: New.
6237 * config/pa/pa-hpux1131.opt: New.
6238 * config/pa/pa-hpux1131.h: New.
6239 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
6240 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
6241 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
6243 2011-05-05 Jakub Jelinek <jakub@redhat.com>
6246 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
6247 instead of mode as 3rd argument to recursive call.
6248 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
6249 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
6251 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
6252 don't give up if mode is Pmode and mem_mode is not VOIDmode.
6253 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
6254 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
6256 2011-05-05 Julian Brown <julian@codesourcery.com>
6258 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
6259 parenthesis in D-register case.
6261 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6263 * opt-functions.awk (var_type_struct): Handle Enum options.
6264 * optc-gen.awk: Don't check range of variables of character type.
6265 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
6266 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
6267 rs6000_sdata_name, rs6000_explicit_options): Remove.
6268 (rs6000_option_override_internal): Check for -malign-power here.
6269 Use global_options_set instead of rs6000_explicit_options.
6270 (rs6000_parse_fpu_option): Remove.
6271 (rs6000_handle_option): Access variables via opts and opts_set
6272 pointers. Use error_at and warning_at. Add fall-through
6273 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
6274 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
6275 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
6276 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
6277 here. Don't use rs6000_parse_fpu_option.
6278 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
6279 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
6280 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
6282 (mspe): Use Var and Save.
6283 (mtraceback=): Use Enum and Var.
6284 (rs6000_traceback_type): New Enum and EnumValue entries.
6285 (mfloat-gprs=): Use Enum, Var and Save.
6286 (rs6000_float_gprs): New Enum and EnumValue entries.
6287 (mlong-double-): use Var and Save.
6288 (msched-costly-dep=, minsert-sched-nops=): Use Var.
6289 (malign-): Use Enum and Var.
6290 (rs6000_alignment_flags): New Enum and EnumValue entries.
6292 (fpu_type_t): New Enum and EnumValue entries.
6293 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6294 global_options_set instead of rs6000_explicit_options.
6295 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6296 global_options_set instead of rs6000_explicit_options.
6297 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6298 global_options_set instead of rs6000_explicit_options.
6299 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6300 global_options_set instead of rs6000_explicit_options.
6301 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
6302 global_options_set instead of rs6000_explicit_options.
6303 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6304 global_options_set instead of rs6000_explicit_options.
6305 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
6307 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6308 global_options_set instead of rs6000_explicit_options.
6309 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
6310 (rs6000_cmodel): New Enum and EnumValue entries.
6311 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6312 global_options_set instead of rs6000_explicit_options.
6313 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
6314 (mtls-size=): Use Enum and Var.
6315 (rs6000_tls_size): New Enum and EnumValue entries.
6317 2011-05-05 Michael Matz <matz@suse.de>
6319 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
6320 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
6321 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
6322 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
6323 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
6324 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
6325 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
6326 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
6327 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
6328 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
6329 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
6330 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
6331 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
6332 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
6333 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
6334 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
6336 2011-05-05 Richard Guenther <rguenther@suse.de>
6338 * expmed.c (expand_variable_shift): Rename to ...
6339 (expand_shift_1): ... this. Take an expanded shift amount.
6340 For rotates recurse directly not building trees for the shift amount.
6341 (expand_variable_shift): Wrap around expand_shift_1.
6342 (expand_shift): Adjust.
6344 2011-05-05 Jakub Jelinek <jakub@redhat.com>
6346 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
6348 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
6350 * tree.h (get_pending_sizes): Remove prototype.
6351 (put_pending_size): Likewise.
6352 (put_pending_sizes): Likewise.
6353 * stor-layout.c (pending_sizes): Delete.
6354 (get_pending_sizes): Likewise.
6355 (put_pending_size): Likewise.
6356 (put_pending_sizes): Likewise.
6357 (variable_size): Do not call put_pending_size and tidy up.
6358 * function.h (struct function): Remove dont_save_pending_sizes_p.
6359 * lto-streamer-in.c (input_function): Do not stream it.
6360 * lto-streamer-out.c (output_function): Likewise.
6361 * tree-inline.c (initialize_cfun): Do not copy it.
6362 * c-decl.c (store_parm_decls): Do not set it.
6363 * omp-low.c (create_task_copyfn): Likewise.
6364 * tree-optimize.c (tree_rest_of_compilation): Likewise.
6366 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
6368 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
6370 (*movdf_internal): Ditto.
6371 (*movdf_internal_nointeger): Ditto.
6372 (*movsf_internal): Ditto.
6374 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6376 * c-decl.c (finish_decl): Don't call get_pending_sizes.
6377 (grokparm): Add parameter expr. Pass it to grokdeclarator.
6378 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
6379 (c_variable_size): Remove.
6380 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
6381 call put_pending_sizes.
6382 (get_parm_info): Add parameter expr. Use it to set
6383 arg_info->pending_sizes.
6384 (store_parm_decls): Use arg_info->pending_sizes instead or calling
6386 * c-parser.c (c_parser_parms_declarator): Update call to
6387 c_parser_parms_list_declarator.
6388 (c_parser_parms_list_declarator): Take parameter expr. Update
6389 call to push_parm_decl. Update recursive call. Don't call
6390 get_pending_sizes. Update calls to get_parm_info.
6391 (c_parser_objc_method_definition): Update calls to
6392 c_parser_objc_method_decl and objc_start_method_definition.
6393 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
6394 (c_parser_objc_method_decl): Add parameter expr. Update call to
6396 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
6397 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
6398 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
6400 2011-05-05 Michael Hope <michael.hope@linaro.org>
6403 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
6406 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6408 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
6409 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6410 (spu_output_mi_thunk): New function.
6412 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6414 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
6415 targetm.asm_out.print_operand.
6416 * config/sol2.c: Include target.h.
6418 2011-05-04 Jan Hubicka <jh@suse.cz>
6420 * ipa-inline.c (reset_edge_caches): New function.
6421 (update_caller_keys): Add check_inlinablity_for; do not
6422 reset edge caches; remove now unnecesary loop.
6423 (update_callee_keys): Add comments; reset node_growth_cache of callee.
6424 (update_all_callee_keys): Likewise.
6425 (inline_small_functions): Sanity check cache; update code
6428 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
6430 PR rtl-optimization/47612
6431 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
6432 as the last insn of the sequence to be moved.
6434 2011-05-04 Tobias Burnus <burnus@net-b.de>
6437 * doc/invoke.texi (Ofast): Document that it
6438 enables Fortran's -fno-protect-parens.
6440 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
6442 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
6444 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
6446 * stor-layout.c (variable_size): Do not issue errors.
6448 2011-05-04 Richard Guenther <rguenther@suse.de>
6450 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
6451 for array-ref indices.
6452 (tree_coverage_counter_addr): Likewise.
6453 (build_fn_info_type): Use size_int for index types.
6454 (build_gcov_info): Likewise.
6456 2011-05-04 Richard Guenther <rguenther@suse.de>
6458 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
6460 * c-typeck.c (really_start_incremental_init): Use bitsize_int
6461 for constructor indices.
6462 (push_init_level): Likewise.
6464 2011-05-04 Richard Guenther <rguenther@suse.de>
6466 * explow.c (promote_mode): Move variable declarations before code.
6468 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
6470 * tree.h (build_function_type_array): Declare.
6471 (build_varargs_function_type_array): Declare.
6472 (build_function_type_vec, build_varargs_function_type_vec): Define.
6473 * tree.c (build_function_type_array_1): New function.
6474 (build_function_type_array): New function.
6475 (build_varargs_function_type_array): New function.
6477 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
6479 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
6480 before setting STMT_VINFO_TYPE.
6482 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6484 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
6485 instead of spu_pass_by_reference.
6487 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6489 * calls.c (emit_library_call_value_1): Invoke
6490 promote_function_mode hook on libcall arguments.
6491 * explow.c (promote_function_mode, promote_mode): Handle TYPE
6492 argument being NULL.
6493 * targhooks.c (default_promote_function_mode): Lisewise.
6494 * config/s390/s390.c (s390_promote_function_mode): Likewise.
6495 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
6497 * doc/tm.texi: Document that TYPE argument might be NULL.
6499 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6501 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
6503 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6506 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
6508 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6510 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
6511 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
6513 * mips-tfile.c: ... here.
6514 Don't include coretypes.h, tm.h, filenames.h.
6515 (saber_stop): Remove definition and all calls.
6516 [__SABER__]: Remove.
6517 (__LINE__): Remove default.
6518 (Size_t, Ptrdiff_t): Remove definitions.
6519 Replace by size_t, ptrdiff_t.
6520 [!MIPS_DEBUGGING_INFO]: Remove.
6521 (SHASH_SIZE, THASH_SIZE): Remove defaults.
6522 (progname): Add const.
6524 Replace all uses by static.
6525 (ALIGN_SYMTABLE_OFFSET): Remove default.
6526 * mips-tdump.c: Don't include coretypes.h, tm.h.
6527 Remove !MIPS_IS_STAB guard.
6528 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
6529 $(TM_H), filenames.h dependencies.
6530 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
6532 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6535 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
6536 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6538 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6541 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
6542 account and save/restore RETS.
6543 (PROFILE_BEFORE_PROLOGUE): Define.
6544 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
6545 the push insn to use predecrement.
6547 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6550 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
6552 2011-05-04 Nick Clifton <nickc@redhat.com>
6554 * config/mn10300/mn10300.c: Include cfgloop.h.
6556 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
6557 Lcc or a FLcc insn into the instruction stream.
6558 (mn10300_block_contains_call): New function. Returns true if the
6559 given basic block contains a CALL insn.
6560 (mn10300_loop_contains_call_insn): New function. Returns true if
6561 the given loop contains a CALL insn.
6562 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
6563 to use the SETLB and Lcc or FLcc insns.
6564 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
6565 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
6566 * config/mn10300/mn10300.opt (msetlb): New option. Used to
6567 disable the SETLB optimization.
6568 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
6569 __SETLB__ or __NO_SETLB__.
6570 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
6571 (movsf_internal): Handle MDR register.
6572 (cmpsi): Make visible.
6573 (setlb): New pattern.
6575 (FLcc): New pattern.
6577 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
6580 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
6581 for reg<->xmm moves.
6582 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
6583 (vec_concatv2di_rex64_sse): Ditto.
6584 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
6585 (*vec_extractv2di_1_rex64): Ditto.
6588 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6590 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6592 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
6594 2011-05-04 Richard Guenther <rguenther@suse.de>
6596 * tree.h (int_const_binop): Remove notrunc argument.
6597 * fold-const.c (int_const_binop): Remove notrunc argument. Always
6598 create integer constants that are properly truncated.
6599 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
6600 (const_binop): Remove zero notrunc argument to int_const_binop.
6601 (size_binop_loc): Likewise.
6602 (fold_div_compare): Likewise.
6603 (maybe_canonicalize_comparison_1): Likewise.
6604 (fold_comparison): Likewise.
6605 (fold_binary_loc): Likewise.
6606 (multiple_of_p): Likewise.
6607 * expr.c (store_constructor): Likewise.
6608 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
6609 (maybe_fold_stmt_addition): Likewise.
6610 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
6611 * stor-layout.c (layout_type): Likewise.
6612 * tree-data-ref.c (tree_fold_divides_p): Likewise.
6613 * tree-sra.c (build_ref_for_offset): Likewise.
6614 (build_user_friendly_ref_for_offset): Likewise.
6615 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
6616 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
6617 * tree-ssa-loop-niter.c (inverse): Likewise.
6618 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6619 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
6620 * tree-switch-conversion.c (check_range): Likewise.
6621 (build_constructors): Likewise.
6622 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
6623 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
6624 (extract_range_from_assert): Likewise.
6625 (vrp_int_const_binop): Likewise.
6626 (extract_range_from_binary_expr): Likewise.
6627 (extract_range_from_unary_expr): Likewise.
6628 (check_array_ref): Likewise.
6629 (find_case_label_range): Likewise.
6630 (simplify_div_or_mod_using_ranges): Likewise.
6631 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
6632 comparing case labels for merging.
6634 2011-05-03 Mark Wielaard <mjw@redhat.com>
6636 * dwarf2out.c (debug_str_hash_forced): Removed.
6637 (gen_label_for_indirect_string): Removed.
6638 (get_debug_string_label): Removed.
6639 (AT_string_form): Generate label directly.
6640 (output_indirect_string): Test indirect_string_node for
6641 DW_FORM_strp instead of checking label and refcount.
6642 (prune_indirect_string): Removed.
6643 (prune_unused_types): Don't check debug_str_hash_forced or
6644 call prune_indirect_string.
6646 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
6649 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
6651 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
6655 * combine.c (try_combine): Skip debug insns at m_split tests.
6657 2011-04-26 Mark Wielaard <mjw@redhat.com>
6660 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
6661 when info_section_emitted.
6663 2011-05-03 Joseph Myers <joseph@codesourcery.com>
6665 * config/mips/mips-opts.h: New.
6666 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
6668 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
6669 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
6670 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
6672 * config/mips/mips.h (enum mips_code_readable_setting): Move to
6674 (mips_abi, mips_code_readable): Don't declare.
6675 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
6676 (mabi=): Use Enum and Var.
6677 (mips_abi): New Enum and EnumValue entries.
6678 (mcode-readable=): Use Enum and Var.
6679 (mips_code_readable_setting): New Enum and EnumValue entries.
6680 (mr10k-cache-barrier=): Use Enum and Var.
6681 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
6683 2011-05-03 Jan Hubicka <jh@suse.cz>
6685 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
6686 replace hash by pointer map.
6687 (cgraph_node_set_element_def, cgraph_node_set_element,
6688 const_cgraph_node_set_element, varpool_node_set_element_def,
6689 varpool_node_set_element, const_varpool_node_set_element): Remove.
6690 (free_cgraph_node_set, free_varpool_node_set): New function.
6691 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
6692 * tree-emutls.c: Free varpool node set.
6693 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
6694 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6695 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
6696 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6697 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
6698 Move here from ipa.c; implement using pointer_map
6699 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
6700 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6701 debug_cgraph_node_set, varpool_node_set_new,
6702 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6703 dump_varpool_node_set, debug_varpool_node_set):
6704 Move to ipa-uitls.c.
6705 * passes.c (ipa_write_summaries): Update.
6707 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6709 From Mike Frysinger:
6710 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
6711 bf542/bf544/bf547/bf548/bf549.
6713 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
6715 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
6717 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6720 * config/bfin/bfin.md (MOVCC): New mode_macro.
6721 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
6722 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
6723 comments from generated assembly.
6725 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6728 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
6729 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
6730 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
6731 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
6732 * config/bfin/lib1funcs.asm (___muldi3): New function.
6734 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6736 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
6737 build_function_type_list instead of build_function_type.
6738 Rearrange initialization of `args' to do so.
6740 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6742 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
6743 instead of build_function_type.
6745 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6747 * config/rs6000/rs6000.c (spe_init_builtins): Call
6748 build_function_type_list instead of build_function_type.
6749 (paired_init_builtins, altivec_init_builtins): Likewise.
6750 (builtin_function_type): Likewise.
6752 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6754 * config/sh/sh.c (sh_media_init_builtins): Call
6755 build_function_type_list instead of build_function_type.
6757 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6759 * config/sparc/sparc.c (sparc_file_end): Call
6760 build_function_type_list instead of build_function_type.
6762 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6764 * config/alpha/alpha.c (alpha_init_builtins): Call
6765 build_function_type_list instead of build_function_type.
6767 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6769 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
6770 build_function_type_list instead of build_function_type.
6772 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6774 * config/iq2000/i2000.c (iq2000_init_builtins): Call
6775 build_function_type_list instead of build_function_type.
6776 Delete `endlink' variable.
6778 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6780 * config/avr/avr.c (avr_init_builtins): Call
6781 build_function_type_list instead of build_function_type.
6783 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6785 * config/picochip/picochip.c (picochip_init_builtins): Call
6786 build_function_type_list instead of build_function_type.
6787 Delete `endlink' variable.
6789 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6791 * config/bfin/bfin.c (bfin_init_builtins): Call
6792 build_function_type_list instead of build_function_type.
6794 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6797 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
6798 that's not CONST_INT. Seemingly redundant check is due to PR39768.
6800 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6803 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
6804 libbffastfp overrides libgcc when -mfast-fp.
6806 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6808 Originally from Bernd Schmidt
6809 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
6810 * config/bfin/bfin.c (override_options): Test it and error if
6813 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6815 Originally From Bernd Schmidt
6816 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
6819 2011-05-03 Jeff Law <law@redhat.com>
6821 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
6822 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
6823 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
6824 than accessing AUX field directly. Free the AUX field before
6826 (thread_block, thread_through_loop_header): Likewise.
6827 (thread_single_edge, mark_threaded_blocks): Likewise.
6828 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
6829 (register_jump_thread): Do not attempt to thread to a NULL edge.
6831 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
6833 * function.c (init_function_start): Call decide_function_section.
6834 * varasm.c (decide_function_section): New function.
6835 (assemble_start_function): When not using
6836 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
6837 or first_function_block_is_cold.
6838 * rtl.h (decide_function_section): Declare.
6840 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
6841 Jakub Jelinek <jakub@redhat.com>
6844 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
6845 only succeed if req_mode is the same as set_mode.
6847 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
6849 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
6850 * genemit.c (gen_exp): Handle RETURN.
6851 * emit-rtl.c (verify_rtx_sharing): Likewise.
6852 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
6853 * rtl.c (copy_rtx): RETURN is shared.
6854 * rtl.h (enum global_rtl_index): Add GR_RETURN.
6856 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
6857 * config/s390/s390.c (s390_emit_epilogue): Likewise.
6858 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
6859 * config/cris/cris.c (cris_expand_return): Likewise.
6860 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
6861 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
6862 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
6863 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
6864 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
6866 * config/v850/v850.c (expand_epilogue): Likewise.
6867 * config/bfin/bfin.c (bfin_expand_call): Likewise.
6868 * config/arm/arm.md (epilogue): Likewise.
6869 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
6870 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
6871 variable to ret_reg.
6873 2011-05-03 Richard Guenther <rguenther@suse.de>
6876 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
6877 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
6878 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6880 2011-05-03 Richard Guenther <rguenther@suse.de>
6882 * c-decl.c (grokdeclarator): Instead of looking at
6883 TREE_OVERFLOW check if the constant fits in the index type.
6885 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6887 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
6888 (vec_store_lanes<mode><mode>): Likewise.
6890 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6892 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
6893 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
6894 convert_optab_index values.
6895 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
6896 * genopinit.c (optabs): Initialize the new optabs.
6897 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
6898 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
6899 (expand_STORE_LANES): New functions.
6900 * tree.h (build_array_type_nelts): Declare.
6901 * tree.c (build_array_type_nelts): New function.
6902 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
6903 (vect_model_load_cost): Likewise.
6904 (vect_store_lanes_supported, vect_load_lanes_supported)
6905 (vect_record_strided_load_vectors): Declare.
6906 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
6907 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
6908 (vect_transform_strided_load): Split out statement recording into...
6909 (vect_record_strided_load_vectors): ...this new function.
6910 * tree-vect-stmts.c (create_vector_array, read_vector_array)
6911 (write_vector_array, create_array_ref): New functions.
6912 (vect_model_store_cost): Add store_lanes_p argument.
6913 (vect_model_load_cost): Add load_lanes_p argument.
6914 (vectorizable_store): Try to use store-lanes functions for
6916 (vectorizable_load): Likewise load-lanes and loads.
6917 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
6918 to vect_model_store_cost.
6919 (vect_build_slp_tree): Likewise vect_model_load_cost.
6921 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6923 * hooks.h (hook_bool_mode_uhwi_false): Declare.
6924 * hooks.c (hook_bool_mode_uhwi_false): New function.
6925 * target.def (array_mode_supported_p): New hook.
6926 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
6927 * doc/tm.texi: Regenerate.
6928 * stor-layout.c (mode_for_array): New function.
6929 (layout_type): Use it.
6930 * config/arm/arm.c (arm_array_mode_supported_p): New function.
6931 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
6933 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
6936 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
6937 for -fstack-check if the size to allocate is negative.
6939 2011-05-02 Lawrence Crowl <crowl@google.com>
6941 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
6942 (timevar_cond_start): New for starting a timer only when it is not
6944 (timevar_cond_stop): New for stopping a timer when it was not already
6947 * timevar.c (timevar_stop): Enable start/stop timers to start again.
6948 (timevar_cond_start): New as above.
6949 (timevar_cond_stop): New as above.
6951 * timevar.def: Add start/stop timers for compiler phases,
6952 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
6953 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
6954 and TV_PHASE_FINALIZE.
6955 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
6956 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
6957 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
6958 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
6959 Make unused TV_OVERLOAD into a start/stop timer.
6961 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
6962 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
6963 to indicate that they are start/stop timers.
6965 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
6966 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
6967 Move initialization to do_compile.
6968 (do_compile): Add initialization from above.
6969 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
6971 * c-decl.c (c_write_global_declarations): Add start/stop of
6972 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
6974 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
6975 or TV_PARSE_INLINE, as appropriate.
6976 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
6977 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
6979 2011-05-02 Jason Merrill <jason@redhat.com>
6982 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
6984 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
6987 * c-decl.c (finish_decl): Only create a composite if the types are
6990 2011-05-02 Joseph Myers <joseph@codesourcery.com>
6992 * config/fr30/fr30-protos.h (Mmode): Don't define.
6993 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
6994 definition where used.
6995 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
6996 define. Expand definitions where used.
6997 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
6998 Expand definitions where used.
6999 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
7000 rx_function_arg, rx_function_arg_advance,
7001 rx_function_arg_boundary): Expand definitions of those macros.
7002 * config/v850/v850-protos.h (Mmode): Don't define. Expand
7003 definition where used.
7005 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
7007 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
7009 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
7010 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
7011 with *movv2sf_internal_rex64_avx.
7012 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
7013 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
7014 Use %v prefix in insn mnemonic to handle TARGET_AVX.
7015 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
7016 "vex" in "prefix" attribute calculation.
7017 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
7019 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
7022 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
7023 inputs match the output.
7025 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
7028 * config/m68k/m68k.c (m68k_expand_prologue): Set
7029 current_function_static_stack_size.
7031 2011-05-02 Jan Hubicka <jh@suse.cz>
7033 * lto-streamer.c (lto_streamer_cache_insert_1,
7034 lto_streamer_cache_lookup, lto_streamer_cache_create,
7035 lto_streamer_cache_delete): Use pointer map instead of hashtable.
7036 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
7038 2011-05-02 Joseph Myers <joseph@codesourcery.com>
7040 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
7041 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
7042 config/m68k/t-opts: New files.
7043 * config/m68k/m68k-tables.opt: New file (generated).
7044 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
7045 extra_options and m68k/t-opts to tmake_file.
7046 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
7047 (all_isas): Initialize using m68k-isas.def.
7048 (all_microarchs): Initialize using m68k-microarchs.def.
7049 (m68k_find_selection): Remove.
7050 (m68k_handle_option): Don't assert that global structures are in
7051 use. Use error_at. Access variables via opts pointer. Don't
7052 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
7053 directly for -m68020-40 and -m68020-60.
7054 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
7055 m68k_tune_entry here.
7056 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
7058 (m68k_library_id_string): Remove declaration.
7059 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
7060 (m68k_library_id_string): New Variable.
7061 (march=, mcpu=, mtune=): Use Enum and Var.
7063 2011-05-02 Richard Guenther <rguenther@suse.de>
7065 * varasm.c (output_constructor_regular_field): Compute zero-based
7066 index with double-ints. Make sure to ICE instead of producing
7068 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
7069 in asserts. Properly use a signed type.
7071 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
7073 * config/i386/sse.md (V): New mode iterator.
7074 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
7076 (V_256): Rename from AVX256MODE.
7077 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
7078 condition to all users.
7080 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
7081 condition to all users.
7082 (VF_128): Make V4SF mode unconditional.
7083 (VF_256): Rename from AVX256MODEF2P.
7084 (VI4F_128): Rename from SSEMODE4S.
7085 (VI8F_128): Rename from SSEMODE2D.
7086 (VI4F_256): Rename from AVX256MODE8P.
7087 (VI8F_256): Rename from AVX256MODE4P.
7088 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
7089 (ssescalarmodesuffix): Remove SF and DF modes.
7090 (SSEMODE124): Remove.
7091 (SSEMODE1248): Ditto.
7092 (SSEMODEF2P): Ditto.
7093 (AVXMODEF2P): Ditto.
7094 (AVXMODEFDP): Ditto.
7095 (AVXMODEFSP): Ditto.
7096 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
7098 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
7100 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
7101 xop_pcmov_<mode>256. Use V mode iterator.
7103 Adjust RTX patterns globally for renamed mode attributes.
7105 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7107 * haifa-sched.c (sched_emit_insn): Emit insn before first
7108 non-scheduled insn. Inform back-end about new insn. Add
7109 new insn to scheduled_insns list.
7111 2011-05-02 Richard Guenther <rguenther@suse.de>
7113 PR tree-optimization/48822
7114 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
7115 (process_scc): Indicate which iteration we start.
7117 2011-05-02 Jan Hubicka <jh@suse.cz>
7119 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
7120 (lto_section_overrun): New.
7121 * lto-section-out.c (append_block): Rename to ...
7122 (lto_append_block): ... this one; export.
7123 (lto_output_1_stream): Move lto lto-streamer.h
7124 (lto_output_data_stream): Update.
7125 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
7126 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
7129 2011-05-02 Richard Guenther <rguenther@suse.de>
7131 * tree.c (tree_code_counts): New global array.
7132 (record_node_allocation_statistics): Count individual tree codes.
7133 (dump_tree_statistics): Dump individual code stats.
7135 2011-05-01 Jan Hubicka <jh@suse.cz>
7137 * ipa-inline.c (caller_growth_limits): Fix thinko when
7138 looking for largest stack frame.
7139 * ipa-inline.h (dump_inline_summary): Declare.
7140 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
7142 (dump_inline_summary): Export.
7143 (debug_inline_summary): Declare as DEBUG_FUNCTION.
7145 2011-05-01 Anatoly Sokolov <aesok@post.ru>
7147 * reginfo.c (memory_move_cost): Change rclass argument type form
7148 'enum reg_class' to reg_class_t.
7149 * reload.h (memory_move_cost): Update prototype.
7150 * postreload.c reload_cse_simplify_set): Change type dclass var to
7152 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
7154 (ira_allocate_and_set_costs): Change aclass argument type form
7155 'enum reg_class' to reg_class_t.
7156 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
7157 Change aclass argument type to reg_class_t.
7158 (update_conflict_hard_reg_costs): Change type aclass and pref vars
7160 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
7161 memory_move_cost call.
7163 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
7164 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
7165 Change type tmp var to reg_class_t.
7167 2011-04-30 Jan Hubicka <jh@suse.cz>
7169 * ipa-inline.c (can_inline_edge_p): Disregard limits when
7170 inlining into function with flatten attribute.
7171 (want_inline_small_function_p): Be more realistic about inlining
7172 cold calls where callee size grows.
7174 2011-04-30 Jan Hubicka <jh@suse.cz>
7176 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
7179 2011-04-30 Anatoly Sokolov <aesok@post.ru>
7181 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7182 PRINT_OPERAND_PUNCT_VALID_P): Remove.
7183 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
7184 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
7185 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7186 (print_operand): Rename to...
7187 (sparc_print_operand): ...this. Make static. Adjust
7188 sparc_print_operand function call.
7189 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
7192 2011-04-30 Jan Hubicka <jh@suse.cz>
7195 * ipa-inline.c (early_inliner): Disable when doing late
7196 addition of function.
7198 2011-04-30 Jakub Jelinek <jakub@redhat.com>
7200 * dwarf2out.c (get_address_mode): New inline.
7201 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
7202 if not dwarf_strict emit
7203 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
7204 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
7205 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
7206 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
7207 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
7208 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
7209 mem_loc_descriptor callers.
7210 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7211 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
7212 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
7213 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
7214 (base_types): New variable.
7215 (get_base_type_offset, calc_base_type_die_sizes,
7216 base_type_for_mode, mark_base_types, base_type_cmp,
7217 move_marked_base_types): New functions.
7218 (calc_die_sizes): Assert that die_offset is 0 or equal to
7220 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
7221 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
7222 callers. If not dwarf_strict, call mem_loc_descriptor even for
7223 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
7224 (gen_subprogram_die): Don't give up on call site parameters
7225 with non-integral or large integral modes. Adjust
7226 mem_loc_descriptor callers.
7227 (prune_unused_types): Call prune_unused_types_mark on base_types
7229 (resolve_addr): Call mark_base_types.
7230 (dwarf2out_finish): Call move_marked_base_types.
7232 PR tree-optimization/48809
7233 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
7235 (gen_inbound_check): Don't compute index_expr - range_min in utype
7236 again, instead reuse SSA_NAME initialized in build_arrays.
7237 Remove two useless gsi_for_stmt calls.
7239 2011-04-29 Jeff Law <law@redhat.com>
7241 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
7243 2011-04-29 Martin Jambor <mjambor@suse.cz>
7245 * cgraph.h (cgraph_postorder): Remove declaration.
7246 * ipa-utils.h (ipa_free_postorder_info): Declare.
7247 (ipa_reverse_postorder): Likewise.
7248 * cgraphunit.c: Include ipa-utils.h.
7249 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
7250 * ipa-inline.c: Include ipa-utils.h.
7251 (ipa_inline): Update call to ipa_reverse_postorder.
7252 * ipa-pure-const.c (propagate_pure_const): Update call to
7253 ipa_reduced_postorder and ipa_print_order. Call
7254 ipa_free_postorder_info to clean up.
7255 (propagate_nothrow): Likewise.
7256 * ipa-reference.c (propagate): Removed a useless call to
7257 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
7258 and ipa_print_order. Call ipa_free_postorder_info to clean up.
7259 * ipa.c: Include ipa-utils.h.
7260 (ipa_profile): Update call to ipa_reverse_postorder.
7261 (cgraph_postorder): Moved to...
7262 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
7263 (ipa_utils_print_order): Renamed to ipa_print_order.
7264 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
7266 (ipa_free_postorder_info): New function.
7267 * passes.c: Include ipa-utils.h.
7268 (do_per_function_toporder): Update call to ipa_reverse_postorder.
7269 (ipa_write_summaries): Likewise.
7270 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
7271 (cgraphunit.o): Likewise.
7273 (ipa-inline.o): Likewise.
7275 2011-04-29 Jan Hubicka <jh@suse.cz>
7277 * gcc.dg/tree-ssa/inline-10.c: New testcase.
7278 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
7279 * ipa-inline.h (clause_t): Turn into unsigned int.
7280 * ipa-inline-analysis.c (add_clause): Do more simplification.
7281 (and_predicates): Shortcut more cases.
7282 (predicates_equal_p): Move forward; check that clauses are properly
7284 (or_predicates): Shortcut more cases.
7285 (edge_execution_predicate): Rewrite as...
7286 (set_cond_stmt_execution_predicate): ... this function; handle
7287 __builtin_constant_p.
7288 (set_switch_stmt_execution_predicate): New .
7289 (compute_bb_predicates): New.
7290 (will_be_nonconstant_predicate): Update TODO.
7291 (estimate_function_body_sizes): Use compute_bb_predicates
7292 and free them later, always try to estimate if stmt is constant.
7293 (estimate_time_after_inlining, estimate_size_after_inlining):
7294 Gracefully handle optimized out edges.
7295 (read_predicate): Fix off by one error.
7297 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
7299 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
7301 2011-04-27 Xinliang David Li <davidxl@google.com>
7303 * tree-profile.c (init_ic_make_global_vars): Set
7304 tls attribute on ic vars.
7305 * coverage.c (coverage_end_function): Initialize
7306 function_list with zero.
7308 2011-04-29 Richard Guenther <rguenther@suse.de>
7310 * builtins.c (fold_builtin_classify_type): Use integer_type_node
7311 for the type of the result.
7312 (fold_builtin_isascii): Likewise.
7313 (fold_builtin_toascii): Use integer_type_node where appropriate.
7314 (fold_builtin_logb): Likewise.
7315 (fold_builtin_frexp): Likewise.
7316 (fold_builtin_strstr): Likewise.
7317 (fold_builtin_strpbrk): Likewise.
7318 (fold_builtin_fputs): Likewise.
7319 (fold_builtin_sprintf): Likewise.
7320 (fold_builtin_snprintf): Likewise.
7321 (fold_builtin_printf): Likewise.
7322 (do_mpfr_remquo): Use a proper type for the assigned constant.
7323 (do_mpfr_lgamma_r): Likewise.
7324 * dwarf2out.c (resolve_one_addr): Use size_int.
7325 * except.c (init_eh): Likewise.
7326 (assign_filter_values): Use integer_type_node for filter values.
7327 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
7329 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
7330 for EH region numbers.
7331 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
7332 for the shift amount.
7334 2011-04-29 Richard Guenther <rguenther@suse.de>
7336 * expr.h (expand_shift): Rename to ...
7337 (expand_variable_shift): ... this.
7338 (expand_shift): Take a constant shift amount.
7339 * expmed.c (expand_shift): Rename to ...
7340 (expand_variable_shift): ... this.
7341 (expand_shift): New wrapper around expand_variable_shift.
7342 * expr.c (convert_move, emit_group_load_1, emit_group_store,
7343 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
7344 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
7345 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
7346 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
7347 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
7348 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
7349 emit_store_flag_1, emit_store_flag): Likewise.
7350 * builtins.c (expand_builtin_signbit): Likewise.
7351 * calls.c (load_register_parameters): Likewise.
7352 * function.c (assign_parm_setup_block): Likewise.
7353 * lower-subreg.c (resolve_shift_zext): Likewise.
7354 * optabs.c (widen_bswap, expand_abs_nojump,
7355 expand_one_cmpl_abs_nojump, expand_float): Likewise.
7356 * spu/spu.c (spu_expand_extv): Likewise.
7357 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
7359 2011-04-29 Richard Guenther <rguenther@suse.de>
7361 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
7362 for the remapped region number.
7363 * predict.c (build_predict_expr): Use integer_type_node for the
7365 * fold-const.c (fold_binary_loc): Use integer_type_node for
7366 the shift amount. Use a proper type for the PLUS_EXPR operand.
7368 2011-04-29 Michael Matz <matz@suse.de>
7370 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
7371 other trees that just builtins.
7372 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
7374 2011-04-29 Richard Guenther <rguenther@suse.de>
7376 * tree-nested.c (get_trampoline_type): Use size_int.
7377 (get_nl_goto_field): Likewise.
7378 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
7380 (lower_eh_constructs_2): Likewise.
7381 (lower_resx): Likewise.
7382 (lower_eh_dispatch): Likewise.
7383 * tree-mudflap.c (mf_build_string): Use size_int.
7384 (mudflap_register_call): Use integer_type_node for the flag.
7385 (mudflap_enqueue_constant): Use size_int.
7386 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
7387 instead of rebuilding it.
7389 2011-04-29 Richard Guenther <rguenther@suse.de>
7391 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
7392 Handle OBJ_TYPE_REF.
7393 (find_func_aliases_for_call): Use it more consistently.
7395 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
7397 * haifa-sched.c (last_nondebug_scheduled_insn): New.
7398 (rank_for_schedule): Use it.
7399 (schedule_block): Set it.
7401 2011-04-28 David Li <davidxl@google.com>
7403 * tree.c (crc32_string): Use crc32_byte.
7404 (crc32_byte): New function.
7405 * tree.h (crc32_byte): New function.
7406 * gcov.c (read_graph_file): Handle new cfg_cksum.
7407 (read_count_file): Ditto.
7408 * profile.c (instrument_values): Ditto.
7409 (get_exec_counts): Ditto.
7410 (read_profile_edge_counts): Ditto.
7411 (compute_branch_probabilities): Ditto.
7412 (compute_value_histograms): Ditto.
7413 (branch_prob): Ditto.
7414 (end_branch_prob): Ditto.
7415 * coverage.c (read_counts_file): Ditto.
7416 (get_coverage_counts): Ditto.
7417 (tree_coverage_counter_addr): Ditto.
7418 (coverage_checksum_string): Ditto.
7419 (coverage_begin_output): Ditto.
7420 (coverage_end_function): Ditto.
7421 (build_fn_info_type): Ditto.
7422 (build_fn_info_value): Ditto.
7423 * libgcov.c (gcov_exit): Ditto.
7424 * gcov-dump.c (tag_function): Ditto.
7425 (compute_checksum): Remove.
7427 2011-04-29 Alan Modra <amodra@gmail.com>
7429 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7430 unspec plus offset. Tidy macho code.
7432 2011-04-29 Martin Jambor <mjambor@suse.cz>
7434 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
7435 node instead of a decl. Update all callers.
7436 * cgraph.h: Update declaration.
7438 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
7440 PR tree-optimization/48765
7441 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
7442 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
7443 to indicate if loop aware SLP is being used. Scan the statements
7444 and update the vectorization factor according to the type of
7445 vectorization before statement analysis.
7446 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
7447 pass it to vect_analyze_loop_operations.
7448 (vectorizable_reduction): Set number of copies to 1 in case of pure
7450 * tree-vect-stmts.c (vectorizable_conversion,
7451 vectorizable_assignment, vectorizable_shift,
7452 vectorizable_operation, vectorizable_type_demotion,
7453 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
7455 (vectorizable_condition): Move the check that it is not SLP
7456 vectorization before the number of copies check.
7457 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
7458 to vectorize the loop using SLP.
7460 2011-04-28 Jakub Jelinek <jakub@redhat.com>
7463 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
7466 2011-04-28 Joseph Myers <joseph@codesourcery.com>
7468 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
7469 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
7470 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7471 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7472 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
7474 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
7475 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7476 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7477 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7478 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7479 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
7481 * config/i386/linux.h (REG_NAME): Don't define.
7482 * config/i386/linux64.h (REG_NAME): Don't define.
7483 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
7484 Undefine before defining.
7486 2011-04-28 Jan Hubicka <jh@suse.cz>
7488 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
7489 nonconstant_names array.
7490 (estimate_function_body_sizes): Build nonconstant_names array; handle
7491 BUILT_IN_CONSTANT_P.
7493 2011-04-28 Richard Guenther <rguenther@suse.de>
7497 2011-04-28 Richard Guenther <rguenther@suse.de>
7499 * tree-ssa-structalias.c (solve_constraints): Build succ graph
7500 as late as possible.
7502 2011-04-28 Richard Guenther <rguenther@suse.de>
7504 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
7505 (debug_constraint): Do it here.
7506 (dump_constraints): And here.
7507 (rewrite_constraints): And here.
7508 (dump_constraint_edge): Remove.
7509 (dump_constraint_graph): Rewrite to produce DOT output.
7510 (solve_constraints): Build succ graph as late as possible.
7511 Dump constraint graphs before and after solving.
7513 2011-04-28 Richard Guenther <rguenther@suse.de>
7515 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7516 New function split out from ...
7517 (find_func_aliases): ... here. Call it.
7518 (find_func_aliases_for_call): Likewise.
7520 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
7522 * internal-fn.h (internal_fn_name_array): Declare.
7523 (internal_fn_flags_array): Likewise.
7525 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
7527 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
7528 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
7530 (ssemodefsuffix): Remove.
7531 (ssevecmodesuffix): New mode attribute.
7532 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
7533 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
7534 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
7535 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
7536 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
7537 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
7538 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
7539 ssemodesuffix mode attribute.
7540 (float splitters): Use ssevecmodesuffix mode attribute.
7541 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
7542 (sseinsmode): Rename from avxvecmode.
7543 (avxsizesuffix): Rename from avxmodesuffix.
7544 (sseintvecmode): Rename from avxpermvecmode.
7545 (ssedoublevecmode): Rename from ssedoublesizemode.
7546 (ssehalfvecmode): Rename from avxhalfvecmode.
7547 (ssescalarmode): Rename from avxscalarmode.
7548 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
7549 templates for ssemodesuffix mode attribute.
7550 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
7553 Adjust RTX patterns globally for renamed mode attributes.
7555 2011-04-27 Jan Hubcika <jh@suse.cz>
7557 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
7558 * ipa-inline-analysis.c: Include alloc-pool.h.
7559 (edge_predicate_pool): New.
7560 (trye_predicate_p): New function
7561 (false_predicate_p): New function.
7562 (add_clause): Sanity check that false clauses are "optimized";
7563 never add clauses to predicate that is already known to be false.
7564 (and_predicate): Use flase_predicate_p.
7565 (evaulate_predicate): Rename to ...
7566 (evaluate_predicate): ... this one; update all callers; assert
7567 that false is not listed among possible truths.
7568 (dump_predicate): Use true_predicate_p.
7569 (account_size_time): Use false_predicate_p.
7570 (evaulate_conditions_for_edge): Rename to ...
7571 (evaluate_conditions_for_edge) ... this one.
7572 (edge_set_predicate): New function.
7573 (inline_edge_duplication_hook): Duplicate edge predicates.
7574 (inline_edge_removal_hook): Free edge predicates.
7575 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
7576 (dump_inline_summary): Update.
7577 (estimate_function_body_sizes): Set edge predicates.
7578 (estimate_calls_size_and_time): Handle predicates.
7579 (estimate_callee_size_and_time): Update.
7580 (remap_predicate): Add toplev_predicate; update comment.
7581 (remap_edge_predicates): New function.
7582 (inline_merge_summary): Compute toplev predicate; update.
7583 (read_predicate): New function.
7584 (read_inline_edge_summary): Use it.
7585 (inline_read_section): Likewise.
7586 (write_predicate): New function.
7587 (write_inline_edge_summary): Use it.
7588 (inline_write_summary): Likewise.
7589 (inline_free_summary): Free alloc pool and edge summary vec.
7591 2011-04-27 Richard Guenther <rguenther@suse.de>
7593 * tree-ssa-structalias.c (changed_count): Remove.
7594 (changed): Use a bitmap.
7595 (unify_nodes): Adjust.
7596 (do_sd_constraint): Likewise.
7597 (do_ds_constraint): Likewise.
7598 (do_complex_constraint): Likewise.
7599 (solve_graph): Likewise.
7601 2011-04-27 Jan Hubicka <jh@suse.cz>
7603 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
7605 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
7607 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
7608 (avx_vperm2f128_*_operand): Ditto.
7609 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
7610 Use avx_vpermilp_parallel in insn condition.
7611 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
7612 Use avx_vperm2f128_parallel in insn condition.
7614 2011-04-27 Richard Guenther <rguenther@suse.de>
7616 * Makefile.in (tree-ssa-structalias.o): Remove
7617 gt-tree-ssa-structalias.h dependency.
7618 (GTFILES): Remove tree-ssa-structalias.c.
7619 * tree.c (allocate_decl_uid): New function.
7620 (make_node_stat): Use it.
7621 (copy_node_stat): Likewise.
7622 * tree.h (allocate_decl_uid): Declare.
7623 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
7624 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
7625 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
7626 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7627 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
7628 (struct heapvar_map): Likewise.
7629 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
7630 heapvar_insert): Likewise.
7631 (make_heapvar_for): Rename to ...
7632 (make_heapvar): ... this. Simplify.
7633 (fake_var_decl_obstack): New global var.
7634 (build_fake_var_decl): New function.
7635 (make_constraint_from_heapvar): Adjust.
7636 (handle_lhs_call): Likewise.
7637 (create_function_info_for): Likewise.
7638 (intra_create_variable_infos): Likewise.
7639 (init_alias_vars): Allocate fake_var_decl_obstack.
7640 (init_alias_heapvars, delete_alias_heapvars): Remove.
7641 (compute_points_to_sets): Do not call init_alias_heapvars.
7642 (ipa_pta_execute): Likewise.
7643 (delete_points_to_sets): Free fake_var_decl_obstack.
7645 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7647 * config/spu/divmovti4.c (union qword_UTItype): New data type.
7648 (si_from_UTItype, si_to_UTItype): New functions.
7649 (__udivmodti4): Use them to implement type-punning.
7650 * config/spu/multi3.c (union qword_TItype): New data type.
7651 (si_from_TItype, si_to_TItype): New functions.
7652 (__multi3): Use them to implement type-punning.
7654 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7656 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
7658 2011-04-27 Jan Hubicka <jh@suse.cz>
7660 * ipa-prop.c (function_insertion_hook_holder): New holder.
7661 (ipa_add_new_function): New function.
7662 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
7663 Register/deregister holder.
7665 2011-04-27 Richard Guenther <rguenther@suse.de>
7667 PR tree-optimization/48772
7668 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
7670 2011-04-27 Richard Guenther <rguenther@suse.de>
7672 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
7673 TARGET_MEM_REF handling.
7675 2011-04-27 Nick Clifton <nickc@redhat.com>
7677 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
7678 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
7679 (REG_CLASS_NAMES): Likewise.
7680 (REG_CLASS_CONTENTS): Likewise.
7681 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
7682 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
7683 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
7684 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
7685 (EVEN_REGS): New macro. Alias for QUAD_REGS.
7686 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
7687 duplicate register classes.
7688 (frv_class_likely_spilled_p): Likewise.
7689 (frv_register_move_cost): Likewise.
7691 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
7692 end of the regno_reg_class array.
7694 2011-04-27 Jakub Jelinek <jakub@redhat.com>
7697 * c-typeck.c (build_binary_op): Don't wrap arguments if
7698 int_operands is true.
7700 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
7703 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
7704 targetm.calls.must_pass_in_stack for void type.
7706 2011-04-26 Jan Hubicka <jh@suse.cz>
7708 * cgraphbuild.c (build_cgraph_edges): Update call
7709 of cgraph_create_edge and cgraph_create_indirect_edge.
7710 * cgraph.c (cgraph_create_edge_including_clones,
7711 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
7712 cgraph_update_edges_for_call_stmt_node): Do not take nest
7713 argument; do not initialize call_stmt_size/time.
7714 (dump_cgraph_node): Do not dump nest.
7715 (cgraph_clone_edge): Do not take loop_nest argument;
7716 do not propagate it; do not clone call_stmt_size/time.
7717 (cgraph_clone_node): Likewise.
7718 (cgraph_create_virtual_clone): Update.
7719 * cgraph.h (struct cgraph_edge): Remove
7720 call_stmt_size/call_stmt_time/loop_nest.
7721 (cgraph_create_edge, cgraph_create_indirect_edge,
7722 cgraph_create_edge_including_clones, cgraph_clone_node): Update
7724 * tree-emutls.c (gen_emutls_addr): Update.
7725 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
7726 loop_nest; handle indirect calls, too.
7727 (clone_inlined_nodes): Do not care about updating inline summaries.
7728 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
7729 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
7730 stream call_stmt_size/call_stmt_time/loop_nest.
7731 * ipa-inline.c (edge_badness): Update.
7732 (ipa_inline): dump summaries after inlining.
7733 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
7735 (inline_edge_summary): New function.
7736 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
7737 (inline_edge_removal_hook): Handle edge summaries.
7738 (inline_edge_duplication_hook): New hook.
7739 (inline_summary_alloc): Alloc hooks.
7740 (initialize_growth_caches): Do not register removal hooks.
7741 (free_growth_caches); Do not free removal hook.
7742 (dump_inline_edge_summary): New function.
7743 (dump_inline_summary): Use it.
7744 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
7745 (inline_update_callee_summaries): New function.
7746 (inline_merge_summary): Use it.
7747 (do_estimate_edge_time, do_estimate_edge_growth): Update.
7748 (read_inline_edge_summary): New function.
7749 (inline_read_section): Use it.
7750 (write_inline_edge_summary): New function.
7751 (inline_write_summary): Use it.
7752 (inline_free_summary): Free edge new holders.
7753 * tree-inline.c (copy_bb): Update.
7755 2011-04-26 Jason Merrill <jason@redhat.com>
7757 * tree-eh.c (lower_try_finally_switch): Create the label along with
7758 the CASE_LABEL_EXPR.
7760 2011-04-26 David S. Miller <davem@davemloft.net>
7761 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7763 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
7764 * configure: Regenerate.
7766 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
7769 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
7771 (VEC_reduc): New code iterator and splitters for vector reduction.
7772 (VEC_reduc_name): Ditto.
7773 (VEC_reduc_rtx): Ditto.
7774 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
7775 (reduc_<VEC_reduc_name>_v4sf): Ditto.
7777 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7778 support for extracting SF on VSX.
7780 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
7781 generating xscvspdp.
7782 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
7783 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
7784 double add, minimum, maximum vector reduction.
7785 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
7786 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
7787 optimize double vector reduction.
7788 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
7790 2011-04-26 Joseph Myers <joseph@codesourcery.com>
7792 * config/fr30/fr30.h (inhibit_libc): Don't define.
7793 * config/m32r/m32r-protos.h: Correct comment.
7794 * config/v850/v850.h (GHS_default_section_names,
7795 GHS_current_section_names): Use tree, not union tree_node *.
7797 2011-04-26 Xinliang David Li <davidxl@google.com>
7799 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
7800 * c-family/c-opts.c (c_common_handle_option): Set
7801 warn_maybe_uninitialized.
7802 * opts.c (common_handle_option): Ditto.
7803 * common.opt: New option.
7804 * tree-ssa.c (warn_uninit): Add one more parameter.
7805 (warn_uninitialized_var): Pass warning code.
7806 * tree-flow.h: Interface change.
7808 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7810 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
7811 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
7812 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
7814 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7816 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
7817 * config/mips/mips.opt (mmips-tfile): Remove.
7819 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
7820 mips-tdump reference to ...
7821 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
7822 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
7823 reference by Tru64 UNIX.
7825 2011-04-26 Jakub Jelinek <jakub@redhat.com>
7828 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
7829 is error_mark_node, set value to NULL.
7831 PR tree-optimization/48734
7832 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
7833 if return value from maybe_fold_*_comparsions isn't something
7834 the code is prepared to handle.
7836 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
7838 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
7840 (ext_QIreg_nomode_operands): Remove.
7841 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
7845 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
7847 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
7849 2011-04-26 Richard Guenther <rguenther@suse.de>
7851 * c-typeck.c (build_unary_op): Do not expand array-refs via
7852 pointer arithmetic. Only adjust qualifiers for function types.
7854 2011-04-26 Richard Guenther <rguenther@suse.de>
7857 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
7858 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
7859 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
7860 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
7862 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
7864 * doc/extend.texi: Document __underlying_type.
7866 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
7868 * config/rs6000/titan.md (automata_option "progress"): Remove.
7870 2011-04-25 Jeff Law <law@redhat.com>
7872 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
7874 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7876 * system.h (ENUM_BITFIELD): Remove.
7878 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
7879 Eric Botcazou <ebotcazou@adacore.com>
7881 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
7882 for STORE_FLAG_VALUE==-1 case.
7884 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
7887 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
7888 LEGITIMATE_PIC_OPERAND_P.
7890 2011-04-24 Jan Hubicka <jh@suse.cz>
7892 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
7894 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
7895 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
7896 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
7897 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
7898 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
7899 Sanity check predicate length.
7900 (remap_predicate): Likewise; sanity check jump functions.
7901 (inline_read_section, inline_write_summary): Sanity check
7904 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7907 * doc/extend.texi (Type Traits): Document __is_standard_layout,
7908 __is_literal_type, and __is_trivial; update throughout about
7909 possibly cv-qualified void types.
7911 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
7913 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
7914 testsuite and make it version agnostic.
7916 2011-04-22 Jan Hubicka <jh@suse.cz>
7918 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
7920 2011-04-23 Jakub Jelinek <jakub@redhat.com>
7923 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
7924 to VOID_TYPE even around MODIFY_EXPR.
7926 2011-04-22 Mike Stump <mikestump@comcast.net>
7928 * gensupport.c (read_md_rtx): Fix typo in comment.
7929 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
7932 2011-04-22 Jan Hubicka <jh@suse.cz>
7934 * gengtype.c (open_base_files): Add ipa-inline.h include.
7935 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
7936 ipa-prop.c; update all uses.
7937 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
7938 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
7939 merge summary of inlined function into former caller.
7940 * ipa-inline.c (max_benefit): Remove.
7941 (edge_badness): Compensate for removal of benefits.
7942 (update_caller_keys): Use
7943 reset_node_growth_cache/reset_edge_growth_cache.
7944 (update_callee_keys): Likewise.
7945 (update_all_callee_keys): Likewise.
7946 (inline_small_functions): Do not collect max_benefit; do not reset
7947 estimated_growth; call free_growth_caches and initialize_growth_caches.
7948 * ipa-inline.h (struct condition, type clause_t, struct predicate,
7949 struct size_time_entry): New structures.
7950 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
7951 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
7952 and estimated_growth.
7953 (edge_growth_cache_entry): New structure.
7954 (node_growth_cache, edge_growth_cache): New global vars.
7955 (estimate_growth): Turn into inline.
7956 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
7957 initialize_growth_caches, free_growth_caches): Declare.
7958 (estimate_edge_growth): Rewrite.
7959 (estimate_edge_time): Implement as inline cache lookup.
7960 (reset_node_growth_cache, reset_edge_growth_cache): New inline
7962 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
7963 (NUM_CONDITIONS): New constant.
7964 (predicate_conditions): New enum.
7965 (IS_NOT_CONSTANT): New constant.
7966 (edge_removal_hook_holder): New var.
7967 (node_growth_cache, edge_growth_cache): New global vars.
7968 (true_predicate, single_cond_predicate, false_predicate,
7969 not_inlined_predicate, add_condition, add_clause, and_predicates,
7970 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
7971 dump_clause, dump_predicate, account_size_time,
7972 evaulate_conditions_for_edge): New functions.
7973 (inline_summary_alloc): Move to heap.
7974 (inline_node_removal_hook): Clear condition and entry vectors.
7975 (inline_edge_removal_hook): New function.
7976 (initialize_growth_caches, free_growth_caches): New function.
7977 (dump_inline_summary): Update.
7978 (edge_execution_predicate): New function.
7979 (will_be_nonconstant_predicate): New function.
7980 (estimate_function_body_sizes): Compute BB and constantness predicates.
7981 (compute_inline_parameters): Do not clear estimated_growth.
7982 (estimate_edge_size_and_time): New function.
7983 (estimate_calls_size_and_time): New function.
7984 (estimate_callee_size_and_time): New function.
7985 (remap_predicate): New function.
7986 (inline_merge_summary): New function.
7987 (do_estimate_edge_time): New function based on...
7988 (estimate_edge_time): ... this one.
7989 (do_estimate_edge_growth): New function.
7990 (do_estimate_growth): New function based on....
7991 (estimate_growth): ... this one.
7992 (inline_analyze_function): Analyze after deciding on jump functions.
7993 (inline_read_section): New function.
7994 (inline_read_summary): Use it.
7995 (inline_write_summary): Write all the new data.
7996 * ipa-prop.c (ipa_get_param_decl_index): Export.
7997 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
7998 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
8000 (ipa_get_lattice): Move here from ipa-cp.c
8001 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
8002 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
8003 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
8004 cgraph_edge_inlinable_p): Remove.
8005 * cgraphunit.c: Include ipainline.h
8006 (cgraph_process_new_functions): Update call of
8007 compute_inline_parameters.
8009 2011-04-22 Richard Guenther <rguenther@suse.de>
8011 * tree.c (build_int_cst): Properly create canonicalized integer
8013 (build_int_cst_type): Remove scary comments.
8015 2011-04-22 Xinliang David Li <davidxl@google.com>
8017 * toplev.c (process_options): Enable -Werror=coverage-mismatch
8018 by default when -Wno-error is not specified.
8019 * opts-global.c (decode_options): Remove call to
8020 control_warning_options.
8022 2011-04-22 Jakub Jelinek <jakub@redhat.com>
8024 PR tree-optimization/48717
8025 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
8026 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
8028 2011-04-22 Joseph Myers <joseph@codesourcery.com>
8030 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
8031 definition where used.
8033 2011-04-22 Jakub Jelinek <jakub@redhat.com>
8036 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
8037 TREE_STATIC variables declared inside of some OpenMP construct.
8039 2011-04-22 Martin Jambor <mjambor@suse.cz>
8042 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
8044 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
8047 * c-typeck.c (pop_init_level): Do not warn about initializing
8050 2011-04-22 Alan Modra <amodra@gmail.com>
8052 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
8053 when returning call_cookie.
8054 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
8055 pointers, to functions with no more vector args than the current
8056 function, and some non-local calls for ABI_V4.
8057 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
8058 sibcall_nonlocal_aix64): Combine to ..
8059 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
8060 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
8061 (sibcall_value_nonlocal_aix<mode>): ..likewise.
8062 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
8063 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
8065 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
8066 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
8067 sibcall_value_symbolic_64): Delete.
8069 2011-04-21 Xinliang David Li <davidxl@google.com>
8071 * cgraph.h: Remove pid.
8072 * cgraph.c: Remove pid.
8073 * value-prof.c (init_node_map): New function.
8074 (del_node_map): New function.
8075 (find_func_by_funcdef_no): New function.
8076 (gimple_ic_transform): Call new function.
8077 * cgraphunit.c (cgraph_finalize_function): Remove pid.
8078 * function.c (get_last_funcdef_no): New function.
8079 * function.h (get_last_funcdef_no): New function.
8080 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
8081 to libgcov function.
8082 (tree-profiling): Call node map init and delete function.
8084 2011-04-21 Ian Lance Taylor <iant@google.com>
8086 * godump.c (go_format_type): Use exported Go name for anonymous
8089 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8091 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
8092 Call builtin_function_type_list instead of builtin_function_type.
8093 (UNARY, BINARY, TRINARY, QUAD): Likewise.
8095 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8097 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
8098 build_function_type_list instead of build_function_type.
8099 Delete variable `endlink'.
8101 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8103 * config/s390/s390.c (s390_init_builtins): Call
8104 build_function_type_list instead of build_function_type.
8106 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8108 * config/ia64/ia64.c (ia64_init_builtins): Call
8109 build_function_type_list instead of builtin_function_type.
8111 2011-04-21 Easwaran Raman <eraman@google.com>
8113 * cfgexpand.c (stack_var): Remove OFFSET...
8114 (add_stack_var): ...and its reference here...
8115 (expand_stack_vars): ...and here.
8116 (stack_var_cmp): Sort by descending order of size.
8117 (partition_stack_vars): Change heuristic.
8118 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
8119 (dump_stack_var_partition): Add newline after each partition.
8121 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
8122 Jeff Law <law@redhat.com>
8124 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
8125 * gengtype.c (matching_file_name_substitute): Likewise.
8127 2011-04-21 Richard Guenther <rguenther@suse.de>
8130 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
8132 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
8134 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
8136 2011-04-21 Richard Guenther <rguenther@suse.de>
8138 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
8141 2011-04-21 Richard Guenther <rguenther@suse.de>
8143 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
8144 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
8145 Use DECL_P, not SSA_VAR_P.
8146 (ptr_derefs_may_alias_p): Likewise.
8147 (ptr_deref_may_alias_ref_p_1): Likewise.
8148 (decl_refs_may_alias_p): Likewise.
8149 (refs_may_alias_p_1): Likewise.
8150 (ref_maybe_used_by_call_p_1): Likewise.
8151 (call_may_clobber_ref_p_1): Likewise.
8152 (indirect_ref_may_alias_decl_p): Assume indirect refrences
8153 are either MEM_REF or TARGET_MEM_REF.
8154 (indirect_refs_may_alias_p): Likewise.
8155 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
8156 for MEM_EXPR of indirect calls.
8158 2011-04-21 Tristan Gingold <gingold@adacore.com>
8160 * vmsdbgout.c (write_srccorr): Compute file length from the string.
8161 (dst_file_info_struct): Remove flen field.
8162 (lookup_filename): Remove code that set flen field.
8164 2011-04-21 Tristan Gingold <gingold@adacore.com>
8166 * config/ia64/ia64.c (ia64_start_function): Add a guard.
8168 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
8171 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
8172 vec_extract and vec_concat for non-SSE4_1 targets.
8174 2011-04-21 Richard Guenther <rguenther@suse.de>
8176 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
8179 2011-04-21 Joseph Myers <joseph@codesourcery.com>
8181 * config/i386/cygming.h (union tree_node, TREE): Don't define or
8183 (FILE): Don't undefine.
8185 2011-04-21 Joseph Myers <joseph@codesourcery.com>
8187 * config/alpha/alpha.c (struct machine_function): Use rtx, not
8189 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
8191 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
8192 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
8193 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
8195 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
8196 definitions where used.
8197 * config/microblaze/microblaze.h (struct microblaze_args): Use
8198 rtx, not struct rtx_def *.
8199 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
8201 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
8202 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
8203 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
8204 not struct rtx_def *.
8205 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
8207 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
8209 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
8211 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8213 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
8214 operand_equal_p to compare DR_BASE_ADDRESSes.
8215 (vect_check_interleaving): Likewise.
8217 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8220 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
8221 for all Neon struct constants.
8223 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8225 * target.def (legitimate_constant_p): New hook.
8226 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
8227 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
8228 * doc/tm.texi: Regenerate.
8229 * hooks.h (hook_bool_mode_rtx_true): Declare.
8230 * hooks.c (hook_bool_mode_rtx_true): Define.
8231 * system.h (LEGITIMATE_CONSTANT_P): Poison.
8232 * calls.c (precompute_register_parameters): Replace uses of
8233 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
8234 (emit_library_call_value_1): Likewise.
8235 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
8236 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
8237 * ira-costs.c (scan_one_insn): Likewise.
8238 * recog.c (general_operand, immediate_operand): Likewise.
8239 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
8240 * reload1.c (init_eliminable_invariants): Likewise.
8242 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
8244 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
8245 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
8247 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8248 * config/alpha/predicates.md (input_operand): Update call to
8249 alpha_legitimate_constant_p.
8251 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
8252 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
8253 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
8254 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8255 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
8256 (arm_legitimate_constant_p): New functions.
8257 (arm_cannot_force_const_mem): Make static.
8259 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
8261 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
8262 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
8263 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
8264 instead of bfin_legitimate_constant_p.
8265 (bfin_legitimate_constant_p): Make static. Add a mode argument.
8266 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8268 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
8270 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
8272 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
8273 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
8274 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8275 (frv_legitimate_constant_p): Make static. Add a mode argument.
8277 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
8278 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
8279 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
8281 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
8282 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
8283 * config/i386/i386.c (legitimate_constant_p): Rename to...
8284 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
8286 (ix86_cannot_force_const_mem): Update accordingly.
8287 (ix86_legitimate_address_p): Likewise.
8288 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8289 * config/i386/i386.md: Update commentary.
8291 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
8292 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
8293 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8294 (ia64_legitimate_constant_p): Make static. Add a mode argument.
8296 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
8298 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
8299 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
8300 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8301 (lm32_legitimate_constant_p): Make static. Add a mode argument.
8303 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
8304 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
8305 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
8307 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
8308 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8309 (m32r_legitimate_constant_p): New function.
8311 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
8312 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
8313 LEGITIMATE_CONSTANT_P.
8314 (LEGITIMATE_CONSTANT_P): Delete.
8315 * config/m68k/m68k.c (m68k_expand_prologue): Call
8316 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
8317 (m68k_legitimate_constant_p): New function.
8318 * config/m68k/m68k.md: Update comments.
8320 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
8321 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8322 (mcore_legitimate_constant_p): New function.
8324 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
8325 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
8326 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
8327 Add a mode argument.
8328 (mep_legitimate_address): Update accordingly.
8329 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8331 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
8333 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
8334 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
8335 static. Check OP's mode for VOIDmode.
8336 (microblaze_legitimate_constant_p): New function.
8337 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8339 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
8340 * config/mips/mips.c (mips_legitimate_constant_p): New function.
8341 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
8342 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8343 * config/mips/predicates.md: Update comments.
8345 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
8346 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
8347 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8348 (mmix_legitimate_constant_p): Make static, return a bool, and take
8350 (mmix_print_operand_address): Update accordingly.
8352 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
8354 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
8355 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
8356 static. Add a mode argument.
8357 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8359 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
8361 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
8362 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8363 (pa_legitimate_constant_p): New function.
8365 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
8367 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
8368 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8369 (pdp11_legitimate_constant_p): New function.
8371 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
8372 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8373 (rs6000_legitimate_constant_p): New function.
8375 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
8376 (rx_legitimate_constant_p): ...this.
8377 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
8378 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
8379 (rx_legitimate_constant_p): ...this.
8380 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8381 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
8383 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
8384 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
8385 * config/s390/s390.c (legitimate_constant_p): Rename to...
8386 (s390_legitimate_constant_p): ...this. Make static, return a bool,
8387 and add a mode argument.
8388 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8390 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
8392 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
8393 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8394 (sh_legitimate_constant_p): New function.
8396 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
8397 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
8398 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8399 (legitimate_constant_p): Rename to...
8400 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
8402 (constant_address_p): Update accordingly.
8404 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
8405 argument and return a bool.
8406 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
8407 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8408 (spu_legitimate_constant_p): Add a mode argument and return a bool.
8409 (spu_rtx_costs): Update accordingly.
8410 * config/spu/predicates.md (vec_imm_operand): Likewise.
8412 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
8414 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
8415 * config/v850/v850.c (v850_legitimate_constant_p): New function.
8416 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8418 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
8419 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
8420 * config/vax/vax.c (legitimate_constant_p): Likewise.
8422 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
8423 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8424 (xtensa_legitimate_constant_p): New function.
8426 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8428 * target.def (cannot_force_const_mem): Add a mode argument.
8429 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
8430 * doc/tm.texi: Regenerate.
8431 * hooks.h (hook_bool_mode_rtx_false): Declare.
8432 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
8433 (hook_bool_mode_const_rtx_true): Likewise.
8434 (hook_bool_mode_rtx_false): New function.
8435 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
8436 to be non-VOID. Update call to cannot_force_const_mem.
8437 (find_reloads): Update accordingly.
8438 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
8439 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
8441 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
8442 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
8443 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
8444 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
8445 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
8446 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
8447 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
8448 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8449 (m68k_cannot_force_const_mem): ...this new function.
8450 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
8452 (mips_const_insns, mips_legitimize_const_move): Update calls.
8453 (mips_secondary_reload_class): Likewise.
8454 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8455 (pa_cannot_force_const_mem): ...this new function.
8456 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
8457 (rs6000_cannot_force_const_mem): ...this new function.
8458 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
8460 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
8461 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
8463 (xtensa_cannot_force_const_mem): ...this new function.
8465 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8467 * config/mips/mips.c (mips16_build_function_stub): Call
8468 build_function_type_list instead of build_function_type.
8469 (mips16_build_call_stub): Likewise.
8471 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8473 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
8474 instead of build_function_type.
8476 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8478 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
8479 instead of build_function_type.
8481 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
8484 * config/i386/i386.md (insv): Change operand 0 constraint to
8485 "register_operand". Change operand 1 and 2 constraint to
8486 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
8487 * config/i386/sse.md (sse4_1_pinsrb): Export.
8488 (sse2_pinsrw): Ditto.
8489 (sse4_1_pinsrd): Ditto.
8490 (sse4_1_pinsrq): Ditto.
8491 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
8492 * config/i386/i386.c (ix86_expand_pinsr): New.
8494 2011-04-20 Easwaran Raman <eraman@google.com>
8496 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
8497 containing union type only with -fstrict-aliasing.
8499 2011-04-20 Jim Meyering <meyering@redhat.com>
8501 Remove useless if-before-free tests.
8502 * calls.c (expand_call, save_area): Likewise.
8503 * cfgcleanup.c (try_forward_edges): Likewise.
8504 * collect2.c (collect_execute): Likewise.
8505 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
8506 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
8507 * coverage.c (coverage_checksum_string): Likewise.
8508 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
8509 * cselib.c (cselib_init): Likewise.
8510 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
8511 (df_set_clean_cfg): Likewise.
8512 * function.c (free_after_compilation): Likewise.
8513 * gcc.c (do_spec_1, main): Likewise.
8514 * gcov.c (create_file_names): Likewise.
8515 * gensupport.c (identify_predicable_attribute): Likewise.
8516 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
8517 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
8518 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
8519 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
8520 * ipa-pure-const.c (local_pure_const): Likewise.
8521 * ipa-reference.c (propagate): Likewise.
8522 * ira-costs.c (free_ira_costs): Likewise.
8523 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
8524 * matrix-reorg.c (mat_free): Likewise.
8525 * prefix.c (get_key_value): Likewise.
8526 * profile.c (compute_value_histograms): Likewise.
8527 * reload1.c (free_reg_equiv): Likewise.
8528 * sched-deps.c (free_deps): Likewise.
8529 * sel-sched-ir.c (fence_clear): Likewise.
8530 * sese.c (set_rename, if_region_set_false_region): Likewise.
8531 * tree-data-ref.c (free_rdg): Likewise.
8532 * tree-eh.c (lower_try_finally): Likewise.
8533 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
8534 * tree-ssa-live.c (delete_var_map): Likewise.
8535 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
8536 * tree-ssa-pre.c (phi_trans_add): Likewise.
8538 2011-04-20 Jakub Jelinek <jakub@redhat.com>
8540 PR tree-optimization/48611
8541 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
8542 beyond ERT_MUST_NOT_THROW region.
8544 2011-04-20 Catherine Moore <clm@codesourcery.com>
8546 * config/mips/mips.opt (mfix-24k): New.
8547 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
8548 * config/mips/mips.md (length): Increase by 4 for stores if
8550 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
8551 all noreorder if fixing 24K errata.
8552 * doc/invoke.texi: Document mfix-24k.
8554 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
8556 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
8557 quad-word modes, reduce to 9-bit index range when above 1016 limit.
8559 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
8561 * config/arm/arm.c (arm_gen_constant): Move movw support ....
8562 (const_ok_for_op): ... to here.
8564 2011-04-20 Kai Tietz <ktietz@redhat.com>
8566 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
8567 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
8569 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
8571 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
8573 2011-04-20 Richard Guenther <rguenther@suse.de>
8575 PR tree-optimization/47892
8576 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
8579 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
8581 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
8583 2011-04-20 Tristan Gingold <gingold@adacore.com>
8585 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
8587 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
8591 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
8592 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
8593 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
8594 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
8595 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
8597 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
8600 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
8601 (avr_asm_named_section, avr_asm_output_aligned_common,
8602 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
8603 New functions to update...
8604 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
8605 (avr_asm_init_sections): Overwrite section callbacks for
8606 data_section, bss_section.
8607 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
8609 (avr_file_end): ...here.
8611 2011-04-20 Richard Guenther <rguenther@suse.de>
8614 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
8615 objects and types here. Adjust for their offset before comparing.
8617 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
8619 * tree-vect-stmts.c (vectorizable_store): Only chain one related
8622 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
8624 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
8625 (GIMPLE_H): Include $(INTERNAL_FN_H).
8626 (OBJS-common): Add internal-fn.o.
8627 (internal-fn.o): New rule.
8628 * internal-fn.def: New file.
8629 * internal-fn.h: Likewise.
8630 * internal-fn.c: Likewise.
8631 * gimple.h: Include internal-fn.h.
8632 (GF_CALL_INTERNAL): New gf_mask.
8633 (gimple_statement_call): Put fntype into a union with a new
8635 (gimple_build_call_internal): Declare.
8636 (gimple_build_call_internal_vec): Likewise.
8637 (gimple_call_same_target_p): Likewise.
8638 (gimple_call_internal_p): New function.
8639 (gimple_call_internal_fn): Likewise.
8640 (gimple_call_fntype): Return null for internal calls.
8641 (gimple_call_set_fntype): Assert that the function is not internal.
8642 (gimple_call_set_fn): Likewise.
8643 (gimple_call_set_fndecl): Likewise.
8644 (gimple_call_set_internal_fn): New function.
8645 (gimple_call_addr_fndecl): Handle null functions.
8646 (gimple_call_return_type): Likewise null types.
8647 * gimple.c (gimple_build_call_internal_1): New function.
8648 (gimple_build_call_internal): Likewise.
8649 (gimple_build_call_internal_vec): Likewise.
8650 (gimple_call_same_target_p): Likewise.
8651 (gimple_call_flags): Handle calls to internal functions.
8652 (gimple_call_fnspec): New function.
8653 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
8654 (gimple_has_side_effects): Handle null functions.
8655 (gimple_rhs_has_side_effects): Likewise.
8656 (gimple_call_copy_skip_args): Handle calls to internal functions.
8657 * cfgexpand.c (expand_call_stmt): Likewise.
8658 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
8659 * gimple-fold.c (gimple_fold_call): Handle null functions.
8660 (gimple_fold_stmt_to_constant_1): Don't fold
8661 calls to internal functions.
8662 * gimple-low.c (gimple_check_call_args): Handle calls to internal
8664 * gimple-pretty-print.c (dump_gimple_call): Likewise.
8665 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
8666 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
8667 (do_warn_unused_result): Likewise.
8668 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
8669 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
8670 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
8671 the target of a call.
8672 (initialize_hash_element): Update accordingly.
8673 (hashable_expr_equal_p): Use gimple_call_same_target_p.
8674 (iterative_hash_hashable_expr): Handle calls to internal functions.
8675 (print_expr_hash_elt): Likewise.
8676 * tree-ssa-pre.c (can_value_number_call): Likewise.
8677 (eliminate): Handle null functions.
8678 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
8679 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
8680 (find_func_aliases): Likewise.
8681 * value-prof.c (gimple_ic_transform): Likewise.
8682 (gimple_indirect_call_to_profile): Likewise.
8683 * lto-streamer-in.c (input_gimple_stmt): Likewise.
8684 * lto-streamer-out.c (output_gimple_stmt): Likewise.
8686 2011-04-19 Jan Hubicka <jh@suse.cz>
8688 * ipa-inline-transform.c (save_inline_function_body): Add comments.
8689 * ipa-inline.c (inline_small_functions): Compute summaries first,
8690 populate heap later.
8692 2011-04-19 Jan Hubicka <jh@suse.cz>
8694 * cgraph.h (save_inline_function_body): Remove.
8695 * ipa-inline-transform.c: New file, broke out of...
8696 * ipa-inline.c: ... this one; Update toplevel comment.
8697 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
8699 (update_noncloned_frequencies): Move to ipa-inline-transform.c
8700 (cgraph_mark_inline_edge): Rename to inline_call; move to
8701 ipa-inline-transform.c.
8702 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
8703 move to ipa-inline-transform.c
8704 (recursive_inlining, inline_small_functions, flatten_function,
8705 ipa_inline, inline_always_inline_functions,
8706 early_inline_small_functions): Update.
8707 (inline_transform): Move to ipa-inline-transform.c.
8708 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
8710 * Makefile.in (ipa-inline-transform.o): New file.
8711 * cgraphunit.c (save_inline_function_body): Move to
8712 ipa-inline-transform.c
8714 2011-04-19 DJ Delorie <dj@redhat.com>
8716 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
8717 registers if we already know there aren't any.
8718 (m32c_emit_epilogue): Don't emit a barrier here.
8719 (m32c_emit_eh_epilogue): Likewise.
8720 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
8721 operands at expand time.
8722 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
8724 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
8725 duplicates. Provide aliases instead.
8726 * config/m32c/prologue.md (eh_return): Emit a barrier here.
8727 (eh_epilogue): Add a "(return)" here as a hint to other parts of
8730 2011-04-19 Anatoly Sokolov <aesok@post.ru>
8732 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
8733 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
8734 (general_or_i64_p, sparc_register_move_cost): New function.
8736 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8738 * doc/install.texi (Configuration, --enable-threads): Remove mach.
8739 Add lynx, mipssde. Sort table.
8741 2011-04-19 Xinliang David Li <davidxl@google.com>
8743 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
8746 2011-04-19 Jakub Jelinek <jakub@redhat.com>
8749 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
8750 is a SUBREG with non-MODE_INT mode inside of it.
8752 2011-04-19 Martin Jambor <mjambor@suse.cz>
8754 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
8755 also according to actual contants.
8756 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
8757 (gimple_fold_call): Use it.
8758 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
8760 2011-04-19 Martin Jambor <mjambor@suse.cz>
8762 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
8763 non-pointer assignments.
8765 2011-04-19 Martin Jambor <mjambor@suse.cz>
8767 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
8768 account anc_offset and otr_type from the indirect edge info.
8769 * ipa-prop.c (get_ancestor_addr_info): New function.
8770 (compute_complex_ancestor_jump_func): Assignment analysis moved to
8771 get_ancestor_addr_info, call it.
8772 (ipa_note_param_call): Do not initialize information about polymorphic
8773 calls, return the indirect call graph edge. Remove the last
8774 parameter, adjust all callers.
8775 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
8776 parameters. Initialize polymorphic information in the indirect edge.
8778 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
8781 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
8782 the types if they have different enumeration identifiers.
8784 2011-04-19 Jan Hubicka <jh@suse.cz>
8786 * cgraph.h (cgraph_optimize_for_size_p): Declare.
8787 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
8788 * predict.c (cgraph_optimize_for_size_p): Break out from ...
8789 (optimize_function_for_size_p) ... here.
8791 2011-04-19 Richard Guenther <rguenther@suse.de>
8794 * tree.c (free_lang_data): Do not reset the decl-assembler-name
8797 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
8799 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
8800 if DECL_NO_INLINE_WARNING_P is set on the function.
8802 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
8805 * reload1.c (inc_for_reload): Return void. All callers changed.
8806 (emit_input_reload_insns): Don't try to delete previous output
8807 reloads to a register, or record spill_reg_store for autoincs.
8809 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
8811 * gengtype.h: Updated copyright year.
8812 (struct input_file_st): Add inpisplugin field.
8813 (type_fileloc): New function.
8815 (write_typed_struct_alloc_def): Add gcc_assert.
8816 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
8817 (write_typed_alloc_defns): Don't output for plugin files.
8818 (input_file_by_name): Clear inpisplugin field.
8819 (main): Set inpisplugin field for plugin files.
8821 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
8823 * gengtype-state.c (string_eq): New.
8824 (read_state): Use string_eq instead of strcmp when creating the
8827 2011-04-19 Wei Guozhi <carrot@google.com>
8830 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
8831 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
8833 * config/arm/constraints.md (Uu): New constraint.
8834 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
8836 2011-04-19 Tristan Gingold <gingold@adacore.com>
8838 * config.gcc (-*-*-*vms): Added.
8839 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
8841 * config/vms/vms-ld.c: New file.
8842 * config/vms/vms-ar.c: New file.
8843 * config/vms/t-vmsnative: New file.
8845 2011-04-18 Xinliang David Li <davidxl@google.com>
8847 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
8849 2011-04-18 Jakub Jelinek <jakub@redhat.com>
8852 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
8853 if TREE_TYPE (v) is non-NULL.
8855 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
8856 gimple_get_virt_mehtod_for_binfo.
8857 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
8858 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
8860 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8862 2011-04-18 Michael Matz <matz@suse.de>
8863 Steve Ellcey <sje@cup.hp.com>
8865 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
8866 use its mode as source mode if it isn't VOIDmode.
8868 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
8870 * doc/passes.texi: Fill crossref nodes.
8872 2011-04-18 Jim Meyering <meyering@redhat.com>
8874 Fix doubled-word typos in comments and strings
8875 * config/alpha/vms-unwind.h: s/for for/for/
8876 * config/arm/unwind-arm.h: Likewise.
8877 * config/microblaze/microblaze.c: Likewise.
8878 * config/sh/constraints.md: s/in in/in/
8879 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
8881 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
8883 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
8884 (AVX_FLOAT_MODE_P): Ditto.
8885 (AVX128_VEC_FLOAT_MODE_P): Ditto.
8886 (AVX256_VEC_FLOAT_MODE_P): Ditto.
8887 (AVX_VEC_FLOAT_MODE_P): Ditto.
8888 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
8889 (UNSPEC_MASKSTORE): Ditto.
8890 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
8891 Merge from <sse>_movmsk<ssemodesuffix> and
8892 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
8893 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
8895 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
8896 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
8897 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
8899 2011-04-18 Jan Hubicka <jh@suse.cz>
8901 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
8903 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
8904 (want_inline_function_called_once_p): Break out the logic from
8906 (edge_badness): Ensure that profile is not misupdated.
8907 (lookup_recursive_calls): Prioritize by call frequencies.
8908 (inline_small_functions): Move program size estimates here;
8909 actually process whole queue even when unit growth has been
8910 met. (to properly compute inline_failed reasons and for the
8911 case unit size decrease.) Revisit comments on recursive inlining.
8912 (ipa_inline): Remove unit summary code; first inline hot calls
8913 of functions called once, cold calls next.
8914 (order, nnodes): Remove unused variables.
8915 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
8916 (GTFILES): Remove ipa-inline.c
8917 * sel-sched.c (fill_insns): Silence uninitialized var warning.
8919 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
8921 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
8923 2011-04-18 Jie Zhang <jie@codesourcery.com>
8924 Richard Earnshaw <rearnsha@arm.com>
8926 * arm.c (neon_builtin_type_bits): Remove.
8927 (typedef enum neon_builtin_mode): New.
8928 (T_MAX): Don't define.
8929 (typedef enum neon_builtin_datum): Remove bits, codes[],
8930 num_vars and base_fcode. Add mode, code and fcode.
8931 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
8932 VAR10): Change accordingly.
8933 (neon_builtin_data[]): Change accordingly
8934 (arm_init_neon_builtins): Change accordingly.
8935 (neon_builtin_compare): Remove.
8936 (locate_neon_builtin_icode): Remove.
8937 (arm_expand_neon_builtin): Change accordingly.
8939 * arm.h (enum arm_builtins): Move to ...
8940 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
8942 * arm.c (arm_builtin_decl): Declare.
8943 (TARGET_BUILTIN_DECL): Define.
8944 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
8945 (arm_builtin_decls[]): New.
8946 (arm_init_neon_builtins): Store builtin declarations in
8947 arm_builtin_decls[].
8948 (arm_init_tls_builtins): Likewise.
8949 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
8950 (arm_builtin_decl): New.
8952 2011-04-18 Richard Guenther <rguenther@suse.de>
8954 * tree.c (upper_bound_in_type): Build properly canonicalized
8956 (lower_bound_in_type): Likewise.
8958 2011-04-18 Richard Guenther <rguenther@suse.de>
8960 * gimple.h (gimple_call_addr_fndecl): New function.
8961 (gimple_call_fndecl): Use it.
8962 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
8964 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
8965 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
8967 2011-04-18 Richard Guenther <rguenther@suse.de>
8970 * tree.c (build_string): STRING_CST is now derived from tree_typed.
8972 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
8975 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
8976 DECL_IN_CONSTANT_POOL without RTL.
8978 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
8979 Ira Rosen <ira.rosen@linaro.org>
8982 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
8983 to match neon_vzip/vuzp/vtrn_internal.
8984 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
8985 outputs explicitly dependent on both inputs.
8986 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
8988 2011-04-18 Jakub Jelinek <jakub@redhat.com>
8990 PR tree-optimization/48616
8991 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
8992 whether the shift is by scalar or vector based on whether all SLP
8993 scalar stmts have the same rhs.
8995 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
8997 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
9000 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
9003 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
9006 2011-04-17 Jan Hubicka <jh@suse.cz>
9008 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
9009 * cgrpahunit.c (cgraph_finalize_function): Do not set
9010 finalized_by_frontend.
9011 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9012 finalized_by_frontend.
9014 2011-04-17 Jan Hubicka <jh@suse.cz>
9016 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
9017 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
9018 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
9019 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
9021 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
9023 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
9025 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
9028 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
9029 is non-null before accessing it.
9030 (input_cgraph): Remove trailing spaces.
9032 2011-04-17 Revital Eres <revital.eres@linaro.org>
9034 * params.def (sms-min-sc): New param flag.
9035 * modulo-sched.c (sms_schedule): Use it.
9036 * doc/invoke.texi (sms-min-sc): Document it.
9038 2011-04-17 Jan Hubicka <jh@suse.cz>
9040 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
9041 present, also set gimple_call_set_cannot_inline.
9042 * ipa-inline.c: Update toplevel comment.
9044 (cgraph_clone_inlined_nodes): Fix linebreaks.
9045 (cgraph_check_inline_limits): Restructure to ...
9046 (caller_growth_limits): ... this one; be more tolerant
9047 on growth in nested inline chains; add explanatory comment;
9048 fix stack accounting thinko introduced by previous patch.
9049 (cgraph_default_inline_p): Remove.
9050 (report_inline_failed_reason): New function.
9051 (can_inline_edge_p): New function.
9052 (can_early_inline_edge_p): New function.
9053 (leaf_node_p): Move upwards in file.
9054 (want_early_inline_function_p): New function.
9055 (want_inline_small_function_p): New function.
9056 (want_inline_self_recursive_call_p): New function.
9057 (cgraph_edge_badness): Rename to ...
9058 (edge_badness) ... this one; fix linebreaks.
9059 (update_edge_key): Update call of edge_baddness; add
9060 detailed dump about queue updates.
9061 (update_caller_keys): Use can_inline_edge_p and
9062 want_inline_small_function_p.
9063 (cgraph_decide_recursive_inlining): Rename to...
9064 (recursive_inlining): Use can_inline_edge_p and
9065 want_inline_self_recursive_call_p; simplify and remove no longer
9067 (cgraph_set_inline_failed): Remove.
9068 (add_new_edges_to_heap): Use can_inline_edge_p and
9069 want_inline_small_function_p.
9070 (cgraph_decide_inlining_of_small_functions): Rename to ...
9071 (inline_small_functions): ... this one; cleanup; use
9072 can/want predicates; cleanup debug ouput; work edges till fibheap
9073 is exhausted and do not stop once unit growth is reached; remove
9074 later loop processing remaining edges.
9075 (cgraph_flatten): Rename to ...
9076 (flatten_function): ... this one; use can_inline_edge_p
9077 and can_early_inline_edge_p predicates.
9078 (cgraph_decide_inlining): Rename to ...
9079 (ipa_inline): ... this one; remove unreachable nodes before
9080 inlining functions called once; simplify the pass.
9081 (cgraph_perform_always_inlining): Rename to ...
9082 (inline_always_inline_functions): ... this one; use
9083 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
9084 (cgraph_decide_inlining_incrementally): Rename to ...
9085 (early_inline_small_functions): ... this one; simplify
9086 using new predicates; cleanup; make dumps prettier.
9087 (cgraph_early_inlining): Rename to ...
9088 (early_inliner): newer inline regular functions into always-inlines;
9089 fix updating of call stmt summaries.
9090 (pass_early_inline): Update for new names.
9091 (inline_transform): Fix formating.
9092 (gate_cgraph_decide_inlining): Rename to ...
9093 (pass_ipa_inline): ... this one.
9094 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
9095 * ipa-inline-analysis.c (dump_inline_summary): Update.
9096 (compute_inline_parameters): Do not compute disregard_inline_limits;
9097 look for mismatching arguments.
9098 (estimate_growth): Fix handlig of non-trivial self recursion.
9099 (inline_read_summary): Do not read info->disregard_inline_limits.
9100 (inline_write_summary): Do not write info->disregard_inline_limits.
9101 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
9102 and move all checks into can_inline_edge_p predicate; re-enable code
9103 comparing optimization levels.
9104 (expand_call_inline): Do not test inline_forbidden_into_p.
9105 * Makefile.in (ipa-inline.o): Update arguments.
9107 2011-04-17 Revital Eres <revital.eres@linaro.org>
9109 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
9111 2011-04-17 Revital Eres <revital.eres@linaro.org>
9113 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
9115 2011-04-17 Michael Matz <matz@suse.de>
9117 PR tree-optimization/48622
9119 * ipa-inline-analysis.c (inline_read_summary): Read size/time
9120 in same order as they're written.
9122 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9124 * config/pa/predicates.md: Reorganize and simplify predicates.
9125 Eliminate duplicate code checks.
9126 (arith_operand): Rename to arith14_operand
9127 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
9128 * config/pa/pa.md: Use renamed operands.
9129 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
9130 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
9131 arith11_operand, adddi3_operand, indexed_memory_operand,
9132 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
9133 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
9134 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
9135 move_dest_operand, move_src_operand, prefetch_cc_operand,
9136 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
9137 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
9138 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
9139 div_operand, int5_operand, movb_comparison_operator,
9140 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
9141 arith_double_operand, ireg_operand, lhs_lshift_operand,
9142 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
9143 integer_store_memory_operand): Likewise.
9144 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
9145 (integer_store_memory_operand, read_only_operand,
9146 function_label_operand, borx_reg_operand,
9147 non_hard_reg_operand): Likewise.
9148 (eq_neq_comparison_operator): Delete unused operator.
9149 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
9150 function_label_operand.
9151 (emit_move_sequence): Likewise.
9153 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
9155 * config/i386/sse.md (sseunpackmode): New mode attribute.
9156 (ssepackmode): Ditto.
9157 (vec_pack_trunc_<mode>): Macroize expander from
9158 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
9159 (vec_unpacks_lo_<mode>): Macroize expander from
9160 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9161 (vec_unpacks_hi_<mode>): Macroize expander from
9162 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9163 (vec_unpacku_lo_<mode>): Macroize expander from
9164 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9165 (vec_unpacku_hi_<mode>): Macroize expander from
9166 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9167 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
9168 ix86_expand_sse4_unpack.
9169 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
9171 2011-04-16 Jan Hubicka <jh@suse.cz>
9173 * cgraphbuild.c: Include ipa-inline.h.
9174 (reset_inline_failed): Use initialize_inline_failed.
9175 * cgraph.c: Include ipa-inline.h.
9176 (cgraph_create_node_1): Do not initialize estimated_growth.
9177 (initialize_inline_failed): More to ipa-inline-analysis.c
9178 (dump_cgraph_node): Do not dump inline flags.
9179 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
9180 and disregard_inline_limits flags.
9181 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
9182 time, size, estimated_growth.
9183 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
9185 * cgraphunit.c (cgraph_decide_is_function_needed): Use
9186 DECL_DISREGARD_INLINE_LIMITS.
9187 (cgraph_analyze_function): Do not initialize
9188 node->local.disregard_inline_limits.
9189 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9190 inlinable, versionable and disregard_inline_limits.
9191 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
9192 cgraph_check_inline_limits, cgraph_default_inline_p,
9193 cgraph_edge_badness, update_caller_keys, update_callee_keys,
9194 add_new_edges_to_heap): Update.
9195 (cgraph_decide_inlining_of_small_function): Update; set
9196 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
9197 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
9198 cgraph_decide_inlining_incrementally): Update.
9199 * ipa-inline.h (inline_summary): Add inlinable, versionable,
9200 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
9201 time, size and estimated_growth parameters.
9202 (estimate_edge_growth): Update.
9203 (initialize_inline_failed): Declare.
9204 * ipa-split.c: Include ipa-inline.h
9205 (execute_split_functions): Update.
9206 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
9207 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
9208 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
9209 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
9210 estimated_growth to INT_MIN.
9211 (inline_node_duplication_hook): Likewise.
9212 (dump_inline_summary): Dump new fields.
9213 (compute_inline_parameters): Update.
9214 (estimate_edge_time, estimate_time_after_inlining,
9215 estimate_size_after_inlining, estimate_growth, inline_read_summary,
9216 inline_write_summary):
9217 (initialize_inline_failed): Move here from cgraph.c.
9218 * tree-sra.c: Include ipa-inline.h.
9219 (ipa_sra_preliminary_function_checks): Update.
9220 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
9223 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
9225 * config/i386/sse.md (V16): New mode iterator.
9227 (AVXMODEQI, AVXMODEDI): Remove.
9228 (sse2, sse3): New mode attribute.
9229 (mov<mode>): Use V16 mode iterator.
9230 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
9231 (push<mode>1): Use V16 mode iterator.
9232 (movmisalign<mode>): Ditto.
9233 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9234 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
9235 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9236 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
9237 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
9238 avx_movdqu<avxmodesuffix>.
9239 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
9240 *avx_movdqu<avxmodesuffix>.
9241 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
9242 avx_lddqu<avxmodesuffix>.
9243 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
9244 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
9245 avx_movnt<AVXMODEDI:mode>.
9246 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
9247 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
9249 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
9252 * haifa-sched.c (prune_ready_list, schedule_block): Use
9253 sched_pressure_p rather than flag_sched_pressure.
9255 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
9257 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9258 cgraph_get_node instead of cgraph_get_create_node.
9260 2011-04-15 Jakub Jelinek <jakub@redhat.com>
9262 * cfgexpand.c (expand_debug_expr): Use
9263 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
9265 2011-04-15 Michael Matz <matz@suse.de>
9267 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
9268 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
9269 * function.c (gimplify_parameters): Ditto.
9270 * gimplify.c (gimplify_vla_decl): Ditto.
9272 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
9273 (gimple_call_set_alloca_for_var): New inline function.
9274 (gimple_call_alloca_for_var_p): Ditto.
9275 * gimple.c (gimple_build_call_from_tree): Remember
9276 CALL_ALLOCA_FOR_VAR_P state.
9277 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
9279 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
9280 calls if they were for VLA objects.
9282 2011-04-15 Martin Jambor <mjambor@suse.cz>
9284 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
9287 2011-04-15 Martin Jambor <mjambor@suse.cz>
9290 * tree-emutls.c (lower_emutls_function_body): Call
9291 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
9294 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
9296 * c-decl.c (detect_field_duplicates): Call
9297 objc_detect_field_duplicates instead of objc_get_interface_ivars.
9299 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
9301 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
9302 * gimple.c (gimple_asm_clobbers_memory_p): Define.
9303 * ipa-pure-const.c (check_stmt): Call it.
9304 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
9306 2011-04-15 Richard Guenther <rguenther@suse.de>
9308 PR tree-optimization/48290
9309 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
9310 Properly decide inhibiting propagation based on the valueized
9311 operand. Do loop-closed SSA form preserving here ...
9312 (init_copy_prop): ... not here.
9314 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
9317 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
9318 (*ieee_smax<mode>3): Likewise.
9320 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9322 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
9323 Replace match_operand with match_dup for the third operand in
9326 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9328 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
9329 to track processing of conditionals. Update all callers.
9330 (try_combine, simplify_if_then_else): Update.
9332 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9334 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
9337 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
9339 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
9340 instead of match_operand for operand 3.
9342 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
9344 * recog.h (insn_operand_data): Add an "allows_mem" field.
9345 * genoutput.c (output_operand_data): Initialize it.
9346 * optabs.c (maybe_legitimize_operand_same_code): New function.
9347 (maybe_legitimize_operand): Use it when matching the original
9350 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
9352 * gimplify.c: Fix issues in comments throughout.
9353 (voidify_wrapper_expr): Fix long line.
9354 (build_stack_save_restore): Likewise.
9355 (gimplify_loop_expr): Likewise.
9356 (gimplify_compound_lval): Likewise.
9357 (gimplify_init_ctor_eval): Likewise.
9358 (gimplify_modify_expr_rhs): Likewise.
9359 (omp_notice_threadprivate_variable): Likewise.
9361 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
9363 * cfgexpand.c (expand_call_stmt): Convert the function type to the
9364 original one if this is not a builtin function.
9366 2011-04-14 Jakub Jelinek <jakub@redhat.com>
9369 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
9370 offset it as needed based on top 2 bits in operands[3], change
9371 MEM mode to SFmode and mask those 2 bits away from operands[3].
9373 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9375 * c-parser.c (c_parser_objc_protocol_definition): Updated for
9376 change from objc_declare_protocols() to objc_declare_protocol().
9378 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
9380 * config/i386/sse.md (sse4_1): New mode attribute.
9381 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
9382 avx_blend<ssemodesuffix><avxmodesuffix> and
9383 sse4_1_blend<ssemodesuffix> using VF mode iterator.
9384 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
9385 avx_blendv<ssemodesuffix><avxmodesuffix> and
9386 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
9387 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
9388 avx_dp<ssemodesuffix><avxmodesuffix> and
9389 sse4_1_dp<ssemodesuffix> using VF mode iterator.
9390 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
9391 (sse4_1_packusdw): Merge with *avx_packusdw.
9392 (sse4_1_pblendvb): Merge with *avx_pblendvb.
9393 (sse4_1_pblendw): Merge with *avx_pblendw.
9394 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
9395 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
9396 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
9398 (sse4_1_round<ssescalarmodesuffix>): Merge with
9399 *avx_round<ssescalarmodesuffix>.
9400 (aesenc): Merge with *avx_aesenc.
9401 (aesenclast): Merge with *avx_aesenclast.
9402 (aesdec): Merge with *avx_aesdec.
9403 (aesdeclast): Merge with *avx_aesdeclast.
9404 (pclmulqdq): Merge with *pclmulqdq.
9405 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
9407 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9409 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
9412 * cfgexpand.c (get_decl_align_unit): Renamed to ...
9413 (align_local_variable): This. Update DECL_ALIGN.
9414 (add_stack_var): Updated.
9415 (expand_one_stack_var): Likewise.
9417 2011-04-14 Richard Guenther <rguenther@suse.de>
9419 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
9421 (dse_initialize_block_local_data, dse_leave_block,
9422 record_voperand_set, get_stmt_uid): Likewise.
9423 (dse_possible_dead_store_p): Allow any kind of killing stmt.
9424 (dse_optimize_stmt): Remove voperand set handling code.
9425 Simplify and improve to handle any kind of killing stmt.
9426 (dse_record_phi): Remove.
9427 (dse_enter_block): Simplify.
9428 (tree_ssa_dse): Likewise.
9429 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
9431 2011-04-14 Jan Hubicka <jh@suse.cz>
9433 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
9434 * cgraph.h (struct inline_summary): Move to ipa-inline.h
9435 (cgraph_local_info): Remove inline_summary.
9436 * ipa-cp.c: Include ipa-inline.h.
9437 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
9438 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
9440 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
9441 (input_overwrite_node): Do not set inline summary.
9442 (input_node): Do not stream inline summary.
9443 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
9444 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
9445 growth; we do not have inline parameters computed for that anyway.
9446 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
9447 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
9448 (inline_summary_t): New type and VECtor.
9449 (debug_inline_summary, dump_inline_summaries): Declare.
9450 (inline_summary): Use VOCtor.
9451 (estimate_edge_growth): Kill hack computing call stmt size directly.
9452 * lto-section-in.c (lto_section_name): Add inline section.
9453 * ipa-inline-analysis.c: Include lto-streamer.h
9454 (node_removal_hook_holder, node_duplication_hook_holder): New holders
9455 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
9456 (inline_summary_vec): Define.
9457 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
9458 dump_inline_summaries): New functions.
9459 (estimate_function_body_sizes): Properly compute size/time of outgoing
9461 (compute_inline_parameters): Alloc inline_summary; do not compute
9462 size/time of incomming calls.
9463 (estimate_edge_time): Avoid missing time summary hack.
9464 (inline_read_summary): Read inline summary info.
9465 (inline_write_summary): Write inline summary info.
9466 (inline_free_summary): Free all hooks and inline summary vector.
9467 * lto-streamer.h: Add LTO_section_inline_summary section.
9468 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
9469 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
9471 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9473 * tree-vectorizer.h (vect_strided_store_supported): Add a
9474 HOST_WIDE_INT argument.
9475 (vect_strided_load_supported): Likewise.
9476 (vect_permute_store_chain): Return void.
9477 (vect_transform_strided_load): Likewise.
9478 (vect_permute_load_chain): Delete.
9479 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
9480 count argument. Check that the count is a power of two.
9481 (vect_strided_load_supported): Likewise.
9482 (vect_permute_store_chain): Return void. Update after above changes.
9483 Assert that the access is supported.
9484 (vect_permute_load_chain): Likewise.
9485 (vect_transform_strided_load): Return void.
9486 * tree-vect-stmts.c (vectorizable_store): Update calls after
9487 above interface changes.
9488 (vectorizable_load): Likewise.
9489 (vect_analyze_stmt): Don't check for strided powers of two here.
9491 2011-04-14 Richard Guenther <rguenther@suse.de>
9493 PR tree-optimization/48590
9494 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9495 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9496 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
9497 BUILT_IN_STACK_SAVE.
9498 * tree-ssa-dce.c (propagate_necessity): Handle
9499 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9501 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9503 * c-parser.c (c_parser_objc_class_declaration): Updated call to
9506 2011-04-14 Richard Guenther <rguenther@suse.de>
9508 * tree.h (get_object_alignment_1): Declare.
9509 * builtins.c (get_object_alignment_1): Split out worker from ...
9510 (get_object_alignment): ... here.
9511 * fold-const.c (get_pointer_modulus_and_residue): Use
9512 get_object_alignment_1.
9514 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9516 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
9518 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
9519 parameter. Generalise code to handle arrays as well as vectors.
9520 (vect_setup_realignment): Update accordingly.
9521 * tree-vect-stmts.c (vectorizable_store): Likewise.
9522 (vectorizable_load): Likewise.
9524 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9526 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
9527 within the per-copy loop.
9529 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9531 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
9534 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9536 * doc/options.texi (Negative): Explicitly mention that the
9537 Negative chain must be circular.
9539 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
9541 * function.h (block_chainon): Declare.
9542 * function.c (block_chainon): Define.
9544 2011-04-14 Anatoly Sokolov <aesok@post.ru>
9545 Eric Weddington <eric.weddington@atmel.com>
9546 Georg-Johann Lay <avr@gjlay.de>
9548 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
9550 (avr_init_builtins, avr_expand_builtin,
9551 avr_expand_delay_cycles, avr_expand_unop_builtin,
9552 avr_expand_binop_builtin ): New functions.
9553 (avr_builtin_id): New enum
9554 (struct avr_builtin_description): New struct
9555 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
9556 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
9558 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
9559 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
9560 UNSPECV_DELAY_CYCLES): new enumeration values
9561 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
9562 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
9563 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
9564 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
9565 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
9566 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
9567 "fmulsu"): New insns
9569 * config/avr/avr-c.c: fix line endings
9570 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
9571 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
9572 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
9573 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
9574 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
9576 * doc/extend.texi (AVR Built-in Functions): New node
9577 (Target Builtins): Add documentation of AVR
9580 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
9583 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
9584 alone. Error if non-const data has attribute progmem.
9586 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9588 * tree.h (struct tree_constructor): Include tree_typed instead of
9590 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
9591 TS_TYPED instead of TS_COMMON.
9593 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
9595 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
9596 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
9597 (sse2_psadbw): Merge with *avx_psadbw.
9598 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
9599 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
9600 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
9601 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
9602 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
9603 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
9604 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
9605 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
9606 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
9607 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
9608 (ssse3_palignrti): Merge with *avx_palignrti.
9610 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9612 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
9613 * tree-ssanames.c (fini_ssanames): VEC_free it.
9614 (make_ssa_name_fn): Update for VECness of free_ssanames.
9615 (release_ssa_name, release_dead_ssa_names): Likewise.
9616 * tree.h (struct tree_ssa_name): Include tree_typed instead of
9618 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
9619 TS_TYPED instead of TS_COMMON.
9621 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9623 * postreload-gcse.c (gcse_after_reload_main): Add calls to
9624 statistics_counter_event.
9625 * tree-ssa-copyrename.c (stats): Define.
9626 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
9627 statistics_counter_event.
9628 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
9629 (bswap_stats, widen_mul_stats): Define.
9630 (insert_reciprocals): Increment rdivs_inserted.
9631 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
9632 rfuncs_inserted. Add calls to statistics_counter_event.
9633 (execute_cse_sincos_1): Increment inserted.
9634 (execute_cse_sincos): Zeroize sincos_stats. Add call to
9635 statistics_counter_event.
9636 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
9637 of bswap_stats. Add calls to statistics_counter_event.
9638 (convert_mult_to_widen): Increment widen_mults_inserted.
9639 (convert_plusminus_to_widen): Increment maccs_inserted.
9640 (convert_mult_to_fma): Increment fmas_inserted.
9641 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
9642 calls to statistics_counter_event.
9644 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
9646 PR rtl-optimization/48455
9647 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
9648 `temp_costs->mem_cost'.
9650 2011-04-13 Jan Hubicka <jh@suse.cz>
9652 * ipa-inline.h: New file.
9653 * ipa-inline-analysis.c: New file. Broken out of ...
9654 * ipa-inline.c: ... this file; update toplevel comment;
9655 include ipa-inline.h
9656 (inline_summary): Move to ipa-inline.h
9657 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
9658 ipa-inline-analysis.c.
9659 (cgraph_estimate_time_after_inlining): Rename to
9660 estiamte_time_after_inlining; move to ipa-inline-analysis.c
9661 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
9662 to estimate_edge_growth.
9663 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
9664 rename to estimate_size_after_inlining.
9665 (cgraph_mark_inline_edge): Update for new naming convention.
9666 (cgraph_check_inline_limits): Likewise.
9667 (cgraph_edge_badness): Likewise.
9668 (cgraph_decide_recursive_inlining): Likewise.
9669 (cgraph_decide_inlining_of_small_functions): Likewise.
9670 (cgraph_decide_inlining_incrementally): Likewise.
9671 (cgraph_estimate_growth): Rename to estimate_growth; move to
9672 ipa-inline-analysis.c.
9673 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
9674 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
9675 (compute_inline_parameters): Likewise.
9676 (compute_inline_parameters_for_current): Likewise.
9677 (pass_inline_parameters): Likewise.
9678 (inline_indirect_intraprocedural_analysis): Likewise.
9679 (analyze_function): Rename to inline_analyze_function; likewise.
9680 (add_new_function): Move to ipa-inline-analysis.c.
9681 (inline_generate_summary): Likewise.
9682 (inline_read_summary): Likewise.
9683 (inline_write_summary): Likewise.
9684 * Makefile.in (ipa-inline-analysis.c): New file.
9686 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9688 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
9689 * configure: Regenerate.
9691 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9693 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
9694 instead of tree_common.
9695 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
9697 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
9698 TS_TYPED rather than TS_COMMON.
9699 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
9701 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
9704 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
9705 r20 around calls of __tablejump_elpm__
9707 2011-04-13 Jakub Jelinek <jakub@redhat.com>
9710 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
9712 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
9714 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
9716 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
9717 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
9718 (cfi_vec): New typedef.
9719 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
9720 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
9721 (cie_cfi_vec): New static variable.
9722 (cie_cfi_head): Delete.
9723 (add_cfi): Accept a cfi_vec * as first argument. All callers and
9724 declaration changed. Use vector rather than list operations.
9725 (new_cfi): Don't initialize the dw_cfi_next field.
9726 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
9727 rather than list operations.
9728 (lookup_cfa): Use vector rather than list operations.
9729 (output_cfis): New argument upto. Accept a cfi_vec rather than
9730 a dw_cfi_ref list head as argument. All callers changed.
9731 Iterate over the vector using upto as a maximum index.
9732 (output_all_cfis): New static function.
9733 (output_fde): Use vector rather than list operations. Use the
9734 new upto argument for output_cfis rather than manipulating a
9736 (dwarf2out_begin_prologue): Change initializations to match
9738 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
9739 from the vector length rather than searching for the end of a list.
9740 Use output_all_cfis.
9741 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
9743 2011-04-13 Nick Clifton <nickc@redhat.com>
9745 * config/rx/rx.md (movmemsi): Do not use this pattern when
9746 volatile pointers are involved.
9748 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
9750 * config/i386/sse.md (pinsrbits): Remove.
9751 (sse2_packsswb): Merge with *avx_packsswb.
9752 (sse2_packssdw): Merge with *avx_packssdw.
9753 (sse2_packuswb): Merge with *avx_packuswb.
9754 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
9755 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
9756 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
9757 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
9758 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
9759 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
9760 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
9761 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
9762 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
9763 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
9764 (sse2_loadld): Merge with *avx_loadld.
9765 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
9766 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
9767 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
9768 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
9769 (vec_concatv2di): Merge with *vec_concatv2di_avx.
9771 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
9773 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
9775 * print-tree.c (print_node): Likewise.
9776 * tree-inline.c (copy_tree_r): Likewise.
9777 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
9778 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
9779 instead of TS_COMMON.
9780 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
9781 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
9782 (copy_node_stat): Zero TREE_CHAIN only if necessary.
9783 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
9784 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
9786 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
9788 (TREE_CHAIN): Check for a TS_COMMON structure.
9789 (TREE_TYPE): Check for a TS_TYPED structure.
9791 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
9793 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9794 cgraph_get_create_node instead of cgraph_node.
9796 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9798 * c-parser.c (c_parser_initelt): Updated call to
9799 objc_build_message_expr.
9800 (c_parser_postfix_expression): Likewise.
9802 2011-04-12 Kai Tietz <ktietz@redhat.com>
9804 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
9805 MASK_MS_BITFIELD_LAYOUT bit.
9807 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9809 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
9810 assert it is always true.
9811 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
9814 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9816 * c-parser.c (c_lex_one_token): Rewritten conditional used when
9817 compiling Objective-C to be more efficient.
9819 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
9821 * opts-common.c (decode_cmdline_options_to_array): Remove variable
9824 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9826 * recog.h, genoutput.c, optabs.c: Revert last patch.
9828 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9831 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
9833 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9835 * recog.h (insn_operand_data): Add an "allows_mem" field.
9836 * genoutput.c (output_operand_data): Initialize it.
9837 * optabs.c (maybe_legitimize_operand_same_code): New function.
9838 (maybe_legitimize_operand): Use it when matching the original
9841 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9843 * genpreds.c (process_define_predicate): Move most processing
9844 to gensupport.c. Continue to validate the expression.
9845 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
9846 (process_define_predicate): Move processing to gensupport.c.
9847 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
9848 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
9849 (compute_predicate_codes): Moved from genrecog.c. Add lineno
9851 (valid_predicate_name_p): New function, split out from old
9852 genpreds.c:process_define_predicate.
9853 (process_define_predicate): New function, combining code from
9854 old genpreds.c and genrecog.c functions.
9855 (process_rtx): Call it for DEFINE_PREDICATE and
9856 DEFINE_SPECIAL_PREDICATE.
9858 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9860 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
9861 size of a '%A' memory reference.
9862 (T_DREG, T_QREG): New neon_builtin_type_bits.
9863 (arm_init_neon_builtins): Assert that the load and store operands
9864 are neon_struct_operands.
9865 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
9866 (NEON_ARG_MEMORY): New builtin_arg.
9867 (neon_dereference_pointer): New function.
9868 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
9869 Handle NEON_ARG_MEMORY.
9870 (arm_expand_neon_builtin): Update after above interface changes.
9871 Use NEON_ARG_MEMORY for loads and stores.
9872 * config/arm/predicates.md (neon_struct_operand): New predicate.
9873 * config/arm/iterators.md (V_two_elem): Tweak formatting.
9874 (V_three_elem): Use BLKmode for accesses that have no associated mode.
9875 (V_four_elem): Tweak formatting.
9876 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
9877 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
9878 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
9879 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
9880 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
9881 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
9882 (neon_vst4<mode>): Replace pointer operand with a memory operand.
9883 Use %A in the output template.
9884 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
9885 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
9886 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
9887 the width of the memory access. Remove post-increment.
9888 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
9890 2011-04-12 Nick Clifton <nickc@redhat.com>
9892 * config/v850/v850.c (expand_prologue): Do not use the CALLT
9893 instruction for interrupt handlers if the target is the basic V850
9895 (expand_epilogue): Likewise.
9897 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9899 PR rtl-optimization/48549
9900 * combine.c (propagate_for_debug): Also stop after BB_END of
9901 this_basic_block. Process LAST and just stop processing after it.
9902 (combine_instructions): If last_combined_insn has been deleted,
9903 set last_combined_insn to its PREV_INSN.
9905 2011-04-12 Richard Guenther <rguenther@suse.de>
9907 PR tree-optimization/46076
9908 * gimple.h (struct gimple_statement_call): Add fntype field.
9909 (gimple_call_fntype): Adjust.
9910 (gimple_call_set_fntype): New function.
9911 * gimple.c (gimple_build_call_1): Set the call function type.
9912 * gimplify.c (gimplify_call_expr): Preserve the function
9913 type the frontend used for the call.
9914 (gimplify_modify_expr): Likewise.
9915 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
9917 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
9919 * tree-ssa.c (useless_type_conversion_p): Function pointer
9920 conversions are useless.
9922 2011-04-12 Martin Jambor <mjambor@suse.cz>
9924 * cgraph.h (cgraph_node): Remove function declaration.
9925 (cgraph_create_node): Declare.
9926 (cgraph_get_create_node): Likewise.
9927 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
9928 Updated all callers.
9929 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
9930 the decl does not already exist. Call cgraph_get_create_node instead
9932 (cgraph_get_create_node): New function.
9933 (cgraph_same_body_alias): Update comment.
9934 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
9935 assert it does not return NULL.
9936 (cgraph_update_edges_for_call_stmt): Likewise.
9937 (cgraph_clone_edge): Likewise.
9938 (cgraph_create_virtual_clone): Likewise.
9939 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
9940 instead of cgraph_node.
9941 (cgraph_add_new_function): Call cgraph_create_node or
9942 cgraph_get_create_node instead of cgraph_node.
9943 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
9944 instead of cgraph_node.
9945 (record_eh_tables): Likewise.
9946 (mark_address): Likewise.
9947 (mark_load): Likewise.
9948 (build_cgraph_edges): Call cgraph_get_create_node instead
9950 (rebuild_cgraph_edges): Likewise.
9951 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
9952 instead of cgraph_node.
9953 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
9955 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
9956 cgraph_create_node instead of cgraph_node.
9957 * c-decl.c (finish_function): Call cgraph_get_create_node instead
9959 * lto-cgraph.c (input_node): Likewise.
9960 * lto-streamer-in.c (input_function): Likewise.
9961 * varasm.c (mark_decl_referenced): Likewise.
9962 (assemble_alias): Likewise.
9964 2011-04-12 Martin Jambor <mjambor@suse.cz>
9966 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
9967 instead of cgraph_node and assert it does not return NULL.
9968 * lto-streamer-in.c (lto_read_body): Likewise.
9969 * omp-low.c (new_omp_context): Likewise.
9970 (create_task_copyfn): Likewise.
9971 * tree-emutls.c (lower_emutls_function_body): Likewise.
9972 * matrix-reorg.c (transform_allocation_sites): Likewise.
9974 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9977 * c-typeck.c (build_asm_expr): Error out on attempts to use
9978 void type outputs or inputs for constraints that allow reg or
9981 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
9982 Richard Earnshaw <rearnsha@arm.com>
9985 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
9986 to use sign-magnitude offsets. Reject unsupported unaligned
9987 cases. Add detailed description in comments.
9988 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
9989 condition from TARGET_32BIT to TARGET_ARM.
9991 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
9993 * tree.h (struct typed_tree): New.
9994 (struct tree_common): Include it instead of tree_base.
9995 (TREE_TYPE): Update for new location of type field.
9996 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
9997 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
9998 (union tree_node): Add typed field.
9999 * treestruct.def (TS_TYPED): New.
10000 * lto-streamer.c (check_handled_ts_structures): Handle it.
10001 * tree.c (MARK_TS_TYPED): New macro.
10002 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
10004 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
10006 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
10007 (force_nonfallthru): Do not alter the loop nest if no basic block
10010 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
10012 * config/i386/sse.md (VI): New mode iterator.
10013 (SSEMODEI): Remove.
10014 (AVX256MODEI): Ditto.
10015 (AVXMODEF4P): Ditto.
10016 (avxvecpsmode): Ditto.
10017 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
10018 (sse2_andnot<mode>3): New expander.
10019 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
10020 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
10021 (<any_logic:code><mode>3): Use VI mode iterator.
10022 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
10023 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
10024 (*andnottf3): Handle AVX three-operand constraints.
10025 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
10027 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10028 Robert Millan <rmh@gnu.org>
10030 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
10031 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
10032 GNU_USER_DYNAMIC_LINKER64): Define.
10033 (REG_NAME): Don't undefine.
10034 (MD_UNWIND_SUPPORT): Undefine.
10035 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
10036 (REG_NAME): Don't undefine.
10037 (MD_UNWIND_SUPPORT): Undefine.
10038 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
10040 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10042 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
10043 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
10045 2011-04-11 Xinliang David Li <davidxl@google.com>
10047 * value-profile.c (check_ic_target): New function.
10048 (gimple_ic_transform): Sanity check indirect call target.
10049 * gimple-low.c (gimple_check_call_args): Interface change.
10050 (gimple_check_call_matching_types): New function.
10051 * tree-inline.c (tree_can_inline_p): Call new function.
10053 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
10055 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
10056 tree-pretty-print.h & realmpfr.h.
10058 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
10060 PR middle-end/48464
10061 * ira.c (setup_pressure_classes): Fix typo in loop condition.
10062 (setup_allocno_and_important_classes): Ditto.
10064 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10066 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
10067 GNU_USER_DYNAMIC_LINKER.
10068 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
10069 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10070 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
10071 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10072 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10073 GNU_USER_TARGET_OS_CPP_BUILTINS.
10074 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
10075 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10076 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10077 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10078 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
10079 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10080 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10081 GNU_USER_TARGET_OS_CPP_BUILTINS.
10082 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10083 GNU_USER_DYNAMIC_LINKER.
10084 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10085 GNU_USER_TARGET_OS_CPP_BUILTINS.
10086 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
10087 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10088 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
10089 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10090 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
10091 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
10092 GNU_USER_DYNAMIC_LINKER64): Remove.
10093 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
10094 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10095 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10096 GNU_USER_DYNAMIC_LINKER.
10097 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10098 GNU_USER_TARGET_OS_CPP_BUILTINS.
10099 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10100 GNU_USER_TARGET_OS_CPP_BUILTINS.
10101 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
10102 to GNU_USER_TARGET_OS_CPP_BUILTINS.
10103 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10104 GNU_USER_TARGET_OS_CPP_BUILTINS.
10105 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
10106 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
10107 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10108 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
10109 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10110 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10111 GNU_USER_DYNAMIC_LINKER.
10112 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10113 GNU_USER_TARGET_OS_CPP_BUILTINS.
10114 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
10115 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10116 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10117 GNU_USER_DYNAMIC_LINKER.
10118 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10119 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10120 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
10121 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10122 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10123 GNU_USER_DYNAMIC_LINKER.
10124 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
10125 GNU_USER_DYNAMIC_LINKERN32.
10126 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
10127 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
10128 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
10129 GNU_USER_DYNAMIC_LINKER32.
10130 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
10131 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10132 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10133 GNU_USER_DYNAMIC_LINKER.
10134 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10135 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10136 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
10137 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10138 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10139 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
10140 GNU_USER_DYNAMIC_LINKER32.
10141 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10142 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
10143 GNU_USER_DYNAMIC_LINKER.
10144 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
10145 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10146 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10147 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
10148 GNU_USER_DYNAMIC_LINKER64.
10149 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
10150 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10151 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10152 GNU_USER_DYNAMIC_LINKER.
10153 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
10154 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10155 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10156 GNU_USER_DYNAMIC_LINKER.
10157 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
10158 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10159 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10160 GNU_USER_DYNAMIC_LINKER32.
10161 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10162 GNU_USER_DYNAMIC_LINKER64.
10163 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10164 GNU_USER_DYNAMIC_LINKER64.
10165 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
10166 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10167 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
10168 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10169 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10171 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10173 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
10174 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
10175 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
10176 GNU_USER_DYNAMIC_LINKER.
10177 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10178 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
10179 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
10180 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
10181 GNU_USER_DYNAMIC_LINKER64.
10182 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10183 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
10184 GNU_USER_LINK_EMULATION.
10185 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
10186 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
10187 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
10188 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
10189 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
10190 CPP_SPEC, CC1_SPEC): Remove.
10191 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
10192 (GNU_USER_DYNAMIC_LINKER): Define.
10193 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
10194 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
10195 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
10196 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
10197 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
10198 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
10199 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10200 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
10201 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
10202 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
10203 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
10204 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
10205 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
10206 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
10207 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
10208 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10209 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10210 GNU_USER_DYNAMIC_LINKER.
10211 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10212 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10213 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10214 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10215 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10216 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10217 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
10218 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
10219 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
10220 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
10222 2011-04-11 Kai Tietz <ktietz@redhat.com>
10226 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
10227 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
10229 (ix86_is_msabi_thiscall): Removed.
10230 (ix86_is_type_thiscall): Likewise.
10231 (ix86_get_callcvt): New function.
10232 (ix86_comp_type_attributes): Simplify check.
10233 (ix86_function_regparm): Use ix86_get_callcvt for calling
10234 convention attribute checks.
10235 (ix86_return_pops_args): Likewise.
10236 (ix86_static_chain): Likewise.
10237 (x86_this_parameter): Likewise.
10238 (x86_output_mi_thunk): Likewise.
10239 (ix86_function_type_abi): Optimize check for types without attributes.
10240 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
10241 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
10242 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
10244 (IX86_BASE_CALLCVT): Helper macro.
10245 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10246 Use ix86_get_callcvt for calling convention attribute checks and avoid
10247 symbol-decoration for stdcall in TARGET_RTD case.
10248 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
10250 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
10253 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
10255 * config/i386/sse.md (VI_128): New mode iterator.
10256 (VI12_128): Rename from SSEMODE12.
10257 (VI14_128): Rename from SSEMODE14.
10258 (VI124_128): New mode iterator.
10259 (VI24_128): Rename from SSEMODE248.
10260 (VI248_128): Rename from SSEMODE248.
10261 (SSEMODE124C8): Remove.
10262 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10263 (*sse2_<plusminus_insn><mode>3): Merge with
10264 *avx_<plusminus_insn><mode>3.
10265 (*mulv8hi3): Merge with *avx_mulv8hi3.
10266 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
10267 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
10268 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
10269 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
10270 (ashr<mode>3): Merge with *avx_ashr<mode>3.
10271 (lshr<mode>3): Merge with *avx_lshr<mode>3.
10272 (ashl<mode>3): Merge with *avx_ashl<mode>3.
10273 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
10274 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
10275 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10276 (*<smaxmin:code>v8hi3): Ditto.
10277 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
10278 (*<smaxmin:code>v16qi3): Ditto.
10279 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
10280 (*sse2_eq<mode>3): Ditto.
10281 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
10282 (*sse2_gt<mode>3): Ditto.
10283 (vcondv2di): Split out of vcond<mode>.
10284 (vconduv2di): Split out of vcondu<mode>.
10286 2011-04-11 Richard Guenther <rguenther@suse.de>
10288 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
10289 before calling tree_low_cst.
10291 2011-04-11 Richard Guenther <rguenther@suse.de>
10293 * stor-layout.c (layout_type): Compute all array index size operations
10294 in the original type.
10295 (initialize_sizetypes): Add comment.
10296 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
10298 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10300 * common.opt (Tbss=, Tdata=, Ttext=): New options.
10302 2011-04-11 Martin Jambor <mjambor@suse.cz>
10304 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
10305 of cgraph_node, handle NULL return value.
10306 (cgraph_global_info): Likewise.
10307 (cgraph_rtl_info): Likewise.
10308 * tree-inline.c (estimate_num_insns): Likewise.
10309 * gimplify.c (unshare_body): Likewise.
10310 (unvisit_body): Likewise.
10311 (gimplify_body): Likewise.
10312 * predict.c (optimize_function_for_size_p): Likewise.
10313 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10314 (call_may_clobber_ref_p_1): Likewise.
10315 * varasm.c (function_section_1): Likewise.
10316 (assemble_start_function): Likewise.
10318 2011-04-11 Martin Jambor <mjambor@suse.cz>
10320 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
10322 * final.c (rest_of_clean_state): Likewise.
10323 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
10324 * passes.c (pass_init_dump_file): Likewise.
10325 (execute_all_ipa_transforms): Likewise.
10326 (function_called_by_processed_nodes_p): Likewise.
10327 * predict.c (maybe_hot_frequency_p): Likewise.
10328 (probably_never_executed_bb_p): Likewise.
10329 (compute_function_frequency): Likewise.
10330 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
10331 (unnest_nesting_tree_1): Likewise.
10332 (lower_nested_functions): Likewise.
10333 * tree-optimize.c (execute_fixup_cfg): Likewise.
10334 (tree_rest_of_compilation): Likewise.
10335 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
10336 * tree-sra.c (ipa_early_sra): Likewise.
10337 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10338 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
10339 * ipa.c (record_cdtor_fn): Likewise.
10340 * ipa-inline.c (cgraph_early_inlining): Likewise.
10341 (compute_inline_parameters_for_current): Likewise.
10342 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10343 * ipa-pure-const.c (local_pure_const): Likewise.
10344 * ipa-split.c (split_function): Likewise.
10345 (execute_split_functions): Likewise.
10346 * cgraphbuild.c (build_cgraph_edges): Likewise.
10347 (rebuild_cgraph_edges): Likewise.
10348 (cgraph_rebuild_references): Likewise.
10349 (remove_cgraph_callee_edges): Likewise.
10350 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
10351 (verify_cgraph_node): Likewise.
10352 (cgraph_analyze_functions): Likewise.
10353 (cgraph_preserve_function_body_p): Likewise.
10354 (save_inline_function_body): Likewise.
10355 (save_inline_function_body): Likewise.
10356 * tree-inline.c (copy_bb): Likewise.
10357 (optimize_inline_calls): Likewise.
10359 2011-04-11 Martin Jambor <mjambor@suse.cz>
10361 PR tree-optimization/48195
10362 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
10363 ipa_check_create_edge_args.
10364 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
10365 ipa_check_create_edge_args.
10366 * ipa-inline.c (inline_generate_summary): Do not call
10367 ipa_check_create_node_params and ipa_check_create_edge_args.
10368 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
10369 ipa_check_create_edge_args.
10371 2011-04-09 Anatoly Sokolov <aesok@post.ru>
10373 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
10375 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10376 * function.c (record_hard_reg_sets): Likewise.
10377 * ira.c (compute_regs_asm_clobbered): Likewise.
10378 * sched-deps.c (sched_analyze_1): Likewise.
10379 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
10381 2011-04-09 Xinliang David Li <davidxl@google.com>
10383 PR tree-optimization/PR48484
10384 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
10385 has_valid_pred lazily
10387 2011-04-09 Duncan Sands <baldrick@free.fr>
10389 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
10391 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
10393 * combine.c (combine_validate_cost): Adjust comments. Set registered
10394 cost of I0 to zero at the end, if any.
10396 2011-04-08 Xinliang David Li <davidxl@google.com>
10398 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
10399 to insane profile data.
10401 2011-04-08 Xinliang David Li <davidxl@google.com>
10403 * ipa-cp.c (ipcp_update_profiling): Correct
10404 negative scale factor due to insane profile data.
10406 2011-04-08 Xinliang David Li <davidxl@google.com>
10408 * final.c (dump_basic_block_info): New function.
10409 (final): Dump basic block.
10410 (final_scan_insn): Remove old dump.
10412 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
10415 * config.gcc (i386-*-freebsd): Disable unwind table generation for
10418 2011-04-08 Michael Matz <matz@suse.de>
10420 PR middle-end/48389
10421 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
10423 (rebuild_jump_labels): Call rebuild_jump_labels_1.
10424 * rtl.h (rebuild_jump_labels_chain): Declare.
10425 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
10426 insns inserted on edges.
10428 2011-04-08 Joseph Myers <joseph@codesourcery.com>
10430 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
10431 * config/arm/arm-arches.def: New.
10432 * config/arm/arm-opts.h: New.
10433 * config/arm/genopt.sh: New.
10434 * config/arm/arm-tables.opt: New (generated).
10435 * config/arm/arm.c (arm_handle_option, arm_target_help,
10436 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
10437 (all_architectures): Get most table contents from arm-arches.def.
10438 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
10439 arm_selected_tune here.
10440 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
10441 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
10442 (march=, mcpu=, mtune=): Use Enum and Var.
10443 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
10444 (arm.o): Update dependencies.
10446 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
10448 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
10450 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
10451 (write_typed_alloc_defns): Likewise.
10452 (main): Calls write_typed_alloc_defns with output_header.
10454 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
10456 PR inline-asm/48435
10457 * ira-color.c (setup_profitable_hard_regs): Add comments.
10458 Don't take prohibited hard regs into account.
10459 (setup_conflict_profitable_regs): Rename to
10460 get_conflict_profitable_regs.
10461 (check_hard_reg_p): Check prohibited hard regs.
10463 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
10465 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
10466 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
10467 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
10469 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10472 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
10473 move from floating point to shift amount register.
10474 (emit_move_sequence): Remove secondary reload support for floating
10475 point to shift amount amount register copies.
10476 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
10477 amount register copies.
10478 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
10479 register, return false if mode isn't a scalar integer mode.
10480 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
10482 2011-04-08 Richard Guenther <rguenther@suse.de>
10484 * gimple.c (gimple_call_flags): Remove kludge.
10486 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10488 * sel-sched.c (sel_region_init): Move call to
10489 sel_setup_region_sched_flags after setup_current_loop_nest.
10491 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
10493 PR rtl-optimization/48272
10494 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
10495 init_insn_reg_pressure_info. Adjust a caller.
10496 * sched-int.h (init_insn_reg_pressure_info): Declare.
10497 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
10498 when sched-pressure is enabled.
10500 2011-04-08 Richard Guenther <rguenther@suse.de>
10502 * gimple.c (gimple_set_modified): Do not queue calls to
10503 MODIFIED_NORETURN_CALLS here ...
10504 * tree-ssa-operands.c (update_stmt_operands): ... but here.
10506 2011-04-08 Richard Guenther <rguenther@suse.de>
10509 * toplev.c (lang_dependent_init): Do not open asm_out_file
10510 in WPA mode, nor perform debug machinery initialization.
10511 (finalize): Do not unlink asm_out_file in WPA mode.
10513 2011-04-08 Richard Guenther <rguenther@suse.de>
10515 * gimple.h (gimple_call_fntype): New function.
10516 (gimple_call_return_type): Use it.
10517 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
10518 * gimple-low.c (gimple_check_call_args): Likewise.
10519 * gimple.c (gimple_call_flags): Likewise.
10520 (gimple_call_arg_flags): Likewise.
10521 (gimple_call_return_flags): Likewise.
10522 * tree-cfg.c (verify_gimple_call): Likewise.
10523 (do_warn_unused_result): Likewise.
10524 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
10525 * value-prof.c (gimple_ic_transform): Fix fndecl check.
10527 2011-04-08 Dmitry Melnik <dm@ispras.ru>
10529 PR rtl-optimization/48235
10530 * sel-sched.c (code_motion_process_successors): Recompute the last
10531 insn in basic block if control flow changed.
10532 (code_motion_path_driver): Ditto. Recompute the first insn as well.
10533 Update condition for ilist_remove.
10535 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10537 PR rtl-optimization/48302
10538 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
10539 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
10540 it to record added preheader blocks.
10541 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
10542 on to sel_add_loop_preheaders.
10543 (sel_region_init): Move call to setup_current_loop_nest after
10546 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10549 * cfgloop.h (loop_has_exit_edges): New helper.
10550 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
10552 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
10553 that have no exit edges.
10555 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10557 PR rtl-optimization/48442
10558 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
10559 all callers. Adjust assert.
10561 2011-04-08 Jakub Jelinek <jakub@redhat.com>
10563 PR tree-optimization/48377
10564 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
10565 is_packed to true even for types with smaller TYPE_ALIGN than
10568 2011-04-08 Richard Guenther <rguenther@suse.de>
10571 * doc/tm.texi: Re-generate.
10573 2011-04-08 Wei Guozhi <carrot@google.com>
10576 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
10577 * config/arm/arm.c (arm_attr_length_push_multi): New function.
10578 * config/arm/arm.md (*push_multi): Change the length computation to
10581 2011-04-08 Anatoly Sokolov <aesok@post.ru>
10583 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
10584 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
10585 * doc/tm.texi: Regenerate.
10586 * system.h (ASM_OUTPUT_BSS): Poison.
10587 * varasm.c (asm_output_bss): Remove function.
10588 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
10590 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
10591 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
10592 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
10593 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10595 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10597 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10599 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
10601 2011-04-07 Joseph Myers <joseph@codesourcery.com>
10603 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
10606 2011-04-07 Joseph Myers <joseph@codesourcery.com>
10608 * config/m68k/m68k.c (m68k_handle_option): Don't handle
10609 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
10610 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
10612 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10613 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
10614 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
10615 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
10616 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
10617 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
10618 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10619 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
10620 options. Don't map other m68k options manually. Don't handle
10621 old-style options as canonical.
10622 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10623 * doc/install.texi (m68k-*-*): Document binutils version requirement.
10625 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
10627 * basic-block.h (force_nonfallthru): Move to...
10628 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
10629 (force_nonfallthru): ...here.
10630 * cfghooks.c (force_nonfallthru): New function.
10631 * cfgrtl.c (force_nonfallthru): Rename into...
10632 (rtl_force_nonfallthru): ...this.
10633 (commit_one_edge_insertion): Do not set AUX field.
10634 (commit_edge_insertions): Do not discover new basic blocks.
10635 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
10636 (cfg_layout_rtl_cfg_hooks): Likewise.
10637 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
10638 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
10639 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
10641 2011-04-07 Anatoly Sokolov <aesok@post.ru>
10643 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10646 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
10648 * config/i386/sse.md: Update copyright year.
10649 (avxcvtvecmode): Remove.
10650 (sse_movhlps): Merge with *avx_movhlps.
10651 (sse_movlhps): Merge with *avx_movlhps.
10652 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
10653 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
10654 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
10655 (sse_loadhps): Merge with *avx_loadhps.
10656 (sse_storelps): Merge with *avx_storelps.
10657 (sse_loadlps): Merge with *avx_loadlps.
10658 (sse_movss): Merge with *avx_movss.
10659 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
10660 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
10661 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
10662 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
10663 (vec_set<mode>_0): Ditto.
10664 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
10665 (sse4_1_insertps): Merge with *avx_insertps.
10666 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
10667 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
10668 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
10669 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
10670 (sse2_storehpd): Merge with *avx_storehpd.
10671 (sse2_loadhpd): Merge with *avx_loadhpd.
10672 (sse2_loadlpd): Merge with *avx_loadlpd.
10673 (sse2_movsd): Merge with *avx_movsd.
10674 (*vec_concatv2df): Merge with *vec_concatv2df.
10676 2011-04-07 Jakub Jelinek <jakub@redhat.com>
10679 * combine.c (combine_instructions): Add last_combined_insn,
10680 update it if insn is after it, pass it to all try_combine calls.
10681 (try_combine): Add last_combined_insn parameter, pass it instead of
10682 i3 to propagate_for_debug.
10684 2011-04-07 Nick Clifton <nickc@redhat.com>
10686 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
10687 to handle MDR <-> data register transfers.
10688 (movhi_internal): Likewise.
10690 2011-04-07 Alan Modra <amodra@gmail.com>
10692 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
10693 previous stack info.
10695 2011-04-07 Tom de Vries <tom@codesourcery.com>
10698 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
10699 flow_find_cross_jump. Swap variables to implement backward replacement.
10700 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
10702 2011-04-07 Tom de Vries <tom@codesourcery.com>
10705 * cfgcleanup.c (walk_to_nondebug_insn): New function.
10706 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
10708 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
10709 src1 or src2. Redirect edges to the last basic block. Update
10710 frequency and count on multiple basic blocks in case of fallthru.
10712 2011-04-07 Tom de Vries <tom@codesourcery.com>
10715 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
10717 (old_insns_match_p): Change return type. Replace return false/true
10718 with return dir_none/dir_both. Use can_replace_by.
10719 (flow_find_cross_jump): Add dir_p parameter. Init replacement
10720 direction from dir_p. Register replacement direction in dir, last_dir
10721 and afterlast_dir. Handle new return type of old_insns_match_p using
10722 merge_dir. Return replacement direction in dir_p.
10723 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
10724 return type of old_insns_match_p.
10725 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
10726 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
10727 flow_find_cross_jump.
10728 * basic-block.h (enum replace_direction): New type.
10729 (flow_find_cross_jump): Add parameter to declaration.
10731 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
10733 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
10734 (AVXMODEDCVTPS2DQ): Ditto.
10735 (VEC_FLOAT_MODE): Ditto.
10736 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
10737 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10738 (<any_logic:code><mode>3): Use VF mode iterator.
10739 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
10740 Use VF mode iterator.
10741 (copysign<mode>3): Use VF mode iterator.
10742 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
10743 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10744 (*<any_logic:code><MODEF:mode>3): Merge with
10745 *avx_<any_logic:code><MODEF:mode>3.
10746 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
10747 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
10748 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
10749 (avx_cvtdq2ps<avxmodesuffix>): Remove.
10750 (sse2_cvtdq2ps): Use %v modifier.
10751 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
10752 (avx_cvtps2dq<avxmodesuffix>): Remove.
10753 (sse2_cvtps2dq): Use %v modifier.
10754 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
10755 (avx_cvttps2dq<avxmodesuffix>): Remove.
10756 (sse2_cvttps2dq): Use %v modifier.
10757 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
10758 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
10759 (sse2_cvtsd2siq): Fix insn template.
10760 (sse2_cvtsd2siq_2): Ditto.
10761 (sse2_cvttsd2siq): Ditto.
10762 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
10763 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
10765 2011-04-06 Joseph Myers <joseph@codesourcery.com>
10767 * gcov-io.c: Use GCC Runtime Library Exception.
10769 2011-04-06 Jakub Jelinek <jakub@redhat.com>
10772 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
10773 as base_reg whatever register reg has been eliminated to, instead
10774 of hardcoding STACK_POINTER_REGNUM.
10776 2011-04-06 Joseph Myers <joseph@codesourcery.com>
10778 * doc/tm.texi.in: Document C target hooks as separate from general
10780 * doc/tm.texi: Regenerate.
10781 * genhooks.c (struct hook_desc): Add docname field.
10782 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
10784 (hook_array): Include c-target.def.
10785 (emit_documentation): Use docname field in output.
10786 (emit_init_macros): Take docname argument. Only emit definitions
10787 for hooks matching docname.
10788 (main): Expect additional arguments in all cases. Pass argument
10789 to emit_init_macros.
10790 * target.def: Move initial macro definitions and comments to
10791 target-hooks-macros.h.
10792 (gcc_targetcm): Move to c-family/c-target.def.
10793 * target.h (targetcm): Move declaration to c-family/c-target.h.
10794 * targhooks.c (default_handle_c_option): Move to
10796 * targhooks.h (default_handle_c_option): Move declaration to
10797 c-family/c-common.h.
10798 * target-hooks-macros.h: New file.
10799 * config.gcc (target_has_targetcm): Define and use to add to
10800 c_target_objs and cxx_target_objs.
10801 * config/default-c.c: New file.
10802 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
10803 of target.h and target-def.h.
10804 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
10805 (darwin_objc_construct_string, darwin_cfstring_ref_p,
10806 darwin_check_cfstring_format_arg): Make static.
10807 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10808 TARGET_STRING_OBJECT_REF_TYPE_P,
10809 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
10810 * config/darwin-protos.h (darwin_objc_construct_string,
10811 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
10813 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10814 TARGET_STRING_OBJECT_REF_TYPE_P,
10815 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
10816 * config/t-darwin (darwin-c.o): Update dependencies.
10817 * system.h (TARGET_HAS_TARGETCM): Poison.
10818 * Makefile.in (TARGET_H): Update.
10819 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
10820 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
10821 (default-c.o): New target.
10822 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
10823 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
10824 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
10826 (build/genhooks.o): Update dependencies.
10828 2011-04-06 Richard Guenther <rguenther@suse.de>
10830 * ipa-inline.c (enum inlining_mode): Remove.
10831 (cgraph_flatten): Use some other token.
10832 (cgraph_edge_early_inlinable_p): New function, split out from ...
10833 (cgraph_perform_always_inlining): New function, split out from ...
10834 (cgraph_decide_inlining_incrementally): ... here.
10835 (cgraph_mark_inline_edge): Adjust.
10836 (cgraph_early_inlining): Re-structure.
10837 (pass_early_inline): Require SSA form.
10839 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
10840 Julian Brown <julian@codesourcery.com>
10841 Mark Shinwell <shinwell@codesourcery.com>
10843 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
10844 LO_REGS only for Thumb-1.
10845 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
10846 be used in short instructions when optimising for size on Thumb-2.
10848 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
10850 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
10851 associated with user returns to be preserved.
10853 2011-04-06 Tristan Gingold <gingold@adacore.com>
10855 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
10856 symbol_queue_size, DBXOUT_DECR_NESTING,
10857 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
10858 if XCOFF_DEBUGGING_INFO.
10860 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
10862 * config/i386/i386.md (attribute isa): New.
10863 (attribute enabled): New.
10864 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
10865 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
10866 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
10867 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
10868 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
10869 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10870 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
10871 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
10873 * config/i386/sse.md (VF): New mode iterator.
10877 (SSEMODEF4): Remove.
10878 (attribute sse): Handle V8SF and V4DF modes.
10879 (<absneg:code><mode>2): Use VF mode iterator.
10880 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
10882 (<plusminus_insn><mode>3): Use VF mode iterator.
10883 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10884 Use VF mode iterator.
10885 (<sse>_vm<plusminus_insn><mode>3): Merge with
10886 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
10887 (mul<mode>3): Use VF mode iterator.
10888 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
10889 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
10891 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
10892 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
10893 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
10894 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
10896 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
10897 Use VF1 mode iterator.
10898 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
10899 (sqrt<VF2:mode>2): New expander.
10900 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
10901 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
10902 and sqrtv2df2. Use VF mode iterator.
10903 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
10905 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
10906 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
10907 Use VF1 mode iterator.
10908 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
10909 (<smaxmin:code><mode>3): Use VF mode iterator.
10910 (*<smaxmin:code><mode>3_finite): Merge with
10911 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
10912 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10913 (<sse>_vm<smaxmin:code><mode>2): Merge with
10914 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
10915 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
10917 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
10919 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
10920 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
10921 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
10922 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
10923 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
10925 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
10926 Use VF_128 mode iterator.
10927 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
10929 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
10930 VF_128 mode iterator.
10931 (vcond<mode>): Use VF mode iterator.
10932 * config/i386/predicates.md (sse_comparison_operator): Merge with
10933 avx_comparison_float_operator. Do not declare as special_predicate.
10934 * config/i386/i386.c (struct builtin_description): Update for renamed
10936 (ix86_expand_args_builtin): Ditto.
10937 (ix86_expand_sse_compare_mask): Ditto.
10939 2011-04-06 Richard Guenther <rguenther@suse.de>
10941 * tree-inline.c (estimate_num_insns): For calls simply account
10942 for all passed arguments and a used return value.
10944 2011-04-06 Richard Guenther <rguenther@suse.de>
10946 PR tree-optimization/47663
10947 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
10948 call_stmt_time fields.
10949 (cgraph_edge_inlinable_p): Declare.
10950 (cgraph_edge_recursive_p): New inline function.
10951 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
10952 (cgraph_clone_edge): Copy it.
10953 * ipa-inline.c (cgraph_estimate_edge_time): New function.
10954 Account for call stmt time.
10955 (cgraph_estimate_time_after_inlining): Take edge argument.
10956 (cgraph_estimate_edge_growth): Account call stmt size.
10957 (cgraph_estimate_size_after_inlining): Take edge argument.
10958 (cgraph_mark_inline_edge): Adjust.
10959 (cgraph_check_inline_limits): Likewise.
10960 (cgraph_recursive_inlining_p): Remove.
10961 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
10962 (cgraph_decide_recursive_inlining): Take edge argument and
10964 (cgraph_decide_inlining_of_small_functions): Do not avoid
10965 diags for recursive inlining here.
10966 (cgraph_flatten): Adjust.
10967 (cgraph_decide_inlining_incrementally): Likewise.
10968 (estimate_function_body_sizes): Remove call cost handling.
10969 (compute_inline_parameters): Initialize caller edge call costs.
10970 (cgraph_estimate_edge_growth): New function.
10971 (cgraph_estimate_growth): Use it.
10972 (cgraph_edge_badness): Likewise.
10973 (cgraph_check_inline_limits): Take an edge argument.
10974 (cgraph_decide_inlining_of_small_functions): Adjust.
10975 (cgraph_decide_inlining): Likewise.
10976 * tree-inline.c (estimate_num_insns): Only account for call
10977 return value if it is used.
10978 (expand_call_inline): Avoid diagnostics on recursive inline
10980 * lto-cgraph.c (lto_output_edge): Output edge call costs.
10981 (input_edge): Input edge call costs.
10983 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10985 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
10987 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
10989 * doc/invoke.texi (Spec Files): Fix typo.
10991 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
10993 * profile.c (branch_prob): Move declaration of local variable. Remove
10994 obsolete ??? comment. Expand the location explicitly instead of using
10995 the LOCATION_FILE and LOCATION_LINE macros.
10997 2011-04-06 Wei Guozhi <carrot@google.com>
11000 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
11001 (arm_cond_branch): Likewise.
11002 (arm_cond_branch_reversed): Likewise.
11003 (arm_jump): Likewise.
11004 (push_multi): Likewise.
11005 * config/arm/constraints.md (Py): New constraint.
11007 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11010 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
11012 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
11013 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
11014 #ifdef DBX_DEBUGGING_INFO.
11016 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
11019 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
11020 if old and new states differ.
11022 2011-04-05 Joseph Myers <joseph@codesourcery.com>
11024 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
11025 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
11026 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
11027 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
11028 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
11029 mcfv4e): Use Alias.
11030 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
11031 ColdFire options to -mcpu= options.
11033 2011-04-05 Jeff Law <law@redhat.com>
11035 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
11036 check if BB is a successor of LOOP->header and return
11037 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
11039 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
11041 * cprop.c (struct reg_use): Remove.
11042 (reg_use_table): Make an array of RTX.
11043 (find_used_regs, constprop_register, local_cprop_pass,
11044 bypass_block): Simplify users of reg_use_table.
11045 (cprop_insn): Likewise. Iterate if copy propagation succeeded
11046 on one of the uses found by find_used_regs.
11048 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11051 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
11054 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11056 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
11058 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
11060 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
11062 PR middle-end/48441
11063 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
11065 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11067 * combine.c: Include obstack.h.
11068 (struct insn_link): Define.
11069 (uid_log_links): Adjust type.
11070 (FOR_EACH_LOG_LINK): New macro.
11071 (insn_link_obstack): Declare.
11072 (alloc_insn_link): Define.
11073 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
11074 type of link variables.
11075 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
11076 (try_combine, record_promoted_values, distribute_notes): Likewise.
11077 (distribute_links): Likewise. Tweak prototype.
11078 (clear_log_links): Delete.
11079 (adjust_for_new_dest): Call alloc_insn_link.
11080 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
11082 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11084 * gcse.c (modify_mem_list): Convert to an array of VECs.
11085 (canon_modify_mem_list, compute_transp): Tweak formatting.
11086 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
11087 (load_killed_in_block_p): Likewise.
11088 (record_last_mem_set_info): Likewise.
11089 (clear_modify_mem_tables): Likewise.
11091 2011-04-05 Tom de Vries <tom@codesourcery.com>
11093 PR middle-end/48461
11094 * function.c (emit_use_return_register_into_block): Only define if
11097 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
11099 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
11101 2011-04-05 Joseph Myers <joseph@codesourcery.com>
11103 * config/rx/rx-opts.h: New.
11104 * config/rx/rx.c (rx_cpu_type): Remove.
11105 (rx_handle_option): Don't assert that global structures are in
11106 use. Access variables via opts pointer. Defer most handling of
11107 OPT_mint_register_. Use error_at.
11108 (rx_option_override): Handle deferred OPT_mint_register_ here.
11109 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
11110 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
11111 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
11112 (rx_cpu_types): New Enum and EnumValue entries.
11113 (mint-register=): Use Defer and use Var accordingly.
11115 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11117 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
11118 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
11119 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
11121 (debug_free_queue, debug_nesting, symbol_queue_index):
11123 * dbxout.c: ...to here. Make static.
11125 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11127 * gcse.c (modify_pair): Define. Define a VEC of it.
11128 (canon_modify_mem_list): Convert to an array of VECs.
11129 (free_insn_expr_list_list): Delete.
11130 (clear_modify_mem_tables): Call VEC_free instead.
11131 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
11132 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
11133 (canon_list_insert, compute_transp): Likewise.
11135 2011-04-05 Tom de Vries <tom@codesourcery.com>
11138 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
11141 2011-04-05 Tom de Vries <tom@codesourcery.com>
11144 * function.c (emit_use_return_register_into_block): New function.
11145 (thread_prologue_and_epilogue_insns): Use
11146 emit_use_return_register_into_block.
11148 2011-04-05 Tom de Vries <tom@codesourcery.com>
11151 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
11154 2011-04-05 Tom de Vries <tom@codesourcery.com>
11156 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
11158 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
11160 * config/arm/arm.md (define_constants for unspec): Replace with
11162 (define_constants for unspecv): Replace with define_c_enum.
11163 * config/arm/neon.md (define_constants for unspec): Replace with
11166 2011-04-04 Richard Henderson <rth@redhat.com>
11169 * dwarf2out.c (output_line_info): Always emit line info from
11170 at least one section.
11171 (dwarf2out_init): Create text_section_line_info here ...
11172 (set_cur_line_info_table): ... not here.
11174 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
11177 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
11180 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
11182 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
11184 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
11185 (expr_equiv_p): Remove.
11186 (insert_set_in_table): Look at <dest, src> pair instead of expr.
11187 (hash_scan_set): Update call to insert_set_in_table.
11188 (dump_hash_table): Dump <dest, src> pair.
11189 (lookup_set): Simplify. Lookup <dest, src> pair.
11190 (compute_transp): Remove, fold heavily simplified code into...
11191 (compute_local_properties): ...here. Expect COMP and TRANSP
11193 (find_avail_set): Take set directly from struct expr.
11194 (find_bypass-set): Likewise.
11195 (bypass_block): Likewise.
11196 (cprop_insn): Likewise. Remove redundant INSN_P test.
11198 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
11199 checks on form of COND from find_implicit_sets to here.
11200 (find_implicit_sets): Cleanup control flow. Split critical edges
11201 if it exposes implicit sets. Allocate/resize implicit_sets as
11203 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
11204 changed something. Run df_analyze after find_implicit_sets if any
11205 edges were split. Do not allocate implicit_sets here.
11207 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
11208 (gcse_obstack): Renamed to cprop_obstack.
11209 (GNEW, GNEWVEC, GNEWVAR): Remove.
11211 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
11212 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
11213 (gcse_alloc): Likewise, and rename to cprop_alloc.
11214 (alloc_gcse_men, free_gcse_mem): Remove.
11215 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
11216 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
11217 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
11219 * cprop.c (oprs_not_set_p): Remove.
11220 (mark_set, mark_clobber): Remove.
11221 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
11222 (reg_not_set_p): New function.
11223 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
11224 (cprop_insn): Likewise.
11225 (cprop_jump): Use FOR_EACH_EDGE.
11227 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
11230 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
11231 (rank_for_schedule): Use scheduled_insns vector instead of
11232 last_scheduled_insn.
11233 (ok_for_early_queue_removal): Likewise.
11234 (queue_to_ready): Search forward in nonscheduled_insns_begin if
11236 (choose_ready): Likewise.
11237 (commit_schedule): Use VEC_iterate.
11238 (schedule_block): Initialize nonscheduled_insns_begin. If we have
11239 a dbg_cnt, use it and ensure the first insn is in the ready list.
11240 (haifa_sched_init): Allocate scheduled_insns.
11241 (sched_extend_ready_list): Don't allocate it; reserve space.
11242 (haifa_sched_finish): Free it.
11244 2011-04-04 Joseph Myers <joseph@codesourcery.com>
11246 * optc-gen.awk: Always remove type from Variable entry before
11247 recording in var_seen.
11249 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
11251 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
11252 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
11253 call to tidy_fallthru_edges.
11255 2011-04-04 Joseph Myers <joseph@codesourcery.com>
11257 * doc/options.texi (ToLower): Document.
11258 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
11259 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
11260 * opts.h (cl_option): Add cl_tolower field.
11261 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
11262 arguments with lowercase strings.
11263 * config/rx/rx.opt (mcpu=): Add ToLower.
11264 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
11267 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11269 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
11271 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11273 * config/vax/vax.c: Include reload.h.
11275 2011-04-04 Anatoly Sokolov <aesok@post.ru>
11277 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
11278 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11279 (sparc_preferred_reload_class): New function.
11281 2011-04-04 Jakub Jelinek <jakub@redhat.com>
11284 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11285 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
11287 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
11289 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
11290 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
11292 2011-04-03 Anatoly Sokolov <aesok@post.ru>
11294 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
11295 (ASM_OUTPUT_ALIGNED_BSS): Define.
11297 2011-04-03 Michael Matz <matz@suse.de>
11299 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
11300 and next_slot members.
11301 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
11302 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
11303 (lto_streamer_cache_append): Declare.
11304 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
11305 unsigned index, remove offset parameter, ensure that we append
11306 or update existing entries.
11307 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
11308 parameter, update next_slot for append.
11309 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
11311 (lto_streamer_cache_insert_at): Likewise.
11312 (lto_streamer_cache_append): New function.
11313 (lto_streamer_cache_lookup): Use unsigned index.
11314 (lto_streamer_cache_get): Likewise.
11315 (lto_record_common_node): Don't test tree_node_can_be_shared.
11316 (preload_common_node): Adjust call to lto_streamer_cache_insert.
11317 (lto_streamer_cache_delete): Don't free offsets member.
11318 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
11319 (lto_output_string_with_length): Use lto_output_data_stream.
11320 (lto_output_tree_header): Remove ix parameter, don't write it.
11321 (lto_output_builtin_tree): Likewise.
11322 (lto_write_tree): Adjust callers to above, don't track and write
11323 offset, write unsigned index.
11324 (output_unreferenced_globals): Don't emit all global vars.
11325 (write_global_references): Use unsigned indices.
11326 (lto_output_decl_state_refs): Likewise.
11327 (write_symbol): Likewise.
11328 * lto-streamer-in.c (lto_input_chain): Move earlier.
11329 (input_function): Use unsigned index.
11330 (input_alias_pairs): Don't read and then ignore all global vars.
11331 (lto_materialize_tree): Remove ix_p parameter, don't read index,
11332 don't pass it back, use lto_streamer_cache_append.
11333 (lto_register_var_decl_in_symtab): Use unsigned index.
11334 (lto_register_function_decl_in_symtab): Likewise.
11335 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
11337 (lto_get_builtin_tree): Don't read index, use
11338 lto_streamer_cache_append.
11339 (lto_read_tree): Adjust call to lto_materialize_tree.
11341 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
11342 don't use function calls in arguments to MIN.
11344 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
11347 * gimple.c (gimple_type_leader_entry): Mark deletable.
11349 2011-04-03 Alan Modra <amodra@gmail.com>
11351 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
11353 2011-04-03 Michael Matz <matz@suse.de>
11355 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
11357 * tree.h (tree_decl_non_common.vindex): Adjust comment.
11359 2011-04-03 Michael Matz <matz@suse.de>
11361 * cgraphbuild.c (record_reference): Canonicalize constructor values.
11362 * gimple-fold.c (canonicalize_constructor_val): Accept being called
11363 without function context.
11364 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
11365 current_function_decl and cfun.
11367 2011-04-03 Michael Matz <matz@suse.de>
11369 * tree.c (decl_init_priority_insert): Don't create entry for
11371 (decl_fini_priority_insert): Ditto.
11372 (fields_compatible_p, find_compatible_field): Remove.
11373 * tree.h (fields_compatible_p, find_compatible_field): Remove.
11374 * gimple.c (gimple_compare_field_offset): Adjust block comment.
11376 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
11378 * combine.c (try_combine): Remove useless local variable.
11380 2011-04-03 Richard Guenther <rguenther@suse.de>
11381 Ira Rosen <ira.rosen@linaro.org>
11383 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
11384 non-variable offsets and compare the remaining bases of the two
11385 accesses instead of looking for exact same data-ref.
11387 2011-04-02 Kai Tietz <ktietz@redhat.com>
11390 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
11392 * i386.c (ix86_is_msabi_thiscall): New helper function.
11393 (ix86_is_type_thiscall): New helper function.
11394 (ix86_comp_type_attributes): Handle thiscall for method-functions
11396 (init_cumulative_args): Likewise.
11397 (find_drap_reg): Likewise.
11398 (ix86_static_chain): Likewise.
11399 (x86_this_parameter): Likewise.
11400 (x86_output_mi_thunk): Likewise.
11402 2011-04-01 Olivier Hainque <hainque@adacore.com>
11403 Nicolas Setton <setton@adacore.com>
11404 Eric Botcazou <ebotcazou@adacore.com>
11406 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
11407 (add_gnat_descriptive_type_attribute): New function.
11408 (gen_array_type_die): Call it.
11409 (gen_enumeration_type_die): Likewise.
11410 (gen_struct_or_union_type_die): Likewise.
11411 (modified_type_die): Likewise.
11412 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
11413 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
11414 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
11416 2011-04-01 Jakub Jelinek <jakub@redhat.com>
11419 * dwarf2out.c (resolve_addr): Don't call force_decl_die
11420 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
11423 2011-03-17 Richard Guenther <rguenther@suse.de>
11426 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11427 origin for decls in other ltrans units.
11428 (input_varpool_node): Likewise.
11430 2011-04-01 Jakub Jelinek <jakub@redhat.com>
11432 PR middle-end/48335
11433 * expr.c (expand_assignment): Handle all possibilities
11434 if TO_RTX is CONCAT.
11435 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
11436 (store_split_bit_field): If SUBREG_REG (op0) or
11437 op0 itself has smaller mode than word, return it
11438 for offset 0 and const0_rtx for out-of-bounds stores.
11439 If word is const0_rtx, skip it.
11441 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
11443 * config/h8300/h8300.c (print_operand_address): Rename to...
11444 (h8300_print_operand_address): ...this. Make static. Adjust comments.
11445 Call h8300_print_operand and h8300_print_operand_address instead of
11446 print_operand and print_operand_address. Declare.
11447 (print_operand): Renake to...
11448 (h8300_print_operand): ...this. Make static. Adjust comments.
11449 Call h8300_print_operand instead of print_operand. Declare.
11450 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
11451 (h8300_register_move_cost): Likewise.
11452 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
11453 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
11454 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
11455 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
11456 * config/h8300/h8300-protos.h (print_operand): Delete.
11457 (print_operand_address): Delete.
11459 2011-04-01 Richard Henderson <rth@redhat.com>
11462 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
11463 in strict mode before dwarf4. Re-order tests to early out
11464 before switching sections.
11466 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
11468 * config/h8300/constraints.md: New file.
11469 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
11470 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
11471 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
11472 * config/h8300/predicates.md (bit_operand): Likewise.
11473 (incdec_operand): Use satisfies_constraint_M and
11474 satisfies_constraint_O. Don't use C code block.
11475 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
11476 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
11477 (compute_mov_length): Use satisfies_constraint_G.
11478 (fix_bit_operand): Use satisfies_constraint_U.
11479 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
11480 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
11481 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
11482 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
11483 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
11484 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
11485 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11486 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
11487 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
11488 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
11489 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
11490 (EXTRA_MEMORY_CONSTRAINT): Delete.
11492 2011-04-01 Andrew Pinski <pinskia@gmail.com>
11493 Michael Meissner <meissner@linux.vnet.ibm.com>
11496 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
11497 operands, as per the specifications.
11499 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
11500 (vec_extract_evenv4sf): Ditto.
11501 (vec_extract_evenv8hi): Ditto.
11502 (vec_extract_evenv16qi): Ditto.
11503 (vec_extract_oddv4si): Ditto.
11505 2011-03-31 Mark Wielaard <mjw@redhat.com>
11507 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
11508 high_pc attribute if the CU has no associated code. Only output
11509 DW_AT_entry_pc for CU if not generating strict dwarf and
11512 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
11514 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
11515 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
11517 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
11518 * final.c (final_start_function): Call the new function rather
11519 than using a NULL argument for dwarf2out_frame_debug.
11521 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
11522 that contains the prologue.
11524 * haifa-sched.c (queue_insn): New arg REASON. All callers
11525 changed. Print it in debugging output.
11527 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
11529 * sched-ebb.c (begin_schedule_ready): Remove second argument.
11530 Split most of the code into...
11531 (begin_move_insn): ... here. New function.
11532 (ebb_sched_info): Add a pointer to it.
11533 * haifa-sched.c (scheduled_insns): New static variable.
11534 (sched_extend_ready_list): Allocate it.
11535 (schedule_block): Use it to record the order of scheduled insns.
11536 Perform RTL changes to move insns only after all scheduling
11537 decisions have been made.
11538 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
11539 begin_move_insn field.
11540 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
11541 * sched-int.h (struct haifa_sched_info): Remove second argument
11542 from begin_schedule_ready hook. Add new member begin_move_insn.
11543 * sched-rgn.c (begin_schedule_ready): Remove second argument.
11544 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
11546 * haifa-sched.c (prune_ready_list): New function, broken out of
11548 (schedule_block): Use it.
11550 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11552 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
11554 2011-04-01 Kai Tietz <ktietz@redhat.com>
11556 * config.gcc (*-*-mingw*): Allow as option the
11557 posix threading model.
11558 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
11559 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
11561 (CPP_SPEC): Add pthread/no-pthread handling.
11562 (LIB_SPEC): Likewise.
11563 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
11564 (LIB_SPEC): Likewise.
11565 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
11566 flag to pass -pthread option for shared libgcc build.
11567 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
11568 for shared libgcc build.
11569 * config/i386/t-mingw-pthread: New file.
11570 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
11571 New define to enable use of library pthread by default.
11572 * config/i386/mingw.opt (pthread): New driver option.
11573 (no-pthread): New driver option.
11574 * config/i386/cygming.opt: Make sure trailing empty line is retained.
11575 * config/i386/mingw-w64.opt: Likewise.
11577 2011-04-01 Gary Funck <gary@intrepid.com>
11579 * c-decl.c (grokdeclarator): Fix formatting.
11581 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11583 * expr.c (emit_block_move_via_movmem): Use n_generator_args
11584 instead of n_operands.
11585 (set_storage_via_setmem): Likewise.
11586 * optabs.c (maybe_gen_insn): Likewise.
11587 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
11588 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
11589 (mips_expand_builtin_direct): Likewise.
11590 * config/spu/spu.c (expand_builtin_args): Likewise.
11592 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11594 * recog.h (insn_data_d): Add n_generator_args.
11595 * genoutput.c (data): Likewise.
11596 (output_insn_data): Print it.
11597 (max_opno, num_dups): Delete.
11598 (scan_operands): Just fill in "d->operand[...]".
11599 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
11601 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11603 * gensupport.h (pattern_stats): New structure.
11604 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
11605 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
11606 (max_operand_1, max_operand_vec): Delete.
11607 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
11609 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
11611 * emit-rtl.c (emit_pattern_after_setloc): New function.
11612 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
11613 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
11614 (emit_pattern_after): New function.
11615 (emit_insn_after, emit_jump_insn_after): Call it.
11616 (emit_call_insn_after, emit_debug_insn_after): Likewise.
11617 (emit_pattern_before_setloc): New function.
11618 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
11619 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
11621 (emit_pattern_before): New function.
11622 (emit_insn_before, emit_jump_insn_before): Call it.
11623 (emit_call_insn_before, emit_debug_insn_before): Likewise.
11625 2011-03-31 Richard Henderson <rth@redhat.com>
11627 * dwarf2out.c (dw_separate_line_info_ref): Remove.
11628 (dw_separate_line_info_entry): Remove.
11629 (enum dw_line_info_opcode): New.
11630 (dw_line_info_entry): Use it.
11631 (dw_line_info_table, dw_line_info_table_p): New.
11632 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
11633 (line_info_table, line_info_label_num): Remove.
11634 (line_info_table_in_use): Remove.
11635 (separate_line_info_table): Remove.
11636 (separate_line_info_table_allocated): Remove.
11637 (separate_line_info_table_in_use): Remove.
11638 (LINE_INFO_TABLE_INCREMENT): Remove.
11639 (line_info_label_num): New.
11640 (cur_line_info_table): New.
11641 (text_section_line_info, cold_text_section_line_info): New.
11642 (separate_line_info): New.
11643 (SEPARATE_LINE_CODE_LABEL): Remove.
11644 (print_dwarf_line_table): Remove.
11645 (debug_dwarf): Don't dump it.
11646 (output_one_line_info_table): New.
11647 (output_line_info): Use it.
11648 (new_line_info_table): New.
11649 (set_cur_line_info_table): New.
11650 (dwarf2out_switch_text_section): Use it.
11651 (dwarf2out_begin_function): Likewise.
11652 (push_dw_line_info_entry): New.
11653 (dwarf2out_source_line): Rewrite for new line info tables.
11654 (dwarf2out_init): Remove dead initailizations.
11656 2011-03-31 Joseph Myers <joseph@codesourcery.com>
11658 * opts.h (cl_option): Add comments to fields. Add bit-fields for
11660 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
11661 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
11662 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
11663 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
11664 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
11665 * opt-functions.awk (flag_init, switch_bit_fields): New.
11666 (switch_flags): Don't handle flags moved to bit-fields. Don't
11667 generate CL_MISSING_OK or CL_SAVE.
11668 * optc-gen.awk: Update to generate bit-field output as well as
11670 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
11671 bit-field instead of CL_REJECT_DRIVER flag.
11672 * opts-common.c (generate_canonical_option,
11673 decode_cmdline_option): Use bit-fields instead of CL_* flags.
11674 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
11675 instead of CL_REJECT_NEGATIVE flag.
11676 * toplev.c (print_switch_values): Use cl_report bit-field instead
11679 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
11681 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
11682 a zero minimum index only if it is redundant.
11684 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
11686 PR rtl-optimization/48381
11687 * ira-color.c (assign_hard_reg): Use hard reg set intersection
11688 instead of ira_class_hard_reg_index for calculating conflicting
11691 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
11693 * cprop.c: Clean up hash table building.
11694 (reg_avail_info): Remove.
11695 (oprs_available_p): Remove.
11696 (record_last_reg_set_info): Remove.
11697 (record_last_set_info): Remove.
11698 (reg_available_p): New function.
11699 (gcse_constant_p): Do not treat unfolded conditions as constants.
11700 (make_set_regs_unavailable): New function.
11701 (hash_scan_set): Simplify with new reg_available_p.
11702 (compute_hash_table_work): Traverse insns stream only once.
11703 Do not compute reg_avail_info. Traverse insns in reverse order.
11704 Record implicit sets after recording explicit sets from the block.
11706 2011-03-31 Michael Matz <matz@suse.de>
11708 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
11710 2011-03-31 Anatoly Sokolov <aesok@post.ru>
11712 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
11713 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
11714 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11715 (h8300_mode_dependent_address_p): New function.
11716 (h8300_get_index): Make static.
11718 2011-03-31 Jeff Law <law@redhat.com>
11720 * reload1.c (elimination_effects): Fix typo in recent change.
11722 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
11723 typo potentially leading to null pointer dereference.
11725 * caller-save.c (new_saved_hard_reg): Eliminate return value.
11726 (setup_save_areas): Corresponding changes to avoid useless
11729 * jump.c (reversed_comparison_code_parts): Avoid successive return
11730 statements when REVERSE_CONDITION is defined.
11732 * expr.c (expand_assignment): Avoid useless assignments.
11733 (expand_expr_real_1): Likewise.
11734 (expand_expr_real_2): Avoid useless statements.
11736 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
11738 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11740 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
11743 * stmt.c (expand_expr_stmt): Avoid useless assignment.
11745 2011-03-31 Joseph Myers <joseph@codesourcery.com>
11748 * doc/tm.texi.in (TARGET_VERSION): Remove.
11749 * doc/tm.texi: Regenerate.
11750 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
11751 * collect2.c (main): Don't use TARGET_VERSION.
11752 * mips-tdump.c (main): Don't use TARGET_VERSION.
11753 * mips-tfile.c (main): Don't use TARGET_VERSION.
11754 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
11755 * config/rs6000/vxworksae.h: Remove.
11756 * config/alpha/alpha.h (TARGET_VERSION): Remove.
11757 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
11758 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
11759 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
11760 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11761 * config/arm/arm.h (TARGET_VERSION): Remove.
11762 * config/arm/coff.h (TARGET_VERSION): Remove.
11763 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
11764 * config/arm/elf.h (TARGET_VERSION): Remove.
11765 * config/arm/freebsd.h (TARGET_VERSION): Remove.
11766 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
11767 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
11768 * config/arm/pe.h (TARGET_VERSION): Remove.
11769 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
11770 * config/arm/semi.h (TARGET_VERSION): Remove.
11771 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
11772 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
11773 * config/arm/vxworks.h (TARGET_VERSION): Remove.
11774 * config/avr/avr.h (TARGET_VERSION): Remove.
11775 * config/bfin/bfin.h (TARGET_VERSION): Remove.
11776 * config/fr30/fr30.h (TARGET_VERSION): Remove.
11777 * config/frv/frv.h (TARGET_VERSION): Remove.
11778 * config/h8300/h8300.h (TARGET_VERSION): Remove.
11779 * config/i386/cygwin.h (TARGET_VERSION): Remove.
11780 * config/i386/darwin.h (TARGET_VERSION): Remove.
11781 * config/i386/darwin64.h (TARGET_VERSION): Remove.
11782 * config/i386/djgpp.h (TARGET_VERSION): Remove.
11783 * config/i386/freebsd.h (TARGET_VERSION): Remove.
11784 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
11785 * config/i386/gnu.h (TARGET_VERSION): Remove.
11786 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
11787 * config/i386/i386elf.h (TARGET_VERSION): Remove.
11788 * config/i386/linux.h (TARGET_VERSION): Remove.
11789 * config/i386/linux64.h (TARGET_VERSION): Remove.
11790 * config/i386/lynx.h (TARGET_VERSION): Remove.
11791 * config/i386/mingw32.h (TARGET_VERSION): Remove.
11792 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
11793 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
11794 * config/i386/netware.h (TARGET_VERSION): Remove.
11795 * config/i386/nto.h (TARGET_VERSION): Remove.
11796 * config/i386/openbsd.h (TARGET_VERSION): Remove.
11797 * config/i386/vxworks.h (TARGET_VERSION): Remove.
11798 * config/ia64/elf.h (TARGET_VERSION): Remove.
11799 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
11800 * config/ia64/hpux.h (TARGET_VERSION): Remove.
11801 * config/ia64/linux.h (TARGET_VERSION): Remove.
11802 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11803 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
11804 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11805 * config/lm32/lm32.h (TARGET_VERSION): Remove.
11806 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
11807 * config/m32c/m32c.h (TARGET_VERSION): Remove.
11808 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
11809 * config/m32r/m32r.h (TARGET_VERSION): Remove.
11810 * config/m68k/linux.h (TARGET_VERSION): Remove.
11811 * config/m68k/m68k.h (TARGET_VERSION): Remove.
11812 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
11813 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
11814 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
11815 * config/mep/mep.h (TARGET_VERSION): Remove.
11816 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
11817 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11818 * config/mips/iris6.h (MACHINE_TYPE): Remove.
11819 * config/mips/linux.h (TARGET_VERSION): Remove.
11820 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
11821 * config/mips/vxworks.h (TARGET_VERSION): Remove.
11822 * config/mmix/mmix.h (TARGET_VERSION): Remove.
11823 * config/mn10300/linux.h (TARGET_VERSION): Remove.
11824 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
11825 * config/pa/pa.h (TARGET_VERSION): Remove.
11826 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
11827 * config/picochip/picochip.h (TARGET_VERSION): Remove.
11828 * config/rs6000/aix.h (TARGET_VERSION): Remove.
11829 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
11830 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
11831 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
11832 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
11833 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
11834 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
11835 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
11836 * config/rs6000/linux.h (TARGET_VERSION): Remove.
11837 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
11838 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
11839 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
11840 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
11841 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
11842 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
11843 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
11844 * config/s390/linux.h (TARGET_VERSION): Remove.
11845 * config/s390/s390.h (TARGET_VERSION): Remove.
11846 * config/s390/tpf.h (TARGET_VERSION): Remove.
11847 * config/score/score.h (TARGET_VERSION): Remove.
11848 * config/sh/linux.h (TARGET_VERSION): Remove.
11849 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
11850 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
11851 * config/sh/sh.h (TARGET_VERSION): Remove.
11852 * config/sh/sh64.h (TARGET_VERSION): Remove.
11853 * config/sh/superh.h (TARGET_VERSION): Remove.
11854 * config/sh/vxworks.h (TARGET_VERSION): Remove.
11855 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
11856 * config/sparc/linux.h (TARGET_VERSION): Remove.
11857 * config/sparc/linux64.h (TARGET_VERSION): Remove.
11858 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
11859 TARGET_NAME32, TARGET_NAME): Remove.
11860 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
11861 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
11862 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
11863 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
11864 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
11865 * config/spu/spu.h (TARGET_VERSION): Remove.
11866 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
11867 * config/v850/v850.h (TARGET_VERSION): Remove.
11868 * config/vax/linux.h (TARGET_VERSION): Remove.
11869 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
11870 * config/xtensa/elf.h (TARGET_VERSION): Remove.
11871 * config/xtensa/linux.h (TARGET_VERSION): Remove.
11873 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
11876 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
11877 frame-related from frame-unrelated adjustments to the stack pointer.
11879 2011-03-31 Jakub Jelinek <jakub@redhat.com>
11881 * common.opt (fdebug-types-section): Move earlier.
11882 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
11884 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
11886 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
11889 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
11891 * tree.h (CASE_CHAIN): Define.
11892 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
11893 (gimple_redirect_edge_and_branch): Likewise.
11895 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
11897 PR middle-end/48367
11898 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
11901 2011-03-30 Jeff Law <law@redhat.com>
11903 * PR bootstrap/48371
11904 * reload1.c (reload): Fix botch in last change.
11906 * reload.h (struct reload): Fix typo introduced in last change.
11908 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11910 * config/arm/arm.opt (mhard-float, msoft-float): Mark
11911 Undocumented. Remove help text.
11912 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
11915 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11917 * doc/options.texi (NegativeAlias): Document.
11918 (Alias): Mention NegativeAlias.
11919 * opt-functions.awk: Handle NegativeAlias.
11920 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
11921 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
11922 * opts.h (CL_NEGATIVE_ALIAS): Define.
11923 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
11924 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
11926 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
11928 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11929 mno-spe and mno-isel instead of mspe=no and -misel=no.
11931 2011-03-29 Mark Wielaard <mjw@redhat.com>
11933 * common.opt (fdebug-types-section): New flag.
11934 * doc/invoke.texi: Document new -fno-debug-types-section flag.
11935 * dwarf2out.c (use_debug_types): New define.
11936 (struct die_struct): Mark die_id with GTY desc use_debug_types.
11937 (print_die): Guard output of type unit signatures using
11939 (build_abbrev_table): Replace assert of dwarf_version >= 4
11940 with assert on use_debug_types.
11941 (size_of_die): Likewise.
11942 (unmark_dies): Likewise.
11943 (value_format): Decide AT_ref_external form on use_debug_types.
11944 (output_die): Replace dwarf_version version check guard with
11945 use_debug_types where appropriate.
11946 (modified_type_die): Likewise.
11947 (gen_reference_type_die): Likewise.
11948 (dwarf2out_start_source_file): Likewise.
11949 (dwarf2out_end_source_file): Likewise.
11950 (prune_unused_types_walk_attribs): Likewise.
11951 (dwarf2out_finish): Likewise.
11953 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
11955 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
11957 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11959 PR rtl-optimization/48332
11960 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
11961 mode of input operand N and modeN to its actual mode.
11963 2011-03-30 Jeff Law <law@redhat.com>
11965 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
11966 define accessor macro.
11967 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
11968 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
11969 (reg_equiv_init): Likewise.
11970 (reg_equivs_size): New variable.
11971 (reg_equiv_init_size): Remove.
11972 (allocate_initial_values): Move prototype to here from....
11973 * integrate.h (allocate_initial_values): Remove prototype.
11974 * integrate.c: Include reload.h.
11975 (allocate_initial_values): Corresponding changes.
11976 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
11977 (fix_reg_equiv_init, no_equiv): Corresponding changes.
11978 (update_equiv_regs): Corresponding changes.
11979 (ira): Corresponding changes.
11980 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
11981 (push_secondary_reload): Corresponding changes.
11982 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
11983 (make_memloc, find_reloads_address): Corresponding changes.
11984 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
11985 (find_reloads_address_1): Corresponding changes.
11986 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
11987 (refers_to_regno_for_reload_p): Corresponding changes.
11988 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
11989 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
11990 * reload1.c: Include ggc.h.
11991 (grow_reg_equivs): New function.
11992 (replace_pseudos_in, reload): Corresponding changes.
11993 (calculate_needs_all_insns, alter_regs): Corresponding changes.
11994 (eliminate_regs_1, elimination_effects): Corresponding changes.
11995 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
11996 (delete_output_reload): Likewise.
11997 * caller-save.c (mark_referenced_regs): Corresponding changes.
11998 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
11999 * frv/predicates.md (frv_load_operand): Corresponding changes.
12000 * microblaze/microblaze.c (double_memory_operand): Corresponding
12002 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
12003 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
12004 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
12005 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
12006 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
12008 * pa/pa.c (emit_move_sequence): Corresponding changes.
12009 * vax/vax.c (nonindexed_address_p): Corresponding changes.
12011 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12014 * config/arm/arm.c (coproc_secondary_reload_class): Handle
12015 structure modes. Don't check neon_vector_mem_operand for
12016 vector or structure modes.
12018 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12019 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12022 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
12023 operand 1 and reshuffle the operands to match.
12024 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
12026 2011-03-30 Christian Schüler <cschueler@gmx.de>
12029 * config/c.opt (F): Added 'Driver' to -F option.
12032 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
12034 * config/darwin.opt: Added '-arch' option.
12036 2011-03-30 Nick Clifton <nickc@redhat.com>
12038 * config/rx/rx.md: Add peepholes and patterns to combine
12039 extending loads and simple arithmetic instructions.
12040 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
12041 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
12042 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
12043 modes to use pre-decrement and post-increment addressing.
12044 (rx_is_restricted_memory_address): Add range checking of REG+INT
12046 (rx_print_operand): Add support for %Q. Fix handling of %Q.
12047 (rx_memory_move_cost): Adjust cost of stores.
12048 (rx_adjust_insn_length): New function.
12050 2011-03-30 Jakub Jelinek <jakub@redhat.com>
12053 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12054 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
12055 matching arg00/arg01 types.
12057 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
12059 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
12060 last_location to UNKNOWN_LOCATION.
12062 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
12065 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
12068 2011-03-30 Joseph Myers <joseph@codesourcery.com>
12069 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12072 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
12073 Init(PROCESSOR_V7).
12074 (sparc_cpu): Likewise.
12075 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
12078 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12081 PR middle-end/48342
12082 PR rtl-optimization/48345
12083 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
12084 hard regs for given mode from profitable regs when doing secondary
12087 2011-03-29 Jeff Law <law@redhat.com>
12090 * tree-ssa-threadupdate.c (struct redirection_data): Remove
12091 do_not_duplicate field.
12092 (lookup_redirection_data): Corresponding changes.
12093 (create_duplicates): Always create a template block.
12094 (redirect_edges): Remove code which reused the original block
12095 when it was going to become unreachable code.
12096 (thread_block): Don't set do_not_duplicate field.
12098 2011-03-29 Joseph Myers <joseph@codesourcery.com>
12100 * lto-opts.c (register_user_option_p, lto_register_user_option):
12101 Make type argument unsigned.
12102 * lto-streamer.h (lto_register_user_option): Make type argument
12104 * opth-gen.awk: Make CL_* macros unsigned.
12105 * opts-common.c (find_opt): Make lang_mask argument unsigned.
12106 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
12107 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
12108 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
12109 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
12110 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
12111 (find_opt): Make lang_mask argument unsigned.
12113 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12115 PR rtl-optimization/48331
12116 PR rtl-optimization/48334
12117 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
12118 for any used algorithm.
12120 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12122 * ira-conflicts.c (build_object_conflicts): Add unused attribute
12125 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
12127 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
12128 (alpha_option_override): Don't set alpha_sr_alias_set.
12129 (emit_frame_store_1): Use gen_frame_mem rather than calling
12131 (alpha_expand_epilogue): Ditto.
12133 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
12135 PR tree-optimization/48290
12136 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
12137 vectorization, check that relevant phis in the basic block after
12138 the inner loop are really inner loop's exit phis.
12140 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
12143 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
12144 (cached_dw_loc_list_def): New structure.
12145 (cached_dw_loc_list): New typedef.
12146 (cached_dw_loc_list_table): New variable.
12147 (cached_dw_loc_list_table_hash): New function.
12148 (cached_dw_loc_list_table_eq): Likewise.
12149 (add_location_or_const_value_attribute): Take a bool cache_p.
12150 Cache the list when the parameter is true.
12151 (gen_formal_parameter_die): Update caller.
12152 (gen_variable_die): Likewise.
12153 (dwarf2out_finish): Likewise.
12154 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
12155 while generating debug info for the decl.
12156 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
12157 (dwarf2out_init): Initialize cached_dw_loc_list_table.
12158 (resolve_addr): Cache the result of resolving a chain of
12161 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
12163 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
12164 conflict object hard regset nodes have intersecting hard reg sets.
12166 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
12167 after regstat_init_n_sets_and_refs.
12169 * ira.c: Add more comments at the top.
12170 (setup_stack_reg_pressure_class, setup_pressure_classes):
12171 Add comments how we compute the register pressure classes.
12172 (setup_allocno_and_important_classes): Add more comments.
12173 (setup_class_translate_array, reorder_important_classes)
12174 (setup_reg_class_relations): Add comments.
12176 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
12179 * ira-color.c: Add 2011 to the Copyright line.
12180 (assign_hard_reg): Add more comments.
12181 (improve_allocation): Ditto.
12183 * ira-costs.c: Add 2011 to the Copyright line.
12184 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
12186 (setup_regno_cost_classes_by_mode): Ditto.
12188 Initial patches from ira-improv branch:
12190 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12192 * ira-build.c (ira_create_object): Remove initialization of
12193 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
12194 (ira_create_allocno): Remove initialization of
12195 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
12196 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
12197 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12198 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
12199 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
12200 Initialize ALLOCNO_ADD_DATA.
12201 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
12202 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
12204 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
12205 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
12207 * ira.c (ira_reallocate): Remove.
12208 (setup_pressure_classes): Call
12209 ira_init_register_move_cost_if_necessary. Use
12210 ira_register_move_cost instead of ira_get_register_move_cost.
12211 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
12212 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
12214 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
12215 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12216 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
12217 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
12218 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
12219 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
12221 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
12222 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12223 (struct allocno_color_data): New.
12224 (allocno_color_data_t): New typedef.
12225 (allocno_color_data): New definition.
12226 (ALLOCNO_COLOR_DATA): New macro.
12227 (struct object_color_data): New.
12228 (object_color_data_t): New typedef.
12229 (object_color_data): New definition.
12230 (OBJECT_COLOR_DATA): New macro.
12231 (update_copy_costs, calculate_allocno_spill_cost): Call
12232 ira_init_register_move_cost_if_necessary. Use
12233 ira_register_move_cost instead of ira_get_register_move_cost.
12234 (move_spill_restore, update_curr_costs): Ditto.
12235 (allocno_spill_priority): Make it inline.
12236 (color_pass): Allocate and free allocno_color_dat and object_color_data.
12237 (struct coalesce_data, coalesce_data_t): New.
12238 (allocno_coalesce_data): New definition.
12239 (ALLOCNO_COALESCE_DATA): New macro.
12240 (merge_allocnos, coalesced_allocno_conflict_p): Use
12241 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
12242 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
12243 (coalesce_allocnos): Ditto.
12244 (setup_coalesced_allocno_costs_and_nums): Ditto.
12245 (collect_spilled_coalesced_allocnos): Ditto.
12246 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
12247 (setup_slot_coalesced_allocno_live_ranges): Ditto.
12248 (coalesce_spill_slots): Ditto.
12249 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
12250 free allocno_coalesce_data.
12252 * ira-conflicts.c: Fix formatting.
12253 (process_regs_for_copy): Call
12254 ira_init_register_move_cost_if_necessary. Use
12255 ira_register_move_cost instead of ira_get_register_move_cost.
12256 (build_object_conflicts): Optimize.
12258 * ira-costs.c (record_reg_classes): Optimize. Call
12259 ira_init_register_move_cost_if_necessary. Use
12260 ira_register_move_cost, ira_may_move_in_cost, and
12261 ira_may_move_out_cost instead of ira_get_register_move_cost and
12262 ira_get_may_move_cost.
12263 (record_address_regs): Ditto.
12264 (scan_one_insn): Optimize.
12265 (find_costs_and_classes): Optimize.
12266 (process_bb_node_for_hard_reg_moves): Call
12267 ira_init_register_move_cost_if_necessary. Use
12268 ira_register_move_cost instead of ira_get_register_move_cost.
12270 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
12271 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
12272 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
12273 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
12275 (ira_initiate_emit_data, ira_finish_emit_data)
12276 (create_new_allocno): New functions.
12277 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
12278 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
12279 Use ira_register_move_cost instead of ira_get_register_move_cost.
12281 * ira-int.h: Fix some comments.
12282 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
12283 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12284 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
12285 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
12287 (struct ira_allocno): Make mode and aclass a bitfield. Move other
12288 bitfield after mode. Make hard_regno a short int. Make
12289 hard_regno short. Remove first_coalesced_allocno and
12290 next_coalesced_allocno. Move mem_optimized_dest_p,
12291 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
12292 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
12293 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
12294 temp, colorable_p. Add new member add_data.
12295 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
12296 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
12297 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
12298 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
12299 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
12300 (ALLOCNO_ADD_DATA): New macro.
12301 (ira_emit_data_t): New typedef.
12302 (struct ira_emit_data): New. Move mem_optimized_dest_p,
12303 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
12304 from struct ira_allocno.
12305 (ALLOCNO_EMIT_DATA): New macro.
12306 (ira_allocno_emit_data, allocno_emit_reg): New.
12307 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
12308 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
12309 (OBJECT_ADD_DATA): New macro.
12310 (ira_reallocate): Remove.
12311 (ira_initiate_emit_data, ira_finish_emit_data): New.
12312 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
12313 (ira_init_register_move_cost_if_necessary): New.
12314 (ira_object_conflict_iter_next): Merge into
12315 ira_object_conflict_iter_cond.
12316 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
12318 * ira-live.c (process_single_reg_class_operands): Call
12319 ira_init_register_move_cost_if_necessary. Use
12320 ira_register_move_cost instead of ira_get_register_move_cost.
12322 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12324 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
12326 * ira-costs.c: Fix formatting.
12327 (cost_classes, cost_classes_num): Remove.
12328 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
12329 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
12330 (cost_classes_del, cost_classes_htab): New.
12331 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
12332 (initiate_regno_cost_classes, setup_cost_classes): New.
12333 (setup_regno_cost_classes_by_aclass): New.
12334 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
12335 (record_reg_classes): Use regno_cost_classes instead of
12336 cost_classes. Move checking opposite operand up.
12337 (record_address_regs): Use regno_cost_classes
12338 instead of cost_classes.
12339 (scan_one_insn): Ditto. Use always general register.
12340 (print_allocno_costs): Use regno_cost_classes instead of
12342 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
12343 (find_costs_and_classes): Set up cost classes for each registers.
12344 Use also their mode for this. Use regno_cost_classes instead of
12346 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
12348 (free_ira_costs, ira_init_costs): Don't use cost_classes.
12349 (ira_costs, ira_set_pseudo_classes): Call
12350 initiate_regno_cost_classes and finish_regno_cost_classes.
12352 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
12354 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
12356 * target.def (ira_cover_classes): Remove.
12358 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
12360 * doc/tm.texi.in: Ditto.
12362 * ira-conflicts.c: Remove mentioning cover classes from the file.
12363 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
12364 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
12366 * targhooks.c (default_ira_cover_classes): Remove.
12368 * targhooks.h (default_ira_cover_classes): Ditto.
12370 * haifa-sched.c: Remove mentioning cover classes from the file.
12371 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12372 ira_pressure_classes and ira_pressure_classes_num instead of
12373 ira_reg_class_cover_size and ira_reg_class_cover. Use
12374 sched_regno_pressure_class instead of sched_regno_cover_class.
12375 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
12376 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12378 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
12379 classes from the file.
12380 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
12381 (struct object_hard_regs, struct object_hard_regs_node): New.
12382 (struct ira_object): New members profitable_hard_regs,
12383 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
12384 (struct ira_allocno): Rename cover_class to aclass. Rename
12385 cover_class_cost and updated_cover_class_cost to class_cost and
12386 updated_class_cost. Remove splay_removed_p and
12387 left_conflict_size. Add new members colorable_p.
12388 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
12389 (ALLOCNO_COLORABLE_P): New macro.
12390 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
12391 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
12392 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
12393 (OBJECT_...): Rename parameter C to O.
12394 (OBJECT_PROFITABLE_HARD_REGS): New macro.
12395 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
12396 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
12397 (struct target_ira_int): New members x_ira_max_memory_move_cost,
12398 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
12399 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
12400 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
12401 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
12402 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
12403 x_ira_reg_class_subunion.
12404 (ira_max_memory_move_cost, ira_max_register_move_cost)
12405 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
12406 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
12407 (ira_important_class_nums, ira_reg_class_superunion): New macros.
12408 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
12409 (ira_reg_class_union): Rename to ira_reg_class_subunion.
12410 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12411 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12412 (ira_tune_allocno_costs_and_cover_classes): Rename to
12413 ira_tune_allocno_costs.
12414 (ira_debug_hard_regs_forest): New.
12415 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
12416 (ira_object_conflict_iter_next): Fix comments.
12417 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
12418 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
12419 cover_class to aclass.
12420 (ira_allocate_and_accumulate_costs): Ditto.
12421 (ira_allocate_and_set_or_copy_costs): Ditto.
12423 * opts.c (decode_options): Remove ira_cover_class check.
12425 * ira-color.c: Remove mentioning cover classes from the file. Use
12426 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
12427 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
12428 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12429 (splay-tree.h): Remove include.
12430 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
12431 before copy_freq_compare_func.
12432 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
12433 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
12435 (hard_regs_roots, hard_regs_node_vec): Ditto.
12436 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
12437 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
12438 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
12439 (create_new_object_hard_regs_node): Ditto.
12440 (add_new_object_hard_regs_node_to_forest): Ditto.
12441 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
12442 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
12444 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
12445 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
12446 (remove_unused_object_hard_regs_nodes): Ditto.
12447 (enumerate_object_hard_regs_nodes): Ditto.
12448 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
12449 (object_hard_regs_subnode_t): Ditto.
12450 (struct object_hard_regs_subnode): Ditto.
12451 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
12452 (setup_object_hard_regs_subnode_index): Ditto.
12453 (get_object_hard_regs_subnodes_num): Ditto.
12454 (form_object_hard_regs_nodes_forest): Ditto.
12455 (finish_object_hard_regs_nodes_tree): Ditto.
12456 (finish_object_hard_regs_nodes_forest): Ditto.
12457 (allocnos_have_intersected_live_ranges_p): Rename to
12458 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
12459 (pseudos_have_intersected_live_ranges_p): Rename to
12460 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
12461 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
12462 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
12463 (update_copy_costs): Remove assert. Skip cost update if the hard
12464 reg does not belong the class.
12465 (assign_hard_reg): Process only profitable hard regs.
12466 (uncolorable_allocnos_num): Make it scalar.
12467 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12468 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
12469 and ira_reg_class_max_nregs.
12470 (bucket_allocno_compare_func): Check frequency first.
12471 (sort_bucket): Add compare function as a parameter.
12472 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
12473 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
12474 (push_allocno_to_stack): Rewrite for checking new allocno
12476 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
12477 (push_only_colorable): Pass new parameter to sort_bucket.
12478 (push_allocno_to_spill): Remove.
12479 (allocno_spill_priority_compare): Make it inline and rewrite.
12480 (splay_tree_allocate, splay_tree_free): Remove.
12481 (allocno_spill_sort_compare): New function.
12482 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
12483 build and use splay tree. Choose first allocno in uncolorable
12484 allocno bucket to spill. Remove setting spill cost.
12485 (all_conflicting_hard_regs): Remove.
12486 (setup_allocno_available_regs_num): Check only profitable hard
12487 regs. Print info about hard regs nodes.
12488 (setup_allocno_left_conflicts_size): Remove.
12489 (put_allocno_into_bucket): Don't call
12490 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
12491 (improve_allocation): New.
12492 (color_allocnos): Call setup_profitable_hard_regs,
12493 form_object_hard_regs_nodes_forest, improve_allocation,
12494 finish_object_hard_regs_nodes_forest. Setup spill cost.
12495 (print_loop_title): Use pressure classes.
12496 (color_allocnso): Ditto.
12497 (do_coloring): Remove allocation and freeing splay_tree_node_pool
12498 and allocnos_for_spilling.
12499 (ira_sort_regnos_for_alter_reg): Don't setup members
12500 {first,next}_coalesced_allocno.
12501 (color): Remove allocating and freeing removed_splay_allocno_vec.
12502 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
12503 prohibited_class_mode_regs.
12505 * ira-lives.c: Remove mentioning cover classes from the file. Fix
12507 (update_allocno_pressure_excess_length): Use pressure classes.
12508 (inc_register_pressure, dec_register_pressure): Check for pressure
12510 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
12511 pressure class. Use ira_reg_class_nregs instead of
12512 ira_reg_class_max_nregs.
12513 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
12514 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
12515 (single_reg_class): Use ira_reg_class_nregs instead of
12516 ira_reg_class_max_nregs.
12517 (process_bb_node_lives): Use pressure classes.
12519 * ira-emit.c: Remove mentioning cover classes from the file. Use
12520 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
12521 (change_loop): Use pressure classes.
12522 (modify_move_list): Call ira_set_allocno_class instead of
12523 ira_set_allocno_cover_class.
12525 * ira-build.c: Remove mentioning cover classes from the file. Use
12526 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
12527 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
12528 ALLOCNO_UPDATED_CLASS_COST instead of
12529 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12530 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
12531 (ira_create_allocno): Remove initialization of
12532 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
12533 ALLOCNO_COLORABLE_P.
12534 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12535 Update conflict regs for the objects.
12536 (create_cap_allocno): Remove assert. Don't propagate
12537 ALLOCNO_AVAILABLE_REGS_NUM.
12538 (ira_free_allocno_costs): New function.
12539 (finish_allocno): Change a part of code into call of
12540 ira_free_allocno_costs.
12541 (low_pressure_loop_node_p): Use pressure classes.
12542 (object_range_compare_func): Don't compare classes.
12543 (setup_min_max_conflict_allocno_ids): Ditto.
12545 * loop-invariant.c: Remove mentioning cover classes from the file.
12546 Use ira_pressure_classes and ira_pressure_classes_num instead of
12547 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
12548 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
12549 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12550 Use reg_allocno_class instead of reg_cover_class.
12551 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
12552 STACK_REG_COVER_CLASS.
12553 (get_regno_cover_class): Rename to get_regno_pressure_class.
12554 (move_loop_invariants): Initialize and finalize regstat.
12556 * ira.c: Remove mentioning cover classes from the file. Add
12557 comments about coloring without cover classes. Use ALLOCNO_CLASS
12558 instead of ALLOCNO_COVER_CLASS. Fix formatting.
12559 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
12560 setup_class_subset_and_memory_move_costs.
12561 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
12562 (setup_cover_and_important_classes): Rename to
12563 setup_allocno_and_important_classes.
12564 (setup_class_translate_array): New.
12565 (setup_class_translate): Call it for allocno and pressure classes.
12566 (cover_class_order): Rename to allocno_class_order.
12567 (comp_reg_classes_func): Use ira_allocno_class_translate instead
12568 of ira_class_translate.
12569 (reorder_important_classes): Set up ira_important_class_nums.
12570 (setup_reg_class_relations): Set up ira_reg_class_superunion.
12571 (print_class_cover): Rename to print_classes. Add parameter.
12572 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12573 Print pressure classes too.
12574 (find_reg_class_closure): Rename to find_reg_classes. Don't call
12575 setup_reg_subclasses.
12576 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12577 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12578 (setup_prohibited_class_mode_regs): Use
12579 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
12580 (clarify_prohibited_class_mode_regs): New function.
12581 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
12582 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
12583 (ira_init_once): Initialize them.
12584 (free_register_move_costs): Process them.
12585 (ira_init): Move calls of find_reg_classes and
12586 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
12587 Call clarify_prohibited_class_mode_regs.
12588 (ira_no_alloc_reg): Remove.
12589 (too_high_register_pressure_p): Use pressure classes.
12591 * sched-deps.c: Remove mentioning cover classes from the file.
12592 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12593 ira_pressure_classes and ira_pressure_classes_num instead of
12594 ira_reg_class_cover_size and ira_reg_class_cover.
12595 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
12596 sched_regno_pressure_class instead of sched_regno_cover_class.
12597 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
12598 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12600 * ira.h: Add 2010 to Copyright.
12601 (ira_no_alloc_reg): Remove external.
12602 (struct target_ira): Rename x_ira_hard_regno_cover_class,
12603 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
12604 x_ira_class_translate to x_ira_hard_regno_allocno_class,
12605 x_ira_allocno_classes_num, x_ira_allocno_classes, and
12606 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
12607 x_ira_pressure_classes, x_ira_pressure_class_translate, and
12608 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
12609 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
12610 x_ira_no_alloc_regs.
12611 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12612 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
12613 ira_allocno_classes_num and ira_allocno_classes.
12614 (ira_class_translate): Rename to ira_allocno_class_translate.
12615 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
12616 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
12617 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12618 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
12619 (ira_no_alloc_regs): New.
12621 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
12622 classes from the file. Use ALLOCNO_CLASS instead of
12623 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
12624 ALLOCNO_COVER_CLASS_COST.
12625 (regno_cover_class): Rename to regno_aclass.
12626 (record_reg_classes): Use ira_reg_class_subunion instead of
12627 ira_reg_class_union.
12628 (record_address_regs): Check overflow.
12629 (scan_one_insn): Ditto.
12630 (print_allocno_costs): Print total mem cost fore regional allocation.
12631 (print_pseudo_costs): Use REG_N_REFS.
12632 (find_costs_and_classes): Use classes intersected with them on the
12633 1st pass. Check overflow. Use ira_reg_class_subunion instead of
12634 ira_reg_class_union. Use ira_allocno_class_translate and
12635 regno_aclass instead of ira_class_translate and regno_cover_class.
12636 Modify code for finding regno_aclass. Setup preferred classes for
12638 (setup_allocno_cover_class_and_costs): Rename to
12639 setup_allocno_class_and_costs. Use regno_aclass instead of
12640 regno_cover_class. Use ira_set_allocno_class instead of
12641 ira_set_allocno_cover_class.
12642 (init_costs, finish_costs): Use regno_aclass instead of
12644 (ira_costs): Use setup_allocno_class_and_costs instead of
12645 setup_allocno_cover_class_and_costs.
12646 (ira_tune_allocno_costs_and_cover_classes): Rename to
12647 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
12648 by processing objects. Use ira_reg_class_max_nregs instead of
12649 ira_reg_class_nregs.
12651 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
12653 * sched-int.h: Remove mentioning cover classes from the file.
12654 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
12656 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
12657 classes from the file.
12658 (struct reg_pref): Rename coverclass into allocnoclass.
12659 (reg_cover_class): Rename to reg_allocno_class.
12661 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
12663 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
12665 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
12667 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
12669 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
12671 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
12673 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
12675 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
12677 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
12679 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
12681 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
12682 (i386_ira_cover_classes): Ditto.
12684 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
12686 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
12688 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
12690 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
12692 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
12694 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
12696 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
12697 (mips_ira_cover_classes): Ditto.
12699 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
12701 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
12703 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
12705 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
12707 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
12709 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
12710 (IRA_COVER_CLASSES_VSX): Ditto.
12712 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
12713 (rs6000_ira_cover_classes): Ditto.
12715 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
12717 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
12719 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
12721 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
12723 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
12725 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
12727 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
12729 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
12731 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
12733 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
12735 2011-03-29 Jakub Jelinek <jakub@redhat.com>
12738 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
12739 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
12740 dw_fde_unlikely_section_end_label, cold_in_std_section,
12741 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
12742 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
12744 (output_fde): Use dw_fde_second_{begin,end} if second is
12745 true, otherwise dw_fde_{begin,end}.
12746 (output_call_frame_info): Test dw_fde_second_begin != NULL
12747 instead of dw_fde_switched_sections.
12748 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
12749 fields, initialize new fields. Initialize in_std_section
12750 unconditionally from the first partition.
12751 (dwarf2out_end_epilogue): Don't override dw_fde_end when
12752 dw_fde_second_begin is non-NULL.
12753 (dwarf2out_switch_text_section): Stop initializing removed
12754 dw_fde_struct fields, initialize new fields, initialize
12755 also dw_fde_end here. Set dw_fde_switch_cfi even when
12756 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
12757 (struct var_loc_list_def): Add last_before_switch field.
12758 (arange_table, arange_table_allocated, arange_table_in_use,
12759 ARANGE_TABLE_INCREMENT, add_arange): Removed.
12760 (size_of_aranges): Count !in_std_section and !second_in_std_section
12761 hunks in fdes, instead of looking at arange_table_in_use.
12762 (output_aranges): Add aranges_length argument, don't call
12763 size_of_aranges here. Instead of using aranges_table*
12764 emit ranges for fdes when !in_std_section resp.
12765 !second_in_std_section.
12766 (dw_loc_list): Break ranges crossing section switch.
12767 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
12768 use dw_fde_second_end instead of dw_fde_end as end of last range.
12769 (gen_subprogram_die): Don't call add_arange. Use
12770 dw_fde_{begin,end} for first partition and if switched
12771 section dw_fde_second_{begin,end} for the second.
12772 (var_location_switch_text_section_1,
12773 var_location_switch_text_section): New functions.
12774 (dwarf2out_begin_function): Initialize cold_text_section even
12775 when function_section () isn't text_section.
12776 (prune_unused_types): Don't walk arange_table.
12777 (dwarf2out_finish): Don't needlessly test
12778 flag_reorder_blocks_and_partition when testing cold_text_section_used.
12779 If info_section_emitted, call size_of_aranges and if it indicates
12780 non-empty .debug_aranges, call output_aranges with the computed
12781 size. Stop using removed dw_fde_struct fields, use
12782 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
12786 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
12787 create ENTRY_VALUE if incoming or address of incoming's MEM
12789 * dwarf2out.c (mem_loc_descriptor): Don't emit
12790 DW_OP_GNU_entry_value of DW_OP_fbreg.
12791 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
12792 on ENTRY_VALUE is able to find the canonical parameter VALUE.
12793 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
12794 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
12796 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
12797 is a REG_P or MEM_P with REG_P address, compute hash directly
12798 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
12799 (preserve_only_constants): Don't clear VALUES forwaring
12800 ENTRY_VALUE to some other VALUE.
12802 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
12804 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
12805 instead of GEN_INT.
12807 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
12809 * cfgexpand.c (expand_gimple_cond): Always set the source location and
12810 block before expanding the statement.
12811 (expand_gimple_stmt_1): Likewise. Set them here...
12812 (expand_gimple_stmt): ...and not here. Tidy.
12813 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
12816 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
12818 * Makefile.in: New rule for cprop.o.
12819 * gcse.c: Move constant/copy propagation to cprop.c.
12820 (compute_local_properties): Only handle expression tables.
12821 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
12822 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
12823 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
12824 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
12825 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
12826 compute_cprop_data, find_used_regs, try_replace_reg,
12827 find_avail_set, cprop_jump, constprop_register, cprop_insn,
12828 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
12829 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
12830 find_bypass_set, reg_killed_on_edge, bypass_block,
12831 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
12832 execute_rtl_cprop, pass_rtl_cprop): Move to...
12833 * cprop.c: ...here. New file, constant/copy propagation for RTL
12834 moved from gcse.c to here with minor cleanups in duplicated code.
12836 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
12838 * config/i386/i386.c (flag_opts): Fix a typo in
12839 -mavx256-split-unaligned-store.
12841 2011-03-28 Anatoly Sokolov <aesok@post.ru>
12843 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
12844 LIBCALL_VALUE): Remove macros.
12845 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12846 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12847 (h8300_function_value, h8300_libcall_value,
12848 h8300_function_value_regno_p): New functions.
12850 2011-03-28 Anatoly Sokolov <aesok@post.ru>
12852 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
12854 2011-03-28 Jeff Law <law@redhat.com>
12856 * tree-ssa-threadupdate.c (redirect_edges): Call
12857 create_edge_and_update_destination_phis as needed.
12858 (create_edge_and_update_destination_phis): Accept new BB argument.
12859 All callers updated.
12860 (thread_block): Do not update the profile when threading around
12861 intermediate blocks.
12862 (thread_single_edge): Likewise.
12863 (determine_bb_domination_status): If BB is not a successor of the
12864 loop header, return NONDOMINATING.
12865 (register_jump_thread): Note when we register a jump thread around
12866 an intermediate block.
12867 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
12868 (thread_across_edge): Use it.
12870 2011-03-28 Tristan Gingold <gingold@adacore.com>
12872 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
12873 when for_return is 2.
12875 2011-03-28 Jeff Law <law@redhat.com>
12877 * var-tracking.c (canonicalize_values_mark): Delete unused
12879 (canonicalize_values_star, set_variable_part): Likewise.
12880 (clobber_variable_part, delete_variable_part): Likewise.
12882 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
12884 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
12886 2011-03-28 Martin Jambor <mjambor@suse.cz>
12888 * tree-inline.c (expand_call_inline): Do not check that destination
12890 (optimize_inline_calls): Assert that destination node is analyzed.
12891 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
12892 not call tree_lowering_passes.
12893 * cgraph.h (cgraph_analyze_function): Declare.
12894 * cgraphunit.c (cgraph_analyze_function): Make public.
12896 2011-03-28 Joseph Myers <joseph@codesourcery.com>
12898 * config/sparc/sparc-opts.h: New.
12899 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
12900 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
12901 (sparc_option_override): Store processor_type enumeration rather
12902 than string in cpu_default. Remove name and enumeration from
12903 cpu_table. Directly default -mcpu then default -mtune from -mcpu
12904 without using sparc_select. Use target_flags_explicit instead of
12906 * config/sparc/sparc.h (enum processor_type): Move to
12908 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
12909 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
12910 HeaderInclude entry.
12911 (mcpu=, mtune=): Use Var and Enum.
12912 (sparc_processor_type): New Enum and EnumValue entries.
12914 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12915 Iain Sandoe <iains@gcc.gnu.org>
12918 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
12920 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
12922 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
12923 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
12924 Insert new statements at it in lieu of STMT.
12925 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
12926 * tree-vect-stmts.c (vectorizable_store): Likewise.
12927 (vectorizable_load): Likewise.
12929 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
12931 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
12936 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12938 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
12939 unaligned 256bit load/store.
12940 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
12941 (*avx_movdqu<avxmodesuffix>): Likewise.
12943 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12946 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
12947 * config/pa/pa.md (iordi3): Use new predicate in expander.
12948 (iorsi3): Likewise.
12950 2011-03-27 Anatoly Sokolov <aesok@post.ru>
12952 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
12953 FUNCTION_VALUE_REGNO_P): Remove macros.
12954 * config/mips/mips-protos.h (mips_function_value): Remove.
12955 * config/mips/mips.c (mips_function_value): Rename to...
12956 (mips_function_value_1): ... this. Make static. Handle receiving
12957 the function type in 'fn_decl_or_type' argument.
12958 (mips_function_value, mips_libcall_value,
12959 mips_function_value_regno_p): New function.
12960 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12961 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12963 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12965 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
12966 and -mavx256-split-unaligned-store.
12967 (ix86_option_override_internal): Split 32-byte AVX unaligned
12968 load/store by default.
12969 (ix86_avx256_split_vector_move_misalign): New.
12970 (ix86_expand_vector_move_misalign): Use it.
12972 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
12973 -mavx256-split-unaligned-store.
12975 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
12976 256bit load/store. Generate unaligned store on misaligned memory
12978 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
12980 (*avx_movdqu<avxmodesuffix>): Likewise.
12982 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
12983 -mavx256-split-unaligned-store.
12985 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12988 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
12991 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12993 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
12994 opno arguments with an expand_operand. Use create_input_operand.
12995 (mips_prepare_builtin_target): Delete.
12996 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
12998 (mips_expand_builtin_direct): Use create_output_operand and
12999 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
13000 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
13001 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
13003 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
13005 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
13007 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
13009 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
13011 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
13012 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
13013 basic blocks and call commit_edge_insertions directly.
13014 (fixup_abnormal_edges): Move from here to...
13015 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
13016 on the edges and return whether some have actually been inserted.
13017 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
13020 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
13022 PR rtl-optimization/48144
13023 * sel-sched-ir.c (merge_history_vect): Factor out from ...
13024 (merge_expr_data): ... here.
13025 (av_set_intersect): Rename to av_set_code_motion_filter.
13026 Update all callers. Call merge_history_vect when an expression
13027 is found in both sets.
13028 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
13030 2011-03-26 Alan Modra <amodra@gmail.com>
13032 * config/rs6000/predicates.md (word_offset_memref_op): Handle
13033 cmodel medium addresses.
13034 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
13035 64-bit gpr loads and stores.
13036 (rs6000_secondary_reload_ppc64): New function.
13037 * config/rs6000/rs6000-protos.h: Declare it.
13038 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
13040 2011-03-26 Alan Modra <amodra@gmail.com>
13043 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
13044 GNU Go in traceback table.
13046 2011-03-25 Richard Henderson <rth@redhat.com>
13048 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
13049 if there are exactly 6 operands.
13050 (set_storage_via_setmem): Similarly.
13052 2011-03-25 Kai Tietz <ktietz@redhat.com>
13054 * collect2.c (write_c_file_stat): Handle backslash
13055 as right-hand directory separator.
13056 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
13057 checking just for slash.
13058 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
13059 instead of checking for trailing slash.
13060 * gcc.c (record_temp_file): Use filename_cmp instead
13062 (do_spec_1): Likewise.
13063 (replace_outfile_spec_function): Likewise.
13064 (is_directory): Use filename_ncmp instead of strncmp.
13065 (print_multilib_info): Likewise.
13066 * gcov.c (find_source): Use filename_cmp instead
13068 (make_gcov_file_name): Fix order of slash/backslash
13070 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
13071 (add_standard_paths): Likewise.
13072 * mips-tfile.c (saber_stop): Handle backslash.
13073 * prefix.c (update_path): Use filename_ncmp instead of
13075 * profile.c (output_location): Use filename_cmp instead
13077 * read-md.c (handle_toplevel_file): Handle backslash.
13078 * tlink.c (frob_extension): Likewise.
13079 * tree-cfg.c (same_line_p): Use filename_cmp instead of
13081 * tree-dump.c (dequeue_and_dump): Handle backslash.
13082 * tree.c (get_file_function_name): Likewise.
13083 * gengtype.c (read_input_list): Likewise.
13084 (get_file_realbasename): Likewise.
13085 (get_output_file_with_visibility): Use filename_cmp
13088 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
13090 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
13093 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
13095 * fold-const.c (expr_location_or): New function.
13096 (fold_truth_not_expr): Call it.
13098 2011-03-25 Jeff Law <law@redhat.com>
13100 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
13102 * c-family/c-common.c (def_fn_type): Likewise.
13103 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
13104 * emit-rtl.c (gen_rtvec): Likewise.
13105 * lto/lto-lang.c (def_fn_type): Likewise.
13107 2011-03-25 Richard Guenther <rguenther@suse.de>
13109 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
13110 also generate copies.
13111 (fini_copy_prop): Handle constant values properly.
13113 2011-03-25 Jakub Jelinek <jakub@redhat.com>
13115 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
13116 mode size instead of bitsize with DWARF2_ADDR_SIZE.
13117 (hash_loc_operands, compare_loc_operands): Handle
13118 DW_OP_GNU_entry_value.
13120 2011-03-25 Kai Tietz <ktietz@redhat.com>
13122 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
13123 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
13124 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
13125 comment and use macro TARGET_64BIT_MS_ABI instead.
13126 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
13127 and change default behavior for 32-bit MS_ABI.
13128 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
13129 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
13131 (ix86_cfun_abi): Likewise.
13132 (ix86_maybe_switch_abi): Adjust comment.
13133 (init_cumulative_args): Check for bit-ness in MS_ABI case.
13134 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
13135 instead of checking for SYSV_ABI.
13136 (ix86_nsaved_sseregs): Likewise.
13137 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
13139 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
13140 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
13141 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
13142 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
13143 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
13145 2011-03-25 Richard Guenther <rguenther@suse.de>
13147 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
13148 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13149 (verify_gimple): Remove.
13150 * tree-cfg.c (verify_gimple_call): Merge verification
13152 (verify_gimple_phi): Merge verification from verify_stmts.
13153 (verify_gimple_label): New function.
13154 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
13155 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13156 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
13157 (verify_stmts): Rename to verify_gimple_in_cfg.
13158 (verify_gimple_in_cfg): New function.
13159 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
13160 * tree-ssa.c (verify_ssa): Likewise.
13161 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
13163 2011-03-25 Richard Guenther <rguenther@suse.de>
13165 * passes.c (init_optimization_passes): Add FRE pass after
13168 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
13169 Andrew Stubbs <ams@codesourcery.com>
13171 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
13173 (arm_movdi_vfp_cortexa8): New pattern.
13174 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
13175 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
13176 instructions when tuning for Cortex-A8. Set attribute "arch".
13177 * config/arm/arm.md: Move include arm-tune.md up a bit.
13178 (define_attr "arch"): Add "onlya8" and "nota8" values.
13179 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
13181 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
13185 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13187 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13188 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13189 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13190 * passes.c (init_optimization_passes): Move
13191 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13193 2011-03-25 Kai Tietz <ktietz@redhat.com>
13195 * c-typeck.c (comptypes_internal): Replace target
13196 hook call of comp_type_attributes by version in tree.c file.
13197 * gimple.c (gimple_types_compatible_p_1): Likewise.
13198 * tree-ssa.c (useless_type_conversion_p): Likewise.
13199 * tree.c (build_type_attribute_qual_variant): Likewise.
13200 (attribute_value_equal): New static helper function.
13201 (comp_type_attributes): New function.
13202 (merge_attributes): Use attribute_value_equal for comparison.
13203 (attribute_list_contained): Likewise.
13204 * tree.h (comp_type_attributes): New prototype.
13206 2011-03-25 Richard Guenther <rguenther@suse.de>
13208 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
13209 of complex types at -O0.
13210 (verify_gimple_assign_binary): Likewise.
13211 (verify_gimple_assign_ternary): Likewise.
13213 2011-03-24 Mark Wielaard <mjw@redhat.com>
13215 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
13216 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
13218 2011-03-24 Mark Wielaard <mjw@redhat.com>
13221 * dwarf2out.c (output_abbrev_section): Only write table when
13222 abbrev_die_table_in_use > 1.
13224 2011-02-24 Richard Henderson <rth@redhat.com>
13226 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
13227 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
13228 (alpha_expand_unaligned_load_words): Use extql.
13229 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
13230 (emit_insxl): Handle all modes for consistency.
13232 2011-02-24 Richard Henderson <rth@redhat.com>
13234 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
13235 (alpha_expand_unaligned_load): Likewise.
13236 (alpha_expand_unaligned_store): Likewise.
13237 (alpha_expand_unaligned_load_words): Likewise.
13238 (alpha_expand_unaligned_store_words): Likewise.
13239 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
13240 (alpha_split_lock_test_and_set_12): Likewise.
13241 (print_operand, alpha_fold_builtin_extxx): Likewise.
13242 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
13243 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
13244 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
13245 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
13246 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
13247 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
13248 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
13249 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
13250 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
13251 (extwl, extll, extql): Similarly.
13252 (inswh, inslh, insqh): Similarly.
13253 (mskbl, mskwl, mskll, mskql): Similarly.
13254 (mskwh, msklh, mskqh): Similarly.
13256 2011-02-24 Richard Henderson <rth@redhat.com>
13258 * config/alpha/alpha.md (attribute isa): Add er, ner.
13259 (attribute enabled): Handle them.
13260 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
13262 2011-02-24 Richard Henderson <rth@redhat.com>
13264 * config/alpha/alpha.md (attribute isa): Add vms.
13265 (attribute enabled): Handle it.
13266 (*movsf): Merge *movsf_{nofix,fix,nofp}.
13267 (*movdf): Merge *movdf_{nofix,fix,nofp}.
13268 (*movtf): Rename from *movtf_internal for consistency.
13269 (*movsi): Merge with *movsi_nt_vms.
13270 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
13271 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
13272 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
13273 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
13275 2011-02-24 Richard Henderson <rth@redhat.com>
13277 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
13278 (extendqisi2, extendhisi2): Likewise.
13279 (extendqidi2): Simplify BWX/non-BWX expansions.
13280 (extendhidi2): Similarly.
13282 2011-02-24 Richard Henderson <rth@redhat.com>
13284 * config/alpha/alpha.md (attribute isa): New.
13285 (attribute enabled): New.
13286 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
13287 (zero_extendqisi2, zero_extendqidi2): Similarly.
13288 (zero_extendhisi2, zero_extendhidi2): Similarly.
13289 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
13291 2011-02-24 Richard Henderson <rth@redhat.com>
13293 * config/alpha/predicates.md (input_operand): Revert last change;
13294 update comment to mention 32-bit VMS rather than Windows.
13296 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13298 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13299 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13300 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13301 * passes.c (init_optimization_passes): Move
13302 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13304 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13306 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
13308 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
13310 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
13313 2011-03-24 Jakub Jelinek <jakub@redhat.com>
13316 * simplify-rtx.c (simplify_const_unary_operation): Call
13317 real_convert when changing mode class with FLOAT_EXTEND.
13319 2011-03-24 Nick Clifton <nickc@redhat.com>
13321 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
13322 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13323 * config/rx/rx.c (rx_option_override): Set align_jumps,
13324 align_loops and align_labels if not set by the user.
13325 (rx_align_for_label): New function.
13326 (rx_max_skip_for_label): New function.
13327 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
13328 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
13329 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
13330 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
13331 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
13333 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13335 PR rtl-optimization/48263
13336 * optabs.c (expand_binop_directly): Reinstate convert_modes code
13337 and original commutative_p handling. Use maybe_gen_insn.
13339 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13341 * reload.c (find_reloads_subreg_address): Add address_reloaded
13342 parameter and return true there if the full address has been
13344 (find_reloads_toplev): Pass address_reloaded flag.
13345 (find_reloads_address_1): Don't use address_reloaded parameter.
13347 2011-03-24 Jeff Law <law@redhat.com>
13349 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
13350 unused variable "ann".
13351 (remove_unused_locals): Likewise.
13353 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
13356 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
13359 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13361 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
13362 for invalid symbolic addresses.
13363 (s390_secondary_reload): Don't use s390_check_symref_alignment for
13366 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13368 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
13369 the argument in calls to fold_truth_not_expr.
13371 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13373 * tree.c (record_node_allocation_statistics): New function.
13374 (make_node_stat, copy_node_stat, build_string): Call it.
13375 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
13376 (build1_stat, build_omp_clause): Likewise.
13378 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13380 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
13383 2011-03-24 Richard Guenther <rguenther@suse.de>
13385 PR tree-optimization/48271
13386 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
13387 blocks that still exist.
13389 2011-03-24 Richard Guenther <rguenther@suse.de>
13391 PR tree-optimization/48270
13392 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
13393 not free datarefs before ddrs.
13395 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13397 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
13398 from the address built for a reference with variable offset.
13400 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
13403 * config/i386/i386.md (*movdf_internal_rex64): Do not split
13404 alternatives that can be handled with movq or movabsq insn.
13405 (*movdf_internal): Disable for !TARGET_64BIT.
13406 (*movdf_internal_nointeger): Ditto.
13407 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
13409 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13411 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13412 (FUNCTION_ARG_ADVANCE): Likewise.
13413 * tm.texi.in: Change references to them to hook references.
13414 * tm.texi: Regenerate.
13415 * targhooks.c (default_function_arg): Eliminate check for target macro.
13416 (default_function_incoming_arg): Likewise.
13417 (default_function_arg_advance): Likewise.
13418 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13419 (function_arg_advance): Likewise.
13420 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13422 2011-03-24 Richard Guenther <rguenther@suse.de>
13424 PR middle-end/48269
13425 * tree-object-size.c (addr_object_size): Do not double-account
13426 for MEM_REF offsets.
13428 2011-03-24 Diego Novillo <dnovillo@google.com>
13430 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
13431 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
13432 (lto_input_data_block): Move from lto-opts.c. Make extern.
13434 (lto_input_string): Rename from input_string. Make extern.
13436 * lto-streamer-out.c (lto_output_string_with_length): Rename from
13437 output_string_with_length.
13438 Output 0 to indicate a non-NULL string. Update all callers to
13440 (lto_output_string): Rename from output_string. Make extern.
13442 (lto_output_decl_state_streams): Make extern.
13443 (lto_output_decl_state_refs): Make extern.
13444 * lto-streamer.h (lto_input_string): Declare.
13445 (lto_input_data_block): Declare.
13446 (lto_output_string): Declare.
13447 (lto_output_string_with_length): Declare.
13448 (lto_output_decl_state_streams): Declare.
13449 (lto_output_decl_state_refs): Declare.
13451 2011-03-24 Richard Guenther <rguenther@suse.de>
13453 PR tree-optimization/46562
13454 * tree.c (build_invariant_address): New function.
13455 * tree.h (build_invariant_address): Declare.
13456 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
13457 a renamed function moved ...
13458 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
13459 Take valueization callback parameter.
13460 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
13461 * gimple-fold.h: New file.
13462 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
13463 (ccp_fold, fold_const_aggregate_ref,
13464 fold_ctor_reference, fold_nonarray_ctor_reference,
13465 fold_array_ctor_reference, fold_string_cst_ctor_reference,
13466 get_base_constructor): Move ...
13467 * gimple-fold.c: ... here.
13468 (gimple_fold_stmt_to_constant_1): New function
13469 split out from ccp_fold. Take a valueization callback parameter.
13470 Valueize all operands.
13471 (gimple_fold_stmt_to_constant): New wrapper function.
13472 (fold_const_aggregate_ref_1): New function split out from
13473 fold_const_aggregate_ref. Take a valueization callback parameter.
13474 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
13475 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
13476 invariant POINTER_PLUS_EXPRs to invariant form.
13477 (vn_valueize): New function.
13478 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
13479 * tree-vrp.c (vrp_valueize): New function.
13480 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
13481 to fold statements to constants.
13482 * tree-ssa-pre.c (eliminate): Properly guard propagation of
13483 function declarations.
13484 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
13485 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
13487 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13489 * config/h8300/predicates.md (jump_address_operand): Fix register
13492 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
13494 * doc/invoke.texi (max-stores-to-sink): Document.
13495 * params.h (MAX_STORES_TO_SINK): Define.
13496 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
13497 if either vectorization or if-conversion is disabled.
13498 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
13499 tree-vect-data-refs.c vect_equal_offsets.
13500 (dr_equal_offsets_p): New function.
13501 (find_data_references_in_bb): Remove static.
13502 * tree-data-ref.h (find_data_references_in_bb): Declare.
13503 (dr_equal_offsets_p): Likewise.
13504 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
13505 (vect_drs_dependent_in_basic_block): Update calls to
13506 vect_equal_offsets.
13507 (vect_check_interleaving): Likewise.
13508 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
13509 (cond_if_else_store_replacement): Rename to...
13510 (cond_if_else_store_replacement_1): ... this. Change arguments and
13512 (cond_if_else_store_replacement): New function.
13513 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
13514 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
13516 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
13519 * config/arm/arm.md (casesi): Use the gen_int_mode() function
13520 to subtract lower bound instead of GEN_INT().
13522 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
13527 * doc/extend.texi (Alignment): Move section to match order in TOC.
13528 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
13529 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
13531 2011-03-23 Jeff Law <law@redhat.com>
13533 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
13534 before removing the edge.
13536 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
13537 it may have been freed by redirect_branch_edge or
13538 redirect_edge_succ_nodup.
13540 2011-03-23 Richard Guenther <rguenther@suse.de>
13542 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
13543 (check_va_list_escapes): Likewise.
13544 (check_all_va_list_escapes): Likewise.
13546 2011-03-23 Richard Guenther <rguenther@suse.de>
13548 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
13549 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
13550 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
13551 (alias.o): Likewise.
13552 (ipa-type-escape.o): Remove.
13553 (ipa-struct-reorg.o): Likewise.
13554 (GTFILES): Remove ipa-struct-reorg.c.
13555 * alias.c: Do not include ipa-type-escape.h.
13556 * tree-ssa-alias.c: Likewise.
13557 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
13558 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
13559 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
13560 and ipa-type-escape passes.
13561 * tree-pass.h (pass_ipa_type_escape): Remove.
13562 (pass_ipa_struct_reorg): Likewise.
13563 * ipa-struct-reorg.h: Remove.
13564 * ipa-struct-reorg.c: Likewise.
13565 * ipa-type-escape.h: Likewise.
13566 * ipa-type-escape.c: Likewise.
13567 * doc/invoke.texi (-fipa-struct-reorg): Remove.
13568 (--param struct-reorg-cold-struct-ratio): Likewise.
13569 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13570 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13571 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
13573 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13575 * config/s390/2084.md: Enable all insn reservations also for z9_ec
13576 cpu attribute value.
13577 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
13578 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
13579 * config/s390/s390.c (processor_flags_table): New constant array.
13580 (s390_handle_arch_option): Remove.
13581 (s390_handle_option): Remove s390_handle_arch_option invocations
13582 and OPT_mwarn_framesize_ handling.
13583 (s390_option_override): Remove s390_handle_arch_option invocation.
13584 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
13586 * config/s390/s390.md (cpu attribute): Add z9_ec value.
13587 * config/s390/s390.opt (s390_tune, s390_arch)
13588 (march=): Replace s390_arch_option enum and values with
13589 processor_type. Set variable name to s390_arch. Set
13590 initialization value.
13591 (mtune=): Replace s390_arch_option with processor_type. Set
13592 variable name to s390_tune. Set initialization value.
13594 2011-03-23 Julian Brown <julian@codesourcery.com>
13596 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
13597 accesses which are not naturally aligned.
13599 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
13602 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
13604 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
13606 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
13607 parameter from "int" to "enum insn_code".
13608 (expand_operand_type): New enum.
13609 (expand_operand): New structure.
13610 (create_expand_operand): New function.
13611 (create_fixed_operand, create_output_operand): Likewise
13612 (create_input_operand, create_convert_operand_to): Likewise.
13613 (create_convert_operand_from, create_address_operand): Likewise.
13614 (create_integer_operand): Likewise.
13615 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
13616 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13617 (expand_insn, expand_jump_insn): Likewise.
13618 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
13619 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
13620 (expand_movstr, expand_builtin___clear_cache): Likewise.
13621 (expand_builtin_lock_release): Likewise.
13622 * explow.c (allocate_dynamic_stack_space): Likewise.
13623 (probe_stack_range): Likewise. Allow check_stack to FAIL,
13624 and use the default handling in that case.
13625 * expmed.c (check_predicate_volatile_ok): Delete.
13626 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
13627 (emit_cstore): Likewise.
13628 * expr.c (emit_block_move_via_movmem): Likewise.
13629 (set_storage_via_setmem, expand_assignment): Likewise.
13630 (emit_storent_insn, try_casesi): Likewise.
13631 (emit_single_push_insn): Likewise. Allow the expansion to fail.
13632 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
13633 (expand_vec_shift_expr, expand_binop_directly): Likewise.
13634 (expand_twoval_unop, expand_twoval_binop): Likewise.
13635 (expand_unop_direct, emit_indirect_jump): Likewise.
13636 (emit_conditional_move, vector_compare_rtx): Likewise.
13637 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
13638 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
13639 (expand_sync_lock_test_and_set): Likewise.
13640 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
13641 (emit_unop_insn): Likewise.
13642 (expand_copysign_absneg): Change icode to an insn_code.
13643 (create_convert_operand_from_type): New function.
13644 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
13645 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13646 (expand_insn, expand_jump_insn): Likewise.
13647 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
13648 than const_int_operand for operand 2.
13650 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13652 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
13655 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13657 * emit-rtl.c (emit_pattern_before_noloc): New function.
13658 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
13659 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
13660 (emit_pattern_after_noloc): New function.
13661 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
13662 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
13664 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13666 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
13667 (__ffsDI2): Likewise.
13669 2011-03-22 Richard Henderson <rth@redhat.com>
13671 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
13672 of !TARGET_ABI_OPEN_VMS.
13673 (alpha_trampoline_init, alpha_start_function): Likewise.
13674 (alpha_expand_epilogue, alpha_file_start): Likewise.
13675 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
13676 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
13677 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
13678 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
13679 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
13681 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13683 * config/s390/s390-opts.h: New.
13684 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
13685 s390_arch_flags, s390_warn_framesize, s390_stack_size,
13686 s390_stack_guard): Remove.
13687 (s390_handle_arch_option): Return void. Take enum
13688 s390_arch_option value instead of string and searching array.
13689 (s390_handle_option): Don't assert that global structures are in
13690 use. Access variables via opts pointer. Use error_at. Don't use
13691 sscanf for -mstack-guard= or -mstack-size=. Update call to
13692 s390_handle_arch_option.
13693 (s390_option_override): Update call to s390_handle_arch_option.
13694 (s390_emit_prologue): Use %d format for s390_stack_size in
13695 diagnostic. Use %wd for HOST_WIDE_INT.
13696 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
13697 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
13698 * config/s390/s390.opt (config/s390/s390-opts.h): New
13699 HeaderInclude entry.
13700 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
13701 s390_arch_flags, s390_warn_framesize): New Variable entries.
13702 (s390_arch_option): New Enum and EnumValue entries.
13703 (march=): Use Enum instead of Var.
13704 (mstack-guard=, mstack-size=): Use UInteger and Var.
13705 (mtune=): Use Enum.
13707 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13709 * config/score/score.c (score_handle_option): Don't assert that
13710 global structures are in use. Access target_flags via opts
13711 pointer. Use value of -march= option to determine target_flags
13713 * config/score/score.opt (march=): Use Enum.
13714 (score_arch): New Enum and EnumValue entries.
13716 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13718 * config/mep/mep.c (option_mtiny_specified): Remove.
13719 (mep_option_override): Move register handling for -mivc2 from
13720 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
13721 instead of option_mtiny_specified.
13722 (mep_handle_option): Access target_flags via opts pointer. Don't
13723 assert that global structures are in use. Defer part of -mivc2
13724 handling and move it to mep_option_override.
13725 * config/mep/mep.opt (IVC2): New Mask entry.
13726 (mivc2): Use Var and Defer instead of Mask.
13728 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13730 * config/v850/v850-opts.h: New.
13731 * config/v850/v850.c (small_memory): Replace with
13732 small_memory_physical_max array. Make that array static const.
13733 (v850_handle_memory_option): Take integer value of argument. Take
13734 gcc_options pointer, option text and location. Return void.
13735 Update for changes to small memory structures.
13736 (v850_handle_option): Access target_flags via opts pointer. Don't
13737 assert that global structures are in use. Update calls to
13738 v850_handle_memory_option.
13739 (v850_encode_data_area): Update references to small memory settings.
13740 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
13741 (enum small_memory_type): Move to v850-opts.h.
13742 * config/v850/v850.opt (config/v850/v850-opts.h): New
13743 HeaderInclude entry.
13744 (small_memory_max): New Variable entry.
13745 (msda): Replace by pair of options msda= and msda-. Use UInteger.
13746 (mtda, mzda): Likewise.
13748 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13750 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
13751 pointer. Don't assert that global structures are in use.
13753 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13755 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
13756 via opts pointer. Don't assert that global structures are in use.
13758 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13760 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
13761 (munix=93): Use Var.
13762 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
13763 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
13764 * config/pa/pa-opts.h: New.
13765 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
13766 (pa_handle_option): Don't assert that global structures are in
13767 use. Access target_flags via opts pointer. Don't handle
13768 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
13770 (pa_option_override): Handle deferred OPT_mfixed_range_.
13772 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13774 * config/mn10300/mn10300-opts.h: New.
13775 * config/mn10300/mn10300.c (mn10300_processor,
13776 mn10300_tune_string): Remove.
13777 (mn10300_handle_option): Don't assert that global structures are
13778 in use. Access mn10300_processor via opts pointer. Don't handle
13780 * config/mn10300/mn10300.h (enum processor_type): Move to
13782 (mn10300_processor): Remove.
13783 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
13784 HeaderInclude entry.
13785 (mn10300_processor): New Variable entry.
13788 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13790 * config/microblaze/microblaze.c: Don't include opts.h.
13791 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
13792 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
13793 (mno-clearbss): Use Var and Warn.
13795 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13797 * config/m32r/m32r-opts.h: New.
13798 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
13799 (m32r_handle_option): Don't assert that global structures are in
13800 use. Access target_flags and m32r_cache_flush_func via opts
13801 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
13802 OPT_mno_flush_trap here.
13803 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
13804 include of m32r-opts.h.
13805 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
13806 HeaderInclude entry.
13807 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
13808 (mmodel=): Use Enum and Var.
13809 (m32r_model): New Enum and EnumValue entries.
13810 (mno-flush-trap): Use Var.
13811 (msdata=): Use Enum and Var.
13812 (m32r_sdata): New Enum and EnumValue entries.
13814 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13816 * config/m32c/m32c.c: Don't include opts.h.
13817 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
13818 m32c_handle_option): Remove.
13819 (m32c_option_override): Check global_options_set.x_target_memregs
13820 instead of target_memregs_set.
13821 * config/m32c/m32c.h (target_memregs): Remove.
13822 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
13825 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13827 * config/iq2000/iq2000-opts.h: New.
13828 * config/iq2000/iq2000.c: Don't include opts.h.
13829 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
13830 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
13831 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
13832 HeaderInclude entry.
13833 (iq2000_tune): New Variable entry.
13834 (march=): Add comment. Use Enum.
13835 (iq2000_arch): New Enum and EnumValue entries.
13836 (mcpu=): Use Enum and Var.
13837 (iq2000_tune): New Enum and EnumValue entries.
13839 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13841 * config/ia64/ia64-opts.h: New.
13842 * config/ia64/ia64.c (ia64_tune): Remove.
13843 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
13844 here. Use error_at.
13845 (ia64_option_override): Handle deferred OPT_mfixed_range_.
13846 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
13847 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
13848 HeaderInclude entry.
13849 (ia64_tune): New Variable entry.
13850 (mfixed-range=): Use Defer and Var.
13851 (mtune=): Use Enum and Var.
13852 (ia64_tune): New Enum and EnumValue entries.
13854 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13856 * config/frv/frv-opts.h: New.
13857 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
13859 (frv_cpu_type): Remove.
13860 * config/frv/frv.c: Don't include opts.h.
13861 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
13862 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
13863 (frv_cpu_type): New Variable entry.
13864 (frv_cpu): New Enum and EnumValue entries.
13866 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13868 * config/cris/cris.c (cris_handle_option): Access target_flags via
13869 opts pointer. Don't assert that global structures are in use.
13870 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
13871 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
13873 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13875 * config/bfin/bfin-opts.h: New.
13876 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
13877 bfin_si_revision, bfin_workarounds): Remove.
13878 (bfin_cpus): Make static const.
13879 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
13880 not bfin_lib_id_given.
13881 (bfin_handle_option): Don't set bfin_lib_id_given. Access
13882 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
13883 pointer. Use error_at. Don't assert that global structures are in use.
13884 * config/bfin/bfin.h: Include bfin-opts.h.
13885 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
13886 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
13887 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
13888 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
13891 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13893 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
13894 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
13895 or -msoft-float here.
13896 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
13897 -msoft-float and -mhard-float.
13898 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
13899 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13901 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
13903 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
13904 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
13906 (LIBGCC_SPEC): Don't handle -msoft-float.
13907 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
13909 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13911 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
13912 -mfloat-abi=*, not -msoft-float and -mhard-float.
13913 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
13915 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
13916 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
13917 mhard-float and msoft-float.
13918 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
13919 mfloat-abi=soft in comments, not mhard-float and msoft-float.
13920 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
13921 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
13923 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
13924 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
13926 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
13928 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
13931 2011-03-22 Richard Henderson <rth@redhat.com>
13933 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
13934 TARGET_ABI_WINDOWS_NT.
13935 (alpha_output_function_end_prologue): Likewise.
13936 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
13937 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13938 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
13939 (trap, *movsi_nt_vms): Likewise.
13940 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
13941 (*tablejump_osf_nt_internal): Remove.
13942 * config/alpha/predicates.md (input_operand): Only test Pmode.
13944 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13946 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
13947 via opts pointer. Use error_at. Don't assert that global
13948 structures are in use.
13950 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13952 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
13953 (ix86_handle_option): Access ix86_isa_flags and
13954 ix86_isa_flags_explicit via opts pointer. Don't assert that
13955 global structures are in use.
13956 (ix86_function_specific_save, ix86_function_specific_restore):
13957 Update ix86_isa_flags_explicit field name.
13958 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
13959 (ix86_isa_flags_explicit): Rename TargetSave entry to
13960 x_ix86_isa_flags_explicit.
13962 2011-03-22 Richard Henderson <rth@redhat.com>
13964 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
13965 (alpha_option_override, direct_return): Likewise.
13966 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
13967 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
13968 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
13969 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13970 (alpha_expand_epilogue, alpha_end_function): Likewise.
13971 (alpha_init_libfuncs): Likewise.
13972 (struct machine_function): Remove unicosmk members.
13973 (print_operand) ['t']: Remove.
13974 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
13975 unicosmk_output_module_name, unicosmk_output_common,
13976 current_section_align, unicosmk_output_text_section_asm_op,
13977 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
13978 unicosmk_section_type_flags, unicosmk_unique_section,
13979 unicosmk_asm_named_section, unicosmk_insert_attributes,
13980 unicosmk_output_align, unicosmk_defer_case_vector,
13981 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
13982 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
13983 unicosmk_output_ssib, unicosmk_add_call_info_word,
13984 unicosmk_extern_head, unicosmk_output_default_externs,
13985 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
13986 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
13987 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
13988 * config/alpha/alpha-protos.h: Update.
13989 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
13990 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
13991 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
13992 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
13993 (*mulsi_se, mulvsi3): Likewise.
13994 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
13995 (*divmodsi_internal, call, call_value, realign): Likewise.
13996 (moddi3, umoddi3): Likewise; remove duplicate expander.
13997 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
13998 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
13999 (*movdi_nofix): Remove r/U alternative.
14000 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
14001 * config/alpha/constraints.md ("U"): Remove.
14002 * config/alpha/predicates.md (call_operand"): Don't test
14003 TARGET_ABI_UNICOSMK.
14005 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14007 * target.def (handle_option): Take gcc_options and
14008 cl_decoded_option pointers and location_t.
14009 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
14010 * doc/tm.texi: Regenerate.
14011 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
14012 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
14013 * lto-opts.c (lto_reissue_options): Generate option structure for
14014 targetm.handle_option call.
14015 * opts.c (target_handle_option): Update call to
14016 targetm.handle_option. Remove assertions about values now passed
14018 * targhooks.c (default_target_handle_option): New.
14019 * targhooks.h (default_target_handle_option): Declare.
14020 * config/alpha/alpha.c: Include opts.h.
14021 (alpha_handle_option): Update to new hook interface.
14022 * config/arm/arm.c: Include opts.h.
14023 (arm_handle_option): Update to new hook interface.
14024 * config/arm/t-arm (arm.o): Update dependencies.
14025 * config/bfin/bfin.c: Include opts.h.
14026 (bfin_handle_option): Update to new hook interface.
14027 * config/cris/cris.c: Include opts.h.
14028 (cris_handle_option): Update to new hook interface.
14029 * config/frv/frv.c: Include opts.h.
14030 (frv_handle_option): Update to new hook interface.
14031 * config/i386/i386.c: Include opts.h.
14032 (ix86_handle_option): Update to new hook interface.
14033 (ix86_valid_target_attribute_inner_p): Generate option structure
14034 for call to ix86_handle_option.
14035 * config/i386/t-i386 (i386.o): Update dependencies.
14036 * config/ia64/ia64.c: Include opts.h.
14037 (ia64_handle_option): Update to new hook interface.
14038 * config/ia64/t-ia64 (ia64.o): Update dependencies.
14039 * config/iq2000/iq2000.c: Include opts.h.
14040 (iq2000_handle_option): Update to new hook interface.
14041 * config/m32c/m32c.c: Include opts.h.
14042 (m32c_handle_option): Update to new hook interface.
14043 * config/m32r/m32r.c: Include opts.h.
14044 (m32r_handle_option): Update to new hook interface.
14045 * config/m68k/m68k.c: Include opts.h.
14046 (m68k_handle_option): Update to new hook interface.
14047 * config/mep/mep.c: Include opts.h.
14048 (mep_handle_option): Update to new hook interface.
14049 * config/microblaze/microblaze.c: Include opts.h.
14050 (microblaze_handle_option): Update to new hook interface.
14051 * config/mips/mips.c: Include opts.h.
14052 (mips_handle_option): Update to new hook interface.
14053 * config/mn10300/mn10300.c: Include opts.h.
14054 (mn10300_handle_option): Update to new hook interface.
14055 * config/pa/pa.c: Include opts.h.
14056 (pa_handle_option): Update to new hook interface.
14057 * config/pdp11/pdp11.c: Include opts.h.
14058 (pdp11_handle_option): Update to new hook interface.
14059 * config/rs6000/rs6000.c: Include opts.h.
14060 (rs6000_handle_option): Update to new hook interface.
14061 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
14062 * config/rx/rx.c: Include opts.h.
14063 (rx_handle_option): Update to new hook interface.
14064 * config/s390/s390.c: Include opts.h.
14065 (s390_handle_option): Update to new hook interface.
14066 * config/score/score.c: Include opts.h.
14067 (score_handle_option): Update to new hook interface.
14068 * config/sh/sh.c: Include opts.h.
14069 (sh_handle_option): Update to new hook interface.
14070 * config/sparc/sparc.c: Include opts.h.
14071 (sparc_handle_option): Update to new hook interface.
14072 * config/v850/v850.c: Include opts.h.
14073 (v850_handle_option): Update to new hook interface.
14075 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14077 * gcc.c (driver_unknown_option_callback): Only permit and save
14078 unknown -Wno- options.
14079 (driver_wrong_lang_callback): Save options directly instead of via
14080 driver_unknown_option_callback.
14082 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
14084 * combine.c (simplify_set): Try harder to find the best CC mode when
14085 simplifying a nested COMPARE on the RHS.
14087 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14089 * config/alpha/gnu.h: Remove.
14090 * config/arc: Remove directory.
14091 * config/arm/netbsd.h: Remove.
14092 * config/arm/t-pe: Remove.
14093 * config/crx: Remove directory.
14094 * config/i386/netbsd.h: Remove.
14095 * config/m68hc11: Remove directory.
14096 * config/m68k/uclinux-oldabi.h: Remove.
14097 * config/mcore/mcore-pe.h: Remove.
14098 * config/mcore/t-mcore-pe: Remove.
14099 * config/netbsd-aout.h: Remove.
14100 * config/rs6000/gnu.h: Remove.
14101 * config/sh/sh-symbian.h: Remove.
14102 * config/sh/symbian-base.c: Remove.
14103 * config/sh/symbian-c.c: Remove.
14104 * config/sh/symbian-cxx.c: Remove.
14105 * config/sh/symbian-post.h: Remove.
14106 * config/sh/symbian-pre.h: Remove.
14107 * config/sh/t-symbian: Remove.
14108 * config/svr3.h: Remove.
14109 * config/vax/netbsd.h: Remove.
14110 * config.build: Don't handle i[34567]86-*-pe.
14111 * config.gcc: Remove handling of deprecations for most deprecated
14113 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
14114 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
14115 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
14116 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
14117 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
14118 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
14120 * config.host: Don't handle i[34567]86-*-pe.
14121 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
14122 (ASM_SPEC32): Don't handle -mcall-gnu.
14123 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
14125 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
14126 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
14127 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14128 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
14129 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
14130 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
14131 conditional on SYMBIAN.
14132 * configure.ac: Don't handle powerpc*-*-gnu*.
14133 * configure: Regenerate.
14134 * doc/extend.texi (interrupt attribute): Don't mention CRX.
14135 * doc/install-old.texi (m6811, m6812): Don't mention.
14136 * doc/install.texi (arc-*-elf*): Don't document multilib option.
14137 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
14138 (m68k-uclinuxoldabi): Don't mention.
14139 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
14141 (-mcall-gnu): Remove.
14142 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
14143 families): Remove constraint documentation.
14145 2011-03-22 Marius Strobl <marius@FreeBSD.org>
14147 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
14148 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
14149 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
14151 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14154 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
14155 vector when peeking at the next token for vector, don't expand the
14158 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
14160 * config/avr/avr-protos.h (expand_epilogue): Change prototype
14161 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
14162 * config/avr/avr.c (init_cumulative_args)
14163 (avr_function_arg_advance): Use it.
14164 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
14166 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
14167 (avr_function_ok_for_sibcall): ...this new function.
14168 (avr_lookup_function_attribute1): New static Function.
14169 (avr_naked_function_p, interrupt_function_p)
14170 (signal_function_p, avr_OS_task_function_p)
14171 (avr_OS_main_function_p): Use it.
14172 * config/avr/avr.md ("sibcall", "sibcall_value")
14173 ("sibcall_epilogue"): New expander.
14174 ("*call_insn", "*call_value_insn"): New insn.
14175 ("call_insn", "call_value_insn"): Remove
14176 ("call", "call_value", "epilogue"): Change expander to handle
14179 2011-03-21 Nick Clifton <nickc@redhat.com>
14181 * doc/invoke.texi (Overall Options): Move closing brace to end of
14183 (Optimization Options): Add missing @gol.
14184 (Directory Options): Likewise.
14185 (i386 and x86-64 Options): Likewise.
14186 (RS6000 and PowerPC Options): Likewise.
14187 (i386 and x86-64 Windows Options): Likewise.
14188 (V850 Options): Add text missing from descriptions.
14190 2011-03-22 Richard Henderson <rth@redhat.com>
14192 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
14193 (avr_incoming_return_addr_rtx): New.
14194 (emit_push_byte): New.
14195 (expand_prologue): Use it. Remove incorrect dwarf annotation for
14196 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
14197 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
14198 (emit_pop_byte): New.
14199 (expand_epilogue): Use it. Pop frame pointer by bytes.
14200 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
14201 (INCOMING_RETURN_ADDR_RTX): New.
14202 (INCOMING_FRAME_SP_OFFSET): New.
14203 (ARG_POINTER_CFA_OFFSET): New.
14204 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
14205 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
14208 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
14210 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14212 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14213 (FUNCTION_ARG_ADVANCE): Likewise.
14214 * tm.texi.in: Change references to them to hook references.
14215 * tm.texi: Regenerate.
14216 * targhooks.c (default_function_arg): Eliminate check for target
14218 (default_function_incoming_arg): Likewise.
14219 (default_function_arg_advance): Likewise.
14220 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
14221 (function_arg_advance): Likewise.
14222 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14224 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14226 * tree.c (build_call_1): New function.
14227 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
14229 2011-03-22 Richard Guenther <rguenther@suse.de>
14231 PR tree-optimization/48228
14232 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
14233 for single-arg PHIs.
14235 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
14237 PR rtl-optimization/48143
14238 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
14239 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
14240 sse2_cvtps2pd): Likewise.
14242 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14244 * recog.c (canonicalize_change_group): Use validate_unshare_change.
14246 2011-03-22 Richard Guenther <rguenther@suse.de>
14248 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
14249 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
14250 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
14251 and REALIGN_LOAD_EXPR.
14252 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
14253 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
14254 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
14255 DOT_PROD_EXPR case ...
14256 (expand_expr_real_2): ... here.
14257 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
14258 and REALIGN_LOAD_EXPR.
14259 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
14260 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
14261 (vect_create_epilog_for_reduction): Likewise.
14262 (vectorizable_reduction): Likewise.
14263 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
14264 * tree-vect-stmts.c (vectorizable_load): Likewise.
14266 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
14268 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
14270 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14272 * config/s390/s390.c (s390_delegitimize_address): Fix offset
14273 handling for PLTOFF/GOTOFF.
14275 2011-03-22 Nick Clifton <nickc@redhat.com>
14277 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
14278 trailing backslash from the end of the macro definition.
14280 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14282 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
14285 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
14287 * expr.h (prepare_operand): Move to...
14288 * optabs.h (prepare_operand): ...here and change the insn code
14289 parameter from "int" to "enum insn_code".
14290 (insn_operand_matches): Declare.
14291 * expr.c (init_expr_target): Use insn_operand_matches.
14292 (compress_float_constant): Likewise.
14293 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
14294 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
14295 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
14296 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
14298 (gen_cond_trap): Likewise.
14299 (prepare_operand): Likewise. Change icode to an insn_code.
14300 (insn_operand_matches): New function.
14301 * reload.c (find_reloads_address_1): Use insn_operand_matches.
14302 * reload1.c (gen_reload): Likewise.
14303 * targhooks.c (default_secondary_reload): Likewise.
14305 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
14307 * config/alpha/alpha.md (unspec): New define_c_enum.
14310 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
14313 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
14314 between a call and its CALL_ARG_LOCATION note.
14316 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14318 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
14320 2011-03-21 Jakub Jelinek <jakub@redhat.com>
14324 * c-common.c (shorten_compare): If primopN is first sign-extended
14325 to opN and then zero-extended to result type, set primopN to opN.
14327 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
14329 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
14330 for barrier handlers.
14332 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14334 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
14335 UNSPEC constants to be in the unspec enumeration, and redefine
14336 all UNSPECV constants to be in the unspecv enumeration, so that
14337 dumps print which unspec/unspec_volatile this is.
14338 * config/rs6000/vector.md (UNSPEC_*): Ditto.
14339 * config/rs6000/paired.md (UNSPEC_*): Ditto.
14340 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
14341 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
14342 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
14344 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
14345 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
14346 UNSPECV_LWSYNC, since these are used as unspec_volatile.
14347 * config/rs6000/sync.md (isync, lwsync): Ditto.
14349 2011-03-21 Richard Guenther <rguenther@suse.de>
14351 * params.def (lto-min-partition): Fix typo.
14353 2011-03-21 Richard Guenther <rguenther@suse.de>
14356 * c-decl.c (grokdeclarator): Drop to the main variant only
14357 for array types. Drop flag_gen_aux_info check.
14359 2011-03-21 Richard Guenther <rguenther@suse.de>
14361 PR translation/47911
14362 * params.def (lto-partitions): Fix typo.
14363 (lto-min-partition): Fix wording.
14365 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
14367 * config/rs6000/t-freebsd: Remove duplication from file.
14369 2011-03-21 Richard Guenther <rguenther@suse.de>
14371 PR middle-end/47661
14372 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
14374 2011-03-21 Richard Guenther <rguenther@suse.de>
14377 * params.def (lto-partitions): Require at least 1 partition.
14379 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14381 * gthr-solaris.h: Remove.
14382 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
14383 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
14384 (LIB_SPEC): Likewise.
14385 * config/sol2.opt (threads): Remove.
14386 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
14387 (sparc*-*-solaris2*): Likewise.
14388 * configure.ac (enable_threads): Enable solaris support.
14389 * configure: Regenerate.
14390 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
14391 * doc/install.texi (Configuration, --enable-threads=lib): Remove
14394 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14396 * config.gcc: Obsolete *-*-solaris2.8*.
14397 * doc/install.texi (Specific, *-*-solaris2*): Document it.
14399 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14402 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
14403 reference. Solaris 8 perl works.
14405 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14408 * doc/install.texi (Prerequisites): Move jar etc. up.
14409 Explain support library version requirements.
14411 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14414 * doc/install.texi (Prerequisites): Move Perl to build
14415 requirements. Always necessary on Solaris 2 with Sun ld.
14417 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14419 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
14421 (Specific, i?86-*-solaris2.[89]): Likewise.
14422 (Specific, i?86-*-solaris2.10): Likewise.
14423 (Specific, mips-sgi-irix6): Likewise.
14424 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
14425 Update for binutils 2.21.
14427 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14429 * configure.ac (gcc_cv_lto_plugin): Fix typo.
14430 Allow -fuse-linker-plugin for non-default plugin linker.
14431 * configure: Regenerate.
14433 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
14436 * gengtype.c (files_rules): Added rule for cp/parser.h.
14438 2011-03-21 Jakub Jelinek <jakub@redhat.com>
14441 * config/s390/s390.c (s390_delegitimize_address): Don't call
14442 lowpart_subreg if orig_x has BLKmode.
14444 2011-03-21 Kai Tietz <ktietz@redhat.com>
14447 * doc/plugins.texi: Adjust documentation for plugin register_callback.
14448 * tree.h (attribute_spec): Add new member affects_type_identity.
14449 * attribs.c (empty_attribute_table): Adjust attribute_spec
14451 * config/alpha/alpha.c: Likewise.
14452 * config/arc/arc.c: Likewise.
14453 * config/arm/arm.c: Likewise.
14454 * config/avr/avr.c: Likewise.
14455 * config/bfin/bfin.c: Likewise.
14456 * config/crx/crx.c: Likewise.
14457 * config/darwin.h: Likewise.
14458 * config/h8300/h8300.c: Likewise.
14459 * config/i386/cygming.h: Likewise.
14460 * config/i386/i386.c: Likewise.
14461 * config/ia64/ia64.c: Likewise.
14462 * config/m32c/m32c.c: Likewise.
14463 * config/m32r/m32r.c: Likewise.
14464 * config/m68hc11/m68hc11.c: Likewise.
14465 * config/m68k/m68k.c: Likewise.
14466 * config/mcore/mcore.c: Likewise.
14467 * config/mep/mep.c: Likewise.
14468 * config/microblaze/microblaze.c: Likewise.
14469 * config/mips/mips.c: Likewise.
14470 * config/rs6000/rs6000.c: Likewise.
14471 * config/rx/rx.c: Likewise.
14472 * config/sh/sh.c: Likewise.
14473 * config/sol2.h: Likewise.
14474 * config/sparc/sparc.c: Likewise.
14475 * config/spu/spu.c: Likewise.
14476 * config/stormy16/stormy16.c: Likewise.
14477 * config/v850/v850.c: Likewise.
14479 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
14481 * simplify-rtx.c (simplify_binary_operation_1): Handle
14482 (xor (and A B) C) case when B and C are both constants.
14484 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
14486 * tree-dfa.c (add_referenced_var): Fix typo in comment.
14488 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
14491 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
14493 2011-03-20 Jakub Jelinek <jakub@redhat.com>
14495 PR rtl-optimization/48156
14496 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
14497 assume df and df_lr are not NULL.
14499 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14502 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
14503 between a call and its CALL_ARG_LOCATION note.
14505 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
14508 * config/sh/sh.c (find_barrier): Don't emit a constant pool
14509 between a call and its corresponding CALL_ARG_LOCATION note.
14511 2011-03-19 Anatoly Sokolov <aesok@post.ru>
14513 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
14514 instead of loop. Use HARD_REGISTER_NUM_P predicate.
14515 * haifa-sched.c (setup_ref_regs): Ditto.
14516 * caller-save.c (add_used_regs_1): Ditto.
14517 * dse.c (look_for_hardregs): Ditto.
14518 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
14519 * sched-rgn.c (check_live_1): Ditto.
14521 2011-03-18 Joseph Myers <joseph@codesourcery.com>
14523 * c-decl.c (diagnose_mismatched_decls): Give an error for
14524 redefining a typedef with variably modified type.
14526 2011-03-18 Joseph Myers <joseph@codesourcery.com>
14528 * c-decl.c (grokfield): Don't allow typedefs for structures or
14529 unions with no tag by default.
14530 * doc/extend.texi (Unnamed Fields): Update.
14532 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
14534 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
14535 Rewrite using indirect functions.
14536 (lwp_slwpcb): Ditto.
14537 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
14538 (avx_vinsertf128<mode>): Ditto.
14540 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14542 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
14545 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14547 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
14548 splitting between a call and its corresponding CALL_ARG_LOCATION note.
14550 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
14552 PR rtl-optimization/48170
14553 * gcse.c (hoist_code): Remove bogus asserts.
14555 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
14557 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
14558 computation for prologue/epilogue.
14560 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14562 * Makefile.in (check-consistency): Remove.
14564 2011-03-18 Jakub Jelinek <jakub@redhat.com>
14567 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
14568 arange_table_in_use is 0, but either text_section_used or
14569 cold_text_section_used is true. Don't call it if
14570 !info_section_emitted.
14572 2011-03-18 Anatoly Sokolov <aesok@post.ru>
14574 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
14575 FUNCTION_VALUE_REGNO_P): Remove.
14576 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
14578 * config/avr/avr.c (avr_ret_register): Make static inline.
14579 (avr_function_value_regno_p): New function.
14580 (avr_libcall_value): Make static. Add 'func' argument.
14581 (avr_function_value): Make static. Rename 'func' argument to
14582 'fn_decl_or_type', forward it to avr_libcall_value. Call
14583 avr_ret_register function instead of RET_REGISTER macro.
14584 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14586 2011-03-18 Jason Merrill <jason@redhat.com>
14589 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
14591 2011-03-18 Richard Guenther <rguenther@suse.de>
14593 * doc/install.texi (--enable-gold): Remove.
14594 (--with-plugin-ld): Document.
14595 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
14597 2011-03-18 Andrew Pinski <pinskia@gmail.com>
14599 PR middle-end/47790
14600 * expr.c (optimize_bitfield_assignment_op): Revamp to work
14601 again after expansion changes.
14603 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
14605 * combine.c (try_combine): Do simplification only call of
14606 subst() on i2 even when i1 is present. Update comments.
14608 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
14610 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
14611 and UNSPEC_PCREL_SYMOFF.
14613 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14615 * config/s390/s390.md: Use define_c_enum for the unspec constant
14618 2011-03-18 Richard Henderson <rth@redhat.com>
14619 Jakub Jelinek <jakub@redhat.com>
14622 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
14623 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
14625 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14627 PR middle-end/47725
14628 * combine.c (cant_combine_insn_p): Don't check zero/sign
14629 extended hard registers.
14631 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14633 PR middle-end/47725
14634 * combine.c (cant_combine_insn_p): Check zero/sign extended
14637 2011-03-17 Anatoly Sokolov <aesok@post.ru>
14639 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14640 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
14641 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
14642 Change return type to bool.
14643 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14645 2011-03-17 Jakub Jelinek <jakub@redhat.com>
14648 * var-tracking.c (prepare_call_arguments): If CALL target
14649 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
14650 pc instead of looking it up using cselib_lookup and use
14651 Pmode for it if x has VOIDmode.
14652 * dwarf2out.c (gen_subprogram_die): If also both first and
14653 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
14656 * function.c (assign_parms): For data.passed_pointer parms
14657 use MEM of data.entry_parm instead of data.entry_parm itself
14658 as DECL_INCOMING_RTL.
14659 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
14660 also when passed and declared mode is the same, DECL_RTL
14661 is a MEM with pseudo as address and DECL_INCOMING_RTL is
14664 2011-03-16 Jeff Law <law@redhat.com>
14666 PR rtl-optimization/37273
14667 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14668 handle them like argument loads from stack slots. Do not double
14669 count memory for memory constants and argument loads from stack slots.
14671 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14674 * var-tracking.c (prepare_call_arguments): Check SUBREG.
14676 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14679 * config/i386/i386.opt: Add Save to -mavx and -mfma.
14681 2011-03-17 Jakub Jelinek <jakub@redhat.com>
14684 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
14686 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
14687 Clear call_arg_locations and call_arg_loc_last always.
14689 PR middle-end/48152
14690 * var-tracking.c (prepare_call_arguments): If argument needs to be
14691 passed by reference, adjust argtype and mode.
14693 2011-03-17 Richard Guenther <rguenther@suse.de>
14695 PR middle-end/48134
14696 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
14697 a value make sure to fold the statement.
14699 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
14702 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
14703 return condition with !cfun->calls_alloca.
14705 2011-03-17 Richard Guenther <rguenther@suse.de>
14708 * lto-cgraph.c (input_overwrite_node): Clear the abstract
14709 origin for decls in other ltrans units.
14710 (input_varpool_node): Likewise.
14712 2011-03-17 Richard Guenther <rguenther@suse.de>
14714 PR middle-end/48165
14715 * tree-object-size.c (compute_object_offset): Properly return
14716 the offset operand of MEM_REFs as sizetype.
14718 2011-03-17 Jakub Jelinek <jakub@redhat.com>
14720 PR rtl-optimization/48141
14721 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
14722 * dse.c: Include params.h.
14723 (active_local_stores_len): New variable.
14724 (add_wild_read, dse_step1): Clear it when setting active_local_stores
14726 (record_store, check_mem_read_rtx): Decrease it when removing
14728 (scan_insn): Likewise. Increase it when adding to chain, if it
14729 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
14730 set active_local_stores to NULL before the addition.
14731 * Makefile.in (dse.o): Depend on $(PARAMS_H).
14733 PR rtl-optimization/48141
14734 * dse.c (record_store): If no positions are needed in an insn
14735 that cannot be deleted, at least unchain it from active_local_stores.
14737 2011-03-16 Dodji Seketeli <dodji@redhat.com>
14740 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
14741 (lookup_type_die_strip_naming_typedef): ... here.
14742 (get_context_die): Use it.
14743 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
14744 the anonymous struct named by the naming typedef.
14746 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
14749 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
14750 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14752 2011-03-16 Jeff Law <law@redhat.com>
14754 * tree-vrp.c (identify_jump_threads): Slightly simplify type
14755 check for operands of conditional. Allow type to be a pointer.
14757 2011-03-16 Richard Guenther <rguenther@suse.de>
14759 PR tree-optimization/48149
14760 * fold-const.c (fold_binary_loc): Fold
14761 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
14763 2011-03-16 Richard Guenther <rguenther@suse.de>
14765 PR tree-optimization/26134
14766 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
14767 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
14768 (non_rewritable_mem_ref_base): Handle complex type component
14769 accesses, constrain offsets for vector and complex extracts
14772 2011-03-16 Richard Guenther <rguenther@suse.de>
14774 PR tree-optimization/48146
14775 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
14776 operands avoiding the need for renaming.
14778 2011-03-16 Richard Guenther <rguenther@suse.de>
14780 * gimple-fold.c (maybe_fold_reference): Open-code relevant
14781 constant folding. Move MEM_REF canonicalization first.
14782 Rely on fold_const_aggregate_ref for initializer folding.
14783 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
14785 2011-03-16 Jakub Jelinek <jakub@redhat.com>
14787 PR middle-end/48136
14788 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
14789 arg0/arg1 or their arguments are always fold converted to matching
14792 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
14795 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14798 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
14799 Handle in-tree gold.
14800 (ld_vers): Extract binutils version for gold.
14801 (gcc_cv_ld_hidden): Handle gold here.
14802 (gcc_cv_lto_plugin): Determine level of linker plugin support.
14803 * configure: Regenerate.
14804 * config.in: Regenerate.
14805 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
14806 -fuse-linker-plugin otherwise.
14807 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
14808 (LINK_COMMAND_SPEC): Use it.
14809 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
14811 2011-03-16 Jakub Jelinek <jakub@redhat.com>
14813 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
14814 * calls.c: Remove debug.h include.
14815 (emit_call_1): Don't call virtual_call_token debug hook.
14816 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
14817 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
14818 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
14819 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
14820 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
14821 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
14822 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
14823 dwarf2out_virtual_call): Remove.
14824 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
14825 copy_call_info and virtual_call hooks.
14826 (dwarf2out_init): Don't initialize vcall_insn_table,
14827 debug_dcall_section and debug_vcall_section.
14828 (prune_unused_types): Don't mark nodes from dcall_table.
14829 (dwarf2out_finish): Don't output dcall or vcall tables.
14830 * final.c (final_scan_insn): Don't call direct_call or
14831 virtual_call debug hooks.
14832 * debug.h (struct gcc_debug_hooks): Remove direct_call,
14833 virtual_call_token, copy_call_info and virtual_call hooks.
14834 (debug_nothing_uid): Remove prototype.
14835 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
14836 copy_call_info and virtual_call hooks.
14837 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14838 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
14839 * debug.c (do_nothing_debug_hooks): Likewise.
14840 (debug_nothing_uid): Remove.
14841 * doc/invoke.texi (-fenable-icf-debug): Remove.
14842 * common.opt (-fenable-icf-debug): Likewise.
14844 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
14845 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
14846 call's MEM. Handle functions returning aggregate through a hidden
14847 first pointer. For virtual calls add clobbered pc to call arguments
14849 * dwarf2out.c (gen_subprogram_die): Emit
14850 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
14854 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
14855 * rtl.h (ENTRY_VALUE_EXP): Define.
14856 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
14857 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
14858 * print-rtl.c (print_rtx): Likewise.
14859 * gengtype.c (adjust_field_rtx_def): Likewise.
14860 * var-tracking.c (vt_add_function_parameter): Adjust
14861 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
14862 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
14863 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
14864 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
14865 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
14867 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
14868 Call var_location debug hook even on CALL_INSNs.
14869 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
14870 * rtl.def (ENTRY_VALUE): New.
14871 * dwarf2out.c: Include cfglayout.h.
14872 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
14873 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
14874 (struct call_arg_loc_node): New type.
14875 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
14876 tail_call_site_count): New variables.
14877 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
14878 DW_TAG_GNU_call_site_parameter.
14879 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
14880 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
14881 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
14882 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
14883 and DW_AT_GNU_all_source_call_sites.
14884 (mem_loc_descriptor): Handle ENTRY_VALUE.
14885 (add_src_coords_attributes): Don't add enything if
14886 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
14887 (dwarf2out_abstract_function): Save and clear call_arg_location,
14888 call_site_count and tail_call_site_count around dwarf2out_decl call.
14889 (gen_call_site_die): New function.
14890 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
14891 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
14892 (dwarf2out_function_decl): Clear call_arg_locations,
14893 call_arg_loc_last, set call_site_count and tail_call_site_count
14894 to -1 and free block_map.
14895 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
14896 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
14897 followed by any real instructions.
14898 (dwarf2out_begin_function): Set call_site_count and
14899 tail_call_site_count to 0.
14900 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
14901 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
14902 attempt to force a DIE for it and worst case remove the attribute.
14903 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
14904 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
14906 * var-tracking.c: Include tm_p.h.
14907 (vt_stack_adjustments): For calls call note_register_arguments.
14908 (argument_reg_set): New variable.
14909 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
14910 ensure the VALUE is resolved.
14911 (call_arguments): New variable.
14912 (prepare_call_arguments): New function.
14913 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
14914 (struct expand_loc_callback_data): Add ignore_cur_loc field.
14915 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
14916 always use the best expression.
14917 (vt_expand_loc): Add ignore_cur_loc argument.
14918 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
14919 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
14920 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
14921 note for all calls.
14922 (vt_add_function_parameter): Use cselib_lookup_from_insn.
14923 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
14924 argument. Don't call cselib_preserve_only_values and
14925 cselib_reset_table.
14926 (note_register_arguments): New function.
14927 (vt_initialize): Compute argument_reg_set. Call
14928 vt_add_function_parameters before processing basic blocks instead of
14929 afterwards. For calls call prepare_call_arguments before calling
14930 cselib_process_insn.
14931 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
14932 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
14933 (var-tracking.o): Depend on $(TM_P_H).
14934 * cfglayout.h (insn_scope): New prototype.
14935 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
14936 * cfglayout.c (insn_scope): No longer static.
14937 * insn-notes.def (CALL_ARG_LOCATION): New.
14938 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
14939 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
14940 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
14941 nothing for DECL_EXTERNAL BLOCK_VARS.
14943 2011-03-16 Alan Modra <amodra@gmail.com>
14946 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
14947 create invalid offset address for vsx splat insn.
14948 * config/rs6000/predicates.md (splat_input_operand): New.
14949 * config/rs6000/vsx.md (vsx_splat_*): Use it.
14951 2011-03-15 Xinliang David Li <davidxl@google.com>
14954 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
14955 (normalize_preds): New function.
14956 (is_use_properly_guarded): Normalize def predicates.
14958 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14961 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
14962 in the output template.
14964 2011-03-15 Richard Guenther <rguenther@suse.de>
14966 PR middle-end/47650
14967 * tree-pretty-print.c (dump_function_declaration): Properly
14968 dump unprototyped and varargs function types.
14970 2011-03-15 Richard Guenther <rguenther@suse.de>
14972 PR tree-optimization/13954
14973 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
14976 2011-03-15 Richard Guenther <rguenther@suse.de>
14978 PR tree-optimization/48037
14979 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
14980 selects into BIT_FIELD_REFs.
14981 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
14984 2011-03-15 Jakub Jelinek <jakub@redhat.com>
14986 PR tree-optimization/48129
14987 * builtins.c (fold_builtin_snprintf): Convert to type of
14988 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
14989 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
14991 2011-03-15 Richard Guenther <rguenther@suse.de>
14993 PR tree-optimization/41490
14994 * tree-ssa-dce.c (propagate_necessity): Handle returns without
14995 value but with VUSE.
14996 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
14998 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
14999 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
15000 * tree-tailcall.c (find_tail_calls): Ignore returns.
15002 2011-03-15 Richard Guenther <rguenther@suse.de>
15004 PR middle-end/48031
15005 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
15006 or variable-indexed array accesses when in gimple form.
15008 2011-03-15 Richard Guenther <rguenther@suse.de>
15010 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
15012 2011-03-15 Alan Modra <amodra@gmail.com>
15015 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
15016 presume symbol_refs without a symbol_ref_decl are suitably
15017 aligned, nor other trees we may see here. Handle anchor symbols.
15018 (legitimate_constant_pool_address_p): Comment. Add mode param.
15019 Check cmodel=medium addresses. Adjust all calls.
15020 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
15021 creating cmodel=medium optimized access to locals.
15022 * config/rs6000/constraints.md (R): Pass QImode to
15023 legitimate_constant_pool_address_p.
15024 * config/rs6000/predicates.md (input_operand): Pass mode to
15025 legitimate_constant_pool_address_p.
15026 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
15029 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
15032 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
15033 64-bit constants being loaded into registers other than GPRs such
15034 as loading 0 into a VSX register.
15036 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15038 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
15040 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15042 PR middle-end/47917
15043 * builtins.c (fold_builtin_snprintf): New function.
15044 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
15045 (fold_builtin_4): Likewise.
15047 PR middle-end/38878
15048 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
15049 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
15050 and C - X == X also strip nops from +/-/p+ operand.
15051 When optimizing -X == C, fold C to arg0's type.
15054 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
15055 emit it as add_AT_int instead of add_AT_unsigned.
15057 2011-03-14 Tom Tromey <tromey@redhat.com>
15059 * unwind-dw2.c: Include sys/sdt.h if it exists.
15060 (_Unwind_DebugHook): Use STAP_PROBE2.
15061 * config.in, configure: Rebuild.
15062 * configure.ac: Check for sys/sdt.h.
15064 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
15066 * config/i386/i386.md (ROUND_FLOOR): New constant.
15067 (ROUND_CEIL): Ditto.
15068 (ROUND_TRUNC): Ditto.
15069 (ROUND_MXCSR): Ditto.
15070 (ROUND_NO_EXC): Ditto.
15071 (rint<mode>2): Use new defines instead of numerical constants.
15072 (floor<mode>2): Ditto.
15073 (ceil<mode>2): Ditto.
15074 (btrunc<mode>2): Ditto.
15075 * config/i386/i386-builtin-types.def: Define ROUND function type
15077 * config/i386/i386.c (enum ix86_builtins): Add
15078 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
15079 (struct builtin_description): Add
15080 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
15081 (ix86_expand_sse_round): New static function.
15082 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
15084 (ix86_builtin_vectorized_function): Handle
15085 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15087 2011-03-14 Tom Tromey <tromey@redhat.com>
15089 * c-parser.c (c_parser_asm_string_literal): Clear
15090 warn_overlength_strings.
15092 2011-03-14 Tom Tromey <tromey@redhat.com>
15094 * c-parser.c (disable_extension_diagnostics): Save
15095 warn_overlength_strings.
15096 (restore_extension_diagnostics): Restore warn_overlength_strings.
15098 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15100 * BASE-VER: Change to 4.7.0.
15102 2011-03-14 Richard Guenther <rguenther@suse.de>
15104 PR middle-end/48098
15105 * tree.c (build_vector_from_val): Adjust assert to requirements
15108 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15111 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
15113 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
15115 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
15116 terms of target_flags_explicit. Adjust copyright year.
15118 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
15119 * config/rs6000/t-freebsd: New file. Add override for
15122 2011-03-13 Chris Demetriou <cgd@google.com>
15124 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
15125 (-fno-diagnostics-show-option): this, to reflect current default.
15126 (-Werror=): Update text about -fno-diagnostics-show-option.
15128 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
15131 * config/rs6000/predicates.md (easy_vector_constant_add_self,
15132 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
15133 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
15134 mode is not V2DImode or V2DFmode.
15135 (vspltis_constant): Do not handle V2DImode and V2DFmode.
15136 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
15137 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
15139 (movdi_internal64): Likewise.
15141 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
15143 PR tree-optimization/47127
15144 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
15146 (set_cloog_options): Same.
15147 (scop_to_clast): Same.
15148 (print_clast_stmt): Do not call cloog_state_malloc and
15150 (print_generated_program): Same.
15152 * graphite-clast-to-gimple.h (cloog_state): Declared.
15153 (scop_to_clast): Adjust declaration.
15154 * graphite.c (cloog_state): Defined here.
15155 (graphite_initialize): Call cloog_state_malloc.
15156 (graphite_finalize): Call cloog_state_free.
15158 2011-03-11 Jason Merrill <jason@redhat.com>
15160 * attribs.c (lookup_attribute_spec): Take const_tree.
15163 2011-03-11 Joseph Myers <joseph@codesourcery.com>
15165 * config/sparc/sparc.c (sparc_option_override): Use
15166 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
15168 2011-03-11 Richard Guenther <rguenther@suse.de>
15170 PR tree-optimization/48067
15171 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
15172 multiplication result will be only used once on the target
15175 2011-03-11 Richard Guenther <rguenther@suse.de>
15177 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
15179 2011-03-11 Richard Guenther <rguenther@suse.de>
15182 * tree.c (find_decls_types_r): Do not walk types only reachable
15183 from IDENTIFIER_NODEs.
15185 2011-03-11 Jakub Jelinek <jakub@redhat.com>
15187 PR middle-end/48044
15188 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
15189 all vnode->force_output nodes as needed.
15191 2011-03-11 Jason Merrill <jason@redhat.com>
15194 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
15195 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
15197 2011-03-11 Martin Jambor <mjambor@suse.cz>
15199 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
15202 2011-03-11 Jakub Jelinek <jakub@redhat.com>
15204 PR tree-optimization/48063
15205 * ipa-inline.c (cgraph_decide_inlining): Don't try to
15206 inline functions called once if !tree_can_inline_p (node->callers).
15208 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
15210 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
15212 * config/score/score3.c: Delete.
15213 * config/score/score3.h: Delete.
15214 * config/score/mul-div.S: Delete.
15215 * config/score/sfp-machine.h: Add new file.
15216 * config/score/constraints.md: Add new file.
15217 * config/score/t-score-softfp: Add new file.
15218 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
15219 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
15220 (score7_extra_constraint): Delete.
15221 (score7_option_override): Remove unused code.
15222 * config/score/score.c: Remove score3 and score5 define and code.
15223 * config/score/score.h: Remove score3 and score5 define and code.
15224 * config/score/score.md: Remove score3 template and unusual insn.
15225 * config/score/score.opt: Remove score3 and score5 options.
15227 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15229 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15230 when _HPUX_SOURCE is defined.
15231 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
15233 2011-03-10 Jason Merrill <jason@redhat.com>
15236 * stor-layout.c (layout_type): Don't set structural equality
15237 on arrays of incomplete type.
15238 * tree.c (type_hash_eq): Handle comparing them properly.
15240 2011-03-10 Jakub Jelinek <jakub@redhat.com>
15243 * config/s390/s390.c (s390_delegitimize_address): Make sure the
15244 result mode matches original rtl mode.
15246 2011-03-10 Nick Clifton <nickc@redhat.com>
15248 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
15249 (andsi3, andsi3_flags): Fix timings for three operand alternative.
15251 2011-03-09 Jakub Jelinek <jakub@redhat.com>
15253 PR rtl-optimization/47866
15254 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
15255 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
15256 if target wasn't scalar.
15257 * function.c (assign_stack_temp_for_type): Assert that neither
15258 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
15259 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
15261 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
15263 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15265 * config/s390/s390-protos.h (s390_label_align): New prototype.
15266 * config/s390/s390.c (s390_label_align): New function.
15267 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
15269 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
15272 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
15273 V2DI/V2DF constants. Only all 0's or all 1's are easy.
15274 (output_vec_const_move): Ditto.
15276 2011-03-08 Anatoly Sokolov <aesok@post.ru>
15278 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
15279 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
15280 * config/mips/mips.c (mips_preferred_reload_class): Make static.
15281 Change 'rclass' argument and result type to reg_class_t.
15282 (TARGET_PREFERRED_RELOAD_CLASS): Define.
15284 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
15286 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15287 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
15288 (TARGET_MEMORY_MOVE_COST): Define.
15289 (avr_register_move_cost, avr_memory_move_cost): New Functions.
15291 2011-03-08 Jakub Jelinek <jakub@redhat.com>
15294 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
15297 PR tree-optimization/48022
15298 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
15301 2011-03-07 Jakub Jelinek <jakub@redhat.com>
15304 * var-tracking.c (find_use_val): Return NULL for
15305 cui->sets && cui->store_p BLKmode MEMs.
15307 2011-03-07 Anatoly Sokolov <aesok@post.ru>
15309 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
15311 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
15312 xstormy16_print_operand_address): Remove.
15313 * config/stormy16/stormy16.c (xstormy16_print_operand,
15314 xstormy16_print_operand_address): Make static.
15315 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15317 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
15320 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
15321 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
15324 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
15327 * cfgloopmanip.c (fix_bb_placements): Return immediately
15328 if FROM is BASE_LOOP's header.
15330 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
15332 * gimplify.c (gimplify_function_tree): Fix building calls
15333 to __builtin_return_address.
15335 2011-03-07 Alan Modra <amodra@gmail.com>
15337 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
15338 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
15339 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
15340 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
15342 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
15343 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
15344 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
15345 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
15346 * config/rs6000/rs6000.c
15347 (rs6000_elf_end_indicate_exec_stack): Rename to..
15348 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
15349 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
15350 (rs6000_file_start): ..here.
15351 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
15352 file scope variables.
15353 (call_ABI_of_interest): New function.
15354 (init_cumulative_args): Set above vars when function return value
15355 is a float, vector, or small struct.
15356 (rs6000_function_arg_advance_1): Likewise for function args.
15357 (rs6000_va_start): Set rs6000_passes_float if variable arg function
15358 references float args.
15360 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
15362 * doc/cfg.texi: Remove "See" before @ref.
15363 * doc/invoke.texi: Likewise.
15365 2011-03-05 Jason Merrill <jason@redhat.com>
15367 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
15369 2011-03-05 Anthony Green <green@moxielogic.com>
15371 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
15373 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
15375 PR rtl-optimization/47899
15376 * cfgloopmanip.c (fix_bb_placements): Fix first argument
15377 to flow_loop_nested_p when moving the loop upward.
15379 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
15382 * arm.md (movhi_insn_arch4): Accept any immediate constant.
15384 2011-03-05 Jakub Jelinek <jakub@redhat.com>
15386 PR tree-optimization/47967
15387 * ipa-cp.c (build_const_val): Return NULL instead of creating
15388 VIEW_CONVERT_EXPR for mismatching sizes.
15389 (ipcp_create_replace_map): Return NULL if build_const_val failed.
15390 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
15391 give up on versioning.
15393 2011-03-05 Alan Modra <amodra@gmail.com>
15396 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15397 full cmodel medium/large lo_sum + high addresses.
15399 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15401 * config/s390/s390.c (s390_decompose_address): Reject non-literal
15402 pool references in UNSPEC_LTREL_OFFSET.
15404 2011-03-04 Jan Hubicka <jh@suse.cz>
15407 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
15408 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
15409 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
15411 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
15412 cgraph_add_thunk): Add node pointers.
15413 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
15414 associated to right node.
15415 (input_node): Update use of cgraph_same_body_alias
15416 and cgraph_add_thunk.
15418 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
15420 * config/i386/i386.opt (mprefer-avx128): New flag.
15421 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
15422 modes when the flag -mprefer-avx128 is on.
15424 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
15426 * dwarf2out.c (compare_loc_operands): Fix address handling.
15428 2011-03-04 Alan Modra <amodra@gmail.com>
15430 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
15432 2011-03-04 Richard Guenther <rguenther@suse.de>
15434 PR middle-end/47968
15435 * expmed.c (extract_bit_field_1): Prefer vector modes that
15436 vec_extract patterns can handle.
15438 2011-03-04 Richard Guenther <rguenther@suse.de>
15440 PR middle-end/47975
15441 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
15443 2011-03-04 Richard Henderson <rth@redhat.com>
15445 * explow.c (emit_stack_save): Remove 'after' parameter.
15446 (emit_stack_restore): Likewise.
15447 * expr.h: Update to match.
15448 * builtins.c, calls.c, stmt.c: Likewise.
15449 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
15450 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
15451 * function.c (expand_function_end): Insert the emit_stack_save
15452 sequence before parm_birth_insn instead of after.
15454 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
15456 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
15457 (ssse3_pmaddubsw128): Ditto.
15458 (ssse3_pmaddubsw): Ditto.
15460 2011-03-03 Steve Ellcey <sje@cup.hp.com>
15462 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
15464 2011-03-03 Jakub Jelinek <jakub@redhat.com>
15467 * gimplify.c (omp_add_variable): Only call omp_notice_variable
15468 on TYPE_SIZE_UNIT if it is a DECL.
15471 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
15472 first operand is not is_gimple_mem_ref_addr, try to fold it.
15473 If the operand still isn't is_gimple_mem_ref_addr, clear
15476 2011-03-03 Richard Guenther <rguenther@suse.de>
15478 PR middle-end/47283
15479 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
15481 (refs_may_alias_p_1): For release branches return true if
15482 we are confused by our input.
15484 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15486 * config/s390/s390.c (s390_function_value): Rename to ...
15487 (s390_function_and_libcall_value): ... this.
15488 (s390_function_value): New function.
15489 (s390_libcall_value): New function.
15490 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
15491 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
15492 target macro definitions.
15493 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
15495 2011-03-02 Joseph Myers <joseph@codesourcery.com>
15497 * config/i386/freebsd64.h (CC1_SPEC): Define.
15498 * config/i386/linux64.h (CC1_SPEC): Define.
15499 * config/i386/x86-64.h (CC1_SPEC): Don't define.
15501 2011-03-02 Anatoly Sokolov <aesok@post.ru>
15503 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15505 * config/stormy16/stormy16.c: Include reload.h.
15506 (xstormy16_memory_move_cost): New function.
15507 (TARGET_MEMORY_MOVE_COST): Define.
15509 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
15511 PR rtl-optimization/47925
15512 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
15513 with side effects. Remove the more-specific check for volatile asms.
15515 2011-03-02 Alan Modra <amodra@gmail.com>
15518 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
15519 toc relative addresses for valid offsets.
15521 2011-03-01 Richard Guenther <rguenther@suse.de>
15523 PR tree-optimization/47890
15524 * tree-vect-loop.c (get_initial_def_for_induction): Set
15525 related stmt properly.
15527 2011-03-01 Richard Guenther <rguenther@suse.de>
15530 * lto-streamer.c (lto_record_common_node): Also register
15531 the canonical type.
15533 2011-03-01 Richard Guenther <rguenther@suse.de>
15536 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15537 Do not stream DECL_ABSTRACT_ORIGIN.
15538 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15539 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15540 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15541 Do not stream DECL_ABSTRACT_ORIGIN.
15542 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15543 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15545 2011-02-28 Anatoly Sokolov <aesok@post.ru>
15547 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
15548 FUNCTION_VALUE_REGNO_P): Remove.
15549 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
15550 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
15551 Add 'outgoing' argument.
15552 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
15554 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15555 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15557 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
15560 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
15561 (lookup_filename): Likewise.
15562 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
15564 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
15565 Jakub Jelinek <jakub@redhat.com>
15567 PR middle-end/47893
15568 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
15569 (assign_stack_local_1): Change last argument type to int.
15570 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
15571 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
15572 don't record padding space into frame_space_list nor use those areas.
15573 (assign_stack_local): Adjust caller.
15574 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
15575 of assign_stack_local, pass 0 as last argument.
15576 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
15579 2011-02-28 Jakub Jelinek <jakub@redhat.com>
15582 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
15583 Use target address_mode and pointer_mode hooks instead of hardcoded
15584 Pmode and ptr_mode. Handle some simple cases of extending if
15585 POINTERS_EXTEND_UNSIGNED < 0.
15586 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
15587 Call convert_debug_memory_address.
15588 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
15589 convert_debug_memory_address.
15591 PR middle-end/46790
15592 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
15593 * configure: Regenerated.
15594 * config.in: Regenerated.
15595 * varasm.c (default_function_section): Return NULL
15596 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
15598 2011-02-28 Martin Jambor <mjambor@suse.cz>
15600 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
15601 the description to match the printed values.
15603 2011-02-28 Richard Guenther <rguenther@suse.de>
15605 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
15606 of the copied scope tree.
15608 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15610 * doc/extend.texi (Function Attributes): Avoid deeply (and
15611 wrongly) nested tables.
15613 2011-02-27 Jakub Jelinek <jakub@redhat.com>
15615 PR middle-end/47903
15616 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
15617 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
15618 r isn't op0 nor op1.
15620 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
15622 * config/avr/avr.md: Remove magic comment for emacs.
15624 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
15627 * config/avr/avr.c (avr_option_override): Use error on bad options.
15628 (avr_help): New function.
15629 (TARGET_HELP): Define.
15631 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
15634 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
15635 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
15637 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
15639 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
15640 (ARM Options): Ditto.
15641 (i386 and x86-64 Options): Ditto.
15642 (RX Options): Ditto.
15643 (SPARC Options): Ditto.
15645 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
15647 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
15648 FreeBSD 6 and later. Generally use cpu generic.
15650 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
15652 * doc/cpp.texi: Update copyright years.
15654 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
15657 * config/lm32/lm32.md (ashrsi3): Added needed variable.
15659 2011-02-25 Jon Beniston <jon@beniston.com>
15662 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
15663 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
15664 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
15665 (lm32_block_move_inline): Add type cast to remove warning.
15666 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
15667 (gen_int_relational): Move declarations to start of function.
15669 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
15671 PR tree-optimization/45470
15672 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
15673 can throw internally only.
15674 * tree-vect-stmts.c (vectorizable_call): Likewise.
15676 2011-02-24 Anatoly Sokolov <aesok@post.ru>
15678 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
15679 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15680 * config/stormy16/stormy16-protos.h
15681 (xstormy16_preferred_reload_class): Remove.
15682 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
15683 static. Change 'rclass' argument and return type to reg_class_t.
15684 (TARGET_PREFERRED_RELOAD_CLASS,
15685 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15687 2011-02-24 Richard Guenther <rguenther@suse.de>
15689 * lto-streamer-in.c (input_bb): Do not find referenced vars
15690 in debug statements.
15692 2011-02-23 Jason Merrill <jason@redhat.com>
15694 * common.opt (fabi-version): Document v5 and v6.
15696 2011-02-23 Richard Guenther <rguenther@suse.de>
15698 PR tree-optimization/47849
15699 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
15701 2011-02-23 Jie Zhang <jie@codesourcery.com>
15703 * opts-common.c (decode_cmdline_option): Print empty string
15704 argument as "" in decoded->orig_option_with_args_text.
15705 * gcc.c (execute): Print empty string argument as ""
15706 in the verbose output.
15707 (do_spec_1): Keep empty string argument.
15709 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
15711 * config.gcc: Declare score-* and crx-* obsolete.
15713 2011-02-23 Jie Zhang <jie@codesourcery.com>
15715 PR rtl-optimization/47763
15716 * web.c (web_main): Ignore naked clobber when replacing register.
15718 2011-02-22 Anatoly Sokolov <aesok@post.ru>
15720 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
15723 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
15726 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
15728 2011-02-22 Mike Stump <mikestump@comcast.net>
15730 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
15732 * configure: Regenerate.
15734 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
15736 PR rtl-optimization/46002
15737 * ira-color.c (update_copy_costs): Change class intersection
15738 test to reg_class_contents[] test of 'hard_regno'.
15740 2011-02-21 Joseph Myers <joseph@codesourcery.com>
15742 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
15743 than Driver option.
15744 * config/hpux11.opt (mt): Likewise.
15745 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
15746 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
15747 * config/vax/elf.opt (mno-asm-pic): Likewise.
15748 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
15750 2011-02-21 Mike Stump <mikestump@comcast.net>
15753 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
15754 tree so we can get save the type.
15755 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
15756 for CFString instead of trying to use past the end of the builtins.
15757 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
15758 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
15759 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
15760 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
15761 Rename to darwin_builtin_cfstring.
15762 (darwin_init_cfstring_builtins): Return the built type.
15764 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
15767 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
15768 (_mm256_insert_epi64): Use _mm_insert_epi64.
15770 2011-02-21 Anatoly Sokolov <aesok@post.ru>
15772 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15773 * config/stormy16/stormy16-protos.h
15774 (xstormy16_mode_dependent_address_p): Remove.
15775 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
15776 Make static. Change return type to bool. Change argument type to
15777 const_rtx. Remove dead code.
15778 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15780 2011-02-21 Richard Guenther <rguenther@suse.de>
15783 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15784 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15785 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
15787 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15788 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15790 2011-02-20 Richard Guenther <rguenther@suse.de>
15793 * tree.c (free_lang_data_in_decl): Clean builtins from
15794 the TU decl BLOCK_VARS.
15796 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
15800 * haifa-sched.c (fix_tick_ready): Skip tick computation
15803 2011-02-19 Richard Guenther <rguenther@suse.de>
15806 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
15807 Remove lazy BLOCK_VARS streaming.
15808 (lto_input_ts_block_tree_pointers): Likewise.
15809 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
15811 2011-02-19 Joseph Myers <joseph@codesourcery.com>
15813 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
15815 2011-02-19 Joseph Myers <joseph@codesourcery.com>
15817 * config/i386/biarch32.h, config/i386/mach.h,
15818 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
15820 2011-02-19 Jakub Jelinek <jakub@redhat.com>
15823 * config/i386/i386.md (peephole2 for shift and plus): Use
15824 operands[1] original mode in the first insn.
15826 2011-02-18 Mike Stump <mikestump@comcast.net>
15828 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
15830 2011-02-18 Jan Hubicka <jh@suse.cz>
15832 PR middle-end/47788
15833 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
15834 to zero when the function is not inlinable at all.
15836 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15838 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
15839 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15840 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
15841 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
15842 * config/pa/t-pa64: Likewise.
15843 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
15845 2011-02-18 Jakub Jelinek <jakub@redhat.com>
15848 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
15850 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15853 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
15855 2011-02-18 Anatoly Sokolov <aesok@post.ru>
15857 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
15858 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
15859 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
15860 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
15861 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
15862 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
15863 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
15864 m32r_load_postinc_p, m32r_store_preinc_predec_p,
15865 m32r_legitimate_address_p): New functions.
15866 * config/m32r/constraints.md (constraint "S"): Don't use
15867 STORE_PREINC_PREDEC_P.
15868 (constraint "U"): Don't use LOAD_POSTINC_P.
15870 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
15872 PR rtl-optimization/46178
15873 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
15874 compute ira_hard_regno_cover_class[].
15876 2011-02-18 Richard Guenther <rguenther@suse.de>
15879 * lto-streamer.h (lto_global_var_decls): Declare.
15880 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
15881 statics for global var processing.
15883 2011-02-18 Richard Guenther <rguenther@suse.de>
15885 PR tree-optimization/47737
15886 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
15887 edge dominance check.
15889 2011-02-18 Jakub Jelinek <jakub@redhat.com>
15892 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
15893 avoid invalid rtx sharing.
15895 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
15897 * doc/cpp.texi (Obsolete Features): Add background on the
15898 origin of assertions.
15900 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
15902 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
15904 * config/darwin.c (output_objc_section_asm_op): Added support for
15906 (is_objc_metadata): New.
15907 (darwin_objc2_section): New.
15908 (darwin_objc1_section): New.
15909 (machopic_select_section): Added support for ABI v1 and v2.
15910 (darwin_emit_objc_zeroed): New.
15911 (darwin_output_aligned_bss): Detect objc metadata and treat it
15913 (darwin_asm_output_aligned_decl_common): Same.
15914 (darwin_asm_output_aligned_decl_local): Same.
15915 * config/darwin-sections.def: Updated for ABI v1 and v2.
15916 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
15917 compiling Objective-C code for the NeXT runtime, default to using
15918 ABI version 0 for 32-bit, and version 2 for 64-bit.
15920 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15922 * common.opt (optimize_fast): New Variable.
15923 * opts.c (default_options_optimization): Use opts->x_optimize_fast
15924 instead of local variable ofast.
15926 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
15928 * doc/invoke.texi (fobjc-abi-version): Documented.
15929 (fobjc-nilcheck): Documented.
15930 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
15933 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15936 * common.opt (export-dynamic): New Driver option.
15937 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
15939 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15941 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
15943 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
15944 Jan Hubicka <jh@suse.cz>
15948 * cfgexpand.c (account_used_vars_for_block): Remove.
15949 (estimated_stack_frame_size): Use referenced vars.
15950 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
15951 that were referenced in the original function. Test src_fn
15952 rather than cfun. Drop redundant get_var_ann.
15953 (setup_one_parameter): Drop redundant get_var_ann.
15954 (declare_return_variable): Likewise.
15955 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
15956 (copy_arguments_for_versioning): Drop redundant get_var_ann.
15957 * ipa-inline.c (compute_inline_parameters): Do not compute
15958 disregard_inline_limits here.
15959 (compute_inlinable_for_current, pass_inlinable): New.
15960 (pass_inline_parameters): Require PROP_referenced_vars.
15961 * cgraphunit.c (cgraph_process_new_functions): Don't run
15962 compute_inline_parameters explicitly unless function is in SSA form.
15963 (cgraph_analyze_function): Set .disregard_inline_limits.
15964 * tree-sra.c (convert_callers): Compute inliner parameters
15965 only for functions already in SSA form.
15967 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15969 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
15970 -mlittle-endian-data.
15972 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15974 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
15975 -mno-fpu, not -fpu and -no-fpu.
15976 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
15977 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
15979 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
15982 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
15983 input reload with PLUS RTX.
15985 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15987 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
15988 of InverseVar(MDMX).
15990 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15992 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
15995 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15997 * config/mn10300/mn10300.opt (mno-crt0): New.
15999 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16001 * config/m68k/uclinux.opt (static-libc): New Driver option.
16003 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16005 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
16007 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16009 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
16010 %{muser-extend-enabled}.
16012 2011-02-16 Richard Guenther <rguenther@suse.de>
16014 PR tree-optimization/47738
16015 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
16016 the TODO from tree_predictive_commoning.
16018 2011-02-15 Jeff Law <law@redhat.com>
16021 2011-01-25 Jeff Law <law@redhat.com>
16023 PR rtl-optimization/37273
16024 * ira-costs.c (scan_one_insn): Detect constants living in memory and
16025 handle them like argument loads from stack slots. Do not double
16026 count memory for memory constants and argument loads from stack slots.
16028 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
16030 PR middle-end/47725
16031 * combine.c (cant_combine_insn_p): Revert the last change.
16033 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
16036 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
16037 mode for vector constants. Remove code that checks for TImode.
16039 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16043 * cgraph.h (compute_inline_parameters): Return void.
16044 * ipa-inline.c (compute_inline_parameters): Adjust.
16046 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16050 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
16052 * cfgexpand.c (estimated_stack_frame_size): Likewise.
16053 * ipa-inline.c (compute_inline_parameters): Adjust.
16055 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16059 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
16060 Adjust all users. Pass FN to...
16061 * tree-flow-inline.h (first_referenced_var): ... this. Add
16063 * ipa-struct-reorg.c: Adjust.
16064 * tree-dfa.c: Adjust.
16065 * tree-into-ssa.c: Adjust.
16066 * tree-sra.c: Adjust.
16067 * tree-ssa-alias.c: Adjust.
16068 * tree-ssa-live.c: Adjust.
16069 * tree-ssa.c: Adjust.
16070 * tree-ssanames.c: Adjust.
16071 * tree-tailcall.c: Adjust.
16073 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16077 * tree-flow.h (referenced_var_lookup): Add fn parameter.
16078 Adjust all callers.
16079 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
16080 * tree-flow-inline.h: Adjust.
16081 * gimple-pretty-print.c: Adjust.
16082 * tree-into-ssa.c: Adjust.
16083 * tree-ssa.c: Adjust.
16084 * cfgexpand.c: Adjust.
16086 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16088 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
16089 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16090 (EXTRA_CONSTRAINT): Delete.
16091 * config/iq2000/constraints.md: New file.
16092 * config/iq2000/iq2000.md: Include it.
16093 (define_insn ""): Delete.
16094 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
16095 unsupported constraint letters from patterns.
16096 (call_value, call_value_internal1): Likewise.
16097 (call_value_multiple_internal1): Likewise.
16099 2011-02-15 Nick Clifton <nickc@redhat.com>
16101 * config/mn10300/mn10300.c: Include tm-constrs.h.
16102 (struct liw_data): New data structure describing an LIW candidate
16104 (extract_bundle): Use struct liw_data. Allow small integer
16105 operands for some instructions.
16106 (check_liw_constraints): Use struct liw_data. Remove swapped
16107 parameter. Add comments describing the checks. Fix bug when
16108 assigning the source of liw1 to the source of liw2.
16109 (liw_candidate): Delete. Code moved into extract_bundle.
16110 (mn10300_bundle_liw): Use struct liw_data. Check constraints
16112 * config/mn10300/predicates.md (liw_operand): New predicate.
16113 Allows registers and small integer constants.
16114 * config/mn10300/constraints.md (O): New constraint. Accetps
16115 integers in the range -8 to +7 inclusive.
16116 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
16117 for moving a small integer into a register. Give this alternative
16119 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
16120 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
16121 using the J,K,L and M constraints,
16122 (liw): Remove SI mode on second operands to allow for HI and QI
16124 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
16127 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
16129 PR middle-end/47725
16130 * combine.c (cant_combine_insn_p): Check zero/sign extended
16133 2011-02-15 Richard Guenther <rguenther@suse.de>
16135 PR tree-optimization/47743
16136 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
16137 for a non-type-compatible VN lookup bail out.
16139 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16141 * config/fr30/constraints.md: New file.
16142 * config/fr30/fr30.md: Include it.
16143 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
16144 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16145 (EXTRA_CONSTRAINT): Delete.
16147 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16149 * config/frv/constraints.md: New file.
16150 * config/frv/predicates.md: Include it.
16151 * config/frv/frv.c (reg_class_from_letter): Delete.
16152 (frv_option_override): Don't initialize it.
16153 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
16154 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
16155 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
16156 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16157 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
16158 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16159 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
16160 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
16161 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
16162 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
16163 (REG_CLASS_FROM_CONSTRAINT): Delete.
16165 2011-02-15 Jakub Jelinek <jakub@redhat.com>
16167 PR middle-end/47581
16168 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
16169 if frame size is 0 in a leaf function.
16171 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16174 * config/alpha/host-osf.c: New file.
16175 * config/alpha/x-osf: New file.
16176 * config.host (alpha*-dec-osf*): Use it.
16178 2011-02-14 Anatoly Sokolov <aesok@post.ru>
16180 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16181 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
16182 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
16183 (rx_mode_dependent_address_p): ...this. Make static. Change argument
16185 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16187 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16189 * config/stormy16/constraints.md: New file.
16190 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
16191 Use satisfies_constraint_Q and satisfies_constraint_R.
16192 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
16194 (xstormy16_legitiamte_address_p): Declare.
16195 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
16196 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16197 (EXTRA_CONSTRAINT): Delete.
16198 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
16200 (xstormy16_extra_constraint_p): Delete.
16202 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
16204 PR tree-optimization/46494
16205 * loop-unroll.c (split_edge_and_insert): Adjust comment.
16206 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
16207 (pass_rtl_loop_done): Add TODO_verify_flow.
16208 * fwprop.c (pass_rtl_fwprop): Likewise.
16209 * modulo-sched.c (pass_sms): Likewise.
16210 * tree-ssa-dom.c (pass_dominator): Likewise.
16211 * tree-ssa-loop-ch.c (pass_ch): Likewise.
16212 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
16213 (pass_tree_loop_done): Likewise.
16214 * tree-ssa-pre.c (execute_pre): Likewise.
16215 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
16216 * tree-ssa-sink.c (pass_sink_code): Likewise.
16217 * tree-vrp.c (pass_vrp): Likewise.
16219 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16221 * config/v850/constraints.md: New file.
16222 * config/v850/v850.md: Include it.
16223 * config/v850/predicates.md (reg_or_0_operand): Use
16224 satisfies_constraint_G.
16225 (special_symbolref_operand): Use satisfies_constraint_K.
16226 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
16227 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
16228 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
16229 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16230 (EXTRA_CONSTRAINT): Delete.
16231 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
16232 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
16233 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
16235 2011-02-14 Anatoly Sokolov <aesok@post.ru>
16238 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
16241 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16243 * config/mcore/constraints.md: New file.
16244 * config/mcore/mcore.md: Include it.
16245 * config/mcore/mcore.c (reg_class_from_letter): Delete.
16246 * config/mcore/mcore.h (reg_class_from_letter): Delete.
16247 (REG_CLASS_FROM_LETTER): Delete.
16248 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
16249 insn_const_int_ok_for_constraint.
16250 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
16251 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
16252 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16253 (EXTRA_CONSTRAINT): Delete.
16255 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16258 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
16259 (IS_SIGHANDLER): Define.
16260 (sparc64_is_sighandler): New function, split off from
16261 sparc64_fallback_frame_state.
16262 (sparc_is_sighandler): New function, split off from
16263 sparc_fallback_frame_state.
16264 (sparc64_fallback_frame_state): Merge with ...
16265 (sparc_fallback_frame_state): ... this into ...
16266 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
16267 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
16268 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
16269 stack instead of hardcoded offsets.
16271 2011-02-14 Andriy Gapon <avg@freebsd.org>
16274 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
16276 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16278 * configure: Regenerate.
16280 2011-02-12 Joseph Myers <joseph@codesourcery.com>
16283 * gcc.c (asm_options): Correct spec matching --target-help.
16285 2011-02-12 Martin Jambor <mjambor@suse.cz>
16287 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
16288 to gimple call error.
16290 2011-02-12 Mike Stump <mikestump@comcast.net>
16292 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
16293 comments in backslash regions.
16295 2011-02-12 Mike Stump <mikestump@comcast.net>
16296 Jakub Jelinek <jakub@redhat.com>
16297 Iain Sandoe <iains@gcc.gnu.org>
16300 * dwarf2out.c (output_cfa_loc): When required, apply the
16301 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
16302 (output_loc_sequence): Likewise.
16303 (output_loc_operands_raw): Likewise.
16304 (output_loc_sequence_raw): Likewise.
16305 (output_cfa_loc): Likewise.
16306 (output_loc_list): Suppress register number adjustment when
16307 calling output_loc_sequence()
16308 (output_die): Likewise.
16310 2011-02-12 Anatoly Sokolov <aesok@post.ru>
16312 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16314 * config/xtensa/xtensa.c (xtensa_register_move_cost,
16315 xtensa_memory_move_cost): New functions.
16316 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
16318 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
16321 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
16322 in the current directory.
16323 * configure: Rebuilt.
16325 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16327 * config/darwin.c (darwin_override_options): Add a hunk missed
16328 from the commit of r168571. Trim comment line lengths and
16329 correct indents of the preceding block.
16331 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16333 * gcc.c (driver_handle_option): Concatenate the argument to -F with
16336 2011-02-11 Joseph Myers <joseph@codesourcery.com>
16338 * common.opt (nostartfiles): New Driver option.
16340 2011-02-11 Xinliang David Li <davidxl@google.com>
16342 PR tree-optimization/47707
16343 * tree-chrec.c (convert_affine_scev): Keep type precision.
16345 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
16347 PR tree-optimization/47420
16348 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
16350 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
16352 PR rtl-optimization/47614
16353 * rtl.h (check_for_inc_dec): Declare.
16354 * dse.c (check_for_inc_dec): Externalize...
16355 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
16356 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
16358 2011-02-11 Joseph Myers <joseph@codesourcery.com>
16361 * gcc.c (main): Do not compile inputs if there were errors in
16363 * opts-common.c (read_cmdline_option): Check for wrong language
16364 after other error checks.
16366 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
16368 * cgraph.c: Fix comment typos.
16369 * cgraph.h: Likewise.
16370 * cgraphunit.c: Likewise.
16371 * ipa-cp.c: Likewise.
16372 * ipa-inline.c: Likewise.
16373 * ipa-prop.c: Likewise.
16374 * ipa-pure-const.c: Likewise.
16375 * ipa-ref.c: Likewise.
16376 * ipa-reference.c: Likewise.
16378 2011-02-11 Jakub Jelinek <jakub@redhat.com>
16381 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
16383 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16386 * doc/sourcebuild.texi (Require Support): Document
16387 dg-require-ascii-locale.
16389 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
16391 * doc/lto.texi (Write summary): Fix missing parentheses.
16393 2011-02-10 DJ Delorie <dj@redhat.com>
16395 * config/m32c/m32c.c (m32c_option_override): Disable
16396 -fcombine-stack-adjustments until flag value tracking and compare
16397 optimization can be rewritten.
16399 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
16401 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
16403 (PROCESSOR_DEFAULT64): Likewise.
16405 2011-02-10 Richard Henderson <rth@redhat.com>
16407 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
16408 change from 2011-02-03.
16409 * config/rx/rx.c (flags_from_code): Likewise.
16410 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
16411 is valid, n/pz otherwise.
16412 (rx_select_cc_mode): Return CCmode if Y is not zero.
16414 2011-02-10 Richard Guenther <rguenther@suse.de>
16416 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
16418 2011-02-10 Richard Guenther <rguenther@suse.de>
16420 PR tree-optimization/47677
16421 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
16423 2011-02-10 Jakub Jelinek <jakub@redhat.com>
16426 * combine.c (make_compound_operation): Only change shifts into
16427 multiplication for SCALAR_INT_MODE_P.
16429 2011-02-10 Jie Zhang <jie@codesourcery.com>
16433 2011-02-05 Jie Zhang <jie@codesourcery.com>
16435 * web.c (entry_register): Don't clobber the number of the
16436 first uninitialized reference in used[].
16438 2011-02-09 Richard Guenther <rguenther@suse.de>
16440 PR tree-optimization/47664
16441 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
16444 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
16448 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
16450 (PROCESSOR_DEFAULT64): Same.
16451 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
16453 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16455 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
16457 2011-02-09 Martin Jambor <mjambor@suse.cz>
16459 PR middle-end/45505
16460 * tree-sra.c (struct access): New flags grp_scalar_read and
16461 grp_scalar_write. Changed description of assignment read and write
16463 (dump_access): Dump new flags, reorder all of them.
16464 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
16465 to detect multiple scalar reads.
16466 (analyze_access_subtree): Use the new scalar read write flags instead
16467 of the old flags. Adjusted comments.
16469 2011-02-08 DJ Delorie <dj@redhat.com>
16472 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
16475 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16477 * config/m68k/uclinux.opt: New.
16478 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
16480 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16482 * config/cris/elf.opt (sim): New Driver option.
16484 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16486 * config/xtensa/elf.opt: New.
16487 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
16489 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16491 * config/vax/elf.opt: New.
16492 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
16494 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16496 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
16498 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16500 * config/gnu-user.opt: New.
16501 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
16502 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
16503 *-*-uclinux*): Use gnu-user.opt.
16505 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
16507 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
16508 * config/i386/gnu.h (CPP_SPEC): Likewise.
16510 2011-02-08 Ian Lance Taylor <iant@google.com>
16512 * common.opt (fcx-limited-range): Add SetByCombined flag.
16513 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
16514 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
16515 (fassociative-math, freciprocal-math): Likewise.
16516 (funsafe-math-optimizations): Likewise.
16517 * opth-gen.awk: Handle SetByCombined.
16518 * optc-gen.awk: Likewise.
16519 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
16520 (set_unsafe_math_optimizations_flags): Likewise.
16521 * doc/options.texi (Option properties): Document SetByCombined.
16523 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16525 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
16526 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
16527 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
16528 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
16529 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
16531 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
16533 PR tree-optimization/46834
16534 PR tree-optimization/46994
16535 PR tree-optimization/46995
16536 * graphite-sese-to-poly.c (used_outside_reduction): New.
16537 (detect_commutative_reduction): Call used_outside_reduction.
16538 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
16539 translate_scalar_reduction_to_array only when at least one
16540 loop-phi/close-phi tuple has been detected.
16542 2011-02-08 Richard Guenther <rguenther@suse.de>
16544 PR middle-end/47639
16545 * tree-vect-generic.c (expand_vector_operations_1): Update
16547 (expand_vector_operations): ... not here. Cleanup EH info
16548 and the CFG if required.
16550 2011-02-08 Richard Guenther <rguenther@suse.de>
16552 PR tree-optimization/47641
16553 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
16554 require type compatibility.
16556 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16558 * gimple-low.c (lower_function_body): Don't remove the location of
16559 the return statement here.
16560 (lower_gimple_return): Do it here instead but only if the return
16561 statement is actually used twice.
16563 2011-02-08 Richard Guenther <rguenther@suse.de>
16565 PR tree-optimization/47632
16566 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
16567 unused up_to_stmt parameter, return whether cfg-cleanup is
16568 necessary, remove EH info properly.
16569 (forward_propagate_into_gimple_cond): Adjust caller.
16570 (forward_propagate_into_cond): Likewise.
16571 (forward_propagate_comparison): Likewise.
16572 (tree_ssa_forward_propagate_single_use_vars): Make
16573 forward_propagate_comparison case similar to the two others.
16575 2011-02-08 Nick Clifton <nickc@redhat.com>
16577 * config/mn10300/mn10300.opt (mliw): New command line option.
16578 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
16579 (liw_bundling): New automaton.
16580 (liw): New attribute.
16581 (liw_op): New attribute.
16582 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
16583 (movsi_internal): Add LIW attributes.
16584 (andsi3): Likewise.
16585 (iorsi3): Likewise.
16586 (xorsi3): Likewise.
16587 (addsi3): Separate register and immediate alternatives.
16588 Add LIW attributes.
16589 (subsi3): Likewise.
16591 (aslsi3): Likewise.
16592 (lshrsi3): Likewise.
16593 (ashrsi3): Likewise.
16594 (liw): New pattern.
16595 * config/mn10300/mn10300.c (liw_op_names): New
16596 (mn10300_print_operand): Handle 'W' operand descriptor.
16597 (extract_bundle): New function.
16598 (check_liw_constraints): New function.
16599 (liw_candidate): New function.
16600 (mn10300_bundle_liw): New function.
16601 (mn10300_reorg): New function.
16602 (TARGET_MACHINE_DEPENDENT_REORG): Define.
16603 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
16604 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
16605 __LIW__ or __NO_LIW__.
16606 * doc/invoke.texi: Describe the -mliw command line option.
16608 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16610 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
16611 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16612 pthread_mutex_unlock): Remove.
16613 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
16614 * config/pa/t-pa64: Likewise.
16615 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
16616 shared libc if not linking against libpthread.
16617 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
16619 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
16622 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
16623 on 10.6 and later to ensure that we always use the unwinder from
16624 the system. Only add -no_compact_unwind when tarteting darwin
16627 2011-02-07 Steve Ellcey <sje@cup.hp.com>
16630 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
16631 (vec_interleave_lowv2sf): Ditto.
16632 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
16633 (vec_extract_oddv2sf): Ditto.
16635 2011-02-07 Mike Stump <mikestump@comcast.net>
16638 Add __ieee_divdc3 entry point.
16639 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
16641 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
16642 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
16643 * config/darwin.c (darwin_rename_builtins): Add.
16644 * config/darwin-protos.h (darwin_rename_builtins): Add.
16646 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
16649 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
16652 2011-02-07 Mike Stump <mikestump@comcast.net>
16654 * config/darwin.opt (mmacosx-version-min): Update default OS version.
16656 2011-02-07 Denis Chertykov <chertykov@gmail.com>
16659 * config/avr/libgcc.S (exit): Move .endfunc
16661 2011-02-07 Richard Guenther <rguenther@suse.de>
16663 PR tree-optimization/47615
16664 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
16665 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
16666 (run_scc_vn): Initialize it.
16667 (visit_reference_op_load): Use it.
16668 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
16670 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16672 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
16673 DImode trapping arithmetic libfuncs.
16675 2011-02-07 Richard Guenther <rguenther@suse.de>
16677 PR tree-optimization/47621
16678 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
16680 (execute_update_addresses_taken): ... here. Make it more
16681 conservative in what we accept.
16683 2011-02-06 Joseph Myers <joseph@codesourcery.com>
16685 * config/sparc/freebsd.h (ASM_SPEC): Define.
16686 * config/sparc/vxworks.h (ASM_SPEC): Define.
16688 2011-02-06 Joseph Myers <joseph@codesourcery.com>
16690 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16692 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
16694 * doc/invoke.texi: Remove reference to compiler internals from
16695 user documentation.
16697 * reg-notes.def: Remove REG_VALUE_PROFILE.
16698 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
16700 2011-02-05 Jakub Jelinek <jakub@redhat.com>
16702 PR middle-end/47610
16703 * varasm.c (default_section_type_flags): If decl is NULL,
16704 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
16706 2011-02-05 Jie Zhang <jie@codesourcery.com>
16709 * web.c (entry_register): Don't clobber the number of the
16710 first uninitialized reference in used[].
16712 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
16714 PR tree-optimization/46194
16715 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
16716 (build_classic_dist_vector_1): Do not represent classic distance
16717 vectors when the access functions are variating in different loops.
16719 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16721 * config/mips/iris6.opt: New.
16722 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
16724 2011-02-04 Richard Henderson <rth@redhat.com>
16725 Steve Ellcey <sje@cup.hp.com>
16728 * config/ia64/predicates.md (mux1_brcst_element): New.
16729 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
16730 * config/ia64/ia64.c (ia64_unpack_assemble): New.
16731 (ia64_unpack_sign): New.
16732 (ia64_expand_unpack): Rewrite using new routines.
16733 (ia64_expand_widen_sum): Ditto.
16734 (ia64_expand_dot_prod_v8qi): Ditto.
16735 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
16736 routines, add endian check.
16737 (pmpy2_even): Rename from pmpy2_r, add endian check.
16738 (pmpy2_odd): Rename from pmpy2_l, add endian check.
16739 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
16740 (vec_widen_smult_hi_v4hi): Ditto.
16741 (vec_widen_umult_lo_v4hi): Ditto.
16742 (vec_widen_umult_hi_v4hi): Ditto.
16743 (mulv2si3): Change endian checks.
16744 (sdot_prodv4hi): Rewrite with new calls.
16745 (udot_prodv4hi): New.
16746 (vec_pack_ssat_v4hi): Add endian check.
16747 (vec_pack_usat_v4hi): Ditto.
16748 (vec_pack_ssat_v2si): Ditto.
16749 (max1_even): Rename from max1_r, add endian check.
16750 (max1_odd): Rename from max1_l, add endian check.
16751 (*mux1_rev): Format change.
16752 (*mux1_mix): Ditto.
16753 (*mux1_shuf): Ditto.
16754 (*mux1_alt): Ditto.
16755 (*mux1_brcst_v8qi): Use new predicate.
16756 (vec_extract_evenv8qi): Remove endian check.
16757 (vec_extract_oddv8qi): Ditto.
16758 (vec_interleave_lowv4hi): Format change.
16759 (vec_interleave_highv4hi): Ditto.
16760 (mix2_even): Rename from mix2_r, add endian check.
16761 (mix2_odd): Rename from mux2_l, add endian check.
16762 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
16763 (vec_extract_evenodd_helper): Format change.
16764 (vec_extract_evenv4hi): Remove endian check.
16765 (vec_extract_oddv4hi): Remove endian check.
16766 (vec_interleave_lowv2si): Format change.
16767 (vec_interleave_highv2si): Format change.
16768 (vec_initv2si): Remove endian check.
16769 (vecinit_v2si): Add endian check.
16770 (reduc_splus_v2sf): Add endian check.
16771 (reduc_smax_v2sf): Ditto.
16772 (reduc_smin_v2sf): Ditto.
16773 (vec_initv2sf): Remove endian check.
16774 (fpack): Add endian check.
16775 (fswap): Add endian check.
16776 (vec_interleave_highv2sf): Add endian check.
16777 (vec_interleave_lowv2sf): Add endian check.
16778 (fmix_lr): Add endian check.
16779 (vec_setv2sf): Format change.
16780 (*vec_extractv2sf_0_be): Use shift to extract operand.
16781 (*vec_extractv2sf_1_be): New.
16782 (vec_pack_trunc_v4hi): Add endian check.
16783 (vec_pack_trunc_v2si): Format change.
16785 2011-02-04 Jakub Jelinek <jakub@redhat.com>
16787 PR inline-asm/23200
16788 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
16789 do bb, locus and block comparison and disallow loads if it is not set.
16790 (stmt_is_replaceable_p): New function.
16791 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
16793 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
16794 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
16796 * tree-flow.h (stmt_is_replaceable_p): New prototype.
16798 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16800 * config/rs6000/xilinx.opt: New.
16801 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
16803 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16805 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
16807 2011-02-03 Anatoly Sokolov <aesok@post.ru>
16809 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
16810 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16811 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
16812 secondary_reload_info, xtensa_secondary_reload): Remove.
16813 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
16814 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16815 (xtensa_preferred_reload_class): Make static. Change return and
16816 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
16817 Use CONST_DOUBLE_P predicate.
16818 (xtensa_preferred_output_reload_class): New function.
16819 (xtensa_secondary_reload): Make static.
16821 2011-02-03 Joseph Myers <joseph@codesourcery.com>
16823 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
16824 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
16825 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
16827 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16829 PR middle-end/31490
16830 * output.h (SECTION_RELRO): Define.
16831 (SECTION_MACH_DEP): Adjust.
16832 (get_variable_section): New prototype.
16833 * varpool.c (varpool_finalize_named_section_flags): New function.
16834 (varpool_assemble_pending_decls): Call it.
16835 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
16836 * cgraphunit.c (cgraph_output_in_order): Call
16837 varpool_finalize_named_section_flags.
16838 * varasm.c (get_section): Allow section flags conflicts between
16839 relro and read-only sections if the section hasn't been declared yet.
16840 Set SECTION_OVERRIDE after diagnosing section type conflict.
16841 (get_variable_section): No longer static.
16842 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
16843 readonly sections that need relocations.
16844 (decl_readonly_section_1): New function.
16845 (decl_readonly_section): Use it.
16848 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
16849 Steve Ellcey <sje@cup.hp.com>
16851 PR middle-end/31490
16852 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
16853 if section attribute used.
16855 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16857 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
16858 * config/darwin.c (SECTION_NO_ANCHOR): Define.
16859 (darwin_init_sections): Remove assertion.
16861 2011-02-03 Nick Clifton <nickc@redhat.com>
16863 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
16865 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
16866 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
16867 instead of "n" and "pz".
16868 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
16871 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16874 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
16875 fma, expand FMA_EXPR as fma{,f,l} call.
16878 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
16879 copy them into a unsigned char variable and pass address of it to
16880 lto_output_data_stream.
16883 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
16884 around backend_init_target and lang_dependent_init_target calls.
16885 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
16886 (verify_cgraph_node): Don't call set_cfun here. Use
16887 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
16888 Set error_found for incorrectly represented calls to thunks.
16890 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
16893 PR rtl-optimization/43494
16894 * rtl.h (for_each_inc_dec_fn): New type.
16895 (for_each_inc_dec): Declare.
16896 * rtlanal.c (struct for_each_inc_dec_ops): New type.
16897 (for_each_inc_dec_find_inc_dec): New fn.
16898 (for_each_inc_dec_find_mem): New fn.
16899 (for_each_inc_dec): New fn.
16900 * dse.c (struct insn_size): Remove.
16901 (replace_inc_dec, replace_inc_dec_mem): Remove.
16902 (emit_inc_dec_insn_before): New fn.
16903 (check_for_inc_dec): Use it, along with for_each_inc_dec.
16904 (canon_address): Pass mem modes to cselib_lookup.
16905 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
16906 (cselib_lookup_from_insn): Likewise.
16907 (cselib_subst_to_values): Likewise.
16908 * cselib.c (find_slot_memmode): New var.
16909 (cselib_find_slot): New fn. Use it instead of
16910 htab_find_slot_with_hash everywhere.
16911 (entry_and_rtx_equal_p): Use find_slot_memmode.
16912 (autoinc_split): New fn.
16913 (rtx_equal_for_cselib_p): Rename and implement in terms of...
16914 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
16915 Deal with autoinc. Special-case recursion into MEMs.
16916 (cselib_hash_rtx): Likewise.
16917 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
16918 address and MEM modes.
16919 (cselib_subst_to_values): Add memmode, pass it on.
16921 (cselib_lookup): Add memmode argument, pass it on.
16922 (cselib_lookup_from_insn): Add memmode.
16923 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
16924 (struct cselib_record_autoinc_data): New.
16925 (cselib_record_autoinc_cb): New fn.
16926 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
16927 mode to cselib_lookup. Reset autoinced REGs here instead of...
16928 (cselib_process_insn): ... here.
16929 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
16931 (add_uses): Likewise, also to cselib_subst_to_values.
16932 (add_stores): Likewise.
16933 * sched-deps.c (add_insn_mem_dependence): Pass mode to
16934 cselib_subst_to_values.
16935 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
16936 * gcse.c (do_local_cprop): Adjusted.
16937 * postreload.c (reload_cse_simplify_set): Adjusted.
16938 (reload_cse_simplify_operands): Adjusted.
16939 * sel-sched-dump (debug_mem_addr_value): Pass mode.
16941 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
16943 PR tree-optimization/45122
16944 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
16945 unsafe assumptions when there's more than one loop exit.
16947 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16950 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16951 Document using vector double with the load/store builtins, and
16952 that the load/store builtins always use Altivec instructions.
16954 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
16955 to use altivec memory instructions, even on VSX.
16956 (vector_altivec_store_<mode>): Ditto.
16958 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
16961 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16962 V2DF, V2DI support to load/store overloaded builtins.
16964 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
16965 altivec load/store builtins for V2DF/V2DI types.
16967 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
16968 set avoid indexed addresses on power6 if -maltivec.
16969 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
16970 vector_altivec_load/vector_altivec_store builtins.
16971 (altivec_expand_st_builtin): Ditto.
16972 (altivec_expand_builtin): Add VSX memory builtins.
16973 (rs6000_init_builtins): Add V2DI types to internal types.
16974 (altivec_init_builtins): Add support for V2DF/V2DI altivec
16975 load/store builtins.
16976 (rs6000_address_for_altivec): Insure memory address is appropriate
16979 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
16980 vec_vsx_ld and vec_vsx_st.
16981 (vsx_store_<mode>): Ditto.
16983 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
16984 variables to hold long long types for VSX vector memory builtins.
16985 (RS6000_BTI_unsigned_long_long): Ditto.
16986 (long_long_integer_type_internal_node): Ditti.
16987 (long_long_unsigned_type_internal_node): Ditti.
16989 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
16990 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
16991 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
16993 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
16995 (vec_vsx_st): Ditto.
16997 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16999 * config/pa/pa-hpux10.opt: New.
17000 * config/hpux11.opt (pthread): New Driver option.
17001 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
17002 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
17004 2011-02-02 Joseph Myers <joseph@codesourcery.com>
17006 * config/ia64/vms.opt: New.
17007 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
17009 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
17012 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
17013 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
17014 generator functions.
17015 (vsx_floatuns<VSi><mode>2): Ditto.
17016 (vsx_fix_trunc<mode><VSi>2): Ditto.
17017 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
17019 2011-02-02 Joseph Myers <joseph@codesourcery.com>
17021 * config/i386/djgpp.opt (posix): New Driver option.
17023 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
17025 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
17026 Move to the unsupported targets list.
17028 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
17030 PR rtl-optimization/47525
17031 * df-scan.c: Update copyright years.
17032 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
17033 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
17035 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17037 * config/i386/sysv4.h (TARGET_VERSION): Remove.
17038 (SUBTARGET_RETURN_IN_MEMORY): Remove.
17039 (ASM_OUTPUT_ASCII): Remove.
17040 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
17042 2011-02-02 Jeff Law <law@redhat.com>
17044 PR middle-end/47543
17045 * reload.c (find_reloads_address): Handle reg+d address where both
17046 components are invalid by reloading the entire address.
17048 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
17049 Richard Guenther <rguenther@suse.de>
17051 PR tree-optimization/40979
17053 * passes.c (init_optimization_passes): After LIM call copy_prop
17054 and DCE to clean up.
17055 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
17057 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
17059 PR tree-optimization/47576
17060 PR tree-optimization/47555
17061 * doc/invoke.texi (scev-max-expr-complexity): Documented.
17062 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17063 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
17064 * tree-scalar-evolution.c (follow_ssa_edge): Use
17065 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
17067 2011-02-02 Richard Guenther <rguenther@suse.de>
17069 PR tree-optimization/47566
17070 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
17072 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
17076 * tree-inline.c (declare_return_variable): Remove unused caller
17081 * tree-flow-inline.h (clear_is_used, is_used_p): New.
17082 * cfgexpand.c (account_used_vars_for_block): Use them.
17083 * tree-nrv.c (tree_nrv): Likewise.
17084 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
17085 (dump_scope_block): Likewise.
17086 (remove_unused_locals): Likewise.
17090 * tree-inline.c (declare_return_variable): Add result decl to
17091 local decls only once.
17092 * gimple-low.c (record_vars_into): Mark newly-created variables
17095 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
17101 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17103 (no_real_insns_p, schedule_block, set_priorities): Drop special
17104 treatment of boundary debug insns.
17105 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17106 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
17107 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17108 (BOUNDARY_DEBUG_INSN_P): Likewise.
17109 (SCHEDULE_DEBUG_INSN_P): Likewise.
17110 * sched-rgn.c (init_ready_list): Drop special treatment of
17111 boundary debug insns.
17112 * final.c (rest_of_clean_state): Clear notes' BB.
17114 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17116 * config/openbsd.opt (assert=): New Driver option.
17118 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17120 * config/i386/nto.opt: New.
17121 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
17123 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17125 * config/i386/netware.opt: New.
17126 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
17128 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17130 * config/interix.opt (posix): New Driver option.
17132 2011-02-01 DJ Delorie <dj@redhat.com>
17134 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
17136 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
17139 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
17141 PR tree-optimization/47561
17142 * toplev.c (process_options): Print the Graphite flags. Add
17143 flag_loop_flatten to the list of options requiring Graphite.
17145 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17147 * config/i386/cygming.opt (posix): New Driver option.
17149 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17151 * config/arm/vxworks.opt: New.
17152 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
17154 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17156 * config/alpha/elf.opt: New.
17157 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
17158 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
17160 2011-02-01 Richard Guenther <rguenther@suse.de>
17162 PR tree-optimization/47559
17163 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
17164 store-motion on references that can throw.
17166 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
17168 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
17169 * tree-pass.h (TDF_CSELIB): New macro.
17170 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
17171 cselib_lookup): Check for it rather than for TDF_DETAILS.
17173 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
17176 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
17177 is HOST_BIT_BUCKET.
17179 * opts.c (finish_options): Don't add x_aux_base_name if it is
17182 2011-02-01 Richard Guenther <rguenther@suse.de>
17184 PR tree-optimization/47555
17186 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
17188 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17190 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
17193 * config/lm32/t-lm32: Add multilib for all CPU options.
17195 2011-02-01 Richard Guenther <rguenther@suse.de>
17197 PR tree-optimization/47541
17198 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
17199 sure to have a field at offset zero.
17201 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17203 * config/arc/arc.opt (EB, EL): New Driver options.
17205 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17207 * config/alpha/osf5.opt: New.
17208 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
17210 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17212 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
17214 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
17216 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
17217 -floop-interchange.
17218 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
17219 is an alias of -floop-interchange and that it requires the
17220 Graphite infrastructure.
17221 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
17222 flag_loop_interchange based on the value of flag_tree_loop_linear.
17224 2011-01-31 Jakub Jelinek <jakub@redhat.com>
17225 Richard Guenther <rguenther@suse.de>
17227 PR tree-optimization/47538
17228 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
17229 type instead of r1type, except for comparisons. For right
17230 shifts and comparisons punt if there are mismatches in
17231 sizetype vs. non-sizetype types.
17233 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17235 * doc/sourcebuild.texi (Effective-Target Keywords): Document
17238 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17240 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
17242 * configure: Regenerate.
17244 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17246 * configure.ac (gcc_cv_ld_static_option): Define.
17247 (gcc_cv_ld_dynamic_option): Define.
17248 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
17250 (HAVE_LD_STATIC_DYNAMIC): Update message.
17251 (LD_STATIC_OPTION): Define.
17252 (LD_DYNAMIC_OPTION): Define.
17253 * configure: Regenerate.
17254 * config.in: Regenerate.
17255 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
17256 HAVE_LD_STATIC_DYNAMIC]: Use them.
17258 2011-01-31 Nick Clifton <nickc@redhat.com>
17260 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
17261 registers inside interrupt handlers if the handler is not a leaf
17264 2011-01-31 Nick Clifton <nickc@redhat.com>
17266 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
17267 reg_renumber returning an INVALID_REGNUM.
17269 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
17272 * doc/install.texi: Document host options discarded when cross
17273 configuring target libraries.
17275 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
17278 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
17281 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17283 (no_real_insns_p, schedule_block, set_priorities): Drop special
17284 treatment of boundary debug insns.
17285 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17286 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17287 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17288 (BOUNDARY_DEBUG_INSN_P): Likewise.
17289 (SCHEDULE_DEBUG_INSN_P): Likewise.
17290 * sched-rgn.c (init_ready_list): Drop special treatment of
17291 boundary debug insns.
17292 * final.c (rest_of_clean-state): Clear notes' BB.
17294 2011-01-31 Alan Modra <amodra@gmail.com>
17296 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
17297 toc relative expressions as we do in print_operand_address.
17299 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
17301 * doc/extend.texi: Follow spelling conventions.
17302 * doc/invoke.texi: Fix a typo.
17304 2011-01-30 Joseph Myers <joseph@codesourcery.com>
17306 * config/hpux11.opt: New.
17307 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
17308 ia64*-*-hpux*): Use hpux11.opt.
17310 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
17312 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
17315 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17317 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
17320 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17322 * doc/install.texi (Binaries): Remove outdated reference for
17323 Motorola 68HC11/68HC12 downloads.
17325 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17327 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
17330 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
17333 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
17336 2011-01-28 Ahmad Sharif <asharif@google.com>
17338 * value-prof.c (check_counter): Corrected error message.
17340 2011-01-29 Jie Zhang <jie@codesourcery.com>
17342 * config/arm/arm.c (arm_legitimize_reload_address): New.
17343 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17344 arm_legitimize_reload_address.
17345 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
17347 2011-01-28 Ian Lance Taylor <iant@google.com>
17349 * godump.c (go_define): Ignore macros whose definitions include
17350 two adjacent operands.
17352 2011-01-28 Jakub Jelinek <jakub@redhat.com>
17355 * varasm.c (force_const_mem): Store copy of x in desc->constant
17356 instead of x itself.
17357 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
17358 itself into REG_EQUAL note.
17360 2011-01-28 Joseph Myers <joseph@codesourcery.com>
17362 * config/freebsd.opt (posix, rdynamic): New Driver options.
17364 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17366 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
17367 -Bstatic/-Bdynamic.
17368 * configure: Regenerate.
17370 2011-01-27 Joseph Myers <joseph@codesourcery.com>
17372 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
17373 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
17375 2011-01-27 Anatoly Sokolov <aesok@post.ru>
17377 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
17378 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
17379 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17380 (s390_preferred_reload_class): Make static. Change return and
17381 'rclass' argument type to reg_class_t.
17383 2011-01-27 Jan Hubicka <jh@suse.cz>
17385 PR middle-end/46949
17386 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
17387 (process_function_and_variable_attributes): Check defined weakrefs.
17389 2011-01-27 Martin Jambor <mjambor@suse.cz>
17391 PR tree-optimization/47228
17392 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
17393 build_ref_for_offset.
17395 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17397 * config/spu/spu-elf.h (ASM_SPEC): Remove.
17399 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
17401 PR rtl-optimization/46856
17402 * postreload.c (reload_combine_recognize_const_pattern): Do not
17403 separate cc0 setter and user on cc0 targets.
17405 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
17408 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
17409 passed a VOID_TYPE expression, immediately emit an error and
17410 return error_mark_node.
17412 2011-01-26 Jeff Law <law@redhat.com>
17414 PR rtl-optimization/47464
17415 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
17416 rather than may_trap_p as needed.
17418 2011-01-26 DJ Delorie <dj@redhat.com>
17420 PR rtl-optimization/46878
17421 * combine.c (insn_a_feeds_b): Check for the implicit cc0
17422 setter/user dependency as well.
17424 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
17426 PR rtl-optimization/44469
17427 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
17428 after removing trivially dead basic blocks.
17430 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17432 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
17433 * config/frv/frv.h (LINK_SPEC): Likewise.
17434 * config/i386/netware.h (LINK_SPEC): Likewise.
17435 * config/m68k/linux.h (ASM_SPEC): Likewise.
17436 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
17437 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17438 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17439 * config/sparc/linux.h (ASM_SPEC): Likewise.
17440 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17441 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17443 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17445 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
17446 * config/frv/frv.h (ASM_SPEC): Likewise.
17447 * config/m68k/linux.h (ASM_SPEC): Likewise.
17448 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17449 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
17450 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17451 * config/sparc/linux.h (ASM_SPEC): Likewise.
17452 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17453 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17455 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17457 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
17458 * config/frv/frv.h (LINK_SPEC): Likewise.
17459 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17461 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17463 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
17464 * config/frv/frv.h (ASM_SPEC): Likewise.
17465 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
17466 * config/m68k/linux.h (ASM_SPEC): Likewise.
17467 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17468 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
17469 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17470 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
17471 * config/sparc/linux.h (ASM_SPEC): Likewise.
17472 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17473 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17474 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
17476 2011-01-26 Steve Ellcey <sje@cup.hp.com>
17479 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
17481 (vec_extract_evenodd_help): Ditto.
17482 (vec_extract_evenv4hi): Ditto.
17483 (vec_extract_oddv4hi): Ditto.
17484 (vec_interleave_lowv2si): Ditto.
17485 (vec_interleave_highv2si): Ditto.
17486 (vec_extract_evenv2si): Ditto.
17487 (vec_extract_oddv2si: Ditto.
17488 (vec_pack_trunc_v2si): Ditto.
17490 2011-01-22 Jan Hubicka <jh@suse.cz>
17493 * cgraph.h (cgraph_local_info): New field can_change_signature.
17494 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
17495 signature can change.
17496 (ipcp_estimate_growth): Call sequence simplify only if calle signature
17498 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
17499 (cgraph_function_versioning): We can not change signature of functions
17500 that don't allow that.
17501 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
17502 (lto_input_node): Likewise.
17503 * ipa-inline.c (compute_inline_parameters): Compute
17504 local.can_change_signature.
17505 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
17506 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
17507 functions that can not change signature.
17508 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
17509 init_cumulative_args): Do not use local calling conventions
17510 for functions that can not change signature.
17512 2011-01-22 Jan Hubicka <jh@suse.cz>
17514 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
17516 2011-01-26 Richard Guenther <rguenther@suse.de>
17518 PR tree-optimization/47190
17519 * cgraphunit.c (process_common_attributes): New function.
17520 (process_function_and_variable_attributes): Use it.
17522 2011-01-26 Richard Guenther <rguenther@suse.de>
17525 * cgraphbuild.c (record_eh_tables): Record reference to personality
17528 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
17531 * sel-sched.c (moveup_expr): Don't let debug insns prevent
17532 non-debug insns from moving up.
17534 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
17537 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
17538 t-dlldir{,-x} fragment for build and add it to tmake_file.
17539 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
17540 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
17541 * config/i386/t-dlldir: New file.
17542 (SHLIB_DLLDIR): Define.
17543 * config/i386/t-dlldir-x: New file.
17544 (SHLIB_DLLDIR): Define.
17545 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
17546 (SHLIB_INSTALL): Use it.
17548 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
17551 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
17552 lower bound of the allowed Thumb-2 coprocessor load/store
17553 index range to -256. Add explaining comment.
17555 2011-01-25 Ian Lance Taylor <iant@google.com>
17557 * godump.c (go_define): Improve lexing of macro expansion to only
17558 accept expressions which match Go spec.
17560 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
17563 * tree.c (handle_dll_attribute): Handle it.
17564 * doc/extend.texi (@item dllexport): Mention it.
17565 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
17567 2011-01-25 Ian Lance Taylor <iant@google.com>
17569 PR tree-optimization/26854
17570 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
17571 (decl_jump_unsafe): Move higher in file, with no other change.
17572 (bind): Set has_jump_unsafe_decl if appropriate.
17573 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
17574 (check_earlier_gotos): Likewise.
17575 (c_check_switch_jump_warnings): Likewise.
17577 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
17579 * doc/invoke.texi (Warning Options): Add missing hyphen.
17580 (-fprofile-dir): Minor grammatical fixes.
17581 (-fbranch-probabilities): Likewise.
17583 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
17587 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17589 (no_real_insns_p, schedule_block, set_priorities): Drop special
17590 treatment of boundary debug insns.
17591 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17592 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17593 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17594 (BOUNDARY_DEBUG_INSN_P): Likewise.
17595 (SCHEDULE_DEBUG_INSN_P): Likewise.
17596 * sched-rgn.c (init_ready_list): Drop special treatment of
17597 boundary debug insns.
17598 * final.c (rest_of_clean-state): Clear notes' BB.
17600 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17602 * Makefile.in (LAMBDA_H): Removed.
17603 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
17604 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
17605 lambda-trans.o, and tree-loop-linear.o.
17606 (lto-symtab.o): Remove dependence on LAMBDA_H.
17607 (tree-loop-linear.o): Remove rule.
17608 (lambda-mat.o): Same.
17609 (lambda-trans.o): Same.
17610 (lambda-code.o): Same.
17611 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
17612 (tree-vect-slp.o): Same.
17613 * hwint.h (gcd): Moved here.
17614 (least_common_multiple): Same.
17615 * lambda-code.c: Removed.
17616 * lambda-mat.c: Removed.
17617 * lambda-trans.c: Removed.
17618 * lambda.h: Removed.
17619 * tree-loop-linear.c: Removed.
17620 * lto-symtab.c: Do not include lambda.h.
17621 * omega.c (gcd): Removed.
17622 * passes.c (init_optimization_passes): Remove pass_linear_transform.
17623 * tree-data-ref.c (print_lambda_vector): Moved here.
17624 (lambda_vector_copy): Same.
17625 (lambda_matrix_copy): Same.
17626 (lambda_matrix_id): Same.
17627 (lambda_vector_first_nz): Same.
17628 (lambda_matrix_row_add): Same.
17629 (lambda_matrix_row_exchange): Same.
17630 (lambda_vector_mult_const): Same.
17631 (lambda_vector_negate): Same.
17632 (lambda_matrix_row_negate): Same.
17633 (lambda_vector_equal): Same.
17634 (lambda_matrix_right_hermite): Same.
17635 * tree-data-ref.h: Do not include lambda.h.
17636 (lambda_vector): Moved here.
17637 (lambda_matrix): Same.
17638 (dependence_level): Same.
17639 (lambda_transform_legal_p): Removed declaration.
17640 (lambda_collect_parameters): Same.
17641 (lambda_compute_access_matrices): Same.
17642 (lambda_vector_gcd): Same.
17643 (lambda_vector_new): Same.
17644 (lambda_vector_clear): Same.
17645 (lambda_vector_lexico_pos): Same.
17646 (lambda_vector_zerop): Same.
17647 (lambda_matrix_new): Same.
17648 * tree-flow.h (least_common_multiple): Removed declaration.
17649 * tree-parloops.c (lambda_trans_matrix): Moved here.
17650 (LTM_MATRIX): Same.
17651 (LTM_ROWSIZE): Same.
17652 (LTM_COLSIZE): Same.
17653 (LTM_DENOMINATOR): Same.
17654 (lambda_trans_matrix_new): Same.
17655 (lambda_matrix_vector_mult): Same.
17656 (lambda_transform_legal_p): Same.
17657 * tree-pass.h (pass_linear_transform): Removed declaration.
17658 * tree-ssa-loop.c (tree_linear_transform): Removed.
17659 (gate_tree_linear_transform): Removed.
17660 (pass_linear_transform): Removed.
17661 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
17662 flag_loop_interchange.
17664 2011-01-25 Jakub Jelinek <jakub@redhat.com>
17666 PR tree-optimization/47265
17667 PR tree-optimization/47443
17668 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
17669 if name still has some uses.
17671 2011-01-25 Martin Jambor <mjambor@suse.cz>
17673 PR tree-optimization/47382
17674 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
17675 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
17677 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
17679 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
17680 sjlj_except_unwind_info.
17682 2011-01-25 Richard Guenther <rguenther@suse.de>
17684 PR tree-optimization/47426
17685 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
17686 visible functions results escape.
17688 2011-01-25 Jakub Jelinek <jakub@redhat.com>
17691 * config/arm/arm.c (any_sibcall_uses_r3): New function.
17692 (arm_get_frame_offsets): Use it.
17694 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17695 Jakub Jelinek <jakub@redhat.com>
17697 PR tree-optimization/47271
17698 * tree-if-conv.c (bb_postdominates_preds): New.
17699 (if_convertible_bb_p): Call bb_postdominates_preds.
17700 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
17701 (predicate_scalar_phi): Call bb_postdominates_preds.
17703 2011-01-25 Nick Clifton <nickc@redhat.com>
17705 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
17706 * config/rx/rx.c (rx_function_value): Likewise.
17707 (rx_promote_function_mode): Likewise.
17708 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
17709 in order to make it legitimate.
17710 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
17711 make sure that the first operand is the same as the result register.
17712 (addsi3_unspec): Delete.
17713 (subdi3): Do not accept immediate operands.
17714 (subdi3_internal): Likewise.
17716 2011-01-25 Jeff Law <law@redhat.com>
17718 PR rtl-optimization/37273
17719 * ira-costs.c (scan_one_insn): Detect constants living in memory and
17720 handle them like argument loads from stack slots. Do not double
17721 count memory for memory constants and argument loads from stack slots.
17723 2011-01-25 Jakub Jelinek <jakub@redhat.com>
17725 PR tree-optimization/47427
17726 PR tree-optimization/47428
17727 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
17728 coalesce if the new root var would be TREE_READONLY.
17730 2011-01-25 Richard Guenther <rguenther@suse.de>
17732 PR middle-end/47414
17733 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
17734 correct type for TBAA.
17736 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17738 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
17739 (close_phi_written_to_memory): Call for_each_index with
17740 dr_indices_valid_in_loop.
17742 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17744 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
17745 when it is initialized.
17747 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17749 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
17750 call to graphite_find_data_references_in_stmt.
17751 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
17752 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
17753 call to graphite_find_data_references_in_stmt.
17754 (analyze_drs_in_stmts): Same.
17755 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
17756 in which the scalar analysis of indices is performed.
17757 (create_data_ref): Same. Update call to dr_analyze_indices.
17758 (find_data_references_in_stmt): Update call to create_data_ref.
17759 (graphite_find_data_references_in_stmt): Same.
17760 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
17762 (create_data_ref): Same.
17763 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
17764 call to create_data_ref.
17766 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17768 * graphite-sese-to-poly.c (build_poly_scop): Move
17769 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
17771 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17773 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
17774 VAR_DECL, PARM_DECL, and RESULT_DECL.
17776 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17778 * graphite-dependences.c (reduction_dr_1): Allow several reductions
17779 in a reduction PBB.
17780 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
17781 that have already been marked as PBB_IS_REDUCTION.
17783 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17785 * graphite-scop-detection.c (same_close_phi_node): New.
17786 (remove_duplicate_close_phi): New.
17787 (make_close_phi_nodes_unique): New.
17788 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
17790 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17792 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
17793 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
17794 of both data references to be the same.
17796 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17798 * graphite-dependences.c (build_lexicographical_constraint): Remove
17799 the gdim parameter.
17800 (build_lexicographical_constraint): Adjust call to
17801 ppl_powerset_is_empty.
17802 (dependence_polyhedron): Same.
17803 (graphite_legal_transform_dr): Same.
17804 (graphite_carried_dependence_level_k): Same.
17805 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
17807 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
17809 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17811 * graphite-sese-to-poly.c
17812 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
17813 (close_phi_written_to_memory): New.
17814 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
17817 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17819 * doc/install.texi: Update the expected version number of PPL to 0.11.
17820 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
17821 #if PPL_VERSION_MINOR < 11.
17823 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17825 * graphite-dependences.c: Include graphite-cloog-util.h.
17826 (new_poly_ddr): Inlined into dependence_polyhedron.
17827 (free_poly_ddr): Moved close by new_poly_ddr.
17828 (dependence_polyhedron_1): Renamed dependence_polyhedron.
17829 Early return NULL when ppl_powerset_is_empty returns true.
17830 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
17831 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
17832 (graphite_legal_transform_dr): Call new_poly_ddr.
17833 (graphite_carried_dependence_level_k): Same.
17834 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
17835 (dot_transformed_deps_stmt_1): Removed.
17836 (dot_deps_stmt_1): Call dot_deps_stmt_2.
17837 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
17838 (dot_deps_1): Call dot_deps_2.
17839 * Makefile.in (graphite-dependences.o): Add missing dependence on
17840 graphite-cloog-util.h.
17842 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17844 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
17845 (build_lexicographical_constraint): Same.
17846 (dependence_polyhedron_1): Same.
17847 (graphite_legal_transform_dr): Same.
17848 (graphite_carried_dependence_level_k): Same.
17849 * graphite-ppl.c (ppl_powerset_is_empty): New.
17850 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
17851 * tree-data-ref.c (dump_data_reference): Print the basic block index.
17853 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17855 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
17856 the "a followed by b" relation and document it.
17858 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17860 * graphite-dependences.c (build_lexicographical_constraint): Stop the
17861 iteration when the bag of constraints is empty.
17863 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17865 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
17867 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17869 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
17870 nest and two loop depths as parameters.
17871 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
17872 lst_perfect_nestify.
17874 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17876 * graphite-dependences.c (print_pddr): Call
17877 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
17879 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17881 * graphite-ppl.c (debug_gmp_value): New.
17882 * graphite-ppl.h (debug_gmp_value): Declared.
17884 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
17886 * doc/install.texi: Document availability of cloog-0.16.
17888 2011-01-25 Vladimir Kargov <kargov@gmail.com>
17890 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
17891 invalid postdominance info.
17893 2011-01-24 Jan Hubicka <jh@suse.cz>
17896 * doc/extend.texi (weak pragma): Drop claim that it must
17897 appear before definition.
17898 * varasm.c (merge_weak, declare_weak): Only sanity check
17899 that DECL is not output at a time it is declared weak.
17901 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
17903 * machmode.def: Fixed comments.
17905 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
17907 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
17909 2011-01-24 Paul Koning <ni1d@arrl.net>
17911 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
17914 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
17917 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
17918 (block_info): Add scanned and prev.
17919 (move_or_delete_vzeroupper_2): Return if the basic block
17920 has been scanned and the upper 128bit state is unchanged
17921 from the last scan.
17922 (move_or_delete_vzeroupper_1): Return true if the exit
17924 (move_or_delete_vzeroupper): Visit basic blocks using the
17925 work-list based algorithm based on vt_find_locations in
17928 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
17930 2011-01-24 Nick Clifton <nickc@redhat.com>
17932 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
17933 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
17934 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
17935 then define __v850e1__.
17936 * doc/invoke.texi: Document -mv850es.
17938 2011-01-24 Richard Henderson <rth@redhat.com>
17940 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
17941 compound unordered comparisons.
17942 * config/rx/rx.c (rx_split_fp_compare): Remove.
17943 * config/rx/rx-protos.h: Update.
17944 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
17945 (cbranchsf4): Don't call rx_split_fp_compare.
17946 (*cbranchsf4): Use rx_split_cbranch.
17947 (*cmpsf): Don't accept "i" constraint.
17948 (*conditional_branch): Only valid after reload.
17949 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
17951 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
17954 * config/rs6000/altivec.md (vector constant splitters): Add
17955 support for creating vector single precision constants if -mvsx is
17956 used and we would create the constant using Altivec primitives.
17958 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
17959 Richard Sandiford <rdsandiford@googlemail.com>
17961 PR rtl-optimization/47166
17962 * reload1.c (emit_reload_insns): Disable the spill_reg_store
17963 mechanism for PRE_MODIFY and POST_MODIFY.
17964 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
17967 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
17969 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
17971 2011-01-22 Jan Hubicka <jh@suse.cz>
17974 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
17976 2011-01-22 Jan Hubicka <jh@suse.cz>
17978 PR tree-optimization/43884
17980 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
17981 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
17983 2011-01-22 Anatoly Sokolov <aesok@post.ru>
17985 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
17986 * config/s390/s390.c (s390_register_move_cost,
17987 s390_memory_move_cost): New.
17988 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
17990 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17992 PR middle-end/47401
17993 * except.c (sjlj_assign_call_site_values): Move setting the
17994 crtl->uses_eh_lsda flag to ...
17995 (sjlj_mark_call_sites): ... here.
17996 (sjlj_emit_function_enter): Support NULL dispatch label.
17997 (sjlj_build_landing_pads): In a function with no landing pads
17998 that still has must-not-throw regions, generate code to register
17999 a personality function with empty LSDA.
18001 2011-01-21 Richard Henderson <rth@redhat.com>
18003 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
18005 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
18007 * compare-elim.c: New file.
18008 * Makefile.in (OBJS-common): Add it.
18009 (compare-elim.o): New.
18010 * common.opt (fcompare-elim): New.
18011 * opts.c (default_options_table): Add OPT_fcompare_elim.
18012 * tree-pass.h (pass_compare_elim_after_reload): New.
18013 * passes.c (init_optimization_passes): Add it.
18014 * recog.h: Protect against re-inclusion.
18015 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
18016 * doc/invoke.texi (-fcompare-elim): Document it.
18017 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
18018 * doc/tm.texi: Rebuild.
18020 2011-01-22 Nick Clifton <nickc@redhat.com>
18022 * config/rx/rx.md (cstoresf4): Pass comparison operator to
18023 rx_split_fp_compare.
18025 2011-01-22 Nick Clifton <nickc@redhat.com>
18027 * config/rx/rx.md (UNSPEC_CONST): New.
18028 (deallocate_and_return): Wrap the amount popped off the stack in
18029 an UNSPEC_CONST in order to stop it being rejected by
18030 -mmax-constant-size.
18031 (pop_and_return): Add a "(return)" rtx.
18032 (call): Drop the immediate operand.
18033 (call_internal): Likewise.
18034 (call_value): Likewise.
18035 (call_value_internal): Likewise.
18036 (sibcall_internal): Likewise.
18037 (sibcall_value_internal): Likewise.
18038 (sibcall): Likewise. Generate an explicit call using
18040 (sibcall_value): Likewise.
18041 (mov<>): FAIL if a constant operand is not legitimate.
18042 (addsi3_unpsec): New pattern.
18044 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
18045 (ok_for_max_constant): New function.
18046 (gen_safe_add): New function.
18047 (rx_expand_prologue): Use gen_safe_add.
18048 (rx_expand_epilogue): Likewise.
18049 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
18052 2011-01-21 Jeff Law <law@redhat.com>
18054 PR tree-optimization/47053
18055 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
18056 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
18057 statements are deleted.
18058 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
18059 is nonempty, then purge dead edges and cleanup the CFG.
18061 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18064 Temporarily revert:
18065 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18067 * tree-dfa.c (create_var_ann): Mark variable as used.
18069 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18071 PR middle-end/45566
18072 * except.c (convert_to_eh_region_ranges): Emit queued no-region
18073 notes from other section in hot/cold partitioning even if
18074 last_action is -3. Increment call_site_base.
18076 PR rtl-optimization/47366
18077 * fwprop.c (forward_propagate_into): Return bool. If
18078 any changes are made, -fnon-call-exceptions is used and
18079 REG_EH_REGION note is present, call purge_dead_edges
18080 and return true if it purged anything.
18081 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
18082 any EH edges were purged.
18084 2011-01-21 Jeff Law <law@redhat.com>
18086 PR rtl-optimization/41619
18087 * caller-save.c (setup_save_areas): Break out code to determine
18088 which hard regs are live across calls by examining the reload chains
18089 so that it is always used.
18090 Eliminate code which checked REG_N_CALLS_CROSSED.
18092 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18094 PR tree-optimization/47355
18095 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
18096 NOP has non-debug uses beyond PHIs in new_bb.
18098 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18101 * cfgexpand.c (account_used_vars_for_block): Only account vars
18102 that are annotated as used.
18103 (estimated_stack_frame_size): Don't set TREE_USED.
18104 * tree-dfa.c (create_var_ann): Mark variable as used.
18106 2011-01-21 Richard Guenther <rguenther@suse.de>
18108 PR middle-end/47395
18109 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
18111 2011-01-21 Richard Guenther <rguenther@suse.de>
18113 PR tree-optimization/47365
18114 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
18115 (vn_reference_lookup_pieces): Adjust.
18116 (vn_reference_lookup): Likewise.
18117 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
18118 (vn_reference_lookup_3): Only look through kills if in
18119 VN_WALKREWRITE mode.
18120 (vn_reference_lookup_pieces): Adjust.
18121 (vn_reference_lookup): Likewise.
18122 (visit_reference_op_load): Likewise.
18123 (visit_reference_op_store): Likewise.
18124 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
18125 (compute_avail): Likewise.
18126 (eliminate): Likewise.
18128 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18130 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
18131 DECL_IGNORED_P non-reg vars if they are used.
18133 PR tree-optimization/47391
18134 * varpool.c (const_value_known_p): Return false if
18137 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
18140 * config/i386/i386.c (ix86_local_alignment): Handle
18141 case for va_list_type_node is nil.
18142 (ix86_canonical_va_list_type): Likewise.
18144 2011-01-21 Alan Modra <amodra@gmail.com>
18146 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
18147 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
18149 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18151 * config/arm/arm.md (define_attr type): Rename f_load
18152 and f_store to f_fpa_load and f_fpa_store. Update.
18153 (write_conflict): Deal with rename fallout.
18154 (*push_fp_multi): Likewise.
18155 * config/arm/fpa.md (f_load): Use f_fpa_load.
18156 (f_store): Use f_fpa_store.
18157 (*movsf_fpa): Likewise.
18158 (*movdf_fpa): Likewise.
18159 (*movxf_fpa): Likewise.
18160 (*thumb2_movsf_fpa): Likewise.
18161 (*thumb2_movdf_fpa): Likewise.
18162 (*thumb2_movxf_fpa): Likewise.
18163 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
18164 f_loadd and f_stored.
18165 (*thumb2_movdi_vfp): Likewise.
18166 (*thumb2_movsf_vfp): Fix attribute to f_loads.
18167 (*thumb2_movsi_vfp): Likewise.
18168 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
18169 Use f_loads instead of f_load.
18170 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
18172 2011-01-20 Anatoly Sokolov <aesok@post.ru>
18174 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18175 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
18176 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18177 (xtensa_mode_dependent_address_p): New function.
18178 (constantpool_address_p): Make static. Change return type to bool.
18179 Change argument type to const_rtx. Use CONST_INT_P predicate.
18181 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
18184 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
18186 2011-01-20 Jakub Jelinek <jakub@redhat.com>
18189 * cfgexpand.c (expand_debug_expr): Instead of generating
18190 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
18193 2011-01-20 Richard Guenther <rguenther@suse.de>
18195 PR middle-end/47370
18196 * tree-inline.c (remap_gimple_op_r): Recurse manually for
18197 the pointer operand of MEM_REFs.
18199 2011-01-20 Jakub Jelinek <jakub@redhat.com>
18201 PR tree-optimization/46130
18202 * ipa-split.c (consider_split): If return_bb contains non-virtual
18203 PHIs other than for retval or if split_function would not adjust it,
18206 2011-01-20 Richard Guenther <rguenther@suse.de>
18208 PR tree-optimization/47167
18209 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
18210 Revert previous change, only avoid enumeral type changes.
18212 2011-01-19 Mike Stump <mikestump@comcast.net>
18214 * doc/tm.texi.in (BRANCH_COST): Englishify.
18215 * doc/tm.texi (BRANCH_COST): Likewise.
18217 2011-01-19 Dodji Seketeli <dodji@redhat.com>
18220 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
18221 (gen_scheduled_generic_parms_dies): New functions.
18222 (gen_struct_or_union_type_die): Schedule template parameters DIEs
18223 generation for the end of CU compilation.
18224 (dwarf2out_finish): Generate template parameters DIEs here.
18226 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18229 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
18230 debug bind stmt on merge edges.
18232 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18236 * function.c (instantiate_expr): Instantiate incoming rtl of
18237 implicit arguments, and recurse on VALUE_EXPRs.
18238 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
18239 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
18241 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18243 * c-parser.c (c_parser_for_statement): Initialize
18244 collection_expression.
18246 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18248 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
18250 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18252 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
18253 (LINK_SHLIB_SPEC): Don't use %(link_path).
18254 (SUBTARGET_EXTRA_SPECS): Remove link_path.
18256 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18258 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
18259 (NO_SHARED_LIB_SUPPORT): Remove.
18260 (LINK_SHLIB_SPEC): Remove one conditional definition.
18262 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18264 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
18266 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
18267 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
18268 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
18269 %{call_shared} and conditionals on these options not being passed.
18270 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
18273 2011-01-19 Jakub Jelinek <jakub@redhat.com>
18275 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
18278 * ipa-split.c: Spelling fixes.
18280 2011-01-19 Richard Henderson <rth@redhat.com>
18282 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
18283 (*mulsi3): Likewise.
18285 * longlong.h [__mn10300__] (count_leading_zeros): New.
18286 [__mn10300__] (umul_ppmm, smul_ppmm): New.
18287 [__mn10300__] (add_ssaaaa, subddmmss): New.
18288 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
18289 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
18291 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18293 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
18295 2011-01-19 Richard Henderson <rth@redhat.com>
18297 * config/mn10300/mn10300.md (addsi3_flags): New.
18298 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
18299 (subsi3_flags, subc_internal, subdi3): New.
18300 (subdi3_internal, *subdi3_degenerate): New.
18301 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
18303 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
18304 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
18305 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
18306 * config/mn10300/mn10300-protos.h: Update.
18307 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
18308 (return_ret): Likewise. Rename from return_internal_regs.
18309 (return_internal): Remove.
18311 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
18312 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
18313 (mn10300_legitimate_constant_p): Likewise.
18314 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
18315 (mn10300_frame_size): New.
18316 (mn10300_expand_prologue): Use it.
18317 (mn10300_expand_epilogue): Likewise.
18318 (mn10300_initial_offset): Likewise.
18319 * config/mn10300/mn10300-protos.h: Update.
18320 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
18321 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
18322 (prologue, epilogue, return_internal): Tidy output code.
18323 (mn10300_store_multiple_operation, return): Likewise.
18324 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
18325 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
18326 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
18327 (load_pic, am33_load_pic): New.
18328 (mn10300_load_pic0, mn10300_load_pic1): New.
18330 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
18331 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
18332 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
18333 (cc_flags_for_mode, cc_flags_for_code): New.
18334 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
18335 overflow flag is not valid. Validate that the flags we need
18336 for the comparison are valid.
18337 (mn10300_output_cmp): Remove.
18338 (mn10300_output_add): New.
18339 (mn10300_select_cc_mode): Use cc_flags_for_code.
18340 (mn10300_split_cbranch): New.
18341 (mn10300_match_ccmode): New.
18342 (mn10300_split_and_operand_count): New.
18343 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
18345 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
18346 (addsi3): ... here. Use mn10300_output_add.
18347 (*addsi3_flags): New.
18348 (*am33_subsi3, *mn10300_subsi3): Merge...
18349 (subsi3): ... here. Use attribute isa.
18350 (*subsi3_flags): New.
18351 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
18353 (*am33_andsi3, *mn10300_andsi3): Merge...
18354 (andsi3): ... here.
18355 (*andsi3_flags): New.
18356 (andsi3 splitters): New.
18357 (*am33_iorsi3, *mn10300_iorsi3): Merge...
18358 (iorsi3): ... here.
18359 (*iorsi3_flags): New.
18360 (*am33_xorsi3, *mn10300_xorsi3): Merge...
18361 (xorsi3): ... here.
18362 (*xorsi3_flags): New.
18363 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
18364 (one_cmplsi2): ... here.
18365 (*one_cmplsi2_flags): New.
18366 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
18367 instead of "dax" in constraints. Use mn10300_split_cbranch.
18368 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
18369 use matching constraints to eliminate a self-comparison.
18370 (*integer_conditional_branch): Rename from integer_conditional_branch.
18371 Use int_mode_flags to match CC_REG.
18372 (*cbranchsi4_btst, *btstsi): New.
18373 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
18374 mn10300_split_cbranch.
18375 (*am33_cmpsf): Rename from am33_cmpsf.
18376 (*float_conditional_branch): Rename from float_conditional_branch.
18377 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
18378 (zero_extendqisi2): ... here.
18379 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
18380 (zero_extendhisi2): ... here.
18381 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
18382 (extendqisi2): ... here.
18383 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
18384 (extendhisi2): ... here.
18385 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
18386 (ashlsi3): ... here.
18387 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
18388 (lshrsi3): ... here.
18389 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
18390 (ashrsi3): ... here.
18391 (consecutive add peephole): Remove.
18392 * config/mn10300/predicates.md (label_ref_operand): New.
18393 (int_mode_flags): New.
18394 (CCZN_comparison_operator): New.
18396 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
18397 (throughput_42_latency_43): New reservation.
18398 (mulsidi3, umulsidi3): New expanders.
18399 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
18400 the MDR register to allocation; separately allocate the low and
18401 high parts of the DImode result.
18402 (umulsidi3_internal): Similarly.
18403 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
18404 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
18405 (udivsi3, umodsi3): Remove.
18406 (udivmodsi4, divmodsi4): New expanders.
18407 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
18408 (*divmodsi4): Simiarly.
18409 (ext_internal): New.
18411 * config/mn10300/constraints.md ("z"): New constraint.
18412 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
18413 (FIXED_REGISTERS): Don't fix MDR.
18414 (CALL_USED_REGSITERS): Reformat nicely.
18415 (REG_ALLOC_ORDER): Add MDR.
18416 (enum regclass): Add MDR_REGS.
18417 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
18418 (IRA_COVER_CLASSES): Add MDR_REGS.
18419 (REGNO_REG_CLASS): Handle MDR_REG.
18420 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
18421 (mn10300_register_move_cost): Likewise.
18422 * config/mn10300/mn10300.md (MDR_REG): New.
18423 (*movsi_internal): Handle moves to/from MDR_REGS.
18425 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
18427 (mn10300_secondary_reload): Tidy combination reload classes.
18428 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
18429 addresses for AM33. Allow symbolic offsets for reg+imm.
18430 (mn10300_regno_in_class_p): New.
18431 (mn10300_legitimize_reload_address): New.
18432 * config/mn10300/mn10300.h (enum reg_class): Remove
18433 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
18434 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
18435 SP_OR_GENERAL_REGS.
18436 (REG_CLASS_NAMES): Update to match.
18437 (REG_CLASS_CONTENTS): Likewise.
18438 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
18439 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
18440 (REGNO_IN_RANGE_P): Remove.
18441 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
18442 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
18443 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
18444 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
18445 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
18446 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
18447 (REGNO_GENERAL_P): New.
18448 (HAVE_POST_MODIFY_DISP): New.
18449 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
18450 (LEGITIMIZE_RELOAD_ADDRESS): New.
18451 * config/mn10300/mn10300-protos.h: Update.
18453 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
18454 DATA_REGS for AM33 stack-pointer destination.
18455 (mn10300_preferred_output_reload_class): Likewise.
18456 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
18457 into a form appropriate for ...
18458 (TARGET_SECONDARY_RELOAD): New.
18459 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
18460 * config/mn10300/mn10300-protos.h: Update.
18461 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
18462 reload_insi; use the "A" constraint for the scratch; handle AM33
18463 moves of sp to non-address registers.
18465 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
18466 (*movqi_internal): ... here.
18467 (*am33_movhi, *mn10300_movhi): Merge into...
18468 (*movhi_internal): ... here.
18469 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
18470 as the source/destination of moves from/to SP.
18471 (movsf): Only allow for AM33-2.
18472 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
18473 any integer constant constraint. Only allow for AM33-2. Tidy
18474 all of the alternative outputs.
18475 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
18476 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
18478 (udivsi3, umodsi3): New patterns for MN103 only.
18480 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
18482 * doc/tm.texi.in: Spell out that a lack of register class unions
18484 * doc/tm.texi: Regenerate.
18486 2011-01-19 Jakub Jelinek <jakub@redhat.com>
18488 PR rtl-optimization/47337
18489 * dce.c (check_argument_store): New function.
18490 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
18492 PR tree-optimization/47290
18493 * tree-eh.c (infinite_empty_loop_p): New function.
18494 (cleanup_empty_eh): Use it.
18496 2011-01-18 Steve Ellcey <sje@cup.hp.com>
18499 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
18500 (a64_expand_widen_sum): Ditto.
18501 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
18502 (vec_extract_evenodd_help): Ditto.
18503 (vec_extract_evenv4hi): Ditto.
18504 (vec_extract_oddv4hi): Ditto.
18505 (vec_extract_evenv2si): Ditto.
18506 (vec_extract_oddv2si): Ditto.
18507 (vec_extract_evenv2sf): Ditto.
18508 (vec_extract_oddv2sf): Ditto.
18509 (vec_pack_trunc_v4hi: Ditto.
18510 (vec_pack_trunc_v2si): Ditto.
18511 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
18512 (vec_interleave_highv8qi): Ditto.
18514 (vec_extract_oddv8qi): Ditto.
18515 (vec_interleave_lowv4hi): Ditto.
18516 (vec_interleave_highv4hi): Ditto.
18517 (vec_interleave_lowv2si): Ditto.
18518 (vec_interleave_highv2si): Ditto.
18520 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18522 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
18523 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
18524 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
18525 (pa_c_mode_for_suffix): New.
18526 (TARGET_EXPAND_BUILTIN): Define.
18527 (TARGET_C_MODE_FOR_SUFFIX): Define.
18528 (pa_builtins): Define.
18529 (pa_init_builtins): Register __float128 type and init new support
18531 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
18532 * config/pa/quadlib.c (_U_Qfcopysign): New.
18534 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
18536 PR middle-end/46894
18537 * explow.c (allocate_dynamic_stack_space): Do not assume more than
18538 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
18541 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18543 PR tree-optimization/47179
18544 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
18545 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
18547 2011-01-18 Richard Guenther <rguenther@suse.de>
18549 PR rtl-optimization/47216
18550 * emit-rtl.c: Include tree-flow.h.
18551 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
18552 of replicating it with different semantics.
18553 * Makefile.in (emit-rtl.o): Adjust.
18555 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18557 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
18558 (cortex_a9_dp): Handle neon types correctly.
18560 2011-01-18 Jakub Jelinek <jakub@redhat.com>
18562 PR rtl-optimization/47299
18563 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
18564 subtarget. Use normal multiplication if both operands are constants.
18565 * expmed.c (expand_widening_mult): Don't try to optimize constant
18566 multiplication if op0 has VOIDmode. Convert op1 constant to mode
18569 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18571 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
18572 spacing after 'e.g.', typos, comma, hyphenation.
18574 2011-01-17 Richard Henderson <rth@redhat.com>
18576 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
18577 (rx_restricted_mem_operand): New.
18578 (rx_shift_operand): Use register_operand.
18579 (rx_source_operand, rx_compare_operand): Likewise.
18580 * config/rx/rx.md (addsi3_flags): New expander.
18581 (adddi3): Rewrite as expander.
18582 (adc_internal, *adc_flags, adddi3_internal): New patterns.
18583 (subsi3_flags): New expander.
18584 (subdi3): Rewrite as expander.
18585 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
18587 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
18588 (rx_init_builtins): Remove sat builtin.
18589 (rx_expand_builtin): Likewise.
18590 * config/rx/rx.md (ssaddsi3): New.
18591 (*sat): Rename from sat. Represent the CC_REG input.
18593 * config/rx/predicates.md (rshift_operator): New.
18594 * config/rx/rx.c (rx_expand_insv): Remove.
18595 * config/rx/rx-protos.h: Update.
18596 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
18597 operand to the canonical position.
18598 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
18599 (*bitclr, *bitclr_in_memory): Similarly.
18600 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
18601 (insv): Retain the zero_extract in the expansion.
18603 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
18604 (bswaphi2, bitinvert, revw): Likewise.
18606 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
18607 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
18608 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
18609 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
18610 (bitset, bitset_in_memory): Likewise.
18611 (bitinvert, bitinvert_in_memory): Likewise.
18612 (bitclr, bitclr_in_memory): Likewise.
18613 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
18614 (rx_strend, rx_cmpstrn): Likewise.
18615 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
18616 (bitop peep2 patterns): Remove.
18618 * config/rx/rx.c (rx_match_ccmode): New.
18619 * config/rx/rx-protos.h: Update.
18620 * config/rx/rx.md (abssi2): Clobber, don't set flags.
18621 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
18622 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
18623 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
18624 (fix_truncsfsi2, floatsisf2): Likewise.
18625 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
18626 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
18627 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
18628 (*subsi3_flags, *xorsi3_flags): New.
18630 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
18632 * config/rx/rx.c (rx_print_operand): Remove workaround for
18633 unsplit comparison operations.
18635 * config/rx/rx.md (movsicc): Split after reload.
18636 (*movsicc): Merge *movsieq and *movsine via match_operator.
18637 (*stcc): New pattern.
18639 * config/rx/rx.c (rx_float_compare_mode): Remove.
18640 * config/rx/rx.h (rx_float_compare_mode): Remove.
18641 * config/rx/rx.md (cstoresi4): Split after reload.
18642 (*sccc): New pattern.
18644 * config/rx/predicates.md (label_ref_operand): New.
18645 (rx_z_comparison_operator): New.
18646 (rx_zs_comparison_operator): New.
18647 (rx_fp_comparison_operator): New.
18648 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
18649 Validate that the flags are set properly for the comparison.
18650 (rx_gen_cond_branch_template): Remove.
18651 (rx_cc_modes_compatible): Remove.
18652 (mode_from_flags): New.
18653 (flags_from_code): Rename from flags_needed_for_conditional.
18654 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
18655 (rx_select_cc_mode): Likewise.
18656 (rx_split_fp_compare): New.
18657 (rx_split_cbranch): New.
18658 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
18659 (*cbranchsi4): Use match_operator and rx_split_cbranch.
18660 (*cbranchsf4): Similarly.
18661 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
18662 match_operator and rx_split_cbranch.
18663 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
18664 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
18665 (*cmpsi): Rename from cmpsi.
18666 (*tstsi): Rename from tstsi.
18667 (*cmpsf): Rename from cmpsf; use CC_Fmode.
18668 (*conditional_branch): Rename from conditional_branch.
18669 (*reveresed_conditional_branch): Remove.
18670 (b<code>): Remove expander.
18671 * config/rx/rx-protos.h: Update.
18673 * config/rx/rx.c (rx_compare_redundant): Remove.
18674 * config/rx/rx.md (cmpsi): Don't use it.
18675 * config/rx/rx-protos.h: Update.
18677 * config/rx/rx-modes.def (CC_F): New mode.
18678 * config/rx/rx.c (rx_select_cc_mode): New.
18679 * config/rx/rx.h (SELECT_CC_MODE): Use it.
18680 * config/rx/rx-protos.h: Update.
18682 2011-01-17 Richard Henderson <rth@redhat.com>
18684 * except.c (dump_eh_tree): Fix stray ; after for statement.
18686 2011-01-17 Richard Guenther <rguenther@suse.de>
18688 PR tree-optimization/47313
18689 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
18690 handling before copying the body. Properly deal with
18691 by-reference result in SSA form.
18693 2011-01-17 Ian Lance Taylor <iant@google.com>
18696 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
18697 (struct_value_alias_set): Don't define.
18698 (sparc_option_override): Don't set sparc_sr_alias_set and
18699 struct_value_alias_set.
18700 (save_or_restore_regs): Use gen_frame_mem rather than calling
18702 (sparc_struct_value_rtx): Likewise.
18704 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
18707 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
18708 (_mm_maskstore_pd): Likewise.
18709 (_mm_maskload_ps): Likewise.
18710 (_mm_maskstore_ps): Likewise.
18711 (_mm256_maskload_pd): Change mask to __m256i.
18712 (_mm256_maskstore_pd): Likewise.
18713 (_mm256_maskload_ps): Likewise.
18714 (_mm256_maskstore_ps): Likewise.
18716 * config/i386/i386-builtin-types.def: Updated.
18717 (ix86_expand_special_args_builtin): Likewise.
18719 * config/i386/i386.c (bdesc_special_args): Update
18720 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
18721 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
18722 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
18723 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
18725 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
18726 Use <avxpermvecmode> on mask register.
18727 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
18729 2011-01-17 Olivier Hainque <hainque@adacore.com>
18730 Michael Haubenwallner <michael.haubenwallner@salomon.at>
18731 Eric Botcazou <ebotcazou@adacore.com>
18734 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
18735 if <= USHRT_MAX in 32-bit mode.
18737 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18739 * doc/install.texi (Configuration, Specific): Wrap long
18740 lines in examples. Allow line wrapping in long options
18741 and URLs where beneficial for PDF output.
18743 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
18745 * config/mips/mips.c (mips_classify_symbol): Don't return
18746 SYMBOL_PC_RELATIVE for nonlocal labels.
18748 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
18750 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
18752 2011-01-15 Jan Hubicka <jh@suse.cz>
18754 PR tree-optimization/47276
18755 * ipa.c (function_and_variable_visibility): Do not try to mark alias
18756 declarations as needed.
18758 2011-01-15 Martin Jambor <mjambor@suse.cz>
18760 * common.opt (fdevirtualize): New flag.
18761 * doc/invoke.texi (Option Summary): Document it.
18762 * opts.c (default_options_table): Add devirtualize flag.
18763 * ipa-prop.c (detect_type_change): Return immediately if
18764 devirtualize flag is not set.
18765 (detect_type_change_ssa): Likewise.
18766 (compute_known_type_jump_func): Likewise.
18767 (ipa_analyze_virtual_call_uses): Likewise.
18769 2011-01-14 Martin Jambor <mjambor@suse.cz>
18771 PR tree-optimization/45934
18772 PR tree-optimization/46302
18773 * ipa-prop.c (type_change_info): New type.
18774 (stmt_may_be_vtbl_ptr_store): New function.
18775 (check_stmt_for_type_change): Likewise.
18776 (detect_type_change): Likewise.
18777 (detect_type_change_ssa): Likewise.
18778 (compute_complex_assign_jump_func): Check for dynamic type change.
18779 (compute_complex_ancestor_jump_func): Likewise.
18780 (compute_known_type_jump_func): Likewise.
18781 (compute_scalar_jump_functions): Likewise.
18782 (ipa_analyze_virtual_call_uses): Likewise.
18783 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
18785 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18787 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
18788 * config/i386/i386.opt (msse5): New Alias.
18790 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18792 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
18793 * config/sparc/linux64.h (CC1_SPEC): Likewise.
18794 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18795 * config/sparc/sparc.h (CC1_SPEC): Likewise.
18797 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18799 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
18801 * config/sparc/linux64.h (CC1_SPEC): Likewise.
18802 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18803 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
18804 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
18806 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
18808 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18810 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
18812 2011-01-14 Mike Stump <mikestump@comcast.net>
18814 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
18815 * config/fr30/fr30.md: Likweise
18816 (movsi_push): Likewise.
18817 (movsi_pop): Likewise.
18818 (enter_func): Likewise.
18819 * config/moxie/moxie.md (movsi_push): Likewise.
18820 (movsi_pop): Likewise.
18822 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18824 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
18825 %{no_archive} %{exact_version}.
18826 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
18827 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
18828 %{no_archive} %{exact_version}.
18829 * config/mips/openbsd.h (LINK_SPEC): Likewise.
18830 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
18831 * config/mips/vxworks.h: Likewise.
18833 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18835 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
18837 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18839 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
18840 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
18842 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18844 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
18847 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18849 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
18851 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
18852 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
18854 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
18855 Don't handle -shlib.
18857 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18859 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
18860 (CC1_SPEC): Don't handle -profile.
18862 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18864 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
18865 * config/mips/mips.h (CC1_SPEC): Likewise.
18867 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18869 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
18870 * config/mips/mips.h (CC1_SPEC): Likewise.
18872 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18874 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
18875 * config/m32r/linux.h (LINK_SPEC): Likewise.
18876 * config/mips/linux.h (LINK_SPEC): Likewise.
18877 * config/mips/linux64.h (LINK_SPEC): Likewise.
18878 * config/sparc/linux.h (LINK_SPEC): Likewise.
18879 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
18880 LINK_SPEC): Likewise.
18881 * config/xtensa/linux.h (LINK_SPEC): Likewise.
18883 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18885 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
18887 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
18889 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18891 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
18892 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
18894 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18896 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
18898 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18900 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
18901 supports -Bstatic/-Bdynamic.
18902 * configure: Regenerate.
18904 2011-01-14 Jan Hubicka <jh@suse.cz>
18905 Jack Howarth <howarth@bromo.med.uc.edu>
18908 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
18909 when checking debug_info_level. Test write_symbols instead of
18910 debug_hooks->var_location when setting flag_var_tracking_uninit.
18912 2011-01-14 Richard Guenther <rguenther@suse.de>
18914 PR tree-optimization/47179
18915 * target.def (ref_may_alias_errno): New target hook.
18916 * targhooks.h (default_ref_may_alias_errno): Declare.
18917 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
18918 (default_ref_may_alias_errno): New function.
18919 * target.h (struct ao_ref_s): Declare.
18920 * tree-ssa-alias.c: Include target.h.
18921 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
18922 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
18923 (targhooks.o): Likewise.
18924 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
18925 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
18927 2011-01-14 Richard Guenther <rguenther@suse.de>
18929 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
18931 2011-01-14 Richard Guenther <rguenther@suse.de>
18933 PR tree-optimization/47280
18934 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
18935 return CFG changes.
18936 (tree_ssa_forward_propagate_single_use_vars): Deal with
18937 CFG changes from associate_plusminus.
18939 2011-01-14 Richard Guenther <rguenther@suse.de>
18941 PR middle-end/47281
18943 2011-01-11 Richard Guenther <rguenther@suse.de>
18945 PR tree-optimization/46076
18946 * tree-ssa.c (useless_type_conversion_p): Conversions from
18947 unprototyped to empty argument list function types are useless.
18949 2011-01-14 Richard Guenther <rguenther@suse.de>
18951 PR tree-optimization/47286
18952 * tree-ssa-structalias.c (new_var_info): Register variables are global.
18954 2011-01-14 Martin Jambor <mjambor@suse.cz>
18956 PR middle-end/46823
18957 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
18959 2011-01-13 Anatoly Sokolov <aesok@post.ru>
18961 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
18962 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18963 * config/xtensa/xtensa.c (xtensa_libcall_value,
18964 xtensa_function_value_regno_p): New functions.
18965 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
18967 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
18970 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
18972 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
18973 New function prototype.
18974 * config/i386/winnt.c (i386_pe_assemble_visibility):
18975 Warn only if attribute was specified by user.
18977 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
18980 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
18982 (floatunsdidf2_fcfidu): Ditto.
18984 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18986 * config/s390/s390.c (print_operand_address): Replace 'error' with
18987 'output_operand_lossage'.
18988 (print_operand): Likewise.
18990 2011-01-13 Jeff Law <law@redhat.com>
18992 PR rtl-optimization/39077
18993 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
18994 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
18995 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
18996 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
18997 * gcse.c (prune_insertions_deletions): New function.
18998 (compute_pre_data): Use it.
19000 2011-01-13 Dodji Seketeli <dodji@redhat.com>
19003 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
19005 (prune_unused_types_mark): Use it.
19007 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
19009 PR rtl-optimization/45352
19010 * sel-sched.c: Update copyright years.
19011 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
19012 in the advancing loop when we have issued issue_rate insns.
19014 2011-01-12 Richard Henderson <rth@redhat.com>
19016 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
19017 (TARGET_MD_ASM_CLOBBERS): New.
19019 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
19020 (TARGET_DELEGITIMIZE_ADDRESS): New.
19022 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
19023 (clzsi2, *bsch): New patterns.
19025 * config/mn10300/mn10300.md (INT): New mode iterator.
19026 (*mov<INT>_clr): New pattern, and peep2 to generate it.
19028 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
19029 flag_split_wide_types.
19031 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
19032 (mn10300_trampoline_init): Rewrite without a template, an immediate
19033 load and a direct branch.
19034 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
19036 2011-01-12 Anatoly Sokolov <aesok@post.ru>
19038 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19039 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
19040 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
19041 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19043 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
19046 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
19049 2011-01-12 Jan Hubicka <jh@suse.cz>
19052 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
19053 (PLUGIN_COND_CLOSE): New macro.
19054 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
19056 2011-01-12 Richard Guenther <rguenther@suse.de>
19059 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
19060 register variables in a MEM_REF.
19062 2011-01-12 Joseph Myers <joseph@codesourcery.com>
19064 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
19065 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
19066 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
19067 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
19068 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
19069 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
19070 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
19071 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
19072 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
19073 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
19074 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
19075 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
19076 * config/gnu-user.h: New. Copied from linux.h.
19077 (LINUX_TARGET_STARTFILE_SPEC): Rename to
19078 GNU_USER_TARGET_STARTFILE_SPEC.
19079 (LINUX_TARGET_ENDFILE_SPEC): Rename to
19080 GNU_USER_TARGET_ENDFILE_SPEC.
19081 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
19082 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
19083 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
19084 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
19085 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
19086 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
19087 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
19088 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
19089 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
19090 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
19091 * config/arm/linux-eabi.h (CC1_SPEC): Use
19092 GNU_USER_TARGET_CC1_SPEC.
19093 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
19094 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
19095 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
19096 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
19097 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
19098 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
19099 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
19100 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
19102 2011-01-12 Richard Guenther <rguenther@suse.de>
19105 * doc/invoke.texi (ffast-math): Document it is turned on
19108 2011-01-12 Jan Hubicka <jh@suse.cz>
19110 PR tree-optimization/47233
19111 * opts.c (common_handle_option): Disable ipa-reference with profile
19114 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
19116 * c-parser.c (c_parser_objc_at_property_declaration): Improved
19119 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
19121 * c-parser.c (c_lex_one_token): Updated and reindented some
19122 comments. No changes in code.
19124 2011-01-11 Ian Lance Taylor <iant@google.com>
19126 * godump.c (go_output_var): Don't output the variable if there is
19127 already a type with the same name.
19129 2011-01-11 Ian Lance Taylor <iant@google.com>
19131 * godump.c (go_format_type): Don't generate float80.
19133 2011-01-11 Richard Henderson <rth@redhat.com>
19135 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
19136 declaration. Rewrite for both speed and size.
19137 (mn10300_address_cost_1): Remove.
19138 (mn10300_register_move_cost): New.
19139 (mn10300_memory_move_cost): New.
19140 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
19141 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
19142 extensions, shifts, BSWAP, CLZ.
19143 (mn10300_wide_const_load_uses_clr): Remove.
19144 (TARGET_REGISTER_MOVE_COST): New.
19145 (TARGET_MEMORY_MOVE_COST): New.
19146 * config/mn10300/mn10300-protos.h: Update.
19147 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
19149 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
19150 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
19151 * config/mn10300/mn10300-protos.h: Update.
19152 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
19153 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
19154 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
19155 (*test_int_bitfield, *test_byte_bitfield): Remove.
19156 (*bit_test, *subreg_bit_test): Remove.
19157 * config/mn10300/predicates.md (const_8bit_operand): Remove.
19159 * config/mn10300/constraints.md ("c"): Rename from "A".
19160 ("A", "D"): New constraint letters.
19161 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
19162 (fmssf4, fnmasf4, fnmssf4): Likewise.
19164 * config/mn10300/mn10300.md (isa): New attribute.
19165 (enabled): New attribute.
19167 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
19168 (abssf2, negsf2): Define only for hardware fp.
19169 (sqrtsf2): Reformat.
19170 (addsf3, subsf3, mulsf3): Merge expander and insn.
19172 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
19173 (DEBUGGER_AUTO_OFFSET): Remove.
19174 (DEBUGGER_ARG_OFFSET): Remove.
19176 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
19177 Emit register stores with the same offsets as the hardware.
19178 (mn10300_store_multiple_operation): Don't check that the register
19179 save offsets are monotonic.
19180 * config/mn10300/mn10300-protos.h: Update.
19182 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
19184 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
19185 in terms of the value on the stack, not the MDR register.
19187 2011-01-11 Jan Hubicka <jh@suse.cz>
19191 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
19192 (symbol_alias_set_destroy, symbol_alias_set_contains,
19193 propagate_aliases_backward): Declare.
19194 * lto-streamer-out.c (struct sets): New sturcture.
19195 (trivally_defined_alias): New function.
19196 (output_alias_pair_p): Rewrite.
19197 (output_unreferenced_globals): Fix output of alias pairs.
19198 (produce_symtab): Likewise.
19199 * ipa.c (function_and_variable_visibility): Set weak alias destination
19201 * varasm.c (symbol_alias_set_t): Remove.
19202 (symbol_alias_set_destroy): Export.
19203 (propagate_aliases_forward, propagate_aliases_backward): New functions
19205 (compute_visible_aliases): ... this one; remove.
19206 (trivially_visible_alias): New
19207 (trivially_defined_alias): New.
19208 (remove_unreachable_alias_pairs): Rewrite.
19209 (finish_aliases_1): Reorganize code checking if alias is defined.
19210 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
19213 2011-01-11 Richard Guenther <rguenther@suse.de>
19215 PR tree-optimization/46076
19216 * tree-ssa.c (useless_type_conversion_p): Conversions from
19217 unprototyped to empty argument list function types are useless.
19219 2011-01-11 Richard Guenther <rguenther@suse.de>
19221 PR middle-end/45235
19222 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
19223 volatile MEMs as MEM_READONLY_P.
19225 2011-01-11 Richard Guenther <rguenther@suse.de>
19227 PR tree-optimization/47239
19228 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
19230 2011-01-11 Jeff Law <law@redhat.com>
19232 PR tree-optimization/47086
19233 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
19234 IVs from statements that might throw.
19236 2011-01-10 Jan Hubicka <jh@suse.cz>
19239 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
19241 2011-01-10 Jan Hubicka <jh@suse.cz>
19244 * profile.c (read_profile_edge_counts): Ignore profile inconistency
19245 when correcting profile.
19247 2011-01-10 Jan Hubicka <jh@suse.cz>
19250 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
19251 DECL_FINI_PRIORITY.
19252 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
19253 Restore DECL_FINI_PRIORITY.
19255 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19257 * doc/gimple.texi: Fix quoting of multi-word return values in
19258 @deftypefn statements. Ensure presence of return value. Wrap
19259 overlong @deftypefn lines.
19260 (is_gimple_operand, is_gimple_min_invariant_address): Remove
19261 descriptions of removed functions.
19262 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
19263 of multi-word return value in @deftypefn statement.
19265 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19267 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
19268 (Conditional Expressions, Logical Operators)
19269 (Statement and operand traversals): Do not indent smallexample
19270 code. Fix duplicate function argument in example.
19272 2011-01-10 Jeff Law <law@redhat.com>
19274 PR tree-optimization/47141
19275 * ipa-split.c (split_function): Handle case where we are
19276 returning a value and the return block has a virtual operand phi.
19278 2011-01-10 Jan Hubicka <jh@suse.cz>
19280 PR tree-optimization/47234
19281 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
19282 (pass_feedback_split_functions): Declare.
19283 * passes.c (init_optimization_passes): Add ipa-split as subpass of
19285 * ipa-split.c (gate_split_functions): Update comments; disable
19286 split-functions for profile_arc_flag and branch_probabilities.
19287 (gate_feedback_split_functions): New function.
19288 (execute_feedback_split_functions): New function.
19289 (pass_feedback_split_functions): New global var.
19291 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
19294 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
19295 calling gimple_call_set_cannot_inline.
19297 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
19299 * config/darwin-sections.def: Remove unused section.
19301 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
19304 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
19306 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
19309 * c-parser.c (c_parser_declaration_or_fndef): Improved
19312 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
19314 * config/i386/winnt.c (i386_pe_start_function): Make sure
19315 to switch back to function's section.
19317 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
19321 * plugin.c: Move include of dlfcn.h from here...
19322 * system.h: ... to here.
19324 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19326 * doc/cpp.texi (C++ Named Operators): Fix markup for header
19328 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
19329 two extra empty pages in PDF output.
19331 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
19334 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
19335 for error recovery purposes behave as if it was not specified so
19336 that the default type is usd.
19338 2011-01-07 Jan Hubicka <jh@suse.cz>
19340 PR tree-optmization/46469
19341 * ipa.c (function_and_variable_visibility): Clear needed flags on
19342 nodes with external decls; handle weakrefs merging correctly.
19344 2011-01-07 Joseph Myers <joseph@codesourcery.com>
19346 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
19349 2011-01-07 Jan Hubicka <jh@suse.cz>
19351 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
19352 and no longer claim that gold is required for linker plugin.
19353 * configure: Regenerate.
19354 * gcc.c (PLUGIN_COND): New macro.
19355 (LINK_COMMAND_SPEC): Use it.
19356 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
19357 * config.in (HAVE_LTO_PLUGIN): New.
19358 * configure.ac (--with-lto-plugin): New parameter; autodetect
19361 2011-01-07 Jan Hubicka <jh@suse.cz>
19363 PR tree-optimization/46367
19364 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
19365 when we can update original.
19366 (cgraph_mark_inline_edge): Sanity check.
19367 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
19369 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19371 * config/spu/spu.h (ASM_COMMENT_START): Define.
19373 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
19376 * gcc.c (%>S): New.
19377 (SWITCH_KEEP_FOR_GCC): Likewise.
19378 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
19379 (do_spec_1): Handle "%>".
19381 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
19383 2011-01-07 Jakub Jelinek <jakub@redhat.com>
19386 * config/i386/i386.c (ix86_delegitimize_address): If
19387 simplify_gen_subreg fails, return orig_x.
19390 * value-prof.c (gimple_stringop_fixed_value): Handle
19391 lhs of the call properly.
19393 2011-01-07 Jan Hubicka <jh@suse.cz>
19396 * lto-opt.c (lto_reissue_options): Set flag_shlib.
19398 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19400 * target.def (function_switched_text_sections): New hook.
19401 * doc/tm.texi: Regenerated.
19402 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19403 * final.c (default_function_switched_text_sections): New.
19404 (final_scan_insn): Call function_switched_text_sections when a
19405 mid-function section change occurs.
19406 * output.h (default_function_switched_text_sections): Declare.
19407 * config/darwin-protos.h (darwin_function_switched_text_sections):
19409 * config/darwin.c (darwin_function_switched_text_sections): New.
19410 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19412 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19414 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
19415 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
19416 the secondary code fragment when outputting for DWARF == 2.
19418 2011-01-07 Anatoly Sokolov <aesok@post.ru>
19420 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19421 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
19423 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
19424 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19426 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
19429 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
19430 when it is not empty.
19432 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
19435 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
19436 (case ${target}): Add btver1.
19437 * config/i386/driver-i386.c (host_detect_local_cpu): Let
19438 -march=native recognize btver1 processors.
19439 * config/i386/i386-c.c (ix86_target_macros_internal): Add
19440 btver1 def_and_undef
19441 * config/i386/i386.c (struct processor_costs btver1_cost): New
19443 (m_BTVER1): New definition.
19444 (m_AMD_MULTIPLE): Includes m_BTVER1.
19445 (initial_ix86_tune_features): Add btver1 tune.
19446 (processor_target_table): Add btver1 entry.
19447 (static const char *const cpu_names): Add btver1 entry.
19448 (software_prefetching_beneficial_p): Add btver1.
19449 (ix86_option_override_internal): Add btver1 instruction sets.
19450 (ix86_issue_rate): Add btver1.
19451 (ix86_adjust_cost): Add btver1.
19452 * config/i386/i386.h (TARGET_BTVER1): New definition.
19453 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
19454 (enum processor_type): Add PROCESSOR_BTVER1.
19455 * config/i386/i386.md (define_attr "cpu"): Add btver1.
19457 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19460 * config/i386/i386.c (legitimize_tls_address)
19461 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
19462 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
19463 (tls_initial_exec_64_sun): New pattern.
19465 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
19467 * doc/invoke.texi (Overall Options): Improve wording and markup
19468 of the description of -wrapper.
19470 2011-01-06 Joseph Myers <joseph@codesourcery.com>
19472 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
19473 rdynamic, threads): New Driver options.
19475 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19478 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
19479 if coming from .tdata.
19480 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
19482 2011-01-06 Jan Hubicka <jh@suse.cz>
19485 * collect2.c (main): Do not enable LTOmode when plugin is active.
19487 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19490 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
19491 --version output if supported.
19492 * configure: Regenerate.
19494 2011-01-06 Joseph Myers <joseph@codesourcery.com>
19496 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
19499 2011-01-06 Jakub Jelinek <jakub@redhat.com>
19502 * c-convert.c (convert): When converting a complex expression
19503 other than COMPLEX_EXPR to a different complex type, ensure
19504 c_save_expr is called instead of save_expr, unless in_late_binary_op.
19505 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
19506 when converting COMPLEX_TYPE.
19508 2011-01-06 Ira Rosen <irar@il.ibm.com>
19510 PR tree-optimization/47139
19511 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
19512 only the last reduction value is used outside the loop. Update
19515 2011-01-05 Joseph Myers <joseph@codesourcery.com>
19517 * config/rtems.opt: New.
19518 * config.gcc (*-*-rtems*): Use rtems.opt.
19520 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
19522 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
19523 processors do not support 3DNow instructions.
19525 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19527 * config/spu/spu.c (spu_option_override): Set parameter
19528 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
19530 2011-01-05 Jan Hubicka <jh@suse.cz>
19532 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
19533 at the command line.
19535 2011-01-05 Martin Jambor <mjambor@suse.cz>
19538 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
19539 deltas on streamed outgoing edges.
19540 (output_node_opt_summary): Output info for outgoing edges only when
19541 the node is in new parameter set.
19542 (output_cgraph_opt_summary): New parameter set, passed to the two
19543 aforementioned functions. Update its forward declaration and its
19546 2011-01-05 Tom Tromey <tromey@redhat.com>
19548 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
19549 operator to c_finish_omp_atomic.
19550 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
19551 (build_unary_op): Update.
19552 (build_modify_expr): Update.
19553 (build_asm_expr): Update.
19555 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19557 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
19558 newly inserted insns.
19559 (pad_bb): Likewise.
19560 (spu_emit_branch_hint): Likewise.
19561 (insert_hbrp_for_ilb_runout): Likewise.
19562 (spu_machine_dependent_reorg): Call df_finish_pass after
19563 schedule_insns returns.
19565 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19567 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
19569 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
19571 PR tree-optimization/47005
19572 * tree-sra.c (struct access): Add 'non_addressable' bit.
19573 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
19574 (decide_one_param_reduction): Return 0 if the parameter is passed by
19575 reference and one of the accesses in the group is non_addressable.
19577 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
19579 PR tree-optimization/47056
19580 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
19581 (mark_load): Likewise. Handle FUNCTION_DECL specially.
19582 (mark_store): Likewise. Pass STMT to ipa_record_reference.
19584 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
19586 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
19587 initializer. Skip view conversions from aggregate types.
19589 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
19592 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
19594 2011-01-04 Philipp Thomas <pth@suse.de>
19596 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
19599 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19601 * function.c (thread_prologue_and_epilogue_insns): Do not crash
19602 on empty epilogue sequences.
19604 2011-01-04 Joseph Myers <joseph@codesourcery.com>
19606 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
19607 non-static): New Driver options.
19609 2011-01-04 Jie Zhang <jie@codesourcery.com>
19612 * gcc.c (default_compilers[]): Set combinable field to 0
19613 for all assembly languages.
19615 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
19617 * config/mips/loongson3a.md: New file.
19618 * config/mips/mips.md: Include loongson3a.md.
19619 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
19622 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
19624 PR middle-end/47017
19625 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
19626 instead of convert_memory_address_addr_space on the base expression.
19628 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19630 * config/spu/spu.c (spu_option_override): Update error text
19631 for bad -march= / -mtune= values.
19633 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19635 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
19636 if branch-hint optimization will be performed.
19638 2011-01-03 Jakub Jelinek <jakub@redhat.com>
19640 PR tree-optimization/47148
19641 * ipa-split.c (split_function): Convert arguments to
19642 DECL_ARG_TYPE if possible.
19644 PR tree-optimization/47155
19645 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
19646 when computing uns.
19648 PR rtl-optimization/47157
19649 * combine.c (try_combine): If undobuf.other_insn becomes
19650 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
19651 and set *new_direct_jump_p too.
19653 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
19655 PR tree-optimization/47021
19656 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
19658 2011-01-03 Jakub Jelinek <jakub@redhat.com>
19660 * gcc.c (process_command): Update copyright notice dates.
19661 * gcov.c (print_version): Likewise.
19662 * gcov-dump.c (print_version): Likewise.
19663 * mips-tfile.c (main): Likewise.
19664 * mips-tdump.c (main): Likewise.
19666 2011-01-03 Martin Jambor <mjambor@suse.cz>
19668 PR tree-optimization/46801
19669 * tree-sra.c (type_internals_preclude_sra_p): Check whether
19670 aggregate fields start at byte boundary instead of the bit-field flag.
19672 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
19675 * gcc.c (main): Revert revision 168407.
19677 2011-01-03 Martin Jambor <mjambor@suse.cz>
19679 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
19681 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19683 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
19684 vector optab to expand vector/scalar shift, update gimple to vector.
19686 2011-01-03 Martin Jambor <mjambor@suse.cz>
19688 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
19691 2011-01-03 Martin Jambor <mjambor@suse.cz>
19693 PR tree-optimization/46984
19694 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
19696 (cgraph_create_indirect_edge): Fixed line length.
19697 (cgraph_indirect_call_info): Declare.
19698 (cgraph_make_edge_direct) Update declaration.
19699 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
19700 (cgraph_create_indirect_edge): Use it.
19701 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
19703 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
19704 the new thunk_delta representation.
19705 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
19707 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
19708 (ipa_read_indirect_edge_info): Likewise.
19709 * lto-cgraph.c (output_edge_opt_summary): New function.
19710 (output_node_opt_summary): Call it on all outgoing edges.
19711 (input_edge_opt_summary): New function.
19712 (input_node_opt_summary): Call it on all outgoing edges.
19714 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
19717 * gcc.c (main): Don't check have_o when settting combine_inputs.
19719 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
19721 * regrename.c: Add general comment describing the pass.
19722 (struct du_head): Remove 'length' field.
19723 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
19724 (regrename_optimize): Do not sort chains. Rework comments, add others.
19725 Force renaming to the preferred class (if any) in the first pass and do
19726 not consider registers that belong to it in the second pass.
19727 (create_new_chain): Do not set 'length' field.
19728 (scan_rtx_reg): Likewise.
19730 2011-01-02 Jakub Jelinek <jakub@redhat.com>
19732 PR tree-optimization/47140
19733 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
19734 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
19735 to bit_value_binop.
19737 PR rtl-optimization/47028
19738 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
19739 parm_birth_insn instead of at the beginning of first bb.
19741 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
19743 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
19744 Remove the word "see" before "@pxref".
19745 * doc/rtl.texi: Remove the word "see" before "@pxref".
19747 2011-01-01 Jan Hubicka <jh@suse.cz>
19749 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
19752 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
19755 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
19758 Copyright (C) 2011 Free Software Foundation, Inc.
19760 Copying and distribution of this file, with or without modification,
19761 are permitted in any medium without royalty provided the copyright
19762 notice and this notice are preserved.