1 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
3 PR tree-optimization/49093
4 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
7 2011-05-31 Dodji Seketeli <dodji@redhat.com>
10 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
11 for concrete functions containing the code of cloned functions.
13 2011-05-31 Richard Guenther <rguenther@suse.de>
15 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
17 (forward_propagate_into_comparison_1): ... this.
18 (forward_propagate_comparison): Rename to ...
19 (forward_propagate_into_comparison): ... this. Split out
20 real forward propagation code to ...
21 (forward_propagate_comparison): ... this.
22 (forward_propagate_into_gimple_cond): Remove looping.
23 (forward_propagate_into_cond): Likewise.
24 (simplify_not_neg_expr): Return whether we have done something.
25 (simplify_gimple_switch): Likewise.
26 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
27 (ssa_forward_propagate_and_combine): ... this. Re-structure
28 to do a forward forward-propagation walk on BBs and a backward
29 stmt combining walk on BBs. Consistently re-scan changed
31 (pass_forwprop): Adjust.
33 2011-05-30 Ian Lance Taylor <iant@google.com>
35 * godump.c (go_format_type): Correct length of name added to
36 obstack for anonymous field.
38 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
41 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
42 part of the second operand is 0.
44 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
46 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
47 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
48 to memory for !TARGET_MEMORY_MISMATCH_STALL.
49 (*movdf_internal_rex64): Do not penalize F->r alternative.
50 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
51 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
52 when optimizing function for size. Do not move CONST_DOUBLEs
53 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
54 (FP move splitters): Merge {TF,XF,DF}mode move splitters. Do not
55 handle SUBREGs. Do not check for MEM_P operands in the insn condition,
56 check for ANY_FP_REGNO_P instead.
57 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
58 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
60 * config/i386/i386.c (ix86_option_override_internal): Do not
61 set TARGET_INTEGER_DFMODE_MOVES here.
63 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
66 * config/i386/i386.md (*movtf_internal): Handle misaligned
69 2011-05-30 Jakub Jelinek <jakub@redhat.com>
71 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
72 DW_TAG_rvalue_reference_type even for
73 -gdwarf-4 -fno-debug-types-section.
75 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
77 PR tree-optimization/46728
78 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
79 (build_and_insert_binop): New.
80 (gimple_expand_builtin_pow): Reorder args for
81 build_and_insert_call; use build_and_insert_binop; add more
82 optimizations for fractional exponents.
84 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
89 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
91 * tree.h (struct tree_identifier): Inherit from tree_typed, not
93 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
94 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
95 TS_BASE instead of TS_COMMON.
96 * varasm.c (assemble_name): Remove assert.
98 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
100 * config.gcc: Keep obselete list sorted.
102 2011-05-30 Jakub Jelinek <jakub@redhat.com>
103 Eric Botcazou <ebotcazou@adacore.com>
105 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
106 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
107 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
108 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
109 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
111 2011-05-30 Richard Guenther <rguenther@suse.de>
113 * gimple.c (gimple_types_compatible_p_1): Compare record
114 and union type members properly.
116 2011-05-30 Richard Guenther <rguenther@suse.de>
118 PR tree-optimization/49210
119 * ipa-split.c (split_function): Care for the case where the
120 call result is not trivially convertible to the result holding
123 2011-05-30 Richard Guenther <rguenther@suse.de>
125 PR tree-optimization/49218
126 * tree-vrp.c (adjust_range_with_scev): Properly check whether
129 2011-05-30 Richard Guenther <rguenther@suse.de>
131 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
132 New function split out from ...
133 (forward_propagate_into_gimple_cond): ... here. Adjust.
134 (forward_propagate_into_cond): Likewise.
135 (forward_propagate_comparison): Also propagate into
136 comparisons on assignment RHS. Change return value to
137 behave similar to forward_propagate_into_cond.
138 (tree_ssa_forward_propagate_single_use_vars): Handle
139 strict-overflow warnings properly for forward_propagate_comparison.
141 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
143 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
145 * configure: Regenerate.
147 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
149 PR tree-optimization/49199
150 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
151 non-reduction operands are either defined in the loop or by induction.
153 2011-05-29 Xinliang David Li <davidxl@google.com>
155 * opts-global.c (handle_common_deferred_options): Handle new options.
156 * passes.c (register_one_dump_file): Call register_pass_name.
157 (execute_one_pass): Check explicit enable/disable flag.
158 (passr_hash): New function.
160 (register_pass_name): Ditto.
161 (get_pass_by_name): Ditto.
164 (enable_pass): Ditto.
165 (disable_pass): Ditto.
166 (is_pass_explicitly_enabled_or_disabled): Ditto.
168 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
170 * config/i386/i386.md (*movoi_internal_avx): Use
171 standard_sse_constant_opcode for alternative 0.
172 (*movti_internal_sse): Ditto.
173 (*movti_internal_rex64): Use standard_sse_constant_opcode for
175 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
177 (*movsi_internal): Ditto.
178 (*movdi_internal): Ditto. Add ssecvt type moves.
180 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
183 * rtlanal.c (simplify_subreg_regno): Adjust comment.
185 2011-05-29 Jakub Jelinek <jakub@redhat.com>
187 PR rtl-optimization/49095
188 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
189 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
191 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
194 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
195 recurse_p argument. Only follow register copies if it is set,
196 and prevent mips_find_pic_call_symbol from recursing.
197 (mips_find_pic_call_symbol): Add a recurse_p argument.
198 Pass it to mips_pic_call_symbol_from_set.
199 (mips_annotate_pic_calls): Update accordingly.
201 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
203 * emit-rtl.c (try_split): Use a loop to search for
204 NOTE_INSN_CALL_ARG_LOCATIONs.
206 2011-05-29 Richard Guenther <rguenther@suse.de>
208 PR tree-optimization/49217
209 * ipa-pure-const.c (propagate_pure_const): Fix typos.
211 2011-05-28 Jan Hubicka <jh@suse.cz>
213 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
215 (string_slot_free): Remove
216 (create_output_block): Initialize obstack.
217 (destroy_output_block): Free obstack.
218 (lto_string_index): Add PERSISTENT parameter; do not duplicate
219 the string unless it needs to be added into the hash.
220 (lto_output_string_with_length): Add persistent attribute;
222 (lto_output_string): Add PERSISTENT parameter.
223 (output_string_cst, output_identifier): Simplify.
224 (lto_output_location_bitpack): Update.
225 (lto_output_builtin_tree): Update.
226 * lto-streamer.h (struct output_block): Add obstack.
227 (lto_output_string, lto_output_string_with_length): Remove
228 declarations; functions are static now.
230 2011-05-28 Jan Hubicka <jh@suse.cz>
232 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
233 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
234 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
235 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
236 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
237 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
238 unpack_ts_decl_with_vis_value_fields,
239 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
240 lto_get_builtin_tree): Use enum and variable length i/o.
241 * basic-block.h (profile_status_d): Add PROFILE_LAST.
242 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
244 (bp_pack_enum, bp_unpack_enum): New macros.
246 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
248 * genrecog.c: Remove redundant forward declarations.
250 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
252 * config.gcc: Deprecate mips*-*-openbsd*.
254 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
257 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
260 2011-05-27 Andrew Pinski <pinskia@gmail.com>
263 * gengtype.c (vec_prefix_type): New function.
264 (note_def_vec): Use vec_prefix_type and change the length
265 attribute to be based on the prefix.
266 * vec.c: Include coretypes.h before vec.h.
267 (struct vec_prefix): Remove.
268 (vec_gc_p_reserve): Change the offsetof to sizeof.
269 (vec_gc_p_reserve_exact): Likewise.
270 (vec_heap_p_reserve): Likewise.
271 (vec_heap_p_reserve_exact): Likewise.
272 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
273 (vec_stack_p_reserve): Change the offsetof to sizeof.
274 (vec_stack_p_reserve_exact): Likewise.
275 * vec.h (struct vec_prefix): New struct definition.
276 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
277 (VEC_T_GTY(T,B)): Likewise.
278 (DEF_VEC_FUNC_P(T)): Use prefix field.
279 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
280 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
282 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
284 PR tree-optimization/46728
285 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
286 (powi_as_mults): Add gimple_set_location.
287 (build_and_insert_call): New.
288 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
289 0.5, 0.25, 0.75, 1./3., or 1./6.
291 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
293 * doc/contrib.texi: Update copyright years.
294 (Contributors): Add Zdenek Sojka.
296 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
298 * c-decl.c (c_push_function_context): Copy the current statement
300 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
301 (finish_struct): Call building_stmt_list_p instead of checking
303 * c-parser.c (c_parser_postfix_expression): Likewise.
304 * c-typeck.c (c_end_compound_stmt): Likewise.
305 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
306 * tree-iterator.c (stmt_list_cache): Change to a VEC.
307 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
308 (free_stmt_list): Likewise.
309 * tree.h (struct tree_statement_list): Include typed_tree instead
311 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
312 as TS_TYPED instead of TS_COMMON.
314 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
315 Uros Bizjak <ubizjak@gmail.com>
317 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
318 (HAVE_AS_IX86_TLSGDPTL): Define.
319 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
320 (HAVE_AS_IX86_TLSLDMPLT): Define.
321 * configure: Regenerate.
322 * config.in: Regenerate.
323 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
324 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
325 TARGET_SUN_TLS, use @tlsgdplt or @plt.
326 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
327 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
329 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
331 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
333 * sched-int.h (struct _haifa_deps_insn_data): New members cond
335 (INSN_COND, INSN_REVERSE_COND): New macros.
336 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
338 (sched_get_condition_with_rev): Cache the results, and look them up
340 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
341 are clobbered by the current insn.
342 * target.def (exposed_pipline): New sched data hook.
343 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
344 * doc/tm.texi: Regenerate.
346 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
348 PR tree-optimization/49170
349 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
352 2011-05-27 Richard Guenther <rguenther@suse.de>
355 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
358 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
360 * haifa-sched.c (sched_scan_info): Remove.
361 (schedule_block): Call sched_extend_luids rather than sched_init_luids
363 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
365 (sched_scan): Remove.
366 (sched_extend_luids): Renamed from luids_extend_insn and no longer
367 static. All callers changed.
368 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
369 static. All callers changed.
370 (sched_init_luids): Remove all arguments except the first. All
371 callers changed. Don't use sched_scan.
372 (haifa_init_h_i_d): Likewise.
373 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
374 manually rather than using sched_init_luids. Likewise with
375 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
376 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
377 rather than sched_init_luids with NULL args.
378 * sel-sched-ir.c (new_insns): Remove variable.
379 (sched_scan): New static function, previously in haifa-sched.c. Remove
380 all arguments but the first two; all callers changed.
381 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
382 rather than sched_init_luids.
383 (sel_init_bbs): Remove second argument. All callers changed.
384 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
386 (create_insn_rtx_from_pattern): Likewise.
387 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
388 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
389 (sched_init_insn_luid, sched_extend_luids): Declare.
390 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
393 2011-05-27 Richard Guenther <rguenther@suse.de>
396 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
397 A CMP B ? (T) true : (T) false for non-integral types T again.
399 2011-05-27 Jan Hubicka <jh@suse.cz>
401 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
402 so 0 means NULL string.
403 (lto_output_string_with_length): ... here.
404 (lto_output_string, output_string_cst, output_identifier): Update
405 handling of NULL strings.
406 (lto_output_location_bitpack): New function.
407 (lto_output_location): Use it.
408 (lto_output_tree_ref): Use output_record_start.
409 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
411 * lto-streamer-in.c (string_for_index): Break out from ...; offset
413 (input_string_internal): ... here;
414 (input_string_cst, input_identifier, lto_input_string): Update handling
416 (lto_input_location_bitpack): New function
417 (lto_input_location): Use it.
418 (unpack_ts_type_common_value_fields): Pack align & alias in var len
420 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
421 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
422 (bp_pack_value): Sanity check the value range.
423 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
425 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
428 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
430 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
431 call_arg_location instructions down the floor.
433 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
435 PR rtl-optimization/49154
436 * ira.c (setup_pressure_classes): Process class without sublcasses
437 as a candidate for pressure classes.
439 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
441 PR rtl-optimization/48575
442 * genrecog.c (position_type): New enum.
443 (position): New structure.
444 (decision): Use position structure instead of a string.
445 (root_pos, peep2_insn_pos_list): New variables.
446 (next_position, compare_positions): New functions.
447 (new_decision): Use position structures instead of strings.
448 (maybe_both_true): Likewise.
449 (change_state): Likewise.
450 (write_tree): Likewise.
451 (make_insn_sequence): Likewise.
453 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
455 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
456 TS_BASE instead of TS_COMMON.
457 (find_decls_types_r): Check for TS_TYPED structure before looking at
459 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
461 (BLOCK_CHAIN): Use new chain field.
463 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
465 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
466 moves expensive on Power7 also.
468 2011-05-26 Richard Guenther <rguenther@suse.de>
470 * fold-const.c (fold_unary_loc): Remove bogus code.
472 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
474 * tree.h (struct tree_identifier): Inherit from tree_typed, not
476 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
477 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
478 TS_BASE instead of TS_COMMON.
479 * varasm.c (assemble_name): Remove assert.
481 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
483 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
485 * libgcc-std.ver: Delete file.
487 2011-05-26 Richard Guenther <rguenther@suse.de>
489 PR tree-optimization/48702
490 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
491 only when we know the base address is within bounds.
492 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
493 assume the base address of TARGET_MEM_REFs is in bounds.
495 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
498 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
499 declaration in TARGET_SOLARIS.
501 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
503 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
504 The instruction is then expanded explicitly.
505 (supported_compare): Callable instruction.
508 2011-05-26 Jakub Jelinek <jakub@redhat.com>
511 * gimplify.c (shortcut_cond_r): Don't special case
512 COND_EXPRs if they have void type on one of their arms.
514 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
516 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
517 to reduce duplication, and to achieve a slightly more logical order
520 2011-05-26 Jakub Jelinek <jakub@redhat.com>
522 PR tree-optimization/49161
523 * tree-vrp.c (struct case_info): New type.
524 (compare_case_labels): Sort case_info structs instead of
525 trees, and not primarily by CASE_LABEL uids but by
526 label_for_block indexes.
527 (find_switch_asserts): Put case labels into struct case_info
528 array instead of TREE_VEC, adjust sorting, compare label_for_block
529 values instead of CASE_LABELs.
531 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
533 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
534 ("orndi3_neon"): Likewise.
535 ("bic<mode>3_neon"): Likewise.
537 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
539 PR tree-optimization/49038
540 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
541 Ensure at least one epilogue iteration if required by data
543 * tree-vectorizer.h (struct _loop_vec_info): Add new field
544 to mark loops that require peeling for gaps.
545 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
546 (vect_get_known_peeling_cost): Take peeling for gaps into
548 (vect_transform_loop): Generate epilogue if required by data
550 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
551 loop as requiring an epilogue if there are gaps in the end of
554 2011-05-25 Ian Lance Taylor <iant@google.com>
556 * godump.c (go_format_type): Output the first field with a usable
559 2011-05-25 Ian Lance Taylor <iant@google.com>
561 * godump.c (go_format_type): Check for invalid type names, pointer
562 target types, and struct field types.
564 2011-05-25 Jason Merrill <jason@redhat.com>
566 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
568 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
570 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
572 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
574 * config/i386/i386.md (*movqi_extv_1)): Put back
575 "register_operand" check in "type" calculation.
576 (*movqi_extzv_2): Likewise.
578 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
580 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
582 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
585 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
586 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
587 __divxc3, __divtc3): Wrap definitions in #ifndef.
589 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
592 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
593 "register_operand" check and replace q_regs_operand with
594 QIreg_operand in "type" calculation.
595 (*movqi_extv_1): Likewise.
596 (*movqi_extzv_2_rex64): Likewise.
597 (*movqi_extzv_2): Likewise.
599 * config/i386/predicates.md (QIreg_operand): New.
601 2011-05-25 Richard Guenther <rguenther@suse.de>
603 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
604 type-based offset disambiguation, streamline MEM_REF and
605 TARGET_MEM_REF handling.
607 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
609 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
610 (bdesc_special_args): Add pause intrinsic.
612 * config/i386/i386.md (UNSPEC_PAUSE): New.
615 * config/i386/ia32intrin.h (__pause): Likewise.
617 * doc/extend.texi (X86 Built-in Functions): Add documentation for
620 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
622 PR tree-optimization/46728
623 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
624 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
626 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
628 * tree.h (struct tree_exp): Inherit from struct tree_typed.
629 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
630 instead of TS_COMMON.
632 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
634 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
635 LIBGCC2_GNU_PREFIX is defined.
637 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
638 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
639 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
640 __clz_tab): Define using __N.
641 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
642 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
643 * target.def (libfunc_gnu_prefix): New hook.
644 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
645 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
646 * doc/tm.texi: Regenerate.
647 * system.h (LIBGCC2_GNU_PREFIX): Poison.
648 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
650 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
651 (init_optabs): Likewise for the bswap libfuncs.
652 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
654 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
655 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
656 * libgcc-std.ver: Remove.
657 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
658 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
660 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
661 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
662 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
663 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
664 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
665 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
666 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
667 * config/fixed-bit.h (FIXED_OP): Define differently depending on
668 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
669 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
671 2011-05-25 Jan Hubicka <jh@suse.cz>
673 * lto-streamer-out.c (output_record_start): Use lto_output_enum
674 (lto_output_tree): Use output_record_start.
675 * lto-streamer-in.c (input_record_start): Use lto_input_enum
676 (lto_get_pickled_tree): Use input_record_start.
677 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
678 (lto_value_range_error): New function.
679 * lto-streamer.h (lto_value_range_error): Declare.
680 (lto_output_int_in_range, lto_input_int_in_range): New functions.
681 (lto_output_enum, lto_input_enum): New macros.
683 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
685 * common.opt (flag_stack_usage_info): New variable.
686 (-Wstack-usage): New option.
687 * doc/invoke.texi (Warning options): Document -Wstack-usage.
688 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
689 <OPT_fstack_usage>: Likewise.
690 * toplev.c (output_stack_usage): Handle -Wstack-usage.
691 * calls.c (expand_call): Test flag_stack_usage_info variable instead
693 (emit_library_call_value_1): Likewise.
694 * explow.c (allocate_dynamic_stack_space): Likewise.
695 * function.c (instantiate_virtual_regs ): Likewise.
696 (prepare_function_start): Likewise.
697 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
698 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
699 * config/arm/arm.c (arm_expand_prologue): Likewise.
700 (thumb1_expand_prologue): Likewise.
701 * config/avr/avr.c (expand_prologue): Likewise.
702 * config/i386/i386.c (ix86_expand_prologue): Likewise.
703 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
704 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
705 * config/mips/mips.c (mips_expand_prologue): Likewise.
706 * config/pa/pa.c (hppa_expand_prologue): Likewise.
707 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
708 * config/s390/s390.c (s390_emit_prologue): Likewise.
709 * config/sh/sh.c (sh_expand_prologue): Likewise.
710 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
711 * config/spu/spu.c (spu_expand_prologue): Likewise.
713 2011-05-25 Richard Guenther <rguenther@suse.de>
715 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
716 (gimple_canonical_types_compatible_p): Likewise.
718 2011-05-25 Jan Hubicka <jh@suse.cz>
721 * ipa.c (function_and_variable_visibility): Only add to same
722 comdat group list if DECL_ONE_ONLY.
724 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
726 PR rtl-optimization/49014
727 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
729 2011-05-25 Jakub Jelinek <jakub@redhat.com>
732 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
734 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
736 PR rtl-optimization/48757
737 * ira-build.c (loop_with_eh_edge_p): Rename to
738 loop_with_complex_edge_p, check edges on complexity, make function
740 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
743 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
745 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
746 force flag_ira_share_save_slots to 0.
748 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
750 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
751 (vt_initialize): Set PROLOGUE_BB unconditionally.
752 Add block comment about CFA_BASE_RTX machinery.
753 Reset FP_CFA_OFFSET to -1 on all invalid paths.
754 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
756 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
759 * c-parser.c (c_parser_objc_class_instance_variables): More robust
760 parsing of syntax error in ObjC instance variable lists. In
761 particular, avoid an infinite loop if there is a stray ']'.
762 Updated error message.
764 2011-05-24 Ian Lance Taylor <iant@google.com>
766 * godump.c (go_define): Don't accept a string immediately after
769 2011-05-24 Ian Lance Taylor <iant@google.com>
771 * godump.c (struct godump_container): Add invalid_hash field.
772 (go_format_type): Return false if type is found in invalid_hash.
773 (go_output_typedef): Add invalid type to invalid_hash.
774 (go_finish): Create and delete invalid_hash.
776 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
778 PR tree-optimization/46728
779 * tree-ssa-math-opts.c (powi_table): New.
780 (powi_lookup_cost): New.
782 (powi_as_mults_1): New.
783 (powi_as_mults): New.
784 (gimple_expand_builtin_powi): New.
785 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
786 (gate_cse_sincos): Remove sincos/cexp restriction.
788 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
791 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
793 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
794 * mips-tdump.c: Likewise.
796 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
799 * config/i386/driver-i386.c (host_detect_local_cpu): Always
800 add -mno-XXX. Handle FMA.
802 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
804 PR rtl-optimization/48633
805 * ira-build.c (loop_with_eh_edge_p): New function.
806 (mark_loops_for_removal): Use it.
808 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
810 PR rtl-optimization/48971
811 * ira.c (setup_pressure_classes): Don't check register move cost
812 for classes with one registers. Don't add pressure class if there
813 is a pressure class with the same available hard registers.
814 Check contains_reg_of_mode. Fix a typo in collecting
815 temp_hard_regset. Ignore hard registers not belonging to a class.
817 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
820 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
822 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
823 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
825 PR gcov-profile/48845
826 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
828 2011-05-24 Richard Guenther <rguenther@suse.de>
830 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
831 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
832 (gimple_types_compatible_p_1): Adjust.
833 (iterative_hash_canonical_type): Do not bother about complete vs.
835 (gimple_canonical_types_compatible_p): Likewise.
837 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
839 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
841 2011-05-24 Richard Guenther <rguenther@suse.de>
844 * gimple.c (gimple_register_canonical_type): Revert
846 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
847 does not for a tree for the case where it matters. Cache
848 pointer-type alias-sets.
850 2011-05-24 Joseph Myers <joseph@codesourcery.com>
852 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
853 (OBJS): Remove options.o, opts-common.o and prefix.o.
854 (OBJS-libcommon-target): New.
855 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
856 (BACKEND): Include libcommon-target.a.
857 (MOSTLYCLEANFILES): Include libcommon-target.a.
858 (libcommon-target.a): New.
859 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
862 2011-05-23 Joseph Myers <joseph@codesourcery.com>
864 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
865 parts of output shared with the driver.
866 * optc-gen.awk: Don't generate parts of output not shared with the
868 * opth-gen.awk: Remove GCC_DRIVER conditionals.
869 * doc/options.texi (SourcerInclude): Mention options-save.c.
870 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
871 (OBJS): Add options-save.o.
872 (options-save.c, options-save.o): New.
873 (options.o): Update dependencies.
874 (gcc-options.o): Remove.
875 (mostlyclean): Remove options-save.c.
877 2011-05-23 Jakub Jelinek <jakub@redhat.com>
880 * dbxout.c: Include cgraph.h.
881 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
882 and without value expr, return NULL if no varpool node exists for
883 it or if it is not needed.
884 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
887 * c-decl.c (start_decl): Convert expr to void_type_node.
889 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
891 PR rtl-optimization/48826
892 * emit-rtl.c (try_split): When splitting a call that is followed
893 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
895 2011-05-23 Jakub Jelinek <jakub@redhat.com>
897 * cfgexpand.c (expand_debug_expr): For unused non-addressable
898 parameters passed in memory prefer using DECL_INCOMING_RTL over
899 the pseudos it will be copied into.
901 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
904 * config/i386/i386.c (ix86_option_override_internal): Save the
905 initial options after checking vzeroupper.
907 2011-05-23 David Li <davidxl@google.com>
909 PR tree-optimization/48988
910 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
911 Initialize has_valid_pred for each pred chain.
913 2011-05-23 Richard Guenther <rguenther@suse.de>
915 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
916 (iterative_hash_gimple_type): Always hash type names.
918 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
920 * c-typeck.c (build_function_call_vec): Tweak call to
921 check_function_arguments.
923 2011-05-23 Richard Guenther <rguenther@suse.de>
925 PR tree-optimization/49115
926 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
927 is not necessarily carried out, do not claim it kills the ref.
928 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
930 2011-05-23 Richard Guenther <rguenther@suse.de>
933 * builtins.c (fold_builtin_memory_op): Be less restrictive about
934 what pointer types we accept for folding.
936 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
938 * gthr-gnat.c: Remove.
939 * gthr-gnat.h: Remove.
940 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
941 * config/t-freebsd (LIB2ADDEH): Likewise.
942 * config/t-linux (LIB2ADDEH): Likewise.
943 * config/t-sol2 (LIB2ADDEH): Likewise.
944 * config/ia64/t-vms (LIB2ADDEH): Likewise.
945 * configure.ac (target_thread_file): Remove gnat handling.
946 * configure: Regenerate.
947 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
949 2011-05-23 Tristan Gingold <gingold@adacore.com>
950 Eric Botcazou <ebotcazou@adacore.com>
952 * gcov.c (create_file_names): If no object directory is specified,
953 keep the directory of the file.
955 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
957 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
958 * configure: Regenerate.
960 2011-05-23 Jakub Jelinek <jakub@redhat.com>
963 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
964 failed and the comparison has a single bit signed type, use
965 constm1_rtx instead of const1_rtx for true value.
966 (do_store_flag): If ops->type is single bit signed type, disable
967 signel bit test optimization and pass -1 instead of 1 as last
968 parameter to emit_store_flag_force.
970 2011-05-23 Tom de Vries <tom@codesourcery.com>
973 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
975 (infer_loop_bounds_from_undefined): Use new function.
977 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
979 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
980 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
981 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
983 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
985 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
987 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
988 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
991 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
993 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
995 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
997 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
998 UNSPEC_MOVE_PIC pattern.
1000 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1002 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1003 (sparc-*-rtems*): Likewise.
1004 (sparc64-*-elf*): Likewise.
1005 (sparc64-*-rtems*): Likewise.
1006 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1007 * config/sparc/t-crtin: New file.
1008 * config/sparc/t-sol2 (crti.o): Delete rule.
1010 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1011 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1012 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1013 (ENDFILE_SPEC): Add crtn.o.
1015 2011-05-22 Tom de Vries <tom@codesourcery.com>
1018 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1019 CODE_CONTAINS_STRUCT (TS_COMMON).
1021 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1024 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1025 only after deciding which mode to use.
1027 2011-05-22 Tom de Vries <tom@codesourcery.com>
1030 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1031 for call to get_shiftadd_cost.
1033 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1036 * config/i386/cpuid.h (bit_MMXEXT): New define.
1038 2011-05-22 Nick Clifton <nickc@redhat.com>
1040 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1041 initialisation of non-existant args[2] element. Use args[] array
1042 not arg[] array to pass arguments to build_function_type_list.
1044 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1046 PR tree-optimization/49087
1047 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1049 2011-05-21 Jason Merrill <jason@redhat.com>
1052 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1053 static storage duration.
1055 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1057 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1060 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1062 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1063 false if there are call-saved registers here...
1064 (sparc_can_use_return_insn_p): ...but here instead.
1065 (save_or_restore_regs): Fix thinko.
1066 (sparc_expand_prologue): Use current_function_is_leaf.
1067 (sparc_frame_pointer_required): Likewise.
1069 2011-05-21 Nick Clifton <nickc@redhat.com>
1072 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1074 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1076 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1077 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1079 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1081 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1082 * optc-gen.awk: Move common code to opt-read.awk.
1083 * opth-gen.awk: Likewise.
1084 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1086 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1088 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1090 2011-05-20 Tom de Vries <tom@codesourcery.com>
1093 * tree-ssa-loop-ivopts.c: Include expmed.h.
1094 (get_shiftadd_cost): New function.
1095 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1097 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1100 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1101 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1103 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1105 * Makefile.in: Update comment referring to $(OBJS-common).
1107 2011-05-20 Ian Lance Taylor <iant@google.com>
1109 * godump.c (go_output_typedef): Put enum constants in the macro
1110 hash table to avoid duplicate Go const definitions.
1112 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1114 * Makefile.in (LIBDEPS): Add libcommon.a.
1116 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1117 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1118 pretty-print.o and version.o.
1119 (OBJS-libcommon): New.
1120 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1121 (BACKEND): Add libcommon.a.
1122 (MOSTLYCLEANFILES): Likewise.
1124 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1125 (cpp$(exeext)): Likewise.
1126 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1127 pretty-print.o and input.o.
1128 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1129 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1131 (mips-tfile): Don't explicitly use version.o.
1132 (mips-tdump): Likewise.
1133 (gcov.o): Depend on $(DIAGNOSTIC_H).
1134 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1135 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1136 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1137 * gcov-dump.c: Include intl.h and diagnostic.h.
1138 (main): Initialize diagnostics.
1139 * gcov.c: Include diagnostic.h.
1141 (main): Initialize diagnostics.
1142 * lto-wrapper.c: Include diagnostic.h.
1143 (main): Initialize diagnostics.
1145 2011-05-20 Michael Matz <matz@suse.de>
1147 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1149 2011-05-20 Michael Matz <matz@suse.de>
1150 Richard Guenther <rguenther@suse.de>
1152 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1153 use lto_streamer_cache_append directly instead of returning a VEC.
1154 (preload_common_node): Remove.
1155 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1157 (lto_streamer_cache_create): Call lto_preload_common_nodes.
1159 2011-05-20 Richard Guenther <rguenther@suse.de>
1161 PR tree-optimization/49079
1162 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1163 MEM_REFs correctly for the trailing array access detection.
1164 Special case constants the same way as decls for overall size
1167 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
1169 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1172 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1174 PR tree-optimization/49073
1175 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1176 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1177 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1179 2011-05-20 Richard Guenther <rguenther@suse.de>
1182 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1183 of pointer types the same way the middle-end does.
1185 2011-05-20 Richard Guenther <rguenther@suse.de>
1187 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1188 or pointer-to chains. Delay all fixup to uniquify_nodes.
1190 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1192 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1193 (fma4_fmaddsub): Likewise
1195 2011-05-19 Jan Hubicka <jh@suse.cz>
1197 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1198 (GIMPLE_TYPE_PAIR_SIZE): New macro.
1199 (type_pair_cache): New static var.
1200 (lookup_type_pair): Use fixed sized custom hash; make inline.
1201 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1202 calls of lookup_type_pair.
1203 (print_gimple_types_stats): Remove cache stats.
1204 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1207 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
1209 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1210 when TARGET_RDRND is active.
1211 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1212 Generate dummy SImode target register when target is NULL.
1214 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1216 * config/arm/arm-fpus.def: New.
1217 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1219 * config/arm/arm-tables.opt: Regenerate.
1220 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1221 (arm_option_override): Don't decode FPU name to string here.
1222 * config/arm/arm.opt (mfpu=): Use Enum.
1223 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1224 Update dependencies.
1226 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1228 * collect2.c: Include diagnostic.h.
1229 (fatal_perror, fatal, error, fancy_abort): Remove.
1230 (main): Set progname. Call xmalloc_set_program_name and
1231 diagnostic_initialize.
1232 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1233 scan_libraries, resolve_lib_name): Call fatal_error instead of
1234 fatal and fatal_perror.
1235 * collect2.h (error, fatal, fatal_perror): Don't declare.
1236 * tlink.c: Include diagnostic-core.h.
1237 (recompile_files): Call fatal_error instead of fatal_perror.
1238 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1239 pretty-print.o and input.o.
1240 (collect2.o, tlink.o): Update dependencies.
1242 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1244 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1246 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1249 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1250 COMDAT group syntax, both SPARC and x86 variants.
1251 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1252 * configure: Regenerate.
1253 * config/sol2.h (TARGET_SOLARIS): Define.
1254 (PUSHSECTION_FORMAT): Remove.
1255 (SECTION_NAME_FORMAT): Define.
1256 * config/sol2.c: Include hashtab.h.
1257 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1258 expansion, using SECTION_NAME_FORMAT.
1259 (solaris_comdat_htab): New variable.
1260 (struct comdat_entry): Define.
1261 (comdat_hash): New function.
1262 (comdat_eq): New function.
1263 (solaris_elf_asm_comdat_section): New function.
1264 (solaris_define_comdat_signature): New function.
1265 (solaris_code_end): New function.
1266 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1267 (solaris_code_end): Declare.
1268 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1269 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1271 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1272 Remove ATTRIBUTE_UNUSED.
1273 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1274 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1275 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1276 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1277 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1278 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1279 (PUSHSECTION_FORMAT): Remove.
1280 (SECTION_NAME_FORMAT): Redefine.
1282 2011-05-19 Kai Tietz <ktietz@redhat.com>
1284 * tree-cfg.c (verify_gimple_assign_binary): Barf on
1285 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1286 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1288 2011-05-19 Anatoly Sokolov <aesok@post.ru>
1289 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1291 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1293 2011-05-19 Richard Guenther <rguenther@suse.de>
1296 * tree-object-size.c (addr_object_size): If the pointed-to
1297 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1299 2011-05-19 Richard Guenther <rguenther@suse.de>
1301 * gimple.c (gimple_types_compatible_p_1): Compare names of
1302 the types themselves.
1303 (iterative_hash_gimple_type): And hash them that way.
1304 (gimple_register_type_1): If we register a main variant properly
1305 initialize the leader to ourselves.
1307 2011-05-19 Tom de Vries <tom@codesourcery.com>
1310 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1311 get_loop_invariant_expr_id.
1312 (get_loop_invariant_expr_id): Use get_expr_id.
1313 (parm_decl_cost): New function.
1314 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1315 Improve bound cost estimation. Use different inv_expr_id for elim and
1318 2011-05-19 Tom de Vries <tom@codesourcery.com>
1321 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1322 cost_base.cost == 0.
1324 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
1327 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
1328 Properly handle load cast.
1330 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1332 PR tree-optimization/49039
1333 * tree-vrp.c (extract_range_from_binary_expr): For
1334 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1335 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1337 2011-05-18 Tom de Vries <tom@codesourcery.com>
1340 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1342 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
1344 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1345 (*tls_global_dynamic_64): Ditto.
1346 (*tls_local_dynamic_base_32_gnu): Ditto.
1347 (*tls_local_dynamic_base_64): Ditto.
1348 (tls_initial_exec_64_sun): Ditto.
1350 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
1352 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1353 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1355 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1356 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1357 * config/bfin/bfin.c (bfin_cpus): Add bf592.
1358 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1359 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1360 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1361 * config/bfin/elf.h (LIB_SPEC): Add bf592.
1363 2011-05-18 Joseph Myers <joseph@codesourcery.com>
1365 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1366 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1367 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1368 target_thread_pointer, arm_structure_size_boundary, struct
1369 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1370 struct abi_name, arm_all_abis): Remove.
1371 (arm_option_override) Don't process most enumerated option values here.
1372 Don't process target_fpe_name here. Work with integer not string for
1373 structure size boundary; use separate diagnostics for each case.
1374 * config/arm/arm.h (enum float_abi_type, enum
1375 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1377 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1378 arm_structure_size_boundary): Remove.
1379 * config/arm/arm.opt (mabi=): Use Enum and Init.
1380 (arm_abi_type): New Enum and EnumValue entries.
1381 (mfloat-abi=): Use Enum and Init.
1382 (float_abi_type): New Enum and EnumValue entries.
1383 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1384 (mfp16-format=): Use Enum and Init.
1385 (arm_fp16_format_type): New Enum and EnumValue entries.
1386 (mstructure-size-boundary=): Use UInteger and Init.
1387 (mtp=): Use Enum and Init.
1388 (arm_tp_type): New Enum and EnumValue entries.
1390 2011-05-18 Richard Guenther <rguenther@suse.de>
1392 PR tree-optimization/49018
1393 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1394 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1395 gimple_has_side_effects.
1397 2011-05-18 Richard Guenther <rguenther@suse.de>
1399 * gimple.c (gimple_register_type_1): New function, split out from ...
1400 (gimple_register_type): ... here. Avoid infinite recursion.
1402 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1404 PR tree-optimization/41881
1405 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1406 reduction_chains along with a macro for its access.
1407 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1408 (destroy_loop_vec_info): Free reduction chains.
1409 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1410 (vect_is_slp_reduction): New function.
1411 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1412 (vect_create_epilog_for_reduction): Support SLP reduction chains.
1413 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1414 definition types for reduction chains.
1415 (vect_supported_load_permutation_p): Don't allow permutations for
1417 (vect_analyze_slp_instance): Support reduction chains.
1418 (vect_analyze_slp): Try to build SLP instance from reduction chains.
1419 (vect_get_constant_vectors): Handle reduction chains.
1420 (vect_schedule_slp_instance): Mark the first statement of the
1421 reduction chain as reduction.
1423 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1425 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1426 names for group elements access.
1427 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1428 reduction chains as well. Remove data reference and interleaving
1429 related words from the fields names.
1430 * tree-vect-loop.c (vect_transform_loop): Use new names for group
1432 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1433 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1434 vect_update_interleaving_chain, vect_same_range_drs,
1435 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1436 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1437 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1438 vect_analyze_group_access, vect_analyze_data_ref_access,
1439 vect_create_data_ref_ptr, vect_transform_strided_load,
1440 vect_record_strided_load_vectors): Likewise.
1441 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1442 vect_model_load_cost, vectorizable_store, vectorizable_load,
1443 vect_remove_stores, new_stmt_vec_info): Likewise.
1444 * tree-vect-slp.c (vect_build_slp_tree,
1445 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1447 2011-05-18 Richard Guenther <rguenther@suse.de>
1450 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1451 operand verification.
1452 (verify_gimple_assign_binary): Likewise.
1453 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1454 to non-1-precision BOOLEAN_TYPEs.
1456 2011-05-18 Tom de Vries <tom@codesourcery.com>
1459 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1461 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1463 PR tree-optimization/49000
1464 * tree-ssa.c (execute_update_addresses_taken): Call
1465 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
1466 be rewritten and decl has been marked for renaming, reset
1469 2011-05-17 Joseph Myers <joseph@codesourcery.com>
1471 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1472 enum_opts_set when testing if attributes have set -mfpmath=.
1474 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
1476 * config/mips/mips.c (mips_handle_option): Remove unused variable.
1478 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1480 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1482 * tree-inline.c (maybe_inline_call_in_expr): Initialize
1483 id.transform_lang_insert_block with NULL.
1485 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1487 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1488 (output_fp_compare): Change args 3 and 4 to bool.
1489 (ix86_expand_call): Change arg 6 to bool.
1490 (ix86_attr_length_immediate_default): Change arg 2 to bool.
1491 (ix86_attr_length_vex_default): Change arg 3 to bool.
1492 * config/i386/i386.md: Update all uses.
1493 * config/i386/i386.c: Ditto.
1494 (ix86_flags_dependent): Change return type to bool.
1496 2011-05-17 Richard Guenther <rguenther@suse.de>
1498 * gimple.c (type_hash_pair_compare): Fix comparison.
1500 2011-05-17 Richard Guenther <rguenther@suse.de>
1502 * gimple.c (iterative_hash_gimple_type): Simplify singleton
1503 case some more, fix final hash value of the non-singleton case.
1505 2011-05-17 Richard Guenther <rguenther@suse.de>
1509 2011-05-16 Richard Guenther <rguenther@suse.de>
1511 * gimple.c (gimple_types_compatible_p_1): Use names of the
1512 type itself, not its main variant.
1513 (iterative_hash_gimple_type): Likewise.
1515 2011-05-17 Richard Guenther <rguenther@suse.de>
1517 * gimple.c (gimple_register_canonical_type): Use the main-variant
1518 leader for computing the canonical type.
1520 2011-05-17 Nick Clifton <nickc@redhat.com>
1522 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
1525 * config/rx/rx.md: Add peephole to remove redundant extensions
1527 (bitset_in_memory): Use rx_restricted_mem_operand.
1528 (bitinvert_in_memory): Likewise.
1529 (bitclr_in_memory): Likewise.
1531 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
1532 Nick Clifton <nickc@redhat.com>
1534 * config/rx/rx.md: Add peepholes to match a register move followed
1535 by a comparison of the moved register. Replace these with an
1536 addition of zero that does both actions in one instruction.
1538 2011-05-17 Jakub Jelinek <jakub@redhat.com>
1541 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
1542 predicate to allow CONST_INT.
1543 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
1545 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1547 * opts-common.c (opt_enum_arg_to_value): New.
1548 * opts.h (opt_enum_arg_to_value): Declare.
1549 * config/i386/i386.opt (fpmath): Remove.
1550 (mfpmath=): Use Enum, Init and Save.
1551 (fpmath_unit): New Enum and EnumValue entries.
1552 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
1553 name for function fpmath state.
1554 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
1555 * config/i386/i386.c: Include diagnostic.h.
1556 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
1557 (ix86_target_string): Take enum fpmath_unit value instead of string.
1558 (ix86_debug_options): Update call to ix86_target_string.
1559 (ix86_option_override_internal): Don't process fpmath strings here.
1560 (x86_function_specific_save, ix86_function_specific_restore):
1561 Don't handle fpmath state specially.
1562 (ix86_function_specific_print): Pass fpmath state to
1563 ix86_target_string instead of printing in this function.
1564 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
1565 Handle enum attributes.
1566 (IX86_ATTR_ENUM, ix86_opt_enum): New.
1567 (ix86_valid_target_attribute_tree): Update option_strings
1568 handling. Handle fpmath as enum option.
1569 (ix86_can_inline_p): Update field names for function fpmath state.
1570 (ix86_expand_builtin): Update call to ix86_target_string.
1571 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
1572 (ix86_fpmath): Remove.
1573 * config/i386/t-i386 (i386.o): Update dependencies.
1575 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1577 PR preprocessor/48677
1578 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
1579 from decoded_options[0], not from itself.
1581 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
1583 * config/i386/constraints.md (z): New constraint.
1584 * config/i386/i386.c (c): New mode attribute.
1585 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
1586 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
1587 constraint for operand 0.
1588 (*call_vzeroupper): Ditto.
1589 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
1590 (*call_rex64_ms_sysv_vzeroupper): Ditto.
1591 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1592 Use "lzm" constraint for operand 0.
1593 (*call_pop_vzeroupper): Ditto.
1594 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1595 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
1596 constraint for operand 0.
1597 (*sibcall_vzeroupper): Ditto.
1598 (*sibcall_rex64_ms_sysv): Ditto.
1599 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1600 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1601 *sibcall_pop_1. Use "Uz" constraint for operand 0.
1602 (*sibcall_pop_vzeroupper): Ditto.
1603 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1604 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1605 mode iterator. Use "<c>zm" constraint for operand 1.
1606 (*call_value_vzeroupper): Ditto.
1607 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
1609 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1610 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1611 *call_value_pop_1. Use "lzm" constraint for operand 1.
1612 (*call_value_pop_vzeroupper): Ditto.
1613 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1614 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1615 mode iterator. Use "Uz" constraint for operand 1.
1616 (*sibcall_value_vzeroupper): Ditto.
1617 (*sibcall_value_rex64_ms_sysv): Ditto.
1618 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1619 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
1620 constraint for operand 1.
1621 (*sibcall_value_pop_vzeroupper): Ditto.
1622 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1623 and "z" constraint for operand 2.
1624 (*tls_global_dynamic_32_gnu): Ditto.
1625 (*tls_local_dynamic_base_32_gnu): Ditto.
1626 (*tls_local_dynamic_base_64): Ditto.
1627 (*tls_local_dynamic_32_once): Ditto.
1628 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1630 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1632 2011-05-16 Richard Guenther <rguenther@suse.de>
1634 * gimple.c (gimple_types_compatible_p_1): Use names of the
1635 type itself, not its main variant.
1636 (iterative_hash_gimple_type): Likewise.
1638 2011-05-16 Richard Guenther <rguenther@suse.de>
1640 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1641 always visit pointer target and function result and argument types.
1643 2011-05-16 Jason Merrill <jason@redhat.com>
1646 * tree-inline.c (copy_statement_list): Put back recursion.
1648 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1652 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1653 * config/avr/avr.md ("*ior<mode>qi.byte0",
1654 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1656 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1659 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1660 register is needed for a function argument.
1662 2011-05-16 Richard Guenther <rguenther@suse.de>
1664 * gimple.c (struct type_hash_pair): New type.
1665 (type_hash_pair_compare): New function.
1666 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1668 2011-05-16 Revital Eres <revital.eres@linaro.org>
1670 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1672 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1674 * config/i386/i386.md (floating point move splitters): Fix
1675 usage of standard_80387_constant_p.
1676 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1678 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1680 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1682 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
1684 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1685 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1686 (tree_ssa_lim_finalize): Likewise.
1688 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
1690 * config/i386/constraint.md (Yd, Yx): New register constraints.
1691 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
1692 Yd conditional register constraint.
1693 (*movtf_internal): Use standard_sse_constant_opcode.
1694 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
1695 Yx conditional register constraint.
1696 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
1697 Yd conditional register constraint. Use standard_sse_constant_p to
1698 check for valid SSE constants and call standard_sse_constant_opcode to
1700 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1701 constants and call standard_sse_constant_opcode to output SSE insn.
1702 * config/i386/i386.c (ix86_option_ovverride_internal): Set
1703 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
1704 optimize_size is set.
1705 (standard_sse_constant_opcode): Output conditional AVX insn templates.
1707 2011-05-14 Tobias Burnus <burnus@net-b.de>
1709 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1711 2011-05-13 Martin Jambor <mjambor@suse.cz>
1713 * ipa-prop.c (ipa_cst_from_jfunc): New function.
1714 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1715 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1716 (evaluate_conditions_for_ipcp_clone): Removed.
1717 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1718 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1719 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1721 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
1723 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1724 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1725 lieu of MAY_HAVE_DEBUG_STMTS.
1726 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1727 debug statements if !MAY_HAVE_DEBUG_STMTS.
1729 2011-05-13 Martin Thuresson <martint@google.com>
1731 PR gcov-profile/47793
1732 * libgcov.c (gcov_exit): Support relative profile paths.
1733 * doc/invoke.texi (-fprofile-dir): Update for above change.
1735 2011-05-13 Richard Guenther <rguenther@suse.de>
1737 * gimple.c (gimple_canonical_types_compatible_p): Do not use
1738 type-pair caching, do not compare hashes.
1740 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
1743 * tree-cfg.c (edge_to_cases_cleanup): Return true.
1744 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1746 2011-05-13 Kai Tietz <ktietz@redhat.com>
1748 * gimplify.c (gimplify_expr): Make sure operand is boolified.
1749 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1750 compatible type for TRUTH_NOT_EXPR.
1752 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
1754 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1755 (ix86_hard_regno_mode_ok): Change return value to bool. Use
1756 can_create_pseudo_p ().
1758 2011-05-13 Richard Guenther <rguenther@suse.de>
1761 * gimple.c (iterative_hash_gimple_type): Revert change in
1762 pointer target and function result and argument hashing.
1764 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
1766 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1767 (*movxf_internal_nointeger): Ditto.
1768 (*movdf_internal_rex64): Ditto.
1769 (*movdf_internal): Ditto.
1770 (*movdf_internal_nointeger): Ditto.
1771 (*movsf_internal): Ditto.
1772 (sincos splitters): Use can_create_pseudo ().
1774 2011-05-13 Joseph Myers <joseph@codesourcery.com>
1776 * config/i386/i386-opts.h: New.
1777 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1778 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1779 ix86_section_threshold): Remove.
1780 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
1781 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1783 (ix86_option_override_internal): Don't decode strings for options
1784 other than -march=, -mtune= and -mfpmath=. Don't allow for
1785 __attribute__ uses in remaining diagnostics for options with
1786 string arguments. Don't check for integer arguments being negative.
1787 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
1788 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
1789 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
1790 ix86_branch_cost, ix86_section_threshold): Remove.
1791 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
1793 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
1795 (masm=): Use Enum and Init.
1796 (asm_dialect): New Enum and EnumValue entries.
1797 (mbranch-cost=): Use UInteger.
1798 (mlarge-data-threshold=): Use UInteger and Init.
1799 (mcmodel=): Use Enum and Init.
1800 (cmodel): New Enum and EnumValue entries.
1801 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
1802 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
1803 mregparm=): Use UInteger.
1804 (mstringop-strategy=): Use Enum and Init.
1805 (stringop_alg): New Enum and EnumValue entries.
1806 (mtls-dialect=): Use Enum and Init.
1807 (tls_dialect): New Enum and EnumValue entries.
1808 (mabi=): Use Enum and Init.
1809 (calling_abi): New Enum and EnumValue entries.
1810 (mveclibabi=): Use Enum and Init.
1811 (ix86_veclibabi): New Enum and EnumValue entries.
1813 2011-05-13 Nick Clifton <nickc@redhat.com>
1815 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1816 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1818 2011-05-13 Kai Tietz <ktietz@redhat.com>
1821 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1822 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1823 (gimple_boolify): Check for cast for boolean_type_node instead for
1826 2011-05-13 Richard Guenther <rguenther@suse.de>
1828 PR tree-optimization/48172
1829 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1830 multiplying by number of iterations for equal step.
1831 (vect_create_cond_for_alias_checks): Likewise.
1833 2011-05-13 Andreas Schwab <schwab@redhat.com>
1835 * configure.ac: Use AS_HELP_STRING throughout.
1836 * configure: Regenerate.
1838 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
1840 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
1841 (ix86_emit_restore_regs_using_mov): Likewise.
1842 (ix86_emit_restore_sse_regs_using_mov): Likewise.
1844 2011-05-12 Anatoly Sokolov <aesok@post.ru>
1846 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
1847 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
1848 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
1849 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
1850 RTX_OK_FOR_OLO10_P): ...here.
1851 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
1854 2011-05-12 Kai Tietz <ktietz@redhat.com>
1856 * gimplify.c (gimple_boolify): Re-boolify expression
1857 arguments even if expression type is of kind BOOLEAN_TYPE.
1858 (gimplify_boolean_expr): Removed.
1859 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
1860 and XOR. Additional take care that we keep expression's type.
1861 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
1862 of TRUTH_AND|OR|XOR_EXPR.
1864 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1866 PR tree-optimization/48975
1867 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
1868 on all bbs here and free and clear ifc_bbs at the end.
1870 2011-05-12 Richard Guenther <rguenther@suse.de>
1872 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
1873 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
1874 until after simple checks.
1875 (gimple_types_compatible_p): Likewise.
1876 (iterative_hash_gimple_type): Always hash pointer targets
1877 and function return and argument types.
1878 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
1879 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
1880 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
1881 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
1882 completely in the simple compare section.
1883 (gimple_register_canonical_type): Query the cache again after
1886 2011-05-12 Richard Guenther <rguenther@suse.de>
1888 PR tree-optimization/48172
1889 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
1890 the number of iterations from the segment size calculation.
1891 (vect_create_cond_for_alias_checks): Adjust.
1893 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1896 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
1897 if validate_subreg fails.
1899 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
1901 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
1902 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
1905 2011-05-12 DJ Delorie <dj@redhat.com>
1907 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1908 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1909 created builtin into rx_builtins array.
1910 (rx_builtin_decl): New function.
1911 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
1913 2011-05-12 DJ Delorie <dj@redhat.com>
1914 Nick Clifton <nickc@redhat.com>
1916 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1917 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1918 (rx_is_legitimate_address): Add pre-decrement and post-increment
1919 addressing in HImode and QImode. Fix test for out of range
1921 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1922 (rx_align_for_label): Test label before extracting its usage count.
1923 (rx_adjust_insn_lengths): Fix selection of insn codes.
1924 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1926 2011-05-11 Jason Merrill <jason@redhat.com>
1928 * tree.c (type_hash_canon): Use struct tree_type_non_common.
1930 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1932 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1933 reindent the subsequent block.
1935 2011-05-11 Satoru Takabayashi <satorux@google.com>
1936 Paul Pluzhnikov <ppluzhnikov@google.com>
1938 * doc/install.texi (Configuration): Document --with-linker-hash-style.
1939 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1940 * config.in: Add LINKER_HASH_STYLE.
1941 * configure.ac: Add --with-linker-hash-style.
1942 * configure: Regenerate.
1944 2011-05-11 Richard Guenther <rguenther@suse.de>
1947 * gimple.c (iterative_hash_canonical_type): Fix typo.
1949 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
1951 * config/i386/i386.c (legitimize_tls_address)
1952 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1953 expanders directly for TARGET_GNU2_TLS. Determine pic and
1954 __tls_get_addr symbol reference here. Update call to
1955 gen_tls_global_dynamic_{32,64} for added arguments.
1956 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1957 expanders directly for TARGET_GNU2_TLS. Determine
1958 __tls_get_addr symbol reference here. Update call to
1959 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
1960 unique UNSPEC REG_EQUIV to libcall block.
1961 (ix86_tls_get_addr): Declare static.
1962 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1963 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1964 Do not determine pic and __tls_get_addr symbol reference here. Do not
1965 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1966 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1967 (tls_global_dynamic_64): Add operand 2. Do not determine
1968 __tls_get_addr symbol reference here. Do not call
1969 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1970 (tls_local_dynamic_base64): Ditto for operand 1.
1972 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1974 * function.c (expand_function_start): Initialize stack_check_probe_note
1975 only if the generic stack checking mechanism is used.
1977 2011-05-11 Richard Guenther <rguenther@suse.de>
1979 PR tree-optimization/15256
1980 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1981 (A & B) | C, combine (A op CST1) op CST2.
1982 (tree_ssa_forward_propagate_single_use_vars): Only bother to
1983 visit assigns that have uses.
1985 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
1987 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1988 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1989 (unpack_ts_type_common_value_fields): ...this. Update comment.
1990 (unpack_value_fields): Adjust for renaming.
1991 (lto_input_ts_type_tree_pointers): Split into...
1992 (lto_input_ts_type_common_tree_pointer): ...this and...
1993 (lto_input_ts_type_non_common_tree_pointers): ...this.
1994 (lto_input_tree_pointers): Adjust for above split.
1995 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1996 (pack_ts_type_common_value_fields): ...this. Update comment.
1997 (lto_output_ts_type_tree_pointers): Split into...
1998 (lto_output_ts_type_common_tree_pointers): ...this and...
1999 (lto_output_ts_type_non_common_tree_pointers): ...this.
2000 (lto_output_tree_pointers): Adjust for above split.
2001 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2002 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2003 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2004 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2006 (struct tree_type): Split into...
2007 (struct tree_type_common: ...this and...
2008 (struct tree_type_with_lang_specific): ...this and...
2009 (struct tree_type_non_common): ...this. Adjust accessor macros
2011 (TYPE_VALUES_RAW): Define.
2012 (union tree_node): Update for above changes.
2013 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2015 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2016 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2017 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2018 * treestructu.def (TS_TYPE): Remove.
2019 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2022 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2025 * tree-ssa.c (reset_debug_uses): New function.
2026 * tree-flow.h (reset_debug_uses): New prototype.
2027 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2028 * tree-loop-distribution.c (generate_loops_for_partition): Call
2029 reset_debug_uses on the stmts that will be removed. Keep around
2030 all debug stmts, don't count them as bits in partition bitmap.
2031 (generate_builtin): Don't count debug stmts or labels as bits in
2034 2011-05-11 Richard Guenther <rguenther@suse.de>
2036 * gimple.c (gimple_type_hash_1): Merge with ...
2037 (gimple_type_hash): ... this.
2038 (gtc_visit): Remove mode parameter and simplify accordingly.
2039 (gimple_types_compatible_p_1): Likewise.
2040 (gimple_types_compatible_p): Likewise.
2041 (iterative_hash_gimple_type): Likewise.
2043 (gimple_type_eq): Adjust.
2045 2011-05-11 Revital Eres <revital.eres@linaro.org>
2047 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2048 enters the branch create an anti edge in the opposite direction
2049 to prevent the creation of reg-moves.
2050 * modulo-sched.c: Adjust comment to reflect the fact we are
2051 scheduling closing branch.
2052 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2053 (stage_count): New field in struct partial_schedule.
2054 (calculate_stage_count): New function.
2055 (normalize_sched_times): Rename to reset_sched_times and handle
2056 incrementing the sched time of the nodes by a constant value
2057 passed as parameter.
2058 (duplicate_insns_of_cycles): Skip closing branch.
2059 (sms_schedule_by_order): Schedule closing branch.
2060 (ps_insn_find_column): Handle closing branch.
2061 (sms_schedule): Call reset_sched_times and adjust the code to
2062 support scheduling of the closing branch.
2063 (ps_insert_empty_row): Update calls to normalize_sched_times
2064 and rotate_partial_schedule functions.
2066 2011-05-11 Richard Guenther <rguenther@suse.de>
2069 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2071 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2073 * opts.c (finish_options): Move warning settings from process_options.
2074 * toplev.c (process_options): Move warning settings to finish_options.
2076 2011-05-11 Richard Guenther <rguenther@suse.de>
2078 PR tree-optimization/18041
2079 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2080 (simplify_bitwise_binary): ... this. Handle operand conversions
2081 by applying them to the result instead.
2082 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2084 2011-05-11 Richard Guenther <rguenther@suse.de>
2086 * gimple.c (gimple_canonical_types_compatible_p): Split out
2087 from gimple_types_compatible_p and friends. Do not recurse
2088 to pointed-to types.
2089 (gimple_canonical_type_eq): Use it.
2090 (iterative_hash_canonical_type): Split out from
2091 iterative_hash_gimple_type and friends. Do not recurse
2092 to pointed-to types.
2093 (gimple_canonical_type_hash): Use it, allocate the hash here.
2095 2011-05-11 Revital Eres <revital.eres@linaro.org>
2097 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2100 2011-05-11 Revital Eres <revital.eres@linaro.org>
2102 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2103 instead of PREV_INSN.
2105 2011-05-11 Revital Eres <revital.eres@linaro.org>
2107 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2108 * loop-doloop.c (doloop_condition_get): Likewise.
2109 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2111 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2113 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2115 * tree.def (CASE_LABEL_EXPR): Add an operand.
2116 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2118 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2120 * c-decl.c (c_override_global_bindings_to_false): Remove.
2121 (global_bindings_p): Don't check
2122 c_override_global_bindings_to_false.
2123 * c-tree.h (c_override_global_bindings_to_false): Remove.
2124 * c-typeck.c (composite_type): Don't set
2125 c_override_global_bindings_to_false.
2127 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2129 PR target/48857, 48495
2130 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2132 (VSX_MOVE_MODE): Ditto.
2133 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2134 VSX vector types. Add V2DImode.
2135 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2136 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2137 (MODES_TIEABLE_P): Ditto.
2139 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2140 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2142 (init_cumulative_args): Ditto.
2143 (rs6000_function_arg_boundary): Ditto.
2144 (rs6000_function_arg_advance_1): Ditto.
2145 (rs6000_function_arg): Ditto.
2146 (rs6000_function_ok_for_sibcall): Ditto.
2147 (emit_frame_save): Ditto.
2148 (rs6000_function_value): Ditto.
2149 (rs6000_libcall_value): Ditto.
2151 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2153 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2154 i386/darwin-lib.h to $libgcc_tm_file.
2155 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2157 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2159 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2161 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2163 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2164 * config/rs6000/rs6000-tables.opt: New file (generated).
2165 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2166 rs6000/rs6000-tables.opt to extra_options.
2167 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2168 * config/rs6000/rs6000.c (rs6000_select): Remove.
2169 (processor_target_table): Move contents to rs6000-cpus.def.
2170 (darwin_rs6000_override_options): Check
2171 global_options_set.x_rs6000_cpu_index instead of
2172 rs6000_select[1].string.
2173 (rs6000_option_override_internal): Likewise.
2174 (rs6000_handle_option): Don't assert that global structures are in
2175 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
2176 (rs6000_default_cpu): New variable.
2177 (rs6000_file_start): Set it instead of local default_cpu. Check
2178 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2179 global_options_set.x_rs6000_tune_index instead of rs6000_select.
2180 (rs6000_darwin_file_start): Check rs6000_default_cpu and
2181 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2182 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2183 rs6000_select): Remove.
2184 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2186 (mcpu=, mtune=): Use Var, Init, Enum and Save.
2187 * config/rs6000/t-rs6000
2188 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2189 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2190 global_options_set.x_rs6000_cpu_index instead of
2191 rs6000_select[1].string.
2192 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2193 global_options_set.x_rs6000_cpu_index instead of
2194 rs6000_select[1].string.
2196 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2198 * config.gcc (libgcc_tm_file): Define instead of including files
2199 from ../../libgcc/config/ in tm_file.
2200 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2201 * configure: Regenerate.
2202 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2203 libgcc_tm.h, cs-libgcc_tm.h): New.
2204 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2205 (clean): Remove libgcc_tm.h.
2206 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2207 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2208 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2210 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
2213 * config/avr/avr.c (avr_ret_register): Return unsigned int
2215 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2216 it to avr_libcall_value.
2217 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2219 (avr_expand_binop_builtin): Ditto.
2220 (avr_expand_unop_builtin): Ditto.
2222 2011-05-10 DJ Delorie <dj@redhat.com>
2224 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2225 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2226 * config/rx/rx.c (rx_align_for_label): Add label and
2227 uses_threshold parameters. Do not align when the label is not
2229 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2231 2011-05-10 Richard Guenther <rguenther@suse.de>
2233 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2234 a series of conversions and apply foldings similar to what
2236 (tree_ssa_forward_propagate_single_use_vars): Call it.
2238 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2240 PR tree-optimization/48611
2241 PR tree-optimization/48794
2242 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2243 referenced from RESX or EH_DISPATCH arguments.
2246 * dfp.c (decimal_to_decnumber): Handle conversion from
2247 dconst{1,2,m1,half}.
2249 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2251 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2252 for !flag_prefer_avx128.
2253 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2255 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2257 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2258 (fold_ternary_loc): Use expr_location_or.
2260 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
2263 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2264 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2265 Pmode and mem_mode is not VOIDmode.
2267 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2269 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2270 TYPE_QUAL_RESTRICT): Convert to enum.
2272 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2274 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2275 (const_pow2_1_to_8_operand): Ditto.
2276 (const_pow2_1_to_128_operand): Ditto.
2277 (const_pow2_1_to_32768_operand): Ditto.
2278 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2279 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
2280 in insn constraint to check integer value of operand 3.
2281 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2283 (PINSR_MODE): New mode iterator.
2284 (sse2p4_1): New mode attribute.
2285 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2286 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2287 iterator. Use const_int_operand instead of
2288 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
2289 exact_log2 in insn constraint to check integer value of operand 3.
2291 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2293 * config/i386/sse.md (blendbits): Remove mode attribute.
2294 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2295 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2296 Check integer value of operand 3 in insn constraint.
2298 2011-05-09 Richard Guenther <rguenther@suse.de>
2300 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2302 (lto_symtab_merge): Likewise. Do not register types here.
2303 (lto_symtab_merge_decls_2): Likewise.
2304 (lto_symtab_merge_decls_1): Likewise.
2305 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2306 * gimple.c (enum gtc_mode): Declare.
2307 (gimple_types_compatible_p): Make static.
2309 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2311 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2312 temporary register to match Pmode.
2314 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2316 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2317 and *vec_concatv4si_1_avx.
2319 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2321 PR rtl-optimization/48927
2322 * ira-conflicts.c (commutative_constraint_p): Use
2323 recog_data.alternative_enabled_p to disable alternatives where
2324 "enabled" attribute is false.
2325 (get_dup_num): Ditto.
2326 * ira-lives.c (single_reg_class): Ditto.
2327 (ira_implicitly_set_insn_hard_regs): Ditto.
2329 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2331 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2332 (dataflow_set_preserve_mem_locs): Likewise.
2334 2011-05-09 Philipp Thomas <pth@suse.de>
2336 * config/mep/mep.c (mep_validate_vliw): Syntax description
2337 should not be translated.
2339 2011-05-09 Joseph Myers <joseph@codesourcery.com>
2341 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2342 * config/mips/mips-tables.opt: New file (generated).
2343 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2344 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2345 MIPS_ARCH_OPTION_NATIVE): Define.
2346 * config/mips/mips.c (mips_cpu_info_table): Move contents to
2348 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2349 mips_parse_cpu): Remove.
2350 (mips_cpu_info_from_opt, mips_default_arch): New.
2351 (mips_handle_option): Don't assert that global structures are in
2352 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2353 (mips_option_override): Use new variables and functions to set
2354 state of these options. Use strcmp to check for individual CPU names.
2355 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2357 * config/mips/mips.opt (march=): Use ToLower and Enum.
2358 (mips): Use ToLower, Enum and Var.
2359 (mtune=): Use ToLower and Enum.
2360 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2362 2011-05-08 Jan Hubicka <jh@suse.cz>
2364 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2365 Arrange type pairs to be UID ordered.
2366 (gimple_lookup_type_leader): Make inline.
2368 2011-05-09 Nick Clifton <nickc@redhat.com>
2371 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2375 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2378 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
2380 * combine.c (simplify_comparison): Abstract out parts into...
2381 (simplify_compare_const): ... new function.
2382 (try_combine): Generalize parallel arithmetic/compare combining
2383 to call simplify_compare_const() and CANONICALIZE_COMPARE().
2385 2011-05-08 Jan Hubicka <jh@suse.cz>
2387 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2388 (cgraph_create_virtual_clone): Call hooks once virtual clone
2390 * cgraph.h (cgraph_clone_node): Update prototype.
2391 * ipa-cp.c (ipcp_estimate_growth): Use
2392 estimate_ipcp_clone_size_and_time.
2393 * ipa-inline-transform.c (clone_inlined_nodes): Update.
2394 * lto-cgraph.c (input_node): Update.
2395 * ipa-inline.c (recursive_inlining): Update.
2396 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2397 (evaluate_conditions_for_known_args): Break out from ...
2398 (evaluate_conditions_for_edge): ... here.
2399 (evaluate_conditions_for_ipcp_clone): New function.
2400 (inline_node_duplication_hook): Update clone summary based
2402 (estimate_callee_size_and_time): Rename to ...
2403 (estimate_node_size_and_time): take NODE instead of EDGE;
2404 take POSSIBLE_TRUTHS as argument.
2405 (estimate_callee_size_and_time): Update.
2406 (estimate_ipcp_clone_size_and_time): New function.
2407 (do_estimate_edge_time): Update.
2409 2011-05-08 Richard Guenther <rguenther@suse.de>
2413 * expmed.c (expand_shift_1): Compute adjusted constant shift
2416 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2418 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2420 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2422 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2424 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2426 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2428 2011-05-07 Jan Hubicka <jh@suse.cz>
2430 * ipa-inline-transform.c (inline_call): Account when program size
2432 * ipa-inline.c (relative_time_benefit): New function.
2433 (edge_badness): Reorganize to be power 2 based; fix thinko when
2434 computing badness for negative growth; update comments to match
2435 reality; better dumps.
2437 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
2439 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2440 type to bool and adjust comment.
2441 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2442 (fold_mathfn_compare): Remove calls to global_bindings_p.
2443 (fold_inf_compare): Likewise.
2444 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2445 * c-tree.h (global_bindings_p): Adjust prototype.
2446 * c-decl.c (global_bindings_p): Return bool and simplify.
2448 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
2450 PR tree-optimization/48837
2451 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2452 when accumulator transformation is performed.
2454 2011-05-06 Jan Hubicka <jh@suse.cz>
2456 * i386.h (ix86_tune_indices): Add
2457 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2458 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2459 * i386.c (initial_ix86_tune_features): Add
2460 X86_SOFTARE_PREFETCHING_BENEFICIAL.
2461 (software_prefetching_beneficial_p): Remove predicate.
2462 (ix86_option_override_internal): Use new macro.
2464 2011-05-06 Jan Hubicka <jh@suse.cz>
2466 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2468 2011-05-06 Jan Hubicka <jh@suse.cz>
2470 * cgraph.c (cgraph_add_thunk): Create real function node instead
2471 of alias node; finalize it and mark needed/reachale; arrange visibility
2472 to be right and add it into the corresponding same comdat group list.
2473 (dump_cgraph_node): Dump thunks.
2474 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2475 cgraph_function_with_gimple_body_p,
2476 cgraph_first_function_with_gimple_body,
2477 cgraph_next_function_with_gimple_body): New functions.
2478 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2480 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2481 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2482 * cgraphunit.c (cgraph_finalize_function): Only look into possible
2483 devirtualization when optimizing.
2484 (verify_cgraph_node): Verify thunks.
2485 (cgraph_analyze_function): Analyze thunks.
2486 (cgraph_mark_functions_to_output): Output thunks only in combination
2487 with function they are assigned to.
2488 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2489 alias into normal node.
2490 (assemble_thunks): New functoin.
2491 (cgraph_expand_function): Use it.
2492 * lto-cgraph.c (lto_output_node): Stream thunks.
2493 (input_overwrite_node): Stream in thunks.
2494 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2495 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2496 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2497 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2498 (inline_analyze_function): Do not care about thunk jump functions.
2499 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2500 * ipa-prop.c (ipa_prop_write_jump_functions): Use
2501 cgraph_function_with_gimple_body_p.
2502 * passes.c (do_per_function_toporder): Use
2503 cgraph_function_with_gimple_body_p.
2504 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2505 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2506 (function_called_by_processed_nodes_p): Likewise.
2508 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2510 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2511 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2513 (mabi=): Replace with separate entries for mabi=altivec,
2514 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2515 mabi=ieeelongdouble and mabi=ibmlongdouble.
2516 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2517 check for -mabi=spe without SPE ABI support here.
2518 (rs6000_handle_option): Replace OPT_mabi_ handling with
2519 OPT_mabi_altivec and OPT_mabi_spe handling.
2521 2011-05-06 Cary Coutant <ccoutant@google.com>
2523 * dwarf2out.c (contains_subprogram_definition): New function.
2524 (should_move_die_to_comdat): Call it.
2526 2011-05-06 Jeff Law <law@redhat.com>
2528 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
2529 remove_ctrl_stmt_and_useless_edges.
2530 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2531 (fixup_template_block, thread_single_edge): Likewise.
2532 (mark_threaded_blocks): Use THREAD_TARGET.
2534 2011-05-06 Alan Modra <amodra@gmail.com>
2537 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2538 const0_rtx as the arg to the dummy __tls_get_addr libcall.
2540 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2542 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2543 constraint modifier to "r".
2545 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2547 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
2548 fall through for OPT_mcmodel_.
2550 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2552 * config/s390/s390.c (s390_asm_trampoline_template): Comment
2554 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2556 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2559 * config/arm/arm.opt (marm): Document it.
2560 (mthumb): Reject negative variant.
2562 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2565 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2566 Fix typo in "ccvt" variable name.
2568 2011-05-06 Tristan Gingold <gingold@adacore.com>
2571 * config/vms/vms-ar.c (main): Remove cwd variable.
2573 2011-05-06 Jakub Jelinek <jakub@redhat.com>
2576 * var-tracking.c (prepare_call_arguments): Move else before #endif.
2578 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2580 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
2581 * gimplify.c (gimplify_switch_expr): Likewise.
2582 * omp-low.c (expand_omp_sections): Likewise.
2583 * tree-eh.c (lower_try_finally_switch): Likewise.
2584 (lower_eh_dispatch): Likewise.
2585 * tree.h (build_case_label): Declare.
2586 * tree.c (build_case_label): Define.
2588 2011-05-05 Jason Merrill <jason@redhat.com>
2591 * tree-inline.c (copy_tree_r): Use copy_statement_list.
2592 (copy_statement_list): Don't recurse.
2593 * stor-layout.c (copy_self_referential_tree_r): Don't allow
2596 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2598 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2599 through from -mfpu= handling.
2600 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2602 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
2604 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2607 2011-05-05 Steve Ellcey <sje@cup.hp.com>
2609 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2611 (hppa[12]*-*-hpux11*): Ditto.
2612 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2613 * config/ia64/hpux-unix2003.h: New.
2614 * config/pa/pa-hpux1131.opt: New.
2615 * config/pa/pa-hpux1131.h: New.
2616 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2617 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2618 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2620 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2623 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2624 instead of mode as 3rd argument to recursive call.
2625 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2626 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2628 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2629 don't give up if mode is Pmode and mem_mode is not VOIDmode.
2630 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2631 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2633 2011-05-05 Julian Brown <julian@codesourcery.com>
2635 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2636 parenthesis in D-register case.
2638 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2640 * opt-functions.awk (var_type_struct): Handle Enum options.
2641 * optc-gen.awk: Don't check range of variables of character type.
2642 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2643 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2644 rs6000_sdata_name, rs6000_explicit_options): Remove.
2645 (rs6000_option_override_internal): Check for -malign-power here.
2646 Use global_options_set instead of rs6000_explicit_options.
2647 (rs6000_parse_fpu_option): Remove.
2648 (rs6000_handle_option): Access variables via opts and opts_set
2649 pointers. Use error_at and warning_at. Add fall-through
2650 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2651 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2652 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2653 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2654 here. Don't use rs6000_parse_fpu_option.
2655 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2656 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2657 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2659 (mspe): Use Var and Save.
2660 (mtraceback=): Use Enum and Var.
2661 (rs6000_traceback_type): New Enum and EnumValue entries.
2662 (mfloat-gprs=): Use Enum, Var and Save.
2663 (rs6000_float_gprs): New Enum and EnumValue entries.
2664 (mlong-double-): use Var and Save.
2665 (msched-costly-dep=, minsert-sched-nops=): Use Var.
2666 (malign-): Use Enum and Var.
2667 (rs6000_alignment_flags): New Enum and EnumValue entries.
2669 (fpu_type_t): New Enum and EnumValue entries.
2670 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2671 global_options_set instead of rs6000_explicit_options.
2672 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2673 global_options_set instead of rs6000_explicit_options.
2674 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2675 global_options_set instead of rs6000_explicit_options.
2676 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2677 global_options_set instead of rs6000_explicit_options.
2678 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2679 global_options_set instead of rs6000_explicit_options.
2680 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2681 global_options_set instead of rs6000_explicit_options.
2682 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2684 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2685 global_options_set instead of rs6000_explicit_options.
2686 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2687 (rs6000_cmodel): New Enum and EnumValue entries.
2688 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2689 global_options_set instead of rs6000_explicit_options.
2690 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2691 (mtls-size=): Use Enum and Var.
2692 (rs6000_tls_size): New Enum and EnumValue entries.
2694 2011-05-05 Michael Matz <matz@suse.de>
2696 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2697 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2698 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2699 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2700 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2701 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2702 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2703 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2704 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2705 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2706 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2707 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2708 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2709 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2710 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2711 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2713 2011-05-05 Richard Guenther <rguenther@suse.de>
2715 * expmed.c (expand_variable_shift): Rename to ...
2716 (expand_shift_1): ... this. Take an expanded shift amount.
2717 For rotates recurse directly not building trees for the shift amount.
2718 (expand_variable_shift): Wrap around expand_shift_1.
2719 (expand_shift): Adjust.
2721 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2723 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2725 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
2727 * tree.h (get_pending_sizes): Remove prototype.
2728 (put_pending_size): Likewise.
2729 (put_pending_sizes): Likewise.
2730 * stor-layout.c (pending_sizes): Delete.
2731 (get_pending_sizes): Likewise.
2732 (put_pending_size): Likewise.
2733 (put_pending_sizes): Likewise.
2734 (variable_size): Do not call put_pending_size and tidy up.
2735 * function.h (struct function): Remove dont_save_pending_sizes_p.
2736 * lto-streamer-in.c (input_function): Do not stream it.
2737 * lto-streamer-out.c (output_function): Likewise.
2738 * tree-inline.c (initialize_cfun): Do not copy it.
2739 * c-decl.c (store_parm_decls): Do not set it.
2740 * omp-low.c (create_task_copyfn): Likewise.
2741 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2743 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
2745 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2747 (*movdf_internal): Ditto.
2748 (*movdf_internal_nointeger): Ditto.
2749 (*movsf_internal): Ditto.
2751 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2753 * c-decl.c (finish_decl): Don't call get_pending_sizes.
2754 (grokparm): Add parameter expr. Pass it to grokdeclarator.
2755 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
2756 (c_variable_size): Remove.
2757 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
2758 call put_pending_sizes.
2759 (get_parm_info): Add parameter expr. Use it to set
2760 arg_info->pending_sizes.
2761 (store_parm_decls): Use arg_info->pending_sizes instead or calling
2763 * c-parser.c (c_parser_parms_declarator): Update call to
2764 c_parser_parms_list_declarator.
2765 (c_parser_parms_list_declarator): Take parameter expr. Update
2766 call to push_parm_decl. Update recursive call. Don't call
2767 get_pending_sizes. Update calls to get_parm_info.
2768 (c_parser_objc_method_definition): Update calls to
2769 c_parser_objc_method_decl and objc_start_method_definition.
2770 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2771 (c_parser_objc_method_decl): Add parameter expr. Update call to
2773 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2774 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2775 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2777 2011-05-05 Michael Hope <michael.hope@linaro.org>
2780 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2783 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2785 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2786 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2787 (spu_output_mi_thunk): New function.
2789 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2791 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
2792 targetm.asm_out.print_operand.
2793 * config/sol2.c: Include target.h.
2795 2011-05-04 Jan Hubicka <jh@suse.cz>
2797 * ipa-inline.c (reset_edge_caches): New function.
2798 (update_caller_keys): Add check_inlinablity_for; do not
2799 reset edge caches; remove now unnecesary loop.
2800 (update_callee_keys): Add comments; reset node_growth_cache of callee.
2801 (update_all_callee_keys): Likewise.
2802 (inline_small_functions): Sanity check cache; update code
2805 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
2807 PR rtl-optimization/47612
2808 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2809 as the last insn of the sequence to be moved.
2811 2011-05-04 Tobias Burnus <burnus@net-b.de>
2814 * doc/invoke.texi (Ofast): Document that it
2815 enables Fortran's -fno-protect-parens.
2817 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2819 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2821 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
2823 * stor-layout.c (variable_size): Do not issue errors.
2825 2011-05-04 Richard Guenther <rguenther@suse.de>
2827 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2828 for array-ref indices.
2829 (tree_coverage_counter_addr): Likewise.
2830 (build_fn_info_type): Use size_int for index types.
2831 (build_gcov_info): Likewise.
2833 2011-05-04 Richard Guenther <rguenther@suse.de>
2835 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
2837 * c-typeck.c (really_start_incremental_init): Use bitsize_int
2838 for constructor indices.
2839 (push_init_level): Likewise.
2841 2011-05-04 Richard Guenther <rguenther@suse.de>
2843 * explow.c (promote_mode): Move variable declarations before code.
2845 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2847 * tree.h (build_function_type_array): Declare.
2848 (build_varargs_function_type_array): Declare.
2849 (build_function_type_vec, build_varargs_function_type_vec): Define.
2850 * tree.c (build_function_type_array_1): New function.
2851 (build_function_type_array): New function.
2852 (build_varargs_function_type_array): New function.
2854 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
2856 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
2857 before setting STMT_VINFO_TYPE.
2859 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2861 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
2862 instead of spu_pass_by_reference.
2864 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2866 * calls.c (emit_library_call_value_1): Invoke
2867 promote_function_mode hook on libcall arguments.
2868 * explow.c (promote_function_mode, promote_mode): Handle TYPE
2869 argument being NULL.
2870 * targhooks.c (default_promote_function_mode): Lisewise.
2871 * config/s390/s390.c (s390_promote_function_mode): Likewise.
2872 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
2874 * doc/tm.texi: Document that TYPE argument might be NULL.
2876 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2878 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
2880 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2883 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
2885 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2887 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
2888 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
2890 * mips-tfile.c: ... here.
2891 Don't include coretypes.h, tm.h, filenames.h.
2892 (saber_stop): Remove definition and all calls.
2893 [__SABER__]: Remove.
2894 (__LINE__): Remove default.
2895 (Size_t, Ptrdiff_t): Remove definitions.
2896 Replace by size_t, ptrdiff_t.
2897 [!MIPS_DEBUGGING_INFO]: Remove.
2898 (SHASH_SIZE, THASH_SIZE): Remove defaults.
2899 (progname): Add const.
2901 Replace all uses by static.
2902 (ALIGN_SYMTABLE_OFFSET): Remove default.
2903 * mips-tdump.c: Don't include coretypes.h, tm.h.
2904 Remove !MIPS_IS_STAB guard.
2905 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2906 $(TM_H), filenames.h dependencies.
2907 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2909 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2912 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2913 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2915 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2918 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2919 account and save/restore RETS.
2920 (PROFILE_BEFORE_PROLOGUE): Define.
2921 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
2922 the push insn to use predecrement.
2924 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2927 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2929 2011-05-04 Nick Clifton <nickc@redhat.com>
2931 * config/mn10300/mn10300.c: Include cfgloop.h.
2933 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
2934 Lcc or a FLcc insn into the instruction stream.
2935 (mn10300_block_contains_call): New function. Returns true if the
2936 given basic block contains a CALL insn.
2937 (mn10300_loop_contains_call_insn): New function. Returns true if
2938 the given loop contains a CALL insn.
2939 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
2940 to use the SETLB and Lcc or FLcc insns.
2941 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2942 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2943 * config/mn10300/mn10300.opt (msetlb): New option. Used to
2944 disable the SETLB optimization.
2945 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2946 __SETLB__ or __NO_SETLB__.
2947 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2948 (movsf_internal): Handle MDR register.
2949 (cmpsi): Make visible.
2950 (setlb): New pattern.
2952 (FLcc): New pattern.
2954 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2957 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2958 for reg<->xmm moves.
2959 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2960 (vec_concatv2di_rex64_sse): Ditto.
2961 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2962 (*vec_extractv2di_1_rex64): Ditto.
2965 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2967 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2969 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2971 2011-05-04 Richard Guenther <rguenther@suse.de>
2973 * tree.h (int_const_binop): Remove notrunc argument.
2974 * fold-const.c (int_const_binop): Remove notrunc argument. Always
2975 create integer constants that are properly truncated.
2976 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2977 (const_binop): Remove zero notrunc argument to int_const_binop.
2978 (size_binop_loc): Likewise.
2979 (fold_div_compare): Likewise.
2980 (maybe_canonicalize_comparison_1): Likewise.
2981 (fold_comparison): Likewise.
2982 (fold_binary_loc): Likewise.
2983 (multiple_of_p): Likewise.
2984 * expr.c (store_constructor): Likewise.
2985 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2986 (maybe_fold_stmt_addition): Likewise.
2987 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2988 * stor-layout.c (layout_type): Likewise.
2989 * tree-data-ref.c (tree_fold_divides_p): Likewise.
2990 * tree-sra.c (build_ref_for_offset): Likewise.
2991 (build_user_friendly_ref_for_offset): Likewise.
2992 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2993 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2994 * tree-ssa-loop-niter.c (inverse): Likewise.
2995 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2996 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2997 * tree-switch-conversion.c (check_range): Likewise.
2998 (build_constructors): Likewise.
2999 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3000 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3001 (extract_range_from_assert): Likewise.
3002 (vrp_int_const_binop): Likewise.
3003 (extract_range_from_binary_expr): Likewise.
3004 (extract_range_from_unary_expr): Likewise.
3005 (check_array_ref): Likewise.
3006 (find_case_label_range): Likewise.
3007 (simplify_div_or_mod_using_ranges): Likewise.
3008 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3009 comparing case labels for merging.
3011 2011-05-03 Mark Wielaard <mjw@redhat.com>
3013 * dwarf2out.c (debug_str_hash_forced): Removed.
3014 (gen_label_for_indirect_string): Removed.
3015 (get_debug_string_label): Removed.
3016 (AT_string_form): Generate label directly.
3017 (output_indirect_string): Test indirect_string_node for
3018 DW_FORM_strp instead of checking label and refcount.
3019 (prune_indirect_string): Removed.
3020 (prune_unused_types): Don't check debug_str_hash_forced or
3021 call prune_indirect_string.
3023 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3026 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3028 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3032 * combine.c (try_combine): Skip debug insns at m_split tests.
3034 2011-04-26 Mark Wielaard <mjw@redhat.com>
3037 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3038 when info_section_emitted.
3040 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3042 * config/mips/mips-opts.h: New.
3043 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3045 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3046 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3047 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3049 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3051 (mips_abi, mips_code_readable): Don't declare.
3052 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3053 (mabi=): Use Enum and Var.
3054 (mips_abi): New Enum and EnumValue entries.
3055 (mcode-readable=): Use Enum and Var.
3056 (mips_code_readable_setting): New Enum and EnumValue entries.
3057 (mr10k-cache-barrier=): Use Enum and Var.
3058 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3060 2011-05-03 Jan Hubicka <jh@suse.cz>
3062 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3063 replace hash by pointer map.
3064 (cgraph_node_set_element_def, cgraph_node_set_element,
3065 const_cgraph_node_set_element, varpool_node_set_element_def,
3066 varpool_node_set_element, const_varpool_node_set_element): Remove.
3067 (free_cgraph_node_set, free_varpool_node_set): New function.
3068 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3069 * tree-emutls.c: Free varpool node set.
3070 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3071 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3072 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3073 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3074 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3075 Move here from ipa.c; implement using pointer_map
3076 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3077 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3078 debug_cgraph_node_set, varpool_node_set_new,
3079 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3080 dump_varpool_node_set, debug_varpool_node_set):
3081 Move to ipa-uitls.c.
3082 * passes.c (ipa_write_summaries): Update.
3084 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3086 From Mike Frysinger:
3087 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3088 bf542/bf544/bf547/bf548/bf549.
3090 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3092 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3094 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3097 * config/bfin/bfin.md (MOVCC): New mode_macro.
3098 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3099 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3100 comments from generated assembly.
3102 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3105 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3106 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3107 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3108 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3109 * config/bfin/lib1funcs.asm (___muldi3): New function.
3111 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3113 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3114 build_function_type_list instead of build_function_type.
3115 Rearrange initialization of `args' to do so.
3117 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3119 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3120 instead of build_function_type.
3122 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3124 * config/rs6000/rs6000.c (spe_init_builtins): Call
3125 build_function_type_list instead of build_function_type.
3126 (paired_init_builtins, altivec_init_builtins): Likewise.
3127 (builtin_function_type): Likewise.
3129 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3131 * config/sh/sh.c (sh_media_init_builtins): Call
3132 build_function_type_list instead of build_function_type.
3134 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3136 * config/sparc/sparc.c (sparc_file_end): Call
3137 build_function_type_list instead of build_function_type.
3139 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3141 * config/alpha/alpha.c (alpha_init_builtins): Call
3142 build_function_type_list instead of build_function_type.
3144 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3146 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3147 build_function_type_list instead of build_function_type.
3149 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3151 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3152 build_function_type_list instead of build_function_type.
3153 Delete `endlink' variable.
3155 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3157 * config/avr/avr.c (avr_init_builtins): Call
3158 build_function_type_list instead of build_function_type.
3160 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3162 * config/picochip/picochip.c (picochip_init_builtins): Call
3163 build_function_type_list instead of build_function_type.
3164 Delete `endlink' variable.
3166 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3168 * config/bfin/bfin.c (bfin_init_builtins): Call
3169 build_function_type_list instead of build_function_type.
3171 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3174 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3175 that's not CONST_INT. Seemingly redundant check is due to PR39768.
3177 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3180 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3181 libbffastfp overrides libgcc when -mfast-fp.
3183 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3185 Originally from Bernd Schmidt
3186 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3187 * config/bfin/bfin.c (override_options): Test it and error if
3190 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3192 Originally From Bernd Schmidt
3193 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3196 2011-05-03 Jeff Law <law@redhat.com>
3198 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3199 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3200 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3201 than accessing AUX field directly. Free the AUX field before
3203 (thread_block, thread_through_loop_header): Likewise.
3204 (thread_single_edge, mark_threaded_blocks): Likewise.
3205 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
3206 (register_jump_thread): Do not attempt to thread to a NULL edge.
3208 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3210 * function.c (init_function_start): Call decide_function_section.
3211 * varasm.c (decide_function_section): New function.
3212 (assemble_start_function): When not using
3213 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3214 or first_function_block_is_cold.
3215 * rtl.h (decide_function_section): Declare.
3217 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3218 Jakub Jelinek <jakub@redhat.com>
3221 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3222 only succeed if req_mode is the same as set_mode.
3224 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3226 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3227 * genemit.c (gen_exp): Handle RETURN.
3228 * emit-rtl.c (verify_rtx_sharing): Likewise.
3229 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3230 * rtl.c (copy_rtx): RETURN is shared.
3231 * rtl.h (enum global_rtl_index): Add GR_RETURN.
3233 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3234 * config/s390/s390.c (s390_emit_epilogue): Likewise.
3235 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3236 * config/cris/cris.c (cris_expand_return): Likewise.
3237 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3238 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3239 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3240 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3241 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3243 * config/v850/v850.c (expand_epilogue): Likewise.
3244 * config/bfin/bfin.c (bfin_expand_call): Likewise.
3245 * config/arm/arm.md (epilogue): Likewise.
3246 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3247 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3248 variable to ret_reg.
3250 2011-05-03 Richard Guenther <rguenther@suse.de>
3253 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3254 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3255 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3257 2011-05-03 Richard Guenther <rguenther@suse.de>
3259 * c-decl.c (grokdeclarator): Instead of looking at
3260 TREE_OVERFLOW check if the constant fits in the index type.
3262 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3264 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3265 (vec_store_lanes<mode><mode>): Likewise.
3267 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3269 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3270 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3271 convert_optab_index values.
3272 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3273 * genopinit.c (optabs): Initialize the new optabs.
3274 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3275 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3276 (expand_STORE_LANES): New functions.
3277 * tree.h (build_array_type_nelts): Declare.
3278 * tree.c (build_array_type_nelts): New function.
3279 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3280 (vect_model_load_cost): Likewise.
3281 (vect_store_lanes_supported, vect_load_lanes_supported)
3282 (vect_record_strided_load_vectors): Declare.
3283 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3284 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3285 (vect_transform_strided_load): Split out statement recording into...
3286 (vect_record_strided_load_vectors): ...this new function.
3287 * tree-vect-stmts.c (create_vector_array, read_vector_array)
3288 (write_vector_array, create_array_ref): New functions.
3289 (vect_model_store_cost): Add store_lanes_p argument.
3290 (vect_model_load_cost): Add load_lanes_p argument.
3291 (vectorizable_store): Try to use store-lanes functions for
3293 (vectorizable_load): Likewise load-lanes and loads.
3294 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3295 to vect_model_store_cost.
3296 (vect_build_slp_tree): Likewise vect_model_load_cost.
3298 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3300 * hooks.h (hook_bool_mode_uhwi_false): Declare.
3301 * hooks.c (hook_bool_mode_uhwi_false): New function.
3302 * target.def (array_mode_supported_p): New hook.
3303 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3304 * doc/tm.texi: Regenerate.
3305 * stor-layout.c (mode_for_array): New function.
3306 (layout_type): Use it.
3307 * config/arm/arm.c (arm_array_mode_supported_p): New function.
3308 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3310 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
3313 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3314 for -fstack-check if the size to allocate is negative.
3316 2011-05-02 Lawrence Crowl <crowl@google.com>
3318 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3319 (timevar_cond_start): New for starting a timer only when it is not
3321 (timevar_cond_stop): New for stopping a timer when it was not already
3324 * timevar.c (timevar_stop): Enable start/stop timers to start again.
3325 (timevar_cond_start): New as above.
3326 (timevar_cond_stop): New as above.
3328 * timevar.def: Add start/stop timers for compiler phases,
3329 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3330 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3331 and TV_PHASE_FINALIZE.
3332 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3333 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3334 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3335 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3336 Make unused TV_OVERLOAD into a start/stop timer.
3338 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3339 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3340 to indicate that they are start/stop timers.
3342 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3343 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3344 Move initialization to do_compile.
3345 (do_compile): Add initialization from above.
3346 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3348 * c-decl.c (c_write_global_declarations): Add start/stop of
3349 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3351 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3352 or TV_PARSE_INLINE, as appropriate.
3353 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3354 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3356 2011-05-02 Jason Merrill <jason@redhat.com>
3359 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3361 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
3364 * c-decl.c (finish_decl): Only create a composite if the types are
3367 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3369 * config/fr30/fr30-protos.h (Mmode): Don't define.
3370 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
3371 definition where used.
3372 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3373 define. Expand definitions where used.
3374 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3375 Expand definitions where used.
3376 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3377 rx_function_arg, rx_function_arg_advance,
3378 rx_function_arg_boundary): Expand definitions of those macros.
3379 * config/v850/v850-protos.h (Mmode): Don't define. Expand
3380 definition where used.
3382 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3384 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3386 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3387 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
3388 with *movv2sf_internal_rex64_avx.
3389 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3390 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3391 Use %v prefix in insn mnemonic to handle TARGET_AVX.
3392 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
3393 "vex" in "prefix" attribute calculation.
3394 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
3396 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
3399 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3400 inputs match the output.
3402 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
3405 * config/m68k/m68k.c (m68k_expand_prologue): Set
3406 current_function_static_stack_size.
3408 2011-05-02 Jan Hubicka <jh@suse.cz>
3410 * lto-streamer.c (lto_streamer_cache_insert_1,
3411 lto_streamer_cache_lookup, lto_streamer_cache_create,
3412 lto_streamer_cache_delete): Use pointer map instead of hashtable.
3413 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3415 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3417 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3418 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3419 config/m68k/t-opts: New files.
3420 * config/m68k/m68k-tables.opt: New file (generated).
3421 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3422 extra_options and m68k/t-opts to tmake_file.
3423 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3424 (all_isas): Initialize using m68k-isas.def.
3425 (all_microarchs): Initialize using m68k-microarchs.def.
3426 (m68k_find_selection): Remove.
3427 (m68k_handle_option): Don't assert that global structures are in
3428 use. Use error_at. Access variables via opts pointer. Don't
3429 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
3430 directly for -m68020-40 and -m68020-60.
3431 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3432 m68k_tune_entry here.
3433 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3435 (m68k_library_id_string): Remove declaration.
3436 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3437 (m68k_library_id_string): New Variable.
3438 (march=, mcpu=, mtune=): Use Enum and Var.
3440 2011-05-02 Richard Guenther <rguenther@suse.de>
3442 * varasm.c (output_constructor_regular_field): Compute zero-based
3443 index with double-ints. Make sure to ICE instead of producing
3445 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3446 in asserts. Properly use a signed type.
3448 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3450 * config/i386/sse.md (V): New mode iterator.
3451 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
3453 (V_256): Rename from AVX256MODE.
3454 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
3455 condition to all users.
3457 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
3458 condition to all users.
3459 (VF_128): Make V4SF mode unconditional.
3460 (VF_256): Rename from AVX256MODEF2P.
3461 (VI4F_128): Rename from SSEMODE4S.
3462 (VI8F_128): Rename from SSEMODE2D.
3463 (VI4F_256): Rename from AVX256MODE8P.
3464 (VI8F_256): Rename from AVX256MODE4P.
3465 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3466 (ssescalarmodesuffix): Remove SF and DF modes.
3467 (SSEMODE124): Remove.
3468 (SSEMODE1248): Ditto.
3469 (SSEMODEF2P): Ditto.
3470 (AVXMODEF2P): Ditto.
3471 (AVXMODEFDP): Ditto.
3472 (AVXMODEFSP): Ditto.
3473 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3475 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
3477 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3478 xop_pcmov_<mode>256. Use V mode iterator.
3480 Adjust RTX patterns globally for renamed mode attributes.
3482 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3484 * haifa-sched.c (sched_emit_insn): Emit insn before first
3485 non-scheduled insn. Inform back-end about new insn. Add
3486 new insn to scheduled_insns list.
3488 2011-05-02 Richard Guenther <rguenther@suse.de>
3490 PR tree-optimization/48822
3491 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3492 (process_scc): Indicate which iteration we start.
3494 2011-05-02 Jan Hubicka <jh@suse.cz>
3496 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3497 (lto_section_overrun): New.
3498 * lto-section-out.c (append_block): Rename to ...
3499 (lto_append_block): ... this one; export.
3500 (lto_output_1_stream): Move lto lto-streamer.h
3501 (lto_output_data_stream): Update.
3502 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3503 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3506 2011-05-02 Richard Guenther <rguenther@suse.de>
3508 * tree.c (tree_code_counts): New global array.
3509 (record_node_allocation_statistics): Count individual tree codes.
3510 (dump_tree_statistics): Dump individual code stats.
3512 2011-05-01 Jan Hubicka <jh@suse.cz>
3514 * ipa-inline.c (caller_growth_limits): Fix thinko when
3515 looking for largest stack frame.
3516 * ipa-inline.h (dump_inline_summary): Declare.
3517 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3519 (dump_inline_summary): Export.
3520 (debug_inline_summary): Declare as DEBUG_FUNCTION.
3522 2011-05-01 Anatoly Sokolov <aesok@post.ru>
3524 * reginfo.c (memory_move_cost): Change rclass argument type form
3525 'enum reg_class' to reg_class_t.
3526 * reload.h (memory_move_cost): Update prototype.
3527 * postreload.c reload_cse_simplify_set): Change type dclass var to
3529 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3531 (ira_allocate_and_set_costs): Change aclass argument type form
3532 'enum reg_class' to reg_class_t.
3533 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3534 Change aclass argument type to reg_class_t.
3535 (update_conflict_hard_reg_costs): Change type aclass and pref vars
3537 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
3538 memory_move_cost call.
3540 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
3541 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
3542 Change type tmp var to reg_class_t.
3544 2011-04-30 Jan Hubicka <jh@suse.cz>
3546 * ipa-inline.c (can_inline_edge_p): Disregard limits when
3547 inlining into function with flatten attribute.
3548 (want_inline_small_function_p): Be more realistic about inlining
3549 cold calls where callee size grows.
3551 2011-04-30 Jan Hubicka <jh@suse.cz>
3553 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
3556 2011-04-30 Anatoly Sokolov <aesok@post.ru>
3558 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3559 PRINT_OPERAND_PUNCT_VALID_P): Remove.
3560 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
3561 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
3562 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3563 (print_operand): Rename to...
3564 (sparc_print_operand): ...this. Make static. Adjust
3565 sparc_print_operand function call.
3566 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
3569 2011-04-30 Jan Hubicka <jh@suse.cz>
3572 * ipa-inline.c (early_inliner): Disable when doing late
3573 addition of function.
3575 2011-04-30 Jakub Jelinek <jakub@redhat.com>
3577 * dwarf2out.c (get_address_mode): New inline.
3578 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
3579 if not dwarf_strict emit
3580 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
3581 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
3582 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
3583 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
3584 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
3585 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
3586 mem_loc_descriptor callers.
3587 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3588 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3589 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3590 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3591 (base_types): New variable.
3592 (get_base_type_offset, calc_base_type_die_sizes,
3593 base_type_for_mode, mark_base_types, base_type_cmp,
3594 move_marked_base_types): New functions.
3595 (calc_die_sizes): Assert that die_offset is 0 or equal to
3597 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3598 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
3599 callers. If not dwarf_strict, call mem_loc_descriptor even for
3600 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3601 (gen_subprogram_die): Don't give up on call site parameters
3602 with non-integral or large integral modes. Adjust
3603 mem_loc_descriptor callers.
3604 (prune_unused_types): Call prune_unused_types_mark on base_types
3606 (resolve_addr): Call mark_base_types.
3607 (dwarf2out_finish): Call move_marked_base_types.
3609 PR tree-optimization/48809
3610 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3612 (gen_inbound_check): Don't compute index_expr - range_min in utype
3613 again, instead reuse SSA_NAME initialized in build_arrays.
3614 Remove two useless gsi_for_stmt calls.
3616 2011-04-29 Jeff Law <law@redhat.com>
3618 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3620 2011-04-29 Martin Jambor <mjambor@suse.cz>
3622 * cgraph.h (cgraph_postorder): Remove declaration.
3623 * ipa-utils.h (ipa_free_postorder_info): Declare.
3624 (ipa_reverse_postorder): Likewise.
3625 * cgraphunit.c: Include ipa-utils.h.
3626 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3627 * ipa-inline.c: Include ipa-utils.h.
3628 (ipa_inline): Update call to ipa_reverse_postorder.
3629 * ipa-pure-const.c (propagate_pure_const): Update call to
3630 ipa_reduced_postorder and ipa_print_order. Call
3631 ipa_free_postorder_info to clean up.
3632 (propagate_nothrow): Likewise.
3633 * ipa-reference.c (propagate): Removed a useless call to
3634 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3635 and ipa_print_order. Call ipa_free_postorder_info to clean up.
3636 * ipa.c: Include ipa-utils.h.
3637 (ipa_profile): Update call to ipa_reverse_postorder.
3638 (cgraph_postorder): Moved to...
3639 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3640 (ipa_utils_print_order): Renamed to ipa_print_order.
3641 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3643 (ipa_free_postorder_info): New function.
3644 * passes.c: Include ipa-utils.h.
3645 (do_per_function_toporder): Update call to ipa_reverse_postorder.
3646 (ipa_write_summaries): Likewise.
3647 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3648 (cgraphunit.o): Likewise.
3650 (ipa-inline.o): Likewise.
3652 2011-04-29 Jan Hubicka <jh@suse.cz>
3654 * gcc.dg/tree-ssa/inline-10.c: New testcase.
3655 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3656 * ipa-inline.h (clause_t): Turn into unsigned int.
3657 * ipa-inline-analysis.c (add_clause): Do more simplification.
3658 (and_predicates): Shortcut more cases.
3659 (predicates_equal_p): Move forward; check that clauses are properly
3661 (or_predicates): Shortcut more cases.
3662 (edge_execution_predicate): Rewrite as...
3663 (set_cond_stmt_execution_predicate): ... this function; handle
3664 __builtin_constant_p.
3665 (set_switch_stmt_execution_predicate): New .
3666 (compute_bb_predicates): New.
3667 (will_be_nonconstant_predicate): Update TODO.
3668 (estimate_function_body_sizes): Use compute_bb_predicates
3669 and free them later, always try to estimate if stmt is constant.
3670 (estimate_time_after_inlining, estimate_size_after_inlining):
3671 Gracefully handle optimized out edges.
3672 (read_predicate): Fix off by one error.
3674 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
3676 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3678 2011-04-27 Xinliang David Li <davidxl@google.com>
3680 * tree-profile.c (init_ic_make_global_vars): Set
3681 tls attribute on ic vars.
3682 * coverage.c (coverage_end_function): Initialize
3683 function_list with zero.
3685 2011-04-29 Richard Guenther <rguenther@suse.de>
3687 * builtins.c (fold_builtin_classify_type): Use integer_type_node
3688 for the type of the result.
3689 (fold_builtin_isascii): Likewise.
3690 (fold_builtin_toascii): Use integer_type_node where appropriate.
3691 (fold_builtin_logb): Likewise.
3692 (fold_builtin_frexp): Likewise.
3693 (fold_builtin_strstr): Likewise.
3694 (fold_builtin_strpbrk): Likewise.
3695 (fold_builtin_fputs): Likewise.
3696 (fold_builtin_sprintf): Likewise.
3697 (fold_builtin_snprintf): Likewise.
3698 (fold_builtin_printf): Likewise.
3699 (do_mpfr_remquo): Use a proper type for the assigned constant.
3700 (do_mpfr_lgamma_r): Likewise.
3701 * dwarf2out.c (resolve_one_addr): Use size_int.
3702 * except.c (init_eh): Likewise.
3703 (assign_filter_values): Use integer_type_node for filter values.
3704 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3706 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3707 for EH region numbers.
3708 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3709 for the shift amount.
3711 2011-04-29 Richard Guenther <rguenther@suse.de>
3713 * expr.h (expand_shift): Rename to ...
3714 (expand_variable_shift): ... this.
3715 (expand_shift): Take a constant shift amount.
3716 * expmed.c (expand_shift): Rename to ...
3717 (expand_variable_shift): ... this.
3718 (expand_shift): New wrapper around expand_variable_shift.
3719 * expr.c (convert_move, emit_group_load_1, emit_group_store,
3720 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3721 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3722 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3723 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3724 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3725 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3726 emit_store_flag_1, emit_store_flag): Likewise.
3727 * builtins.c (expand_builtin_signbit): Likewise.
3728 * calls.c (load_register_parameters): Likewise.
3729 * function.c (assign_parm_setup_block): Likewise.
3730 * lower-subreg.c (resolve_shift_zext): Likewise.
3731 * optabs.c (widen_bswap, expand_abs_nojump,
3732 expand_one_cmpl_abs_nojump, expand_float): Likewise.
3733 * spu/spu.c (spu_expand_extv): Likewise.
3734 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3736 2011-04-29 Richard Guenther <rguenther@suse.de>
3738 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3739 for the remapped region number.
3740 * predict.c (build_predict_expr): Use integer_type_node for the
3742 * fold-const.c (fold_binary_loc): Use integer_type_node for
3743 the shift amount. Use a proper type for the PLUS_EXPR operand.
3745 2011-04-29 Michael Matz <matz@suse.de>
3747 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3748 other trees that just builtins.
3749 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3751 2011-04-29 Richard Guenther <rguenther@suse.de>
3753 * tree-nested.c (get_trampoline_type): Use size_int.
3754 (get_nl_goto_field): Likewise.
3755 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3757 (lower_eh_constructs_2): Likewise.
3758 (lower_resx): Likewise.
3759 (lower_eh_dispatch): Likewise.
3760 * tree-mudflap.c (mf_build_string): Use size_int.
3761 (mudflap_register_call): Use integer_type_node for the flag.
3762 (mudflap_enqueue_constant): Use size_int.
3763 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3764 instead of rebuilding it.
3766 2011-04-29 Richard Guenther <rguenther@suse.de>
3768 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3769 Handle OBJ_TYPE_REF.
3770 (find_func_aliases_for_call): Use it more consistently.
3772 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
3774 * haifa-sched.c (last_nondebug_scheduled_insn): New.
3775 (rank_for_schedule): Use it.
3776 (schedule_block): Set it.
3778 2011-04-28 David Li <davidxl@google.com>
3780 * tree.c (crc32_string): Use crc32_byte.
3781 (crc32_byte): New function.
3782 * tree.h (crc32_byte): New function.
3783 * gcov.c (read_graph_file): Handle new cfg_cksum.
3784 (read_count_file): Ditto.
3785 * profile.c (instrument_values): Ditto.
3786 (get_exec_counts): Ditto.
3787 (read_profile_edge_counts): Ditto.
3788 (compute_branch_probabilities): Ditto.
3789 (compute_value_histograms): Ditto.
3790 (branch_prob): Ditto.
3791 (end_branch_prob): Ditto.
3792 * coverage.c (read_counts_file): Ditto.
3793 (get_coverage_counts): Ditto.
3794 (tree_coverage_counter_addr): Ditto.
3795 (coverage_checksum_string): Ditto.
3796 (coverage_begin_output): Ditto.
3797 (coverage_end_function): Ditto.
3798 (build_fn_info_type): Ditto.
3799 (build_fn_info_value): Ditto.
3800 * libgcov.c (gcov_exit): Ditto.
3801 * gcov-dump.c (tag_function): Ditto.
3802 (compute_checksum): Remove.
3804 2011-04-29 Alan Modra <amodra@gmail.com>
3806 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3807 unspec plus offset. Tidy macho code.
3809 2011-04-29 Martin Jambor <mjambor@suse.cz>
3811 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3812 node instead of a decl. Update all callers.
3813 * cgraph.h: Update declaration.
3815 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
3817 PR tree-optimization/48765
3818 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3819 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3820 to indicate if loop aware SLP is being used. Scan the statements
3821 and update the vectorization factor according to the type of
3822 vectorization before statement analysis.
3823 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3824 pass it to vect_analyze_loop_operations.
3825 (vectorizable_reduction): Set number of copies to 1 in case of pure
3827 * tree-vect-stmts.c (vectorizable_conversion,
3828 vectorizable_assignment, vectorizable_shift,
3829 vectorizable_operation, vectorizable_type_demotion,
3830 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
3832 (vectorizable_condition): Move the check that it is not SLP
3833 vectorization before the number of copies check.
3834 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
3835 to vectorize the loop using SLP.
3837 2011-04-28 Jakub Jelinek <jakub@redhat.com>
3840 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
3843 2011-04-28 Joseph Myers <joseph@codesourcery.com>
3845 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
3846 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
3847 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3848 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3849 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
3851 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
3852 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3853 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3854 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3855 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3856 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
3858 * config/i386/linux.h (REG_NAME): Don't define.
3859 * config/i386/linux64.h (REG_NAME): Don't define.
3860 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
3861 Undefine before defining.
3863 2011-04-28 Jan Hubicka <jh@suse.cz>
3865 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
3866 nonconstant_names array.
3867 (estimate_function_body_sizes): Build nonconstant_names array; handle
3868 BUILT_IN_CONSTANT_P.
3870 2011-04-28 Richard Guenther <rguenther@suse.de>
3874 2011-04-28 Richard Guenther <rguenther@suse.de>
3876 * tree-ssa-structalias.c (solve_constraints): Build succ graph
3877 as late as possible.
3879 2011-04-28 Richard Guenther <rguenther@suse.de>
3881 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
3882 (debug_constraint): Do it here.
3883 (dump_constraints): And here.
3884 (rewrite_constraints): And here.
3885 (dump_constraint_edge): Remove.
3886 (dump_constraint_graph): Rewrite to produce DOT output.
3887 (solve_constraints): Build succ graph as late as possible.
3888 Dump constraint graphs before and after solving.
3890 2011-04-28 Richard Guenther <rguenther@suse.de>
3892 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3893 New function split out from ...
3894 (find_func_aliases): ... here. Call it.
3895 (find_func_aliases_for_call): Likewise.
3897 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3899 * internal-fn.h (internal_fn_name_array): Declare.
3900 (internal_fn_flags_array): Likewise.
3902 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3904 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
3905 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3907 (ssemodefsuffix): Remove.
3908 (ssevecmodesuffix): New mode attribute.
3909 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3910 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3911 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3912 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3913 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3914 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3915 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3916 ssemodesuffix mode attribute.
3917 (float splitters): Use ssevecmodesuffix mode attribute.
3918 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3919 (sseinsmode): Rename from avxvecmode.
3920 (avxsizesuffix): Rename from avxmodesuffix.
3921 (sseintvecmode): Rename from avxpermvecmode.
3922 (ssedoublevecmode): Rename from ssedoublesizemode.
3923 (ssehalfvecmode): Rename from avxhalfvecmode.
3924 (ssescalarmode): Rename from avxscalarmode.
3925 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3926 templates for ssemodesuffix mode attribute.
3927 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3930 Adjust RTX patterns globally for renamed mode attributes.
3932 2011-04-27 Jan Hubcika <jh@suse.cz>
3934 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3935 * ipa-inline-analysis.c: Include alloc-pool.h.
3936 (edge_predicate_pool): New.
3937 (trye_predicate_p): New function
3938 (false_predicate_p): New function.
3939 (add_clause): Sanity check that false clauses are "optimized";
3940 never add clauses to predicate that is already known to be false.
3941 (and_predicate): Use flase_predicate_p.
3942 (evaulate_predicate): Rename to ...
3943 (evaluate_predicate): ... this one; update all callers; assert
3944 that false is not listed among possible truths.
3945 (dump_predicate): Use true_predicate_p.
3946 (account_size_time): Use false_predicate_p.
3947 (evaulate_conditions_for_edge): Rename to ...
3948 (evaluate_conditions_for_edge) ... this one.
3949 (edge_set_predicate): New function.
3950 (inline_edge_duplication_hook): Duplicate edge predicates.
3951 (inline_edge_removal_hook): Free edge predicates.
3952 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3953 (dump_inline_summary): Update.
3954 (estimate_function_body_sizes): Set edge predicates.
3955 (estimate_calls_size_and_time): Handle predicates.
3956 (estimate_callee_size_and_time): Update.
3957 (remap_predicate): Add toplev_predicate; update comment.
3958 (remap_edge_predicates): New function.
3959 (inline_merge_summary): Compute toplev predicate; update.
3960 (read_predicate): New function.
3961 (read_inline_edge_summary): Use it.
3962 (inline_read_section): Likewise.
3963 (write_predicate): New function.
3964 (write_inline_edge_summary): Use it.
3965 (inline_write_summary): Likewise.
3966 (inline_free_summary): Free alloc pool and edge summary vec.
3968 2011-04-27 Richard Guenther <rguenther@suse.de>
3970 * tree-ssa-structalias.c (changed_count): Remove.
3971 (changed): Use a bitmap.
3972 (unify_nodes): Adjust.
3973 (do_sd_constraint): Likewise.
3974 (do_ds_constraint): Likewise.
3975 (do_complex_constraint): Likewise.
3976 (solve_graph): Likewise.
3978 2011-04-27 Jan Hubicka <jh@suse.cz>
3980 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3982 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3984 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3985 (avx_vperm2f128_*_operand): Ditto.
3986 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3987 Use avx_vpermilp_parallel in insn condition.
3988 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3989 Use avx_vperm2f128_parallel in insn condition.
3991 2011-04-27 Richard Guenther <rguenther@suse.de>
3993 * Makefile.in (tree-ssa-structalias.o): Remove
3994 gt-tree-ssa-structalias.h dependency.
3995 (GTFILES): Remove tree-ssa-structalias.c.
3996 * tree.c (allocate_decl_uid): New function.
3997 (make_node_stat): Use it.
3998 (copy_node_stat): Likewise.
3999 * tree.h (allocate_decl_uid): Declare.
4000 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4001 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4002 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4003 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4004 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4005 (struct heapvar_map): Likewise.
4006 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4007 heapvar_insert): Likewise.
4008 (make_heapvar_for): Rename to ...
4009 (make_heapvar): ... this. Simplify.
4010 (fake_var_decl_obstack): New global var.
4011 (build_fake_var_decl): New function.
4012 (make_constraint_from_heapvar): Adjust.
4013 (handle_lhs_call): Likewise.
4014 (create_function_info_for): Likewise.
4015 (intra_create_variable_infos): Likewise.
4016 (init_alias_vars): Allocate fake_var_decl_obstack.
4017 (init_alias_heapvars, delete_alias_heapvars): Remove.
4018 (compute_points_to_sets): Do not call init_alias_heapvars.
4019 (ipa_pta_execute): Likewise.
4020 (delete_points_to_sets): Free fake_var_decl_obstack.
4022 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4024 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4025 (si_from_UTItype, si_to_UTItype): New functions.
4026 (__udivmodti4): Use them to implement type-punning.
4027 * config/spu/multi3.c (union qword_TItype): New data type.
4028 (si_from_TItype, si_to_TItype): New functions.
4029 (__multi3): Use them to implement type-punning.
4031 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4033 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4035 2011-04-27 Jan Hubicka <jh@suse.cz>
4037 * ipa-prop.c (function_insertion_hook_holder): New holder.
4038 (ipa_add_new_function): New function.
4039 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4040 Register/deregister holder.
4042 2011-04-27 Richard Guenther <rguenther@suse.de>
4044 PR tree-optimization/48772
4045 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4047 2011-04-27 Richard Guenther <rguenther@suse.de>
4049 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4050 TARGET_MEM_REF handling.
4052 2011-04-27 Nick Clifton <nickc@redhat.com>
4054 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4055 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4056 (REG_CLASS_NAMES): Likewise.
4057 (REG_CLASS_CONTENTS): Likewise.
4058 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4059 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4060 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4061 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4062 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4063 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4064 duplicate register classes.
4065 (frv_class_likely_spilled_p): Likewise.
4066 (frv_register_move_cost): Likewise.
4068 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4069 end of the regno_reg_class array.
4071 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4074 * c-typeck.c (build_binary_op): Don't wrap arguments if
4075 int_operands is true.
4077 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4080 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4081 targetm.calls.must_pass_in_stack for void type.
4083 2011-04-26 Jan Hubicka <jh@suse.cz>
4085 * cgraphbuild.c (build_cgraph_edges): Update call
4086 of cgraph_create_edge and cgraph_create_indirect_edge.
4087 * cgraph.c (cgraph_create_edge_including_clones,
4088 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4089 cgraph_update_edges_for_call_stmt_node): Do not take nest
4090 argument; do not initialize call_stmt_size/time.
4091 (dump_cgraph_node): Do not dump nest.
4092 (cgraph_clone_edge): Do not take loop_nest argument;
4093 do not propagate it; do not clone call_stmt_size/time.
4094 (cgraph_clone_node): Likewise.
4095 (cgraph_create_virtual_clone): Update.
4096 * cgraph.h (struct cgraph_edge): Remove
4097 call_stmt_size/call_stmt_time/loop_nest.
4098 (cgraph_create_edge, cgraph_create_indirect_edge,
4099 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4101 * tree-emutls.c (gen_emutls_addr): Update.
4102 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4103 loop_nest; handle indirect calls, too.
4104 (clone_inlined_nodes): Do not care about updating inline summaries.
4105 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4106 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4107 stream call_stmt_size/call_stmt_time/loop_nest.
4108 * ipa-inline.c (edge_badness): Update.
4109 (ipa_inline): dump summaries after inlining.
4110 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4112 (inline_edge_summary): New function.
4113 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4114 (inline_edge_removal_hook): Handle edge summaries.
4115 (inline_edge_duplication_hook): New hook.
4116 (inline_summary_alloc): Alloc hooks.
4117 (initialize_growth_caches): Do not register removal hooks.
4118 (free_growth_caches); Do not free removal hook.
4119 (dump_inline_edge_summary): New function.
4120 (dump_inline_summary): Use it.
4121 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4122 (inline_update_callee_summaries): New function.
4123 (inline_merge_summary): Use it.
4124 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4125 (read_inline_edge_summary): New function.
4126 (inline_read_section): Use it.
4127 (write_inline_edge_summary): New function.
4128 (inline_write_summary): Use it.
4129 (inline_free_summary): Free edge new holders.
4130 * tree-inline.c (copy_bb): Update.
4132 2011-04-26 Jason Merrill <jason@redhat.com>
4134 * tree-eh.c (lower_try_finally_switch): Create the label along with
4135 the CASE_LABEL_EXPR.
4137 2011-04-26 David S. Miller <davem@davemloft.net>
4138 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4140 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4141 * configure: Regenerate.
4143 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4146 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4148 (VEC_reduc): New code iterator and splitters for vector reduction.
4149 (VEC_reduc_name): Ditto.
4150 (VEC_reduc_rtx): Ditto.
4151 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4152 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4154 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4155 support for extracting SF on VSX.
4157 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4158 generating xscvspdp.
4159 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4160 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4161 double add, minimum, maximum vector reduction.
4162 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4163 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4164 optimize double vector reduction.
4165 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4167 2011-04-26 Joseph Myers <joseph@codesourcery.com>
4169 * config/fr30/fr30.h (inhibit_libc): Don't define.
4170 * config/m32r/m32r-protos.h: Correct comment.
4171 * config/v850/v850.h (GHS_default_section_names,
4172 GHS_current_section_names): Use tree, not union tree_node *.
4174 2011-04-26 Xinliang David Li <davidxl@google.com>
4176 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4177 * c-family/c-opts.c (c_common_handle_option): Set
4178 warn_maybe_uninitialized.
4179 * opts.c (common_handle_option): Ditto.
4180 * common.opt: New option.
4181 * tree-ssa.c (warn_uninit): Add one more parameter.
4182 (warn_uninitialized_var): Pass warning code.
4183 * tree-flow.h: Interface change.
4186 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4188 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4189 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4190 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4192 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4194 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4195 * config/mips/mips.opt (mmips-tfile): Remove.
4197 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4198 mips-tdump reference to ...
4199 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
4200 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4201 reference by Tru64 UNIX.
4203 2011-04-26 Jakub Jelinek <jakub@redhat.com>
4206 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4207 is error_mark_node, set value to NULL.
4209 PR tree-optimization/48734
4210 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4211 if return value from maybe_fold_*_comparsions isn't something
4212 the code is prepared to handle.
4214 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
4216 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4218 (ext_QIreg_nomode_operands): Remove.
4219 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4223 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
4225 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4227 2011-04-26 Richard Guenther <rguenther@suse.de>
4229 * c-typeck.c (build_unary_op): Do not expand array-refs via
4230 pointer arithmetic. Only adjust qualifiers for function types.
4232 2011-04-26 Richard Guenther <rguenther@suse.de>
4235 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4236 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4237 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
4238 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4240 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4242 * doc/extend.texi: Document __underlying_type.
4244 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
4246 * config/rs6000/titan.md (automata_option "progress"): Remove.
4248 2011-04-25 Jeff Law <law@redhat.com>
4250 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4252 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4254 * system.h (ENUM_BITFIELD): Remove.
4256 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
4257 Eric Botcazou <ebotcazou@adacore.com>
4259 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4260 for STORE_FLAG_VALUE==-1 case.
4262 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
4265 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4266 LEGITIMATE_PIC_OPERAND_P.
4268 2011-04-24 Jan Hubicka <jh@suse.cz>
4270 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4272 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4273 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4274 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4275 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4276 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4277 Sanity check predicate length.
4278 (remap_predicate): Likewise; sanity check jump functions.
4279 (inline_read_section, inline_write_summary): Sanity check
4282 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4285 * doc/extend.texi (Type Traits): Document __is_standard_layout,
4286 __is_literal_type, and __is_trivial; update throughout about
4287 possibly cv-qualified void types.
4289 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4291 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4292 testsuite and make it version agnostic.
4294 2011-04-22 Jan Hubicka <jh@suse.cz>
4296 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4298 2011-04-23 Jakub Jelinek <jakub@redhat.com>
4301 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4302 to VOID_TYPE even around MODIFY_EXPR.
4304 2011-04-22 Mike Stump <mikestump@comcast.net>
4306 * gensupport.c (read_md_rtx): Fix typo in comment.
4307 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4310 2011-04-22 Jan Hubicka <jh@suse.cz>
4312 * gengtype.c (open_base_files): Add ipa-inline.h include.
4313 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4314 ipa-prop.c; update all uses.
4315 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4316 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4317 merge summary of inlined function into former caller.
4318 * ipa-inline.c (max_benefit): Remove.
4319 (edge_badness): Compensate for removal of benefits.
4320 (update_caller_keys): Use
4321 reset_node_growth_cache/reset_edge_growth_cache.
4322 (update_callee_keys): Likewise.
4323 (update_all_callee_keys): Likewise.
4324 (inline_small_functions): Do not collect max_benefit; do not reset
4325 estimated_growth; call free_growth_caches and initialize_growth_caches.
4326 * ipa-inline.h (struct condition, type clause_t, struct predicate,
4327 struct size_time_entry): New structures.
4328 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4329 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4330 and estimated_growth.
4331 (edge_growth_cache_entry): New structure.
4332 (node_growth_cache, edge_growth_cache): New global vars.
4333 (estimate_growth): Turn into inline.
4334 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4335 initialize_growth_caches, free_growth_caches): Declare.
4336 (estimate_edge_growth): Rewrite.
4337 (estimate_edge_time): Implement as inline cache lookup.
4338 (reset_node_growth_cache, reset_edge_growth_cache): New inline
4340 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4341 (NUM_CONDITIONS): New constant.
4342 (predicate_conditions): New enum.
4343 (IS_NOT_CONSTANT): New constant.
4344 (edge_removal_hook_holder): New var.
4345 (node_growth_cache, edge_growth_cache): New global vars.
4346 (true_predicate, single_cond_predicate, false_predicate,
4347 not_inlined_predicate, add_condition, add_clause, and_predicates,
4348 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4349 dump_clause, dump_predicate, account_size_time,
4350 evaulate_conditions_for_edge): New functions.
4351 (inline_summary_alloc): Move to heap.
4352 (inline_node_removal_hook): Clear condition and entry vectors.
4353 (inline_edge_removal_hook): New function.
4354 (initialize_growth_caches, free_growth_caches): New function.
4355 (dump_inline_summary): Update.
4356 (edge_execution_predicate): New function.
4357 (will_be_nonconstant_predicate): New function.
4358 (estimate_function_body_sizes): Compute BB and constantness predicates.
4359 (compute_inline_parameters): Do not clear estimated_growth.
4360 (estimate_edge_size_and_time): New function.
4361 (estimate_calls_size_and_time): New function.
4362 (estimate_callee_size_and_time): New function.
4363 (remap_predicate): New function.
4364 (inline_merge_summary): New function.
4365 (do_estimate_edge_time): New function based on...
4366 (estimate_edge_time): ... this one.
4367 (do_estimate_edge_growth): New function.
4368 (do_estimate_growth): New function based on....
4369 (estimate_growth): ... this one.
4370 (inline_analyze_function): Analyze after deciding on jump functions.
4371 (inline_read_section): New function.
4372 (inline_read_summary): Use it.
4373 (inline_write_summary): Write all the new data.
4374 * ipa-prop.c (ipa_get_param_decl_index): Export.
4375 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4376 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4378 (ipa_get_lattice): Move here from ipa-cp.c
4379 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4380 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4381 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4382 cgraph_edge_inlinable_p): Remove.
4383 * cgraphunit.c: Include ipainline.h
4384 (cgraph_process_new_functions): Update call of
4385 compute_inline_parameters.
4387 2011-04-22 Richard Guenther <rguenther@suse.de>
4389 * tree.c (build_int_cst): Properly create canonicalized integer
4391 (build_int_cst_type): Remove scary comments.
4393 2011-04-22 Xinliang David Li <davidxl@google.com>
4395 * toplev.c (process_options): Enable -Werror=coverage-mismatch
4396 by default when -Wno-error is not specified.
4397 * opts-global.c (decode_options): Remove call to
4398 control_warning_options.
4400 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4402 PR tree-optimization/48717
4403 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4404 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4406 2011-04-22 Joseph Myers <joseph@codesourcery.com>
4408 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
4409 definition where used.
4411 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4414 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4415 TREE_STATIC variables declared inside of some OpenMP construct.
4417 2011-04-22 Martin Jambor <mjambor@suse.cz>
4420 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4422 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
4425 * c-typeck.c (pop_init_level): Do not warn about initializing
4428 2011-04-22 Alan Modra <amodra@gmail.com>
4430 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4431 when returning call_cookie.
4432 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4433 pointers, to functions with no more vector args than the current
4434 function, and some non-local calls for ABI_V4.
4435 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4436 sibcall_nonlocal_aix64): Combine to ..
4437 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
4438 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4439 (sibcall_value_nonlocal_aix<mode>): ..likewise.
4440 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4441 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
4443 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4444 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4445 sibcall_value_symbolic_64): Delete.
4447 2011-04-21 Xinliang David Li <davidxl@google.com>
4449 * cgraph.h: Remove pid.
4450 * cgraph.c: Remove pid.
4451 * value-prof.c (init_node_map): New function.
4452 (del_node_map): New function.
4453 (find_func_by_funcdef_no): New function.
4454 (gimple_ic_transform): Call new function.
4455 * cgraphunit.c (cgraph_finalize_function): Remove pid.
4456 * function.c (get_last_funcdef_no): New function.
4457 * function.h (get_last_funcdef_no): New function.
4458 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4459 to libgcov function.
4460 (tree-profiling): Call node map init and delete function.
4462 2011-04-21 Ian Lance Taylor <iant@google.com>
4464 * godump.c (go_format_type): Use exported Go name for anonymous
4467 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4469 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4470 Call builtin_function_type_list instead of builtin_function_type.
4471 (UNARY, BINARY, TRINARY, QUAD): Likewise.
4473 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4475 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4476 build_function_type_list instead of build_function_type.
4477 Delete variable `endlink'.
4479 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4481 * config/s390/s390.c (s390_init_builtins): Call
4482 build_function_type_list instead of build_function_type.
4484 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4486 * config/ia64/ia64.c (ia64_init_builtins): Call
4487 build_function_type_list instead of builtin_function_type.
4489 2011-04-21 Easwaran Raman <eraman@google.com>
4491 * cfgexpand.c (stack_var): Remove OFFSET...
4492 (add_stack_var): ...and its reference here...
4493 (expand_stack_vars): ...and here.
4494 (stack_var_cmp): Sort by descending order of size.
4495 (partition_stack_vars): Change heuristic.
4496 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4497 (dump_stack_var_partition): Add newline after each partition.
4499 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
4500 Jeff Law <law@redhat.com>
4502 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4503 * gengtype.c (matching_file_name_substitute): Likewise.
4505 2011-04-21 Richard Guenther <rguenther@suse.de>
4508 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4510 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
4512 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4514 2011-04-21 Richard Guenther <rguenther@suse.de>
4516 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4519 2011-04-21 Richard Guenther <rguenther@suse.de>
4521 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4522 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
4523 Use DECL_P, not SSA_VAR_P.
4524 (ptr_derefs_may_alias_p): Likewise.
4525 (ptr_deref_may_alias_ref_p_1): Likewise.
4526 (decl_refs_may_alias_p): Likewise.
4527 (refs_may_alias_p_1): Likewise.
4528 (ref_maybe_used_by_call_p_1): Likewise.
4529 (call_may_clobber_ref_p_1): Likewise.
4530 (indirect_ref_may_alias_decl_p): Assume indirect refrences
4531 are either MEM_REF or TARGET_MEM_REF.
4532 (indirect_refs_may_alias_p): Likewise.
4533 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4534 for MEM_EXPR of indirect calls.
4536 2011-04-21 Tristan Gingold <gingold@adacore.com>
4538 * vmsdbgout.c (write_srccorr): Compute file length from the string.
4539 (dst_file_info_struct): Remove flen field.
4540 (lookup_filename): Remove code that set flen field.
4542 2011-04-21 Tristan Gingold <gingold@adacore.com>
4544 * config/ia64/ia64.c (ia64_start_function): Add a guard.
4546 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
4549 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
4550 vec_extract and vec_concat for non-SSE4_1 targets.
4552 2011-04-21 Richard Guenther <rguenther@suse.de>
4554 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
4557 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4559 * config/i386/cygming.h (union tree_node, TREE): Don't define or
4561 (FILE): Don't undefine.
4563 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4565 * config/alpha/alpha.c (struct machine_function): Use rtx, not
4567 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
4569 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
4570 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
4571 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
4573 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
4574 definitions where used.
4575 * config/microblaze/microblaze.h (struct microblaze_args): Use
4576 rtx, not struct rtx_def *.
4577 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
4579 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
4580 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
4581 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
4582 not struct rtx_def *.
4583 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
4585 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
4587 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4589 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4591 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4592 operand_equal_p to compare DR_BASE_ADDRESSes.
4593 (vect_check_interleaving): Likewise.
4595 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4598 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4599 for all Neon struct constants.
4601 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4603 * target.def (legitimate_constant_p): New hook.
4604 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4605 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4606 * doc/tm.texi: Regenerate.
4607 * hooks.h (hook_bool_mode_rtx_true): Declare.
4608 * hooks.c (hook_bool_mode_rtx_true): Define.
4609 * system.h (LEGITIMATE_CONSTANT_P): Poison.
4610 * calls.c (precompute_register_parameters): Replace uses of
4611 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4612 (emit_library_call_value_1): Likewise.
4613 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4614 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4615 * ira-costs.c (scan_one_insn): Likewise.
4616 * recog.c (general_operand, immediate_operand): Likewise.
4617 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4618 * reload1.c (init_eliminable_invariants): Likewise.
4620 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4622 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4623 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4625 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4626 * config/alpha/predicates.md (input_operand): Update call to
4627 alpha_legitimate_constant_p.
4629 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4630 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4631 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4632 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4633 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4634 (arm_legitimate_constant_p): New functions.
4635 (arm_cannot_force_const_mem): Make static.
4637 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4639 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4640 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4641 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4642 instead of bfin_legitimate_constant_p.
4643 (bfin_legitimate_constant_p): Make static. Add a mode argument.
4644 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4646 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4648 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4650 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4651 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4652 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4653 (frv_legitimate_constant_p): Make static. Add a mode argument.
4655 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4656 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4657 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4659 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4660 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4661 * config/i386/i386.c (legitimate_constant_p): Rename to...
4662 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
4664 (ix86_cannot_force_const_mem): Update accordingly.
4665 (ix86_legitimate_address_p): Likewise.
4666 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4667 * config/i386/i386.md: Update commentary.
4669 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4670 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4671 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4672 (ia64_legitimate_constant_p): Make static. Add a mode argument.
4674 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4676 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4677 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4678 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4679 (lm32_legitimate_constant_p): Make static. Add a mode argument.
4681 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4682 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4683 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4685 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4686 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4687 (m32r_legitimate_constant_p): New function.
4689 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4690 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4691 LEGITIMATE_CONSTANT_P.
4692 (LEGITIMATE_CONSTANT_P): Delete.
4693 * config/m68k/m68k.c (m68k_expand_prologue): Call
4694 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4695 (m68k_legitimate_constant_p): New function.
4696 * config/m68k/m68k.md: Update comments.
4698 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4699 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4700 (mcore_legitimate_constant_p): New function.
4702 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4703 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4704 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4705 Add a mode argument.
4706 (mep_legitimate_address): Update accordingly.
4707 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4709 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4711 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4712 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4713 static. Check OP's mode for VOIDmode.
4714 (microblaze_legitimate_constant_p): New function.
4715 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4717 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4718 * config/mips/mips.c (mips_legitimate_constant_p): New function.
4719 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4720 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4721 * config/mips/predicates.md: Update comments.
4723 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4724 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4725 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4726 (mmix_legitimate_constant_p): Make static, return a bool, and take
4728 (mmix_print_operand_address): Update accordingly.
4730 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4732 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4733 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4734 static. Add a mode argument.
4735 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4737 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4739 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4740 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4741 (pa_legitimate_constant_p): New function.
4743 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4745 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4746 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4747 (pdp11_legitimate_constant_p): New function.
4749 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4750 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4751 (rs6000_legitimate_constant_p): New function.
4753 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4754 (rx_legitimate_constant_p): ...this.
4755 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4756 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4757 (rx_legitimate_constant_p): ...this.
4758 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4759 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4761 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4762 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4763 * config/s390/s390.c (legitimate_constant_p): Rename to...
4764 (s390_legitimate_constant_p): ...this. Make static, return a bool,
4765 and add a mode argument.
4766 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4768 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4770 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4771 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4772 (sh_legitimate_constant_p): New function.
4774 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4775 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4776 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4777 (legitimate_constant_p): Rename to...
4778 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
4780 (constant_address_p): Update accordingly.
4782 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4783 argument and return a bool.
4784 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4785 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4786 (spu_legitimate_constant_p): Add a mode argument and return a bool.
4787 (spu_rtx_costs): Update accordingly.
4788 * config/spu/predicates.md (vec_imm_operand): Likewise.
4790 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
4792 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
4793 * config/v850/v850.c (v850_legitimate_constant_p): New function.
4794 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4796 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
4797 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
4798 * config/vax/vax.c (legitimate_constant_p): Likewise.
4800 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
4801 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4802 (xtensa_legitimate_constant_p): New function.
4804 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4806 * target.def (cannot_force_const_mem): Add a mode argument.
4807 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4808 * doc/tm.texi: Regenerate.
4809 * hooks.h (hook_bool_mode_rtx_false): Declare.
4810 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4811 (hook_bool_mode_const_rtx_true): Likewise.
4812 (hook_bool_mode_rtx_false): New function.
4813 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4814 to be non-VOID. Update call to cannot_force_const_mem.
4815 (find_reloads): Update accordingly.
4816 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4817 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4819 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4820 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4821 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4822 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4823 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4824 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4825 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4826 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4827 (m68k_cannot_force_const_mem): ...this new function.
4828 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4830 (mips_const_insns, mips_legitimize_const_move): Update calls.
4831 (mips_secondary_reload_class): Likewise.
4832 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4833 (pa_cannot_force_const_mem): ...this new function.
4834 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
4835 (rs6000_cannot_force_const_mem): ...this new function.
4836 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
4838 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
4839 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
4841 (xtensa_cannot_force_const_mem): ...this new function.
4843 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4845 * config/mips/mips.c (mips16_build_function_stub): Call
4846 build_function_type_list instead of build_function_type.
4847 (mips16_build_call_stub): Likewise.
4849 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4851 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
4852 instead of build_function_type.
4854 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4856 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
4857 instead of build_function_type.
4859 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
4862 * config/i386/i386.md (insv): Change operand 0 constraint to
4863 "register_operand". Change operand 1 and 2 constraint to
4864 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
4865 * config/i386/sse.md (sse4_1_pinsrb): Export.
4866 (sse2_pinsrw): Ditto.
4867 (sse4_1_pinsrd): Ditto.
4868 (sse4_1_pinsrq): Ditto.
4869 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
4870 * config/i386/i386.c (ix86_expand_pinsr): New.
4872 2011-04-20 Easwaran Raman <eraman@google.com>
4874 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
4875 containing union type only with -fstrict-aliasing.
4877 2011-04-20 Jim Meyering <meyering@redhat.com>
4879 Remove useless if-before-free tests.
4880 * calls.c (expand_call, save_area): Likewise.
4881 * cfgcleanup.c (try_forward_edges): Likewise.
4882 * collect2.c (collect_execute): Likewise.
4883 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
4884 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4885 * coverage.c (coverage_checksum_string): Likewise.
4886 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
4887 * cselib.c (cselib_init): Likewise.
4888 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
4889 (df_set_clean_cfg): Likewise.
4890 * function.c (free_after_compilation): Likewise.
4891 * gcc.c (do_spec_1, main): Likewise.
4892 * gcov.c (create_file_names): Likewise.
4893 * gensupport.c (identify_predicable_attribute): Likewise.
4894 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
4895 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
4896 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
4897 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
4898 * ipa-pure-const.c (local_pure_const): Likewise.
4899 * ipa-reference.c (propagate): Likewise.
4900 * ira-costs.c (free_ira_costs): Likewise.
4901 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
4902 * matrix-reorg.c (mat_free): Likewise.
4903 * prefix.c (get_key_value): Likewise.
4904 * profile.c (compute_value_histograms): Likewise.
4905 * reload1.c (free_reg_equiv): Likewise.
4906 * sched-deps.c (free_deps): Likewise.
4907 * sel-sched-ir.c (fence_clear): Likewise.
4908 * sese.c (set_rename, if_region_set_false_region): Likewise.
4909 * tree-data-ref.c (free_rdg): Likewise.
4910 * tree-eh.c (lower_try_finally): Likewise.
4911 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4912 * tree-ssa-live.c (delete_var_map): Likewise.
4913 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4914 * tree-ssa-pre.c (phi_trans_add): Likewise.
4916 2011-04-20 Jakub Jelinek <jakub@redhat.com>
4918 PR tree-optimization/48611
4919 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4920 beyond ERT_MUST_NOT_THROW region.
4922 2011-04-20 Catherine Moore <clm@codesourcery.com>
4924 * config/mips/mips.opt (mfix-24k): New.
4925 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4926 * config/mips/mips.md (length): Increase by 4 for stores if
4928 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4929 all noreorder if fixing 24K errata.
4930 * doc/invoke.texi: Document mfix-24k.
4932 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
4934 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4935 quad-word modes, reduce to 9-bit index range when above 1016 limit.
4937 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4939 * config/arm/arm.c (arm_gen_constant): Move movw support ....
4940 (const_ok_for_op): ... to here.
4942 2011-04-20 Kai Tietz <ktietz@redhat.com>
4944 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4945 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4947 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4949 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4951 2011-04-20 Richard Guenther <rguenther@suse.de>
4953 PR tree-optimization/47892
4954 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4957 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
4959 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4961 2011-04-20 Tristan Gingold <gingold@adacore.com>
4963 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4965 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
4969 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4970 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4971 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4972 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4973 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4975 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4978 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4979 (avr_asm_named_section, avr_asm_output_aligned_common,
4980 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4981 New functions to update...
4982 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4983 (avr_asm_init_sections): Overwrite section callbacks for
4984 data_section, bss_section.
4985 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4987 (avr_file_end): ...here.
4989 2011-04-20 Richard Guenther <rguenther@suse.de>
4992 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4993 objects and types here. Adjust for their offset before comparing.
4995 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4997 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5000 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5002 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5003 (GIMPLE_H): Include $(INTERNAL_FN_H).
5004 (OBJS-common): Add internal-fn.o.
5005 (internal-fn.o): New rule.
5006 * internal-fn.def: New file.
5007 * internal-fn.h: Likewise.
5008 * internal-fn.c: Likewise.
5009 * gimple.h: Include internal-fn.h.
5010 (GF_CALL_INTERNAL): New gf_mask.
5011 (gimple_statement_call): Put fntype into a union with a new
5013 (gimple_build_call_internal): Declare.
5014 (gimple_build_call_internal_vec): Likewise.
5015 (gimple_call_same_target_p): Likewise.
5016 (gimple_call_internal_p): New function.
5017 (gimple_call_internal_fn): Likewise.
5018 (gimple_call_fntype): Return null for internal calls.
5019 (gimple_call_set_fntype): Assert that the function is not internal.
5020 (gimple_call_set_fn): Likewise.
5021 (gimple_call_set_fndecl): Likewise.
5022 (gimple_call_set_internal_fn): New function.
5023 (gimple_call_addr_fndecl): Handle null functions.
5024 (gimple_call_return_type): Likewise null types.
5025 * gimple.c (gimple_build_call_internal_1): New function.
5026 (gimple_build_call_internal): Likewise.
5027 (gimple_build_call_internal_vec): Likewise.
5028 (gimple_call_same_target_p): Likewise.
5029 (gimple_call_flags): Handle calls to internal functions.
5030 (gimple_call_fnspec): New function.
5031 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5032 (gimple_has_side_effects): Handle null functions.
5033 (gimple_rhs_has_side_effects): Likewise.
5034 (gimple_call_copy_skip_args): Handle calls to internal functions.
5035 * cfgexpand.c (expand_call_stmt): Likewise.
5036 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5037 * gimple-fold.c (gimple_fold_call): Handle null functions.
5038 (gimple_fold_stmt_to_constant_1): Don't fold
5039 calls to internal functions.
5040 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5042 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5043 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5044 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5045 (do_warn_unused_result): Likewise.
5046 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5047 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5048 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5049 the target of a call.
5050 (initialize_hash_element): Update accordingly.
5051 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5052 (iterative_hash_hashable_expr): Handle calls to internal functions.
5053 (print_expr_hash_elt): Likewise.
5054 * tree-ssa-pre.c (can_value_number_call): Likewise.
5055 (eliminate): Handle null functions.
5056 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5057 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5058 (find_func_aliases): Likewise.
5059 * value-prof.c (gimple_ic_transform): Likewise.
5060 (gimple_indirect_call_to_profile): Likewise.
5061 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5062 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5064 2011-04-19 Jan Hubicka <jh@suse.cz>
5066 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5067 * ipa-inline.c (inline_small_functions): Compute summaries first,
5068 populate heap later.
5070 2011-04-19 Jan Hubicka <jh@suse.cz>
5072 * cgraph.h (save_inline_function_body): Remove.
5073 * ipa-inline-transform.c: New file, broke out of...
5074 * ipa-inline.c: ... this one; Update toplevel comment.
5075 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5077 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5078 (cgraph_mark_inline_edge): Rename to inline_call; move to
5079 ipa-inline-transform.c.
5080 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5081 move to ipa-inline-transform.c
5082 (recursive_inlining, inline_small_functions, flatten_function,
5083 ipa_inline, inline_always_inline_functions,
5084 early_inline_small_functions): Update.
5085 (inline_transform): Move to ipa-inline-transform.c.
5086 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5088 * Makefile.in (ipa-inline-transform.o): New file.
5089 * cgraphunit.c (save_inline_function_body): Move to
5090 ipa-inline-transform.c
5092 2011-04-19 DJ Delorie <dj@redhat.com>
5094 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5095 registers if we already know there aren't any.
5096 (m32c_emit_epilogue): Don't emit a barrier here.
5097 (m32c_emit_eh_epilogue): Likewise.
5098 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5099 operands at expand time.
5100 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5102 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5103 duplicates. Provide aliases instead.
5104 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5105 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5108 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5110 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5111 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5112 (general_or_i64_p, sparc_register_move_cost): New function.
5114 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5116 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5117 Add lynx, mipssde. Sort table.
5119 2011-04-19 Xinliang David Li <davidxl@google.com>
5121 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5124 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5127 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5128 is a SUBREG with non-MODE_INT mode inside of it.
5130 2011-04-19 Martin Jambor <mjambor@suse.cz>
5132 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5133 also according to actual contants.
5134 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5135 (gimple_fold_call): Use it.
5136 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5138 2011-04-19 Martin Jambor <mjambor@suse.cz>
5140 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5141 non-pointer assignments.
5143 2011-04-19 Martin Jambor <mjambor@suse.cz>
5145 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5146 account anc_offset and otr_type from the indirect edge info.
5147 * ipa-prop.c (get_ancestor_addr_info): New function.
5148 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5149 get_ancestor_addr_info, call it.
5150 (ipa_note_param_call): Do not initialize information about polymorphic
5151 calls, return the indirect call graph edge. Remove the last
5152 parameter, adjust all callers.
5153 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5154 parameters. Initialize polymorphic information in the indirect edge.
5156 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5159 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5160 the types if they have different enumeration identifiers.
5162 2011-04-19 Jan Hubicka <jh@suse.cz>
5164 * cgraph.h (cgraph_optimize_for_size_p): Declare.
5165 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5166 * predict.c (cgraph_optimize_for_size_p): Break out from ...
5167 (optimize_function_for_size_p) ... here.
5169 2011-04-19 Richard Guenther <rguenther@suse.de>
5172 * tree.c (free_lang_data): Do not reset the decl-assembler-name
5175 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5177 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5178 if DECL_NO_INLINE_WARNING_P is set on the function.
5180 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
5183 * reload1.c (inc_for_reload): Return void. All callers changed.
5184 (emit_input_reload_insns): Don't try to delete previous output
5185 reloads to a register, or record spill_reg_store for autoincs.
5187 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
5189 * gengtype.h: Updated copyright year.
5190 (struct input_file_st): Add inpisplugin field.
5191 (type_fileloc): New function.
5193 (write_typed_struct_alloc_def): Add gcc_assert.
5194 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5195 (write_typed_alloc_defns): Don't output for plugin files.
5196 (input_file_by_name): Clear inpisplugin field.
5197 (main): Set inpisplugin field for plugin files.
5199 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
5201 * gengtype-state.c (string_eq): New.
5202 (read_state): Use string_eq instead of strcmp when creating the
5205 2011-04-19 Wei Guozhi <carrot@google.com>
5208 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5209 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5211 * config/arm/constraints.md (Uu): New constraint.
5212 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5214 2011-04-19 Tristan Gingold <gingold@adacore.com>
5216 * config.gcc (-*-*-*vms): Added.
5217 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5219 * config/vms/vms-ld.c: New file.
5220 * config/vms/vms-ar.c: New file.
5221 * config/vms/t-vmsnative: New file.
5223 2011-04-18 Xinliang David Li <davidxl@google.com>
5225 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5227 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5230 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5231 if TREE_TYPE (v) is non-NULL.
5233 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5234 gimple_get_virt_mehtod_for_binfo.
5235 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5236 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5238 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5240 2011-04-18 Michael Matz <matz@suse.de>
5241 Steve Ellcey <sje@cup.hp.com>
5243 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5244 use its mode as source mode if it isn't VOIDmode.
5246 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
5248 * doc/passes.texi: Fill crossref nodes.
5250 2011-04-18 Jim Meyering <meyering@redhat.com>
5252 Fix doubled-word typos in comments and strings
5253 * config/alpha/vms-unwind.h: s/for for/for/
5254 * config/arm/unwind-arm.h: Likewise.
5255 * config/microblaze/microblaze.c: Likewise.
5256 * config/sh/constraints.md: s/in in/in/
5257 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5259 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
5261 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5262 (AVX_FLOAT_MODE_P): Ditto.
5263 (AVX128_VEC_FLOAT_MODE_P): Ditto.
5264 (AVX256_VEC_FLOAT_MODE_P): Ditto.
5265 (AVX_VEC_FLOAT_MODE_P): Ditto.
5266 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5267 (UNSPEC_MASKSTORE): Ditto.
5268 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5269 Merge from <sse>_movmsk<ssemodesuffix> and
5270 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
5271 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
5273 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5274 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5275 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5277 2011-04-18 Jan Hubicka <jh@suse.cz>
5279 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5281 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5282 (want_inline_function_called_once_p): Break out the logic from
5284 (edge_badness): Ensure that profile is not misupdated.
5285 (lookup_recursive_calls): Prioritize by call frequencies.
5286 (inline_small_functions): Move program size estimates here;
5287 actually process whole queue even when unit growth has been
5288 met. (to properly compute inline_failed reasons and for the
5289 case unit size decrease.) Revisit comments on recursive inlining.
5290 (ipa_inline): Remove unit summary code; first inline hot calls
5291 of functions called once, cold calls next.
5292 (order, nnodes): Remove unused variables.
5293 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5294 (GTFILES): Remove ipa-inline.c
5295 * sel-sched.c (fill_insns): Silence uninitialized var warning.
5297 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5299 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5301 2011-04-18 Jie Zhang <jie@codesourcery.com>
5302 Richard Earnshaw <rearnsha@arm.com>
5304 * arm.c (neon_builtin_type_bits): Remove.
5305 (typedef enum neon_builtin_mode): New.
5306 (T_MAX): Don't define.
5307 (typedef enum neon_builtin_datum): Remove bits, codes[],
5308 num_vars and base_fcode. Add mode, code and fcode.
5309 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5310 VAR10): Change accordingly.
5311 (neon_builtin_data[]): Change accordingly
5312 (arm_init_neon_builtins): Change accordingly.
5313 (neon_builtin_compare): Remove.
5314 (locate_neon_builtin_icode): Remove.
5315 (arm_expand_neon_builtin): Change accordingly.
5317 * arm.h (enum arm_builtins): Move to ...
5318 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5320 * arm.c (arm_builtin_decl): Declare.
5321 (TARGET_BUILTIN_DECL): Define.
5322 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5323 (arm_builtin_decls[]): New.
5324 (arm_init_neon_builtins): Store builtin declarations in
5325 arm_builtin_decls[].
5326 (arm_init_tls_builtins): Likewise.
5327 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
5328 (arm_builtin_decl): New.
5330 2011-04-18 Richard Guenther <rguenther@suse.de>
5332 * tree.c (upper_bound_in_type): Build properly canonicalized
5334 (lower_bound_in_type): Likewise.
5336 2011-04-18 Richard Guenther <rguenther@suse.de>
5338 * gimple.h (gimple_call_addr_fndecl): New function.
5339 (gimple_call_fndecl): Use it.
5340 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5342 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5343 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5345 2011-04-18 Richard Guenther <rguenther@suse.de>
5348 * tree.c (build_string): STRING_CST is now derived from tree_typed.
5350 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5353 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5354 DECL_IN_CONSTANT_POOL without RTL.
5356 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
5357 Ira Rosen <ira.rosen@linaro.org>
5360 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5361 to match neon_vzip/vuzp/vtrn_internal.
5362 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5363 outputs explicitly dependent on both inputs.
5364 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5366 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5368 PR tree-optimization/48616
5369 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5370 whether the shift is by scalar or vector based on whether all SLP
5371 scalar stmts have the same rhs.
5373 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
5375 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5378 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
5381 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5384 2011-04-17 Jan Hubicka <jh@suse.cz>
5386 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5387 * cgrpahunit.c (cgraph_finalize_function): Do not set
5388 finalized_by_frontend.
5389 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5390 finalized_by_frontend.
5392 2011-04-17 Jan Hubicka <jh@suse.cz>
5394 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5395 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5396 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5397 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5399 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5401 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5403 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
5406 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5407 is non-null before accessing it.
5408 (input_cgraph): Remove trailing spaces.
5410 2011-04-17 Revital Eres <revital.eres@linaro.org>
5412 * params.def (sms-min-sc): New param flag.
5413 * modulo-sched.c (sms_schedule): Use it.
5414 * doc/invoke.texi (sms-min-sc): Document it.
5416 2011-04-17 Jan Hubicka <jh@suse.cz>
5418 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5419 present, also set gimple_call_set_cannot_inline.
5420 * ipa-inline.c: Update toplevel comment.
5422 (cgraph_clone_inlined_nodes): Fix linebreaks.
5423 (cgraph_check_inline_limits): Restructure to ...
5424 (caller_growth_limits): ... this one; be more tolerant
5425 on growth in nested inline chains; add explanatory comment;
5426 fix stack accounting thinko introduced by previous patch.
5427 (cgraph_default_inline_p): Remove.
5428 (report_inline_failed_reason): New function.
5429 (can_inline_edge_p): New function.
5430 (can_early_inline_edge_p): New function.
5431 (leaf_node_p): Move upwards in file.
5432 (want_early_inline_function_p): New function.
5433 (want_inline_small_function_p): New function.
5434 (want_inline_self_recursive_call_p): New function.
5435 (cgraph_edge_badness): Rename to ...
5436 (edge_badness) ... this one; fix linebreaks.
5437 (update_edge_key): Update call of edge_baddness; add
5438 detailed dump about queue updates.
5439 (update_caller_keys): Use can_inline_edge_p and
5440 want_inline_small_function_p.
5441 (cgraph_decide_recursive_inlining): Rename to...
5442 (recursive_inlining): Use can_inline_edge_p and
5443 want_inline_self_recursive_call_p; simplify and remove no longer
5445 (cgraph_set_inline_failed): Remove.
5446 (add_new_edges_to_heap): Use can_inline_edge_p and
5447 want_inline_small_function_p.
5448 (cgraph_decide_inlining_of_small_functions): Rename to ...
5449 (inline_small_functions): ... this one; cleanup; use
5450 can/want predicates; cleanup debug ouput; work edges till fibheap
5451 is exhausted and do not stop once unit growth is reached; remove
5452 later loop processing remaining edges.
5453 (cgraph_flatten): Rename to ...
5454 (flatten_function): ... this one; use can_inline_edge_p
5455 and can_early_inline_edge_p predicates.
5456 (cgraph_decide_inlining): Rename to ...
5457 (ipa_inline): ... this one; remove unreachable nodes before
5458 inlining functions called once; simplify the pass.
5459 (cgraph_perform_always_inlining): Rename to ...
5460 (inline_always_inline_functions): ... this one; use
5461 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5462 (cgraph_decide_inlining_incrementally): Rename to ...
5463 (early_inline_small_functions): ... this one; simplify
5464 using new predicates; cleanup; make dumps prettier.
5465 (cgraph_early_inlining): Rename to ...
5466 (early_inliner): newer inline regular functions into always-inlines;
5467 fix updating of call stmt summaries.
5468 (pass_early_inline): Update for new names.
5469 (inline_transform): Fix formating.
5470 (gate_cgraph_decide_inlining): Rename to ...
5471 (pass_ipa_inline): ... this one.
5472 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5473 * ipa-inline-analysis.c (dump_inline_summary): Update.
5474 (compute_inline_parameters): Do not compute disregard_inline_limits;
5475 look for mismatching arguments.
5476 (estimate_growth): Fix handlig of non-trivial self recursion.
5477 (inline_read_summary): Do not read info->disregard_inline_limits.
5478 (inline_write_summary): Do not write info->disregard_inline_limits.
5479 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5480 and move all checks into can_inline_edge_p predicate; re-enable code
5481 comparing optimization levels.
5482 (expand_call_inline): Do not test inline_forbidden_into_p.
5483 * Makefile.in (ipa-inline.o): Update arguments.
5485 2011-04-17 Revital Eres <revital.eres@linaro.org>
5487 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5489 2011-04-17 Revital Eres <revital.eres@linaro.org>
5491 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5493 2011-04-17 Michael Matz <matz@suse.de>
5495 PR tree-optimization/48622
5497 * ipa-inline-analysis.c (inline_read_summary): Read size/time
5498 in same order as they're written.
5500 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5502 * config/pa/predicates.md: Reorganize and simplify predicates.
5503 Eliminate duplicate code checks.
5504 (arith_operand): Rename to arith14_operand
5505 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5506 * config/pa/pa.md: Use renamed operands.
5507 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5508 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5509 arith11_operand, adddi3_operand, indexed_memory_operand,
5510 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5511 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5512 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5513 move_dest_operand, move_src_operand, prefetch_cc_operand,
5514 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5515 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5516 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5517 div_operand, int5_operand, movb_comparison_operator,
5518 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5519 arith_double_operand, ireg_operand, lhs_lshift_operand,
5520 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
5521 integer_store_memory_operand): Likewise.
5522 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
5523 (integer_store_memory_operand, read_only_operand,
5524 function_label_operand, borx_reg_operand,
5525 non_hard_reg_operand): Likewise.
5526 (eq_neq_comparison_operator): Delete unused operator.
5527 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
5528 function_label_operand.
5529 (emit_move_sequence): Likewise.
5531 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5533 * config/i386/sse.md (sseunpackmode): New mode attribute.
5534 (ssepackmode): Ditto.
5535 (vec_pack_trunc_<mode>): Macroize expander from
5536 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5537 (vec_unpacks_lo_<mode>): Macroize expander from
5538 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5539 (vec_unpacks_hi_<mode>): Macroize expander from
5540 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5541 (vec_unpacku_lo_<mode>): Macroize expander from
5542 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5543 (vec_unpacku_hi_<mode>): Macroize expander from
5544 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5545 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
5546 ix86_expand_sse4_unpack.
5547 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
5549 2011-04-16 Jan Hubicka <jh@suse.cz>
5551 * cgraphbuild.c: Include ipa-inline.h.
5552 (reset_inline_failed): Use initialize_inline_failed.
5553 * cgraph.c: Include ipa-inline.h.
5554 (cgraph_create_node_1): Do not initialize estimated_growth.
5555 (initialize_inline_failed): More to ipa-inline-analysis.c
5556 (dump_cgraph_node): Do not dump inline flags.
5557 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
5558 and disregard_inline_limits flags.
5559 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
5560 time, size, estimated_growth.
5561 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
5563 * cgraphunit.c (cgraph_decide_is_function_needed): Use
5564 DECL_DISREGARD_INLINE_LIMITS.
5565 (cgraph_analyze_function): Do not initialize
5566 node->local.disregard_inline_limits.
5567 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5568 inlinable, versionable and disregard_inline_limits.
5569 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
5570 cgraph_check_inline_limits, cgraph_default_inline_p,
5571 cgraph_edge_badness, update_caller_keys, update_callee_keys,
5572 add_new_edges_to_heap): Update.
5573 (cgraph_decide_inlining_of_small_function): Update; set
5574 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
5575 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
5576 cgraph_decide_inlining_incrementally): Update.
5577 * ipa-inline.h (inline_summary): Add inlinable, versionable,
5578 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
5579 time, size and estimated_growth parameters.
5580 (estimate_edge_growth): Update.
5581 (initialize_inline_failed): Declare.
5582 * ipa-split.c: Include ipa-inline.h
5583 (execute_split_functions): Update.
5584 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
5585 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
5586 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
5587 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
5588 estimated_growth to INT_MIN.
5589 (inline_node_duplication_hook): Likewise.
5590 (dump_inline_summary): Dump new fields.
5591 (compute_inline_parameters): Update.
5592 (estimate_edge_time, estimate_time_after_inlining,
5593 estimate_size_after_inlining, estimate_growth, inline_read_summary,
5594 inline_write_summary):
5595 (initialize_inline_failed): Move here from cgraph.c.
5596 * tree-sra.c: Include ipa-inline.h.
5597 (ipa_sra_preliminary_function_checks): Update.
5598 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5601 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5603 * config/i386/sse.md (V16): New mode iterator.
5605 (AVXMODEQI, AVXMODEDI): Remove.
5606 (sse2, sse3): New mode attribute.
5607 (mov<mode>): Use V16 mode iterator.
5608 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5609 (push<mode>1): Use V16 mode iterator.
5610 (movmisalign<mode>): Ditto.
5611 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5612 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5613 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5614 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5615 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5616 avx_movdqu<avxmodesuffix>.
5617 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5618 *avx_movdqu<avxmodesuffix>.
5619 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5620 avx_lddqu<avxmodesuffix>.
5621 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5622 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5623 avx_movnt<AVXMODEDI:mode>.
5624 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5625 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5627 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
5630 * haifa-sched.c (prune_ready_list, schedule_block): Use
5631 sched_pressure_p rather than flag_sched_pressure.
5633 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
5635 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5636 cgraph_get_node instead of cgraph_get_create_node.
5638 2011-04-15 Jakub Jelinek <jakub@redhat.com>
5640 * cfgexpand.c (expand_debug_expr): Use
5641 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5643 2011-04-15 Michael Matz <matz@suse.de>
5645 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5646 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5647 * function.c (gimplify_parameters): Ditto.
5648 * gimplify.c (gimplify_vla_decl): Ditto.
5650 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5651 (gimple_call_set_alloca_for_var): New inline function.
5652 (gimple_call_alloca_for_var_p): Ditto.
5653 * gimple.c (gimple_build_call_from_tree): Remember
5654 CALL_ALLOCA_FOR_VAR_P state.
5655 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5657 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5658 calls if they were for VLA objects.
5660 2011-04-15 Martin Jambor <mjambor@suse.cz>
5662 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5665 2011-04-15 Martin Jambor <mjambor@suse.cz>
5668 * tree-emutls.c (lower_emutls_function_body): Call
5669 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
5672 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5674 * c-decl.c (detect_field_duplicates): Call
5675 objc_detect_field_duplicates instead of objc_get_interface_ivars.
5677 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
5679 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5680 * gimple.c (gimple_asm_clobbers_memory_p): Define.
5681 * ipa-pure-const.c (check_stmt): Call it.
5682 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5684 2011-04-15 Richard Guenther <rguenther@suse.de>
5686 PR tree-optimization/48290
5687 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5688 Properly decide inhibiting propagation based on the valueized
5689 operand. Do loop-closed SSA form preserving here ...
5690 (init_copy_prop): ... not here.
5692 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
5695 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5696 (*ieee_smax<mode>3): Likewise.
5698 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5700 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5701 Replace match_operand with match_dup for the third operand in
5704 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5706 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5707 to track processing of conditionals. Update all callers.
5708 (try_combine, simplify_if_then_else): Update.
5710 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5712 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5715 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
5717 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5718 instead of match_operand for operand 3.
5720 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
5722 * recog.h (insn_operand_data): Add an "allows_mem" field.
5723 * genoutput.c (output_operand_data): Initialize it.
5724 * optabs.c (maybe_legitimize_operand_same_code): New function.
5725 (maybe_legitimize_operand): Use it when matching the original
5728 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5730 * gimplify.c: Fix issues in comments throughout.
5731 (voidify_wrapper_expr): Fix long line.
5732 (build_stack_save_restore): Likewise.
5733 (gimplify_loop_expr): Likewise.
5734 (gimplify_compound_lval): Likewise.
5735 (gimplify_init_ctor_eval): Likewise.
5736 (gimplify_modify_expr_rhs): Likewise.
5737 (omp_notice_threadprivate_variable): Likewise.
5739 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5741 * cfgexpand.c (expand_call_stmt): Convert the function type to the
5742 original one if this is not a builtin function.
5744 2011-04-14 Jakub Jelinek <jakub@redhat.com>
5747 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5748 offset it as needed based on top 2 bits in operands[3], change
5749 MEM mode to SFmode and mask those 2 bits away from operands[3].
5751 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5753 * c-parser.c (c_parser_objc_protocol_definition): Updated for
5754 change from objc_declare_protocols() to objc_declare_protocol().
5756 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
5758 * config/i386/sse.md (sse4_1): New mode attribute.
5759 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5760 avx_blend<ssemodesuffix><avxmodesuffix> and
5761 sse4_1_blend<ssemodesuffix> using VF mode iterator.
5762 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5763 avx_blendv<ssemodesuffix><avxmodesuffix> and
5764 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5765 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5766 avx_dp<ssemodesuffix><avxmodesuffix> and
5767 sse4_1_dp<ssemodesuffix> using VF mode iterator.
5768 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5769 (sse4_1_packusdw): Merge with *avx_packusdw.
5770 (sse4_1_pblendvb): Merge with *avx_pblendvb.
5771 (sse4_1_pblendw): Merge with *avx_pblendw.
5772 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5773 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5774 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5776 (sse4_1_round<ssescalarmodesuffix>): Merge with
5777 *avx_round<ssescalarmodesuffix>.
5778 (aesenc): Merge with *avx_aesenc.
5779 (aesenclast): Merge with *avx_aesenclast.
5780 (aesdec): Merge with *avx_aesdec.
5781 (aesdeclast): Merge with *avx_aesdeclast.
5782 (pclmulqdq): Merge with *pclmulqdq.
5783 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5785 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
5787 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
5790 * cfgexpand.c (get_decl_align_unit): Renamed to ...
5791 (align_local_variable): This. Update DECL_ALIGN.
5792 (add_stack_var): Updated.
5793 (expand_one_stack_var): Likewise.
5795 2011-04-14 Richard Guenther <rguenther@suse.de>
5797 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
5799 (dse_initialize_block_local_data, dse_leave_block,
5800 record_voperand_set, get_stmt_uid): Likewise.
5801 (dse_possible_dead_store_p): Allow any kind of killing stmt.
5802 (dse_optimize_stmt): Remove voperand set handling code.
5803 Simplify and improve to handle any kind of killing stmt.
5804 (dse_record_phi): Remove.
5805 (dse_enter_block): Simplify.
5806 (tree_ssa_dse): Likewise.
5807 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5809 2011-04-14 Jan Hubicka <jh@suse.cz>
5811 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5812 * cgraph.h (struct inline_summary): Move to ipa-inline.h
5813 (cgraph_local_info): Remove inline_summary.
5814 * ipa-cp.c: Include ipa-inline.h.
5815 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5816 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5818 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5819 (input_overwrite_node): Do not set inline summary.
5820 (input_node): Do not stream inline summary.
5821 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5822 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5823 growth; we do not have inline parameters computed for that anyway.
5824 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5825 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5826 (inline_summary_t): New type and VECtor.
5827 (debug_inline_summary, dump_inline_summaries): Declare.
5828 (inline_summary): Use VOCtor.
5829 (estimate_edge_growth): Kill hack computing call stmt size directly.
5830 * lto-section-in.c (lto_section_name): Add inline section.
5831 * ipa-inline-analysis.c: Include lto-streamer.h
5832 (node_removal_hook_holder, node_duplication_hook_holder): New holders
5833 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
5834 (inline_summary_vec): Define.
5835 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
5836 dump_inline_summaries): New functions.
5837 (estimate_function_body_sizes): Properly compute size/time of outgoing
5839 (compute_inline_parameters): Alloc inline_summary; do not compute
5840 size/time of incomming calls.
5841 (estimate_edge_time): Avoid missing time summary hack.
5842 (inline_read_summary): Read inline summary info.
5843 (inline_write_summary): Write inline summary info.
5844 (inline_free_summary): Free all hooks and inline summary vector.
5845 * lto-streamer.h: Add LTO_section_inline_summary section.
5846 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
5847 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
5849 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5851 * tree-vectorizer.h (vect_strided_store_supported): Add a
5852 HOST_WIDE_INT argument.
5853 (vect_strided_load_supported): Likewise.
5854 (vect_permute_store_chain): Return void.
5855 (vect_transform_strided_load): Likewise.
5856 (vect_permute_load_chain): Delete.
5857 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
5858 count argument. Check that the count is a power of two.
5859 (vect_strided_load_supported): Likewise.
5860 (vect_permute_store_chain): Return void. Update after above changes.
5861 Assert that the access is supported.
5862 (vect_permute_load_chain): Likewise.
5863 (vect_transform_strided_load): Return void.
5864 * tree-vect-stmts.c (vectorizable_store): Update calls after
5865 above interface changes.
5866 (vectorizable_load): Likewise.
5867 (vect_analyze_stmt): Don't check for strided powers of two here.
5869 2011-04-14 Richard Guenther <rguenther@suse.de>
5871 PR tree-optimization/48590
5872 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5873 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5874 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
5875 BUILT_IN_STACK_SAVE.
5876 * tree-ssa-dce.c (propagate_necessity): Handle
5877 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5879 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5881 * c-parser.c (c_parser_objc_class_declaration): Updated call to
5884 2011-04-14 Richard Guenther <rguenther@suse.de>
5886 * tree.h (get_object_alignment_1): Declare.
5887 * builtins.c (get_object_alignment_1): Split out worker from ...
5888 (get_object_alignment): ... here.
5889 * fold-const.c (get_pointer_modulus_and_residue): Use
5890 get_object_alignment_1.
5892 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5894 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
5896 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
5897 parameter. Generalise code to handle arrays as well as vectors.
5898 (vect_setup_realignment): Update accordingly.
5899 * tree-vect-stmts.c (vectorizable_store): Likewise.
5900 (vectorizable_load): Likewise.
5902 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5904 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
5905 within the per-copy loop.
5907 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5909 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5912 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5914 * doc/options.texi (Negative): Explicitly mention that the
5915 Negative chain must be circular.
5917 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
5919 * function.h (block_chainon): Declare.
5920 * function.c (block_chainon): Define.
5922 2011-04-14 Anatoly Sokolov <aesok@post.ru>
5923 Eric Weddington <eric.weddington@atmel.com>
5924 Georg-Johann Lay <avr@gjlay.de>
5926 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5928 (avr_init_builtins, avr_expand_builtin,
5929 avr_expand_delay_cycles, avr_expand_unop_builtin,
5930 avr_expand_binop_builtin ): New functions.
5931 (avr_builtin_id): New enum
5932 (struct avr_builtin_description): New struct
5933 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5934 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5936 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5937 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5938 UNSPECV_DELAY_CYCLES): new enumeration values
5939 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5940 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5941 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5942 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5943 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5944 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5945 "fmulsu"): New insns
5947 * config/avr/avr-c.c: fix line endings
5948 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5949 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5950 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5951 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5952 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5954 * doc/extend.texi (AVR Built-in Functions): New node
5955 (Target Builtins): Add documentation of AVR
5958 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
5961 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5962 alone. Error if non-const data has attribute progmem.
5964 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5966 * tree.h (struct tree_constructor): Include tree_typed instead of
5968 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5969 TS_TYPED instead of TS_COMMON.
5971 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5973 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5974 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5975 (sse2_psadbw): Merge with *avx_psadbw.
5976 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5977 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5978 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5979 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5980 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5981 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5982 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5983 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5984 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5985 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5986 (ssse3_palignrti): Merge with *avx_palignrti.
5988 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5990 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5991 * tree-ssanames.c (fini_ssanames): VEC_free it.
5992 (make_ssa_name_fn): Update for VECness of free_ssanames.
5993 (release_ssa_name, release_dead_ssa_names): Likewise.
5994 * tree.h (struct tree_ssa_name): Include tree_typed instead of
5996 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5997 TS_TYPED instead of TS_COMMON.
5999 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6001 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6002 statistics_counter_event.
6003 * tree-ssa-copyrename.c (stats): Define.
6004 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6005 statistics_counter_event.
6006 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6007 (bswap_stats, widen_mul_stats): Define.
6008 (insert_reciprocals): Increment rdivs_inserted.
6009 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6010 rfuncs_inserted. Add calls to statistics_counter_event.
6011 (execute_cse_sincos_1): Increment inserted.
6012 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6013 statistics_counter_event.
6014 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6015 of bswap_stats. Add calls to statistics_counter_event.
6016 (convert_mult_to_widen): Increment widen_mults_inserted.
6017 (convert_plusminus_to_widen): Increment maccs_inserted.
6018 (convert_mult_to_fma): Increment fmas_inserted.
6019 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6020 calls to statistics_counter_event.
6022 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6024 PR rtl-optimization/48455
6025 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6026 `temp_costs->mem_cost'.
6028 2011-04-13 Jan Hubicka <jh@suse.cz>
6030 * ipa-inline.h: New file.
6031 * ipa-inline-analysis.c: New file. Broken out of ...
6032 * ipa-inline.c: ... this file; update toplevel comment;
6033 include ipa-inline.h
6034 (inline_summary): Move to ipa-inline.h
6035 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6036 ipa-inline-analysis.c.
6037 (cgraph_estimate_time_after_inlining): Rename to
6038 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6039 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6040 to estimate_edge_growth.
6041 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6042 rename to estimate_size_after_inlining.
6043 (cgraph_mark_inline_edge): Update for new naming convention.
6044 (cgraph_check_inline_limits): Likewise.
6045 (cgraph_edge_badness): Likewise.
6046 (cgraph_decide_recursive_inlining): Likewise.
6047 (cgraph_decide_inlining_of_small_functions): Likewise.
6048 (cgraph_decide_inlining_incrementally): Likewise.
6049 (cgraph_estimate_growth): Rename to estimate_growth; move to
6050 ipa-inline-analysis.c.
6051 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6052 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6053 (compute_inline_parameters): Likewise.
6054 (compute_inline_parameters_for_current): Likewise.
6055 (pass_inline_parameters): Likewise.
6056 (inline_indirect_intraprocedural_analysis): Likewise.
6057 (analyze_function): Rename to inline_analyze_function; likewise.
6058 (add_new_function): Move to ipa-inline-analysis.c.
6059 (inline_generate_summary): Likewise.
6060 (inline_read_summary): Likewise.
6061 (inline_write_summary): Likewise.
6062 * Makefile.in (ipa-inline-analysis.c): New file.
6064 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6066 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6067 * configure: Regenerate.
6069 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6071 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6072 instead of tree_common.
6073 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6075 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6076 TS_TYPED rather than TS_COMMON.
6077 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6079 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6082 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6083 r20 around calls of __tablejump_elpm__
6085 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6088 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6090 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6092 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6094 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6095 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6096 (cfi_vec): New typedef.
6097 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6098 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6099 (cie_cfi_vec): New static variable.
6100 (cie_cfi_head): Delete.
6101 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6102 declaration changed. Use vector rather than list operations.
6103 (new_cfi): Don't initialize the dw_cfi_next field.
6104 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6105 rather than list operations.
6106 (lookup_cfa): Use vector rather than list operations.
6107 (output_cfis): New argument upto. Accept a cfi_vec rather than
6108 a dw_cfi_ref list head as argument. All callers changed.
6109 Iterate over the vector using upto as a maximum index.
6110 (output_all_cfis): New static function.
6111 (output_fde): Use vector rather than list operations. Use the
6112 new upto argument for output_cfis rather than manipulating a
6114 (dwarf2out_begin_prologue): Change initializations to match
6116 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6117 from the vector length rather than searching for the end of a list.
6118 Use output_all_cfis.
6119 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6121 2011-04-13 Nick Clifton <nickc@redhat.com>
6123 * config/rx/rx.md (movmemsi): Do not use this pattern when
6124 volatile pointers are involved.
6126 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6128 * config/i386/sse.md (pinsrbits): Remove.
6129 (sse2_packsswb): Merge with *avx_packsswb.
6130 (sse2_packssdw): Merge with *avx_packssdw.
6131 (sse2_packuswb): Merge with *avx_packuswb.
6132 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6133 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6134 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6135 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6136 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6137 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6138 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6139 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6140 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6141 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6142 (sse2_loadld): Merge with *avx_loadld.
6143 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6144 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6145 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6146 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6147 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6149 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6151 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6153 * print-tree.c (print_node): Likewise.
6154 * tree-inline.c (copy_tree_r): Likewise.
6155 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6156 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6157 instead of TS_COMMON.
6158 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6159 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6160 (copy_node_stat): Zero TREE_CHAIN only if necessary.
6161 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6162 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6164 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6166 (TREE_CHAIN): Check for a TS_COMMON structure.
6167 (TREE_TYPE): Check for a TS_TYPED structure.
6169 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
6171 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6172 cgraph_get_create_node instead of cgraph_node.
6174 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6176 * c-parser.c (c_parser_initelt): Updated call to
6177 objc_build_message_expr.
6178 (c_parser_postfix_expression): Likewise.
6180 2011-04-12 Kai Tietz <ktietz@redhat.com>
6182 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6183 MASK_MS_BITFIELD_LAYOUT bit.
6185 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6187 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6188 assert it is always true.
6189 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6192 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6194 * c-parser.c (c_lex_one_token): Rewritten conditional used when
6195 compiling Objective-C to be more efficient.
6197 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
6199 * opts-common.c (decode_cmdline_options_to_array): Remove variable
6202 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6204 * recog.h, genoutput.c, optabs.c: Revert last patch.
6206 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6209 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6211 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6213 * recog.h (insn_operand_data): Add an "allows_mem" field.
6214 * genoutput.c (output_operand_data): Initialize it.
6215 * optabs.c (maybe_legitimize_operand_same_code): New function.
6216 (maybe_legitimize_operand): Use it when matching the original
6219 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6221 * genpreds.c (process_define_predicate): Move most processing
6222 to gensupport.c. Continue to validate the expression.
6223 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6224 (process_define_predicate): Move processing to gensupport.c.
6225 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6226 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6227 (compute_predicate_codes): Moved from genrecog.c. Add lineno
6229 (valid_predicate_name_p): New function, split out from old
6230 genpreds.c:process_define_predicate.
6231 (process_define_predicate): New function, combining code from
6232 old genpreds.c and genrecog.c functions.
6233 (process_rtx): Call it for DEFINE_PREDICATE and
6234 DEFINE_SPECIAL_PREDICATE.
6236 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6238 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6239 size of a '%A' memory reference.
6240 (T_DREG, T_QREG): New neon_builtin_type_bits.
6241 (arm_init_neon_builtins): Assert that the load and store operands
6242 are neon_struct_operands.
6243 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6244 (NEON_ARG_MEMORY): New builtin_arg.
6245 (neon_dereference_pointer): New function.
6246 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6247 Handle NEON_ARG_MEMORY.
6248 (arm_expand_neon_builtin): Update after above interface changes.
6249 Use NEON_ARG_MEMORY for loads and stores.
6250 * config/arm/predicates.md (neon_struct_operand): New predicate.
6251 * config/arm/iterators.md (V_two_elem): Tweak formatting.
6252 (V_three_elem): Use BLKmode for accesses that have no associated mode.
6253 (V_four_elem): Tweak formatting.
6254 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6255 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6256 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6257 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6258 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6259 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6260 (neon_vst4<mode>): Replace pointer operand with a memory operand.
6261 Use %A in the output template.
6262 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6263 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6264 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6265 the width of the memory access. Remove post-increment.
6266 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6268 2011-04-12 Nick Clifton <nickc@redhat.com>
6270 * config/v850/v850.c (expand_prologue): Do not use the CALLT
6271 instruction for interrupt handlers if the target is the basic V850
6273 (expand_epilogue): Likewise.
6275 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6277 PR rtl-optimization/48549
6278 * combine.c (propagate_for_debug): Also stop after BB_END of
6279 this_basic_block. Process LAST and just stop processing after it.
6280 (combine_instructions): If last_combined_insn has been deleted,
6281 set last_combined_insn to its PREV_INSN.
6283 2011-04-12 Richard Guenther <rguenther@suse.de>
6285 PR tree-optimization/46076
6286 * gimple.h (struct gimple_statement_call): Add fntype field.
6287 (gimple_call_fntype): Adjust.
6288 (gimple_call_set_fntype): New function.
6289 * gimple.c (gimple_build_call_1): Set the call function type.
6290 * gimplify.c (gimplify_call_expr): Preserve the function
6291 type the frontend used for the call.
6292 (gimplify_modify_expr): Likewise.
6293 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6295 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6297 * tree-ssa.c (useless_type_conversion_p): Function pointer
6298 conversions are useless.
6300 2011-04-12 Martin Jambor <mjambor@suse.cz>
6302 * cgraph.h (cgraph_node): Remove function declaration.
6303 (cgraph_create_node): Declare.
6304 (cgraph_get_create_node): Likewise.
6305 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6306 Updated all callers.
6307 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6308 the decl does not already exist. Call cgraph_get_create_node instead
6310 (cgraph_get_create_node): New function.
6311 (cgraph_same_body_alias): Update comment.
6312 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6313 assert it does not return NULL.
6314 (cgraph_update_edges_for_call_stmt): Likewise.
6315 (cgraph_clone_edge): Likewise.
6316 (cgraph_create_virtual_clone): Likewise.
6317 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6318 instead of cgraph_node.
6319 (cgraph_add_new_function): Call cgraph_create_node or
6320 cgraph_get_create_node instead of cgraph_node.
6321 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6322 instead of cgraph_node.
6323 (record_eh_tables): Likewise.
6324 (mark_address): Likewise.
6325 (mark_load): Likewise.
6326 (build_cgraph_edges): Call cgraph_get_create_node instead
6328 (rebuild_cgraph_edges): Likewise.
6329 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6330 instead of cgraph_node.
6331 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6333 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6334 cgraph_create_node instead of cgraph_node.
6335 * c-decl.c (finish_function): Call cgraph_get_create_node instead
6337 * lto-cgraph.c (input_node): Likewise.
6338 * lto-streamer-in.c (input_function): Likewise.
6339 * varasm.c (mark_decl_referenced): Likewise.
6340 (assemble_alias): Likewise.
6342 2011-04-12 Martin Jambor <mjambor@suse.cz>
6344 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6345 instead of cgraph_node and assert it does not return NULL.
6346 * lto-streamer-in.c (lto_read_body): Likewise.
6347 * omp-low.c (new_omp_context): Likewise.
6348 (create_task_copyfn): Likewise.
6349 * tree-emutls.c (lower_emutls_function_body): Likewise.
6350 * matrix-reorg.c (transform_allocation_sites): Likewise.
6352 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6355 * c-typeck.c (build_asm_expr): Error out on attempts to use
6356 void type outputs or inputs for constraints that allow reg or
6359 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
6360 Richard Earnshaw <rearnsha@arm.com>
6363 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6364 to use sign-magnitude offsets. Reject unsupported unaligned
6365 cases. Add detailed description in comments.
6366 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6367 condition from TARGET_32BIT to TARGET_ARM.
6369 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
6371 * tree.h (struct typed_tree): New.
6372 (struct tree_common): Include it instead of tree_base.
6373 (TREE_TYPE): Update for new location of type field.
6374 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6375 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6376 (union tree_node): Add typed field.
6377 * treestruct.def (TS_TYPED): New.
6378 * lto-streamer.c (check_handled_ts_structures): Handle it.
6379 * tree.c (MARK_TS_TYPED): New macro.
6380 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6382 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
6384 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6385 (force_nonfallthru): Do not alter the loop nest if no basic block
6388 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6390 * config/i386/sse.md (VI): New mode iterator.
6392 (AVX256MODEI): Ditto.
6393 (AVXMODEF4P): Ditto.
6394 (avxvecpsmode): Ditto.
6395 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
6396 (sse2_andnot<mode>3): New expander.
6397 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6398 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
6399 (<any_logic:code><mode>3): Use VI mode iterator.
6400 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6401 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
6402 (*andnottf3): Handle AVX three-operand constraints.
6403 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6405 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6406 Robert Millan <rmh@gnu.org>
6408 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6409 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6410 GNU_USER_DYNAMIC_LINKER64): Define.
6411 (REG_NAME): Don't undefine.
6412 (MD_UNWIND_SUPPORT): Undefine.
6413 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6414 (REG_NAME): Don't undefine.
6415 (MD_UNWIND_SUPPORT): Undefine.
6416 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6418 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6420 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6421 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6423 2011-04-11 Xinliang David Li <davidxl@google.com>
6425 * value-profile.c (check_ic_target): New function.
6426 (gimple_ic_transform): Sanity check indirect call target.
6427 * gimple-low.c (gimple_check_call_args): Interface change.
6428 (gimple_check_call_matching_types): New function.
6429 * tree-inline.c (tree_can_inline_p): Call new function.
6431 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
6433 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6434 tree-pretty-print.h & realmpfr.h.
6436 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
6439 * ira.c (setup_pressure_classes): Fix typo in loop condition.
6440 (setup_allocno_and_important_classes): Ditto.
6442 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6444 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6445 GNU_USER_DYNAMIC_LINKER.
6446 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6447 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6448 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6449 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6450 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6451 GNU_USER_TARGET_OS_CPP_BUILTINS.
6452 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6453 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6454 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6455 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6456 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6457 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6458 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6459 GNU_USER_TARGET_OS_CPP_BUILTINS.
6460 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6461 GNU_USER_DYNAMIC_LINKER.
6462 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6463 GNU_USER_TARGET_OS_CPP_BUILTINS.
6464 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6465 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6466 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6467 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6468 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6469 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6470 GNU_USER_DYNAMIC_LINKER64): Remove.
6471 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6472 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6473 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6474 GNU_USER_DYNAMIC_LINKER.
6475 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6476 GNU_USER_TARGET_OS_CPP_BUILTINS.
6477 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6478 GNU_USER_TARGET_OS_CPP_BUILTINS.
6479 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6480 to GNU_USER_TARGET_OS_CPP_BUILTINS.
6481 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6482 GNU_USER_TARGET_OS_CPP_BUILTINS.
6483 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6484 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6485 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6486 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6487 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6488 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6489 GNU_USER_DYNAMIC_LINKER.
6490 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6491 GNU_USER_TARGET_OS_CPP_BUILTINS.
6492 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
6493 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6494 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6495 GNU_USER_DYNAMIC_LINKER.
6496 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6497 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6498 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6499 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6500 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6501 GNU_USER_DYNAMIC_LINKER.
6502 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6503 GNU_USER_DYNAMIC_LINKERN32.
6504 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6505 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
6506 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
6507 GNU_USER_DYNAMIC_LINKER32.
6508 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6509 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6510 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6511 GNU_USER_DYNAMIC_LINKER.
6512 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6513 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6514 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6515 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6516 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6517 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6518 GNU_USER_DYNAMIC_LINKER32.
6519 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6520 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
6521 GNU_USER_DYNAMIC_LINKER.
6522 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
6523 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6524 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6525 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
6526 GNU_USER_DYNAMIC_LINKER64.
6527 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
6528 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6529 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6530 GNU_USER_DYNAMIC_LINKER.
6531 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6532 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6533 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6534 GNU_USER_DYNAMIC_LINKER.
6535 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6536 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6537 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6538 GNU_USER_DYNAMIC_LINKER32.
6539 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6540 GNU_USER_DYNAMIC_LINKER64.
6541 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6542 GNU_USER_DYNAMIC_LINKER64.
6543 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
6544 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6545 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
6546 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6547 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6549 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6551 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
6552 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
6553 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
6554 GNU_USER_DYNAMIC_LINKER.
6555 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6556 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
6557 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
6558 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
6559 GNU_USER_DYNAMIC_LINKER64.
6560 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6561 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
6562 GNU_USER_LINK_EMULATION.
6563 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
6564 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
6565 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
6566 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
6567 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
6568 CPP_SPEC, CC1_SPEC): Remove.
6569 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
6570 (GNU_USER_DYNAMIC_LINKER): Define.
6571 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
6572 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
6573 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
6574 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
6575 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
6576 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
6577 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6578 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
6579 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
6580 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
6581 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
6582 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
6583 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
6584 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
6585 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
6586 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6587 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6588 GNU_USER_DYNAMIC_LINKER.
6589 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6590 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6591 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6592 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6593 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6594 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6595 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6596 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6597 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6598 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6600 2011-04-11 Kai Tietz <ktietz@redhat.com>
6604 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6605 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6607 (ix86_is_msabi_thiscall): Removed.
6608 (ix86_is_type_thiscall): Likewise.
6609 (ix86_get_callcvt): New function.
6610 (ix86_comp_type_attributes): Simplify check.
6611 (ix86_function_regparm): Use ix86_get_callcvt for calling
6612 convention attribute checks.
6613 (ix86_return_pops_args): Likewise.
6614 (ix86_static_chain): Likewise.
6615 (x86_this_parameter): Likewise.
6616 (x86_output_mi_thunk): Likewise.
6617 (ix86_function_type_abi): Optimize check for types without attributes.
6618 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6619 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6620 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6622 (IX86_BASE_CALLCVT): Helper macro.
6623 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6624 Use ix86_get_callcvt for calling convention attribute checks and avoid
6625 symbol-decoration for stdcall in TARGET_RTD case.
6626 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6628 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6631 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6633 * config/i386/sse.md (VI_128): New mode iterator.
6634 (VI12_128): Rename from SSEMODE12.
6635 (VI14_128): Rename from SSEMODE14.
6636 (VI124_128): New mode iterator.
6637 (VI24_128): Rename from SSEMODE248.
6638 (VI248_128): Rename from SSEMODE248.
6639 (SSEMODE124C8): Remove.
6640 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6641 (*sse2_<plusminus_insn><mode>3): Merge with
6642 *avx_<plusminus_insn><mode>3.
6643 (*mulv8hi3): Merge with *avx_mulv8hi3.
6644 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6645 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6646 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6647 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6648 (ashr<mode>3): Merge with *avx_ashr<mode>3.
6649 (lshr<mode>3): Merge with *avx_lshr<mode>3.
6650 (ashl<mode>3): Merge with *avx_ashl<mode>3.
6651 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6652 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6653 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6654 (*<smaxmin:code>v8hi3): Ditto.
6655 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6656 (*<smaxmin:code>v16qi3): Ditto.
6657 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6658 (*sse2_eq<mode>3): Ditto.
6659 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6660 (*sse2_gt<mode>3): Ditto.
6661 (vcondv2di): Split out of vcond<mode>.
6662 (vconduv2di): Split out of vcondu<mode>.
6664 2011-04-11 Richard Guenther <rguenther@suse.de>
6666 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6667 before calling tree_low_cst.
6669 2011-04-11 Richard Guenther <rguenther@suse.de>
6671 * stor-layout.c (layout_type): Compute all array index size operations
6672 in the original type.
6673 (initialize_sizetypes): Add comment.
6674 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6676 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6678 * common.opt (Tbss=, Tdata=, Ttext=): New options.
6680 2011-04-11 Martin Jambor <mjambor@suse.cz>
6682 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6683 of cgraph_node, handle NULL return value.
6684 (cgraph_global_info): Likewise.
6685 (cgraph_rtl_info): Likewise.
6686 * tree-inline.c (estimate_num_insns): Likewise.
6687 * gimplify.c (unshare_body): Likewise.
6688 (unvisit_body): Likewise.
6689 (gimplify_body): Likewise.
6690 * predict.c (optimize_function_for_size_p): Likewise.
6691 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6692 (call_may_clobber_ref_p_1): Likewise.
6693 * varasm.c (function_section_1): Likewise.
6694 (assemble_start_function): Likewise.
6696 2011-04-11 Martin Jambor <mjambor@suse.cz>
6698 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6700 * final.c (rest_of_clean_state): Likewise.
6701 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6702 * passes.c (pass_init_dump_file): Likewise.
6703 (execute_all_ipa_transforms): Likewise.
6704 (function_called_by_processed_nodes_p): Likewise.
6705 * predict.c (maybe_hot_frequency_p): Likewise.
6706 (probably_never_executed_bb_p): Likewise.
6707 (compute_function_frequency): Likewise.
6708 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6709 (unnest_nesting_tree_1): Likewise.
6710 (lower_nested_functions): Likewise.
6711 * tree-optimize.c (execute_fixup_cfg): Likewise.
6712 (tree_rest_of_compilation): Likewise.
6713 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6714 * tree-sra.c (ipa_early_sra): Likewise.
6715 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6716 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6717 * ipa.c (record_cdtor_fn): Likewise.
6718 * ipa-inline.c (cgraph_early_inlining): Likewise.
6719 (compute_inline_parameters_for_current): Likewise.
6720 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6721 * ipa-pure-const.c (local_pure_const): Likewise.
6722 * ipa-split.c (split_function): Likewise.
6723 (execute_split_functions): Likewise.
6724 * cgraphbuild.c (build_cgraph_edges): Likewise.
6725 (rebuild_cgraph_edges): Likewise.
6726 (cgraph_rebuild_references): Likewise.
6727 (remove_cgraph_callee_edges): Likewise.
6728 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6729 (verify_cgraph_node): Likewise.
6730 (cgraph_analyze_functions): Likewise.
6731 (cgraph_preserve_function_body_p): Likewise.
6732 (save_inline_function_body): Likewise.
6733 (save_inline_function_body): Likewise.
6734 * tree-inline.c (copy_bb): Likewise.
6735 (optimize_inline_calls): Likewise.
6737 2011-04-11 Martin Jambor <mjambor@suse.cz>
6739 PR tree-optimization/48195
6740 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6741 ipa_check_create_edge_args.
6742 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6743 ipa_check_create_edge_args.
6744 * ipa-inline.c (inline_generate_summary): Do not call
6745 ipa_check_create_node_params and ipa_check_create_edge_args.
6746 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6747 ipa_check_create_edge_args.
6749 2011-04-09 Anatoly Sokolov <aesok@post.ru>
6751 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6753 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6754 * function.c (record_hard_reg_sets): Likewise.
6755 * ira.c (compute_regs_asm_clobbered): Likewise.
6756 * sched-deps.c (sched_analyze_1): Likewise.
6757 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6759 2011-04-09 Xinliang David Li <davidxl@google.com>
6761 PR tree-optimization/PR48484
6762 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6763 has_valid_pred lazily
6765 2011-04-09 Duncan Sands <baldrick@free.fr>
6767 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6769 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
6771 * combine.c (combine_validate_cost): Adjust comments. Set registered
6772 cost of I0 to zero at the end, if any.
6774 2011-04-08 Xinliang David Li <davidxl@google.com>
6776 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6777 to insane profile data.
6779 2011-04-08 Xinliang David Li <davidxl@google.com>
6781 * ipa-cp.c (ipcp_update_profiling): Correct
6782 negative scale factor due to insane profile data.
6784 2011-04-08 Xinliang David Li <davidxl@google.com>
6786 * final.c (dump_basic_block_info): New function.
6787 (final): Dump basic block.
6788 (final_scan_insn): Remove old dump.
6790 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
6793 * config.gcc (i386-*-freebsd): Disable unwind table generation for
6796 2011-04-08 Michael Matz <matz@suse.de>
6799 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
6801 (rebuild_jump_labels): Call rebuild_jump_labels_1.
6802 * rtl.h (rebuild_jump_labels_chain): Declare.
6803 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
6804 insns inserted on edges.
6806 2011-04-08 Joseph Myers <joseph@codesourcery.com>
6808 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6809 * config/arm/arm-arches.def: New.
6810 * config/arm/arm-opts.h: New.
6811 * config/arm/genopt.sh: New.
6812 * config/arm/arm-tables.opt: New (generated).
6813 * config/arm/arm.c (arm_handle_option, arm_target_help,
6814 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6815 (all_architectures): Get most table contents from arm-arches.def.
6816 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6817 arm_selected_tune here.
6818 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6819 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6820 (march=, mcpu=, mtune=): Use Enum and Var.
6821 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6822 (arm.o): Update dependencies.
6824 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
6826 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6828 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6829 (write_typed_alloc_defns): Likewise.
6830 (main): Calls write_typed_alloc_defns with output_header.
6832 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
6835 * ira-color.c (setup_profitable_hard_regs): Add comments.
6836 Don't take prohibited hard regs into account.
6837 (setup_conflict_profitable_regs): Rename to
6838 get_conflict_profitable_regs.
6839 (check_hard_reg_p): Check prohibited hard regs.
6841 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
6843 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
6844 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
6845 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
6847 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6850 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
6851 move from floating point to shift amount register.
6852 (emit_move_sequence): Remove secondary reload support for floating
6853 point to shift amount amount register copies.
6854 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
6855 amount register copies.
6856 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
6857 register, return false if mode isn't a scalar integer mode.
6858 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
6860 2011-04-08 Richard Guenther <rguenther@suse.de>
6862 * gimple.c (gimple_call_flags): Remove kludge.
6864 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6866 * sel-sched.c (sel_region_init): Move call to
6867 sel_setup_region_sched_flags after setup_current_loop_nest.
6869 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
6871 PR rtl-optimization/48272
6872 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
6873 init_insn_reg_pressure_info. Adjust a caller.
6874 * sched-int.h (init_insn_reg_pressure_info): Declare.
6875 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
6876 when sched-pressure is enabled.
6878 2011-04-08 Richard Guenther <rguenther@suse.de>
6880 * gimple.c (gimple_set_modified): Do not queue calls to
6881 MODIFIED_NORETURN_CALLS here ...
6882 * tree-ssa-operands.c (update_stmt_operands): ... but here.
6884 2011-04-08 Richard Guenther <rguenther@suse.de>
6887 * toplev.c (lang_dependent_init): Do not open asm_out_file
6888 in WPA mode, nor perform debug machinery initialization.
6889 (finalize): Do not unlink asm_out_file in WPA mode.
6891 2011-04-08 Richard Guenther <rguenther@suse.de>
6893 * gimple.h (gimple_call_fntype): New function.
6894 (gimple_call_return_type): Use it.
6895 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
6896 * gimple-low.c (gimple_check_call_args): Likewise.
6897 * gimple.c (gimple_call_flags): Likewise.
6898 (gimple_call_arg_flags): Likewise.
6899 (gimple_call_return_flags): Likewise.
6900 * tree-cfg.c (verify_gimple_call): Likewise.
6901 (do_warn_unused_result): Likewise.
6902 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6903 * value-prof.c (gimple_ic_transform): Fix fndecl check.
6905 2011-04-08 Dmitry Melnik <dm@ispras.ru>
6907 PR rtl-optimization/48235
6908 * sel-sched.c (code_motion_process_successors): Recompute the last
6909 insn in basic block if control flow changed.
6910 (code_motion_path_driver): Ditto. Recompute the first insn as well.
6911 Update condition for ilist_remove.
6913 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6915 PR rtl-optimization/48302
6916 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6917 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
6918 it to record added preheader blocks.
6919 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
6920 on to sel_add_loop_preheaders.
6921 (sel_region_init): Move call to setup_current_loop_nest after
6924 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6927 * cfgloop.h (loop_has_exit_edges): New helper.
6928 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6930 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6931 that have no exit edges.
6933 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6935 PR rtl-optimization/48442
6936 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
6937 all callers. Adjust assert.
6939 2011-04-08 Jakub Jelinek <jakub@redhat.com>
6941 PR tree-optimization/48377
6942 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6943 is_packed to true even for types with smaller TYPE_ALIGN than
6946 2011-04-08 Richard Guenther <rguenther@suse.de>
6949 * doc/tm.texi: Re-generate.
6951 2011-04-08 Wei Guozhi <carrot@google.com>
6954 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6955 * config/arm/arm.c (arm_attr_length_push_multi): New function.
6956 * config/arm/arm.md (*push_multi): Change the length computation to
6959 2011-04-08 Anatoly Sokolov <aesok@post.ru>
6961 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6962 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6963 * doc/tm.texi: Regenerate.
6964 * system.h (ASM_OUTPUT_BSS): Poison.
6965 * varasm.c (asm_output_bss): Remove function.
6966 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6968 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6969 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6970 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6971 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6973 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6975 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6977 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6979 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6981 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6984 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6986 * config/m68k/m68k.c (m68k_handle_option): Don't handle
6987 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6988 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6990 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6991 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6992 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6993 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6994 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6995 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6996 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6997 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6998 options. Don't map other m68k options manually. Don't handle
6999 old-style options as canonical.
7000 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7001 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7003 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7005 * basic-block.h (force_nonfallthru): Move to...
7006 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7007 (force_nonfallthru): ...here.
7008 * cfghooks.c (force_nonfallthru): New function.
7009 * cfgrtl.c (force_nonfallthru): Rename into...
7010 (rtl_force_nonfallthru): ...this.
7011 (commit_one_edge_insertion): Do not set AUX field.
7012 (commit_edge_insertions): Do not discover new basic blocks.
7013 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7014 (cfg_layout_rtl_cfg_hooks): Likewise.
7015 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7016 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7017 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7019 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7021 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7024 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7026 * config/i386/sse.md: Update copyright year.
7027 (avxcvtvecmode): Remove.
7028 (sse_movhlps): Merge with *avx_movhlps.
7029 (sse_movlhps): Merge with *avx_movlhps.
7030 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7031 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7032 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7033 (sse_loadhps): Merge with *avx_loadhps.
7034 (sse_storelps): Merge with *avx_storelps.
7035 (sse_loadlps): Merge with *avx_loadlps.
7036 (sse_movss): Merge with *avx_movss.
7037 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7038 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7039 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7040 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7041 (vec_set<mode>_0): Ditto.
7042 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7043 (sse4_1_insertps): Merge with *avx_insertps.
7044 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7045 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7046 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7047 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7048 (sse2_storehpd): Merge with *avx_storehpd.
7049 (sse2_loadhpd): Merge with *avx_loadhpd.
7050 (sse2_loadlpd): Merge with *avx_loadlpd.
7051 (sse2_movsd): Merge with *avx_movsd.
7052 (*vec_concatv2df): Merge with *vec_concatv2df.
7054 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7057 * combine.c (combine_instructions): Add last_combined_insn,
7058 update it if insn is after it, pass it to all try_combine calls.
7059 (try_combine): Add last_combined_insn parameter, pass it instead of
7060 i3 to propagate_for_debug.
7062 2011-04-07 Nick Clifton <nickc@redhat.com>
7064 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7065 to handle MDR <-> data register transfers.
7066 (movhi_internal): Likewise.
7068 2011-04-07 Alan Modra <amodra@gmail.com>
7070 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7071 previous stack info.
7073 2011-04-07 Tom de Vries <tom@codesourcery.com>
7076 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7077 flow_find_cross_jump. Swap variables to implement backward replacement.
7078 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7080 2011-04-07 Tom de Vries <tom@codesourcery.com>
7083 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7084 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7086 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7087 src1 or src2. Redirect edges to the last basic block. Update
7088 frequency and count on multiple basic blocks in case of fallthru.
7090 2011-04-07 Tom de Vries <tom@codesourcery.com>
7093 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7095 (old_insns_match_p): Change return type. Replace return false/true
7096 with return dir_none/dir_both. Use can_replace_by.
7097 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7098 direction from dir_p. Register replacement direction in dir, last_dir
7099 and afterlast_dir. Handle new return type of old_insns_match_p using
7100 merge_dir. Return replacement direction in dir_p.
7101 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7102 return type of old_insns_match_p.
7103 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7104 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7105 flow_find_cross_jump.
7106 * basic-block.h (enum replace_direction): New type.
7107 (flow_find_cross_jump): Add parameter to declaration.
7109 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7111 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7112 (AVXMODEDCVTPS2DQ): Ditto.
7113 (VEC_FLOAT_MODE): Ditto.
7114 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7115 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7116 (<any_logic:code><mode>3): Use VF mode iterator.
7117 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7118 Use VF mode iterator.
7119 (copysign<mode>3): Use VF mode iterator.
7120 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7121 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7122 (*<any_logic:code><MODEF:mode>3): Merge with
7123 *avx_<any_logic:code><MODEF:mode>3.
7124 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7125 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7126 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7127 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7128 (sse2_cvtdq2ps): Use %v modifier.
7129 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7130 (avx_cvtps2dq<avxmodesuffix>): Remove.
7131 (sse2_cvtps2dq): Use %v modifier.
7132 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7133 (avx_cvttps2dq<avxmodesuffix>): Remove.
7134 (sse2_cvttps2dq): Use %v modifier.
7135 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7136 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7137 (sse2_cvtsd2siq): Fix insn template.
7138 (sse2_cvtsd2siq_2): Ditto.
7139 (sse2_cvttsd2siq): Ditto.
7140 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7141 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7143 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7145 * gcov-io.c: Use GCC Runtime Library Exception.
7147 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7150 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7151 as base_reg whatever register reg has been eliminated to, instead
7152 of hardcoding STACK_POINTER_REGNUM.
7154 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7156 * doc/tm.texi.in: Document C target hooks as separate from general
7158 * doc/tm.texi: Regenerate.
7159 * genhooks.c (struct hook_desc): Add docname field.
7160 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
7162 (hook_array): Include c-target.def.
7163 (emit_documentation): Use docname field in output.
7164 (emit_init_macros): Take docname argument. Only emit definitions
7165 for hooks matching docname.
7166 (main): Expect additional arguments in all cases. Pass argument
7167 to emit_init_macros.
7168 * target.def: Move initial macro definitions and comments to
7169 target-hooks-macros.h.
7170 (gcc_targetcm): Move to c-family/c-target.def.
7171 * target.h (targetcm): Move declaration to c-family/c-target.h.
7172 * targhooks.c (default_handle_c_option): Move to
7174 * targhooks.h (default_handle_c_option): Move declaration to
7175 c-family/c-common.h.
7176 * target-hooks-macros.h: New file.
7177 * config.gcc (target_has_targetcm): Define and use to add to
7178 c_target_objs and cxx_target_objs.
7179 * config/default-c.c: New file.
7180 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7181 of target.h and target-def.h.
7182 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7183 (darwin_objc_construct_string, darwin_cfstring_ref_p,
7184 darwin_check_cfstring_format_arg): Make static.
7185 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7186 TARGET_STRING_OBJECT_REF_TYPE_P,
7187 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7188 * config/darwin-protos.h (darwin_objc_construct_string,
7189 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7191 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7192 TARGET_STRING_OBJECT_REF_TYPE_P,
7193 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7194 * config/t-darwin (darwin-c.o): Update dependencies.
7195 * system.h (TARGET_HAS_TARGETCM): Poison.
7196 * Makefile.in (TARGET_H): Update.
7197 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7198 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7199 (default-c.o): New target.
7200 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7201 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7202 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
7204 (build/genhooks.o): Update dependencies.
7206 2011-04-06 Richard Guenther <rguenther@suse.de>
7208 * ipa-inline.c (enum inlining_mode): Remove.
7209 (cgraph_flatten): Use some other token.
7210 (cgraph_edge_early_inlinable_p): New function, split out from ...
7211 (cgraph_perform_always_inlining): New function, split out from ...
7212 (cgraph_decide_inlining_incrementally): ... here.
7213 (cgraph_mark_inline_edge): Adjust.
7214 (cgraph_early_inlining): Re-structure.
7215 (pass_early_inline): Require SSA form.
7217 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
7218 Julian Brown <julian@codesourcery.com>
7219 Mark Shinwell <shinwell@codesourcery.com>
7221 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7222 LO_REGS only for Thumb-1.
7223 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7224 be used in short instructions when optimising for size on Thumb-2.
7226 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7228 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7229 associated with user returns to be preserved.
7231 2011-04-06 Tristan Gingold <gingold@adacore.com>
7233 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7234 symbol_queue_size, DBXOUT_DECR_NESTING,
7235 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7236 if XCOFF_DEBUGGING_INFO.
7238 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7240 * config/i386/i386.md (attribute isa): New.
7241 (attribute enabled): New.
7242 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7243 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7244 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7245 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7246 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7247 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7248 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7249 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7251 * config/i386/sse.md (VF): New mode iterator.
7255 (SSEMODEF4): Remove.
7256 (attribute sse): Handle V8SF and V4DF modes.
7257 (<absneg:code><mode>2): Use VF mode iterator.
7258 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
7260 (<plusminus_insn><mode>3): Use VF mode iterator.
7261 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7262 Use VF mode iterator.
7263 (<sse>_vm<plusminus_insn><mode>3): Merge with
7264 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
7265 (mul<mode>3): Use VF mode iterator.
7266 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
7267 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
7269 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7270 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7271 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
7272 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
7274 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7275 Use VF1 mode iterator.
7276 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7277 (sqrt<VF2:mode>2): New expander.
7278 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7279 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7280 and sqrtv2df2. Use VF mode iterator.
7281 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
7283 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7284 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7285 Use VF1 mode iterator.
7286 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7287 (<smaxmin:code><mode>3): Use VF mode iterator.
7288 (*<smaxmin:code><mode>3_finite): Merge with
7289 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
7290 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7291 (<sse>_vm<smaxmin:code><mode>2): Merge with
7292 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
7293 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
7295 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
7297 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7298 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7299 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7300 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7301 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
7303 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7304 Use VF_128 mode iterator.
7305 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
7307 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
7308 VF_128 mode iterator.
7309 (vcond<mode>): Use VF mode iterator.
7310 * config/i386/predicates.md (sse_comparison_operator): Merge with
7311 avx_comparison_float_operator. Do not declare as special_predicate.
7312 * config/i386/i386.c (struct builtin_description): Update for renamed
7314 (ix86_expand_args_builtin): Ditto.
7315 (ix86_expand_sse_compare_mask): Ditto.
7317 2011-04-06 Richard Guenther <rguenther@suse.de>
7319 * tree-inline.c (estimate_num_insns): For calls simply account
7320 for all passed arguments and a used return value.
7322 2011-04-06 Richard Guenther <rguenther@suse.de>
7324 PR tree-optimization/47663
7325 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7326 call_stmt_time fields.
7327 (cgraph_edge_inlinable_p): Declare.
7328 (cgraph_edge_recursive_p): New inline function.
7329 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7330 (cgraph_clone_edge): Copy it.
7331 * ipa-inline.c (cgraph_estimate_edge_time): New function.
7332 Account for call stmt time.
7333 (cgraph_estimate_time_after_inlining): Take edge argument.
7334 (cgraph_estimate_edge_growth): Account call stmt size.
7335 (cgraph_estimate_size_after_inlining): Take edge argument.
7336 (cgraph_mark_inline_edge): Adjust.
7337 (cgraph_check_inline_limits): Likewise.
7338 (cgraph_recursive_inlining_p): Remove.
7339 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7340 (cgraph_decide_recursive_inlining): Take edge argument and
7342 (cgraph_decide_inlining_of_small_functions): Do not avoid
7343 diags for recursive inlining here.
7344 (cgraph_flatten): Adjust.
7345 (cgraph_decide_inlining_incrementally): Likewise.
7346 (estimate_function_body_sizes): Remove call cost handling.
7347 (compute_inline_parameters): Initialize caller edge call costs.
7348 (cgraph_estimate_edge_growth): New function.
7349 (cgraph_estimate_growth): Use it.
7350 (cgraph_edge_badness): Likewise.
7351 (cgraph_check_inline_limits): Take an edge argument.
7352 (cgraph_decide_inlining_of_small_functions): Adjust.
7353 (cgraph_decide_inlining): Likewise.
7354 * tree-inline.c (estimate_num_insns): Only account for call
7355 return value if it is used.
7356 (expand_call_inline): Avoid diagnostics on recursive inline
7358 * lto-cgraph.c (lto_output_edge): Output edge call costs.
7359 (input_edge): Input edge call costs.
7361 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7363 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7365 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7367 * doc/invoke.texi (Spec Files): Fix typo.
7369 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7371 * profile.c (branch_prob): Move declaration of local variable. Remove
7372 obsolete ??? comment. Expand the location explicitly instead of using
7373 the LOCATION_FILE and LOCATION_LINE macros.
7375 2011-04-06 Wei Guozhi <carrot@google.com>
7378 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7379 (arm_cond_branch): Likewise.
7380 (arm_cond_branch_reversed): Likewise.
7381 (arm_jump): Likewise.
7382 (push_multi): Likewise.
7383 * config/arm/constraints.md (Py): New constraint.
7385 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7388 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7390 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7391 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7392 #ifdef DBX_DEBUGGING_INFO.
7394 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
7397 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7398 if old and new states differ.
7400 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7402 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7403 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7404 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7405 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7406 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7408 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7409 ColdFire options to -mcpu= options.
7411 2011-04-05 Jeff Law <law@redhat.com>
7413 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7414 check if BB is a successor of LOOP->header and return
7415 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7417 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7419 * cprop.c (struct reg_use): Remove.
7420 (reg_use_table): Make an array of RTX.
7421 (find_used_regs, constprop_register, local_cprop_pass,
7422 bypass_block): Simplify users of reg_use_table.
7423 (cprop_insn): Likewise. Iterate if copy propagation succeeded
7424 on one of the uses found by find_used_regs.
7426 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7429 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7432 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7434 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7436 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7438 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7441 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7443 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7445 * combine.c: Include obstack.h.
7446 (struct insn_link): Define.
7447 (uid_log_links): Adjust type.
7448 (FOR_EACH_LOG_LINK): New macro.
7449 (insn_link_obstack): Declare.
7450 (alloc_insn_link): Define.
7451 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
7452 type of link variables.
7453 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7454 (try_combine, record_promoted_values, distribute_notes): Likewise.
7455 (distribute_links): Likewise. Tweak prototype.
7456 (clear_log_links): Delete.
7457 (adjust_for_new_dest): Call alloc_insn_link.
7458 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7460 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7462 * gcse.c (modify_mem_list): Convert to an array of VECs.
7463 (canon_modify_mem_list, compute_transp): Tweak formatting.
7464 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
7465 (load_killed_in_block_p): Likewise.
7466 (record_last_mem_set_info): Likewise.
7467 (clear_modify_mem_tables): Likewise.
7469 2011-04-05 Tom de Vries <tom@codesourcery.com>
7472 * function.c (emit_use_return_register_into_block): Only define if
7475 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
7477 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7479 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7481 * config/rx/rx-opts.h: New.
7482 * config/rx/rx.c (rx_cpu_type): Remove.
7483 (rx_handle_option): Don't assert that global structures are in
7484 use. Access variables via opts pointer. Defer most handling of
7485 OPT_mint_register_. Use error_at.
7486 (rx_option_override): Handle deferred OPT_mint_register_ here.
7487 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7488 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7489 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7490 (rx_cpu_types): New Enum and EnumValue entries.
7491 (mint-register=): Use Defer and use Var accordingly.
7493 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7495 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7496 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7497 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7499 (debug_free_queue, debug_nesting, symbol_queue_index):
7501 * dbxout.c: ...to here. Make static.
7503 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7505 * gcse.c (modify_pair): Define. Define a VEC of it.
7506 (canon_modify_mem_list): Convert to an array of VECs.
7507 (free_insn_expr_list_list): Delete.
7508 (clear_modify_mem_tables): Call VEC_free instead.
7509 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7510 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7511 (canon_list_insert, compute_transp): Likewise.
7513 2011-04-05 Tom de Vries <tom@codesourcery.com>
7516 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7519 2011-04-05 Tom de Vries <tom@codesourcery.com>
7522 * function.c (emit_use_return_register_into_block): New function.
7523 (thread_prologue_and_epilogue_insns): Use
7524 emit_use_return_register_into_block.
7526 2011-04-05 Tom de Vries <tom@codesourcery.com>
7529 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7532 2011-04-05 Tom de Vries <tom@codesourcery.com>
7534 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7536 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
7538 * config/arm/arm.md (define_constants for unspec): Replace with
7540 (define_constants for unspecv): Replace with define_c_enum.
7541 * config/arm/neon.md (define_constants for unspec): Replace with
7544 2011-04-04 Richard Henderson <rth@redhat.com>
7547 * dwarf2out.c (output_line_info): Always emit line info from
7548 at least one section.
7549 (dwarf2out_init): Create text_section_line_info here ...
7550 (set_cur_line_info_table): ... not here.
7552 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
7555 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
7558 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
7560 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
7562 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
7563 (expr_equiv_p): Remove.
7564 (insert_set_in_table): Look at <dest, src> pair instead of expr.
7565 (hash_scan_set): Update call to insert_set_in_table.
7566 (dump_hash_table): Dump <dest, src> pair.
7567 (lookup_set): Simplify. Lookup <dest, src> pair.
7568 (compute_transp): Remove, fold heavily simplified code into...
7569 (compute_local_properties): ...here. Expect COMP and TRANSP
7571 (find_avail_set): Take set directly from struct expr.
7572 (find_bypass-set): Likewise.
7573 (bypass_block): Likewise.
7574 (cprop_insn): Likewise. Remove redundant INSN_P test.
7576 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
7577 checks on form of COND from find_implicit_sets to here.
7578 (find_implicit_sets): Cleanup control flow. Split critical edges
7579 if it exposes implicit sets. Allocate/resize implicit_sets as
7581 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
7582 changed something. Run df_analyze after find_implicit_sets if any
7583 edges were split. Do not allocate implicit_sets here.
7585 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
7586 (gcse_obstack): Renamed to cprop_obstack.
7587 (GNEW, GNEWVEC, GNEWVAR): Remove.
7589 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7590 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7591 (gcse_alloc): Likewise, and rename to cprop_alloc.
7592 (alloc_gcse_men, free_gcse_mem): Remove.
7593 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7594 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7595 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7597 * cprop.c (oprs_not_set_p): Remove.
7598 (mark_set, mark_clobber): Remove.
7599 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7600 (reg_not_set_p): New function.
7601 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7602 (cprop_insn): Likewise.
7603 (cprop_jump): Use FOR_EACH_EDGE.
7605 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
7608 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7609 (rank_for_schedule): Use scheduled_insns vector instead of
7610 last_scheduled_insn.
7611 (ok_for_early_queue_removal): Likewise.
7612 (queue_to_ready): Search forward in nonscheduled_insns_begin if
7614 (choose_ready): Likewise.
7615 (commit_schedule): Use VEC_iterate.
7616 (schedule_block): Initialize nonscheduled_insns_begin. If we have
7617 a dbg_cnt, use it and ensure the first insn is in the ready list.
7618 (haifa_sched_init): Allocate scheduled_insns.
7619 (sched_extend_ready_list): Don't allocate it; reserve space.
7620 (haifa_sched_finish): Free it.
7622 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7624 * optc-gen.awk: Always remove type from Variable entry before
7625 recording in var_seen.
7627 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
7629 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7630 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7631 call to tidy_fallthru_edges.
7633 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7635 * doc/options.texi (ToLower): Document.
7636 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7637 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7638 * opts.h (cl_option): Add cl_tolower field.
7639 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7640 arguments with lowercase strings.
7641 * config/rx/rx.opt (mcpu=): Add ToLower.
7642 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7645 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7647 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7649 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7651 * config/vax/vax.c: Include reload.h.
7653 2011-04-04 Anatoly Sokolov <aesok@post.ru>
7655 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7656 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7657 (sparc_preferred_reload_class): New function.
7659 2011-04-04 Jakub Jelinek <jakub@redhat.com>
7662 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7663 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7665 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
7667 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7668 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7670 2011-04-03 Anatoly Sokolov <aesok@post.ru>
7672 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7673 (ASM_OUTPUT_ALIGNED_BSS): Define.
7675 2011-04-03 Michael Matz <matz@suse.de>
7677 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7678 and next_slot members.
7679 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7680 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7681 (lto_streamer_cache_append): Declare.
7682 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7683 unsigned index, remove offset parameter, ensure that we append
7684 or update existing entries.
7685 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7686 parameter, update next_slot for append.
7687 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7689 (lto_streamer_cache_insert_at): Likewise.
7690 (lto_streamer_cache_append): New function.
7691 (lto_streamer_cache_lookup): Use unsigned index.
7692 (lto_streamer_cache_get): Likewise.
7693 (lto_record_common_node): Don't test tree_node_can_be_shared.
7694 (preload_common_node): Adjust call to lto_streamer_cache_insert.
7695 (lto_streamer_cache_delete): Don't free offsets member.
7696 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7697 (lto_output_string_with_length): Use lto_output_data_stream.
7698 (lto_output_tree_header): Remove ix parameter, don't write it.
7699 (lto_output_builtin_tree): Likewise.
7700 (lto_write_tree): Adjust callers to above, don't track and write
7701 offset, write unsigned index.
7702 (output_unreferenced_globals): Don't emit all global vars.
7703 (write_global_references): Use unsigned indices.
7704 (lto_output_decl_state_refs): Likewise.
7705 (write_symbol): Likewise.
7706 * lto-streamer-in.c (lto_input_chain): Move earlier.
7707 (input_function): Use unsigned index.
7708 (input_alias_pairs): Don't read and then ignore all global vars.
7709 (lto_materialize_tree): Remove ix_p parameter, don't read index,
7710 don't pass it back, use lto_streamer_cache_append.
7711 (lto_register_var_decl_in_symtab): Use unsigned index.
7712 (lto_register_function_decl_in_symtab): Likewise.
7713 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7715 (lto_get_builtin_tree): Don't read index, use
7716 lto_streamer_cache_append.
7717 (lto_read_tree): Adjust call to lto_materialize_tree.
7719 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7720 don't use function calls in arguments to MIN.
7722 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7725 * gimple.c (gimple_type_leader_entry): Mark deletable.
7727 2011-04-03 Alan Modra <amodra@gmail.com>
7729 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7731 2011-04-03 Michael Matz <matz@suse.de>
7733 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7735 * tree.h (tree_decl_non_common.vindex): Adjust comment.
7737 2011-04-03 Michael Matz <matz@suse.de>
7739 * cgraphbuild.c (record_reference): Canonicalize constructor values.
7740 * gimple-fold.c (canonicalize_constructor_val): Accept being called
7741 without function context.
7742 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7743 current_function_decl and cfun.
7745 2011-04-03 Michael Matz <matz@suse.de>
7747 * tree.c (decl_init_priority_insert): Don't create entry for
7749 (decl_fini_priority_insert): Ditto.
7750 (fields_compatible_p, find_compatible_field): Remove.
7751 * tree.h (fields_compatible_p, find_compatible_field): Remove.
7752 * gimple.c (gimple_compare_field_offset): Adjust block comment.
7754 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
7756 * combine.c (try_combine): Remove useless local variable.
7758 2011-04-03 Richard Guenther <rguenther@suse.de>
7759 Ira Rosen <ira.rosen@linaro.org>
7761 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7762 non-variable offsets and compare the remaining bases of the two
7763 accesses instead of looking for exact same data-ref.
7765 2011-04-02 Kai Tietz <ktietz@redhat.com>
7768 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7770 * i386.c (ix86_is_msabi_thiscall): New helper function.
7771 (ix86_is_type_thiscall): New helper function.
7772 (ix86_comp_type_attributes): Handle thiscall for method-functions
7774 (init_cumulative_args): Likewise.
7775 (find_drap_reg): Likewise.
7776 (ix86_static_chain): Likewise.
7777 (x86_this_parameter): Likewise.
7778 (x86_output_mi_thunk): Likewise.
7780 2011-04-01 Olivier Hainque <hainque@adacore.com>
7781 Nicolas Setton <setton@adacore.com>
7782 Eric Botcazou <ebotcazou@adacore.com>
7784 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7785 (add_gnat_descriptive_type_attribute): New function.
7786 (gen_array_type_die): Call it.
7787 (gen_enumeration_type_die): Likewise.
7788 (gen_struct_or_union_type_die): Likewise.
7789 (modified_type_die): Likewise.
7790 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
7791 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
7792 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
7794 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7797 * dwarf2out.c (resolve_addr): Don't call force_decl_die
7798 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
7801 2011-03-17 Richard Guenther <rguenther@suse.de>
7804 * lto-cgraph.c (input_overwrite_node): Clear the abstract
7805 origin for decls in other ltrans units.
7806 (input_varpool_node): Likewise.
7808 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7811 * expr.c (expand_assignment): Handle all possibilities
7812 if TO_RTX is CONCAT.
7813 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7814 (store_split_bit_field): If SUBREG_REG (op0) or
7815 op0 itself has smaller mode than word, return it
7816 for offset 0 and const0_rtx for out-of-bounds stores.
7817 If word is const0_rtx, skip it.
7819 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
7821 * config/h8300/h8300.c (print_operand_address): Rename to...
7822 (h8300_print_operand_address): ...this. Make static. Adjust comments.
7823 Call h8300_print_operand and h8300_print_operand_address instead of
7824 print_operand and print_operand_address. Declare.
7825 (print_operand): Renake to...
7826 (h8300_print_operand): ...this. Make static. Adjust comments.
7827 Call h8300_print_operand instead of print_operand. Declare.
7828 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7829 (h8300_register_move_cost): Likewise.
7830 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
7831 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
7832 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
7833 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
7834 * config/h8300/h8300-protos.h (print_operand): Delete.
7835 (print_operand_address): Delete.
7837 2011-04-01 Richard Henderson <rth@redhat.com>
7840 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
7841 in strict mode before dwarf4. Re-order tests to early out
7842 before switching sections.
7844 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
7846 * config/h8300/constraints.md: New file.
7847 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
7848 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
7849 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
7850 * config/h8300/predicates.md (bit_operand): Likewise.
7851 (incdec_operand): Use satisfies_constraint_M and
7852 satisfies_constraint_O. Don't use C code block.
7853 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
7854 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
7855 (compute_mov_length): Use satisfies_constraint_G.
7856 (fix_bit_operand): Use satisfies_constraint_U.
7857 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
7858 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
7859 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
7860 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
7861 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
7862 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
7863 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7864 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
7865 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
7866 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
7867 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
7868 (EXTRA_MEMORY_CONSTRAINT): Delete.
7870 2011-04-01 Andrew Pinski <pinskia@gmail.com>
7871 Michael Meissner <meissner@linux.vnet.ibm.com>
7874 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
7875 operands, as per the specifications.
7877 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
7878 (vec_extract_evenv4sf): Ditto.
7879 (vec_extract_evenv8hi): Ditto.
7880 (vec_extract_evenv16qi): Ditto.
7881 (vec_extract_oddv4si): Ditto.
7883 2011-03-31 Mark Wielaard <mjw@redhat.com>
7885 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
7886 high_pc attribute if the CU has no associated code. Only output
7887 DW_AT_entry_pc for CU if not generating strict dwarf and
7890 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
7892 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
7893 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
7895 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7896 * final.c (final_start_function): Call the new function rather
7897 than using a NULL argument for dwarf2out_frame_debug.
7899 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
7900 that contains the prologue.
7902 * haifa-sched.c (queue_insn): New arg REASON. All callers
7903 changed. Print it in debugging output.
7905 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7907 * sched-ebb.c (begin_schedule_ready): Remove second argument.
7908 Split most of the code into...
7909 (begin_move_insn): ... here. New function.
7910 (ebb_sched_info): Add a pointer to it.
7911 * haifa-sched.c (scheduled_insns): New static variable.
7912 (sched_extend_ready_list): Allocate it.
7913 (schedule_block): Use it to record the order of scheduled insns.
7914 Perform RTL changes to move insns only after all scheduling
7915 decisions have been made.
7916 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7917 begin_move_insn field.
7918 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7919 * sched-int.h (struct haifa_sched_info): Remove second argument
7920 from begin_schedule_ready hook. Add new member begin_move_insn.
7921 * sched-rgn.c (begin_schedule_ready): Remove second argument.
7922 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7924 * haifa-sched.c (prune_ready_list): New function, broken out of
7926 (schedule_block): Use it.
7928 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7930 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7932 2011-04-01 Kai Tietz <ktietz@redhat.com>
7934 * config.gcc (*-*-mingw*): Allow as option the
7935 posix threading model.
7936 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
7937 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7939 (CPP_SPEC): Add pthread/no-pthread handling.
7940 (LIB_SPEC): Likewise.
7941 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7942 (LIB_SPEC): Likewise.
7943 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7944 flag to pass -pthread option for shared libgcc build.
7945 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7946 for shared libgcc build.
7947 * config/i386/t-mingw-pthread: New file.
7948 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7949 New define to enable use of library pthread by default.
7950 * config/i386/mingw.opt (pthread): New driver option.
7951 (no-pthread): New driver option.
7952 * config/i386/cygming.opt: Make sure trailing empty line is retained.
7953 * config/i386/mingw-w64.opt: Likewise.
7955 2011-04-01 Gary Funck <gary@intrepid.com>
7957 * c-decl.c (grokdeclarator): Fix formatting.
7959 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7961 * expr.c (emit_block_move_via_movmem): Use n_generator_args
7962 instead of n_operands.
7963 (set_storage_via_setmem): Likewise.
7964 * optabs.c (maybe_gen_insn): Likewise.
7965 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7966 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7967 (mips_expand_builtin_direct): Likewise.
7968 * config/spu/spu.c (expand_builtin_args): Likewise.
7970 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7972 * recog.h (insn_data_d): Add n_generator_args.
7973 * genoutput.c (data): Likewise.
7974 (output_insn_data): Print it.
7975 (max_opno, num_dups): Delete.
7976 (scan_operands): Just fill in "d->operand[...]".
7977 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7979 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7981 * gensupport.h (pattern_stats): New structure.
7982 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7983 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7984 (max_operand_1, max_operand_vec): Delete.
7985 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7987 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
7989 * emit-rtl.c (emit_pattern_after_setloc): New function.
7990 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7991 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7992 (emit_pattern_after): New function.
7993 (emit_insn_after, emit_jump_insn_after): Call it.
7994 (emit_call_insn_after, emit_debug_insn_after): Likewise.
7995 (emit_pattern_before_setloc): New function.
7996 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7997 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7999 (emit_pattern_before): New function.
8000 (emit_insn_before, emit_jump_insn_before): Call it.
8001 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8003 2011-03-31 Richard Henderson <rth@redhat.com>
8005 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8006 (dw_separate_line_info_entry): Remove.
8007 (enum dw_line_info_opcode): New.
8008 (dw_line_info_entry): Use it.
8009 (dw_line_info_table, dw_line_info_table_p): New.
8010 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8011 (line_info_table, line_info_label_num): Remove.
8012 (line_info_table_in_use): Remove.
8013 (separate_line_info_table): Remove.
8014 (separate_line_info_table_allocated): Remove.
8015 (separate_line_info_table_in_use): Remove.
8016 (LINE_INFO_TABLE_INCREMENT): Remove.
8017 (line_info_label_num): New.
8018 (cur_line_info_table): New.
8019 (text_section_line_info, cold_text_section_line_info): New.
8020 (separate_line_info): New.
8021 (SEPARATE_LINE_CODE_LABEL): Remove.
8022 (print_dwarf_line_table): Remove.
8023 (debug_dwarf): Don't dump it.
8024 (output_one_line_info_table): New.
8025 (output_line_info): Use it.
8026 (new_line_info_table): New.
8027 (set_cur_line_info_table): New.
8028 (dwarf2out_switch_text_section): Use it.
8029 (dwarf2out_begin_function): Likewise.
8030 (push_dw_line_info_entry): New.
8031 (dwarf2out_source_line): Rewrite for new line info tables.
8032 (dwarf2out_init): Remove dead initailizations.
8034 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8036 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8038 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8039 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8040 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8041 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8042 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8043 * opt-functions.awk (flag_init, switch_bit_fields): New.
8044 (switch_flags): Don't handle flags moved to bit-fields. Don't
8045 generate CL_MISSING_OK or CL_SAVE.
8046 * optc-gen.awk: Update to generate bit-field output as well as
8048 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8049 bit-field instead of CL_REJECT_DRIVER flag.
8050 * opts-common.c (generate_canonical_option,
8051 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8052 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8053 instead of CL_REJECT_NEGATIVE flag.
8054 * toplev.c (print_switch_values): Use cl_report bit-field instead
8057 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8059 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8060 a zero minimum index only if it is redundant.
8062 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8064 PR rtl-optimization/48381
8065 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8066 instead of ira_class_hard_reg_index for calculating conflicting
8069 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8071 * cprop.c: Clean up hash table building.
8072 (reg_avail_info): Remove.
8073 (oprs_available_p): Remove.
8074 (record_last_reg_set_info): Remove.
8075 (record_last_set_info): Remove.
8076 (reg_available_p): New function.
8077 (gcse_constant_p): Do not treat unfolded conditions as constants.
8078 (make_set_regs_unavailable): New function.
8079 (hash_scan_set): Simplify with new reg_available_p.
8080 (compute_hash_table_work): Traverse insns stream only once.
8081 Do not compute reg_avail_info. Traverse insns in reverse order.
8082 Record implicit sets after recording explicit sets from the block.
8084 2011-03-31 Michael Matz <matz@suse.de>
8086 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8088 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8090 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8091 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8092 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8093 (h8300_mode_dependent_address_p): New function.
8094 (h8300_get_index): Make static.
8096 2011-03-31 Jeff Law <law@redhat.com>
8098 * reload1.c (elimination_effects): Fix typo in recent change.
8100 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8101 typo potentially leading to null pointer dereference.
8103 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8104 (setup_save_areas): Corresponding changes to avoid useless
8107 * jump.c (reversed_comparison_code_parts): Avoid successive return
8108 statements when REVERSE_CONDITION is defined.
8110 * expr.c (expand_assignment): Avoid useless assignments.
8111 (expand_expr_real_1): Likewise.
8112 (expand_expr_real_2): Avoid useless statements.
8114 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8116 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8118 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8121 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8123 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8126 * doc/tm.texi.in (TARGET_VERSION): Remove.
8127 * doc/tm.texi: Regenerate.
8128 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8129 * collect2.c (main): Don't use TARGET_VERSION.
8130 * mips-tdump.c (main): Don't use TARGET_VERSION.
8131 * mips-tfile.c (main): Don't use TARGET_VERSION.
8132 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8133 * config/rs6000/vxworksae.h: Remove.
8134 * config/alpha/alpha.h (TARGET_VERSION): Remove.
8135 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8136 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8137 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8138 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8139 * config/arm/arm.h (TARGET_VERSION): Remove.
8140 * config/arm/coff.h (TARGET_VERSION): Remove.
8141 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8142 * config/arm/elf.h (TARGET_VERSION): Remove.
8143 * config/arm/freebsd.h (TARGET_VERSION): Remove.
8144 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8145 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8146 * config/arm/pe.h (TARGET_VERSION): Remove.
8147 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8148 * config/arm/semi.h (TARGET_VERSION): Remove.
8149 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8150 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8151 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8152 * config/avr/avr.h (TARGET_VERSION): Remove.
8153 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8154 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8155 * config/frv/frv.h (TARGET_VERSION): Remove.
8156 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8157 * config/i386/cygwin.h (TARGET_VERSION): Remove.
8158 * config/i386/darwin.h (TARGET_VERSION): Remove.
8159 * config/i386/darwin64.h (TARGET_VERSION): Remove.
8160 * config/i386/djgpp.h (TARGET_VERSION): Remove.
8161 * config/i386/freebsd.h (TARGET_VERSION): Remove.
8162 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8163 * config/i386/gnu.h (TARGET_VERSION): Remove.
8164 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8165 * config/i386/i386elf.h (TARGET_VERSION): Remove.
8166 * config/i386/linux.h (TARGET_VERSION): Remove.
8167 * config/i386/linux64.h (TARGET_VERSION): Remove.
8168 * config/i386/lynx.h (TARGET_VERSION): Remove.
8169 * config/i386/mingw32.h (TARGET_VERSION): Remove.
8170 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8171 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8172 * config/i386/netware.h (TARGET_VERSION): Remove.
8173 * config/i386/nto.h (TARGET_VERSION): Remove.
8174 * config/i386/openbsd.h (TARGET_VERSION): Remove.
8175 * config/i386/vxworks.h (TARGET_VERSION): Remove.
8176 * config/ia64/elf.h (TARGET_VERSION): Remove.
8177 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8178 * config/ia64/hpux.h (TARGET_VERSION): Remove.
8179 * config/ia64/linux.h (TARGET_VERSION): Remove.
8180 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8181 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8182 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8183 * config/lm32/lm32.h (TARGET_VERSION): Remove.
8184 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8185 * config/m32c/m32c.h (TARGET_VERSION): Remove.
8186 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8187 * config/m32r/m32r.h (TARGET_VERSION): Remove.
8188 * config/m68k/linux.h (TARGET_VERSION): Remove.
8189 * config/m68k/m68k.h (TARGET_VERSION): Remove.
8190 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8191 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8192 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8193 * config/mep/mep.h (TARGET_VERSION): Remove.
8194 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8195 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8196 * config/mips/iris6.h (MACHINE_TYPE): Remove.
8197 * config/mips/linux.h (TARGET_VERSION): Remove.
8198 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8199 * config/mips/vxworks.h (TARGET_VERSION): Remove.
8200 * config/mmix/mmix.h (TARGET_VERSION): Remove.
8201 * config/mn10300/linux.h (TARGET_VERSION): Remove.
8202 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8203 * config/pa/pa.h (TARGET_VERSION): Remove.
8204 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8205 * config/picochip/picochip.h (TARGET_VERSION): Remove.
8206 * config/rs6000/aix.h (TARGET_VERSION): Remove.
8207 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8208 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8209 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8210 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8211 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8212 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8213 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8214 * config/rs6000/linux.h (TARGET_VERSION): Remove.
8215 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8216 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8217 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8218 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8219 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8220 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8221 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8222 * config/s390/linux.h (TARGET_VERSION): Remove.
8223 * config/s390/s390.h (TARGET_VERSION): Remove.
8224 * config/s390/tpf.h (TARGET_VERSION): Remove.
8225 * config/score/score.h (TARGET_VERSION): Remove.
8226 * config/sh/linux.h (TARGET_VERSION): Remove.
8227 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8228 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8229 * config/sh/sh.h (TARGET_VERSION): Remove.
8230 * config/sh/sh64.h (TARGET_VERSION): Remove.
8231 * config/sh/superh.h (TARGET_VERSION): Remove.
8232 * config/sh/vxworks.h (TARGET_VERSION): Remove.
8233 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8234 * config/sparc/linux.h (TARGET_VERSION): Remove.
8235 * config/sparc/linux64.h (TARGET_VERSION): Remove.
8236 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8237 TARGET_NAME32, TARGET_NAME): Remove.
8238 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8239 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8240 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8241 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8242 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8243 * config/spu/spu.h (TARGET_VERSION): Remove.
8244 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8245 * config/v850/v850.h (TARGET_VERSION): Remove.
8246 * config/vax/linux.h (TARGET_VERSION): Remove.
8247 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8248 * config/xtensa/elf.h (TARGET_VERSION): Remove.
8249 * config/xtensa/linux.h (TARGET_VERSION): Remove.
8251 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8254 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8255 frame-related from frame-unrelated adjustments to the stack pointer.
8257 2011-03-31 Jakub Jelinek <jakub@redhat.com>
8259 * common.opt (fdebug-types-section): Move earlier.
8260 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8262 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
8264 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8267 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
8269 * tree.h (CASE_CHAIN): Define.
8270 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8271 (gimple_redirect_edge_and_branch): Likewise.
8273 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8276 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8279 2011-03-30 Jeff Law <law@redhat.com>
8281 * PR bootstrap/48371
8282 * reload1.c (reload): Fix botch in last change.
8284 * reload.h (struct reload): Fix typo introduced in last change.
8286 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8288 * config/arm/arm.opt (mhard-float, msoft-float): Mark
8289 Undocumented. Remove help text.
8290 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8293 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8295 * doc/options.texi (NegativeAlias): Document.
8296 (Alias): Mention NegativeAlias.
8297 * opt-functions.awk: Handle NegativeAlias.
8298 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8299 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8300 * opts.h (CL_NEGATIVE_ALIAS): Define.
8301 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8302 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8304 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8306 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8307 mno-spe and mno-isel instead of mspe=no and -misel=no.
8309 2011-03-29 Mark Wielaard <mjw@redhat.com>
8311 * common.opt (fdebug-types-section): New flag.
8312 * doc/invoke.texi: Document new -fno-debug-types-section flag.
8313 * dwarf2out.c (use_debug_types): New define.
8314 (struct die_struct): Mark die_id with GTY desc use_debug_types.
8315 (print_die): Guard output of type unit signatures using
8317 (build_abbrev_table): Replace assert of dwarf_version >= 4
8318 with assert on use_debug_types.
8319 (size_of_die): Likewise.
8320 (unmark_dies): Likewise.
8321 (value_format): Decide AT_ref_external form on use_debug_types.
8322 (output_die): Replace dwarf_version version check guard with
8323 use_debug_types where appropriate.
8324 (modified_type_die): Likewise.
8325 (gen_reference_type_die): Likewise.
8326 (dwarf2out_start_source_file): Likewise.
8327 (dwarf2out_end_source_file): Likewise.
8328 (prune_unused_types_walk_attribs): Likewise.
8329 (dwarf2out_finish): Likewise.
8331 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8333 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8335 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8337 PR rtl-optimization/48332
8338 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8339 mode of input operand N and modeN to its actual mode.
8341 2011-03-30 Jeff Law <law@redhat.com>
8343 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8344 define accessor macro.
8345 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8346 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8347 (reg_equiv_init): Likewise.
8348 (reg_equivs_size): New variable.
8349 (reg_equiv_init_size): Remove.
8350 (allocate_initial_values): Move prototype to here from....
8351 * integrate.h (allocate_initial_values): Remove prototype.
8352 * integrate.c: Include reload.h.
8353 (allocate_initial_values): Corresponding changes.
8354 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8355 (fix_reg_equiv_init, no_equiv): Corresponding changes.
8356 (update_equiv_regs): Corresponding changes.
8357 (ira): Corresponding changes.
8358 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8359 (push_secondary_reload): Corresponding changes.
8360 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8361 (make_memloc, find_reloads_address): Corresponding changes.
8362 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8363 (find_reloads_address_1): Corresponding changes.
8364 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8365 (refers_to_regno_for_reload_p): Corresponding changes.
8366 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8367 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8368 * reload1.c: Include ggc.h.
8369 (grow_reg_equivs): New function.
8370 (replace_pseudos_in, reload): Corresponding changes.
8371 (calculate_needs_all_insns, alter_regs): Corresponding changes.
8372 (eliminate_regs_1, elimination_effects): Corresponding changes.
8373 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8374 (delete_output_reload): Likewise.
8375 * caller-save.c (mark_referenced_regs): Corresponding changes.
8376 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8377 * frv/predicates.md (frv_load_operand): Corresponding changes.
8378 * microblaze/microblaze.c (double_memory_operand): Corresponding
8380 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8381 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8382 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8383 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8384 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8386 * pa/pa.c (emit_move_sequence): Corresponding changes.
8387 * vax/vax.c (nonindexed_address_p): Corresponding changes.
8389 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8392 * config/arm/arm.c (coproc_secondary_reload_class): Handle
8393 structure modes. Don't check neon_vector_mem_operand for
8394 vector or structure modes.
8396 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8397 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8400 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8401 operand 1 and reshuffle the operands to match.
8402 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8404 2011-03-30 Christian Schüler <cschueler@gmx.de>
8407 * config/c.opt (F): Added 'Driver' to -F option.
8410 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8412 * config/darwin.opt: Added '-arch' option.
8414 2011-03-30 Nick Clifton <nickc@redhat.com>
8416 * config/rx/rx.md: Add peepholes and patterns to combine
8417 extending loads and simple arithmetic instructions.
8418 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8419 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8420 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8421 modes to use pre-decrement and post-increment addressing.
8422 (rx_is_restricted_memory_address): Add range checking of REG+INT
8424 (rx_print_operand): Add support for %Q. Fix handling of %Q.
8425 (rx_memory_move_cost): Adjust cost of stores.
8426 (rx_adjust_insn_length): New function.
8428 2011-03-30 Jakub Jelinek <jakub@redhat.com>
8431 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8432 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8433 matching arg00/arg01 types.
8435 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
8437 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8438 last_location to UNKNOWN_LOCATION.
8440 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
8443 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8446 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8447 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8450 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8452 (sparc_cpu): Likewise.
8453 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8456 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8460 PR rtl-optimization/48345
8461 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8462 hard regs for given mode from profitable regs when doing secondary
8465 2011-03-29 Jeff Law <law@redhat.com>
8468 * tree-ssa-threadupdate.c (struct redirection_data): Remove
8469 do_not_duplicate field.
8470 (lookup_redirection_data): Corresponding changes.
8471 (create_duplicates): Always create a template block.
8472 (redirect_edges): Remove code which reused the original block
8473 when it was going to become unreachable code.
8474 (thread_block): Don't set do_not_duplicate field.
8476 2011-03-29 Joseph Myers <joseph@codesourcery.com>
8478 * lto-opts.c (register_user_option_p, lto_register_user_option):
8479 Make type argument unsigned.
8480 * lto-streamer.h (lto_register_user_option): Make type argument
8482 * opth-gen.awk: Make CL_* macros unsigned.
8483 * opts-common.c (find_opt): Make lang_mask argument unsigned.
8484 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8485 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8486 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8487 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8488 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8489 (find_opt): Make lang_mask argument unsigned.
8491 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8493 PR rtl-optimization/48331
8494 PR rtl-optimization/48334
8495 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8496 for any used algorithm.
8498 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8500 * ira-conflicts.c (build_object_conflicts): Add unused attribute
8503 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
8505 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8506 (alpha_option_override): Don't set alpha_sr_alias_set.
8507 (emit_frame_store_1): Use gen_frame_mem rather than calling
8509 (alpha_expand_epilogue): Ditto.
8511 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
8513 PR tree-optimization/48290
8514 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8515 vectorization, check that relevant phis in the basic block after
8516 the inner loop are really inner loop's exit phis.
8518 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
8521 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
8522 (cached_dw_loc_list_def): New structure.
8523 (cached_dw_loc_list): New typedef.
8524 (cached_dw_loc_list_table): New variable.
8525 (cached_dw_loc_list_table_hash): New function.
8526 (cached_dw_loc_list_table_eq): Likewise.
8527 (add_location_or_const_value_attribute): Take a bool cache_p.
8528 Cache the list when the parameter is true.
8529 (gen_formal_parameter_die): Update caller.
8530 (gen_variable_die): Likewise.
8531 (dwarf2out_finish): Likewise.
8532 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8533 while generating debug info for the decl.
8534 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8535 (dwarf2out_init): Initialize cached_dw_loc_list_table.
8536 (resolve_addr): Cache the result of resolving a chain of
8539 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
8541 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
8542 conflict object hard regset nodes have intersecting hard reg sets.
8544 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
8545 after regstat_init_n_sets_and_refs.
8547 * ira.c: Add more comments at the top.
8548 (setup_stack_reg_pressure_class, setup_pressure_classes):
8549 Add comments how we compute the register pressure classes.
8550 (setup_allocno_and_important_classes): Add more comments.
8551 (setup_class_translate_array, reorder_important_classes)
8552 (setup_reg_class_relations): Add comments.
8554 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
8557 * ira-color.c: Add 2011 to the Copyright line.
8558 (assign_hard_reg): Add more comments.
8559 (improve_allocation): Ditto.
8561 * ira-costs.c: Add 2011 to the Copyright line.
8562 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
8564 (setup_regno_cost_classes_by_mode): Ditto.
8566 Initial patches from ira-improv branch:
8568 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8570 * ira-build.c (ira_create_object): Remove initialization of
8571 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
8572 (ira_create_allocno): Remove initialization of
8573 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
8574 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
8575 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8576 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
8577 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
8578 Initialize ALLOCNO_ADD_DATA.
8579 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
8580 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
8582 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
8583 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
8585 * ira.c (ira_reallocate): Remove.
8586 (setup_pressure_classes): Call
8587 ira_init_register_move_cost_if_necessary. Use
8588 ira_register_move_cost instead of ira_get_register_move_cost.
8589 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8590 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8592 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8593 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8594 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8595 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8596 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8597 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8599 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8600 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8601 (struct allocno_color_data): New.
8602 (allocno_color_data_t): New typedef.
8603 (allocno_color_data): New definition.
8604 (ALLOCNO_COLOR_DATA): New macro.
8605 (struct object_color_data): New.
8606 (object_color_data_t): New typedef.
8607 (object_color_data): New definition.
8608 (OBJECT_COLOR_DATA): New macro.
8609 (update_copy_costs, calculate_allocno_spill_cost): Call
8610 ira_init_register_move_cost_if_necessary. Use
8611 ira_register_move_cost instead of ira_get_register_move_cost.
8612 (move_spill_restore, update_curr_costs): Ditto.
8613 (allocno_spill_priority): Make it inline.
8614 (color_pass): Allocate and free allocno_color_dat and object_color_data.
8615 (struct coalesce_data, coalesce_data_t): New.
8616 (allocno_coalesce_data): New definition.
8617 (ALLOCNO_COALESCE_DATA): New macro.
8618 (merge_allocnos, coalesced_allocno_conflict_p): Use
8619 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8620 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8621 (coalesce_allocnos): Ditto.
8622 (setup_coalesced_allocno_costs_and_nums): Ditto.
8623 (collect_spilled_coalesced_allocnos): Ditto.
8624 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8625 (setup_slot_coalesced_allocno_live_ranges): Ditto.
8626 (coalesce_spill_slots): Ditto.
8627 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
8628 free allocno_coalesce_data.
8630 * ira-conflicts.c: Fix formatting.
8631 (process_regs_for_copy): Call
8632 ira_init_register_move_cost_if_necessary. Use
8633 ira_register_move_cost instead of ira_get_register_move_cost.
8634 (build_object_conflicts): Optimize.
8636 * ira-costs.c (record_reg_classes): Optimize. Call
8637 ira_init_register_move_cost_if_necessary. Use
8638 ira_register_move_cost, ira_may_move_in_cost, and
8639 ira_may_move_out_cost instead of ira_get_register_move_cost and
8640 ira_get_may_move_cost.
8641 (record_address_regs): Ditto.
8642 (scan_one_insn): Optimize.
8643 (find_costs_and_classes): Optimize.
8644 (process_bb_node_for_hard_reg_moves): Call
8645 ira_init_register_move_cost_if_necessary. Use
8646 ira_register_move_cost instead of ira_get_register_move_cost.
8648 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8649 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8650 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8651 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8653 (ira_initiate_emit_data, ira_finish_emit_data)
8654 (create_new_allocno): New functions.
8655 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8656 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8657 Use ira_register_move_cost instead of ira_get_register_move_cost.
8659 * ira-int.h: Fix some comments.
8660 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8661 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8662 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8663 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
8665 (struct ira_allocno): Make mode and aclass a bitfield. Move other
8666 bitfield after mode. Make hard_regno a short int. Make
8667 hard_regno short. Remove first_coalesced_allocno and
8668 next_coalesced_allocno. Move mem_optimized_dest_p,
8669 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8670 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
8671 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8672 temp, colorable_p. Add new member add_data.
8673 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8674 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8675 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8676 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8677 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8678 (ALLOCNO_ADD_DATA): New macro.
8679 (ira_emit_data_t): New typedef.
8680 (struct ira_emit_data): New. Move mem_optimized_dest_p,
8681 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8682 from struct ira_allocno.
8683 (ALLOCNO_EMIT_DATA): New macro.
8684 (ira_allocno_emit_data, allocno_emit_reg): New.
8685 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8686 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8687 (OBJECT_ADD_DATA): New macro.
8688 (ira_reallocate): Remove.
8689 (ira_initiate_emit_data, ira_finish_emit_data): New.
8690 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8691 (ira_init_register_move_cost_if_necessary): New.
8692 (ira_object_conflict_iter_next): Merge into
8693 ira_object_conflict_iter_cond.
8694 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8696 * ira-live.c (process_single_reg_class_operands): Call
8697 ira_init_register_move_cost_if_necessary. Use
8698 ira_register_move_cost instead of ira_get_register_move_cost.
8700 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8702 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8704 * ira-costs.c: Fix formatting.
8705 (cost_classes, cost_classes_num): Remove.
8706 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8707 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8708 (cost_classes_del, cost_classes_htab): New.
8709 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8710 (initiate_regno_cost_classes, setup_cost_classes): New.
8711 (setup_regno_cost_classes_by_aclass): New.
8712 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8713 (record_reg_classes): Use regno_cost_classes instead of
8714 cost_classes. Move checking opposite operand up.
8715 (record_address_regs): Use regno_cost_classes
8716 instead of cost_classes.
8717 (scan_one_insn): Ditto. Use always general register.
8718 (print_allocno_costs): Use regno_cost_classes instead of
8720 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
8721 (find_costs_and_classes): Set up cost classes for each registers.
8722 Use also their mode for this. Use regno_cost_classes instead of
8724 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8726 (free_ira_costs, ira_init_costs): Don't use cost_classes.
8727 (ira_costs, ira_set_pseudo_classes): Call
8728 initiate_regno_cost_classes and finish_regno_cost_classes.
8730 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
8732 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8734 * target.def (ira_cover_classes): Remove.
8736 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8738 * doc/tm.texi.in: Ditto.
8740 * ira-conflicts.c: Remove mentioning cover classes from the file.
8741 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
8742 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
8744 * targhooks.c (default_ira_cover_classes): Remove.
8746 * targhooks.h (default_ira_cover_classes): Ditto.
8748 * haifa-sched.c: Remove mentioning cover classes from the file.
8749 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8750 ira_pressure_classes and ira_pressure_classes_num instead of
8751 ira_reg_class_cover_size and ira_reg_class_cover. Use
8752 sched_regno_pressure_class instead of sched_regno_cover_class.
8753 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8754 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8756 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
8757 classes from the file.
8758 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8759 (struct object_hard_regs, struct object_hard_regs_node): New.
8760 (struct ira_object): New members profitable_hard_regs,
8761 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8762 (struct ira_allocno): Rename cover_class to aclass. Rename
8763 cover_class_cost and updated_cover_class_cost to class_cost and
8764 updated_class_cost. Remove splay_removed_p and
8765 left_conflict_size. Add new members colorable_p.
8766 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8767 (ALLOCNO_COLORABLE_P): New macro.
8768 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8769 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8770 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8771 (OBJECT_...): Rename parameter C to O.
8772 (OBJECT_PROFITABLE_HARD_REGS): New macro.
8773 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8774 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8775 (struct target_ira_int): New members x_ira_max_memory_move_cost,
8776 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8777 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8778 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8779 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
8780 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
8781 x_ira_reg_class_subunion.
8782 (ira_max_memory_move_cost, ira_max_register_move_cost)
8783 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8784 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8785 (ira_important_class_nums, ira_reg_class_superunion): New macros.
8786 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
8787 (ira_reg_class_union): Rename to ira_reg_class_subunion.
8788 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8789 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8790 (ira_tune_allocno_costs_and_cover_classes): Rename to
8791 ira_tune_allocno_costs.
8792 (ira_debug_hard_regs_forest): New.
8793 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
8794 (ira_object_conflict_iter_next): Fix comments.
8795 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
8796 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
8797 cover_class to aclass.
8798 (ira_allocate_and_accumulate_costs): Ditto.
8799 (ira_allocate_and_set_or_copy_costs): Ditto.
8801 * opts.c (decode_options): Remove ira_cover_class check.
8803 * ira-color.c: Remove mentioning cover classes from the file. Use
8804 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
8805 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
8806 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8807 (splay-tree.h): Remove include.
8808 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8809 before copy_freq_compare_func.
8810 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8811 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8813 (hard_regs_roots, hard_regs_node_vec): Ditto.
8814 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8815 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8816 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8817 (create_new_object_hard_regs_node): Ditto.
8818 (add_new_object_hard_regs_node_to_forest): Ditto.
8819 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8820 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8822 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8823 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8824 (remove_unused_object_hard_regs_nodes): Ditto.
8825 (enumerate_object_hard_regs_nodes): Ditto.
8826 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8827 (object_hard_regs_subnode_t): Ditto.
8828 (struct object_hard_regs_subnode): Ditto.
8829 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8830 (setup_object_hard_regs_subnode_index): Ditto.
8831 (get_object_hard_regs_subnodes_num): Ditto.
8832 (form_object_hard_regs_nodes_forest): Ditto.
8833 (finish_object_hard_regs_nodes_tree): Ditto.
8834 (finish_object_hard_regs_nodes_forest): Ditto.
8835 (allocnos_have_intersected_live_ranges_p): Rename to
8836 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8837 (pseudos_have_intersected_live_ranges_p): Rename to
8838 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8839 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
8840 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
8841 (update_copy_costs): Remove assert. Skip cost update if the hard
8842 reg does not belong the class.
8843 (assign_hard_reg): Process only profitable hard regs.
8844 (uncolorable_allocnos_num): Make it scalar.
8845 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8846 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
8847 and ira_reg_class_max_nregs.
8848 (bucket_allocno_compare_func): Check frequency first.
8849 (sort_bucket): Add compare function as a parameter.
8850 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
8851 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
8852 (push_allocno_to_stack): Rewrite for checking new allocno
8854 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
8855 (push_only_colorable): Pass new parameter to sort_bucket.
8856 (push_allocno_to_spill): Remove.
8857 (allocno_spill_priority_compare): Make it inline and rewrite.
8858 (splay_tree_allocate, splay_tree_free): Remove.
8859 (allocno_spill_sort_compare): New function.
8860 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
8861 build and use splay tree. Choose first allocno in uncolorable
8862 allocno bucket to spill. Remove setting spill cost.
8863 (all_conflicting_hard_regs): Remove.
8864 (setup_allocno_available_regs_num): Check only profitable hard
8865 regs. Print info about hard regs nodes.
8866 (setup_allocno_left_conflicts_size): Remove.
8867 (put_allocno_into_bucket): Don't call
8868 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
8869 (improve_allocation): New.
8870 (color_allocnos): Call setup_profitable_hard_regs,
8871 form_object_hard_regs_nodes_forest, improve_allocation,
8872 finish_object_hard_regs_nodes_forest. Setup spill cost.
8873 (print_loop_title): Use pressure classes.
8874 (color_allocnso): Ditto.
8875 (do_coloring): Remove allocation and freeing splay_tree_node_pool
8876 and allocnos_for_spilling.
8877 (ira_sort_regnos_for_alter_reg): Don't setup members
8878 {first,next}_coalesced_allocno.
8879 (color): Remove allocating and freeing removed_splay_allocno_vec.
8880 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
8881 prohibited_class_mode_regs.
8883 * ira-lives.c: Remove mentioning cover classes from the file. Fix
8885 (update_allocno_pressure_excess_length): Use pressure classes.
8886 (inc_register_pressure, dec_register_pressure): Check for pressure
8888 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
8889 pressure class. Use ira_reg_class_nregs instead of
8890 ira_reg_class_max_nregs.
8891 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
8892 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
8893 (single_reg_class): Use ira_reg_class_nregs instead of
8894 ira_reg_class_max_nregs.
8895 (process_bb_node_lives): Use pressure classes.
8897 * ira-emit.c: Remove mentioning cover classes from the file. Use
8898 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
8899 (change_loop): Use pressure classes.
8900 (modify_move_list): Call ira_set_allocno_class instead of
8901 ira_set_allocno_cover_class.
8903 * ira-build.c: Remove mentioning cover classes from the file. Use
8904 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
8905 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
8906 ALLOCNO_UPDATED_CLASS_COST instead of
8907 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8908 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8909 (ira_create_allocno): Remove initialization of
8910 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
8911 ALLOCNO_COLORABLE_P.
8912 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8913 Update conflict regs for the objects.
8914 (create_cap_allocno): Remove assert. Don't propagate
8915 ALLOCNO_AVAILABLE_REGS_NUM.
8916 (ira_free_allocno_costs): New function.
8917 (finish_allocno): Change a part of code into call of
8918 ira_free_allocno_costs.
8919 (low_pressure_loop_node_p): Use pressure classes.
8920 (object_range_compare_func): Don't compare classes.
8921 (setup_min_max_conflict_allocno_ids): Ditto.
8923 * loop-invariant.c: Remove mentioning cover classes from the file.
8924 Use ira_pressure_classes and ira_pressure_classes_num instead of
8925 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
8926 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8927 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8928 Use reg_allocno_class instead of reg_cover_class.
8929 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8930 STACK_REG_COVER_CLASS.
8931 (get_regno_cover_class): Rename to get_regno_pressure_class.
8932 (move_loop_invariants): Initialize and finalize regstat.
8934 * ira.c: Remove mentioning cover classes from the file. Add
8935 comments about coloring without cover classes. Use ALLOCNO_CLASS
8936 instead of ALLOCNO_COVER_CLASS. Fix formatting.
8937 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8938 setup_class_subset_and_memory_move_costs.
8939 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8940 (setup_cover_and_important_classes): Rename to
8941 setup_allocno_and_important_classes.
8942 (setup_class_translate_array): New.
8943 (setup_class_translate): Call it for allocno and pressure classes.
8944 (cover_class_order): Rename to allocno_class_order.
8945 (comp_reg_classes_func): Use ira_allocno_class_translate instead
8946 of ira_class_translate.
8947 (reorder_important_classes): Set up ira_important_class_nums.
8948 (setup_reg_class_relations): Set up ira_reg_class_superunion.
8949 (print_class_cover): Rename to print_classes. Add parameter.
8950 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8951 Print pressure classes too.
8952 (find_reg_class_closure): Rename to find_reg_classes. Don't call
8953 setup_reg_subclasses.
8954 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8955 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8956 (setup_prohibited_class_mode_regs): Use
8957 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8958 (clarify_prohibited_class_mode_regs): New function.
8959 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8960 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8961 (ira_init_once): Initialize them.
8962 (free_register_move_costs): Process them.
8963 (ira_init): Move calls of find_reg_classes and
8964 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8965 Call clarify_prohibited_class_mode_regs.
8966 (ira_no_alloc_reg): Remove.
8967 (too_high_register_pressure_p): Use pressure classes.
8969 * sched-deps.c: Remove mentioning cover classes from the file.
8970 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8971 ira_pressure_classes and ira_pressure_classes_num instead of
8972 ira_reg_class_cover_size and ira_reg_class_cover.
8973 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8974 sched_regno_pressure_class instead of sched_regno_cover_class.
8975 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
8976 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8978 * ira.h: Add 2010 to Copyright.
8979 (ira_no_alloc_reg): Remove external.
8980 (struct target_ira): Rename x_ira_hard_regno_cover_class,
8981 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8982 x_ira_class_translate to x_ira_hard_regno_allocno_class,
8983 x_ira_allocno_classes_num, x_ira_allocno_classes, and
8984 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
8985 x_ira_pressure_classes, x_ira_pressure_class_translate, and
8986 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
8987 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
8988 x_ira_no_alloc_regs.
8989 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8990 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8991 ira_allocno_classes_num and ira_allocno_classes.
8992 (ira_class_translate): Rename to ira_allocno_class_translate.
8993 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8994 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8995 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8996 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8997 (ira_no_alloc_regs): New.
8999 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9000 classes from the file. Use ALLOCNO_CLASS instead of
9001 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9002 ALLOCNO_COVER_CLASS_COST.
9003 (regno_cover_class): Rename to regno_aclass.
9004 (record_reg_classes): Use ira_reg_class_subunion instead of
9005 ira_reg_class_union.
9006 (record_address_regs): Check overflow.
9007 (scan_one_insn): Ditto.
9008 (print_allocno_costs): Print total mem cost fore regional allocation.
9009 (print_pseudo_costs): Use REG_N_REFS.
9010 (find_costs_and_classes): Use classes intersected with them on the
9011 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9012 ira_reg_class_union. Use ira_allocno_class_translate and
9013 regno_aclass instead of ira_class_translate and regno_cover_class.
9014 Modify code for finding regno_aclass. Setup preferred classes for
9016 (setup_allocno_cover_class_and_costs): Rename to
9017 setup_allocno_class_and_costs. Use regno_aclass instead of
9018 regno_cover_class. Use ira_set_allocno_class instead of
9019 ira_set_allocno_cover_class.
9020 (init_costs, finish_costs): Use regno_aclass instead of
9022 (ira_costs): Use setup_allocno_class_and_costs instead of
9023 setup_allocno_cover_class_and_costs.
9024 (ira_tune_allocno_costs_and_cover_classes): Rename to
9025 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9026 by processing objects. Use ira_reg_class_max_nregs instead of
9027 ira_reg_class_nregs.
9029 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9031 * sched-int.h: Remove mentioning cover classes from the file.
9032 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9034 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9035 classes from the file.
9036 (struct reg_pref): Rename coverclass into allocnoclass.
9037 (reg_cover_class): Rename to reg_allocno_class.
9039 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9041 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9043 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9045 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9047 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9049 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9051 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9053 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9055 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9057 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9059 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9060 (i386_ira_cover_classes): Ditto.
9062 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9064 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9066 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9068 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9070 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9072 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9074 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9075 (mips_ira_cover_classes): Ditto.
9077 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9079 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9081 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9083 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9085 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9087 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9088 (IRA_COVER_CLASSES_VSX): Ditto.
9090 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9091 (rs6000_ira_cover_classes): Ditto.
9093 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9095 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9097 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9099 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9101 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9103 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9105 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9107 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9109 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9111 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9113 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9116 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9117 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9118 dw_fde_unlikely_section_end_label, cold_in_std_section,
9119 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9120 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9122 (output_fde): Use dw_fde_second_{begin,end} if second is
9123 true, otherwise dw_fde_{begin,end}.
9124 (output_call_frame_info): Test dw_fde_second_begin != NULL
9125 instead of dw_fde_switched_sections.
9126 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9127 fields, initialize new fields. Initialize in_std_section
9128 unconditionally from the first partition.
9129 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9130 dw_fde_second_begin is non-NULL.
9131 (dwarf2out_switch_text_section): Stop initializing removed
9132 dw_fde_struct fields, initialize new fields, initialize
9133 also dw_fde_end here. Set dw_fde_switch_cfi even when
9134 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
9135 (struct var_loc_list_def): Add last_before_switch field.
9136 (arange_table, arange_table_allocated, arange_table_in_use,
9137 ARANGE_TABLE_INCREMENT, add_arange): Removed.
9138 (size_of_aranges): Count !in_std_section and !second_in_std_section
9139 hunks in fdes, instead of looking at arange_table_in_use.
9140 (output_aranges): Add aranges_length argument, don't call
9141 size_of_aranges here. Instead of using aranges_table*
9142 emit ranges for fdes when !in_std_section resp.
9143 !second_in_std_section.
9144 (dw_loc_list): Break ranges crossing section switch.
9145 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9146 use dw_fde_second_end instead of dw_fde_end as end of last range.
9147 (gen_subprogram_die): Don't call add_arange. Use
9148 dw_fde_{begin,end} for first partition and if switched
9149 section dw_fde_second_{begin,end} for the second.
9150 (var_location_switch_text_section_1,
9151 var_location_switch_text_section): New functions.
9152 (dwarf2out_begin_function): Initialize cold_text_section even
9153 when function_section () isn't text_section.
9154 (prune_unused_types): Don't walk arange_table.
9155 (dwarf2out_finish): Don't needlessly test
9156 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9157 If info_section_emitted, call size_of_aranges and if it indicates
9158 non-empty .debug_aranges, call output_aranges with the computed
9159 size. Stop using removed dw_fde_struct fields, use
9160 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9164 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9165 create ENTRY_VALUE if incoming or address of incoming's MEM
9167 * dwarf2out.c (mem_loc_descriptor): Don't emit
9168 DW_OP_GNU_entry_value of DW_OP_fbreg.
9169 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9170 on ENTRY_VALUE is able to find the canonical parameter VALUE.
9171 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9172 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9174 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9175 is a REG_P or MEM_P with REG_P address, compute hash directly
9176 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9177 (preserve_only_constants): Don't clear VALUES forwaring
9178 ENTRY_VALUE to some other VALUE.
9180 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
9182 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9185 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9187 * cfgexpand.c (expand_gimple_cond): Always set the source location and
9188 block before expanding the statement.
9189 (expand_gimple_stmt_1): Likewise. Set them here...
9190 (expand_gimple_stmt): ...and not here. Tidy.
9191 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9194 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9196 * Makefile.in: New rule for cprop.o.
9197 * gcse.c: Move constant/copy propagation to cprop.c.
9198 (compute_local_properties): Only handle expression tables.
9199 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9200 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9201 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9202 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9203 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9204 compute_cprop_data, find_used_regs, try_replace_reg,
9205 find_avail_set, cprop_jump, constprop_register, cprop_insn,
9206 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9207 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9208 find_bypass_set, reg_killed_on_edge, bypass_block,
9209 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9210 execute_rtl_cprop, pass_rtl_cprop): Move to...
9211 * cprop.c: ...here. New file, constant/copy propagation for RTL
9212 moved from gcse.c to here with minor cleanups in duplicated code.
9214 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
9216 * config/i386/i386.c (flag_opts): Fix a typo in
9217 -mavx256-split-unaligned-store.
9219 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9221 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9222 LIBCALL_VALUE): Remove macros.
9223 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9224 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9225 (h8300_function_value, h8300_libcall_value,
9226 h8300_function_value_regno_p): New functions.
9228 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9230 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9232 2011-03-28 Jeff Law <law@redhat.com>
9234 * tree-ssa-threadupdate.c (redirect_edges): Call
9235 create_edge_and_update_destination_phis as needed.
9236 (create_edge_and_update_destination_phis): Accept new BB argument.
9237 All callers updated.
9238 (thread_block): Do not update the profile when threading around
9239 intermediate blocks.
9240 (thread_single_edge): Likewise.
9241 (determine_bb_domination_status): If BB is not a successor of the
9242 loop header, return NONDOMINATING.
9243 (register_jump_thread): Note when we register a jump thread around
9244 an intermediate block.
9245 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9246 (thread_across_edge): Use it.
9248 2011-03-28 Tristan Gingold <gingold@adacore.com>
9250 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9251 when for_return is 2.
9253 2011-03-28 Jeff Law <law@redhat.com>
9255 * var-tracking.c (canonicalize_values_mark): Delete unused
9257 (canonicalize_values_star, set_variable_part): Likewise.
9258 (clobber_variable_part, delete_variable_part): Likewise.
9260 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9262 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9264 2011-03-28 Martin Jambor <mjambor@suse.cz>
9266 * tree-inline.c (expand_call_inline): Do not check that destination
9268 (optimize_inline_calls): Assert that destination node is analyzed.
9269 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9270 not call tree_lowering_passes.
9271 * cgraph.h (cgraph_analyze_function): Declare.
9272 * cgraphunit.c (cgraph_analyze_function): Make public.
9274 2011-03-28 Joseph Myers <joseph@codesourcery.com>
9276 * config/sparc/sparc-opts.h: New.
9277 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9278 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9279 (sparc_option_override): Store processor_type enumeration rather
9280 than string in cpu_default. Remove name and enumeration from
9281 cpu_table. Directly default -mcpu then default -mtune from -mcpu
9282 without using sparc_select. Use target_flags_explicit instead of
9284 * config/sparc/sparc.h (enum processor_type): Move to
9286 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9287 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9288 HeaderInclude entry.
9289 (mcpu=, mtune=): Use Var and Enum.
9290 (sparc_processor_type): New Enum and EnumValue entries.
9292 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9293 Iain Sandoe <iains@gcc.gnu.org>
9296 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9298 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9300 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9301 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9302 Insert new statements at it in lieu of STMT.
9303 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9304 * tree-vect-stmts.c (vectorizable_store): Likewise.
9305 (vectorizable_load): Likewise.
9307 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
9309 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9314 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9316 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9317 unaligned 256bit load/store.
9318 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9319 (*avx_movdqu<avxmodesuffix>): Likewise.
9321 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9324 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9325 * config/pa/pa.md (iordi3): Use new predicate in expander.
9328 2011-03-27 Anatoly Sokolov <aesok@post.ru>
9330 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9331 FUNCTION_VALUE_REGNO_P): Remove macros.
9332 * config/mips/mips-protos.h (mips_function_value): Remove.
9333 * config/mips/mips.c (mips_function_value): Rename to...
9334 (mips_function_value_1): ... this. Make static. Handle receiving
9335 the function type in 'fn_decl_or_type' argument.
9336 (mips_function_value, mips_libcall_value,
9337 mips_function_value_regno_p): New function.
9338 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9339 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9341 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9343 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9344 and -mavx256-split-unaligned-store.
9345 (ix86_option_override_internal): Split 32-byte AVX unaligned
9346 load/store by default.
9347 (ix86_avx256_split_vector_move_misalign): New.
9348 (ix86_expand_vector_move_misalign): Use it.
9350 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9351 -mavx256-split-unaligned-store.
9353 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9354 256bit load/store. Generate unaligned store on misaligned memory
9356 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9358 (*avx_movdqu<avxmodesuffix>): Likewise.
9360 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9361 -mavx256-split-unaligned-store.
9363 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9366 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9369 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9371 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9372 opno arguments with an expand_operand. Use create_input_operand.
9373 (mips_prepare_builtin_target): Delete.
9374 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9376 (mips_expand_builtin_direct): Use create_output_operand and
9377 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
9378 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
9379 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9381 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
9383 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9385 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9387 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
9389 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9390 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
9391 basic blocks and call commit_edge_insertions directly.
9392 (fixup_abnormal_edges): Move from here to...
9393 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
9394 on the edges and return whether some have actually been inserted.
9395 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9398 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
9400 PR rtl-optimization/48144
9401 * sel-sched-ir.c (merge_history_vect): Factor out from ...
9402 (merge_expr_data): ... here.
9403 (av_set_intersect): Rename to av_set_code_motion_filter.
9404 Update all callers. Call merge_history_vect when an expression
9405 is found in both sets.
9406 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9408 2011-03-26 Alan Modra <amodra@gmail.com>
9410 * config/rs6000/predicates.md (word_offset_memref_op): Handle
9411 cmodel medium addresses.
9412 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9413 64-bit gpr loads and stores.
9414 (rs6000_secondary_reload_ppc64): New function.
9415 * config/rs6000/rs6000-protos.h: Declare it.
9416 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9418 2011-03-26 Alan Modra <amodra@gmail.com>
9421 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9422 GNU Go in traceback table.
9424 2011-03-25 Richard Henderson <rth@redhat.com>
9426 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9427 if there are exactly 6 operands.
9428 (set_storage_via_setmem): Similarly.
9430 2011-03-25 Kai Tietz <ktietz@redhat.com>
9432 * collect2.c (write_c_file_stat): Handle backslash
9433 as right-hand directory separator.
9434 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9435 checking just for slash.
9436 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9437 instead of checking for trailing slash.
9438 * gcc.c (record_temp_file): Use filename_cmp instead
9440 (do_spec_1): Likewise.
9441 (replace_outfile_spec_function): Likewise.
9442 (is_directory): Use filename_ncmp instead of strncmp.
9443 (print_multilib_info): Likewise.
9444 * gcov.c (find_source): Use filename_cmp instead
9446 (make_gcov_file_name): Fix order of slash/backslash
9448 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9449 (add_standard_paths): Likewise.
9450 * mips-tfile.c (saber_stop): Handle backslash.
9451 * prefix.c (update_path): Use filename_ncmp instead of
9453 * profile.c (output_location): Use filename_cmp instead
9455 * read-md.c (handle_toplevel_file): Handle backslash.
9456 * tlink.c (frob_extension): Likewise.
9457 * tree-cfg.c (same_line_p): Use filename_cmp instead of
9459 * tree-dump.c (dequeue_and_dump): Handle backslash.
9460 * tree.c (get_file_function_name): Likewise.
9461 * gengtype.c (read_input_list): Likewise.
9462 (get_file_realbasename): Likewise.
9463 (get_output_file_with_visibility): Use filename_cmp
9466 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
9468 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9471 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9473 * fold-const.c (expr_location_or): New function.
9474 (fold_truth_not_expr): Call it.
9476 2011-03-25 Jeff Law <law@redhat.com>
9478 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9480 * c-family/c-common.c (def_fn_type): Likewise.
9481 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9482 * emit-rtl.c (gen_rtvec): Likewise.
9483 * lto/lto-lang.c (def_fn_type): Likewise.
9485 2011-03-25 Richard Guenther <rguenther@suse.de>
9487 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9488 also generate copies.
9489 (fini_copy_prop): Handle constant values properly.
9491 2011-03-25 Jakub Jelinek <jakub@redhat.com>
9493 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9494 mode size instead of bitsize with DWARF2_ADDR_SIZE.
9495 (hash_loc_operands, compare_loc_operands): Handle
9496 DW_OP_GNU_entry_value.
9498 2011-03-25 Kai Tietz <ktietz@redhat.com>
9500 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9501 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9502 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9503 comment and use macro TARGET_64BIT_MS_ABI instead.
9504 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9505 and change default behavior for 32-bit MS_ABI.
9506 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9507 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9509 (ix86_cfun_abi): Likewise.
9510 (ix86_maybe_switch_abi): Adjust comment.
9511 (init_cumulative_args): Check for bit-ness in MS_ABI case.
9512 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9513 instead of checking for SYSV_ABI.
9514 (ix86_nsaved_sseregs): Likewise.
9515 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9517 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9518 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9519 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9520 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
9521 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
9523 2011-03-25 Richard Guenther <rguenther@suse.de>
9525 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
9526 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9527 (verify_gimple): Remove.
9528 * tree-cfg.c (verify_gimple_call): Merge verification
9530 (verify_gimple_phi): Merge verification from verify_stmts.
9531 (verify_gimple_label): New function.
9532 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9533 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9534 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9535 (verify_stmts): Rename to verify_gimple_in_cfg.
9536 (verify_gimple_in_cfg): New function.
9537 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
9538 * tree-ssa.c (verify_ssa): Likewise.
9539 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
9541 2011-03-25 Richard Guenther <rguenther@suse.de>
9543 * passes.c (init_optimization_passes): Add FRE pass after
9546 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
9547 Andrew Stubbs <ams@codesourcery.com>
9549 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
9551 (arm_movdi_vfp_cortexa8): New pattern.
9552 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
9553 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
9554 instructions when tuning for Cortex-A8. Set attribute "arch".
9555 * config/arm/arm.md: Move include arm-tune.md up a bit.
9556 (define_attr "arch"): Add "onlya8" and "nota8" values.
9557 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
9559 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9563 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9565 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9566 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9567 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9568 * passes.c (init_optimization_passes): Move
9569 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9571 2011-03-25 Kai Tietz <ktietz@redhat.com>
9573 * c-typeck.c (comptypes_internal): Replace target
9574 hook call of comp_type_attributes by version in tree.c file.
9575 * gimple.c (gimple_types_compatible_p_1): Likewise.
9576 * tree-ssa.c (useless_type_conversion_p): Likewise.
9577 * tree.c (build_type_attribute_qual_variant): Likewise.
9578 (attribute_value_equal): New static helper function.
9579 (comp_type_attributes): New function.
9580 (merge_attributes): Use attribute_value_equal for comparison.
9581 (attribute_list_contained): Likewise.
9582 * tree.h (comp_type_attributes): New prototype.
9584 2011-03-25 Richard Guenther <rguenther@suse.de>
9586 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
9587 of complex types at -O0.
9588 (verify_gimple_assign_binary): Likewise.
9589 (verify_gimple_assign_ternary): Likewise.
9591 2011-03-24 Mark Wielaard <mjw@redhat.com>
9593 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9594 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9596 2011-03-24 Mark Wielaard <mjw@redhat.com>
9599 * dwarf2out.c (output_abbrev_section): Only write table when
9600 abbrev_die_table_in_use > 1.
9602 2011-02-24 Richard Henderson <rth@redhat.com>
9604 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9605 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9606 (alpha_expand_unaligned_load_words): Use extql.
9607 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9608 (emit_insxl): Handle all modes for consistency.
9610 2011-02-24 Richard Henderson <rth@redhat.com>
9612 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9613 (alpha_expand_unaligned_load): Likewise.
9614 (alpha_expand_unaligned_store): Likewise.
9615 (alpha_expand_unaligned_load_words): Likewise.
9616 (alpha_expand_unaligned_store_words): Likewise.
9617 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9618 (alpha_split_lock_test_and_set_12): Likewise.
9619 (print_operand, alpha_fold_builtin_extxx): Likewise.
9620 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9621 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9622 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9623 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9624 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9625 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9626 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9627 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9628 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9629 (extwl, extll, extql): Similarly.
9630 (inswh, inslh, insqh): Similarly.
9631 (mskbl, mskwl, mskll, mskql): Similarly.
9632 (mskwh, msklh, mskqh): Similarly.
9634 2011-02-24 Richard Henderson <rth@redhat.com>
9636 * config/alpha/alpha.md (attribute isa): Add er, ner.
9637 (attribute enabled): Handle them.
9638 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9640 2011-02-24 Richard Henderson <rth@redhat.com>
9642 * config/alpha/alpha.md (attribute isa): Add vms.
9643 (attribute enabled): Handle it.
9644 (*movsf): Merge *movsf_{nofix,fix,nofp}.
9645 (*movdf): Merge *movdf_{nofix,fix,nofp}.
9646 (*movtf): Rename from *movtf_internal for consistency.
9647 (*movsi): Merge with *movsi_nt_vms.
9648 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9649 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9650 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9651 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9653 2011-02-24 Richard Henderson <rth@redhat.com>
9655 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9656 (extendqisi2, extendhisi2): Likewise.
9657 (extendqidi2): Simplify BWX/non-BWX expansions.
9658 (extendhidi2): Similarly.
9660 2011-02-24 Richard Henderson <rth@redhat.com>
9662 * config/alpha/alpha.md (attribute isa): New.
9663 (attribute enabled): New.
9664 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9665 (zero_extendqisi2, zero_extendqidi2): Similarly.
9666 (zero_extendhisi2, zero_extendhidi2): Similarly.
9667 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9669 2011-02-24 Richard Henderson <rth@redhat.com>
9671 * config/alpha/predicates.md (input_operand): Revert last change;
9672 update comment to mention 32-bit VMS rather than Windows.
9674 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9676 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9677 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9678 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9679 * passes.c (init_optimization_passes): Move
9680 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9682 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9684 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9686 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9688 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9691 2011-03-24 Jakub Jelinek <jakub@redhat.com>
9694 * simplify-rtx.c (simplify_const_unary_operation): Call
9695 real_convert when changing mode class with FLOAT_EXTEND.
9697 2011-03-24 Nick Clifton <nickc@redhat.com>
9699 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9700 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9701 * config/rx/rx.c (rx_option_override): Set align_jumps,
9702 align_loops and align_labels if not set by the user.
9703 (rx_align_for_label): New function.
9704 (rx_max_skip_for_label): New function.
9705 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9706 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9707 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9708 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9709 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9711 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9713 PR rtl-optimization/48263
9714 * optabs.c (expand_binop_directly): Reinstate convert_modes code
9715 and original commutative_p handling. Use maybe_gen_insn.
9717 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9719 * reload.c (find_reloads_subreg_address): Add address_reloaded
9720 parameter and return true there if the full address has been
9722 (find_reloads_toplev): Pass address_reloaded flag.
9723 (find_reloads_address_1): Don't use address_reloaded parameter.
9725 2011-03-24 Jeff Law <law@redhat.com>
9727 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9728 unused variable "ann".
9729 (remove_unused_locals): Likewise.
9731 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9734 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9737 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9739 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9740 for invalid symbolic addresses.
9741 (s390_secondary_reload): Don't use s390_check_symref_alignment for
9744 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9746 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9747 the argument in calls to fold_truth_not_expr.
9749 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9751 * tree.c (record_node_allocation_statistics): New function.
9752 (make_node_stat, copy_node_stat, build_string): Call it.
9753 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9754 (build1_stat, build_omp_clause): Likewise.
9756 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9758 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9761 2011-03-24 Richard Guenther <rguenther@suse.de>
9763 PR tree-optimization/48271
9764 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9765 blocks that still exist.
9767 2011-03-24 Richard Guenther <rguenther@suse.de>
9769 PR tree-optimization/48270
9770 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9771 not free datarefs before ddrs.
9773 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9775 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9776 from the address built for a reference with variable offset.
9778 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9781 * config/i386/i386.md (*movdf_internal_rex64): Do not split
9782 alternatives that can be handled with movq or movabsq insn.
9783 (*movdf_internal): Disable for !TARGET_64BIT.
9784 (*movdf_internal_nointeger): Ditto.
9785 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
9787 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9789 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9790 (FUNCTION_ARG_ADVANCE): Likewise.
9791 * tm.texi.in: Change references to them to hook references.
9792 * tm.texi: Regenerate.
9793 * targhooks.c (default_function_arg): Eliminate check for target macro.
9794 (default_function_incoming_arg): Likewise.
9795 (default_function_arg_advance): Likewise.
9796 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9797 (function_arg_advance): Likewise.
9798 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9800 2011-03-24 Richard Guenther <rguenther@suse.de>
9803 * tree-object-size.c (addr_object_size): Do not double-account
9804 for MEM_REF offsets.
9806 2011-03-24 Diego Novillo <dnovillo@google.com>
9808 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9809 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9810 (lto_input_data_block): Move from lto-opts.c. Make extern.
9812 (lto_input_string): Rename from input_string. Make extern.
9814 * lto-streamer-out.c (lto_output_string_with_length): Rename from
9815 output_string_with_length.
9816 Output 0 to indicate a non-NULL string. Update all callers to
9818 (lto_output_string): Rename from output_string. Make extern.
9820 (lto_output_decl_state_streams): Make extern.
9821 (lto_output_decl_state_refs): Make extern.
9822 * lto-streamer.h (lto_input_string): Declare.
9823 (lto_input_data_block): Declare.
9824 (lto_output_string): Declare.
9825 (lto_output_string_with_length): Declare.
9826 (lto_output_decl_state_streams): Declare.
9827 (lto_output_decl_state_refs): Declare.
9829 2011-03-24 Richard Guenther <rguenther@suse.de>
9831 PR tree-optimization/46562
9832 * tree.c (build_invariant_address): New function.
9833 * tree.h (build_invariant_address): Declare.
9834 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
9835 a renamed function moved ...
9836 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
9837 Take valueization callback parameter.
9838 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
9839 * gimple-fold.h: New file.
9840 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
9841 (ccp_fold, fold_const_aggregate_ref,
9842 fold_ctor_reference, fold_nonarray_ctor_reference,
9843 fold_array_ctor_reference, fold_string_cst_ctor_reference,
9844 get_base_constructor): Move ...
9845 * gimple-fold.c: ... here.
9846 (gimple_fold_stmt_to_constant_1): New function
9847 split out from ccp_fold. Take a valueization callback parameter.
9848 Valueize all operands.
9849 (gimple_fold_stmt_to_constant): New wrapper function.
9850 (fold_const_aggregate_ref_1): New function split out from
9851 fold_const_aggregate_ref. Take a valueization callback parameter.
9852 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
9853 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
9854 invariant POINTER_PLUS_EXPRs to invariant form.
9855 (vn_valueize): New function.
9856 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
9857 * tree-vrp.c (vrp_valueize): New function.
9858 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
9859 to fold statements to constants.
9860 * tree-ssa-pre.c (eliminate): Properly guard propagation of
9861 function declarations.
9862 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
9863 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
9865 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9867 * config/h8300/predicates.md (jump_address_operand): Fix register
9870 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
9872 * doc/invoke.texi (max-stores-to-sink): Document.
9873 * params.h (MAX_STORES_TO_SINK): Define.
9874 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
9875 if either vectorization or if-conversion is disabled.
9876 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
9877 tree-vect-data-refs.c vect_equal_offsets.
9878 (dr_equal_offsets_p): New function.
9879 (find_data_references_in_bb): Remove static.
9880 * tree-data-ref.h (find_data_references_in_bb): Declare.
9881 (dr_equal_offsets_p): Likewise.
9882 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
9883 (vect_drs_dependent_in_basic_block): Update calls to
9885 (vect_check_interleaving): Likewise.
9886 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
9887 (cond_if_else_store_replacement): Rename to...
9888 (cond_if_else_store_replacement_1): ... this. Change arguments and
9890 (cond_if_else_store_replacement): New function.
9891 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
9892 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
9894 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
9897 * config/arm/arm.md (casesi): Use the gen_int_mode() function
9898 to subtract lower bound instead of GEN_INT().
9900 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
9905 * doc/extend.texi (Alignment): Move section to match order in TOC.
9906 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9907 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9909 2011-03-23 Jeff Law <law@redhat.com>
9911 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9912 before removing the edge.
9914 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9915 it may have been freed by redirect_branch_edge or
9916 redirect_edge_succ_nodup.
9918 2011-03-23 Richard Guenther <rguenther@suse.de>
9920 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9921 (check_va_list_escapes): Likewise.
9922 (check_all_va_list_escapes): Likewise.
9924 2011-03-23 Richard Guenther <rguenther@suse.de>
9926 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9927 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9928 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9929 (alias.o): Likewise.
9930 (ipa-type-escape.o): Remove.
9931 (ipa-struct-reorg.o): Likewise.
9932 (GTFILES): Remove ipa-struct-reorg.c.
9933 * alias.c: Do not include ipa-type-escape.h.
9934 * tree-ssa-alias.c: Likewise.
9935 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9936 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9937 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9938 and ipa-type-escape passes.
9939 * tree-pass.h (pass_ipa_type_escape): Remove.
9940 (pass_ipa_struct_reorg): Likewise.
9941 * ipa-struct-reorg.h: Remove.
9942 * ipa-struct-reorg.c: Likewise.
9943 * ipa-type-escape.h: Likewise.
9944 * ipa-type-escape.c: Likewise.
9945 * doc/invoke.texi (-fipa-struct-reorg): Remove.
9946 (--param struct-reorg-cold-struct-ratio): Likewise.
9947 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9948 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9949 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9951 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9953 * config/s390/2084.md: Enable all insn reservations also for z9_ec
9954 cpu attribute value.
9955 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9956 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9957 * config/s390/s390.c (processor_flags_table): New constant array.
9958 (s390_handle_arch_option): Remove.
9959 (s390_handle_option): Remove s390_handle_arch_option invocations
9960 and OPT_mwarn_framesize_ handling.
9961 (s390_option_override): Remove s390_handle_arch_option invocation.
9962 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9964 * config/s390/s390.md (cpu attribute): Add z9_ec value.
9965 * config/s390/s390.opt (s390_tune, s390_arch)
9966 (march=): Replace s390_arch_option enum and values with
9967 processor_type. Set variable name to s390_arch. Set
9968 initialization value.
9969 (mtune=): Replace s390_arch_option with processor_type. Set
9970 variable name to s390_tune. Set initialization value.
9972 2011-03-23 Julian Brown <julian@codesourcery.com>
9974 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9975 accesses which are not naturally aligned.
9977 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9980 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9982 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9984 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9985 parameter from "int" to "enum insn_code".
9986 (expand_operand_type): New enum.
9987 (expand_operand): New structure.
9988 (create_expand_operand): New function.
9989 (create_fixed_operand, create_output_operand): Likewise
9990 (create_input_operand, create_convert_operand_to): Likewise.
9991 (create_convert_operand_from, create_address_operand): Likewise.
9992 (create_integer_operand): Likewise.
9993 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9994 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9995 (expand_insn, expand_jump_insn): Likewise.
9996 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9997 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9998 (expand_movstr, expand_builtin___clear_cache): Likewise.
9999 (expand_builtin_lock_release): Likewise.
10000 * explow.c (allocate_dynamic_stack_space): Likewise.
10001 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10002 and use the default handling in that case.
10003 * expmed.c (check_predicate_volatile_ok): Delete.
10004 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10005 (emit_cstore): Likewise.
10006 * expr.c (emit_block_move_via_movmem): Likewise.
10007 (set_storage_via_setmem, expand_assignment): Likewise.
10008 (emit_storent_insn, try_casesi): Likewise.
10009 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10010 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10011 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10012 (expand_twoval_unop, expand_twoval_binop): Likewise.
10013 (expand_unop_direct, emit_indirect_jump): Likewise.
10014 (emit_conditional_move, vector_compare_rtx): Likewise.
10015 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10016 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10017 (expand_sync_lock_test_and_set): Likewise.
10018 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10019 (emit_unop_insn): Likewise.
10020 (expand_copysign_absneg): Change icode to an insn_code.
10021 (create_convert_operand_from_type): New function.
10022 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10023 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10024 (expand_insn, expand_jump_insn): Likewise.
10025 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10026 than const_int_operand for operand 2.
10028 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10030 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10033 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10035 * emit-rtl.c (emit_pattern_before_noloc): New function.
10036 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10037 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10038 (emit_pattern_after_noloc): New function.
10039 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10040 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10042 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10044 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10045 (__ffsDI2): Likewise.
10047 2011-03-22 Richard Henderson <rth@redhat.com>
10049 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10050 of !TARGET_ABI_OPEN_VMS.
10051 (alpha_trampoline_init, alpha_start_function): Likewise.
10052 (alpha_expand_epilogue, alpha_file_start): Likewise.
10053 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10054 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10055 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10056 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10057 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10059 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10061 * config/s390/s390-opts.h: New.
10062 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10063 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10064 s390_stack_guard): Remove.
10065 (s390_handle_arch_option): Return void. Take enum
10066 s390_arch_option value instead of string and searching array.
10067 (s390_handle_option): Don't assert that global structures are in
10068 use. Access variables via opts pointer. Use error_at. Don't use
10069 sscanf for -mstack-guard= or -mstack-size=. Update call to
10070 s390_handle_arch_option.
10071 (s390_option_override): Update call to s390_handle_arch_option.
10072 (s390_emit_prologue): Use %d format for s390_stack_size in
10073 diagnostic. Use %wd for HOST_WIDE_INT.
10074 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10075 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10076 * config/s390/s390.opt (config/s390/s390-opts.h): New
10077 HeaderInclude entry.
10078 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10079 s390_arch_flags, s390_warn_framesize): New Variable entries.
10080 (s390_arch_option): New Enum and EnumValue entries.
10081 (march=): Use Enum instead of Var.
10082 (mstack-guard=, mstack-size=): Use UInteger and Var.
10083 (mtune=): Use Enum.
10085 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10087 * config/score/score.c (score_handle_option): Don't assert that
10088 global structures are in use. Access target_flags via opts
10089 pointer. Use value of -march= option to determine target_flags
10091 * config/score/score.opt (march=): Use Enum.
10092 (score_arch): New Enum and EnumValue entries.
10094 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10096 * config/mep/mep.c (option_mtiny_specified): Remove.
10097 (mep_option_override): Move register handling for -mivc2 from
10098 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10099 instead of option_mtiny_specified.
10100 (mep_handle_option): Access target_flags via opts pointer. Don't
10101 assert that global structures are in use. Defer part of -mivc2
10102 handling and move it to mep_option_override.
10103 * config/mep/mep.opt (IVC2): New Mask entry.
10104 (mivc2): Use Var and Defer instead of Mask.
10106 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10108 * config/v850/v850-opts.h: New.
10109 * config/v850/v850.c (small_memory): Replace with
10110 small_memory_physical_max array. Make that array static const.
10111 (v850_handle_memory_option): Take integer value of argument. Take
10112 gcc_options pointer, option text and location. Return void.
10113 Update for changes to small memory structures.
10114 (v850_handle_option): Access target_flags via opts pointer. Don't
10115 assert that global structures are in use. Update calls to
10116 v850_handle_memory_option.
10117 (v850_encode_data_area): Update references to small memory settings.
10118 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10119 (enum small_memory_type): Move to v850-opts.h.
10120 * config/v850/v850.opt (config/v850/v850-opts.h): New
10121 HeaderInclude entry.
10122 (small_memory_max): New Variable entry.
10123 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10124 (mtda, mzda): Likewise.
10126 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10128 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10129 pointer. Don't assert that global structures are in use.
10131 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10133 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10134 via opts pointer. Don't assert that global structures are in use.
10136 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10138 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10139 (munix=93): Use Var.
10140 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10141 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10142 * config/pa/pa-opts.h: New.
10143 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10144 (pa_handle_option): Don't assert that global structures are in
10145 use. Access target_flags via opts pointer. Don't handle
10146 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10148 (pa_option_override): Handle deferred OPT_mfixed_range_.
10150 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10152 * config/mn10300/mn10300-opts.h: New.
10153 * config/mn10300/mn10300.c (mn10300_processor,
10154 mn10300_tune_string): Remove.
10155 (mn10300_handle_option): Don't assert that global structures are
10156 in use. Access mn10300_processor via opts pointer. Don't handle
10158 * config/mn10300/mn10300.h (enum processor_type): Move to
10160 (mn10300_processor): Remove.
10161 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10162 HeaderInclude entry.
10163 (mn10300_processor): New Variable entry.
10166 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10168 * config/microblaze/microblaze.c: Don't include opts.h.
10169 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10170 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10171 (mno-clearbss): Use Var and Warn.
10173 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10175 * config/m32r/m32r-opts.h: New.
10176 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10177 (m32r_handle_option): Don't assert that global structures are in
10178 use. Access target_flags and m32r_cache_flush_func via opts
10179 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
10180 OPT_mno_flush_trap here.
10181 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10182 include of m32r-opts.h.
10183 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10184 HeaderInclude entry.
10185 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10186 (mmodel=): Use Enum and Var.
10187 (m32r_model): New Enum and EnumValue entries.
10188 (mno-flush-trap): Use Var.
10189 (msdata=): Use Enum and Var.
10190 (m32r_sdata): New Enum and EnumValue entries.
10192 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10194 * config/m32c/m32c.c: Don't include opts.h.
10195 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10196 m32c_handle_option): Remove.
10197 (m32c_option_override): Check global_options_set.x_target_memregs
10198 instead of target_memregs_set.
10199 * config/m32c/m32c.h (target_memregs): Remove.
10200 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10203 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10205 * config/iq2000/iq2000-opts.h: New.
10206 * config/iq2000/iq2000.c: Don't include opts.h.
10207 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10208 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10209 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10210 HeaderInclude entry.
10211 (iq2000_tune): New Variable entry.
10212 (march=): Add comment. Use Enum.
10213 (iq2000_arch): New Enum and EnumValue entries.
10214 (mcpu=): Use Enum and Var.
10215 (iq2000_tune): New Enum and EnumValue entries.
10217 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10219 * config/ia64/ia64-opts.h: New.
10220 * config/ia64/ia64.c (ia64_tune): Remove.
10221 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10222 here. Use error_at.
10223 (ia64_option_override): Handle deferred OPT_mfixed_range_.
10224 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10225 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10226 HeaderInclude entry.
10227 (ia64_tune): New Variable entry.
10228 (mfixed-range=): Use Defer and Var.
10229 (mtune=): Use Enum and Var.
10230 (ia64_tune): New Enum and EnumValue entries.
10232 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10234 * config/frv/frv-opts.h: New.
10235 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10237 (frv_cpu_type): Remove.
10238 * config/frv/frv.c: Don't include opts.h.
10239 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10240 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10241 (frv_cpu_type): New Variable entry.
10242 (frv_cpu): New Enum and EnumValue entries.
10244 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10246 * config/cris/cris.c (cris_handle_option): Access target_flags via
10247 opts pointer. Don't assert that global structures are in use.
10248 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10249 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10251 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10253 * config/bfin/bfin-opts.h: New.
10254 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10255 bfin_si_revision, bfin_workarounds): Remove.
10256 (bfin_cpus): Make static const.
10257 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10258 not bfin_lib_id_given.
10259 (bfin_handle_option): Don't set bfin_lib_id_given. Access
10260 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10261 pointer. Use error_at. Don't assert that global structures are in use.
10262 * config/bfin/bfin.h: Include bfin-opts.h.
10263 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10264 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10265 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10266 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10269 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10271 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10272 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10273 or -msoft-float here.
10274 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10275 -msoft-float and -mhard-float.
10276 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10277 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10279 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10281 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10282 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10284 (LIBGCC_SPEC): Don't handle -msoft-float.
10285 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10287 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10289 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10290 -mfloat-abi=*, not -msoft-float and -mhard-float.
10291 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10293 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10294 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10295 mhard-float and msoft-float.
10296 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10297 mfloat-abi=soft in comments, not mhard-float and msoft-float.
10298 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10299 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10301 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10302 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10304 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10306 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10309 2011-03-22 Richard Henderson <rth@redhat.com>
10311 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10312 TARGET_ABI_WINDOWS_NT.
10313 (alpha_output_function_end_prologue): Likewise.
10314 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10315 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10316 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10317 (trap, *movsi_nt_vms): Likewise.
10318 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10319 (*tablejump_osf_nt_internal): Remove.
10320 * config/alpha/predicates.md (input_operand): Only test Pmode.
10322 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10324 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10325 via opts pointer. Use error_at. Don't assert that global
10326 structures are in use.
10328 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10330 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10331 (ix86_handle_option): Access ix86_isa_flags and
10332 ix86_isa_flags_explicit via opts pointer. Don't assert that
10333 global structures are in use.
10334 (ix86_function_specific_save, ix86_function_specific_restore):
10335 Update ix86_isa_flags_explicit field name.
10336 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10337 (ix86_isa_flags_explicit): Rename TargetSave entry to
10338 x_ix86_isa_flags_explicit.
10340 2011-03-22 Richard Henderson <rth@redhat.com>
10342 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10343 (alpha_option_override, direct_return): Likewise.
10344 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10345 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10346 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10347 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10348 (alpha_expand_epilogue, alpha_end_function): Likewise.
10349 (alpha_init_libfuncs): Likewise.
10350 (struct machine_function): Remove unicosmk members.
10351 (print_operand) ['t']: Remove.
10352 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10353 unicosmk_output_module_name, unicosmk_output_common,
10354 current_section_align, unicosmk_output_text_section_asm_op,
10355 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10356 unicosmk_section_type_flags, unicosmk_unique_section,
10357 unicosmk_asm_named_section, unicosmk_insert_attributes,
10358 unicosmk_output_align, unicosmk_defer_case_vector,
10359 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10360 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10361 unicosmk_output_ssib, unicosmk_add_call_info_word,
10362 unicosmk_extern_head, unicosmk_output_default_externs,
10363 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10364 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10365 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10366 * config/alpha/alpha-protos.h: Update.
10367 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10368 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10369 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10370 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10371 (*mulsi_se, mulvsi3): Likewise.
10372 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10373 (*divmodsi_internal, call, call_value, realign): Likewise.
10374 (moddi3, umoddi3): Likewise; remove duplicate expander.
10375 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10376 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10377 (*movdi_nofix): Remove r/U alternative.
10378 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10379 * config/alpha/constraints.md ("U"): Remove.
10380 * config/alpha/predicates.md (call_operand"): Don't test
10381 TARGET_ABI_UNICOSMK.
10383 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10385 * target.def (handle_option): Take gcc_options and
10386 cl_decoded_option pointers and location_t.
10387 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10388 * doc/tm.texi: Regenerate.
10389 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10390 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10391 * lto-opts.c (lto_reissue_options): Generate option structure for
10392 targetm.handle_option call.
10393 * opts.c (target_handle_option): Update call to
10394 targetm.handle_option. Remove assertions about values now passed
10396 * targhooks.c (default_target_handle_option): New.
10397 * targhooks.h (default_target_handle_option): Declare.
10398 * config/alpha/alpha.c: Include opts.h.
10399 (alpha_handle_option): Update to new hook interface.
10400 * config/arm/arm.c: Include opts.h.
10401 (arm_handle_option): Update to new hook interface.
10402 * config/arm/t-arm (arm.o): Update dependencies.
10403 * config/bfin/bfin.c: Include opts.h.
10404 (bfin_handle_option): Update to new hook interface.
10405 * config/cris/cris.c: Include opts.h.
10406 (cris_handle_option): Update to new hook interface.
10407 * config/frv/frv.c: Include opts.h.
10408 (frv_handle_option): Update to new hook interface.
10409 * config/i386/i386.c: Include opts.h.
10410 (ix86_handle_option): Update to new hook interface.
10411 (ix86_valid_target_attribute_inner_p): Generate option structure
10412 for call to ix86_handle_option.
10413 * config/i386/t-i386 (i386.o): Update dependencies.
10414 * config/ia64/ia64.c: Include opts.h.
10415 (ia64_handle_option): Update to new hook interface.
10416 * config/ia64/t-ia64 (ia64.o): Update dependencies.
10417 * config/iq2000/iq2000.c: Include opts.h.
10418 (iq2000_handle_option): Update to new hook interface.
10419 * config/m32c/m32c.c: Include opts.h.
10420 (m32c_handle_option): Update to new hook interface.
10421 * config/m32r/m32r.c: Include opts.h.
10422 (m32r_handle_option): Update to new hook interface.
10423 * config/m68k/m68k.c: Include opts.h.
10424 (m68k_handle_option): Update to new hook interface.
10425 * config/mep/mep.c: Include opts.h.
10426 (mep_handle_option): Update to new hook interface.
10427 * config/microblaze/microblaze.c: Include opts.h.
10428 (microblaze_handle_option): Update to new hook interface.
10429 * config/mips/mips.c: Include opts.h.
10430 (mips_handle_option): Update to new hook interface.
10431 * config/mn10300/mn10300.c: Include opts.h.
10432 (mn10300_handle_option): Update to new hook interface.
10433 * config/pa/pa.c: Include opts.h.
10434 (pa_handle_option): Update to new hook interface.
10435 * config/pdp11/pdp11.c: Include opts.h.
10436 (pdp11_handle_option): Update to new hook interface.
10437 * config/rs6000/rs6000.c: Include opts.h.
10438 (rs6000_handle_option): Update to new hook interface.
10439 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10440 * config/rx/rx.c: Include opts.h.
10441 (rx_handle_option): Update to new hook interface.
10442 * config/s390/s390.c: Include opts.h.
10443 (s390_handle_option): Update to new hook interface.
10444 * config/score/score.c: Include opts.h.
10445 (score_handle_option): Update to new hook interface.
10446 * config/sh/sh.c: Include opts.h.
10447 (sh_handle_option): Update to new hook interface.
10448 * config/sparc/sparc.c: Include opts.h.
10449 (sparc_handle_option): Update to new hook interface.
10450 * config/v850/v850.c: Include opts.h.
10451 (v850_handle_option): Update to new hook interface.
10453 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10455 * gcc.c (driver_unknown_option_callback): Only permit and save
10456 unknown -Wno- options.
10457 (driver_wrong_lang_callback): Save options directly instead of via
10458 driver_unknown_option_callback.
10460 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10462 * combine.c (simplify_set): Try harder to find the best CC mode when
10463 simplifying a nested COMPARE on the RHS.
10465 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10467 * config/alpha/gnu.h: Remove.
10468 * config/arc: Remove directory.
10469 * config/arm/netbsd.h: Remove.
10470 * config/arm/t-pe: Remove.
10471 * config/crx: Remove directory.
10472 * config/i386/netbsd.h: Remove.
10473 * config/m68hc11: Remove directory.
10474 * config/m68k/uclinux-oldabi.h: Remove.
10475 * config/mcore/mcore-pe.h: Remove.
10476 * config/mcore/t-mcore-pe: Remove.
10477 * config/netbsd-aout.h: Remove.
10478 * config/rs6000/gnu.h: Remove.
10479 * config/sh/sh-symbian.h: Remove.
10480 * config/sh/symbian-base.c: Remove.
10481 * config/sh/symbian-c.c: Remove.
10482 * config/sh/symbian-cxx.c: Remove.
10483 * config/sh/symbian-post.h: Remove.
10484 * config/sh/symbian-pre.h: Remove.
10485 * config/sh/t-symbian: Remove.
10486 * config/svr3.h: Remove.
10487 * config/vax/netbsd.h: Remove.
10488 * config.build: Don't handle i[34567]86-*-pe.
10489 * config.gcc: Remove handling of deprecations for most deprecated
10491 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10492 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10493 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10494 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10495 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10496 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10498 * config.host: Don't handle i[34567]86-*-pe.
10499 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10500 (ASM_SPEC32): Don't handle -mcall-gnu.
10501 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10503 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10504 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10505 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10506 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10507 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10508 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10509 conditional on SYMBIAN.
10510 * configure.ac: Don't handle powerpc*-*-gnu*.
10511 * configure: Regenerate.
10512 * doc/extend.texi (interrupt attribute): Don't mention CRX.
10513 * doc/install-old.texi (m6811, m6812): Don't mention.
10514 * doc/install.texi (arc-*-elf*): Don't document multilib option.
10515 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10516 (m68k-uclinuxoldabi): Don't mention.
10517 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10519 (-mcall-gnu): Remove.
10520 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
10521 families): Remove constraint documentation.
10523 2011-03-22 Marius Strobl <marius@FreeBSD.org>
10525 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
10526 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
10527 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
10529 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10532 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10533 vector when peeking at the next token for vector, don't expand the
10536 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
10538 * config/avr/avr-protos.h (expand_epilogue): Change prototype
10539 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
10540 * config/avr/avr.c (init_cumulative_args)
10541 (avr_function_arg_advance): Use it.
10542 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
10544 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
10545 (avr_function_ok_for_sibcall): ...this new function.
10546 (avr_lookup_function_attribute1): New static Function.
10547 (avr_naked_function_p, interrupt_function_p)
10548 (signal_function_p, avr_OS_task_function_p)
10549 (avr_OS_main_function_p): Use it.
10550 * config/avr/avr.md ("sibcall", "sibcall_value")
10551 ("sibcall_epilogue"): New expander.
10552 ("*call_insn", "*call_value_insn"): New insn.
10553 ("call_insn", "call_value_insn"): Remove
10554 ("call", "call_value", "epilogue"): Change expander to handle
10557 2011-03-21 Nick Clifton <nickc@redhat.com>
10559 * doc/invoke.texi (Overall Options): Move closing brace to end of
10561 (Optimization Options): Add missing @gol.
10562 (Directory Options): Likewise.
10563 (i386 and x86-64 Options): Likewise.
10564 (RS6000 and PowerPC Options): Likewise.
10565 (i386 and x86-64 Windows Options): Likewise.
10566 (V850 Options): Add text missing from descriptions.
10568 2011-03-22 Richard Henderson <rth@redhat.com>
10570 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
10571 (avr_incoming_return_addr_rtx): New.
10572 (emit_push_byte): New.
10573 (expand_prologue): Use it. Remove incorrect dwarf annotation for
10574 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
10575 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
10576 (emit_pop_byte): New.
10577 (expand_epilogue): Use it. Pop frame pointer by bytes.
10578 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
10579 (INCOMING_RETURN_ADDR_RTX): New.
10580 (INCOMING_FRAME_SP_OFFSET): New.
10581 (ARG_POINTER_CFA_OFFSET): New.
10582 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
10583 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
10586 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
10588 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10590 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10591 (FUNCTION_ARG_ADVANCE): Likewise.
10592 * tm.texi.in: Change references to them to hook references.
10593 * tm.texi: Regenerate.
10594 * targhooks.c (default_function_arg): Eliminate check for target
10596 (default_function_incoming_arg): Likewise.
10597 (default_function_arg_advance): Likewise.
10598 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10599 (function_arg_advance): Likewise.
10600 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10602 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10604 * tree.c (build_call_1): New function.
10605 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10607 2011-03-22 Richard Guenther <rguenther@suse.de>
10609 PR tree-optimization/48228
10610 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10611 for single-arg PHIs.
10613 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
10615 PR rtl-optimization/48143
10616 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10617 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10618 sse2_cvtps2pd): Likewise.
10620 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10622 * recog.c (canonicalize_change_group): Use validate_unshare_change.
10624 2011-03-22 Richard Guenther <rguenther@suse.de>
10626 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10627 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10628 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10629 and REALIGN_LOAD_EXPR.
10630 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10631 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10632 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10633 DOT_PROD_EXPR case ...
10634 (expand_expr_real_2): ... here.
10635 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10636 and REALIGN_LOAD_EXPR.
10637 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10638 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10639 (vect_create_epilog_for_reduction): Likewise.
10640 (vectorizable_reduction): Likewise.
10641 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10642 * tree-vect-stmts.c (vectorizable_load): Likewise.
10644 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10646 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10648 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10650 * config/s390/s390.c (s390_delegitimize_address): Fix offset
10651 handling for PLTOFF/GOTOFF.
10653 2011-03-22 Nick Clifton <nickc@redhat.com>
10655 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10656 trailing backslash from the end of the macro definition.
10658 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10660 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10663 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
10665 * expr.h (prepare_operand): Move to...
10666 * optabs.h (prepare_operand): ...here and change the insn code
10667 parameter from "int" to "enum insn_code".
10668 (insn_operand_matches): Declare.
10669 * expr.c (init_expr_target): Use insn_operand_matches.
10670 (compress_float_constant): Likewise.
10671 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10672 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10673 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10674 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10676 (gen_cond_trap): Likewise.
10677 (prepare_operand): Likewise. Change icode to an insn_code.
10678 (insn_operand_matches): New function.
10679 * reload.c (find_reloads_address_1): Use insn_operand_matches.
10680 * reload1.c (gen_reload): Likewise.
10681 * targhooks.c (default_secondary_reload): Likewise.
10683 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10685 * config/alpha/alpha.md (unspec): New define_c_enum.
10688 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10691 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10692 between a call and its CALL_ARG_LOCATION note.
10694 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
10696 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10698 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10702 * c-common.c (shorten_compare): If primopN is first sign-extended
10703 to opN and then zero-extended to result type, set primopN to opN.
10705 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
10707 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10708 for barrier handlers.
10710 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10712 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10713 UNSPEC constants to be in the unspec enumeration, and redefine
10714 all UNSPECV constants to be in the unspecv enumeration, so that
10715 dumps print which unspec/unspec_volatile this is.
10716 * config/rs6000/vector.md (UNSPEC_*): Ditto.
10717 * config/rs6000/paired.md (UNSPEC_*): Ditto.
10718 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10719 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10720 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10722 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10723 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10724 UNSPECV_LWSYNC, since these are used as unspec_volatile.
10725 * config/rs6000/sync.md (isync, lwsync): Ditto.
10727 2011-03-21 Richard Guenther <rguenther@suse.de>
10729 * params.def (lto-min-partition): Fix typo.
10731 2011-03-21 Richard Guenther <rguenther@suse.de>
10734 * c-decl.c (grokdeclarator): Drop to the main variant only
10735 for array types. Drop flag_gen_aux_info check.
10737 2011-03-21 Richard Guenther <rguenther@suse.de>
10739 PR translation/47911
10740 * params.def (lto-partitions): Fix typo.
10741 (lto-min-partition): Fix wording.
10743 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
10745 * config/rs6000/t-freebsd: Remove duplication from file.
10747 2011-03-21 Richard Guenther <rguenther@suse.de>
10749 PR middle-end/47661
10750 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10752 2011-03-21 Richard Guenther <rguenther@suse.de>
10755 * params.def (lto-partitions): Require at least 1 partition.
10757 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10759 * gthr-solaris.h: Remove.
10760 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10761 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10762 (LIB_SPEC): Likewise.
10763 * config/sol2.opt (threads): Remove.
10764 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10765 (sparc*-*-solaris2*): Likewise.
10766 * configure.ac (enable_threads): Enable solaris support.
10767 * configure: Regenerate.
10768 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10769 * doc/install.texi (Configuration, --enable-threads=lib): Remove
10772 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10774 * config.gcc: Obsolete *-*-solaris2.8*.
10775 * doc/install.texi (Specific, *-*-solaris2*): Document it.
10777 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10780 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10781 reference. Solaris 8 perl works.
10783 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10786 * doc/install.texi (Prerequisites): Move jar etc. up.
10787 Explain support library version requirements.
10789 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10792 * doc/install.texi (Prerequisites): Move Perl to build
10793 requirements. Always necessary on Solaris 2 with Sun ld.
10795 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10797 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
10799 (Specific, i?86-*-solaris2.[89]): Likewise.
10800 (Specific, i?86-*-solaris2.10): Likewise.
10801 (Specific, mips-sgi-irix6): Likewise.
10802 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
10803 Update for binutils 2.21.
10805 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10807 * configure.ac (gcc_cv_lto_plugin): Fix typo.
10808 Allow -fuse-linker-plugin for non-default plugin linker.
10809 * configure: Regenerate.
10811 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
10814 * gengtype.c (files_rules): Added rule for cp/parser.h.
10816 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10819 * config/s390/s390.c (s390_delegitimize_address): Don't call
10820 lowpart_subreg if orig_x has BLKmode.
10822 2011-03-21 Kai Tietz <ktietz@redhat.com>
10825 * doc/plugins.texi: Adjust documentation for plugin register_callback.
10826 * tree.h (attribute_spec): Add new member affects_type_identity.
10827 * attribs.c (empty_attribute_table): Adjust attribute_spec
10829 * config/alpha/alpha.c: Likewise.
10830 * config/arc/arc.c: Likewise.
10831 * config/arm/arm.c: Likewise.
10832 * config/avr/avr.c: Likewise.
10833 * config/bfin/bfin.c: Likewise.
10834 * config/crx/crx.c: Likewise.
10835 * config/darwin.h: Likewise.
10836 * config/h8300/h8300.c: Likewise.
10837 * config/i386/cygming.h: Likewise.
10838 * config/i386/i386.c: Likewise.
10839 * config/ia64/ia64.c: Likewise.
10840 * config/m32c/m32c.c: Likewise.
10841 * config/m32r/m32r.c: Likewise.
10842 * config/m68hc11/m68hc11.c: Likewise.
10843 * config/m68k/m68k.c: Likewise.
10844 * config/mcore/mcore.c: Likewise.
10845 * config/mep/mep.c: Likewise.
10846 * config/microblaze/microblaze.c: Likewise.
10847 * config/mips/mips.c: Likewise.
10848 * config/rs6000/rs6000.c: Likewise.
10849 * config/rx/rx.c: Likewise.
10850 * config/sh/sh.c: Likewise.
10851 * config/sol2.h: Likewise.
10852 * config/sparc/sparc.c: Likewise.
10853 * config/spu/spu.c: Likewise.
10854 * config/stormy16/stormy16.c: Likewise.
10855 * config/v850/v850.c: Likewise.
10857 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
10859 * simplify-rtx.c (simplify_binary_operation_1): Handle
10860 (xor (and A B) C) case when B and C are both constants.
10862 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
10864 * tree-dfa.c (add_referenced_var): Fix typo in comment.
10866 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
10869 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
10871 2011-03-20 Jakub Jelinek <jakub@redhat.com>
10873 PR rtl-optimization/48156
10874 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
10875 assume df and df_lr are not NULL.
10877 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10880 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
10881 between a call and its CALL_ARG_LOCATION note.
10883 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
10886 * config/sh/sh.c (find_barrier): Don't emit a constant pool
10887 between a call and its corresponding CALL_ARG_LOCATION note.
10889 2011-03-19 Anatoly Sokolov <aesok@post.ru>
10891 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
10892 instead of loop. Use HARD_REGISTER_NUM_P predicate.
10893 * haifa-sched.c (setup_ref_regs): Ditto.
10894 * caller-save.c (add_used_regs_1): Ditto.
10895 * dse.c (look_for_hardregs): Ditto.
10896 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
10897 * sched-rgn.c (check_live_1): Ditto.
10899 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10901 * c-decl.c (diagnose_mismatched_decls): Give an error for
10902 redefining a typedef with variably modified type.
10904 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10906 * c-decl.c (grokfield): Don't allow typedefs for structures or
10907 unions with no tag by default.
10908 * doc/extend.texi (Unnamed Fields): Update.
10910 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
10912 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10913 Rewrite using indirect functions.
10914 (lwp_slwpcb): Ditto.
10915 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10916 (avx_vinsertf128<mode>): Ditto.
10918 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10920 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10923 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10925 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10926 splitting between a call and its corresponding CALL_ARG_LOCATION note.
10928 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
10930 PR rtl-optimization/48170
10931 * gcse.c (hoist_code): Remove bogus asserts.
10933 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
10935 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10936 computation for prologue/epilogue.
10938 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10940 * Makefile.in (check-consistency): Remove.
10942 2011-03-18 Jakub Jelinek <jakub@redhat.com>
10945 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10946 arange_table_in_use is 0, but either text_section_used or
10947 cold_text_section_used is true. Don't call it if
10948 !info_section_emitted.
10950 2011-03-18 Anatoly Sokolov <aesok@post.ru>
10952 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10953 FUNCTION_VALUE_REGNO_P): Remove.
10954 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10956 * config/avr/avr.c (avr_ret_register): Make static inline.
10957 (avr_function_value_regno_p): New function.
10958 (avr_libcall_value): Make static. Add 'func' argument.
10959 (avr_function_value): Make static. Rename 'func' argument to
10960 'fn_decl_or_type', forward it to avr_libcall_value. Call
10961 avr_ret_register function instead of RET_REGISTER macro.
10962 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10964 2011-03-18 Jason Merrill <jason@redhat.com>
10967 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10969 2011-03-18 Richard Guenther <rguenther@suse.de>
10971 * doc/install.texi (--enable-gold): Remove.
10972 (--with-plugin-ld): Document.
10973 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10975 2011-03-18 Andrew Pinski <pinskia@gmail.com>
10977 PR middle-end/47790
10978 * expr.c (optimize_bitfield_assignment_op): Revamp to work
10979 again after expansion changes.
10981 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
10983 * combine.c (try_combine): Do simplification only call of
10984 subst() on i2 even when i1 is present. Update comments.
10986 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
10988 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10989 and UNSPEC_PCREL_SYMOFF.
10991 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10993 * config/s390/s390.md: Use define_c_enum for the unspec constant
10996 2011-03-18 Richard Henderson <rth@redhat.com>
10997 Jakub Jelinek <jakub@redhat.com>
11000 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11001 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11003 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11005 PR middle-end/47725
11006 * combine.c (cant_combine_insn_p): Don't check zero/sign
11007 extended hard registers.
11009 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11011 PR middle-end/47725
11012 * combine.c (cant_combine_insn_p): Check zero/sign extended
11015 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11017 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11018 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11019 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11020 Change return type to bool.
11021 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11023 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11026 * var-tracking.c (prepare_call_arguments): If CALL target
11027 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11028 pc instead of looking it up using cselib_lookup and use
11029 Pmode for it if x has VOIDmode.
11030 * dwarf2out.c (gen_subprogram_die): If also both first and
11031 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11034 * function.c (assign_parms): For data.passed_pointer parms
11035 use MEM of data.entry_parm instead of data.entry_parm itself
11036 as DECL_INCOMING_RTL.
11037 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11038 also when passed and declared mode is the same, DECL_RTL
11039 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11042 2011-03-16 Jeff Law <law@redhat.com>
11044 PR rtl-optimization/37273
11045 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11046 handle them like argument loads from stack slots. Do not double
11047 count memory for memory constants and argument loads from stack slots.
11049 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11052 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11054 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11057 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11059 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11062 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11064 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11065 Clear call_arg_locations and call_arg_loc_last always.
11067 PR middle-end/48152
11068 * var-tracking.c (prepare_call_arguments): If argument needs to be
11069 passed by reference, adjust argtype and mode.
11071 2011-03-17 Richard Guenther <rguenther@suse.de>
11073 PR middle-end/48134
11074 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11075 a value make sure to fold the statement.
11077 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11080 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11081 return condition with !cfun->calls_alloca.
11083 2011-03-17 Richard Guenther <rguenther@suse.de>
11086 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11087 origin for decls in other ltrans units.
11088 (input_varpool_node): Likewise.
11090 2011-03-17 Richard Guenther <rguenther@suse.de>
11092 PR middle-end/48165
11093 * tree-object-size.c (compute_object_offset): Properly return
11094 the offset operand of MEM_REFs as sizetype.
11096 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11098 PR rtl-optimization/48141
11099 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11100 * dse.c: Include params.h.
11101 (active_local_stores_len): New variable.
11102 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11104 (record_store, check_mem_read_rtx): Decrease it when removing
11106 (scan_insn): Likewise. Increase it when adding to chain, if it
11107 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11108 set active_local_stores to NULL before the addition.
11109 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11111 PR rtl-optimization/48141
11112 * dse.c (record_store): If no positions are needed in an insn
11113 that cannot be deleted, at least unchain it from active_local_stores.
11115 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11118 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11119 (lookup_type_die_strip_naming_typedef): ... here.
11120 (get_context_die): Use it.
11121 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11122 the anonymous struct named by the naming typedef.
11124 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11127 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11128 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11130 2011-03-16 Jeff Law <law@redhat.com>
11132 * tree-vrp.c (identify_jump_threads): Slightly simplify type
11133 check for operands of conditional. Allow type to be a pointer.
11135 2011-03-16 Richard Guenther <rguenther@suse.de>
11137 PR tree-optimization/48149
11138 * fold-const.c (fold_binary_loc): Fold
11139 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11141 2011-03-16 Richard Guenther <rguenther@suse.de>
11143 PR tree-optimization/26134
11144 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11145 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11146 (non_rewritable_mem_ref_base): Handle complex type component
11147 accesses, constrain offsets for vector and complex extracts
11150 2011-03-16 Richard Guenther <rguenther@suse.de>
11152 PR tree-optimization/48146
11153 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11154 operands avoiding the need for renaming.
11156 2011-03-16 Richard Guenther <rguenther@suse.de>
11158 * gimple-fold.c (maybe_fold_reference): Open-code relevant
11159 constant folding. Move MEM_REF canonicalization first.
11160 Rely on fold_const_aggregate_ref for initializer folding.
11161 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11163 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11165 PR middle-end/48136
11166 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11167 arg0/arg1 or their arguments are always fold converted to matching
11170 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11173 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11176 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11177 Handle in-tree gold.
11178 (ld_vers): Extract binutils version for gold.
11179 (gcc_cv_ld_hidden): Handle gold here.
11180 (gcc_cv_lto_plugin): Determine level of linker plugin support.
11181 * configure: Regenerate.
11182 * config.in: Regenerate.
11183 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11184 -fuse-linker-plugin otherwise.
11185 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
11186 (LINK_COMMAND_SPEC): Use it.
11187 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11189 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11191 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11192 * calls.c: Remove debug.h include.
11193 (emit_call_1): Don't call virtual_call_token debug hook.
11194 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11195 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11196 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11197 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11198 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11199 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11200 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11201 dwarf2out_virtual_call): Remove.
11202 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11203 copy_call_info and virtual_call hooks.
11204 (dwarf2out_init): Don't initialize vcall_insn_table,
11205 debug_dcall_section and debug_vcall_section.
11206 (prune_unused_types): Don't mark nodes from dcall_table.
11207 (dwarf2out_finish): Don't output dcall or vcall tables.
11208 * final.c (final_scan_insn): Don't call direct_call or
11209 virtual_call debug hooks.
11210 * debug.h (struct gcc_debug_hooks): Remove direct_call,
11211 virtual_call_token, copy_call_info and virtual_call hooks.
11212 (debug_nothing_uid): Remove prototype.
11213 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11214 copy_call_info and virtual_call hooks.
11215 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11216 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11217 * debug.c (do_nothing_debug_hooks): Likewise.
11218 (debug_nothing_uid): Remove.
11219 * doc/invoke.texi (-fenable-icf-debug): Remove.
11220 * common.opt (-fenable-icf-debug): Likewise.
11222 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11223 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11224 call's MEM. Handle functions returning aggregate through a hidden
11225 first pointer. For virtual calls add clobbered pc to call arguments
11227 * dwarf2out.c (gen_subprogram_die): Emit
11228 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11232 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11233 * rtl.h (ENTRY_VALUE_EXP): Define.
11234 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11235 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11236 * print-rtl.c (print_rtx): Likewise.
11237 * gengtype.c (adjust_field_rtx_def): Likewise.
11238 * var-tracking.c (vt_add_function_parameter): Adjust
11239 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11240 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11241 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11242 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11243 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11245 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11246 Call var_location debug hook even on CALL_INSNs.
11247 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11248 * rtl.def (ENTRY_VALUE): New.
11249 * dwarf2out.c: Include cfglayout.h.
11250 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11251 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11252 (struct call_arg_loc_node): New type.
11253 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11254 tail_call_site_count): New variables.
11255 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11256 DW_TAG_GNU_call_site_parameter.
11257 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11258 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11259 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11260 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11261 and DW_AT_GNU_all_source_call_sites.
11262 (mem_loc_descriptor): Handle ENTRY_VALUE.
11263 (add_src_coords_attributes): Don't add enything if
11264 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11265 (dwarf2out_abstract_function): Save and clear call_arg_location,
11266 call_site_count and tail_call_site_count around dwarf2out_decl call.
11267 (gen_call_site_die): New function.
11268 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11269 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11270 (dwarf2out_function_decl): Clear call_arg_locations,
11271 call_arg_loc_last, set call_site_count and tail_call_site_count
11272 to -1 and free block_map.
11273 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11274 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
11275 followed by any real instructions.
11276 (dwarf2out_begin_function): Set call_site_count and
11277 tail_call_site_count to 0.
11278 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11279 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11280 attempt to force a DIE for it and worst case remove the attribute.
11281 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11282 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11284 * var-tracking.c: Include tm_p.h.
11285 (vt_stack_adjustments): For calls call note_register_arguments.
11286 (argument_reg_set): New variable.
11287 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11288 ensure the VALUE is resolved.
11289 (call_arguments): New variable.
11290 (prepare_call_arguments): New function.
11291 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11292 (struct expand_loc_callback_data): Add ignore_cur_loc field.
11293 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11294 always use the best expression.
11295 (vt_expand_loc): Add ignore_cur_loc argument.
11296 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11297 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11298 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11299 note for all calls.
11300 (vt_add_function_parameter): Use cselib_lookup_from_insn.
11301 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11302 argument. Don't call cselib_preserve_only_values and
11303 cselib_reset_table.
11304 (note_register_arguments): New function.
11305 (vt_initialize): Compute argument_reg_set. Call
11306 vt_add_function_parameters before processing basic blocks instead of
11307 afterwards. For calls call prepare_call_arguments before calling
11308 cselib_process_insn.
11309 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11310 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11311 (var-tracking.o): Depend on $(TM_P_H).
11312 * cfglayout.h (insn_scope): New prototype.
11313 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11314 * cfglayout.c (insn_scope): No longer static.
11315 * insn-notes.def (CALL_ARG_LOCATION): New.
11316 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11317 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11318 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11319 nothing for DECL_EXTERNAL BLOCK_VARS.
11321 2011-03-16 Alan Modra <amodra@gmail.com>
11324 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11325 create invalid offset address for vsx splat insn.
11326 * config/rs6000/predicates.md (splat_input_operand): New.
11327 * config/rs6000/vsx.md (vsx_splat_*): Use it.
11329 2011-03-15 Xinliang David Li <davidxl@google.com>
11332 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11333 (normalize_preds): New function.
11334 (is_use_properly_guarded): Normalize def predicates.
11336 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11339 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11340 in the output template.
11342 2011-03-15 Richard Guenther <rguenther@suse.de>
11344 PR middle-end/47650
11345 * tree-pretty-print.c (dump_function_declaration): Properly
11346 dump unprototyped and varargs function types.
11348 2011-03-15 Richard Guenther <rguenther@suse.de>
11350 PR tree-optimization/13954
11351 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11354 2011-03-15 Richard Guenther <rguenther@suse.de>
11356 PR tree-optimization/48037
11357 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11358 selects into BIT_FIELD_REFs.
11359 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11362 2011-03-15 Jakub Jelinek <jakub@redhat.com>
11364 PR tree-optimization/48129
11365 * builtins.c (fold_builtin_snprintf): Convert to type of
11366 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11367 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11369 2011-03-15 Richard Guenther <rguenther@suse.de>
11371 PR tree-optimization/41490
11372 * tree-ssa-dce.c (propagate_necessity): Handle returns without
11373 value but with VUSE.
11374 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11376 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11377 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11378 * tree-tailcall.c (find_tail_calls): Ignore returns.
11380 2011-03-15 Richard Guenther <rguenther@suse.de>
11382 PR middle-end/48031
11383 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11384 or variable-indexed array accesses when in gimple form.
11386 2011-03-15 Richard Guenther <rguenther@suse.de>
11388 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11390 2011-03-15 Alan Modra <amodra@gmail.com>
11393 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11394 presume symbol_refs without a symbol_ref_decl are suitably
11395 aligned, nor other trees we may see here. Handle anchor symbols.
11396 (legitimate_constant_pool_address_p): Comment. Add mode param.
11397 Check cmodel=medium addresses. Adjust all calls.
11398 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11399 creating cmodel=medium optimized access to locals.
11400 * config/rs6000/constraints.md (R): Pass QImode to
11401 legitimate_constant_pool_address_p.
11402 * config/rs6000/predicates.md (input_operand): Pass mode to
11403 legitimate_constant_pool_address_p.
11404 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11407 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11410 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11411 64-bit constants being loaded into registers other than GPRs such
11412 as loading 0 into a VSX register.
11414 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11416 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11418 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11420 PR middle-end/47917
11421 * builtins.c (fold_builtin_snprintf): New function.
11422 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11423 (fold_builtin_4): Likewise.
11425 PR middle-end/38878
11426 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11427 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
11428 and C - X == X also strip nops from +/-/p+ operand.
11429 When optimizing -X == C, fold C to arg0's type.
11432 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11433 emit it as add_AT_int instead of add_AT_unsigned.
11435 2011-03-14 Tom Tromey <tromey@redhat.com>
11437 * unwind-dw2.c: Include sys/sdt.h if it exists.
11438 (_Unwind_DebugHook): Use STAP_PROBE2.
11439 * config.in, configure: Rebuild.
11440 * configure.ac: Check for sys/sdt.h.
11442 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
11444 * config/i386/i386.md (ROUND_FLOOR): New constant.
11445 (ROUND_CEIL): Ditto.
11446 (ROUND_TRUNC): Ditto.
11447 (ROUND_MXCSR): Ditto.
11448 (ROUND_NO_EXC): Ditto.
11449 (rint<mode>2): Use new defines instead of numerical constants.
11450 (floor<mode>2): Ditto.
11451 (ceil<mode>2): Ditto.
11452 (btrunc<mode>2): Ditto.
11453 * config/i386/i386-builtin-types.def: Define ROUND function type
11455 * config/i386/i386.c (enum ix86_builtins): Add
11456 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11457 (struct builtin_description): Add
11458 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11459 (ix86_expand_sse_round): New static function.
11460 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11462 (ix86_builtin_vectorized_function): Handle
11463 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11465 2011-03-14 Tom Tromey <tromey@redhat.com>
11467 * c-parser.c (c_parser_asm_string_literal): Clear
11468 warn_overlength_strings.
11470 2011-03-14 Tom Tromey <tromey@redhat.com>
11472 * c-parser.c (disable_extension_diagnostics): Save
11473 warn_overlength_strings.
11474 (restore_extension_diagnostics): Restore warn_overlength_strings.
11476 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11478 * BASE-VER: Change to 4.7.0.
11480 2011-03-14 Richard Guenther <rguenther@suse.de>
11482 PR middle-end/48098
11483 * tree.c (build_vector_from_val): Adjust assert to requirements
11486 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11489 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11491 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
11493 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11494 terms of target_flags_explicit. Adjust copyright year.
11496 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11497 * config/rs6000/t-freebsd: New file. Add override for
11500 2011-03-13 Chris Demetriou <cgd@google.com>
11502 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11503 (-fno-diagnostics-show-option): this, to reflect current default.
11504 (-Werror=): Update text about -fno-diagnostics-show-option.
11506 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
11509 * config/rs6000/predicates.md (easy_vector_constant_add_self,
11510 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11511 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11512 mode is not V2DImode or V2DFmode.
11513 (vspltis_constant): Do not handle V2DImode and V2DFmode.
11514 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11515 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11517 (movdi_internal64): Likewise.
11519 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
11521 PR tree-optimization/47127
11522 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
11524 (set_cloog_options): Same.
11525 (scop_to_clast): Same.
11526 (print_clast_stmt): Do not call cloog_state_malloc and
11528 (print_generated_program): Same.
11530 * graphite-clast-to-gimple.h (cloog_state): Declared.
11531 (scop_to_clast): Adjust declaration.
11532 * graphite.c (cloog_state): Defined here.
11533 (graphite_initialize): Call cloog_state_malloc.
11534 (graphite_finalize): Call cloog_state_free.
11536 2011-03-11 Jason Merrill <jason@redhat.com>
11538 * attribs.c (lookup_attribute_spec): Take const_tree.
11541 2011-03-11 Joseph Myers <joseph@codesourcery.com>
11543 * config/sparc/sparc.c (sparc_option_override): Use
11544 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
11546 2011-03-11 Richard Guenther <rguenther@suse.de>
11548 PR tree-optimization/48067
11549 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
11550 multiplication result will be only used once on the target
11553 2011-03-11 Richard Guenther <rguenther@suse.de>
11555 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
11557 2011-03-11 Richard Guenther <rguenther@suse.de>
11560 * tree.c (find_decls_types_r): Do not walk types only reachable
11561 from IDENTIFIER_NODEs.
11563 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11565 PR middle-end/48044
11566 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
11567 all vnode->force_output nodes as needed.
11569 2011-03-11 Jason Merrill <jason@redhat.com>
11572 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
11573 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
11575 2011-03-11 Martin Jambor <mjambor@suse.cz>
11577 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
11580 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11582 PR tree-optimization/48063
11583 * ipa-inline.c (cgraph_decide_inlining): Don't try to
11584 inline functions called once if !tree_can_inline_p (node->callers).
11586 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
11588 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11590 * config/score/score3.c: Delete.
11591 * config/score/score3.h: Delete.
11592 * config/score/mul-div.S: Delete.
11593 * config/score/sfp-machine.h: Add new file.
11594 * config/score/constraints.md: Add new file.
11595 * config/score/t-score-softfp: Add new file.
11596 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11597 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11598 (score7_extra_constraint): Delete.
11599 (score7_option_override): Remove unused code.
11600 * config/score/score.c: Remove score3 and score5 define and code.
11601 * config/score/score.h: Remove score3 and score5 define and code.
11602 * config/score/score.md: Remove score3 template and unusual insn.
11603 * config/score/score.opt: Remove score3 and score5 options.
11605 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11607 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11608 when _HPUX_SOURCE is defined.
11609 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11611 2011-03-10 Jason Merrill <jason@redhat.com>
11614 * stor-layout.c (layout_type): Don't set structural equality
11615 on arrays of incomplete type.
11616 * tree.c (type_hash_eq): Handle comparing them properly.
11618 2011-03-10 Jakub Jelinek <jakub@redhat.com>
11621 * config/s390/s390.c (s390_delegitimize_address): Make sure the
11622 result mode matches original rtl mode.
11624 2011-03-10 Nick Clifton <nickc@redhat.com>
11626 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11627 (andsi3, andsi3_flags): Fix timings for three operand alternative.
11629 2011-03-09 Jakub Jelinek <jakub@redhat.com>
11631 PR rtl-optimization/47866
11632 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11633 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11634 if target wasn't scalar.
11635 * function.c (assign_stack_temp_for_type): Assert that neither
11636 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11637 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11639 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11641 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11643 * config/s390/s390-protos.h (s390_label_align): New prototype.
11644 * config/s390/s390.c (s390_label_align): New function.
11645 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11647 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11650 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11651 V2DI/V2DF constants. Only all 0's or all 1's are easy.
11652 (output_vec_const_move): Ditto.
11654 2011-03-08 Anatoly Sokolov <aesok@post.ru>
11656 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11657 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11658 * config/mips/mips.c (mips_preferred_reload_class): Make static.
11659 Change 'rclass' argument and result type to reg_class_t.
11660 (TARGET_PREFERRED_RELOAD_CLASS): Define.
11662 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
11664 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11665 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11666 (TARGET_MEMORY_MOVE_COST): Define.
11667 (avr_register_move_cost, avr_memory_move_cost): New Functions.
11669 2011-03-08 Jakub Jelinek <jakub@redhat.com>
11672 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11675 PR tree-optimization/48022
11676 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11679 2011-03-07 Jakub Jelinek <jakub@redhat.com>
11682 * var-tracking.c (find_use_val): Return NULL for
11683 cui->sets && cui->store_p BLKmode MEMs.
11685 2011-03-07 Anatoly Sokolov <aesok@post.ru>
11687 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11689 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11690 xstormy16_print_operand_address): Remove.
11691 * config/stormy16/stormy16.c (xstormy16_print_operand,
11692 xstormy16_print_operand_address): Make static.
11693 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11695 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
11698 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11699 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11702 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
11705 * cfgloopmanip.c (fix_bb_placements): Return immediately
11706 if FROM is BASE_LOOP's header.
11708 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
11710 * gimplify.c (gimplify_function_tree): Fix building calls
11711 to __builtin_return_address.
11713 2011-03-07 Alan Modra <amodra@gmail.com>
11715 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11716 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11717 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11718 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11720 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11721 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11722 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11723 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11724 * config/rs6000/rs6000.c
11725 (rs6000_elf_end_indicate_exec_stack): Rename to..
11726 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
11727 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
11728 (rs6000_file_start): ..here.
11729 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11730 file scope variables.
11731 (call_ABI_of_interest): New function.
11732 (init_cumulative_args): Set above vars when function return value
11733 is a float, vector, or small struct.
11734 (rs6000_function_arg_advance_1): Likewise for function args.
11735 (rs6000_va_start): Set rs6000_passes_float if variable arg function
11736 references float args.
11738 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
11740 * doc/cfg.texi: Remove "See" before @ref.
11741 * doc/invoke.texi: Likewise.
11743 2011-03-05 Jason Merrill <jason@redhat.com>
11745 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11747 2011-03-05 Anthony Green <green@moxielogic.com>
11749 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11751 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
11753 PR rtl-optimization/47899
11754 * cfgloopmanip.c (fix_bb_placements): Fix first argument
11755 to flow_loop_nested_p when moving the loop upward.
11757 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
11760 * arm.md (movhi_insn_arch4): Accept any immediate constant.
11762 2011-03-05 Jakub Jelinek <jakub@redhat.com>
11764 PR tree-optimization/47967
11765 * ipa-cp.c (build_const_val): Return NULL instead of creating
11766 VIEW_CONVERT_EXPR for mismatching sizes.
11767 (ipcp_create_replace_map): Return NULL if build_const_val failed.
11768 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11769 give up on versioning.
11771 2011-03-05 Alan Modra <amodra@gmail.com>
11774 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11775 full cmodel medium/large lo_sum + high addresses.
11777 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11779 * config/s390/s390.c (s390_decompose_address): Reject non-literal
11780 pool references in UNSPEC_LTREL_OFFSET.
11782 2011-03-04 Jan Hubicka <jh@suse.cz>
11785 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11786 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
11787 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
11789 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
11790 cgraph_add_thunk): Add node pointers.
11791 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
11792 associated to right node.
11793 (input_node): Update use of cgraph_same_body_alias
11794 and cgraph_add_thunk.
11796 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
11798 * config/i386/i386.opt (mprefer-avx128): New flag.
11799 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
11800 modes when the flag -mprefer-avx128 is on.
11802 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
11804 * dwarf2out.c (compare_loc_operands): Fix address handling.
11806 2011-03-04 Alan Modra <amodra@gmail.com>
11808 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11810 2011-03-04 Richard Guenther <rguenther@suse.de>
11812 PR middle-end/47968
11813 * expmed.c (extract_bit_field_1): Prefer vector modes that
11814 vec_extract patterns can handle.
11816 2011-03-04 Richard Guenther <rguenther@suse.de>
11818 PR middle-end/47975
11819 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11821 2011-03-04 Richard Henderson <rth@redhat.com>
11823 * explow.c (emit_stack_save): Remove 'after' parameter.
11824 (emit_stack_restore): Likewise.
11825 * expr.h: Update to match.
11826 * builtins.c, calls.c, stmt.c: Likewise.
11827 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11828 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11829 * function.c (expand_function_end): Insert the emit_stack_save
11830 sequence before parm_birth_insn instead of after.
11832 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
11834 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
11835 (ssse3_pmaddubsw128): Ditto.
11836 (ssse3_pmaddubsw): Ditto.
11838 2011-03-03 Steve Ellcey <sje@cup.hp.com>
11840 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
11842 2011-03-03 Jakub Jelinek <jakub@redhat.com>
11845 * gimplify.c (omp_add_variable): Only call omp_notice_variable
11846 on TYPE_SIZE_UNIT if it is a DECL.
11849 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
11850 first operand is not is_gimple_mem_ref_addr, try to fold it.
11851 If the operand still isn't is_gimple_mem_ref_addr, clear
11854 2011-03-03 Richard Guenther <rguenther@suse.de>
11856 PR middle-end/47283
11857 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
11859 (refs_may_alias_p_1): For release branches return true if
11860 we are confused by our input.
11862 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11864 * config/s390/s390.c (s390_function_value): Rename to ...
11865 (s390_function_and_libcall_value): ... this.
11866 (s390_function_value): New function.
11867 (s390_libcall_value): New function.
11868 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
11869 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
11870 target macro definitions.
11871 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
11873 2011-03-02 Joseph Myers <joseph@codesourcery.com>
11875 * config/i386/freebsd64.h (CC1_SPEC): Define.
11876 * config/i386/linux64.h (CC1_SPEC): Define.
11877 * config/i386/x86-64.h (CC1_SPEC): Don't define.
11879 2011-03-02 Anatoly Sokolov <aesok@post.ru>
11881 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11883 * config/stormy16/stormy16.c: Include reload.h.
11884 (xstormy16_memory_move_cost): New function.
11885 (TARGET_MEMORY_MOVE_COST): Define.
11887 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
11889 PR rtl-optimization/47925
11890 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
11891 with side effects. Remove the more-specific check for volatile asms.
11893 2011-03-02 Alan Modra <amodra@gmail.com>
11896 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
11897 toc relative addresses for valid offsets.
11899 2011-03-01 Richard Guenther <rguenther@suse.de>
11901 PR tree-optimization/47890
11902 * tree-vect-loop.c (get_initial_def_for_induction): Set
11903 related stmt properly.
11905 2011-03-01 Richard Guenther <rguenther@suse.de>
11908 * lto-streamer.c (lto_record_common_node): Also register
11909 the canonical type.
11911 2011-03-01 Richard Guenther <rguenther@suse.de>
11914 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11915 Do not stream DECL_ABSTRACT_ORIGIN.
11916 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11917 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11918 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11919 Do not stream DECL_ABSTRACT_ORIGIN.
11920 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11921 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11923 2011-02-28 Anatoly Sokolov <aesok@post.ru>
11925 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11926 FUNCTION_VALUE_REGNO_P): Remove.
11927 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11928 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11929 Add 'outgoing' argument.
11930 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11932 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11933 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11935 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
11938 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11939 (lookup_filename): Likewise.
11940 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11942 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
11943 Jakub Jelinek <jakub@redhat.com>
11945 PR middle-end/47893
11946 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11947 (assign_stack_local_1): Change last argument type to int.
11948 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11949 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
11950 don't record padding space into frame_space_list nor use those areas.
11951 (assign_stack_local): Adjust caller.
11952 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11953 of assign_stack_local, pass 0 as last argument.
11954 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11957 2011-02-28 Jakub Jelinek <jakub@redhat.com>
11960 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11961 Use target address_mode and pointer_mode hooks instead of hardcoded
11962 Pmode and ptr_mode. Handle some simple cases of extending if
11963 POINTERS_EXTEND_UNSIGNED < 0.
11964 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11965 Call convert_debug_memory_address.
11966 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11967 convert_debug_memory_address.
11969 PR middle-end/46790
11970 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11971 * configure: Regenerated.
11972 * config.in: Regenerated.
11973 * varasm.c (default_function_section): Return NULL
11974 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11976 2011-02-28 Martin Jambor <mjambor@suse.cz>
11978 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11979 the description to match the printed values.
11981 2011-02-28 Richard Guenther <rguenther@suse.de>
11983 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11984 of the copied scope tree.
11986 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11988 * doc/extend.texi (Function Attributes): Avoid deeply (and
11989 wrongly) nested tables.
11991 2011-02-27 Jakub Jelinek <jakub@redhat.com>
11993 PR middle-end/47903
11994 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11995 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11996 r isn't op0 nor op1.
11998 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12000 * config/avr/avr.md: Remove magic comment for emacs.
12002 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12005 * config/avr/avr.c (avr_option_override): Use error on bad options.
12006 (avr_help): New function.
12007 (TARGET_HELP): Define.
12009 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12012 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12013 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12015 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12017 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12018 (ARM Options): Ditto.
12019 (i386 and x86-64 Options): Ditto.
12020 (RX Options): Ditto.
12021 (SPARC Options): Ditto.
12023 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12025 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12026 FreeBSD 6 and later. Generally use cpu generic.
12028 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12030 * doc/cpp.texi: Update copyright years.
12032 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12035 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12037 2011-02-25 Jon Beniston <jon@beniston.com>
12040 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12041 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12042 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12043 (lm32_block_move_inline): Add type cast to remove warning.
12044 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12045 (gen_int_relational): Move declarations to start of function.
12047 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12049 PR tree-optimization/45470
12050 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12051 can throw internally only.
12052 * tree-vect-stmts.c (vectorizable_call): Likewise.
12054 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12056 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12057 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12058 * config/stormy16/stormy16-protos.h
12059 (xstormy16_preferred_reload_class): Remove.
12060 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12061 static. Change 'rclass' argument and return type to reg_class_t.
12062 (TARGET_PREFERRED_RELOAD_CLASS,
12063 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12065 2011-02-24 Richard Guenther <rguenther@suse.de>
12067 * lto-streamer-in.c (input_bb): Do not find referenced vars
12068 in debug statements.
12070 2011-02-23 Jason Merrill <jason@redhat.com>
12072 * common.opt (fabi-version): Document v5 and v6.
12074 2011-02-23 Richard Guenther <rguenther@suse.de>
12076 PR tree-optimization/47849
12077 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12079 2011-02-23 Jie Zhang <jie@codesourcery.com>
12081 * opts-common.c (decode_cmdline_option): Print empty string
12082 argument as "" in decoded->orig_option_with_args_text.
12083 * gcc.c (execute): Print empty string argument as ""
12084 in the verbose output.
12085 (do_spec_1): Keep empty string argument.
12087 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12089 * config.gcc: Declare score-* and crx-* obsolete.
12091 2011-02-23 Jie Zhang <jie@codesourcery.com>
12093 PR rtl-optimization/47763
12094 * web.c (web_main): Ignore naked clobber when replacing register.
12096 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12098 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12101 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12104 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12106 2011-02-22 Mike Stump <mikestump@comcast.net>
12108 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12110 * configure: Regenerate.
12112 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12114 PR rtl-optimization/46002
12115 * ira-color.c (update_copy_costs): Change class intersection
12116 test to reg_class_contents[] test of 'hard_regno'.
12118 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12120 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12121 than Driver option.
12122 * config/hpux11.opt (mt): Likewise.
12123 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12124 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12125 * config/vax/elf.opt (mno-asm-pic): Likewise.
12126 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12128 2011-02-21 Mike Stump <mikestump@comcast.net>
12131 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12132 tree so we can get save the type.
12133 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12134 for CFString instead of trying to use past the end of the builtins.
12135 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12136 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12137 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12138 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12139 Rename to darwin_builtin_cfstring.
12140 (darwin_init_cfstring_builtins): Return the built type.
12142 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12145 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12146 (_mm256_insert_epi64): Use _mm_insert_epi64.
12148 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12150 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12151 * config/stormy16/stormy16-protos.h
12152 (xstormy16_mode_dependent_address_p): Remove.
12153 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12154 Make static. Change return type to bool. Change argument type to
12155 const_rtx. Remove dead code.
12156 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12158 2011-02-21 Richard Guenther <rguenther@suse.de>
12161 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12162 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12163 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12165 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12166 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12168 2011-02-20 Richard Guenther <rguenther@suse.de>
12171 * tree.c (free_lang_data_in_decl): Clean builtins from
12172 the TU decl BLOCK_VARS.
12174 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
12178 * haifa-sched.c (fix_tick_ready): Skip tick computation
12181 2011-02-19 Richard Guenther <rguenther@suse.de>
12184 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12185 Remove lazy BLOCK_VARS streaming.
12186 (lto_input_ts_block_tree_pointers): Likewise.
12187 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12189 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12191 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12193 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12195 * config/i386/biarch32.h, config/i386/mach.h,
12196 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12198 2011-02-19 Jakub Jelinek <jakub@redhat.com>
12201 * config/i386/i386.md (peephole2 for shift and plus): Use
12202 operands[1] original mode in the first insn.
12204 2011-02-18 Mike Stump <mikestump@comcast.net>
12206 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12208 2011-02-18 Jan Hubicka <jh@suse.cz>
12210 PR middle-end/47788
12211 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12212 to zero when the function is not inlinable at all.
12214 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12216 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12217 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12218 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12219 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12220 * config/pa/t-pa64: Likewise.
12221 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12223 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12226 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12228 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12231 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12233 2011-02-18 Anatoly Sokolov <aesok@post.ru>
12235 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12236 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12237 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12238 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12239 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12240 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12241 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12242 m32r_load_postinc_p, m32r_store_preinc_predec_p,
12243 m32r_legitimate_address_p): New functions.
12244 * config/m32r/constraints.md (constraint "S"): Don't use
12245 STORE_PREINC_PREDEC_P.
12246 (constraint "U"): Don't use LOAD_POSTINC_P.
12248 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
12250 PR rtl-optimization/46178
12251 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12252 compute ira_hard_regno_cover_class[].
12254 2011-02-18 Richard Guenther <rguenther@suse.de>
12257 * lto-streamer.h (lto_global_var_decls): Declare.
12258 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12259 statics for global var processing.
12261 2011-02-18 Richard Guenther <rguenther@suse.de>
12263 PR tree-optimization/47737
12264 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12265 edge dominance check.
12267 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12270 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12271 avoid invalid rtx sharing.
12273 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
12275 * doc/cpp.texi (Obsolete Features): Add background on the
12276 origin of assertions.
12278 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
12280 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12282 * config/darwin.c (output_objc_section_asm_op): Added support for
12284 (is_objc_metadata): New.
12285 (darwin_objc2_section): New.
12286 (darwin_objc1_section): New.
12287 (machopic_select_section): Added support for ABI v1 and v2.
12288 (darwin_emit_objc_zeroed): New.
12289 (darwin_output_aligned_bss): Detect objc metadata and treat it
12291 (darwin_asm_output_aligned_decl_common): Same.
12292 (darwin_asm_output_aligned_decl_local): Same.
12293 * config/darwin-sections.def: Updated for ABI v1 and v2.
12294 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12295 compiling Objective-C code for the NeXT runtime, default to using
12296 ABI version 0 for 32-bit, and version 2 for 64-bit.
12298 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12300 * common.opt (optimize_fast): New Variable.
12301 * opts.c (default_options_optimization): Use opts->x_optimize_fast
12302 instead of local variable ofast.
12304 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
12306 * doc/invoke.texi (fobjc-abi-version): Documented.
12307 (fobjc-nilcheck): Documented.
12308 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12311 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12314 * common.opt (export-dynamic): New Driver option.
12315 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12317 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12319 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12321 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
12322 Jan Hubicka <jh@suse.cz>
12326 * cfgexpand.c (account_used_vars_for_block): Remove.
12327 (estimated_stack_frame_size): Use referenced vars.
12328 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12329 that were referenced in the original function. Test src_fn
12330 rather than cfun. Drop redundant get_var_ann.
12331 (setup_one_parameter): Drop redundant get_var_ann.
12332 (declare_return_variable): Likewise.
12333 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12334 (copy_arguments_for_versioning): Drop redundant get_var_ann.
12335 * ipa-inline.c (compute_inline_parameters): Do not compute
12336 disregard_inline_limits here.
12337 (compute_inlinable_for_current, pass_inlinable): New.
12338 (pass_inline_parameters): Require PROP_referenced_vars.
12339 * cgraphunit.c (cgraph_process_new_functions): Don't run
12340 compute_inline_parameters explicitly unless function is in SSA form.
12341 (cgraph_analyze_function): Set .disregard_inline_limits.
12342 * tree-sra.c (convert_callers): Compute inliner parameters
12343 only for functions already in SSA form.
12345 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12347 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12348 -mlittle-endian-data.
12350 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12352 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12353 -mno-fpu, not -fpu and -no-fpu.
12354 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12355 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12357 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
12360 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12361 input reload with PLUS RTX.
12363 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12365 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12366 of InverseVar(MDMX).
12368 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12370 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12373 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12375 * config/mn10300/mn10300.opt (mno-crt0): New.
12377 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12379 * config/m68k/uclinux.opt (static-libc): New Driver option.
12381 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12383 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12385 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12387 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12388 %{muser-extend-enabled}.
12390 2011-02-16 Richard Guenther <rguenther@suse.de>
12392 PR tree-optimization/47738
12393 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12394 the TODO from tree_predictive_commoning.
12396 2011-02-15 Jeff Law <law@redhat.com>
12399 2011-01-25 Jeff Law <law@redhat.com>
12401 PR rtl-optimization/37273
12402 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12403 handle them like argument loads from stack slots. Do not double
12404 count memory for memory constants and argument loads from stack slots.
12406 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12408 PR middle-end/47725
12409 * combine.c (cant_combine_insn_p): Revert the last change.
12411 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
12414 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12415 mode for vector constants. Remove code that checks for TImode.
12417 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12421 * cgraph.h (compute_inline_parameters): Return void.
12422 * ipa-inline.c (compute_inline_parameters): Adjust.
12424 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12428 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12430 * cfgexpand.c (estimated_stack_frame_size): Likewise.
12431 * ipa-inline.c (compute_inline_parameters): Adjust.
12433 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12437 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12438 Adjust all users. Pass FN to...
12439 * tree-flow-inline.h (first_referenced_var): ... this. Add
12441 * ipa-struct-reorg.c: Adjust.
12442 * tree-dfa.c: Adjust.
12443 * tree-into-ssa.c: Adjust.
12444 * tree-sra.c: Adjust.
12445 * tree-ssa-alias.c: Adjust.
12446 * tree-ssa-live.c: Adjust.
12447 * tree-ssa.c: Adjust.
12448 * tree-ssanames.c: Adjust.
12449 * tree-tailcall.c: Adjust.
12451 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12455 * tree-flow.h (referenced_var_lookup): Add fn parameter.
12456 Adjust all callers.
12457 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12458 * tree-flow-inline.h: Adjust.
12459 * gimple-pretty-print.c: Adjust.
12460 * tree-into-ssa.c: Adjust.
12461 * tree-ssa.c: Adjust.
12462 * cfgexpand.c: Adjust.
12464 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12466 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12467 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12468 (EXTRA_CONSTRAINT): Delete.
12469 * config/iq2000/constraints.md: New file.
12470 * config/iq2000/iq2000.md: Include it.
12471 (define_insn ""): Delete.
12472 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12473 unsupported constraint letters from patterns.
12474 (call_value, call_value_internal1): Likewise.
12475 (call_value_multiple_internal1): Likewise.
12477 2011-02-15 Nick Clifton <nickc@redhat.com>
12479 * config/mn10300/mn10300.c: Include tm-constrs.h.
12480 (struct liw_data): New data structure describing an LIW candidate
12482 (extract_bundle): Use struct liw_data. Allow small integer
12483 operands for some instructions.
12484 (check_liw_constraints): Use struct liw_data. Remove swapped
12485 parameter. Add comments describing the checks. Fix bug when
12486 assigning the source of liw1 to the source of liw2.
12487 (liw_candidate): Delete. Code moved into extract_bundle.
12488 (mn10300_bundle_liw): Use struct liw_data. Check constraints
12490 * config/mn10300/predicates.md (liw_operand): New predicate.
12491 Allows registers and small integer constants.
12492 * config/mn10300/constraints.md (O): New constraint. Accetps
12493 integers in the range -8 to +7 inclusive.
12494 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12495 for moving a small integer into a register. Give this alternative
12497 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12498 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12499 using the J,K,L and M constraints,
12500 (liw): Remove SI mode on second operands to allow for HI and QI
12502 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
12505 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12507 PR middle-end/47725
12508 * combine.c (cant_combine_insn_p): Check zero/sign extended
12511 2011-02-15 Richard Guenther <rguenther@suse.de>
12513 PR tree-optimization/47743
12514 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12515 for a non-type-compatible VN lookup bail out.
12517 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12519 * config/fr30/constraints.md: New file.
12520 * config/fr30/fr30.md: Include it.
12521 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
12522 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12523 (EXTRA_CONSTRAINT): Delete.
12525 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12527 * config/frv/constraints.md: New file.
12528 * config/frv/predicates.md: Include it.
12529 * config/frv/frv.c (reg_class_from_letter): Delete.
12530 (frv_option_override): Don't initialize it.
12531 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12532 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12533 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12534 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12535 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12536 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12537 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
12538 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
12539 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
12540 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
12541 (REG_CLASS_FROM_CONSTRAINT): Delete.
12543 2011-02-15 Jakub Jelinek <jakub@redhat.com>
12545 PR middle-end/47581
12546 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
12547 if frame size is 0 in a leaf function.
12549 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12552 * config/alpha/host-osf.c: New file.
12553 * config/alpha/x-osf: New file.
12554 * config.host (alpha*-dec-osf*): Use it.
12556 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12558 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12559 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
12560 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
12561 (rx_mode_dependent_address_p): ...this. Make static. Change argument
12563 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12565 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12567 * config/stormy16/constraints.md: New file.
12568 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
12569 Use satisfies_constraint_Q and satisfies_constraint_R.
12570 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
12572 (xstormy16_legitiamte_address_p): Declare.
12573 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
12574 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12575 (EXTRA_CONSTRAINT): Delete.
12576 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12578 (xstormy16_extra_constraint_p): Delete.
12580 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
12582 PR tree-optimization/46494
12583 * loop-unroll.c (split_edge_and_insert): Adjust comment.
12584 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
12585 (pass_rtl_loop_done): Add TODO_verify_flow.
12586 * fwprop.c (pass_rtl_fwprop): Likewise.
12587 * modulo-sched.c (pass_sms): Likewise.
12588 * tree-ssa-dom.c (pass_dominator): Likewise.
12589 * tree-ssa-loop-ch.c (pass_ch): Likewise.
12590 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12591 (pass_tree_loop_done): Likewise.
12592 * tree-ssa-pre.c (execute_pre): Likewise.
12593 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12594 * tree-ssa-sink.c (pass_sink_code): Likewise.
12595 * tree-vrp.c (pass_vrp): Likewise.
12597 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12599 * config/v850/constraints.md: New file.
12600 * config/v850/v850.md: Include it.
12601 * config/v850/predicates.md (reg_or_0_operand): Use
12602 satisfies_constraint_G.
12603 (special_symbolref_operand): Use satisfies_constraint_K.
12604 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12605 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12606 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12607 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12608 (EXTRA_CONSTRAINT): Delete.
12609 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12610 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12611 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12613 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12616 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12619 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12621 * config/mcore/constraints.md: New file.
12622 * config/mcore/mcore.md: Include it.
12623 * config/mcore/mcore.c (reg_class_from_letter): Delete.
12624 * config/mcore/mcore.h (reg_class_from_letter): Delete.
12625 (REG_CLASS_FROM_LETTER): Delete.
12626 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12627 insn_const_int_ok_for_constraint.
12628 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12629 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12630 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12631 (EXTRA_CONSTRAINT): Delete.
12633 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12636 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12637 (IS_SIGHANDLER): Define.
12638 (sparc64_is_sighandler): New function, split off from
12639 sparc64_fallback_frame_state.
12640 (sparc_is_sighandler): New function, split off from
12641 sparc_fallback_frame_state.
12642 (sparc64_fallback_frame_state): Merge with ...
12643 (sparc_fallback_frame_state): ... this into ...
12644 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12645 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
12646 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
12647 stack instead of hardcoded offsets.
12649 2011-02-14 Andriy Gapon <avg@freebsd.org>
12652 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12654 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12656 * configure: Regenerate.
12658 2011-02-12 Joseph Myers <joseph@codesourcery.com>
12661 * gcc.c (asm_options): Correct spec matching --target-help.
12663 2011-02-12 Martin Jambor <mjambor@suse.cz>
12665 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12666 to gimple call error.
12668 2011-02-12 Mike Stump <mikestump@comcast.net>
12670 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12671 comments in backslash regions.
12673 2011-02-12 Mike Stump <mikestump@comcast.net>
12674 Jakub Jelinek <jakub@redhat.com>
12675 Iain Sandoe <iains@gcc.gnu.org>
12678 * dwarf2out.c (output_cfa_loc): When required, apply the
12679 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12680 (output_loc_sequence): Likewise.
12681 (output_loc_operands_raw): Likewise.
12682 (output_loc_sequence_raw): Likewise.
12683 (output_cfa_loc): Likewise.
12684 (output_loc_list): Suppress register number adjustment when
12685 calling output_loc_sequence()
12686 (output_die): Likewise.
12688 2011-02-12 Anatoly Sokolov <aesok@post.ru>
12690 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12692 * config/xtensa/xtensa.c (xtensa_register_move_cost,
12693 xtensa_memory_move_cost): New functions.
12694 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12696 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
12699 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12700 in the current directory.
12701 * configure: Rebuilt.
12703 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12705 * config/darwin.c (darwin_override_options): Add a hunk missed
12706 from the commit of r168571. Trim comment line lengths and
12707 correct indents of the preceding block.
12709 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12711 * gcc.c (driver_handle_option): Concatenate the argument to -F with
12714 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12716 * common.opt (nostartfiles): New Driver option.
12718 2011-02-11 Xinliang David Li <davidxl@google.com>
12720 PR tree-optimization/47707
12721 * tree-chrec.c (convert_affine_scev): Keep type precision.
12723 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
12725 PR tree-optimization/47420
12726 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12728 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
12730 PR rtl-optimization/47614
12731 * rtl.h (check_for_inc_dec): Declare.
12732 * dse.c (check_for_inc_dec): Externalize...
12733 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12734 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12736 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12739 * gcc.c (main): Do not compile inputs if there were errors in
12741 * opts-common.c (read_cmdline_option): Check for wrong language
12742 after other error checks.
12744 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
12746 * cgraph.c: Fix comment typos.
12747 * cgraph.h: Likewise.
12748 * cgraphunit.c: Likewise.
12749 * ipa-cp.c: Likewise.
12750 * ipa-inline.c: Likewise.
12751 * ipa-prop.c: Likewise.
12752 * ipa-pure-const.c: Likewise.
12753 * ipa-ref.c: Likewise.
12754 * ipa-reference.c: Likewise.
12756 2011-02-11 Jakub Jelinek <jakub@redhat.com>
12759 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12761 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12764 * doc/sourcebuild.texi (Require Support): Document
12765 dg-require-ascii-locale.
12767 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
12769 * doc/lto.texi (Write summary): Fix missing parentheses.
12771 2011-02-10 DJ Delorie <dj@redhat.com>
12773 * config/m32c/m32c.c (m32c_option_override): Disable
12774 -fcombine-stack-adjustments until flag value tracking and compare
12775 optimization can be rewritten.
12777 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
12779 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12781 (PROCESSOR_DEFAULT64): Likewise.
12783 2011-02-10 Richard Henderson <rth@redhat.com>
12785 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12786 change from 2011-02-03.
12787 * config/rx/rx.c (flags_from_code): Likewise.
12788 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
12789 is valid, n/pz otherwise.
12790 (rx_select_cc_mode): Return CCmode if Y is not zero.
12792 2011-02-10 Richard Guenther <rguenther@suse.de>
12794 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
12796 2011-02-10 Richard Guenther <rguenther@suse.de>
12798 PR tree-optimization/47677
12799 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
12801 2011-02-10 Jakub Jelinek <jakub@redhat.com>
12804 * combine.c (make_compound_operation): Only change shifts into
12805 multiplication for SCALAR_INT_MODE_P.
12807 2011-02-10 Jie Zhang <jie@codesourcery.com>
12811 2011-02-05 Jie Zhang <jie@codesourcery.com>
12813 * web.c (entry_register): Don't clobber the number of the
12814 first uninitialized reference in used[].
12816 2011-02-09 Richard Guenther <rguenther@suse.de>
12818 PR tree-optimization/47664
12819 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12822 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
12826 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12828 (PROCESSOR_DEFAULT64): Same.
12829 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
12831 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12833 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
12835 2011-02-09 Martin Jambor <mjambor@suse.cz>
12837 PR middle-end/45505
12838 * tree-sra.c (struct access): New flags grp_scalar_read and
12839 grp_scalar_write. Changed description of assignment read and write
12841 (dump_access): Dump new flags, reorder all of them.
12842 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
12843 to detect multiple scalar reads.
12844 (analyze_access_subtree): Use the new scalar read write flags instead
12845 of the old flags. Adjusted comments.
12847 2011-02-08 DJ Delorie <dj@redhat.com>
12850 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
12853 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12855 * config/m68k/uclinux.opt: New.
12856 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
12858 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12860 * config/cris/elf.opt (sim): New Driver option.
12862 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12864 * config/xtensa/elf.opt: New.
12865 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
12867 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12869 * config/vax/elf.opt: New.
12870 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
12872 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12874 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
12876 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12878 * config/gnu-user.opt: New.
12879 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
12880 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
12881 *-*-uclinux*): Use gnu-user.opt.
12883 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
12885 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
12886 * config/i386/gnu.h (CPP_SPEC): Likewise.
12888 2011-02-08 Ian Lance Taylor <iant@google.com>
12890 * common.opt (fcx-limited-range): Add SetByCombined flag.
12891 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
12892 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
12893 (fassociative-math, freciprocal-math): Likewise.
12894 (funsafe-math-optimizations): Likewise.
12895 * opth-gen.awk: Handle SetByCombined.
12896 * optc-gen.awk: Likewise.
12897 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
12898 (set_unsafe_math_optimizations_flags): Likewise.
12899 * doc/options.texi (Option properties): Document SetByCombined.
12901 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12903 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
12904 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
12905 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
12906 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12907 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12909 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
12911 PR tree-optimization/46834
12912 PR tree-optimization/46994
12913 PR tree-optimization/46995
12914 * graphite-sese-to-poly.c (used_outside_reduction): New.
12915 (detect_commutative_reduction): Call used_outside_reduction.
12916 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12917 translate_scalar_reduction_to_array only when at least one
12918 loop-phi/close-phi tuple has been detected.
12920 2011-02-08 Richard Guenther <rguenther@suse.de>
12922 PR middle-end/47639
12923 * tree-vect-generic.c (expand_vector_operations_1): Update
12925 (expand_vector_operations): ... not here. Cleanup EH info
12926 and the CFG if required.
12928 2011-02-08 Richard Guenther <rguenther@suse.de>
12930 PR tree-optimization/47641
12931 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12932 require type compatibility.
12934 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12936 * gimple-low.c (lower_function_body): Don't remove the location of
12937 the return statement here.
12938 (lower_gimple_return): Do it here instead but only if the return
12939 statement is actually used twice.
12941 2011-02-08 Richard Guenther <rguenther@suse.de>
12943 PR tree-optimization/47632
12944 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12945 unused up_to_stmt parameter, return whether cfg-cleanup is
12946 necessary, remove EH info properly.
12947 (forward_propagate_into_gimple_cond): Adjust caller.
12948 (forward_propagate_into_cond): Likewise.
12949 (forward_propagate_comparison): Likewise.
12950 (tree_ssa_forward_propagate_single_use_vars): Make
12951 forward_propagate_comparison case similar to the two others.
12953 2011-02-08 Nick Clifton <nickc@redhat.com>
12955 * config/mn10300/mn10300.opt (mliw): New command line option.
12956 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12957 (liw_bundling): New automaton.
12958 (liw): New attribute.
12959 (liw_op): New attribute.
12960 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12961 (movsi_internal): Add LIW attributes.
12962 (andsi3): Likewise.
12963 (iorsi3): Likewise.
12964 (xorsi3): Likewise.
12965 (addsi3): Separate register and immediate alternatives.
12966 Add LIW attributes.
12967 (subsi3): Likewise.
12969 (aslsi3): Likewise.
12970 (lshrsi3): Likewise.
12971 (ashrsi3): Likewise.
12972 (liw): New pattern.
12973 * config/mn10300/mn10300.c (liw_op_names): New
12974 (mn10300_print_operand): Handle 'W' operand descriptor.
12975 (extract_bundle): New function.
12976 (check_liw_constraints): New function.
12977 (liw_candidate): New function.
12978 (mn10300_bundle_liw): New function.
12979 (mn10300_reorg): New function.
12980 (TARGET_MACHINE_DEPENDENT_REORG): Define.
12981 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12982 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12983 __LIW__ or __NO_LIW__.
12984 * doc/invoke.texi: Describe the -mliw command line option.
12986 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12988 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12989 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12990 pthread_mutex_unlock): Remove.
12991 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12992 * config/pa/t-pa64: Likewise.
12993 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12994 shared libc if not linking against libpthread.
12995 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12997 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13000 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13001 on 10.6 and later to ensure that we always use the unwinder from
13002 the system. Only add -no_compact_unwind when tarteting darwin
13005 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13008 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13009 (vec_interleave_lowv2sf): Ditto.
13010 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13011 (vec_extract_oddv2sf): Ditto.
13013 2011-02-07 Mike Stump <mikestump@comcast.net>
13016 Add __ieee_divdc3 entry point.
13017 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13019 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13020 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13021 * config/darwin.c (darwin_rename_builtins): Add.
13022 * config/darwin-protos.h (darwin_rename_builtins): Add.
13024 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13027 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13030 2011-02-07 Mike Stump <mikestump@comcast.net>
13032 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13034 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13037 * config/avr/libgcc.S (exit): Move .endfunc
13039 2011-02-07 Richard Guenther <rguenther@suse.de>
13041 PR tree-optimization/47615
13042 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13043 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13044 (run_scc_vn): Initialize it.
13045 (visit_reference_op_load): Use it.
13046 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13048 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13050 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13051 DImode trapping arithmetic libfuncs.
13053 2011-02-07 Richard Guenther <rguenther@suse.de>
13055 PR tree-optimization/47621
13056 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13058 (execute_update_addresses_taken): ... here. Make it more
13059 conservative in what we accept.
13061 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13063 * config/sparc/freebsd.h (ASM_SPEC): Define.
13064 * config/sparc/vxworks.h (ASM_SPEC): Define.
13066 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13068 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13070 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13072 * doc/invoke.texi: Remove reference to compiler internals from
13073 user documentation.
13075 * reg-notes.def: Remove REG_VALUE_PROFILE.
13076 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13078 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13080 PR middle-end/47610
13081 * varasm.c (default_section_type_flags): If decl is NULL,
13082 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13084 2011-02-05 Jie Zhang <jie@codesourcery.com>
13087 * web.c (entry_register): Don't clobber the number of the
13088 first uninitialized reference in used[].
13090 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13092 PR tree-optimization/46194
13093 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13094 (build_classic_dist_vector_1): Do not represent classic distance
13095 vectors when the access functions are variating in different loops.
13097 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13099 * config/mips/iris6.opt: New.
13100 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13102 2011-02-04 Richard Henderson <rth@redhat.com>
13103 Steve Ellcey <sje@cup.hp.com>
13106 * config/ia64/predicates.md (mux1_brcst_element): New.
13107 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13108 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13109 (ia64_unpack_sign): New.
13110 (ia64_expand_unpack): Rewrite using new routines.
13111 (ia64_expand_widen_sum): Ditto.
13112 (ia64_expand_dot_prod_v8qi): Ditto.
13113 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13114 routines, add endian check.
13115 (pmpy2_even): Rename from pmpy2_r, add endian check.
13116 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13117 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13118 (vec_widen_smult_hi_v4hi): Ditto.
13119 (vec_widen_umult_lo_v4hi): Ditto.
13120 (vec_widen_umult_hi_v4hi): Ditto.
13121 (mulv2si3): Change endian checks.
13122 (sdot_prodv4hi): Rewrite with new calls.
13123 (udot_prodv4hi): New.
13124 (vec_pack_ssat_v4hi): Add endian check.
13125 (vec_pack_usat_v4hi): Ditto.
13126 (vec_pack_ssat_v2si): Ditto.
13127 (max1_even): Rename from max1_r, add endian check.
13128 (max1_odd): Rename from max1_l, add endian check.
13129 (*mux1_rev): Format change.
13130 (*mux1_mix): Ditto.
13131 (*mux1_shuf): Ditto.
13132 (*mux1_alt): Ditto.
13133 (*mux1_brcst_v8qi): Use new predicate.
13134 (vec_extract_evenv8qi): Remove endian check.
13135 (vec_extract_oddv8qi): Ditto.
13136 (vec_interleave_lowv4hi): Format change.
13137 (vec_interleave_highv4hi): Ditto.
13138 (mix2_even): Rename from mix2_r, add endian check.
13139 (mix2_odd): Rename from mux2_l, add endian check.
13140 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13141 (vec_extract_evenodd_helper): Format change.
13142 (vec_extract_evenv4hi): Remove endian check.
13143 (vec_extract_oddv4hi): Remove endian check.
13144 (vec_interleave_lowv2si): Format change.
13145 (vec_interleave_highv2si): Format change.
13146 (vec_initv2si): Remove endian check.
13147 (vecinit_v2si): Add endian check.
13148 (reduc_splus_v2sf): Add endian check.
13149 (reduc_smax_v2sf): Ditto.
13150 (reduc_smin_v2sf): Ditto.
13151 (vec_initv2sf): Remove endian check.
13152 (fpack): Add endian check.
13153 (fswap): Add endian check.
13154 (vec_interleave_highv2sf): Add endian check.
13155 (vec_interleave_lowv2sf): Add endian check.
13156 (fmix_lr): Add endian check.
13157 (vec_setv2sf): Format change.
13158 (*vec_extractv2sf_0_be): Use shift to extract operand.
13159 (*vec_extractv2sf_1_be): New.
13160 (vec_pack_trunc_v4hi): Add endian check.
13161 (vec_pack_trunc_v2si): Format change.
13163 2011-02-04 Jakub Jelinek <jakub@redhat.com>
13165 PR inline-asm/23200
13166 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
13167 do bb, locus and block comparison and disallow loads if it is not set.
13168 (stmt_is_replaceable_p): New function.
13169 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13171 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13172 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13174 * tree-flow.h (stmt_is_replaceable_p): New prototype.
13176 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13178 * config/rs6000/xilinx.opt: New.
13179 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13181 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13183 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13185 2011-02-03 Anatoly Sokolov <aesok@post.ru>
13187 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13188 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13189 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13190 secondary_reload_info, xtensa_secondary_reload): Remove.
13191 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13192 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13193 (xtensa_preferred_reload_class): Make static. Change return and
13194 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13195 Use CONST_DOUBLE_P predicate.
13196 (xtensa_preferred_output_reload_class): New function.
13197 (xtensa_secondary_reload): Make static.
13199 2011-02-03 Joseph Myers <joseph@codesourcery.com>
13201 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13202 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13203 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13205 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13207 PR middle-end/31490
13208 * output.h (SECTION_RELRO): Define.
13209 (SECTION_MACH_DEP): Adjust.
13210 (get_variable_section): New prototype.
13211 * varpool.c (varpool_finalize_named_section_flags): New function.
13212 (varpool_assemble_pending_decls): Call it.
13213 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13214 * cgraphunit.c (cgraph_output_in_order): Call
13215 varpool_finalize_named_section_flags.
13216 * varasm.c (get_section): Allow section flags conflicts between
13217 relro and read-only sections if the section hasn't been declared yet.
13218 Set SECTION_OVERRIDE after diagnosing section type conflict.
13219 (get_variable_section): No longer static.
13220 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13221 readonly sections that need relocations.
13222 (decl_readonly_section_1): New function.
13223 (decl_readonly_section): Use it.
13226 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
13227 Steve Ellcey <sje@cup.hp.com>
13229 PR middle-end/31490
13230 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13231 if section attribute used.
13233 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13235 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13236 * config/darwin.c (SECTION_NO_ANCHOR): Define.
13237 (darwin_init_sections): Remove assertion.
13239 2011-02-03 Nick Clifton <nickc@redhat.com>
13241 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13243 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13244 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13245 instead of "n" and "pz".
13246 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13249 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13252 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13253 fma, expand FMA_EXPR as fma{,f,l} call.
13256 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13257 copy them into a unsigned char variable and pass address of it to
13258 lto_output_data_stream.
13261 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13262 around backend_init_target and lang_dependent_init_target calls.
13263 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13264 (verify_cgraph_node): Don't call set_cfun here. Use
13265 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13266 Set error_found for incorrectly represented calls to thunks.
13268 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13271 PR rtl-optimization/43494
13272 * rtl.h (for_each_inc_dec_fn): New type.
13273 (for_each_inc_dec): Declare.
13274 * rtlanal.c (struct for_each_inc_dec_ops): New type.
13275 (for_each_inc_dec_find_inc_dec): New fn.
13276 (for_each_inc_dec_find_mem): New fn.
13277 (for_each_inc_dec): New fn.
13278 * dse.c (struct insn_size): Remove.
13279 (replace_inc_dec, replace_inc_dec_mem): Remove.
13280 (emit_inc_dec_insn_before): New fn.
13281 (check_for_inc_dec): Use it, along with for_each_inc_dec.
13282 (canon_address): Pass mem modes to cselib_lookup.
13283 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
13284 (cselib_lookup_from_insn): Likewise.
13285 (cselib_subst_to_values): Likewise.
13286 * cselib.c (find_slot_memmode): New var.
13287 (cselib_find_slot): New fn. Use it instead of
13288 htab_find_slot_with_hash everywhere.
13289 (entry_and_rtx_equal_p): Use find_slot_memmode.
13290 (autoinc_split): New fn.
13291 (rtx_equal_for_cselib_p): Rename and implement in terms of...
13292 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
13293 Deal with autoinc. Special-case recursion into MEMs.
13294 (cselib_hash_rtx): Likewise.
13295 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
13296 address and MEM modes.
13297 (cselib_subst_to_values): Add memmode, pass it on.
13299 (cselib_lookup): Add memmode argument, pass it on.
13300 (cselib_lookup_from_insn): Add memmode.
13301 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13302 (struct cselib_record_autoinc_data): New.
13303 (cselib_record_autoinc_cb): New fn.
13304 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
13305 mode to cselib_lookup. Reset autoinced REGs here instead of...
13306 (cselib_process_insn): ... here.
13307 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13309 (add_uses): Likewise, also to cselib_subst_to_values.
13310 (add_stores): Likewise.
13311 * sched-deps.c (add_insn_mem_dependence): Pass mode to
13312 cselib_subst_to_values.
13313 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
13314 * gcse.c (do_local_cprop): Adjusted.
13315 * postreload.c (reload_cse_simplify_set): Adjusted.
13316 (reload_cse_simplify_operands): Adjusted.
13317 * sel-sched-dump (debug_mem_addr_value): Pass mode.
13319 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13321 PR tree-optimization/45122
13322 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13323 unsafe assumptions when there's more than one loop exit.
13325 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13328 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13329 Document using vector double with the load/store builtins, and
13330 that the load/store builtins always use Altivec instructions.
13332 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13333 to use altivec memory instructions, even on VSX.
13334 (vector_altivec_store_<mode>): Ditto.
13336 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13339 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13340 V2DF, V2DI support to load/store overloaded builtins.
13342 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13343 altivec load/store builtins for V2DF/V2DI types.
13345 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13346 set avoid indexed addresses on power6 if -maltivec.
13347 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13348 vector_altivec_load/vector_altivec_store builtins.
13349 (altivec_expand_st_builtin): Ditto.
13350 (altivec_expand_builtin): Add VSX memory builtins.
13351 (rs6000_init_builtins): Add V2DI types to internal types.
13352 (altivec_init_builtins): Add support for V2DF/V2DI altivec
13353 load/store builtins.
13354 (rs6000_address_for_altivec): Insure memory address is appropriate
13357 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13358 vec_vsx_ld and vec_vsx_st.
13359 (vsx_store_<mode>): Ditto.
13361 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13362 variables to hold long long types for VSX vector memory builtins.
13363 (RS6000_BTI_unsigned_long_long): Ditto.
13364 (long_long_integer_type_internal_node): Ditti.
13365 (long_long_unsigned_type_internal_node): Ditti.
13367 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13368 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13369 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13371 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13373 (vec_vsx_st): Ditto.
13375 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13377 * config/pa/pa-hpux10.opt: New.
13378 * config/hpux11.opt (pthread): New Driver option.
13379 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13380 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13382 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13384 * config/ia64/vms.opt: New.
13385 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13387 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
13390 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13391 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13392 generator functions.
13393 (vsx_floatuns<VSi><mode>2): Ditto.
13394 (vsx_fix_trunc<mode><VSi>2): Ditto.
13395 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13397 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13399 * config/i386/djgpp.opt (posix): New Driver option.
13401 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
13403 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13404 Move to the unsupported targets list.
13406 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
13408 PR rtl-optimization/47525
13409 * df-scan.c: Update copyright years.
13410 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13411 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13413 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13415 * config/i386/sysv4.h (TARGET_VERSION): Remove.
13416 (SUBTARGET_RETURN_IN_MEMORY): Remove.
13417 (ASM_OUTPUT_ASCII): Remove.
13418 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13420 2011-02-02 Jeff Law <law@redhat.com>
13422 PR middle-end/47543
13423 * reload.c (find_reloads_address): Handle reg+d address where both
13424 components are invalid by reloading the entire address.
13426 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13427 Richard Guenther <rguenther@suse.de>
13429 PR tree-optimization/40979
13431 * passes.c (init_optimization_passes): After LIM call copy_prop
13432 and DCE to clean up.
13433 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13435 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13437 PR tree-optimization/47576
13438 PR tree-optimization/47555
13439 * doc/invoke.texi (scev-max-expr-complexity): Documented.
13440 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13441 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13442 * tree-scalar-evolution.c (follow_ssa_edge): Use
13443 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13445 2011-02-02 Richard Guenther <rguenther@suse.de>
13447 PR tree-optimization/47566
13448 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13450 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13454 * tree-inline.c (declare_return_variable): Remove unused caller
13459 * tree-flow-inline.h (clear_is_used, is_used_p): New.
13460 * cfgexpand.c (account_used_vars_for_block): Use them.
13461 * tree-nrv.c (tree_nrv): Likewise.
13462 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13463 (dump_scope_block): Likewise.
13464 (remove_unused_locals): Likewise.
13468 * tree-inline.c (declare_return_variable): Add result decl to
13469 local decls only once.
13470 * gimple-low.c (record_vars_into): Mark newly-created variables
13473 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13479 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13481 (no_real_insns_p, schedule_block, set_priorities): Drop special
13482 treatment of boundary debug insns.
13483 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13484 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13485 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13486 (BOUNDARY_DEBUG_INSN_P): Likewise.
13487 (SCHEDULE_DEBUG_INSN_P): Likewise.
13488 * sched-rgn.c (init_ready_list): Drop special treatment of
13489 boundary debug insns.
13490 * final.c (rest_of_clean_state): Clear notes' BB.
13492 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13494 * config/openbsd.opt (assert=): New Driver option.
13496 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13498 * config/i386/nto.opt: New.
13499 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13501 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13503 * config/i386/netware.opt: New.
13504 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13506 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13508 * config/interix.opt (posix): New Driver option.
13510 2011-02-01 DJ Delorie <dj@redhat.com>
13512 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13514 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13517 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
13519 PR tree-optimization/47561
13520 * toplev.c (process_options): Print the Graphite flags. Add
13521 flag_loop_flatten to the list of options requiring Graphite.
13523 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13525 * config/i386/cygming.opt (posix): New Driver option.
13527 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13529 * config/arm/vxworks.opt: New.
13530 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13532 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13534 * config/alpha/elf.opt: New.
13535 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13536 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13538 2011-02-01 Richard Guenther <rguenther@suse.de>
13540 PR tree-optimization/47559
13541 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
13542 store-motion on references that can throw.
13544 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
13546 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
13547 * tree-pass.h (TDF_CSELIB): New macro.
13548 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
13549 cselib_lookup): Check for it rather than for TDF_DETAILS.
13551 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
13554 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
13555 is HOST_BIT_BUCKET.
13557 * opts.c (finish_options): Don't add x_aux_base_name if it is
13560 2011-02-01 Richard Guenther <rguenther@suse.de>
13562 PR tree-optimization/47555
13564 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
13566 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13568 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
13571 * config/lm32/t-lm32: Add multilib for all CPU options.
13573 2011-02-01 Richard Guenther <rguenther@suse.de>
13575 PR tree-optimization/47541
13576 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13577 sure to have a field at offset zero.
13579 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13581 * config/arc/arc.opt (EB, EL): New Driver options.
13583 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13585 * config/alpha/osf5.opt: New.
13586 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
13588 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13590 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13592 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
13594 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13595 -floop-interchange.
13596 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13597 is an alias of -floop-interchange and that it requires the
13598 Graphite infrastructure.
13599 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13600 flag_loop_interchange based on the value of flag_tree_loop_linear.
13602 2011-01-31 Jakub Jelinek <jakub@redhat.com>
13603 Richard Guenther <rguenther@suse.de>
13605 PR tree-optimization/47538
13606 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13607 type instead of r1type, except for comparisons. For right
13608 shifts and comparisons punt if there are mismatches in
13609 sizetype vs. non-sizetype types.
13611 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13613 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13616 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13618 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13620 * configure: Regenerate.
13622 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13624 * configure.ac (gcc_cv_ld_static_option): Define.
13625 (gcc_cv_ld_dynamic_option): Define.
13626 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13628 (HAVE_LD_STATIC_DYNAMIC): Update message.
13629 (LD_STATIC_OPTION): Define.
13630 (LD_DYNAMIC_OPTION): Define.
13631 * configure: Regenerate.
13632 * config.in: Regenerate.
13633 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13634 HAVE_LD_STATIC_DYNAMIC]: Use them.
13636 2011-01-31 Nick Clifton <nickc@redhat.com>
13638 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13639 registers inside interrupt handlers if the handler is not a leaf
13642 2011-01-31 Nick Clifton <nickc@redhat.com>
13644 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13645 reg_renumber returning an INVALID_REGNUM.
13647 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13650 * doc/install.texi: Document host options discarded when cross
13651 configuring target libraries.
13653 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13656 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13659 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13661 (no_real_insns_p, schedule_block, set_priorities): Drop special
13662 treatment of boundary debug insns.
13663 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13664 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13665 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13666 (BOUNDARY_DEBUG_INSN_P): Likewise.
13667 (SCHEDULE_DEBUG_INSN_P): Likewise.
13668 * sched-rgn.c (init_ready_list): Drop special treatment of
13669 boundary debug insns.
13670 * final.c (rest_of_clean-state): Clear notes' BB.
13672 2011-01-31 Alan Modra <amodra@gmail.com>
13674 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13675 toc relative expressions as we do in print_operand_address.
13677 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
13679 * doc/extend.texi: Follow spelling conventions.
13680 * doc/invoke.texi: Fix a typo.
13682 2011-01-30 Joseph Myers <joseph@codesourcery.com>
13684 * config/hpux11.opt: New.
13685 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13686 ia64*-*-hpux*): Use hpux11.opt.
13688 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
13690 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13693 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13695 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13698 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13700 * doc/install.texi (Binaries): Remove outdated reference for
13701 Motorola 68HC11/68HC12 downloads.
13703 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13705 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13708 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
13711 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13714 2011-01-28 Ahmad Sharif <asharif@google.com>
13716 * value-prof.c (check_counter): Corrected error message.
13718 2011-01-29 Jie Zhang <jie@codesourcery.com>
13720 * config/arm/arm.c (arm_legitimize_reload_address): New.
13721 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13722 arm_legitimize_reload_address.
13723 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13725 2011-01-28 Ian Lance Taylor <iant@google.com>
13727 * godump.c (go_define): Ignore macros whose definitions include
13728 two adjacent operands.
13730 2011-01-28 Jakub Jelinek <jakub@redhat.com>
13733 * varasm.c (force_const_mem): Store copy of x in desc->constant
13734 instead of x itself.
13735 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13736 itself into REG_EQUAL note.
13738 2011-01-28 Joseph Myers <joseph@codesourcery.com>
13740 * config/freebsd.opt (posix, rdynamic): New Driver options.
13742 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13744 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13745 -Bstatic/-Bdynamic.
13746 * configure: Regenerate.
13748 2011-01-27 Joseph Myers <joseph@codesourcery.com>
13750 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13751 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13753 2011-01-27 Anatoly Sokolov <aesok@post.ru>
13755 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13756 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13757 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13758 (s390_preferred_reload_class): Make static. Change return and
13759 'rclass' argument type to reg_class_t.
13761 2011-01-27 Jan Hubicka <jh@suse.cz>
13763 PR middle-end/46949
13764 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13765 (process_function_and_variable_attributes): Check defined weakrefs.
13767 2011-01-27 Martin Jambor <mjambor@suse.cz>
13769 PR tree-optimization/47228
13770 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13771 build_ref_for_offset.
13773 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13775 * config/spu/spu-elf.h (ASM_SPEC): Remove.
13777 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
13779 PR rtl-optimization/46856
13780 * postreload.c (reload_combine_recognize_const_pattern): Do not
13781 separate cc0 setter and user on cc0 targets.
13783 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
13786 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
13787 passed a VOID_TYPE expression, immediately emit an error and
13788 return error_mark_node.
13790 2011-01-26 Jeff Law <law@redhat.com>
13792 PR rtl-optimization/47464
13793 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
13794 rather than may_trap_p as needed.
13796 2011-01-26 DJ Delorie <dj@redhat.com>
13798 PR rtl-optimization/46878
13799 * combine.c (insn_a_feeds_b): Check for the implicit cc0
13800 setter/user dependency as well.
13802 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
13804 PR rtl-optimization/44469
13805 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
13806 after removing trivially dead basic blocks.
13808 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13810 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13811 * config/frv/frv.h (LINK_SPEC): Likewise.
13812 * config/i386/netware.h (LINK_SPEC): Likewise.
13813 * config/m68k/linux.h (ASM_SPEC): Likewise.
13814 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13815 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13816 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13817 * config/sparc/linux.h (ASM_SPEC): Likewise.
13818 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13819 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13821 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13823 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
13824 * config/frv/frv.h (ASM_SPEC): Likewise.
13825 * config/m68k/linux.h (ASM_SPEC): Likewise.
13826 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13827 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
13828 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13829 * config/sparc/linux.h (ASM_SPEC): Likewise.
13830 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13831 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13833 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13835 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
13836 * config/frv/frv.h (LINK_SPEC): Likewise.
13837 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13839 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13841 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
13842 * config/frv/frv.h (ASM_SPEC): Likewise.
13843 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
13844 * config/m68k/linux.h (ASM_SPEC): Likewise.
13845 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13846 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13847 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13848 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
13849 * config/sparc/linux.h (ASM_SPEC): Likewise.
13850 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13851 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13852 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
13854 2011-01-26 Steve Ellcey <sje@cup.hp.com>
13857 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
13859 (vec_extract_evenodd_help): Ditto.
13860 (vec_extract_evenv4hi): Ditto.
13861 (vec_extract_oddv4hi): Ditto.
13862 (vec_interleave_lowv2si): Ditto.
13863 (vec_interleave_highv2si): Ditto.
13864 (vec_extract_evenv2si): Ditto.
13865 (vec_extract_oddv2si: Ditto.
13866 (vec_pack_trunc_v2si): Ditto.
13868 2011-01-22 Jan Hubicka <jh@suse.cz>
13871 * cgraph.h (cgraph_local_info): New field can_change_signature.
13872 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
13873 signature can change.
13874 (ipcp_estimate_growth): Call sequence simplify only if calle signature
13876 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
13877 (cgraph_function_versioning): We can not change signature of functions
13878 that don't allow that.
13879 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
13880 (lto_input_node): Likewise.
13881 * ipa-inline.c (compute_inline_parameters): Compute
13882 local.can_change_signature.
13883 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
13884 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
13885 functions that can not change signature.
13886 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
13887 init_cumulative_args): Do not use local calling conventions
13888 for functions that can not change signature.
13890 2011-01-22 Jan Hubicka <jh@suse.cz>
13892 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
13894 2011-01-26 Richard Guenther <rguenther@suse.de>
13896 PR tree-optimization/47190
13897 * cgraphunit.c (process_common_attributes): New function.
13898 (process_function_and_variable_attributes): Use it.
13900 2011-01-26 Richard Guenther <rguenther@suse.de>
13903 * cgraphbuild.c (record_eh_tables): Record reference to personality
13906 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
13909 * sel-sched.c (moveup_expr): Don't let debug insns prevent
13910 non-debug insns from moving up.
13912 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13915 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13916 t-dlldir{,-x} fragment for build and add it to tmake_file.
13917 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13918 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13919 * config/i386/t-dlldir: New file.
13920 (SHLIB_DLLDIR): Define.
13921 * config/i386/t-dlldir-x: New file.
13922 (SHLIB_DLLDIR): Define.
13923 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13924 (SHLIB_INSTALL): Use it.
13926 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
13929 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13930 lower bound of the allowed Thumb-2 coprocessor load/store
13931 index range to -256. Add explaining comment.
13933 2011-01-25 Ian Lance Taylor <iant@google.com>
13935 * godump.c (go_define): Improve lexing of macro expansion to only
13936 accept expressions which match Go spec.
13938 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13941 * tree.c (handle_dll_attribute): Handle it.
13942 * doc/extend.texi (@item dllexport): Mention it.
13943 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13945 2011-01-25 Ian Lance Taylor <iant@google.com>
13947 PR tree-optimization/26854
13948 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13949 (decl_jump_unsafe): Move higher in file, with no other change.
13950 (bind): Set has_jump_unsafe_decl if appropriate.
13951 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13952 (check_earlier_gotos): Likewise.
13953 (c_check_switch_jump_warnings): Likewise.
13955 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
13957 * doc/invoke.texi (Warning Options): Add missing hyphen.
13958 (-fprofile-dir): Minor grammatical fixes.
13959 (-fbranch-probabilities): Likewise.
13961 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13965 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13967 (no_real_insns_p, schedule_block, set_priorities): Drop special
13968 treatment of boundary debug insns.
13969 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13970 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13971 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13972 (BOUNDARY_DEBUG_INSN_P): Likewise.
13973 (SCHEDULE_DEBUG_INSN_P): Likewise.
13974 * sched-rgn.c (init_ready_list): Drop special treatment of
13975 boundary debug insns.
13976 * final.c (rest_of_clean-state): Clear notes' BB.
13978 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13980 * Makefile.in (LAMBDA_H): Removed.
13981 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13982 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13983 lambda-trans.o, and tree-loop-linear.o.
13984 (lto-symtab.o): Remove dependence on LAMBDA_H.
13985 (tree-loop-linear.o): Remove rule.
13986 (lambda-mat.o): Same.
13987 (lambda-trans.o): Same.
13988 (lambda-code.o): Same.
13989 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13990 (tree-vect-slp.o): Same.
13991 * hwint.h (gcd): Moved here.
13992 (least_common_multiple): Same.
13993 * lambda-code.c: Removed.
13994 * lambda-mat.c: Removed.
13995 * lambda-trans.c: Removed.
13996 * lambda.h: Removed.
13997 * tree-loop-linear.c: Removed.
13998 * lto-symtab.c: Do not include lambda.h.
13999 * omega.c (gcd): Removed.
14000 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14001 * tree-data-ref.c (print_lambda_vector): Moved here.
14002 (lambda_vector_copy): Same.
14003 (lambda_matrix_copy): Same.
14004 (lambda_matrix_id): Same.
14005 (lambda_vector_first_nz): Same.
14006 (lambda_matrix_row_add): Same.
14007 (lambda_matrix_row_exchange): Same.
14008 (lambda_vector_mult_const): Same.
14009 (lambda_vector_negate): Same.
14010 (lambda_matrix_row_negate): Same.
14011 (lambda_vector_equal): Same.
14012 (lambda_matrix_right_hermite): Same.
14013 * tree-data-ref.h: Do not include lambda.h.
14014 (lambda_vector): Moved here.
14015 (lambda_matrix): Same.
14016 (dependence_level): Same.
14017 (lambda_transform_legal_p): Removed declaration.
14018 (lambda_collect_parameters): Same.
14019 (lambda_compute_access_matrices): Same.
14020 (lambda_vector_gcd): Same.
14021 (lambda_vector_new): Same.
14022 (lambda_vector_clear): Same.
14023 (lambda_vector_lexico_pos): Same.
14024 (lambda_vector_zerop): Same.
14025 (lambda_matrix_new): Same.
14026 * tree-flow.h (least_common_multiple): Removed declaration.
14027 * tree-parloops.c (lambda_trans_matrix): Moved here.
14028 (LTM_MATRIX): Same.
14029 (LTM_ROWSIZE): Same.
14030 (LTM_COLSIZE): Same.
14031 (LTM_DENOMINATOR): Same.
14032 (lambda_trans_matrix_new): Same.
14033 (lambda_matrix_vector_mult): Same.
14034 (lambda_transform_legal_p): Same.
14035 * tree-pass.h (pass_linear_transform): Removed declaration.
14036 * tree-ssa-loop.c (tree_linear_transform): Removed.
14037 (gate_tree_linear_transform): Removed.
14038 (pass_linear_transform): Removed.
14039 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14040 flag_loop_interchange.
14042 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14044 PR tree-optimization/47265
14045 PR tree-optimization/47443
14046 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14047 if name still has some uses.
14049 2011-01-25 Martin Jambor <mjambor@suse.cz>
14051 PR tree-optimization/47382
14052 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14053 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14055 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14057 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14058 sjlj_except_unwind_info.
14060 2011-01-25 Richard Guenther <rguenther@suse.de>
14062 PR tree-optimization/47426
14063 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14064 visible functions results escape.
14066 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14069 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14070 (arm_get_frame_offsets): Use it.
14072 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14073 Jakub Jelinek <jakub@redhat.com>
14075 PR tree-optimization/47271
14076 * tree-if-conv.c (bb_postdominates_preds): New.
14077 (if_convertible_bb_p): Call bb_postdominates_preds.
14078 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14079 (predicate_scalar_phi): Call bb_postdominates_preds.
14081 2011-01-25 Nick Clifton <nickc@redhat.com>
14083 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14084 * config/rx/rx.c (rx_function_value): Likewise.
14085 (rx_promote_function_mode): Likewise.
14086 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14087 in order to make it legitimate.
14088 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14089 make sure that the first operand is the same as the result register.
14090 (addsi3_unspec): Delete.
14091 (subdi3): Do not accept immediate operands.
14092 (subdi3_internal): Likewise.
14094 2011-01-25 Jeff Law <law@redhat.com>
14096 PR rtl-optimization/37273
14097 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14098 handle them like argument loads from stack slots. Do not double
14099 count memory for memory constants and argument loads from stack slots.
14101 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14103 PR tree-optimization/47427
14104 PR tree-optimization/47428
14105 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14106 coalesce if the new root var would be TREE_READONLY.
14108 2011-01-25 Richard Guenther <rguenther@suse.de>
14110 PR middle-end/47414
14111 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14112 correct type for TBAA.
14114 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14116 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14117 (close_phi_written_to_memory): Call for_each_index with
14118 dr_indices_valid_in_loop.
14120 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14122 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14123 when it is initialized.
14125 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14127 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14128 call to graphite_find_data_references_in_stmt.
14129 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14130 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14131 call to graphite_find_data_references_in_stmt.
14132 (analyze_drs_in_stmts): Same.
14133 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14134 in which the scalar analysis of indices is performed.
14135 (create_data_ref): Same. Update call to dr_analyze_indices.
14136 (find_data_references_in_stmt): Update call to create_data_ref.
14137 (graphite_find_data_references_in_stmt): Same.
14138 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14140 (create_data_ref): Same.
14141 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14142 call to create_data_ref.
14144 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14146 * graphite-sese-to-poly.c (build_poly_scop): Move
14147 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14149 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14151 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14152 VAR_DECL, PARM_DECL, and RESULT_DECL.
14154 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14156 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14157 in a reduction PBB.
14158 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14159 that have already been marked as PBB_IS_REDUCTION.
14161 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14163 * graphite-scop-detection.c (same_close_phi_node): New.
14164 (remove_duplicate_close_phi): New.
14165 (make_close_phi_nodes_unique): New.
14166 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14168 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14170 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14171 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14172 of both data references to be the same.
14174 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14176 * graphite-dependences.c (build_lexicographical_constraint): Remove
14177 the gdim parameter.
14178 (build_lexicographical_constraint): Adjust call to
14179 ppl_powerset_is_empty.
14180 (dependence_polyhedron): Same.
14181 (graphite_legal_transform_dr): Same.
14182 (graphite_carried_dependence_level_k): Same.
14183 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14185 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14187 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14189 * graphite-sese-to-poly.c
14190 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14191 (close_phi_written_to_memory): New.
14192 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14195 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14197 * doc/install.texi: Update the expected version number of PPL to 0.11.
14198 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14199 #if PPL_VERSION_MINOR < 11.
14201 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14203 * graphite-dependences.c: Include graphite-cloog-util.h.
14204 (new_poly_ddr): Inlined into dependence_polyhedron.
14205 (free_poly_ddr): Moved close by new_poly_ddr.
14206 (dependence_polyhedron_1): Renamed dependence_polyhedron.
14207 Early return NULL when ppl_powerset_is_empty returns true.
14208 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
14209 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
14210 (graphite_legal_transform_dr): Call new_poly_ddr.
14211 (graphite_carried_dependence_level_k): Same.
14212 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
14213 (dot_transformed_deps_stmt_1): Removed.
14214 (dot_deps_stmt_1): Call dot_deps_stmt_2.
14215 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
14216 (dot_deps_1): Call dot_deps_2.
14217 * Makefile.in (graphite-dependences.o): Add missing dependence on
14218 graphite-cloog-util.h.
14220 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14222 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14223 (build_lexicographical_constraint): Same.
14224 (dependence_polyhedron_1): Same.
14225 (graphite_legal_transform_dr): Same.
14226 (graphite_carried_dependence_level_k): Same.
14227 * graphite-ppl.c (ppl_powerset_is_empty): New.
14228 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14229 * tree-data-ref.c (dump_data_reference): Print the basic block index.
14231 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14233 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14234 the "a followed by b" relation and document it.
14236 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14238 * graphite-dependences.c (build_lexicographical_constraint): Stop the
14239 iteration when the bag of constraints is empty.
14241 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14243 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14245 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14247 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14248 nest and two loop depths as parameters.
14249 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14250 lst_perfect_nestify.
14252 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14254 * graphite-dependences.c (print_pddr): Call
14255 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14257 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14259 * graphite-ppl.c (debug_gmp_value): New.
14260 * graphite-ppl.h (debug_gmp_value): Declared.
14262 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
14264 * doc/install.texi: Document availability of cloog-0.16.
14266 2011-01-25 Vladimir Kargov <kargov@gmail.com>
14268 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14269 invalid postdominance info.
14271 2011-01-24 Jan Hubicka <jh@suse.cz>
14274 * doc/extend.texi (weak pragma): Drop claim that it must
14275 appear before definition.
14276 * varasm.c (merge_weak, declare_weak): Only sanity check
14277 that DECL is not output at a time it is declared weak.
14279 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
14281 * machmode.def: Fixed comments.
14283 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
14285 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14287 2011-01-24 Paul Koning <ni1d@arrl.net>
14289 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14292 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
14295 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14296 (block_info): Add scanned and prev.
14297 (move_or_delete_vzeroupper_2): Return if the basic block
14298 has been scanned and the upper 128bit state is unchanged
14299 from the last scan.
14300 (move_or_delete_vzeroupper_1): Return true if the exit
14302 (move_or_delete_vzeroupper): Visit basic blocks using the
14303 work-list based algorithm based on vt_find_locations in
14306 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14308 2011-01-24 Nick Clifton <nickc@redhat.com>
14310 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14311 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14312 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
14313 then define __v850e1__.
14314 * doc/invoke.texi: Document -mv850es.
14316 2011-01-24 Richard Henderson <rth@redhat.com>
14318 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14319 compound unordered comparisons.
14320 * config/rx/rx.c (rx_split_fp_compare): Remove.
14321 * config/rx/rx-protos.h: Update.
14322 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14323 (cbranchsf4): Don't call rx_split_fp_compare.
14324 (*cbranchsf4): Use rx_split_cbranch.
14325 (*cmpsf): Don't accept "i" constraint.
14326 (*conditional_branch): Only valid after reload.
14327 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
14329 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14332 * config/rs6000/altivec.md (vector constant splitters): Add
14333 support for creating vector single precision constants if -mvsx is
14334 used and we would create the constant using Altivec primitives.
14336 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
14337 Richard Sandiford <rdsandiford@googlemail.com>
14339 PR rtl-optimization/47166
14340 * reload1.c (emit_reload_insns): Disable the spill_reg_store
14341 mechanism for PRE_MODIFY and POST_MODIFY.
14342 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14345 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
14347 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14349 2011-01-22 Jan Hubicka <jh@suse.cz>
14352 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14354 2011-01-22 Jan Hubicka <jh@suse.cz>
14356 PR tree-optimization/43884
14358 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14359 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14361 2011-01-22 Anatoly Sokolov <aesok@post.ru>
14363 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14364 * config/s390/s390.c (s390_register_move_cost,
14365 s390_memory_move_cost): New.
14366 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14368 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14370 PR middle-end/47401
14371 * except.c (sjlj_assign_call_site_values): Move setting the
14372 crtl->uses_eh_lsda flag to ...
14373 (sjlj_mark_call_sites): ... here.
14374 (sjlj_emit_function_enter): Support NULL dispatch label.
14375 (sjlj_build_landing_pads): In a function with no landing pads
14376 that still has must-not-throw regions, generate code to register
14377 a personality function with empty LSDA.
14379 2011-01-21 Richard Henderson <rth@redhat.com>
14381 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14383 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14385 * compare-elim.c: New file.
14386 * Makefile.in (OBJS-common): Add it.
14387 (compare-elim.o): New.
14388 * common.opt (fcompare-elim): New.
14389 * opts.c (default_options_table): Add OPT_fcompare_elim.
14390 * tree-pass.h (pass_compare_elim_after_reload): New.
14391 * passes.c (init_optimization_passes): Add it.
14392 * recog.h: Protect against re-inclusion.
14393 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14394 * doc/invoke.texi (-fcompare-elim): Document it.
14395 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14396 * doc/tm.texi: Rebuild.
14398 2011-01-22 Nick Clifton <nickc@redhat.com>
14400 * config/rx/rx.md (cstoresf4): Pass comparison operator to
14401 rx_split_fp_compare.
14403 2011-01-22 Nick Clifton <nickc@redhat.com>
14405 * config/rx/rx.md (UNSPEC_CONST): New.
14406 (deallocate_and_return): Wrap the amount popped off the stack in
14407 an UNSPEC_CONST in order to stop it being rejected by
14408 -mmax-constant-size.
14409 (pop_and_return): Add a "(return)" rtx.
14410 (call): Drop the immediate operand.
14411 (call_internal): Likewise.
14412 (call_value): Likewise.
14413 (call_value_internal): Likewise.
14414 (sibcall_internal): Likewise.
14415 (sibcall_value_internal): Likewise.
14416 (sibcall): Likewise. Generate an explicit call using
14418 (sibcall_value): Likewise.
14419 (mov<>): FAIL if a constant operand is not legitimate.
14420 (addsi3_unpsec): New pattern.
14422 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14423 (ok_for_max_constant): New function.
14424 (gen_safe_add): New function.
14425 (rx_expand_prologue): Use gen_safe_add.
14426 (rx_expand_epilogue): Likewise.
14427 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
14430 2011-01-21 Jeff Law <law@redhat.com>
14432 PR tree-optimization/47053
14433 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14434 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14435 statements are deleted.
14436 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
14437 is nonempty, then purge dead edges and cleanup the CFG.
14439 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14442 Temporarily revert:
14443 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14445 * tree-dfa.c (create_var_ann): Mark variable as used.
14447 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14449 PR middle-end/45566
14450 * except.c (convert_to_eh_region_ranges): Emit queued no-region
14451 notes from other section in hot/cold partitioning even if
14452 last_action is -3. Increment call_site_base.
14454 PR rtl-optimization/47366
14455 * fwprop.c (forward_propagate_into): Return bool. If
14456 any changes are made, -fnon-call-exceptions is used and
14457 REG_EH_REGION note is present, call purge_dead_edges
14458 and return true if it purged anything.
14459 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14460 any EH edges were purged.
14462 2011-01-21 Jeff Law <law@redhat.com>
14464 PR rtl-optimization/41619
14465 * caller-save.c (setup_save_areas): Break out code to determine
14466 which hard regs are live across calls by examining the reload chains
14467 so that it is always used.
14468 Eliminate code which checked REG_N_CALLS_CROSSED.
14470 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14472 PR tree-optimization/47355
14473 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14474 NOP has non-debug uses beyond PHIs in new_bb.
14476 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14479 * cfgexpand.c (account_used_vars_for_block): Only account vars
14480 that are annotated as used.
14481 (estimated_stack_frame_size): Don't set TREE_USED.
14482 * tree-dfa.c (create_var_ann): Mark variable as used.
14484 2011-01-21 Richard Guenther <rguenther@suse.de>
14486 PR middle-end/47395
14487 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14489 2011-01-21 Richard Guenther <rguenther@suse.de>
14491 PR tree-optimization/47365
14492 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14493 (vn_reference_lookup_pieces): Adjust.
14494 (vn_reference_lookup): Likewise.
14495 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14496 (vn_reference_lookup_3): Only look through kills if in
14497 VN_WALKREWRITE mode.
14498 (vn_reference_lookup_pieces): Adjust.
14499 (vn_reference_lookup): Likewise.
14500 (visit_reference_op_load): Likewise.
14501 (visit_reference_op_store): Likewise.
14502 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14503 (compute_avail): Likewise.
14504 (eliminate): Likewise.
14506 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14508 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14509 DECL_IGNORED_P non-reg vars if they are used.
14511 PR tree-optimization/47391
14512 * varpool.c (const_value_known_p): Return false if
14515 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
14518 * config/i386/i386.c (ix86_local_alignment): Handle
14519 case for va_list_type_node is nil.
14520 (ix86_canonical_va_list_type): Likewise.
14522 2011-01-21 Alan Modra <amodra@gmail.com>
14524 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
14525 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
14527 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14529 * config/arm/arm.md (define_attr type): Rename f_load
14530 and f_store to f_fpa_load and f_fpa_store. Update.
14531 (write_conflict): Deal with rename fallout.
14532 (*push_fp_multi): Likewise.
14533 * config/arm/fpa.md (f_load): Use f_fpa_load.
14534 (f_store): Use f_fpa_store.
14535 (*movsf_fpa): Likewise.
14536 (*movdf_fpa): Likewise.
14537 (*movxf_fpa): Likewise.
14538 (*thumb2_movsf_fpa): Likewise.
14539 (*thumb2_movdf_fpa): Likewise.
14540 (*thumb2_movxf_fpa): Likewise.
14541 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
14542 f_loadd and f_stored.
14543 (*thumb2_movdi_vfp): Likewise.
14544 (*thumb2_movsf_vfp): Fix attribute to f_loads.
14545 (*thumb2_movsi_vfp): Likewise.
14546 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
14547 Use f_loads instead of f_load.
14548 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
14550 2011-01-20 Anatoly Sokolov <aesok@post.ru>
14552 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14553 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
14554 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14555 (xtensa_mode_dependent_address_p): New function.
14556 (constantpool_address_p): Make static. Change return type to bool.
14557 Change argument type to const_rtx. Use CONST_INT_P predicate.
14559 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
14562 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
14564 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14567 * cfgexpand.c (expand_debug_expr): Instead of generating
14568 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
14571 2011-01-20 Richard Guenther <rguenther@suse.de>
14573 PR middle-end/47370
14574 * tree-inline.c (remap_gimple_op_r): Recurse manually for
14575 the pointer operand of MEM_REFs.
14577 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14579 PR tree-optimization/46130
14580 * ipa-split.c (consider_split): If return_bb contains non-virtual
14581 PHIs other than for retval or if split_function would not adjust it,
14584 2011-01-20 Richard Guenther <rguenther@suse.de>
14586 PR tree-optimization/47167
14587 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14588 Revert previous change, only avoid enumeral type changes.
14590 2011-01-19 Mike Stump <mikestump@comcast.net>
14592 * doc/tm.texi.in (BRANCH_COST): Englishify.
14593 * doc/tm.texi (BRANCH_COST): Likewise.
14595 2011-01-19 Dodji Seketeli <dodji@redhat.com>
14598 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14599 (gen_scheduled_generic_parms_dies): New functions.
14600 (gen_struct_or_union_type_die): Schedule template parameters DIEs
14601 generation for the end of CU compilation.
14602 (dwarf2out_finish): Generate template parameters DIEs here.
14604 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14607 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14608 debug bind stmt on merge edges.
14610 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14614 * function.c (instantiate_expr): Instantiate incoming rtl of
14615 implicit arguments, and recurse on VALUE_EXPRs.
14616 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14617 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14619 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14621 * c-parser.c (c_parser_for_statement): Initialize
14622 collection_expression.
14624 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14626 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14628 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14630 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14631 (LINK_SHLIB_SPEC): Don't use %(link_path).
14632 (SUBTARGET_EXTRA_SPECS): Remove link_path.
14634 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14636 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14637 (NO_SHARED_LIB_SUPPORT): Remove.
14638 (LINK_SHLIB_SPEC): Remove one conditional definition.
14640 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14642 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14644 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14645 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14646 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14647 %{call_shared} and conditionals on these options not being passed.
14648 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14651 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14653 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14656 * ipa-split.c: Spelling fixes.
14658 2011-01-19 Richard Henderson <rth@redhat.com>
14660 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14661 (*mulsi3): Likewise.
14663 * longlong.h [__mn10300__] (count_leading_zeros): New.
14664 [__mn10300__] (umul_ppmm, smul_ppmm): New.
14665 [__mn10300__] (add_ssaaaa, subddmmss): New.
14666 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14667 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14669 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14671 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14673 2011-01-19 Richard Henderson <rth@redhat.com>
14675 * config/mn10300/mn10300.md (addsi3_flags): New.
14676 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14677 (subsi3_flags, subc_internal, subdi3): New.
14678 (subdi3_internal, *subdi3_degenerate): New.
14679 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14681 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14682 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14683 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
14684 * config/mn10300/mn10300-protos.h: Update.
14685 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14686 (return_ret): Likewise. Rename from return_internal_regs.
14687 (return_internal): Remove.
14689 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14690 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14691 (mn10300_legitimate_constant_p): Likewise.
14692 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14693 (mn10300_frame_size): New.
14694 (mn10300_expand_prologue): Use it.
14695 (mn10300_expand_epilogue): Likewise.
14696 (mn10300_initial_offset): Likewise.
14697 * config/mn10300/mn10300-protos.h: Update.
14698 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14699 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14700 (prologue, epilogue, return_internal): Tidy output code.
14701 (mn10300_store_multiple_operation, return): Likewise.
14702 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14703 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14704 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14705 (load_pic, am33_load_pic): New.
14706 (mn10300_load_pic0, mn10300_load_pic1): New.
14708 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14709 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14710 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14711 (cc_flags_for_mode, cc_flags_for_code): New.
14712 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14713 overflow flag is not valid. Validate that the flags we need
14714 for the comparison are valid.
14715 (mn10300_output_cmp): Remove.
14716 (mn10300_output_add): New.
14717 (mn10300_select_cc_mode): Use cc_flags_for_code.
14718 (mn10300_split_cbranch): New.
14719 (mn10300_match_ccmode): New.
14720 (mn10300_split_and_operand_count): New.
14721 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14723 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14724 (addsi3): ... here. Use mn10300_output_add.
14725 (*addsi3_flags): New.
14726 (*am33_subsi3, *mn10300_subsi3): Merge...
14727 (subsi3): ... here. Use attribute isa.
14728 (*subsi3_flags): New.
14729 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
14731 (*am33_andsi3, *mn10300_andsi3): Merge...
14732 (andsi3): ... here.
14733 (*andsi3_flags): New.
14734 (andsi3 splitters): New.
14735 (*am33_iorsi3, *mn10300_iorsi3): Merge...
14736 (iorsi3): ... here.
14737 (*iorsi3_flags): New.
14738 (*am33_xorsi3, *mn10300_xorsi3): Merge...
14739 (xorsi3): ... here.
14740 (*xorsi3_flags): New.
14741 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14742 (one_cmplsi2): ... here.
14743 (*one_cmplsi2_flags): New.
14744 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
14745 instead of "dax" in constraints. Use mn10300_split_cbranch.
14746 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
14747 use matching constraints to eliminate a self-comparison.
14748 (*integer_conditional_branch): Rename from integer_conditional_branch.
14749 Use int_mode_flags to match CC_REG.
14750 (*cbranchsi4_btst, *btstsi): New.
14751 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
14752 mn10300_split_cbranch.
14753 (*am33_cmpsf): Rename from am33_cmpsf.
14754 (*float_conditional_branch): Rename from float_conditional_branch.
14755 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14756 (zero_extendqisi2): ... here.
14757 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14758 (zero_extendhisi2): ... here.
14759 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14760 (extendqisi2): ... here.
14761 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14762 (extendhisi2): ... here.
14763 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14764 (ashlsi3): ... here.
14765 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14766 (lshrsi3): ... here.
14767 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14768 (ashrsi3): ... here.
14769 (consecutive add peephole): Remove.
14770 * config/mn10300/predicates.md (label_ref_operand): New.
14771 (int_mode_flags): New.
14772 (CCZN_comparison_operator): New.
14774 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14775 (throughput_42_latency_43): New reservation.
14776 (mulsidi3, umulsidi3): New expanders.
14777 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
14778 the MDR register to allocation; separately allocate the low and
14779 high parts of the DImode result.
14780 (umulsidi3_internal): Similarly.
14781 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14782 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
14783 (udivsi3, umodsi3): Remove.
14784 (udivmodsi4, divmodsi4): New expanders.
14785 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
14786 (*divmodsi4): Simiarly.
14787 (ext_internal): New.
14789 * config/mn10300/constraints.md ("z"): New constraint.
14790 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
14791 (FIXED_REGISTERS): Don't fix MDR.
14792 (CALL_USED_REGSITERS): Reformat nicely.
14793 (REG_ALLOC_ORDER): Add MDR.
14794 (enum regclass): Add MDR_REGS.
14795 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
14796 (IRA_COVER_CLASSES): Add MDR_REGS.
14797 (REGNO_REG_CLASS): Handle MDR_REG.
14798 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
14799 (mn10300_register_move_cost): Likewise.
14800 * config/mn10300/mn10300.md (MDR_REG): New.
14801 (*movsi_internal): Handle moves to/from MDR_REGS.
14803 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
14805 (mn10300_secondary_reload): Tidy combination reload classes.
14806 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
14807 addresses for AM33. Allow symbolic offsets for reg+imm.
14808 (mn10300_regno_in_class_p): New.
14809 (mn10300_legitimize_reload_address): New.
14810 * config/mn10300/mn10300.h (enum reg_class): Remove
14811 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14812 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
14813 SP_OR_GENERAL_REGS.
14814 (REG_CLASS_NAMES): Update to match.
14815 (REG_CLASS_CONTENTS): Likewise.
14816 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14817 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14818 (REGNO_IN_RANGE_P): Remove.
14819 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14820 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14821 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14822 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14823 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14824 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14825 (REGNO_GENERAL_P): New.
14826 (HAVE_POST_MODIFY_DISP): New.
14827 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14828 (LEGITIMIZE_RELOAD_ADDRESS): New.
14829 * config/mn10300/mn10300-protos.h: Update.
14831 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
14832 DATA_REGS for AM33 stack-pointer destination.
14833 (mn10300_preferred_output_reload_class): Likewise.
14834 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
14835 into a form appropriate for ...
14836 (TARGET_SECONDARY_RELOAD): New.
14837 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
14838 * config/mn10300/mn10300-protos.h: Update.
14839 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
14840 reload_insi; use the "A" constraint for the scratch; handle AM33
14841 moves of sp to non-address registers.
14843 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
14844 (*movqi_internal): ... here.
14845 (*am33_movhi, *mn10300_movhi): Merge into...
14846 (*movhi_internal): ... here.
14847 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
14848 as the source/destination of moves from/to SP.
14849 (movsf): Only allow for AM33-2.
14850 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
14851 any integer constant constraint. Only allow for AM33-2. Tidy
14852 all of the alternative outputs.
14853 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
14854 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
14856 (udivsi3, umodsi3): New patterns for MN103 only.
14858 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
14860 * doc/tm.texi.in: Spell out that a lack of register class unions
14862 * doc/tm.texi: Regenerate.
14864 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14866 PR rtl-optimization/47337
14867 * dce.c (check_argument_store): New function.
14868 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
14870 PR tree-optimization/47290
14871 * tree-eh.c (infinite_empty_loop_p): New function.
14872 (cleanup_empty_eh): Use it.
14874 2011-01-18 Steve Ellcey <sje@cup.hp.com>
14877 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
14878 (a64_expand_widen_sum): Ditto.
14879 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
14880 (vec_extract_evenodd_help): Ditto.
14881 (vec_extract_evenv4hi): Ditto.
14882 (vec_extract_oddv4hi): Ditto.
14883 (vec_extract_evenv2si): Ditto.
14884 (vec_extract_oddv2si): Ditto.
14885 (vec_extract_evenv2sf): Ditto.
14886 (vec_extract_oddv2sf): Ditto.
14887 (vec_pack_trunc_v4hi: Ditto.
14888 (vec_pack_trunc_v2si): Ditto.
14889 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
14890 (vec_interleave_highv8qi): Ditto.
14892 (vec_extract_oddv8qi): Ditto.
14893 (vec_interleave_lowv4hi): Ditto.
14894 (vec_interleave_highv4hi): Ditto.
14895 (vec_interleave_lowv2si): Ditto.
14896 (vec_interleave_highv2si): Ditto.
14898 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14900 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
14901 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
14902 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
14903 (pa_c_mode_for_suffix): New.
14904 (TARGET_EXPAND_BUILTIN): Define.
14905 (TARGET_C_MODE_FOR_SUFFIX): Define.
14906 (pa_builtins): Define.
14907 (pa_init_builtins): Register __float128 type and init new support
14909 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14910 * config/pa/quadlib.c (_U_Qfcopysign): New.
14912 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
14914 PR middle-end/46894
14915 * explow.c (allocate_dynamic_stack_space): Do not assume more than
14916 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14919 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14921 PR tree-optimization/47179
14922 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14923 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14925 2011-01-18 Richard Guenther <rguenther@suse.de>
14927 PR rtl-optimization/47216
14928 * emit-rtl.c: Include tree-flow.h.
14929 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14930 of replicating it with different semantics.
14931 * Makefile.in (emit-rtl.o): Adjust.
14933 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14935 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14936 (cortex_a9_dp): Handle neon types correctly.
14938 2011-01-18 Jakub Jelinek <jakub@redhat.com>
14940 PR rtl-optimization/47299
14941 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14942 subtarget. Use normal multiplication if both operands are constants.
14943 * expmed.c (expand_widening_mult): Don't try to optimize constant
14944 multiplication if op0 has VOIDmode. Convert op1 constant to mode
14947 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14949 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
14950 spacing after 'e.g.', typos, comma, hyphenation.
14952 2011-01-17 Richard Henderson <rth@redhat.com>
14954 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14955 (rx_restricted_mem_operand): New.
14956 (rx_shift_operand): Use register_operand.
14957 (rx_source_operand, rx_compare_operand): Likewise.
14958 * config/rx/rx.md (addsi3_flags): New expander.
14959 (adddi3): Rewrite as expander.
14960 (adc_internal, *adc_flags, adddi3_internal): New patterns.
14961 (subsi3_flags): New expander.
14962 (subdi3): Rewrite as expander.
14963 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14965 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14966 (rx_init_builtins): Remove sat builtin.
14967 (rx_expand_builtin): Likewise.
14968 * config/rx/rx.md (ssaddsi3): New.
14969 (*sat): Rename from sat. Represent the CC_REG input.
14971 * config/rx/predicates.md (rshift_operator): New.
14972 * config/rx/rx.c (rx_expand_insv): Remove.
14973 * config/rx/rx-protos.h: Update.
14974 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
14975 operand to the canonical position.
14976 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14977 (*bitclr, *bitclr_in_memory): Similarly.
14978 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14979 (insv): Retain the zero_extract in the expansion.
14981 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14982 (bswaphi2, bitinvert, revw): Likewise.
14984 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14985 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14986 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14987 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14988 (bitset, bitset_in_memory): Likewise.
14989 (bitinvert, bitinvert_in_memory): Likewise.
14990 (bitclr, bitclr_in_memory): Likewise.
14991 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14992 (rx_strend, rx_cmpstrn): Likewise.
14993 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
14994 (bitop peep2 patterns): Remove.
14996 * config/rx/rx.c (rx_match_ccmode): New.
14997 * config/rx/rx-protos.h: Update.
14998 * config/rx/rx.md (abssi2): Clobber, don't set flags.
14999 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15000 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15001 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15002 (fix_truncsfsi2, floatsisf2): Likewise.
15003 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15004 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15005 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15006 (*subsi3_flags, *xorsi3_flags): New.
15008 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15010 * config/rx/rx.c (rx_print_operand): Remove workaround for
15011 unsplit comparison operations.
15013 * config/rx/rx.md (movsicc): Split after reload.
15014 (*movsicc): Merge *movsieq and *movsine via match_operator.
15015 (*stcc): New pattern.
15017 * config/rx/rx.c (rx_float_compare_mode): Remove.
15018 * config/rx/rx.h (rx_float_compare_mode): Remove.
15019 * config/rx/rx.md (cstoresi4): Split after reload.
15020 (*sccc): New pattern.
15022 * config/rx/predicates.md (label_ref_operand): New.
15023 (rx_z_comparison_operator): New.
15024 (rx_zs_comparison_operator): New.
15025 (rx_fp_comparison_operator): New.
15026 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15027 Validate that the flags are set properly for the comparison.
15028 (rx_gen_cond_branch_template): Remove.
15029 (rx_cc_modes_compatible): Remove.
15030 (mode_from_flags): New.
15031 (flags_from_code): Rename from flags_needed_for_conditional.
15032 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15033 (rx_select_cc_mode): Likewise.
15034 (rx_split_fp_compare): New.
15035 (rx_split_cbranch): New.
15036 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15037 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15038 (*cbranchsf4): Similarly.
15039 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15040 match_operator and rx_split_cbranch.
15041 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15042 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15043 (*cmpsi): Rename from cmpsi.
15044 (*tstsi): Rename from tstsi.
15045 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15046 (*conditional_branch): Rename from conditional_branch.
15047 (*reveresed_conditional_branch): Remove.
15048 (b<code>): Remove expander.
15049 * config/rx/rx-protos.h: Update.
15051 * config/rx/rx.c (rx_compare_redundant): Remove.
15052 * config/rx/rx.md (cmpsi): Don't use it.
15053 * config/rx/rx-protos.h: Update.
15055 * config/rx/rx-modes.def (CC_F): New mode.
15056 * config/rx/rx.c (rx_select_cc_mode): New.
15057 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15058 * config/rx/rx-protos.h: Update.
15060 2011-01-17 Richard Henderson <rth@redhat.com>
15062 * except.c (dump_eh_tree): Fix stray ; after for statement.
15064 2011-01-17 Richard Guenther <rguenther@suse.de>
15066 PR tree-optimization/47313
15067 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15068 handling before copying the body. Properly deal with
15069 by-reference result in SSA form.
15071 2011-01-17 Ian Lance Taylor <iant@google.com>
15074 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15075 (struct_value_alias_set): Don't define.
15076 (sparc_option_override): Don't set sparc_sr_alias_set and
15077 struct_value_alias_set.
15078 (save_or_restore_regs): Use gen_frame_mem rather than calling
15080 (sparc_struct_value_rtx): Likewise.
15082 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15085 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15086 (_mm_maskstore_pd): Likewise.
15087 (_mm_maskload_ps): Likewise.
15088 (_mm_maskstore_ps): Likewise.
15089 (_mm256_maskload_pd): Change mask to __m256i.
15090 (_mm256_maskstore_pd): Likewise.
15091 (_mm256_maskload_ps): Likewise.
15092 (_mm256_maskstore_ps): Likewise.
15094 * config/i386/i386-builtin-types.def: Updated.
15095 (ix86_expand_special_args_builtin): Likewise.
15097 * config/i386/i386.c (bdesc_special_args): Update
15098 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15099 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15100 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15101 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15103 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15104 Use <avxpermvecmode> on mask register.
15105 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15107 2011-01-17 Olivier Hainque <hainque@adacore.com>
15108 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15109 Eric Botcazou <ebotcazou@adacore.com>
15112 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15113 if <= USHRT_MAX in 32-bit mode.
15115 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15117 * doc/install.texi (Configuration, Specific): Wrap long
15118 lines in examples. Allow line wrapping in long options
15119 and URLs where beneficial for PDF output.
15121 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15123 * config/mips/mips.c (mips_classify_symbol): Don't return
15124 SYMBOL_PC_RELATIVE for nonlocal labels.
15126 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15128 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15130 2011-01-15 Jan Hubicka <jh@suse.cz>
15132 PR tree-optimization/47276
15133 * ipa.c (function_and_variable_visibility): Do not try to mark alias
15134 declarations as needed.
15136 2011-01-15 Martin Jambor <mjambor@suse.cz>
15138 * common.opt (fdevirtualize): New flag.
15139 * doc/invoke.texi (Option Summary): Document it.
15140 * opts.c (default_options_table): Add devirtualize flag.
15141 * ipa-prop.c (detect_type_change): Return immediately if
15142 devirtualize flag is not set.
15143 (detect_type_change_ssa): Likewise.
15144 (compute_known_type_jump_func): Likewise.
15145 (ipa_analyze_virtual_call_uses): Likewise.
15147 2011-01-14 Martin Jambor <mjambor@suse.cz>
15149 PR tree-optimization/45934
15150 PR tree-optimization/46302
15151 * ipa-prop.c (type_change_info): New type.
15152 (stmt_may_be_vtbl_ptr_store): New function.
15153 (check_stmt_for_type_change): Likewise.
15154 (detect_type_change): Likewise.
15155 (detect_type_change_ssa): Likewise.
15156 (compute_complex_assign_jump_func): Check for dynamic type change.
15157 (compute_complex_ancestor_jump_func): Likewise.
15158 (compute_known_type_jump_func): Likewise.
15159 (compute_scalar_jump_functions): Likewise.
15160 (ipa_analyze_virtual_call_uses): Likewise.
15161 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15163 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15165 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15166 * config/i386/i386.opt (msse5): New Alias.
15168 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15170 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15171 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15172 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15173 * config/sparc/sparc.h (CC1_SPEC): Likewise.
15175 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15177 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15179 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15180 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15181 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15182 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15184 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15186 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15188 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15190 2011-01-14 Mike Stump <mikestump@comcast.net>
15192 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15193 * config/fr30/fr30.md: Likweise
15194 (movsi_push): Likewise.
15195 (movsi_pop): Likewise.
15196 (enter_func): Likewise.
15197 * config/moxie/moxie.md (movsi_push): Likewise.
15198 (movsi_pop): Likewise.
15200 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15202 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15203 %{no_archive} %{exact_version}.
15204 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15205 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15206 %{no_archive} %{exact_version}.
15207 * config/mips/openbsd.h (LINK_SPEC): Likewise.
15208 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15209 * config/mips/vxworks.h: Likewise.
15211 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15213 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15215 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15217 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15218 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15220 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15222 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15225 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15227 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15229 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15230 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15232 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15233 Don't handle -shlib.
15235 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15237 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15238 (CC1_SPEC): Don't handle -profile.
15240 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15242 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15243 * config/mips/mips.h (CC1_SPEC): Likewise.
15245 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15247 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15248 * config/mips/mips.h (CC1_SPEC): Likewise.
15250 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15252 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15253 * config/m32r/linux.h (LINK_SPEC): Likewise.
15254 * config/mips/linux.h (LINK_SPEC): Likewise.
15255 * config/mips/linux64.h (LINK_SPEC): Likewise.
15256 * config/sparc/linux.h (LINK_SPEC): Likewise.
15257 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15258 LINK_SPEC): Likewise.
15259 * config/xtensa/linux.h (LINK_SPEC): Likewise.
15261 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15263 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15265 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15267 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15269 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15270 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15272 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15274 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15276 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15278 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15279 supports -Bstatic/-Bdynamic.
15280 * configure: Regenerate.
15282 2011-01-14 Jan Hubicka <jh@suse.cz>
15283 Jack Howarth <howarth@bromo.med.uc.edu>
15286 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15287 when checking debug_info_level. Test write_symbols instead of
15288 debug_hooks->var_location when setting flag_var_tracking_uninit.
15290 2011-01-14 Richard Guenther <rguenther@suse.de>
15292 PR tree-optimization/47179
15293 * target.def (ref_may_alias_errno): New target hook.
15294 * targhooks.h (default_ref_may_alias_errno): Declare.
15295 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15296 (default_ref_may_alias_errno): New function.
15297 * target.h (struct ao_ref_s): Declare.
15298 * tree-ssa-alias.c: Include target.h.
15299 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15300 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15301 (targhooks.o): Likewise.
15302 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15303 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15305 2011-01-14 Richard Guenther <rguenther@suse.de>
15307 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
15309 2011-01-14 Richard Guenther <rguenther@suse.de>
15311 PR tree-optimization/47280
15312 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15313 return CFG changes.
15314 (tree_ssa_forward_propagate_single_use_vars): Deal with
15315 CFG changes from associate_plusminus.
15317 2011-01-14 Richard Guenther <rguenther@suse.de>
15319 PR middle-end/47281
15321 2011-01-11 Richard Guenther <rguenther@suse.de>
15323 PR tree-optimization/46076
15324 * tree-ssa.c (useless_type_conversion_p): Conversions from
15325 unprototyped to empty argument list function types are useless.
15327 2011-01-14 Richard Guenther <rguenther@suse.de>
15329 PR tree-optimization/47286
15330 * tree-ssa-structalias.c (new_var_info): Register variables are global.
15332 2011-01-14 Martin Jambor <mjambor@suse.cz>
15334 PR middle-end/46823
15335 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15337 2011-01-13 Anatoly Sokolov <aesok@post.ru>
15339 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15340 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15341 * config/xtensa/xtensa.c (xtensa_libcall_value,
15342 xtensa_function_value_regno_p): New functions.
15343 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15345 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
15348 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15350 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15351 New function prototype.
15352 * config/i386/winnt.c (i386_pe_assemble_visibility):
15353 Warn only if attribute was specified by user.
15355 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15358 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15360 (floatunsdidf2_fcfidu): Ditto.
15362 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15364 * config/s390/s390.c (print_operand_address): Replace 'error' with
15365 'output_operand_lossage'.
15366 (print_operand): Likewise.
15368 2011-01-13 Jeff Law <law@redhat.com>
15370 PR rtl-optimization/39077
15371 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15372 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15373 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15374 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15375 * gcse.c (prune_insertions_deletions): New function.
15376 (compute_pre_data): Use it.
15378 2011-01-13 Dodji Seketeli <dodji@redhat.com>
15381 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15383 (prune_unused_types_mark): Use it.
15385 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
15387 PR rtl-optimization/45352
15388 * sel-sched.c: Update copyright years.
15389 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15390 in the advancing loop when we have issued issue_rate insns.
15392 2011-01-12 Richard Henderson <rth@redhat.com>
15394 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15395 (TARGET_MD_ASM_CLOBBERS): New.
15397 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15398 (TARGET_DELEGITIMIZE_ADDRESS): New.
15400 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15401 (clzsi2, *bsch): New patterns.
15403 * config/mn10300/mn10300.md (INT): New mode iterator.
15404 (*mov<INT>_clr): New pattern, and peep2 to generate it.
15406 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15407 flag_split_wide_types.
15409 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15410 (mn10300_trampoline_init): Rewrite without a template, an immediate
15411 load and a direct branch.
15412 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15414 2011-01-12 Anatoly Sokolov <aesok@post.ru>
15416 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15417 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15418 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15419 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15421 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
15424 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15427 2011-01-12 Jan Hubicka <jh@suse.cz>
15430 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15431 (PLUGIN_COND_CLOSE): New macro.
15432 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15434 2011-01-12 Richard Guenther <rguenther@suse.de>
15437 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15438 register variables in a MEM_REF.
15440 2011-01-12 Joseph Myers <joseph@codesourcery.com>
15442 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15443 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15444 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15445 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15446 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15447 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15448 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15449 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15450 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15451 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15452 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15453 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15454 * config/gnu-user.h: New. Copied from linux.h.
15455 (LINUX_TARGET_STARTFILE_SPEC): Rename to
15456 GNU_USER_TARGET_STARTFILE_SPEC.
15457 (LINUX_TARGET_ENDFILE_SPEC): Rename to
15458 GNU_USER_TARGET_ENDFILE_SPEC.
15459 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15460 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15461 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15462 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15463 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15464 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15465 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15466 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15467 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15468 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15469 * config/arm/linux-eabi.h (CC1_SPEC): Use
15470 GNU_USER_TARGET_CC1_SPEC.
15471 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15472 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15473 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15474 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15475 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15476 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15477 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15478 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15480 2011-01-12 Richard Guenther <rguenther@suse.de>
15483 * doc/invoke.texi (ffast-math): Document it is turned on
15486 2011-01-12 Jan Hubicka <jh@suse.cz>
15488 PR tree-optimization/47233
15489 * opts.c (common_handle_option): Disable ipa-reference with profile
15492 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15494 * c-parser.c (c_parser_objc_at_property_declaration): Improved
15497 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15499 * c-parser.c (c_lex_one_token): Updated and reindented some
15500 comments. No changes in code.
15502 2011-01-11 Ian Lance Taylor <iant@google.com>
15504 * godump.c (go_output_var): Don't output the variable if there is
15505 already a type with the same name.
15507 2011-01-11 Ian Lance Taylor <iant@google.com>
15509 * godump.c (go_format_type): Don't generate float80.
15511 2011-01-11 Richard Henderson <rth@redhat.com>
15513 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15514 declaration. Rewrite for both speed and size.
15515 (mn10300_address_cost_1): Remove.
15516 (mn10300_register_move_cost): New.
15517 (mn10300_memory_move_cost): New.
15518 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
15519 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
15520 extensions, shifts, BSWAP, CLZ.
15521 (mn10300_wide_const_load_uses_clr): Remove.
15522 (TARGET_REGISTER_MOVE_COST): New.
15523 (TARGET_MEMORY_MOVE_COST): New.
15524 * config/mn10300/mn10300-protos.h: Update.
15525 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
15527 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
15528 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
15529 * config/mn10300/mn10300-protos.h: Update.
15530 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15531 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15532 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15533 (*test_int_bitfield, *test_byte_bitfield): Remove.
15534 (*bit_test, *subreg_bit_test): Remove.
15535 * config/mn10300/predicates.md (const_8bit_operand): Remove.
15537 * config/mn10300/constraints.md ("c"): Rename from "A".
15538 ("A", "D"): New constraint letters.
15539 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
15540 (fmssf4, fnmasf4, fnmssf4): Likewise.
15542 * config/mn10300/mn10300.md (isa): New attribute.
15543 (enabled): New attribute.
15545 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
15546 (abssf2, negsf2): Define only for hardware fp.
15547 (sqrtsf2): Reformat.
15548 (addsf3, subsf3, mulsf3): Merge expander and insn.
15550 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
15551 (DEBUGGER_AUTO_OFFSET): Remove.
15552 (DEBUGGER_ARG_OFFSET): Remove.
15554 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
15555 Emit register stores with the same offsets as the hardware.
15556 (mn10300_store_multiple_operation): Don't check that the register
15557 save offsets are monotonic.
15558 * config/mn10300/mn10300-protos.h: Update.
15560 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
15562 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
15563 in terms of the value on the stack, not the MDR register.
15565 2011-01-11 Jan Hubicka <jh@suse.cz>
15569 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
15570 (symbol_alias_set_destroy, symbol_alias_set_contains,
15571 propagate_aliases_backward): Declare.
15572 * lto-streamer-out.c (struct sets): New sturcture.
15573 (trivally_defined_alias): New function.
15574 (output_alias_pair_p): Rewrite.
15575 (output_unreferenced_globals): Fix output of alias pairs.
15576 (produce_symtab): Likewise.
15577 * ipa.c (function_and_variable_visibility): Set weak alias destination
15579 * varasm.c (symbol_alias_set_t): Remove.
15580 (symbol_alias_set_destroy): Export.
15581 (propagate_aliases_forward, propagate_aliases_backward): New functions
15583 (compute_visible_aliases): ... this one; remove.
15584 (trivially_visible_alias): New
15585 (trivially_defined_alias): New.
15586 (remove_unreachable_alias_pairs): Rewrite.
15587 (finish_aliases_1): Reorganize code checking if alias is defined.
15588 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15591 2011-01-11 Richard Guenther <rguenther@suse.de>
15593 PR tree-optimization/46076
15594 * tree-ssa.c (useless_type_conversion_p): Conversions from
15595 unprototyped to empty argument list function types are useless.
15597 2011-01-11 Richard Guenther <rguenther@suse.de>
15599 PR middle-end/45235
15600 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15601 volatile MEMs as MEM_READONLY_P.
15603 2011-01-11 Richard Guenther <rguenther@suse.de>
15605 PR tree-optimization/47239
15606 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15608 2011-01-11 Jeff Law <law@redhat.com>
15610 PR tree-optimization/47086
15611 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15612 IVs from statements that might throw.
15614 2011-01-10 Jan Hubicka <jh@suse.cz>
15617 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15619 2011-01-10 Jan Hubicka <jh@suse.cz>
15622 * profile.c (read_profile_edge_counts): Ignore profile inconistency
15623 when correcting profile.
15625 2011-01-10 Jan Hubicka <jh@suse.cz>
15628 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15629 DECL_FINI_PRIORITY.
15630 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15631 Restore DECL_FINI_PRIORITY.
15633 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15635 * doc/gimple.texi: Fix quoting of multi-word return values in
15636 @deftypefn statements. Ensure presence of return value. Wrap
15637 overlong @deftypefn lines.
15638 (is_gimple_operand, is_gimple_min_invariant_address): Remove
15639 descriptions of removed functions.
15640 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15641 of multi-word return value in @deftypefn statement.
15643 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15645 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15646 (Conditional Expressions, Logical Operators)
15647 (Statement and operand traversals): Do not indent smallexample
15648 code. Fix duplicate function argument in example.
15650 2011-01-10 Jeff Law <law@redhat.com>
15652 PR tree-optimization/47141
15653 * ipa-split.c (split_function): Handle case where we are
15654 returning a value and the return block has a virtual operand phi.
15656 2011-01-10 Jan Hubicka <jh@suse.cz>
15658 PR tree-optimization/47234
15659 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15660 (pass_feedback_split_functions): Declare.
15661 * passes.c (init_optimization_passes): Add ipa-split as subpass of
15663 * ipa-split.c (gate_split_functions): Update comments; disable
15664 split-functions for profile_arc_flag and branch_probabilities.
15665 (gate_feedback_split_functions): New function.
15666 (execute_feedback_split_functions): New function.
15667 (pass_feedback_split_functions): New global var.
15669 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
15672 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15673 calling gimple_call_set_cannot_inline.
15675 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
15677 * config/darwin-sections.def: Remove unused section.
15679 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
15682 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15684 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
15687 * c-parser.c (c_parser_declaration_or_fndef): Improved
15690 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
15692 * config/i386/winnt.c (i386_pe_start_function): Make sure
15693 to switch back to function's section.
15695 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
15699 * plugin.c: Move include of dlfcn.h from here...
15700 * system.h: ... to here.
15702 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15704 * doc/cpp.texi (C++ Named Operators): Fix markup for header
15706 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15707 two extra empty pages in PDF output.
15709 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
15712 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15713 for error recovery purposes behave as if it was not specified so
15714 that the default type is usd.
15716 2011-01-07 Jan Hubicka <jh@suse.cz>
15718 PR tree-optmization/46469
15719 * ipa.c (function_and_variable_visibility): Clear needed flags on
15720 nodes with external decls; handle weakrefs merging correctly.
15722 2011-01-07 Joseph Myers <joseph@codesourcery.com>
15724 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15727 2011-01-07 Jan Hubicka <jh@suse.cz>
15729 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15730 and no longer claim that gold is required for linker plugin.
15731 * configure: Regenerate.
15732 * gcc.c (PLUGIN_COND): New macro.
15733 (LINK_COMMAND_SPEC): Use it.
15734 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15735 * config.in (HAVE_LTO_PLUGIN): New.
15736 * configure.ac (--with-lto-plugin): New parameter; autodetect
15739 2011-01-07 Jan Hubicka <jh@suse.cz>
15741 PR tree-optimization/46367
15742 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15743 when we can update original.
15744 (cgraph_mark_inline_edge): Sanity check.
15745 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15747 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15749 * config/spu/spu.h (ASM_COMMENT_START): Define.
15751 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
15754 * gcc.c (%>S): New.
15755 (SWITCH_KEEP_FOR_GCC): Likewise.
15756 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15757 (do_spec_1): Handle "%>".
15759 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15761 2011-01-07 Jakub Jelinek <jakub@redhat.com>
15764 * config/i386/i386.c (ix86_delegitimize_address): If
15765 simplify_gen_subreg fails, return orig_x.
15768 * value-prof.c (gimple_stringop_fixed_value): Handle
15769 lhs of the call properly.
15771 2011-01-07 Jan Hubicka <jh@suse.cz>
15774 * lto-opt.c (lto_reissue_options): Set flag_shlib.
15776 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15778 * target.def (function_switched_text_sections): New hook.
15779 * doc/tm.texi: Regenerated.
15780 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15781 * final.c (default_function_switched_text_sections): New.
15782 (final_scan_insn): Call function_switched_text_sections when a
15783 mid-function section change occurs.
15784 * output.h (default_function_switched_text_sections): Declare.
15785 * config/darwin-protos.h (darwin_function_switched_text_sections):
15787 * config/darwin.c (darwin_function_switched_text_sections): New.
15788 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15790 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15792 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
15793 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
15794 the secondary code fragment when outputting for DWARF == 2.
15796 2011-01-07 Anatoly Sokolov <aesok@post.ru>
15798 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15799 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
15801 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
15802 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15804 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
15807 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15808 when it is not empty.
15810 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
15813 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15814 (case ${target}): Add btver1.
15815 * config/i386/driver-i386.c (host_detect_local_cpu): Let
15816 -march=native recognize btver1 processors.
15817 * config/i386/i386-c.c (ix86_target_macros_internal): Add
15818 btver1 def_and_undef
15819 * config/i386/i386.c (struct processor_costs btver1_cost): New
15821 (m_BTVER1): New definition.
15822 (m_AMD_MULTIPLE): Includes m_BTVER1.
15823 (initial_ix86_tune_features): Add btver1 tune.
15824 (processor_target_table): Add btver1 entry.
15825 (static const char *const cpu_names): Add btver1 entry.
15826 (software_prefetching_beneficial_p): Add btver1.
15827 (ix86_option_override_internal): Add btver1 instruction sets.
15828 (ix86_issue_rate): Add btver1.
15829 (ix86_adjust_cost): Add btver1.
15830 * config/i386/i386.h (TARGET_BTVER1): New definition.
15831 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
15832 (enum processor_type): Add PROCESSOR_BTVER1.
15833 * config/i386/i386.md (define_attr "cpu"): Add btver1.
15835 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15838 * config/i386/i386.c (legitimize_tls_address)
15839 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
15840 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
15841 (tls_initial_exec_64_sun): New pattern.
15843 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
15845 * doc/invoke.texi (Overall Options): Improve wording and markup
15846 of the description of -wrapper.
15848 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15850 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
15851 rdynamic, threads): New Driver options.
15853 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15856 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
15857 if coming from .tdata.
15858 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
15860 2011-01-06 Jan Hubicka <jh@suse.cz>
15863 * collect2.c (main): Do not enable LTOmode when plugin is active.
15865 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15868 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
15869 --version output if supported.
15870 * configure: Regenerate.
15872 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15874 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
15877 2011-01-06 Jakub Jelinek <jakub@redhat.com>
15880 * c-convert.c (convert): When converting a complex expression
15881 other than COMPLEX_EXPR to a different complex type, ensure
15882 c_save_expr is called instead of save_expr, unless in_late_binary_op.
15883 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
15884 when converting COMPLEX_TYPE.
15886 2011-01-06 Ira Rosen <irar@il.ibm.com>
15888 PR tree-optimization/47139
15889 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
15890 only the last reduction value is used outside the loop. Update
15893 2011-01-05 Joseph Myers <joseph@codesourcery.com>
15895 * config/rtems.opt: New.
15896 * config.gcc (*-*-rtems*): Use rtems.opt.
15898 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
15900 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
15901 processors do not support 3DNow instructions.
15903 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15905 * config/spu/spu.c (spu_option_override): Set parameter
15906 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15908 2011-01-05 Jan Hubicka <jh@suse.cz>
15910 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15911 at the command line.
15913 2011-01-05 Martin Jambor <mjambor@suse.cz>
15916 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15917 deltas on streamed outgoing edges.
15918 (output_node_opt_summary): Output info for outgoing edges only when
15919 the node is in new parameter set.
15920 (output_cgraph_opt_summary): New parameter set, passed to the two
15921 aforementioned functions. Update its forward declaration and its
15924 2011-01-05 Tom Tromey <tromey@redhat.com>
15926 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15927 operator to c_finish_omp_atomic.
15928 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15929 (build_unary_op): Update.
15930 (build_modify_expr): Update.
15931 (build_asm_expr): Update.
15933 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15935 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15936 newly inserted insns.
15937 (pad_bb): Likewise.
15938 (spu_emit_branch_hint): Likewise.
15939 (insert_hbrp_for_ilb_runout): Likewise.
15940 (spu_machine_dependent_reorg): Call df_finish_pass after
15941 schedule_insns returns.
15943 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15945 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15947 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
15949 PR tree-optimization/47005
15950 * tree-sra.c (struct access): Add 'non_addressable' bit.
15951 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15952 (decide_one_param_reduction): Return 0 if the parameter is passed by
15953 reference and one of the accesses in the group is non_addressable.
15955 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15957 PR tree-optimization/47056
15958 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15959 (mark_load): Likewise. Handle FUNCTION_DECL specially.
15960 (mark_store): Likewise. Pass STMT to ipa_record_reference.
15962 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15964 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15965 initializer. Skip view conversions from aggregate types.
15967 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
15970 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15972 2011-01-04 Philipp Thomas <pth@suse.de>
15974 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15977 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15979 * function.c (thread_prologue_and_epilogue_insns): Do not crash
15980 on empty epilogue sequences.
15982 2011-01-04 Joseph Myers <joseph@codesourcery.com>
15984 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15985 non-static): New Driver options.
15987 2011-01-04 Jie Zhang <jie@codesourcery.com>
15990 * gcc.c (default_compilers[]): Set combinable field to 0
15991 for all assembly languages.
15993 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
15995 * config/mips/loongson3a.md: New file.
15996 * config/mips/mips.md: Include loongson3a.md.
15997 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16000 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16002 PR middle-end/47017
16003 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16004 instead of convert_memory_address_addr_space on the base expression.
16006 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16008 * config/spu/spu.c (spu_option_override): Update error text
16009 for bad -march= / -mtune= values.
16011 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16013 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16014 if branch-hint optimization will be performed.
16016 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16018 PR tree-optimization/47148
16019 * ipa-split.c (split_function): Convert arguments to
16020 DECL_ARG_TYPE if possible.
16022 PR tree-optimization/47155
16023 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16024 when computing uns.
16026 PR rtl-optimization/47157
16027 * combine.c (try_combine): If undobuf.other_insn becomes
16028 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16029 and set *new_direct_jump_p too.
16031 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16033 PR tree-optimization/47021
16034 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16036 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16038 * gcc.c (process_command): Update copyright notice dates.
16039 * gcov.c (print_version): Likewise.
16040 * gcov-dump.c (print_version): Likewise.
16041 * mips-tfile.c (main): Likewise.
16042 * mips-tdump.c (main): Likewise.
16044 2011-01-03 Martin Jambor <mjambor@suse.cz>
16046 PR tree-optimization/46801
16047 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16048 aggregate fields start at byte boundary instead of the bit-field flag.
16050 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16053 * gcc.c (main): Revert revision 168407.
16055 2011-01-03 Martin Jambor <mjambor@suse.cz>
16057 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16059 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16061 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16062 vector optab to expand vector/scalar shift, update gimple to vector.
16064 2011-01-03 Martin Jambor <mjambor@suse.cz>
16066 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16069 2011-01-03 Martin Jambor <mjambor@suse.cz>
16071 PR tree-optimization/46984
16072 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16074 (cgraph_create_indirect_edge): Fixed line length.
16075 (cgraph_indirect_call_info): Declare.
16076 (cgraph_make_edge_direct) Update declaration.
16077 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16078 (cgraph_create_indirect_edge): Use it.
16079 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16081 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16082 the new thunk_delta representation.
16083 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16085 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16086 (ipa_read_indirect_edge_info): Likewise.
16087 * lto-cgraph.c (output_edge_opt_summary): New function.
16088 (output_node_opt_summary): Call it on all outgoing edges.
16089 (input_edge_opt_summary): New function.
16090 (input_node_opt_summary): Call it on all outgoing edges.
16092 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16095 * gcc.c (main): Don't check have_o when settting combine_inputs.
16097 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16099 * regrename.c: Add general comment describing the pass.
16100 (struct du_head): Remove 'length' field.
16101 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16102 (regrename_optimize): Do not sort chains. Rework comments, add others.
16103 Force renaming to the preferred class (if any) in the first pass and do
16104 not consider registers that belong to it in the second pass.
16105 (create_new_chain): Do not set 'length' field.
16106 (scan_rtx_reg): Likewise.
16108 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16110 PR tree-optimization/47140
16111 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16112 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16113 to bit_value_binop.
16115 PR rtl-optimization/47028
16116 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16117 parm_birth_insn instead of at the beginning of first bb.
16119 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16121 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16122 Remove the word "see" before "@pxref".
16123 * doc/rtl.texi: Remove the word "see" before "@pxref".
16125 2011-01-01 Jan Hubicka <jh@suse.cz>
16127 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16130 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
16133 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16136 Copyright (C) 2011 Free Software Foundation, Inc.
16138 Copying and distribution of this file, with or without modification,
16139 are permitted in any medium without royalty provided the copyright
16140 notice and this notice are preserved.