1 2011-05-31 Richard Guenther <rguenther@suse.de>
3 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
5 (forward_propagate_into_comparison_1): ... this.
6 (forward_propagate_comparison): Rename to ...
7 (forward_propagate_into_comparison): ... this. Split out
8 real forward propagation code to ...
9 (forward_propagate_comparison): ... this.
10 (forward_propagate_into_gimple_cond): Remove looping.
11 (forward_propagate_into_cond): Likewise.
12 (simplify_not_neg_expr): Return whether we have done something.
13 (simplify_gimple_switch): Likewise.
14 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
15 (ssa_forward_propagate_and_combine): ... this. Re-structure
16 to do a forward forward-propagation walk on BBs and a backward
17 stmt combining walk on BBs. Consistently re-scan changed
19 (pass_forwprop): Adjust.
21 2011-05-30 Ian Lance Taylor <iant@google.com>
23 * godump.c (go_format_type): Correct length of name added to
24 obstack for anonymous field.
26 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
29 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
30 part of the second operand is 0.
32 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
34 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
35 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
36 to memory for !TARGET_MEMORY_MISMATCH_STALL.
37 (*movdf_internal_rex64): Do not penalize F->r alternative.
38 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
39 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
40 when optimizing function for size. Do not move CONST_DOUBLEs
41 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
42 (FP move splitters): Merge {TF,XF,DF}mode move splitters. Do not
43 handle SUBREGs. Do not check for MEM_P operands in the insn condition,
44 check for ANY_FP_REGNO_P instead.
45 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
46 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
48 * config/i386/i386.c (ix86_option_override_internal): Do not
49 set TARGET_INTEGER_DFMODE_MOVES here.
51 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
54 * config/i386/i386.md (*movtf_internal): Handle misaligned
57 2011-05-30 Jakub Jelinek <jakub@redhat.com>
59 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
60 DW_TAG_rvalue_reference_type even for
61 -gdwarf-4 -fno-debug-types-section.
63 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
65 PR tree-optimization/46728
66 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
67 (build_and_insert_binop): New.
68 (gimple_expand_builtin_pow): Reorder args for
69 build_and_insert_call; use build_and_insert_binop; add more
70 optimizations for fractional exponents.
72 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
77 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
79 * tree.h (struct tree_identifier): Inherit from tree_typed, not
81 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
82 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
83 TS_BASE instead of TS_COMMON.
84 * varasm.c (assemble_name): Remove assert.
86 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
88 * config.gcc: Keep obselete list sorted.
90 2011-05-30 Jakub Jelinek <jakub@redhat.com>
91 Eric Botcazou <ebotcazou@adacore.com>
93 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
94 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
95 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
96 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
97 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
99 2011-05-30 Richard Guenther <rguenther@suse.de>
101 * gimple.c (gimple_types_compatible_p_1): Compare record
102 and union type members properly.
104 2011-05-30 Richard Guenther <rguenther@suse.de>
106 PR tree-optimization/49210
107 * ipa-split.c (split_function): Care for the case where the
108 call result is not trivially convertible to the result holding
111 2011-05-30 Richard Guenther <rguenther@suse.de>
113 PR tree-optimization/49218
114 * tree-vrp.c (adjust_range_with_scev): Properly check whether
117 2011-05-30 Richard Guenther <rguenther@suse.de>
119 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
120 New function split out from ...
121 (forward_propagate_into_gimple_cond): ... here. Adjust.
122 (forward_propagate_into_cond): Likewise.
123 (forward_propagate_comparison): Also propagate into
124 comparisons on assignment RHS. Change return value to
125 behave similar to forward_propagate_into_cond.
126 (tree_ssa_forward_propagate_single_use_vars): Handle
127 strict-overflow warnings properly for forward_propagate_comparison.
129 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
131 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
133 * configure: Regenerate.
135 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
137 PR tree-optimization/49199
138 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
139 non-reduction operands are either defined in the loop or by induction.
141 2011-05-29 Xinliang David Li <davidxl@google.com>
143 * opts-global.c (handle_common_deferred_options): Handle new options.
144 * passes.c (register_one_dump_file): Call register_pass_name.
145 (execute_one_pass): Check explicit enable/disable flag.
146 (passr_hash): New function.
148 (register_pass_name): Ditto.
149 (get_pass_by_name): Ditto.
152 (enable_pass): Ditto.
153 (disable_pass): Ditto.
154 (is_pass_explicitly_enabled_or_disabled): Ditto.
156 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
158 * config/i386/i386.md (*movoi_internal_avx): Use
159 standard_sse_constant_opcode for alternative 0.
160 (*movti_internal_sse): Ditto.
161 (*movti_internal_rex64): Use standard_sse_constant_opcode for
163 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
165 (*movsi_internal): Ditto.
166 (*movdi_internal): Ditto. Add ssecvt type moves.
168 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
171 * rtlanal.c (simplify_subreg_regno): Adjust comment.
173 2011-05-29 Jakub Jelinek <jakub@redhat.com>
175 PR rtl-optimization/49095
176 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
177 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
179 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
182 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
183 recurse_p argument. Only follow register copies if it is set,
184 and prevent mips_find_pic_call_symbol from recursing.
185 (mips_find_pic_call_symbol): Add a recurse_p argument.
186 Pass it to mips_pic_call_symbol_from_set.
187 (mips_annotate_pic_calls): Update accordingly.
189 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
191 * emit-rtl.c (try_split): Use a loop to search for
192 NOTE_INSN_CALL_ARG_LOCATIONs.
194 2011-05-29 Richard Guenther <rguenther@suse.de>
196 PR tree-optimization/49217
197 * ipa-pure-const.c (propagate_pure_const): Fix typos.
199 2011-05-28 Jan Hubicka <jh@suse.cz>
201 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
203 (string_slot_free): Remove
204 (create_output_block): Initialize obstack.
205 (destroy_output_block): Free obstack.
206 (lto_string_index): Add PERSISTENT parameter; do not duplicate
207 the string unless it needs to be added into the hash.
208 (lto_output_string_with_length): Add persistent attribute;
210 (lto_output_string): Add PERSISTENT parameter.
211 (output_string_cst, output_identifier): Simplify.
212 (lto_output_location_bitpack): Update.
213 (lto_output_builtin_tree): Update.
214 * lto-streamer.h (struct output_block): Add obstack.
215 (lto_output_string, lto_output_string_with_length): Remove
216 declarations; functions are static now.
218 2011-05-28 Jan Hubicka <jh@suse.cz>
220 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
221 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
222 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
223 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
224 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
225 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
226 unpack_ts_decl_with_vis_value_fields,
227 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
228 lto_get_builtin_tree): Use enum and variable length i/o.
229 * basic-block.h (profile_status_d): Add PROFILE_LAST.
230 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
232 (bp_pack_enum, bp_unpack_enum): New macros.
234 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
236 * genrecog.c: Remove redundant forward declarations.
238 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
240 * config.gcc: Deprecate mips*-*-openbsd*.
242 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
245 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
248 2011-05-27 Andrew Pinski <pinskia@gmail.com>
251 * gengtype.c (vec_prefix_type): New function.
252 (note_def_vec): Use vec_prefix_type and change the length
253 attribute to be based on the prefix.
254 * vec.c: Include coretypes.h before vec.h.
255 (struct vec_prefix): Remove.
256 (vec_gc_p_reserve): Change the offsetof to sizeof.
257 (vec_gc_p_reserve_exact): Likewise.
258 (vec_heap_p_reserve): Likewise.
259 (vec_heap_p_reserve_exact): Likewise.
260 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
261 (vec_stack_p_reserve): Change the offsetof to sizeof.
262 (vec_stack_p_reserve_exact): Likewise.
263 * vec.h (struct vec_prefix): New struct definition.
264 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
265 (VEC_T_GTY(T,B)): Likewise.
266 (DEF_VEC_FUNC_P(T)): Use prefix field.
267 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
268 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
270 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
272 PR tree-optimization/46728
273 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
274 (powi_as_mults): Add gimple_set_location.
275 (build_and_insert_call): New.
276 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
277 0.5, 0.25, 0.75, 1./3., or 1./6.
279 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
281 * doc/contrib.texi: Update copyright years.
282 (Contributors): Add Zdenek Sojka.
284 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
286 * c-decl.c (c_push_function_context): Copy the current statement
288 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
289 (finish_struct): Call building_stmt_list_p instead of checking
291 * c-parser.c (c_parser_postfix_expression): Likewise.
292 * c-typeck.c (c_end_compound_stmt): Likewise.
293 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
294 * tree-iterator.c (stmt_list_cache): Change to a VEC.
295 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
296 (free_stmt_list): Likewise.
297 * tree.h (struct tree_statement_list): Include typed_tree instead
299 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
300 as TS_TYPED instead of TS_COMMON.
302 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
303 Uros Bizjak <ubizjak@gmail.com>
305 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
306 (HAVE_AS_IX86_TLSGDPTL): Define.
307 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
308 (HAVE_AS_IX86_TLSLDMPLT): Define.
309 * configure: Regenerate.
310 * config.in: Regenerate.
311 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
312 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
313 TARGET_SUN_TLS, use @tlsgdplt or @plt.
314 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
315 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
317 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
319 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
321 * sched-int.h (struct _haifa_deps_insn_data): New members cond
323 (INSN_COND, INSN_REVERSE_COND): New macros.
324 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
326 (sched_get_condition_with_rev): Cache the results, and look them up
328 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
329 are clobbered by the current insn.
330 * target.def (exposed_pipline): New sched data hook.
331 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
332 * doc/tm.texi: Regenerate.
334 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
336 PR tree-optimization/49170
337 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
340 2011-05-27 Richard Guenther <rguenther@suse.de>
343 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
346 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
348 * haifa-sched.c (sched_scan_info): Remove.
349 (schedule_block): Call sched_extend_luids rather than sched_init_luids
351 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
353 (sched_scan): Remove.
354 (sched_extend_luids): Renamed from luids_extend_insn and no longer
355 static. All callers changed.
356 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
357 static. All callers changed.
358 (sched_init_luids): Remove all arguments except the first. All
359 callers changed. Don't use sched_scan.
360 (haifa_init_h_i_d): Likewise.
361 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
362 manually rather than using sched_init_luids. Likewise with
363 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
364 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
365 rather than sched_init_luids with NULL args.
366 * sel-sched-ir.c (new_insns): Remove variable.
367 (sched_scan): New static function, previously in haifa-sched.c. Remove
368 all arguments but the first two; all callers changed.
369 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
370 rather than sched_init_luids.
371 (sel_init_bbs): Remove second argument. All callers changed.
372 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
374 (create_insn_rtx_from_pattern): Likewise.
375 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
376 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
377 (sched_init_insn_luid, sched_extend_luids): Declare.
378 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
381 2011-05-27 Richard Guenther <rguenther@suse.de>
384 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
385 A CMP B ? (T) true : (T) false for non-integral types T again.
387 2011-05-27 Jan Hubicka <jh@suse.cz>
389 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
390 so 0 means NULL string.
391 (lto_output_string_with_length): ... here.
392 (lto_output_string, output_string_cst, output_identifier): Update
393 handling of NULL strings.
394 (lto_output_location_bitpack): New function.
395 (lto_output_location): Use it.
396 (lto_output_tree_ref): Use output_record_start.
397 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
399 * lto-streamer-in.c (string_for_index): Break out from ...; offset
401 (input_string_internal): ... here;
402 (input_string_cst, input_identifier, lto_input_string): Update handling
404 (lto_input_location_bitpack): New function
405 (lto_input_location): Use it.
406 (unpack_ts_type_common_value_fields): Pack align & alias in var len
408 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
409 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
410 (bp_pack_value): Sanity check the value range.
411 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
413 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
416 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
418 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
419 call_arg_location instructions down the floor.
421 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
423 PR rtl-optimization/49154
424 * ira.c (setup_pressure_classes): Process class without sublcasses
425 as a candidate for pressure classes.
427 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
429 PR rtl-optimization/48575
430 * genrecog.c (position_type): New enum.
431 (position): New structure.
432 (decision): Use position structure instead of a string.
433 (root_pos, peep2_insn_pos_list): New variables.
434 (next_position, compare_positions): New functions.
435 (new_decision): Use position structures instead of strings.
436 (maybe_both_true): Likewise.
437 (change_state): Likewise.
438 (write_tree): Likewise.
439 (make_insn_sequence): Likewise.
441 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
443 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
444 TS_BASE instead of TS_COMMON.
445 (find_decls_types_r): Check for TS_TYPED structure before looking at
447 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
449 (BLOCK_CHAIN): Use new chain field.
451 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
453 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
454 moves expensive on Power7 also.
456 2011-05-26 Richard Guenther <rguenther@suse.de>
458 * fold-const.c (fold_unary_loc): Remove bogus code.
460 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
462 * tree.h (struct tree_identifier): Inherit from tree_typed, not
464 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
465 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
466 TS_BASE instead of TS_COMMON.
467 * varasm.c (assemble_name): Remove assert.
469 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
471 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
473 * libgcc-std.ver: Delete file.
475 2011-05-26 Richard Guenther <rguenther@suse.de>
477 PR tree-optimization/48702
478 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
479 only when we know the base address is within bounds.
480 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
481 assume the base address of TARGET_MEM_REFs is in bounds.
483 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
486 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
487 declaration in TARGET_SOLARIS.
489 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
491 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
492 The instruction is then expanded explicitly.
493 (supported_compare): Callable instruction.
496 2011-05-26 Jakub Jelinek <jakub@redhat.com>
499 * gimplify.c (shortcut_cond_r): Don't special case
500 COND_EXPRs if they have void type on one of their arms.
502 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
504 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
505 to reduce duplication, and to achieve a slightly more logical order
508 2011-05-26 Jakub Jelinek <jakub@redhat.com>
510 PR tree-optimization/49161
511 * tree-vrp.c (struct case_info): New type.
512 (compare_case_labels): Sort case_info structs instead of
513 trees, and not primarily by CASE_LABEL uids but by
514 label_for_block indexes.
515 (find_switch_asserts): Put case labels into struct case_info
516 array instead of TREE_VEC, adjust sorting, compare label_for_block
517 values instead of CASE_LABELs.
519 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
521 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
522 ("orndi3_neon"): Likewise.
523 ("bic<mode>3_neon"): Likewise.
525 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
527 PR tree-optimization/49038
528 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
529 Ensure at least one epilogue iteration if required by data
531 * tree-vectorizer.h (struct _loop_vec_info): Add new field
532 to mark loops that require peeling for gaps.
533 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
534 (vect_get_known_peeling_cost): Take peeling for gaps into
536 (vect_transform_loop): Generate epilogue if required by data
538 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
539 loop as requiring an epilogue if there are gaps in the end of
542 2011-05-25 Ian Lance Taylor <iant@google.com>
544 * godump.c (go_format_type): Output the first field with a usable
547 2011-05-25 Ian Lance Taylor <iant@google.com>
549 * godump.c (go_format_type): Check for invalid type names, pointer
550 target types, and struct field types.
552 2011-05-25 Jason Merrill <jason@redhat.com>
554 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
556 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
558 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
560 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
562 * config/i386/i386.md (*movqi_extv_1)): Put back
563 "register_operand" check in "type" calculation.
564 (*movqi_extzv_2): Likewise.
566 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
568 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
570 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
573 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
574 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
575 __divxc3, __divtc3): Wrap definitions in #ifndef.
577 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
580 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
581 "register_operand" check and replace q_regs_operand with
582 QIreg_operand in "type" calculation.
583 (*movqi_extv_1): Likewise.
584 (*movqi_extzv_2_rex64): Likewise.
585 (*movqi_extzv_2): Likewise.
587 * config/i386/predicates.md (QIreg_operand): New.
589 2011-05-25 Richard Guenther <rguenther@suse.de>
591 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
592 type-based offset disambiguation, streamline MEM_REF and
593 TARGET_MEM_REF handling.
595 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
597 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
598 (bdesc_special_args): Add pause intrinsic.
600 * config/i386/i386.md (UNSPEC_PAUSE): New.
603 * config/i386/ia32intrin.h (__pause): Likewise.
605 * doc/extend.texi (X86 Built-in Functions): Add documentation for
608 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
610 PR tree-optimization/46728
611 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
612 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
614 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
616 * tree.h (struct tree_exp): Inherit from struct tree_typed.
617 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
618 instead of TS_COMMON.
620 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
622 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
623 LIBGCC2_GNU_PREFIX is defined.
625 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
626 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
627 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
628 __clz_tab): Define using __N.
629 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
630 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
631 * target.def (libfunc_gnu_prefix): New hook.
632 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
633 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
634 * doc/tm.texi: Regenerate.
635 * system.h (LIBGCC2_GNU_PREFIX): Poison.
636 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
638 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
639 (init_optabs): Likewise for the bswap libfuncs.
640 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
642 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
643 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
644 * libgcc-std.ver: Remove.
645 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
646 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
648 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
649 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
650 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
651 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
652 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
653 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
654 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
655 * config/fixed-bit.h (FIXED_OP): Define differently depending on
656 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
657 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
659 2011-05-25 Jan Hubicka <jh@suse.cz>
661 * lto-streamer-out.c (output_record_start): Use lto_output_enum
662 (lto_output_tree): Use output_record_start.
663 * lto-streamer-in.c (input_record_start): Use lto_input_enum
664 (lto_get_pickled_tree): Use input_record_start.
665 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
666 (lto_value_range_error): New function.
667 * lto-streamer.h (lto_value_range_error): Declare.
668 (lto_output_int_in_range, lto_input_int_in_range): New functions.
669 (lto_output_enum, lto_input_enum): New macros.
671 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
673 * common.opt (flag_stack_usage_info): New variable.
674 (-Wstack-usage): New option.
675 * doc/invoke.texi (Warning options): Document -Wstack-usage.
676 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
677 <OPT_fstack_usage>: Likewise.
678 * toplev.c (output_stack_usage): Handle -Wstack-usage.
679 * calls.c (expand_call): Test flag_stack_usage_info variable instead
681 (emit_library_call_value_1): Likewise.
682 * explow.c (allocate_dynamic_stack_space): Likewise.
683 * function.c (instantiate_virtual_regs ): Likewise.
684 (prepare_function_start): Likewise.
685 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
686 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
687 * config/arm/arm.c (arm_expand_prologue): Likewise.
688 (thumb1_expand_prologue): Likewise.
689 * config/avr/avr.c (expand_prologue): Likewise.
690 * config/i386/i386.c (ix86_expand_prologue): Likewise.
691 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
692 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
693 * config/mips/mips.c (mips_expand_prologue): Likewise.
694 * config/pa/pa.c (hppa_expand_prologue): Likewise.
695 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
696 * config/s390/s390.c (s390_emit_prologue): Likewise.
697 * config/sh/sh.c (sh_expand_prologue): Likewise.
698 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
699 * config/spu/spu.c (spu_expand_prologue): Likewise.
701 2011-05-25 Richard Guenther <rguenther@suse.de>
703 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
704 (gimple_canonical_types_compatible_p): Likewise.
706 2011-05-25 Jan Hubicka <jh@suse.cz>
709 * ipa.c (function_and_variable_visibility): Only add to same
710 comdat group list if DECL_ONE_ONLY.
712 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
714 PR rtl-optimization/49014
715 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
717 2011-05-25 Jakub Jelinek <jakub@redhat.com>
720 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
722 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
724 PR rtl-optimization/48757
725 * ira-build.c (loop_with_eh_edge_p): Rename to
726 loop_with_complex_edge_p, check edges on complexity, make function
728 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
731 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
733 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
734 force flag_ira_share_save_slots to 0.
736 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
738 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
739 (vt_initialize): Set PROLOGUE_BB unconditionally.
740 Add block comment about CFA_BASE_RTX machinery.
741 Reset FP_CFA_OFFSET to -1 on all invalid paths.
742 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
744 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
747 * c-parser.c (c_parser_objc_class_instance_variables): More robust
748 parsing of syntax error in ObjC instance variable lists. In
749 particular, avoid an infinite loop if there is a stray ']'.
750 Updated error message.
752 2011-05-24 Ian Lance Taylor <iant@google.com>
754 * godump.c (go_define): Don't accept a string immediately after
757 2011-05-24 Ian Lance Taylor <iant@google.com>
759 * godump.c (struct godump_container): Add invalid_hash field.
760 (go_format_type): Return false if type is found in invalid_hash.
761 (go_output_typedef): Add invalid type to invalid_hash.
762 (go_finish): Create and delete invalid_hash.
764 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
766 PR tree-optimization/46728
767 * tree-ssa-math-opts.c (powi_table): New.
768 (powi_lookup_cost): New.
770 (powi_as_mults_1): New.
771 (powi_as_mults): New.
772 (gimple_expand_builtin_powi): New.
773 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
774 (gate_cse_sincos): Remove sincos/cexp restriction.
776 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
779 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
781 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
782 * mips-tdump.c: Likewise.
784 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
787 * config/i386/driver-i386.c (host_detect_local_cpu): Always
788 add -mno-XXX. Handle FMA.
790 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
792 PR rtl-optimization/48633
793 * ira-build.c (loop_with_eh_edge_p): New function.
794 (mark_loops_for_removal): Use it.
796 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
798 PR rtl-optimization/48971
799 * ira.c (setup_pressure_classes): Don't check register move cost
800 for classes with one registers. Don't add pressure class if there
801 is a pressure class with the same available hard registers.
802 Check contains_reg_of_mode. Fix a typo in collecting
803 temp_hard_regset. Ignore hard registers not belonging to a class.
805 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
808 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
810 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
811 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
813 PR gcov-profile/48845
814 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
816 2011-05-24 Richard Guenther <rguenther@suse.de>
818 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
819 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
820 (gimple_types_compatible_p_1): Adjust.
821 (iterative_hash_canonical_type): Do not bother about complete vs.
823 (gimple_canonical_types_compatible_p): Likewise.
825 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
827 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
829 2011-05-24 Richard Guenther <rguenther@suse.de>
832 * gimple.c (gimple_register_canonical_type): Revert
834 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
835 does not for a tree for the case where it matters. Cache
836 pointer-type alias-sets.
838 2011-05-24 Joseph Myers <joseph@codesourcery.com>
840 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
841 (OBJS): Remove options.o, opts-common.o and prefix.o.
842 (OBJS-libcommon-target): New.
843 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
844 (BACKEND): Include libcommon-target.a.
845 (MOSTLYCLEANFILES): Include libcommon-target.a.
846 (libcommon-target.a): New.
847 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
850 2011-05-23 Joseph Myers <joseph@codesourcery.com>
852 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
853 parts of output shared with the driver.
854 * optc-gen.awk: Don't generate parts of output not shared with the
856 * opth-gen.awk: Remove GCC_DRIVER conditionals.
857 * doc/options.texi (SourcerInclude): Mention options-save.c.
858 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
859 (OBJS): Add options-save.o.
860 (options-save.c, options-save.o): New.
861 (options.o): Update dependencies.
862 (gcc-options.o): Remove.
863 (mostlyclean): Remove options-save.c.
865 2011-05-23 Jakub Jelinek <jakub@redhat.com>
868 * dbxout.c: Include cgraph.h.
869 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
870 and without value expr, return NULL if no varpool node exists for
871 it or if it is not needed.
872 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
875 * c-decl.c (start_decl): Convert expr to void_type_node.
877 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
879 PR rtl-optimization/48826
880 * emit-rtl.c (try_split): When splitting a call that is followed
881 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
883 2011-05-23 Jakub Jelinek <jakub@redhat.com>
885 * cfgexpand.c (expand_debug_expr): For unused non-addressable
886 parameters passed in memory prefer using DECL_INCOMING_RTL over
887 the pseudos it will be copied into.
889 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
892 * config/i386/i386.c (ix86_option_override_internal): Save the
893 initial options after checking vzeroupper.
895 2011-05-23 David Li <davidxl@google.com>
897 PR tree-optimization/48988
898 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
899 Initialize has_valid_pred for each pred chain.
901 2011-05-23 Richard Guenther <rguenther@suse.de>
903 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
904 (iterative_hash_gimple_type): Always hash type names.
906 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
908 * c-typeck.c (build_function_call_vec): Tweak call to
909 check_function_arguments.
911 2011-05-23 Richard Guenther <rguenther@suse.de>
913 PR tree-optimization/49115
914 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
915 is not necessarily carried out, do not claim it kills the ref.
916 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
918 2011-05-23 Richard Guenther <rguenther@suse.de>
921 * builtins.c (fold_builtin_memory_op): Be less restrictive about
922 what pointer types we accept for folding.
924 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
926 * gthr-gnat.c: Remove.
927 * gthr-gnat.h: Remove.
928 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
929 * config/t-freebsd (LIB2ADDEH): Likewise.
930 * config/t-linux (LIB2ADDEH): Likewise.
931 * config/t-sol2 (LIB2ADDEH): Likewise.
932 * config/ia64/t-vms (LIB2ADDEH): Likewise.
933 * configure.ac (target_thread_file): Remove gnat handling.
934 * configure: Regenerate.
935 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
937 2011-05-23 Tristan Gingold <gingold@adacore.com>
938 Eric Botcazou <ebotcazou@adacore.com>
940 * gcov.c (create_file_names): If no object directory is specified,
941 keep the directory of the file.
943 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
945 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
946 * configure: Regenerate.
948 2011-05-23 Jakub Jelinek <jakub@redhat.com>
951 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
952 failed and the comparison has a single bit signed type, use
953 constm1_rtx instead of const1_rtx for true value.
954 (do_store_flag): If ops->type is single bit signed type, disable
955 signel bit test optimization and pass -1 instead of 1 as last
956 parameter to emit_store_flag_force.
958 2011-05-23 Tom de Vries <tom@codesourcery.com>
961 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
963 (infer_loop_bounds_from_undefined): Use new function.
965 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
967 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
968 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
969 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
971 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
973 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
975 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
976 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
979 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
981 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
983 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
985 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
986 UNSPEC_MOVE_PIC pattern.
988 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
990 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
991 (sparc-*-rtems*): Likewise.
992 (sparc64-*-elf*): Likewise.
993 (sparc64-*-rtems*): Likewise.
994 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
995 * config/sparc/t-crtin: New file.
996 * config/sparc/t-sol2 (crti.o): Delete rule.
998 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
999 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1000 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1001 (ENDFILE_SPEC): Add crtn.o.
1003 2011-05-22 Tom de Vries <tom@codesourcery.com>
1006 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1007 CODE_CONTAINS_STRUCT (TS_COMMON).
1009 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1012 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1013 only after deciding which mode to use.
1015 2011-05-22 Tom de Vries <tom@codesourcery.com>
1018 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1019 for call to get_shiftadd_cost.
1021 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1024 * config/i386/cpuid.h (bit_MMXEXT): New define.
1026 2011-05-22 Nick Clifton <nickc@redhat.com>
1028 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1029 initialisation of non-existant args[2] element. Use args[] array
1030 not arg[] array to pass arguments to build_function_type_list.
1032 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1034 PR tree-optimization/49087
1035 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1037 2011-05-21 Jason Merrill <jason@redhat.com>
1040 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1041 static storage duration.
1043 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1045 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1048 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1050 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1051 false if there are call-saved registers here...
1052 (sparc_can_use_return_insn_p): ...but here instead.
1053 (save_or_restore_regs): Fix thinko.
1054 (sparc_expand_prologue): Use current_function_is_leaf.
1055 (sparc_frame_pointer_required): Likewise.
1057 2011-05-21 Nick Clifton <nickc@redhat.com>
1060 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1062 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1064 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1065 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1067 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1069 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1070 * optc-gen.awk: Move common code to opt-read.awk.
1071 * opth-gen.awk: Likewise.
1072 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1074 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1076 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1078 2011-05-20 Tom de Vries <tom@codesourcery.com>
1081 * tree-ssa-loop-ivopts.c: Include expmed.h.
1082 (get_shiftadd_cost): New function.
1083 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1085 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1088 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1089 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1091 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1093 * Makefile.in: Update comment referring to $(OBJS-common).
1095 2011-05-20 Ian Lance Taylor <iant@google.com>
1097 * godump.c (go_output_typedef): Put enum constants in the macro
1098 hash table to avoid duplicate Go const definitions.
1100 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1102 * Makefile.in (LIBDEPS): Add libcommon.a.
1104 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1105 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1106 pretty-print.o and version.o.
1107 (OBJS-libcommon): New.
1108 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1109 (BACKEND): Add libcommon.a.
1110 (MOSTLYCLEANFILES): Likewise.
1112 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1113 (cpp$(exeext)): Likewise.
1114 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1115 pretty-print.o and input.o.
1116 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1117 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1119 (mips-tfile): Don't explicitly use version.o.
1120 (mips-tdump): Likewise.
1121 (gcov.o): Depend on $(DIAGNOSTIC_H).
1122 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1123 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1124 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1125 * gcov-dump.c: Include intl.h and diagnostic.h.
1126 (main): Initialize diagnostics.
1127 * gcov.c: Include diagnostic.h.
1129 (main): Initialize diagnostics.
1130 * lto-wrapper.c: Include diagnostic.h.
1131 (main): Initialize diagnostics.
1133 2011-05-20 Michael Matz <matz@suse.de>
1135 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1137 2011-05-20 Michael Matz <matz@suse.de>
1138 Richard Guenther <rguenther@suse.de>
1140 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1141 use lto_streamer_cache_append directly instead of returning a VEC.
1142 (preload_common_node): Remove.
1143 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1145 (lto_streamer_cache_create): Call lto_preload_common_nodes.
1147 2011-05-20 Richard Guenther <rguenther@suse.de>
1149 PR tree-optimization/49079
1150 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1151 MEM_REFs correctly for the trailing array access detection.
1152 Special case constants the same way as decls for overall size
1155 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
1157 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1160 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1162 PR tree-optimization/49073
1163 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1164 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1165 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1167 2011-05-20 Richard Guenther <rguenther@suse.de>
1170 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1171 of pointer types the same way the middle-end does.
1173 2011-05-20 Richard Guenther <rguenther@suse.de>
1175 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1176 or pointer-to chains. Delay all fixup to uniquify_nodes.
1178 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1180 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1181 (fma4_fmaddsub): Likewise
1183 2011-05-19 Jan Hubicka <jh@suse.cz>
1185 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1186 (GIMPLE_TYPE_PAIR_SIZE): New macro.
1187 (type_pair_cache): New static var.
1188 (lookup_type_pair): Use fixed sized custom hash; make inline.
1189 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1190 calls of lookup_type_pair.
1191 (print_gimple_types_stats): Remove cache stats.
1192 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1195 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
1197 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1198 when TARGET_RDRND is active.
1199 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1200 Generate dummy SImode target register when target is NULL.
1202 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1204 * config/arm/arm-fpus.def: New.
1205 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1207 * config/arm/arm-tables.opt: Regenerate.
1208 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1209 (arm_option_override): Don't decode FPU name to string here.
1210 * config/arm/arm.opt (mfpu=): Use Enum.
1211 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1212 Update dependencies.
1214 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1216 * collect2.c: Include diagnostic.h.
1217 (fatal_perror, fatal, error, fancy_abort): Remove.
1218 (main): Set progname. Call xmalloc_set_program_name and
1219 diagnostic_initialize.
1220 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1221 scan_libraries, resolve_lib_name): Call fatal_error instead of
1222 fatal and fatal_perror.
1223 * collect2.h (error, fatal, fatal_perror): Don't declare.
1224 * tlink.c: Include diagnostic-core.h.
1225 (recompile_files): Call fatal_error instead of fatal_perror.
1226 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1227 pretty-print.o and input.o.
1228 (collect2.o, tlink.o): Update dependencies.
1230 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1232 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1234 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1237 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1238 COMDAT group syntax, both SPARC and x86 variants.
1239 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1240 * configure: Regenerate.
1241 * config/sol2.h (TARGET_SOLARIS): Define.
1242 (PUSHSECTION_FORMAT): Remove.
1243 (SECTION_NAME_FORMAT): Define.
1244 * config/sol2.c: Include hashtab.h.
1245 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1246 expansion, using SECTION_NAME_FORMAT.
1247 (solaris_comdat_htab): New variable.
1248 (struct comdat_entry): Define.
1249 (comdat_hash): New function.
1250 (comdat_eq): New function.
1251 (solaris_elf_asm_comdat_section): New function.
1252 (solaris_define_comdat_signature): New function.
1253 (solaris_code_end): New function.
1254 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1255 (solaris_code_end): Declare.
1256 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1257 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1259 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1260 Remove ATTRIBUTE_UNUSED.
1261 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1262 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1263 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1264 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1265 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1266 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1267 (PUSHSECTION_FORMAT): Remove.
1268 (SECTION_NAME_FORMAT): Redefine.
1270 2011-05-19 Kai Tietz <ktietz@redhat.com>
1272 * tree-cfg.c (verify_gimple_assign_binary): Barf on
1273 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1274 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1276 2011-05-19 Anatoly Sokolov <aesok@post.ru>
1277 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1279 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1281 2011-05-19 Richard Guenther <rguenther@suse.de>
1284 * tree-object-size.c (addr_object_size): If the pointed-to
1285 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1287 2011-05-19 Richard Guenther <rguenther@suse.de>
1289 * gimple.c (gimple_types_compatible_p_1): Compare names of
1290 the types themselves.
1291 (iterative_hash_gimple_type): And hash them that way.
1292 (gimple_register_type_1): If we register a main variant properly
1293 initialize the leader to ourselves.
1295 2011-05-19 Tom de Vries <tom@codesourcery.com>
1298 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1299 get_loop_invariant_expr_id.
1300 (get_loop_invariant_expr_id): Use get_expr_id.
1301 (parm_decl_cost): New function.
1302 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1303 Improve bound cost estimation. Use different inv_expr_id for elim and
1306 2011-05-19 Tom de Vries <tom@codesourcery.com>
1309 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1310 cost_base.cost == 0.
1312 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
1315 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
1316 Properly handle load cast.
1318 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1320 PR tree-optimization/49039
1321 * tree-vrp.c (extract_range_from_binary_expr): For
1322 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1323 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1325 2011-05-18 Tom de Vries <tom@codesourcery.com>
1328 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1330 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
1332 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1333 (*tls_global_dynamic_64): Ditto.
1334 (*tls_local_dynamic_base_32_gnu): Ditto.
1335 (*tls_local_dynamic_base_64): Ditto.
1336 (tls_initial_exec_64_sun): Ditto.
1338 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
1340 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1341 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1343 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1344 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1345 * config/bfin/bfin.c (bfin_cpus): Add bf592.
1346 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1347 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1348 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1349 * config/bfin/elf.h (LIB_SPEC): Add bf592.
1351 2011-05-18 Joseph Myers <joseph@codesourcery.com>
1353 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1354 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1355 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1356 target_thread_pointer, arm_structure_size_boundary, struct
1357 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1358 struct abi_name, arm_all_abis): Remove.
1359 (arm_option_override) Don't process most enumerated option values here.
1360 Don't process target_fpe_name here. Work with integer not string for
1361 structure size boundary; use separate diagnostics for each case.
1362 * config/arm/arm.h (enum float_abi_type, enum
1363 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1365 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1366 arm_structure_size_boundary): Remove.
1367 * config/arm/arm.opt (mabi=): Use Enum and Init.
1368 (arm_abi_type): New Enum and EnumValue entries.
1369 (mfloat-abi=): Use Enum and Init.
1370 (float_abi_type): New Enum and EnumValue entries.
1371 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1372 (mfp16-format=): Use Enum and Init.
1373 (arm_fp16_format_type): New Enum and EnumValue entries.
1374 (mstructure-size-boundary=): Use UInteger and Init.
1375 (mtp=): Use Enum and Init.
1376 (arm_tp_type): New Enum and EnumValue entries.
1378 2011-05-18 Richard Guenther <rguenther@suse.de>
1380 PR tree-optimization/49018
1381 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1382 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1383 gimple_has_side_effects.
1385 2011-05-18 Richard Guenther <rguenther@suse.de>
1387 * gimple.c (gimple_register_type_1): New function, split out from ...
1388 (gimple_register_type): ... here. Avoid infinite recursion.
1390 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1392 PR tree-optimization/41881
1393 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1394 reduction_chains along with a macro for its access.
1395 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1396 (destroy_loop_vec_info): Free reduction chains.
1397 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1398 (vect_is_slp_reduction): New function.
1399 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1400 (vect_create_epilog_for_reduction): Support SLP reduction chains.
1401 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1402 definition types for reduction chains.
1403 (vect_supported_load_permutation_p): Don't allow permutations for
1405 (vect_analyze_slp_instance): Support reduction chains.
1406 (vect_analyze_slp): Try to build SLP instance from reduction chains.
1407 (vect_get_constant_vectors): Handle reduction chains.
1408 (vect_schedule_slp_instance): Mark the first statement of the
1409 reduction chain as reduction.
1411 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1413 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1414 names for group elements access.
1415 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1416 reduction chains as well. Remove data reference and interleaving
1417 related words from the fields names.
1418 * tree-vect-loop.c (vect_transform_loop): Use new names for group
1420 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1421 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1422 vect_update_interleaving_chain, vect_same_range_drs,
1423 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1424 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1425 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1426 vect_analyze_group_access, vect_analyze_data_ref_access,
1427 vect_create_data_ref_ptr, vect_transform_strided_load,
1428 vect_record_strided_load_vectors): Likewise.
1429 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1430 vect_model_load_cost, vectorizable_store, vectorizable_load,
1431 vect_remove_stores, new_stmt_vec_info): Likewise.
1432 * tree-vect-slp.c (vect_build_slp_tree,
1433 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1435 2011-05-18 Richard Guenther <rguenther@suse.de>
1438 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1439 operand verification.
1440 (verify_gimple_assign_binary): Likewise.
1441 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1442 to non-1-precision BOOLEAN_TYPEs.
1444 2011-05-18 Tom de Vries <tom@codesourcery.com>
1447 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1449 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1451 PR tree-optimization/49000
1452 * tree-ssa.c (execute_update_addresses_taken): Call
1453 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
1454 be rewritten and decl has been marked for renaming, reset
1457 2011-05-17 Joseph Myers <joseph@codesourcery.com>
1459 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1460 enum_opts_set when testing if attributes have set -mfpmath=.
1462 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
1464 * config/mips/mips.c (mips_handle_option): Remove unused variable.
1466 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1468 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1470 * tree-inline.c (maybe_inline_call_in_expr): Initialize
1471 id.transform_lang_insert_block with NULL.
1473 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1475 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1476 (output_fp_compare): Change args 3 and 4 to bool.
1477 (ix86_expand_call): Change arg 6 to bool.
1478 (ix86_attr_length_immediate_default): Change arg 2 to bool.
1479 (ix86_attr_length_vex_default): Change arg 3 to bool.
1480 * config/i386/i386.md: Update all uses.
1481 * config/i386/i386.c: Ditto.
1482 (ix86_flags_dependent): Change return type to bool.
1484 2011-05-17 Richard Guenther <rguenther@suse.de>
1486 * gimple.c (type_hash_pair_compare): Fix comparison.
1488 2011-05-17 Richard Guenther <rguenther@suse.de>
1490 * gimple.c (iterative_hash_gimple_type): Simplify singleton
1491 case some more, fix final hash value of the non-singleton case.
1493 2011-05-17 Richard Guenther <rguenther@suse.de>
1497 2011-05-16 Richard Guenther <rguenther@suse.de>
1499 * gimple.c (gimple_types_compatible_p_1): Use names of the
1500 type itself, not its main variant.
1501 (iterative_hash_gimple_type): Likewise.
1503 2011-05-17 Richard Guenther <rguenther@suse.de>
1505 * gimple.c (gimple_register_canonical_type): Use the main-variant
1506 leader for computing the canonical type.
1508 2011-05-17 Nick Clifton <nickc@redhat.com>
1510 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
1513 * config/rx/rx.md: Add peephole to remove redundant extensions
1515 (bitset_in_memory): Use rx_restricted_mem_operand.
1516 (bitinvert_in_memory): Likewise.
1517 (bitclr_in_memory): Likewise.
1519 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
1520 Nick Clifton <nickc@redhat.com>
1522 * config/rx/rx.md: Add peepholes to match a register move followed
1523 by a comparison of the moved register. Replace these with an
1524 addition of zero that does both actions in one instruction.
1526 2011-05-17 Jakub Jelinek <jakub@redhat.com>
1529 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
1530 predicate to allow CONST_INT.
1531 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
1533 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1535 * opts-common.c (opt_enum_arg_to_value): New.
1536 * opts.h (opt_enum_arg_to_value): Declare.
1537 * config/i386/i386.opt (fpmath): Remove.
1538 (mfpmath=): Use Enum, Init and Save.
1539 (fpmath_unit): New Enum and EnumValue entries.
1540 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
1541 name for function fpmath state.
1542 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
1543 * config/i386/i386.c: Include diagnostic.h.
1544 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
1545 (ix86_target_string): Take enum fpmath_unit value instead of string.
1546 (ix86_debug_options): Update call to ix86_target_string.
1547 (ix86_option_override_internal): Don't process fpmath strings here.
1548 (x86_function_specific_save, ix86_function_specific_restore):
1549 Don't handle fpmath state specially.
1550 (ix86_function_specific_print): Pass fpmath state to
1551 ix86_target_string instead of printing in this function.
1552 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
1553 Handle enum attributes.
1554 (IX86_ATTR_ENUM, ix86_opt_enum): New.
1555 (ix86_valid_target_attribute_tree): Update option_strings
1556 handling. Handle fpmath as enum option.
1557 (ix86_can_inline_p): Update field names for function fpmath state.
1558 (ix86_expand_builtin): Update call to ix86_target_string.
1559 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
1560 (ix86_fpmath): Remove.
1561 * config/i386/t-i386 (i386.o): Update dependencies.
1563 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1565 PR preprocessor/48677
1566 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
1567 from decoded_options[0], not from itself.
1569 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
1571 * config/i386/constraints.md (z): New constraint.
1572 * config/i386/i386.c (c): New mode attribute.
1573 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
1574 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
1575 constraint for operand 0.
1576 (*call_vzeroupper): Ditto.
1577 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
1578 (*call_rex64_ms_sysv_vzeroupper): Ditto.
1579 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1580 Use "lzm" constraint for operand 0.
1581 (*call_pop_vzeroupper): Ditto.
1582 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1583 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
1584 constraint for operand 0.
1585 (*sibcall_vzeroupper): Ditto.
1586 (*sibcall_rex64_ms_sysv): Ditto.
1587 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1588 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1589 *sibcall_pop_1. Use "Uz" constraint for operand 0.
1590 (*sibcall_pop_vzeroupper): Ditto.
1591 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1592 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1593 mode iterator. Use "<c>zm" constraint for operand 1.
1594 (*call_value_vzeroupper): Ditto.
1595 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
1597 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1598 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1599 *call_value_pop_1. Use "lzm" constraint for operand 1.
1600 (*call_value_pop_vzeroupper): Ditto.
1601 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1602 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1603 mode iterator. Use "Uz" constraint for operand 1.
1604 (*sibcall_value_vzeroupper): Ditto.
1605 (*sibcall_value_rex64_ms_sysv): Ditto.
1606 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1607 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
1608 constraint for operand 1.
1609 (*sibcall_value_pop_vzeroupper): Ditto.
1610 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1611 and "z" constraint for operand 2.
1612 (*tls_global_dynamic_32_gnu): Ditto.
1613 (*tls_local_dynamic_base_32_gnu): Ditto.
1614 (*tls_local_dynamic_base_64): Ditto.
1615 (*tls_local_dynamic_32_once): Ditto.
1616 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1618 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1620 2011-05-16 Richard Guenther <rguenther@suse.de>
1622 * gimple.c (gimple_types_compatible_p_1): Use names of the
1623 type itself, not its main variant.
1624 (iterative_hash_gimple_type): Likewise.
1626 2011-05-16 Richard Guenther <rguenther@suse.de>
1628 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1629 always visit pointer target and function result and argument types.
1631 2011-05-16 Jason Merrill <jason@redhat.com>
1634 * tree-inline.c (copy_statement_list): Put back recursion.
1636 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1640 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1641 * config/avr/avr.md ("*ior<mode>qi.byte0",
1642 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1644 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1647 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1648 register is needed for a function argument.
1650 2011-05-16 Richard Guenther <rguenther@suse.de>
1652 * gimple.c (struct type_hash_pair): New type.
1653 (type_hash_pair_compare): New function.
1654 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1656 2011-05-16 Revital Eres <revital.eres@linaro.org>
1658 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1660 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1662 * config/i386/i386.md (floating point move splitters): Fix
1663 usage of standard_80387_constant_p.
1664 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1666 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1668 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1670 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
1672 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1673 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1674 (tree_ssa_lim_finalize): Likewise.
1676 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
1678 * config/i386/constraint.md (Yd, Yx): New register constraints.
1679 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
1680 Yd conditional register constraint.
1681 (*movtf_internal): Use standard_sse_constant_opcode.
1682 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
1683 Yx conditional register constraint.
1684 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
1685 Yd conditional register constraint. Use standard_sse_constant_p to
1686 check for valid SSE constants and call standard_sse_constant_opcode to
1688 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1689 constants and call standard_sse_constant_opcode to output SSE insn.
1690 * config/i386/i386.c (ix86_option_ovverride_internal): Set
1691 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
1692 optimize_size is set.
1693 (standard_sse_constant_opcode): Output conditional AVX insn templates.
1695 2011-05-14 Tobias Burnus <burnus@net-b.de>
1697 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1699 2011-05-13 Martin Jambor <mjambor@suse.cz>
1701 * ipa-prop.c (ipa_cst_from_jfunc): New function.
1702 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1703 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1704 (evaluate_conditions_for_ipcp_clone): Removed.
1705 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1706 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1707 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1709 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
1711 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1712 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1713 lieu of MAY_HAVE_DEBUG_STMTS.
1714 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1715 debug statements if !MAY_HAVE_DEBUG_STMTS.
1717 2011-05-13 Martin Thuresson <martint@google.com>
1719 PR gcov-profile/47793
1720 * libgcov.c (gcov_exit): Support relative profile paths.
1721 * doc/invoke.texi (-fprofile-dir): Update for above change.
1723 2011-05-13 Richard Guenther <rguenther@suse.de>
1725 * gimple.c (gimple_canonical_types_compatible_p): Do not use
1726 type-pair caching, do not compare hashes.
1728 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
1731 * tree-cfg.c (edge_to_cases_cleanup): Return true.
1732 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1734 2011-05-13 Kai Tietz <ktietz@redhat.com>
1736 * gimplify.c (gimplify_expr): Make sure operand is boolified.
1737 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1738 compatible type for TRUTH_NOT_EXPR.
1740 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
1742 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1743 (ix86_hard_regno_mode_ok): Change return value to bool. Use
1744 can_create_pseudo_p ().
1746 2011-05-13 Richard Guenther <rguenther@suse.de>
1749 * gimple.c (iterative_hash_gimple_type): Revert change in
1750 pointer target and function result and argument hashing.
1752 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
1754 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1755 (*movxf_internal_nointeger): Ditto.
1756 (*movdf_internal_rex64): Ditto.
1757 (*movdf_internal): Ditto.
1758 (*movdf_internal_nointeger): Ditto.
1759 (*movsf_internal): Ditto.
1760 (sincos splitters): Use can_create_pseudo ().
1762 2011-05-13 Joseph Myers <joseph@codesourcery.com>
1764 * config/i386/i386-opts.h: New.
1765 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1766 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1767 ix86_section_threshold): Remove.
1768 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
1769 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1771 (ix86_option_override_internal): Don't decode strings for options
1772 other than -march=, -mtune= and -mfpmath=. Don't allow for
1773 __attribute__ uses in remaining diagnostics for options with
1774 string arguments. Don't check for integer arguments being negative.
1775 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
1776 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
1777 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
1778 ix86_branch_cost, ix86_section_threshold): Remove.
1779 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
1781 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
1783 (masm=): Use Enum and Init.
1784 (asm_dialect): New Enum and EnumValue entries.
1785 (mbranch-cost=): Use UInteger.
1786 (mlarge-data-threshold=): Use UInteger and Init.
1787 (mcmodel=): Use Enum and Init.
1788 (cmodel): New Enum and EnumValue entries.
1789 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
1790 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
1791 mregparm=): Use UInteger.
1792 (mstringop-strategy=): Use Enum and Init.
1793 (stringop_alg): New Enum and EnumValue entries.
1794 (mtls-dialect=): Use Enum and Init.
1795 (tls_dialect): New Enum and EnumValue entries.
1796 (mabi=): Use Enum and Init.
1797 (calling_abi): New Enum and EnumValue entries.
1798 (mveclibabi=): Use Enum and Init.
1799 (ix86_veclibabi): New Enum and EnumValue entries.
1801 2011-05-13 Nick Clifton <nickc@redhat.com>
1803 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1804 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1806 2011-05-13 Kai Tietz <ktietz@redhat.com>
1809 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1810 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1811 (gimple_boolify): Check for cast for boolean_type_node instead for
1814 2011-05-13 Richard Guenther <rguenther@suse.de>
1816 PR tree-optimization/48172
1817 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1818 multiplying by number of iterations for equal step.
1819 (vect_create_cond_for_alias_checks): Likewise.
1821 2011-05-13 Andreas Schwab <schwab@redhat.com>
1823 * configure.ac: Use AS_HELP_STRING throughout.
1824 * configure: Regenerate.
1826 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
1828 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
1829 (ix86_emit_restore_regs_using_mov): Likewise.
1830 (ix86_emit_restore_sse_regs_using_mov): Likewise.
1832 2011-05-12 Anatoly Sokolov <aesok@post.ru>
1834 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
1835 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
1836 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
1837 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
1838 RTX_OK_FOR_OLO10_P): ...here.
1839 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
1842 2011-05-12 Kai Tietz <ktietz@redhat.com>
1844 * gimplify.c (gimple_boolify): Re-boolify expression
1845 arguments even if expression type is of kind BOOLEAN_TYPE.
1846 (gimplify_boolean_expr): Removed.
1847 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
1848 and XOR. Additional take care that we keep expression's type.
1849 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
1850 of TRUTH_AND|OR|XOR_EXPR.
1852 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1854 PR tree-optimization/48975
1855 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
1856 on all bbs here and free and clear ifc_bbs at the end.
1858 2011-05-12 Richard Guenther <rguenther@suse.de>
1860 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
1861 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
1862 until after simple checks.
1863 (gimple_types_compatible_p): Likewise.
1864 (iterative_hash_gimple_type): Always hash pointer targets
1865 and function return and argument types.
1866 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
1867 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
1868 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
1869 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
1870 completely in the simple compare section.
1871 (gimple_register_canonical_type): Query the cache again after
1874 2011-05-12 Richard Guenther <rguenther@suse.de>
1876 PR tree-optimization/48172
1877 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
1878 the number of iterations from the segment size calculation.
1879 (vect_create_cond_for_alias_checks): Adjust.
1881 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1884 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
1885 if validate_subreg fails.
1887 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
1889 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
1890 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
1893 2011-05-12 DJ Delorie <dj@redhat.com>
1895 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1896 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1897 created builtin into rx_builtins array.
1898 (rx_builtin_decl): New function.
1899 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
1901 2011-05-12 DJ Delorie <dj@redhat.com>
1902 Nick Clifton <nickc@redhat.com>
1904 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1905 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1906 (rx_is_legitimate_address): Add pre-decrement and post-increment
1907 addressing in HImode and QImode. Fix test for out of range
1909 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1910 (rx_align_for_label): Test label before extracting its usage count.
1911 (rx_adjust_insn_lengths): Fix selection of insn codes.
1912 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1914 2011-05-11 Jason Merrill <jason@redhat.com>
1916 * tree.c (type_hash_canon): Use struct tree_type_non_common.
1918 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1920 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1921 reindent the subsequent block.
1923 2011-05-11 Satoru Takabayashi <satorux@google.com>
1924 Paul Pluzhnikov <ppluzhnikov@google.com>
1926 * doc/install.texi (Configuration): Document --with-linker-hash-style.
1927 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1928 * config.in: Add LINKER_HASH_STYLE.
1929 * configure.ac: Add --with-linker-hash-style.
1930 * configure: Regenerate.
1932 2011-05-11 Richard Guenther <rguenther@suse.de>
1935 * gimple.c (iterative_hash_canonical_type): Fix typo.
1937 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
1939 * config/i386/i386.c (legitimize_tls_address)
1940 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1941 expanders directly for TARGET_GNU2_TLS. Determine pic and
1942 __tls_get_addr symbol reference here. Update call to
1943 gen_tls_global_dynamic_{32,64} for added arguments.
1944 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1945 expanders directly for TARGET_GNU2_TLS. Determine
1946 __tls_get_addr symbol reference here. Update call to
1947 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
1948 unique UNSPEC REG_EQUIV to libcall block.
1949 (ix86_tls_get_addr): Declare static.
1950 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1951 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1952 Do not determine pic and __tls_get_addr symbol reference here. Do not
1953 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1954 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1955 (tls_global_dynamic_64): Add operand 2. Do not determine
1956 __tls_get_addr symbol reference here. Do not call
1957 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1958 (tls_local_dynamic_base64): Ditto for operand 1.
1960 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1962 * function.c (expand_function_start): Initialize stack_check_probe_note
1963 only if the generic stack checking mechanism is used.
1965 2011-05-11 Richard Guenther <rguenther@suse.de>
1967 PR tree-optimization/15256
1968 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1969 (A & B) | C, combine (A op CST1) op CST2.
1970 (tree_ssa_forward_propagate_single_use_vars): Only bother to
1971 visit assigns that have uses.
1973 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
1975 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1976 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1977 (unpack_ts_type_common_value_fields): ...this. Update comment.
1978 (unpack_value_fields): Adjust for renaming.
1979 (lto_input_ts_type_tree_pointers): Split into...
1980 (lto_input_ts_type_common_tree_pointer): ...this and...
1981 (lto_input_ts_type_non_common_tree_pointers): ...this.
1982 (lto_input_tree_pointers): Adjust for above split.
1983 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1984 (pack_ts_type_common_value_fields): ...this. Update comment.
1985 (lto_output_ts_type_tree_pointers): Split into...
1986 (lto_output_ts_type_common_tree_pointers): ...this and...
1987 (lto_output_ts_type_non_common_tree_pointers): ...this.
1988 (lto_output_tree_pointers): Adjust for above split.
1989 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1990 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1991 * stor-layout.c (vector_type_mode): Adjust location of mode field.
1992 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1994 (struct tree_type): Split into...
1995 (struct tree_type_common: ...this and...
1996 (struct tree_type_with_lang_specific): ...this and...
1997 (struct tree_type_non_common): ...this. Adjust accessor macros
1999 (TYPE_VALUES_RAW): Define.
2000 (union tree_node): Update for above changes.
2001 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2003 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2004 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2005 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2006 * treestructu.def (TS_TYPE): Remove.
2007 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2010 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2013 * tree-ssa.c (reset_debug_uses): New function.
2014 * tree-flow.h (reset_debug_uses): New prototype.
2015 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2016 * tree-loop-distribution.c (generate_loops_for_partition): Call
2017 reset_debug_uses on the stmts that will be removed. Keep around
2018 all debug stmts, don't count them as bits in partition bitmap.
2019 (generate_builtin): Don't count debug stmts or labels as bits in
2022 2011-05-11 Richard Guenther <rguenther@suse.de>
2024 * gimple.c (gimple_type_hash_1): Merge with ...
2025 (gimple_type_hash): ... this.
2026 (gtc_visit): Remove mode parameter and simplify accordingly.
2027 (gimple_types_compatible_p_1): Likewise.
2028 (gimple_types_compatible_p): Likewise.
2029 (iterative_hash_gimple_type): Likewise.
2031 (gimple_type_eq): Adjust.
2033 2011-05-11 Revital Eres <revital.eres@linaro.org>
2035 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2036 enters the branch create an anti edge in the opposite direction
2037 to prevent the creation of reg-moves.
2038 * modulo-sched.c: Adjust comment to reflect the fact we are
2039 scheduling closing branch.
2040 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2041 (stage_count): New field in struct partial_schedule.
2042 (calculate_stage_count): New function.
2043 (normalize_sched_times): Rename to reset_sched_times and handle
2044 incrementing the sched time of the nodes by a constant value
2045 passed as parameter.
2046 (duplicate_insns_of_cycles): Skip closing branch.
2047 (sms_schedule_by_order): Schedule closing branch.
2048 (ps_insn_find_column): Handle closing branch.
2049 (sms_schedule): Call reset_sched_times and adjust the code to
2050 support scheduling of the closing branch.
2051 (ps_insert_empty_row): Update calls to normalize_sched_times
2052 and rotate_partial_schedule functions.
2054 2011-05-11 Richard Guenther <rguenther@suse.de>
2057 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2059 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2061 * opts.c (finish_options): Move warning settings from process_options.
2062 * toplev.c (process_options): Move warning settings to finish_options.
2064 2011-05-11 Richard Guenther <rguenther@suse.de>
2066 PR tree-optimization/18041
2067 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2068 (simplify_bitwise_binary): ... this. Handle operand conversions
2069 by applying them to the result instead.
2070 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2072 2011-05-11 Richard Guenther <rguenther@suse.de>
2074 * gimple.c (gimple_canonical_types_compatible_p): Split out
2075 from gimple_types_compatible_p and friends. Do not recurse
2076 to pointed-to types.
2077 (gimple_canonical_type_eq): Use it.
2078 (iterative_hash_canonical_type): Split out from
2079 iterative_hash_gimple_type and friends. Do not recurse
2080 to pointed-to types.
2081 (gimple_canonical_type_hash): Use it, allocate the hash here.
2083 2011-05-11 Revital Eres <revital.eres@linaro.org>
2085 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2088 2011-05-11 Revital Eres <revital.eres@linaro.org>
2090 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2091 instead of PREV_INSN.
2093 2011-05-11 Revital Eres <revital.eres@linaro.org>
2095 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2096 * loop-doloop.c (doloop_condition_get): Likewise.
2097 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2099 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2101 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2103 * tree.def (CASE_LABEL_EXPR): Add an operand.
2104 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2106 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2108 * c-decl.c (c_override_global_bindings_to_false): Remove.
2109 (global_bindings_p): Don't check
2110 c_override_global_bindings_to_false.
2111 * c-tree.h (c_override_global_bindings_to_false): Remove.
2112 * c-typeck.c (composite_type): Don't set
2113 c_override_global_bindings_to_false.
2115 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2117 PR target/48857, 48495
2118 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2120 (VSX_MOVE_MODE): Ditto.
2121 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2122 VSX vector types. Add V2DImode.
2123 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2124 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2125 (MODES_TIEABLE_P): Ditto.
2127 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2128 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2130 (init_cumulative_args): Ditto.
2131 (rs6000_function_arg_boundary): Ditto.
2132 (rs6000_function_arg_advance_1): Ditto.
2133 (rs6000_function_arg): Ditto.
2134 (rs6000_function_ok_for_sibcall): Ditto.
2135 (emit_frame_save): Ditto.
2136 (rs6000_function_value): Ditto.
2137 (rs6000_libcall_value): Ditto.
2139 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2141 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2142 i386/darwin-lib.h to $libgcc_tm_file.
2143 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2145 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2147 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2149 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2151 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2152 * config/rs6000/rs6000-tables.opt: New file (generated).
2153 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2154 rs6000/rs6000-tables.opt to extra_options.
2155 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2156 * config/rs6000/rs6000.c (rs6000_select): Remove.
2157 (processor_target_table): Move contents to rs6000-cpus.def.
2158 (darwin_rs6000_override_options): Check
2159 global_options_set.x_rs6000_cpu_index instead of
2160 rs6000_select[1].string.
2161 (rs6000_option_override_internal): Likewise.
2162 (rs6000_handle_option): Don't assert that global structures are in
2163 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
2164 (rs6000_default_cpu): New variable.
2165 (rs6000_file_start): Set it instead of local default_cpu. Check
2166 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2167 global_options_set.x_rs6000_tune_index instead of rs6000_select.
2168 (rs6000_darwin_file_start): Check rs6000_default_cpu and
2169 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2170 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2171 rs6000_select): Remove.
2172 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2174 (mcpu=, mtune=): Use Var, Init, Enum and Save.
2175 * config/rs6000/t-rs6000
2176 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2177 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2178 global_options_set.x_rs6000_cpu_index instead of
2179 rs6000_select[1].string.
2180 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2181 global_options_set.x_rs6000_cpu_index instead of
2182 rs6000_select[1].string.
2184 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2186 * config.gcc (libgcc_tm_file): Define instead of including files
2187 from ../../libgcc/config/ in tm_file.
2188 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2189 * configure: Regenerate.
2190 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2191 libgcc_tm.h, cs-libgcc_tm.h): New.
2192 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2193 (clean): Remove libgcc_tm.h.
2194 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2195 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2196 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2198 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
2201 * config/avr/avr.c (avr_ret_register): Return unsigned int
2203 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2204 it to avr_libcall_value.
2205 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2207 (avr_expand_binop_builtin): Ditto.
2208 (avr_expand_unop_builtin): Ditto.
2210 2011-05-10 DJ Delorie <dj@redhat.com>
2212 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2213 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2214 * config/rx/rx.c (rx_align_for_label): Add label and
2215 uses_threshold parameters. Do not align when the label is not
2217 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2219 2011-05-10 Richard Guenther <rguenther@suse.de>
2221 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2222 a series of conversions and apply foldings similar to what
2224 (tree_ssa_forward_propagate_single_use_vars): Call it.
2226 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2228 PR tree-optimization/48611
2229 PR tree-optimization/48794
2230 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2231 referenced from RESX or EH_DISPATCH arguments.
2234 * dfp.c (decimal_to_decnumber): Handle conversion from
2235 dconst{1,2,m1,half}.
2237 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2239 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2240 for !flag_prefer_avx128.
2241 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2243 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2245 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2246 (fold_ternary_loc): Use expr_location_or.
2248 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
2251 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2252 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2253 Pmode and mem_mode is not VOIDmode.
2255 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2257 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2258 TYPE_QUAL_RESTRICT): Convert to enum.
2260 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2262 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2263 (const_pow2_1_to_8_operand): Ditto.
2264 (const_pow2_1_to_128_operand): Ditto.
2265 (const_pow2_1_to_32768_operand): Ditto.
2266 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2267 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
2268 in insn constraint to check integer value of operand 3.
2269 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2271 (PINSR_MODE): New mode iterator.
2272 (sse2p4_1): New mode attribute.
2273 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2274 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2275 iterator. Use const_int_operand instead of
2276 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
2277 exact_log2 in insn constraint to check integer value of operand 3.
2279 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2281 * config/i386/sse.md (blendbits): Remove mode attribute.
2282 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2283 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2284 Check integer value of operand 3 in insn constraint.
2286 2011-05-09 Richard Guenther <rguenther@suse.de>
2288 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2290 (lto_symtab_merge): Likewise. Do not register types here.
2291 (lto_symtab_merge_decls_2): Likewise.
2292 (lto_symtab_merge_decls_1): Likewise.
2293 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2294 * gimple.c (enum gtc_mode): Declare.
2295 (gimple_types_compatible_p): Make static.
2297 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2299 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2300 temporary register to match Pmode.
2302 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2304 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2305 and *vec_concatv4si_1_avx.
2307 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2309 PR rtl-optimization/48927
2310 * ira-conflicts.c (commutative_constraint_p): Use
2311 recog_data.alternative_enabled_p to disable alternatives where
2312 "enabled" attribute is false.
2313 (get_dup_num): Ditto.
2314 * ira-lives.c (single_reg_class): Ditto.
2315 (ira_implicitly_set_insn_hard_regs): Ditto.
2317 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2319 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2320 (dataflow_set_preserve_mem_locs): Likewise.
2322 2011-05-09 Philipp Thomas <pth@suse.de>
2324 * config/mep/mep.c (mep_validate_vliw): Syntax description
2325 should not be translated.
2327 2011-05-09 Joseph Myers <joseph@codesourcery.com>
2329 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2330 * config/mips/mips-tables.opt: New file (generated).
2331 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2332 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2333 MIPS_ARCH_OPTION_NATIVE): Define.
2334 * config/mips/mips.c (mips_cpu_info_table): Move contents to
2336 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2337 mips_parse_cpu): Remove.
2338 (mips_cpu_info_from_opt, mips_default_arch): New.
2339 (mips_handle_option): Don't assert that global structures are in
2340 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2341 (mips_option_override): Use new variables and functions to set
2342 state of these options. Use strcmp to check for individual CPU names.
2343 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2345 * config/mips/mips.opt (march=): Use ToLower and Enum.
2346 (mips): Use ToLower, Enum and Var.
2347 (mtune=): Use ToLower and Enum.
2348 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2350 2011-05-08 Jan Hubicka <jh@suse.cz>
2352 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2353 Arrange type pairs to be UID ordered.
2354 (gimple_lookup_type_leader): Make inline.
2356 2011-05-09 Nick Clifton <nickc@redhat.com>
2359 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2363 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2366 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
2368 * combine.c (simplify_comparison): Abstract out parts into...
2369 (simplify_compare_const): ... new function.
2370 (try_combine): Generalize parallel arithmetic/compare combining
2371 to call simplify_compare_const() and CANONICALIZE_COMPARE().
2373 2011-05-08 Jan Hubicka <jh@suse.cz>
2375 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2376 (cgraph_create_virtual_clone): Call hooks once virtual clone
2378 * cgraph.h (cgraph_clone_node): Update prototype.
2379 * ipa-cp.c (ipcp_estimate_growth): Use
2380 estimate_ipcp_clone_size_and_time.
2381 * ipa-inline-transform.c (clone_inlined_nodes): Update.
2382 * lto-cgraph.c (input_node): Update.
2383 * ipa-inline.c (recursive_inlining): Update.
2384 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2385 (evaluate_conditions_for_known_args): Break out from ...
2386 (evaluate_conditions_for_edge): ... here.
2387 (evaluate_conditions_for_ipcp_clone): New function.
2388 (inline_node_duplication_hook): Update clone summary based
2390 (estimate_callee_size_and_time): Rename to ...
2391 (estimate_node_size_and_time): take NODE instead of EDGE;
2392 take POSSIBLE_TRUTHS as argument.
2393 (estimate_callee_size_and_time): Update.
2394 (estimate_ipcp_clone_size_and_time): New function.
2395 (do_estimate_edge_time): Update.
2397 2011-05-08 Richard Guenther <rguenther@suse.de>
2401 * expmed.c (expand_shift_1): Compute adjusted constant shift
2404 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2406 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2408 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2410 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2412 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2414 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2416 2011-05-07 Jan Hubicka <jh@suse.cz>
2418 * ipa-inline-transform.c (inline_call): Account when program size
2420 * ipa-inline.c (relative_time_benefit): New function.
2421 (edge_badness): Reorganize to be power 2 based; fix thinko when
2422 computing badness for negative growth; update comments to match
2423 reality; better dumps.
2425 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
2427 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2428 type to bool and adjust comment.
2429 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2430 (fold_mathfn_compare): Remove calls to global_bindings_p.
2431 (fold_inf_compare): Likewise.
2432 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2433 * c-tree.h (global_bindings_p): Adjust prototype.
2434 * c-decl.c (global_bindings_p): Return bool and simplify.
2436 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
2438 PR tree-optimization/48837
2439 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2440 when accumulator transformation is performed.
2442 2011-05-06 Jan Hubicka <jh@suse.cz>
2444 * i386.h (ix86_tune_indices): Add
2445 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2446 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2447 * i386.c (initial_ix86_tune_features): Add
2448 X86_SOFTARE_PREFETCHING_BENEFICIAL.
2449 (software_prefetching_beneficial_p): Remove predicate.
2450 (ix86_option_override_internal): Use new macro.
2452 2011-05-06 Jan Hubicka <jh@suse.cz>
2454 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2456 2011-05-06 Jan Hubicka <jh@suse.cz>
2458 * cgraph.c (cgraph_add_thunk): Create real function node instead
2459 of alias node; finalize it and mark needed/reachale; arrange visibility
2460 to be right and add it into the corresponding same comdat group list.
2461 (dump_cgraph_node): Dump thunks.
2462 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2463 cgraph_function_with_gimple_body_p,
2464 cgraph_first_function_with_gimple_body,
2465 cgraph_next_function_with_gimple_body): New functions.
2466 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2468 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2469 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2470 * cgraphunit.c (cgraph_finalize_function): Only look into possible
2471 devirtualization when optimizing.
2472 (verify_cgraph_node): Verify thunks.
2473 (cgraph_analyze_function): Analyze thunks.
2474 (cgraph_mark_functions_to_output): Output thunks only in combination
2475 with function they are assigned to.
2476 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2477 alias into normal node.
2478 (assemble_thunks): New functoin.
2479 (cgraph_expand_function): Use it.
2480 * lto-cgraph.c (lto_output_node): Stream thunks.
2481 (input_overwrite_node): Stream in thunks.
2482 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2483 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2484 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2485 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2486 (inline_analyze_function): Do not care about thunk jump functions.
2487 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2488 * ipa-prop.c (ipa_prop_write_jump_functions): Use
2489 cgraph_function_with_gimple_body_p.
2490 * passes.c (do_per_function_toporder): Use
2491 cgraph_function_with_gimple_body_p.
2492 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2493 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2494 (function_called_by_processed_nodes_p): Likewise.
2496 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2498 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2499 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2501 (mabi=): Replace with separate entries for mabi=altivec,
2502 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2503 mabi=ieeelongdouble and mabi=ibmlongdouble.
2504 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2505 check for -mabi=spe without SPE ABI support here.
2506 (rs6000_handle_option): Replace OPT_mabi_ handling with
2507 OPT_mabi_altivec and OPT_mabi_spe handling.
2509 2011-05-06 Cary Coutant <ccoutant@google.com>
2511 * dwarf2out.c (contains_subprogram_definition): New function.
2512 (should_move_die_to_comdat): Call it.
2514 2011-05-06 Jeff Law <law@redhat.com>
2516 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
2517 remove_ctrl_stmt_and_useless_edges.
2518 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2519 (fixup_template_block, thread_single_edge): Likewise.
2520 (mark_threaded_blocks): Use THREAD_TARGET.
2522 2011-05-06 Alan Modra <amodra@gmail.com>
2525 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2526 const0_rtx as the arg to the dummy __tls_get_addr libcall.
2528 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2530 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2531 constraint modifier to "r".
2533 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2535 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
2536 fall through for OPT_mcmodel_.
2538 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2540 * config/s390/s390.c (s390_asm_trampoline_template): Comment
2542 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2544 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2547 * config/arm/arm.opt (marm): Document it.
2548 (mthumb): Reject negative variant.
2550 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2553 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2554 Fix typo in "ccvt" variable name.
2556 2011-05-06 Tristan Gingold <gingold@adacore.com>
2559 * config/vms/vms-ar.c (main): Remove cwd variable.
2561 2011-05-06 Jakub Jelinek <jakub@redhat.com>
2564 * var-tracking.c (prepare_call_arguments): Move else before #endif.
2566 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2568 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
2569 * gimplify.c (gimplify_switch_expr): Likewise.
2570 * omp-low.c (expand_omp_sections): Likewise.
2571 * tree-eh.c (lower_try_finally_switch): Likewise.
2572 (lower_eh_dispatch): Likewise.
2573 * tree.h (build_case_label): Declare.
2574 * tree.c (build_case_label): Define.
2576 2011-05-05 Jason Merrill <jason@redhat.com>
2579 * tree-inline.c (copy_tree_r): Use copy_statement_list.
2580 (copy_statement_list): Don't recurse.
2581 * stor-layout.c (copy_self_referential_tree_r): Don't allow
2584 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2586 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2587 through from -mfpu= handling.
2588 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2590 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
2592 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2595 2011-05-05 Steve Ellcey <sje@cup.hp.com>
2597 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2599 (hppa[12]*-*-hpux11*): Ditto.
2600 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2601 * config/ia64/hpux-unix2003.h: New.
2602 * config/pa/pa-hpux1131.opt: New.
2603 * config/pa/pa-hpux1131.h: New.
2604 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2605 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2606 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2608 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2611 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2612 instead of mode as 3rd argument to recursive call.
2613 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2614 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2616 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2617 don't give up if mode is Pmode and mem_mode is not VOIDmode.
2618 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2619 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2621 2011-05-05 Julian Brown <julian@codesourcery.com>
2623 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2624 parenthesis in D-register case.
2626 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2628 * opt-functions.awk (var_type_struct): Handle Enum options.
2629 * optc-gen.awk: Don't check range of variables of character type.
2630 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2631 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2632 rs6000_sdata_name, rs6000_explicit_options): Remove.
2633 (rs6000_option_override_internal): Check for -malign-power here.
2634 Use global_options_set instead of rs6000_explicit_options.
2635 (rs6000_parse_fpu_option): Remove.
2636 (rs6000_handle_option): Access variables via opts and opts_set
2637 pointers. Use error_at and warning_at. Add fall-through
2638 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2639 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2640 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2641 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2642 here. Don't use rs6000_parse_fpu_option.
2643 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2644 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2645 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2647 (mspe): Use Var and Save.
2648 (mtraceback=): Use Enum and Var.
2649 (rs6000_traceback_type): New Enum and EnumValue entries.
2650 (mfloat-gprs=): Use Enum, Var and Save.
2651 (rs6000_float_gprs): New Enum and EnumValue entries.
2652 (mlong-double-): use Var and Save.
2653 (msched-costly-dep=, minsert-sched-nops=): Use Var.
2654 (malign-): Use Enum and Var.
2655 (rs6000_alignment_flags): New Enum and EnumValue entries.
2657 (fpu_type_t): New Enum and EnumValue entries.
2658 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2659 global_options_set instead of rs6000_explicit_options.
2660 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2661 global_options_set instead of rs6000_explicit_options.
2662 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2663 global_options_set instead of rs6000_explicit_options.
2664 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2665 global_options_set instead of rs6000_explicit_options.
2666 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2667 global_options_set instead of rs6000_explicit_options.
2668 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2669 global_options_set instead of rs6000_explicit_options.
2670 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2672 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2673 global_options_set instead of rs6000_explicit_options.
2674 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2675 (rs6000_cmodel): New Enum and EnumValue entries.
2676 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2677 global_options_set instead of rs6000_explicit_options.
2678 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2679 (mtls-size=): Use Enum and Var.
2680 (rs6000_tls_size): New Enum and EnumValue entries.
2682 2011-05-05 Michael Matz <matz@suse.de>
2684 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2685 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2686 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2687 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2688 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2689 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2690 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2691 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2692 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2693 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2694 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2695 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2696 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2697 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2698 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2699 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2701 2011-05-05 Richard Guenther <rguenther@suse.de>
2703 * expmed.c (expand_variable_shift): Rename to ...
2704 (expand_shift_1): ... this. Take an expanded shift amount.
2705 For rotates recurse directly not building trees for the shift amount.
2706 (expand_variable_shift): Wrap around expand_shift_1.
2707 (expand_shift): Adjust.
2709 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2711 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2713 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
2715 * tree.h (get_pending_sizes): Remove prototype.
2716 (put_pending_size): Likewise.
2717 (put_pending_sizes): Likewise.
2718 * stor-layout.c (pending_sizes): Delete.
2719 (get_pending_sizes): Likewise.
2720 (put_pending_size): Likewise.
2721 (put_pending_sizes): Likewise.
2722 (variable_size): Do not call put_pending_size and tidy up.
2723 * function.h (struct function): Remove dont_save_pending_sizes_p.
2724 * lto-streamer-in.c (input_function): Do not stream it.
2725 * lto-streamer-out.c (output_function): Likewise.
2726 * tree-inline.c (initialize_cfun): Do not copy it.
2727 * c-decl.c (store_parm_decls): Do not set it.
2728 * omp-low.c (create_task_copyfn): Likewise.
2729 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2731 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
2733 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2735 (*movdf_internal): Ditto.
2736 (*movdf_internal_nointeger): Ditto.
2737 (*movsf_internal): Ditto.
2739 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2741 * c-decl.c (finish_decl): Don't call get_pending_sizes.
2742 (grokparm): Add parameter expr. Pass it to grokdeclarator.
2743 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
2744 (c_variable_size): Remove.
2745 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
2746 call put_pending_sizes.
2747 (get_parm_info): Add parameter expr. Use it to set
2748 arg_info->pending_sizes.
2749 (store_parm_decls): Use arg_info->pending_sizes instead or calling
2751 * c-parser.c (c_parser_parms_declarator): Update call to
2752 c_parser_parms_list_declarator.
2753 (c_parser_parms_list_declarator): Take parameter expr. Update
2754 call to push_parm_decl. Update recursive call. Don't call
2755 get_pending_sizes. Update calls to get_parm_info.
2756 (c_parser_objc_method_definition): Update calls to
2757 c_parser_objc_method_decl and objc_start_method_definition.
2758 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2759 (c_parser_objc_method_decl): Add parameter expr. Update call to
2761 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2762 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2763 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2765 2011-05-05 Michael Hope <michael.hope@linaro.org>
2768 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2771 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2773 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2774 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2775 (spu_output_mi_thunk): New function.
2777 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2779 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
2780 targetm.asm_out.print_operand.
2781 * config/sol2.c: Include target.h.
2783 2011-05-04 Jan Hubicka <jh@suse.cz>
2785 * ipa-inline.c (reset_edge_caches): New function.
2786 (update_caller_keys): Add check_inlinablity_for; do not
2787 reset edge caches; remove now unnecesary loop.
2788 (update_callee_keys): Add comments; reset node_growth_cache of callee.
2789 (update_all_callee_keys): Likewise.
2790 (inline_small_functions): Sanity check cache; update code
2793 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
2795 PR rtl-optimization/47612
2796 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2797 as the last insn of the sequence to be moved.
2799 2011-05-04 Tobias Burnus <burnus@net-b.de>
2802 * doc/invoke.texi (Ofast): Document that it
2803 enables Fortran's -fno-protect-parens.
2805 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2807 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2809 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
2811 * stor-layout.c (variable_size): Do not issue errors.
2813 2011-05-04 Richard Guenther <rguenther@suse.de>
2815 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2816 for array-ref indices.
2817 (tree_coverage_counter_addr): Likewise.
2818 (build_fn_info_type): Use size_int for index types.
2819 (build_gcov_info): Likewise.
2821 2011-05-04 Richard Guenther <rguenther@suse.de>
2823 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
2825 * c-typeck.c (really_start_incremental_init): Use bitsize_int
2826 for constructor indices.
2827 (push_init_level): Likewise.
2829 2011-05-04 Richard Guenther <rguenther@suse.de>
2831 * explow.c (promote_mode): Move variable declarations before code.
2833 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2835 * tree.h (build_function_type_array): Declare.
2836 (build_varargs_function_type_array): Declare.
2837 (build_function_type_vec, build_varargs_function_type_vec): Define.
2838 * tree.c (build_function_type_array_1): New function.
2839 (build_function_type_array): New function.
2840 (build_varargs_function_type_array): New function.
2842 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
2844 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
2845 before setting STMT_VINFO_TYPE.
2847 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2849 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
2850 instead of spu_pass_by_reference.
2852 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2854 * calls.c (emit_library_call_value_1): Invoke
2855 promote_function_mode hook on libcall arguments.
2856 * explow.c (promote_function_mode, promote_mode): Handle TYPE
2857 argument being NULL.
2858 * targhooks.c (default_promote_function_mode): Lisewise.
2859 * config/s390/s390.c (s390_promote_function_mode): Likewise.
2860 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
2862 * doc/tm.texi: Document that TYPE argument might be NULL.
2864 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2866 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
2868 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2871 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
2873 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2875 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
2876 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
2878 * mips-tfile.c: ... here.
2879 Don't include coretypes.h, tm.h, filenames.h.
2880 (saber_stop): Remove definition and all calls.
2881 [__SABER__]: Remove.
2882 (__LINE__): Remove default.
2883 (Size_t, Ptrdiff_t): Remove definitions.
2884 Replace by size_t, ptrdiff_t.
2885 [!MIPS_DEBUGGING_INFO]: Remove.
2886 (SHASH_SIZE, THASH_SIZE): Remove defaults.
2887 (progname): Add const.
2889 Replace all uses by static.
2890 (ALIGN_SYMTABLE_OFFSET): Remove default.
2891 * mips-tdump.c: Don't include coretypes.h, tm.h.
2892 Remove !MIPS_IS_STAB guard.
2893 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2894 $(TM_H), filenames.h dependencies.
2895 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2897 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2900 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2901 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2903 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2906 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2907 account and save/restore RETS.
2908 (PROFILE_BEFORE_PROLOGUE): Define.
2909 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
2910 the push insn to use predecrement.
2912 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2915 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2917 2011-05-04 Nick Clifton <nickc@redhat.com>
2919 * config/mn10300/mn10300.c: Include cfgloop.h.
2921 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
2922 Lcc or a FLcc insn into the instruction stream.
2923 (mn10300_block_contains_call): New function. Returns true if the
2924 given basic block contains a CALL insn.
2925 (mn10300_loop_contains_call_insn): New function. Returns true if
2926 the given loop contains a CALL insn.
2927 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
2928 to use the SETLB and Lcc or FLcc insns.
2929 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2930 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2931 * config/mn10300/mn10300.opt (msetlb): New option. Used to
2932 disable the SETLB optimization.
2933 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2934 __SETLB__ or __NO_SETLB__.
2935 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2936 (movsf_internal): Handle MDR register.
2937 (cmpsi): Make visible.
2938 (setlb): New pattern.
2940 (FLcc): New pattern.
2942 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2945 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2946 for reg<->xmm moves.
2947 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2948 (vec_concatv2di_rex64_sse): Ditto.
2949 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2950 (*vec_extractv2di_1_rex64): Ditto.
2953 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2955 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2957 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2959 2011-05-04 Richard Guenther <rguenther@suse.de>
2961 * tree.h (int_const_binop): Remove notrunc argument.
2962 * fold-const.c (int_const_binop): Remove notrunc argument. Always
2963 create integer constants that are properly truncated.
2964 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2965 (const_binop): Remove zero notrunc argument to int_const_binop.
2966 (size_binop_loc): Likewise.
2967 (fold_div_compare): Likewise.
2968 (maybe_canonicalize_comparison_1): Likewise.
2969 (fold_comparison): Likewise.
2970 (fold_binary_loc): Likewise.
2971 (multiple_of_p): Likewise.
2972 * expr.c (store_constructor): Likewise.
2973 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2974 (maybe_fold_stmt_addition): Likewise.
2975 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2976 * stor-layout.c (layout_type): Likewise.
2977 * tree-data-ref.c (tree_fold_divides_p): Likewise.
2978 * tree-sra.c (build_ref_for_offset): Likewise.
2979 (build_user_friendly_ref_for_offset): Likewise.
2980 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2981 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2982 * tree-ssa-loop-niter.c (inverse): Likewise.
2983 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2984 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2985 * tree-switch-conversion.c (check_range): Likewise.
2986 (build_constructors): Likewise.
2987 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2988 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2989 (extract_range_from_assert): Likewise.
2990 (vrp_int_const_binop): Likewise.
2991 (extract_range_from_binary_expr): Likewise.
2992 (extract_range_from_unary_expr): Likewise.
2993 (check_array_ref): Likewise.
2994 (find_case_label_range): Likewise.
2995 (simplify_div_or_mod_using_ranges): Likewise.
2996 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2997 comparing case labels for merging.
2999 2011-05-03 Mark Wielaard <mjw@redhat.com>
3001 * dwarf2out.c (debug_str_hash_forced): Removed.
3002 (gen_label_for_indirect_string): Removed.
3003 (get_debug_string_label): Removed.
3004 (AT_string_form): Generate label directly.
3005 (output_indirect_string): Test indirect_string_node for
3006 DW_FORM_strp instead of checking label and refcount.
3007 (prune_indirect_string): Removed.
3008 (prune_unused_types): Don't check debug_str_hash_forced or
3009 call prune_indirect_string.
3011 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3014 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3016 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3020 * combine.c (try_combine): Skip debug insns at m_split tests.
3022 2011-04-26 Mark Wielaard <mjw@redhat.com>
3025 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3026 when info_section_emitted.
3028 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3030 * config/mips/mips-opts.h: New.
3031 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3033 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3034 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3035 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3037 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3039 (mips_abi, mips_code_readable): Don't declare.
3040 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3041 (mabi=): Use Enum and Var.
3042 (mips_abi): New Enum and EnumValue entries.
3043 (mcode-readable=): Use Enum and Var.
3044 (mips_code_readable_setting): New Enum and EnumValue entries.
3045 (mr10k-cache-barrier=): Use Enum and Var.
3046 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3048 2011-05-03 Jan Hubicka <jh@suse.cz>
3050 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3051 replace hash by pointer map.
3052 (cgraph_node_set_element_def, cgraph_node_set_element,
3053 const_cgraph_node_set_element, varpool_node_set_element_def,
3054 varpool_node_set_element, const_varpool_node_set_element): Remove.
3055 (free_cgraph_node_set, free_varpool_node_set): New function.
3056 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3057 * tree-emutls.c: Free varpool node set.
3058 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3059 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3060 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3061 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3062 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3063 Move here from ipa.c; implement using pointer_map
3064 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3065 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3066 debug_cgraph_node_set, varpool_node_set_new,
3067 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3068 dump_varpool_node_set, debug_varpool_node_set):
3069 Move to ipa-uitls.c.
3070 * passes.c (ipa_write_summaries): Update.
3072 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3074 From Mike Frysinger:
3075 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3076 bf542/bf544/bf547/bf548/bf549.
3078 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3080 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3082 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3085 * config/bfin/bfin.md (MOVCC): New mode_macro.
3086 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3087 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3088 comments from generated assembly.
3090 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3093 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3094 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3095 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3096 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3097 * config/bfin/lib1funcs.asm (___muldi3): New function.
3099 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3101 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3102 build_function_type_list instead of build_function_type.
3103 Rearrange initialization of `args' to do so.
3105 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3107 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3108 instead of build_function_type.
3110 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3112 * config/rs6000/rs6000.c (spe_init_builtins): Call
3113 build_function_type_list instead of build_function_type.
3114 (paired_init_builtins, altivec_init_builtins): Likewise.
3115 (builtin_function_type): Likewise.
3117 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3119 * config/sh/sh.c (sh_media_init_builtins): Call
3120 build_function_type_list instead of build_function_type.
3122 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3124 * config/sparc/sparc.c (sparc_file_end): Call
3125 build_function_type_list instead of build_function_type.
3127 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3129 * config/alpha/alpha.c (alpha_init_builtins): Call
3130 build_function_type_list instead of build_function_type.
3132 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3134 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3135 build_function_type_list instead of build_function_type.
3137 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3139 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3140 build_function_type_list instead of build_function_type.
3141 Delete `endlink' variable.
3143 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3145 * config/avr/avr.c (avr_init_builtins): Call
3146 build_function_type_list instead of build_function_type.
3148 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3150 * config/picochip/picochip.c (picochip_init_builtins): Call
3151 build_function_type_list instead of build_function_type.
3152 Delete `endlink' variable.
3154 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3156 * config/bfin/bfin.c (bfin_init_builtins): Call
3157 build_function_type_list instead of build_function_type.
3159 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3162 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3163 that's not CONST_INT. Seemingly redundant check is due to PR39768.
3165 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3168 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3169 libbffastfp overrides libgcc when -mfast-fp.
3171 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3173 Originally from Bernd Schmidt
3174 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3175 * config/bfin/bfin.c (override_options): Test it and error if
3178 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3180 Originally From Bernd Schmidt
3181 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3184 2011-05-03 Jeff Law <law@redhat.com>
3186 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3187 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3188 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3189 than accessing AUX field directly. Free the AUX field before
3191 (thread_block, thread_through_loop_header): Likewise.
3192 (thread_single_edge, mark_threaded_blocks): Likewise.
3193 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
3194 (register_jump_thread): Do not attempt to thread to a NULL edge.
3196 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3198 * function.c (init_function_start): Call decide_function_section.
3199 * varasm.c (decide_function_section): New function.
3200 (assemble_start_function): When not using
3201 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3202 or first_function_block_is_cold.
3203 * rtl.h (decide_function_section): Declare.
3205 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3206 Jakub Jelinek <jakub@redhat.com>
3209 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3210 only succeed if req_mode is the same as set_mode.
3212 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3214 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3215 * genemit.c (gen_exp): Handle RETURN.
3216 * emit-rtl.c (verify_rtx_sharing): Likewise.
3217 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3218 * rtl.c (copy_rtx): RETURN is shared.
3219 * rtl.h (enum global_rtl_index): Add GR_RETURN.
3221 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3222 * config/s390/s390.c (s390_emit_epilogue): Likewise.
3223 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3224 * config/cris/cris.c (cris_expand_return): Likewise.
3225 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3226 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3227 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3228 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3229 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3231 * config/v850/v850.c (expand_epilogue): Likewise.
3232 * config/bfin/bfin.c (bfin_expand_call): Likewise.
3233 * config/arm/arm.md (epilogue): Likewise.
3234 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3235 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3236 variable to ret_reg.
3238 2011-05-03 Richard Guenther <rguenther@suse.de>
3241 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3242 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3243 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3245 2011-05-03 Richard Guenther <rguenther@suse.de>
3247 * c-decl.c (grokdeclarator): Instead of looking at
3248 TREE_OVERFLOW check if the constant fits in the index type.
3250 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3252 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3253 (vec_store_lanes<mode><mode>): Likewise.
3255 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3257 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3258 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3259 convert_optab_index values.
3260 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3261 * genopinit.c (optabs): Initialize the new optabs.
3262 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3263 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3264 (expand_STORE_LANES): New functions.
3265 * tree.h (build_array_type_nelts): Declare.
3266 * tree.c (build_array_type_nelts): New function.
3267 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3268 (vect_model_load_cost): Likewise.
3269 (vect_store_lanes_supported, vect_load_lanes_supported)
3270 (vect_record_strided_load_vectors): Declare.
3271 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3272 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3273 (vect_transform_strided_load): Split out statement recording into...
3274 (vect_record_strided_load_vectors): ...this new function.
3275 * tree-vect-stmts.c (create_vector_array, read_vector_array)
3276 (write_vector_array, create_array_ref): New functions.
3277 (vect_model_store_cost): Add store_lanes_p argument.
3278 (vect_model_load_cost): Add load_lanes_p argument.
3279 (vectorizable_store): Try to use store-lanes functions for
3281 (vectorizable_load): Likewise load-lanes and loads.
3282 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3283 to vect_model_store_cost.
3284 (vect_build_slp_tree): Likewise vect_model_load_cost.
3286 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3288 * hooks.h (hook_bool_mode_uhwi_false): Declare.
3289 * hooks.c (hook_bool_mode_uhwi_false): New function.
3290 * target.def (array_mode_supported_p): New hook.
3291 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3292 * doc/tm.texi: Regenerate.
3293 * stor-layout.c (mode_for_array): New function.
3294 (layout_type): Use it.
3295 * config/arm/arm.c (arm_array_mode_supported_p): New function.
3296 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3298 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
3301 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3302 for -fstack-check if the size to allocate is negative.
3304 2011-05-02 Lawrence Crowl <crowl@google.com>
3306 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3307 (timevar_cond_start): New for starting a timer only when it is not
3309 (timevar_cond_stop): New for stopping a timer when it was not already
3312 * timevar.c (timevar_stop): Enable start/stop timers to start again.
3313 (timevar_cond_start): New as above.
3314 (timevar_cond_stop): New as above.
3316 * timevar.def: Add start/stop timers for compiler phases,
3317 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3318 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3319 and TV_PHASE_FINALIZE.
3320 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3321 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3322 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3323 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3324 Make unused TV_OVERLOAD into a start/stop timer.
3326 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3327 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3328 to indicate that they are start/stop timers.
3330 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3331 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3332 Move initialization to do_compile.
3333 (do_compile): Add initialization from above.
3334 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3336 * c-decl.c (c_write_global_declarations): Add start/stop of
3337 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3339 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3340 or TV_PARSE_INLINE, as appropriate.
3341 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3342 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3344 2011-05-02 Jason Merrill <jason@redhat.com>
3347 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3349 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
3352 * c-decl.c (finish_decl): Only create a composite if the types are
3355 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3357 * config/fr30/fr30-protos.h (Mmode): Don't define.
3358 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
3359 definition where used.
3360 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3361 define. Expand definitions where used.
3362 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3363 Expand definitions where used.
3364 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3365 rx_function_arg, rx_function_arg_advance,
3366 rx_function_arg_boundary): Expand definitions of those macros.
3367 * config/v850/v850-protos.h (Mmode): Don't define. Expand
3368 definition where used.
3370 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3372 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3374 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3375 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
3376 with *movv2sf_internal_rex64_avx.
3377 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3378 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3379 Use %v prefix in insn mnemonic to handle TARGET_AVX.
3380 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
3381 "vex" in "prefix" attribute calculation.
3382 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
3384 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
3387 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3388 inputs match the output.
3390 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
3393 * config/m68k/m68k.c (m68k_expand_prologue): Set
3394 current_function_static_stack_size.
3396 2011-05-02 Jan Hubicka <jh@suse.cz>
3398 * lto-streamer.c (lto_streamer_cache_insert_1,
3399 lto_streamer_cache_lookup, lto_streamer_cache_create,
3400 lto_streamer_cache_delete): Use pointer map instead of hashtable.
3401 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3403 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3405 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3406 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3407 config/m68k/t-opts: New files.
3408 * config/m68k/m68k-tables.opt: New file (generated).
3409 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3410 extra_options and m68k/t-opts to tmake_file.
3411 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3412 (all_isas): Initialize using m68k-isas.def.
3413 (all_microarchs): Initialize using m68k-microarchs.def.
3414 (m68k_find_selection): Remove.
3415 (m68k_handle_option): Don't assert that global structures are in
3416 use. Use error_at. Access variables via opts pointer. Don't
3417 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
3418 directly for -m68020-40 and -m68020-60.
3419 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3420 m68k_tune_entry here.
3421 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3423 (m68k_library_id_string): Remove declaration.
3424 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3425 (m68k_library_id_string): New Variable.
3426 (march=, mcpu=, mtune=): Use Enum and Var.
3428 2011-05-02 Richard Guenther <rguenther@suse.de>
3430 * varasm.c (output_constructor_regular_field): Compute zero-based
3431 index with double-ints. Make sure to ICE instead of producing
3433 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3434 in asserts. Properly use a signed type.
3436 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3438 * config/i386/sse.md (V): New mode iterator.
3439 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
3441 (V_256): Rename from AVX256MODE.
3442 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
3443 condition to all users.
3445 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
3446 condition to all users.
3447 (VF_128): Make V4SF mode unconditional.
3448 (VF_256): Rename from AVX256MODEF2P.
3449 (VI4F_128): Rename from SSEMODE4S.
3450 (VI8F_128): Rename from SSEMODE2D.
3451 (VI4F_256): Rename from AVX256MODE8P.
3452 (VI8F_256): Rename from AVX256MODE4P.
3453 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3454 (ssescalarmodesuffix): Remove SF and DF modes.
3455 (SSEMODE124): Remove.
3456 (SSEMODE1248): Ditto.
3457 (SSEMODEF2P): Ditto.
3458 (AVXMODEF2P): Ditto.
3459 (AVXMODEFDP): Ditto.
3460 (AVXMODEFSP): Ditto.
3461 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3463 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
3465 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3466 xop_pcmov_<mode>256. Use V mode iterator.
3468 Adjust RTX patterns globally for renamed mode attributes.
3470 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3472 * haifa-sched.c (sched_emit_insn): Emit insn before first
3473 non-scheduled insn. Inform back-end about new insn. Add
3474 new insn to scheduled_insns list.
3476 2011-05-02 Richard Guenther <rguenther@suse.de>
3478 PR tree-optimization/48822
3479 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3480 (process_scc): Indicate which iteration we start.
3482 2011-05-02 Jan Hubicka <jh@suse.cz>
3484 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3485 (lto_section_overrun): New.
3486 * lto-section-out.c (append_block): Rename to ...
3487 (lto_append_block): ... this one; export.
3488 (lto_output_1_stream): Move lto lto-streamer.h
3489 (lto_output_data_stream): Update.
3490 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3491 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3494 2011-05-02 Richard Guenther <rguenther@suse.de>
3496 * tree.c (tree_code_counts): New global array.
3497 (record_node_allocation_statistics): Count individual tree codes.
3498 (dump_tree_statistics): Dump individual code stats.
3500 2011-05-01 Jan Hubicka <jh@suse.cz>
3502 * ipa-inline.c (caller_growth_limits): Fix thinko when
3503 looking for largest stack frame.
3504 * ipa-inline.h (dump_inline_summary): Declare.
3505 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3507 (dump_inline_summary): Export.
3508 (debug_inline_summary): Declare as DEBUG_FUNCTION.
3510 2011-05-01 Anatoly Sokolov <aesok@post.ru>
3512 * reginfo.c (memory_move_cost): Change rclass argument type form
3513 'enum reg_class' to reg_class_t.
3514 * reload.h (memory_move_cost): Update prototype.
3515 * postreload.c reload_cse_simplify_set): Change type dclass var to
3517 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3519 (ira_allocate_and_set_costs): Change aclass argument type form
3520 'enum reg_class' to reg_class_t.
3521 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3522 Change aclass argument type to reg_class_t.
3523 (update_conflict_hard_reg_costs): Change type aclass and pref vars
3525 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
3526 memory_move_cost call.
3528 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
3529 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
3530 Change type tmp var to reg_class_t.
3532 2011-04-30 Jan Hubicka <jh@suse.cz>
3534 * ipa-inline.c (can_inline_edge_p): Disregard limits when
3535 inlining into function with flatten attribute.
3536 (want_inline_small_function_p): Be more realistic about inlining
3537 cold calls where callee size grows.
3539 2011-04-30 Jan Hubicka <jh@suse.cz>
3541 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
3544 2011-04-30 Anatoly Sokolov <aesok@post.ru>
3546 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3547 PRINT_OPERAND_PUNCT_VALID_P): Remove.
3548 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
3549 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
3550 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3551 (print_operand): Rename to...
3552 (sparc_print_operand): ...this. Make static. Adjust
3553 sparc_print_operand function call.
3554 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
3557 2011-04-30 Jan Hubicka <jh@suse.cz>
3560 * ipa-inline.c (early_inliner): Disable when doing late
3561 addition of function.
3563 2011-04-30 Jakub Jelinek <jakub@redhat.com>
3565 * dwarf2out.c (get_address_mode): New inline.
3566 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
3567 if not dwarf_strict emit
3568 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
3569 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
3570 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
3571 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
3572 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
3573 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
3574 mem_loc_descriptor callers.
3575 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3576 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3577 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3578 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3579 (base_types): New variable.
3580 (get_base_type_offset, calc_base_type_die_sizes,
3581 base_type_for_mode, mark_base_types, base_type_cmp,
3582 move_marked_base_types): New functions.
3583 (calc_die_sizes): Assert that die_offset is 0 or equal to
3585 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3586 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
3587 callers. If not dwarf_strict, call mem_loc_descriptor even for
3588 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3589 (gen_subprogram_die): Don't give up on call site parameters
3590 with non-integral or large integral modes. Adjust
3591 mem_loc_descriptor callers.
3592 (prune_unused_types): Call prune_unused_types_mark on base_types
3594 (resolve_addr): Call mark_base_types.
3595 (dwarf2out_finish): Call move_marked_base_types.
3597 PR tree-optimization/48809
3598 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3600 (gen_inbound_check): Don't compute index_expr - range_min in utype
3601 again, instead reuse SSA_NAME initialized in build_arrays.
3602 Remove two useless gsi_for_stmt calls.
3604 2011-04-29 Jeff Law <law@redhat.com>
3606 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3608 2011-04-29 Martin Jambor <mjambor@suse.cz>
3610 * cgraph.h (cgraph_postorder): Remove declaration.
3611 * ipa-utils.h (ipa_free_postorder_info): Declare.
3612 (ipa_reverse_postorder): Likewise.
3613 * cgraphunit.c: Include ipa-utils.h.
3614 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3615 * ipa-inline.c: Include ipa-utils.h.
3616 (ipa_inline): Update call to ipa_reverse_postorder.
3617 * ipa-pure-const.c (propagate_pure_const): Update call to
3618 ipa_reduced_postorder and ipa_print_order. Call
3619 ipa_free_postorder_info to clean up.
3620 (propagate_nothrow): Likewise.
3621 * ipa-reference.c (propagate): Removed a useless call to
3622 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3623 and ipa_print_order. Call ipa_free_postorder_info to clean up.
3624 * ipa.c: Include ipa-utils.h.
3625 (ipa_profile): Update call to ipa_reverse_postorder.
3626 (cgraph_postorder): Moved to...
3627 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3628 (ipa_utils_print_order): Renamed to ipa_print_order.
3629 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3631 (ipa_free_postorder_info): New function.
3632 * passes.c: Include ipa-utils.h.
3633 (do_per_function_toporder): Update call to ipa_reverse_postorder.
3634 (ipa_write_summaries): Likewise.
3635 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3636 (cgraphunit.o): Likewise.
3638 (ipa-inline.o): Likewise.
3640 2011-04-29 Jan Hubicka <jh@suse.cz>
3642 * gcc.dg/tree-ssa/inline-10.c: New testcase.
3643 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3644 * ipa-inline.h (clause_t): Turn into unsigned int.
3645 * ipa-inline-analysis.c (add_clause): Do more simplification.
3646 (and_predicates): Shortcut more cases.
3647 (predicates_equal_p): Move forward; check that clauses are properly
3649 (or_predicates): Shortcut more cases.
3650 (edge_execution_predicate): Rewrite as...
3651 (set_cond_stmt_execution_predicate): ... this function; handle
3652 __builtin_constant_p.
3653 (set_switch_stmt_execution_predicate): New .
3654 (compute_bb_predicates): New.
3655 (will_be_nonconstant_predicate): Update TODO.
3656 (estimate_function_body_sizes): Use compute_bb_predicates
3657 and free them later, always try to estimate if stmt is constant.
3658 (estimate_time_after_inlining, estimate_size_after_inlining):
3659 Gracefully handle optimized out edges.
3660 (read_predicate): Fix off by one error.
3662 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
3664 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3666 2011-04-27 Xinliang David Li <davidxl@google.com>
3668 * tree-profile.c (init_ic_make_global_vars): Set
3669 tls attribute on ic vars.
3670 * coverage.c (coverage_end_function): Initialize
3671 function_list with zero.
3673 2011-04-29 Richard Guenther <rguenther@suse.de>
3675 * builtins.c (fold_builtin_classify_type): Use integer_type_node
3676 for the type of the result.
3677 (fold_builtin_isascii): Likewise.
3678 (fold_builtin_toascii): Use integer_type_node where appropriate.
3679 (fold_builtin_logb): Likewise.
3680 (fold_builtin_frexp): Likewise.
3681 (fold_builtin_strstr): Likewise.
3682 (fold_builtin_strpbrk): Likewise.
3683 (fold_builtin_fputs): Likewise.
3684 (fold_builtin_sprintf): Likewise.
3685 (fold_builtin_snprintf): Likewise.
3686 (fold_builtin_printf): Likewise.
3687 (do_mpfr_remquo): Use a proper type for the assigned constant.
3688 (do_mpfr_lgamma_r): Likewise.
3689 * dwarf2out.c (resolve_one_addr): Use size_int.
3690 * except.c (init_eh): Likewise.
3691 (assign_filter_values): Use integer_type_node for filter values.
3692 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3694 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3695 for EH region numbers.
3696 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3697 for the shift amount.
3699 2011-04-29 Richard Guenther <rguenther@suse.de>
3701 * expr.h (expand_shift): Rename to ...
3702 (expand_variable_shift): ... this.
3703 (expand_shift): Take a constant shift amount.
3704 * expmed.c (expand_shift): Rename to ...
3705 (expand_variable_shift): ... this.
3706 (expand_shift): New wrapper around expand_variable_shift.
3707 * expr.c (convert_move, emit_group_load_1, emit_group_store,
3708 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3709 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3710 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3711 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3712 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3713 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3714 emit_store_flag_1, emit_store_flag): Likewise.
3715 * builtins.c (expand_builtin_signbit): Likewise.
3716 * calls.c (load_register_parameters): Likewise.
3717 * function.c (assign_parm_setup_block): Likewise.
3718 * lower-subreg.c (resolve_shift_zext): Likewise.
3719 * optabs.c (widen_bswap, expand_abs_nojump,
3720 expand_one_cmpl_abs_nojump, expand_float): Likewise.
3721 * spu/spu.c (spu_expand_extv): Likewise.
3722 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3724 2011-04-29 Richard Guenther <rguenther@suse.de>
3726 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3727 for the remapped region number.
3728 * predict.c (build_predict_expr): Use integer_type_node for the
3730 * fold-const.c (fold_binary_loc): Use integer_type_node for
3731 the shift amount. Use a proper type for the PLUS_EXPR operand.
3733 2011-04-29 Michael Matz <matz@suse.de>
3735 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3736 other trees that just builtins.
3737 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3739 2011-04-29 Richard Guenther <rguenther@suse.de>
3741 * tree-nested.c (get_trampoline_type): Use size_int.
3742 (get_nl_goto_field): Likewise.
3743 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3745 (lower_eh_constructs_2): Likewise.
3746 (lower_resx): Likewise.
3747 (lower_eh_dispatch): Likewise.
3748 * tree-mudflap.c (mf_build_string): Use size_int.
3749 (mudflap_register_call): Use integer_type_node for the flag.
3750 (mudflap_enqueue_constant): Use size_int.
3751 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3752 instead of rebuilding it.
3754 2011-04-29 Richard Guenther <rguenther@suse.de>
3756 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3757 Handle OBJ_TYPE_REF.
3758 (find_func_aliases_for_call): Use it more consistently.
3760 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
3762 * haifa-sched.c (last_nondebug_scheduled_insn): New.
3763 (rank_for_schedule): Use it.
3764 (schedule_block): Set it.
3766 2011-04-28 David Li <davidxl@google.com>
3768 * tree.c (crc32_string): Use crc32_byte.
3769 (crc32_byte): New function.
3770 * tree.h (crc32_byte): New function.
3771 * gcov.c (read_graph_file): Handle new cfg_cksum.
3772 (read_count_file): Ditto.
3773 * profile.c (instrument_values): Ditto.
3774 (get_exec_counts): Ditto.
3775 (read_profile_edge_counts): Ditto.
3776 (compute_branch_probabilities): Ditto.
3777 (compute_value_histograms): Ditto.
3778 (branch_prob): Ditto.
3779 (end_branch_prob): Ditto.
3780 * coverage.c (read_counts_file): Ditto.
3781 (get_coverage_counts): Ditto.
3782 (tree_coverage_counter_addr): Ditto.
3783 (coverage_checksum_string): Ditto.
3784 (coverage_begin_output): Ditto.
3785 (coverage_end_function): Ditto.
3786 (build_fn_info_type): Ditto.
3787 (build_fn_info_value): Ditto.
3788 * libgcov.c (gcov_exit): Ditto.
3789 * gcov-dump.c (tag_function): Ditto.
3790 (compute_checksum): Remove.
3792 2011-04-29 Alan Modra <amodra@gmail.com>
3794 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3795 unspec plus offset. Tidy macho code.
3797 2011-04-29 Martin Jambor <mjambor@suse.cz>
3799 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3800 node instead of a decl. Update all callers.
3801 * cgraph.h: Update declaration.
3803 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
3805 PR tree-optimization/48765
3806 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3807 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3808 to indicate if loop aware SLP is being used. Scan the statements
3809 and update the vectorization factor according to the type of
3810 vectorization before statement analysis.
3811 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3812 pass it to vect_analyze_loop_operations.
3813 (vectorizable_reduction): Set number of copies to 1 in case of pure
3815 * tree-vect-stmts.c (vectorizable_conversion,
3816 vectorizable_assignment, vectorizable_shift,
3817 vectorizable_operation, vectorizable_type_demotion,
3818 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
3820 (vectorizable_condition): Move the check that it is not SLP
3821 vectorization before the number of copies check.
3822 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
3823 to vectorize the loop using SLP.
3825 2011-04-28 Jakub Jelinek <jakub@redhat.com>
3828 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
3831 2011-04-28 Joseph Myers <joseph@codesourcery.com>
3833 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
3834 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
3835 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3836 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3837 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
3839 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
3840 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3841 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3842 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3843 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3844 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
3846 * config/i386/linux.h (REG_NAME): Don't define.
3847 * config/i386/linux64.h (REG_NAME): Don't define.
3848 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
3849 Undefine before defining.
3851 2011-04-28 Jan Hubicka <jh@suse.cz>
3853 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
3854 nonconstant_names array.
3855 (estimate_function_body_sizes): Build nonconstant_names array; handle
3856 BUILT_IN_CONSTANT_P.
3858 2011-04-28 Richard Guenther <rguenther@suse.de>
3862 2011-04-28 Richard Guenther <rguenther@suse.de>
3864 * tree-ssa-structalias.c (solve_constraints): Build succ graph
3865 as late as possible.
3867 2011-04-28 Richard Guenther <rguenther@suse.de>
3869 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
3870 (debug_constraint): Do it here.
3871 (dump_constraints): And here.
3872 (rewrite_constraints): And here.
3873 (dump_constraint_edge): Remove.
3874 (dump_constraint_graph): Rewrite to produce DOT output.
3875 (solve_constraints): Build succ graph as late as possible.
3876 Dump constraint graphs before and after solving.
3878 2011-04-28 Richard Guenther <rguenther@suse.de>
3880 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3881 New function split out from ...
3882 (find_func_aliases): ... here. Call it.
3883 (find_func_aliases_for_call): Likewise.
3885 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3887 * internal-fn.h (internal_fn_name_array): Declare.
3888 (internal_fn_flags_array): Likewise.
3890 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3892 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
3893 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3895 (ssemodefsuffix): Remove.
3896 (ssevecmodesuffix): New mode attribute.
3897 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3898 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3899 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3900 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3901 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3902 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3903 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3904 ssemodesuffix mode attribute.
3905 (float splitters): Use ssevecmodesuffix mode attribute.
3906 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3907 (sseinsmode): Rename from avxvecmode.
3908 (avxsizesuffix): Rename from avxmodesuffix.
3909 (sseintvecmode): Rename from avxpermvecmode.
3910 (ssedoublevecmode): Rename from ssedoublesizemode.
3911 (ssehalfvecmode): Rename from avxhalfvecmode.
3912 (ssescalarmode): Rename from avxscalarmode.
3913 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3914 templates for ssemodesuffix mode attribute.
3915 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3918 Adjust RTX patterns globally for renamed mode attributes.
3920 2011-04-27 Jan Hubcika <jh@suse.cz>
3922 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3923 * ipa-inline-analysis.c: Include alloc-pool.h.
3924 (edge_predicate_pool): New.
3925 (trye_predicate_p): New function
3926 (false_predicate_p): New function.
3927 (add_clause): Sanity check that false clauses are "optimized";
3928 never add clauses to predicate that is already known to be false.
3929 (and_predicate): Use flase_predicate_p.
3930 (evaulate_predicate): Rename to ...
3931 (evaluate_predicate): ... this one; update all callers; assert
3932 that false is not listed among possible truths.
3933 (dump_predicate): Use true_predicate_p.
3934 (account_size_time): Use false_predicate_p.
3935 (evaulate_conditions_for_edge): Rename to ...
3936 (evaluate_conditions_for_edge) ... this one.
3937 (edge_set_predicate): New function.
3938 (inline_edge_duplication_hook): Duplicate edge predicates.
3939 (inline_edge_removal_hook): Free edge predicates.
3940 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3941 (dump_inline_summary): Update.
3942 (estimate_function_body_sizes): Set edge predicates.
3943 (estimate_calls_size_and_time): Handle predicates.
3944 (estimate_callee_size_and_time): Update.
3945 (remap_predicate): Add toplev_predicate; update comment.
3946 (remap_edge_predicates): New function.
3947 (inline_merge_summary): Compute toplev predicate; update.
3948 (read_predicate): New function.
3949 (read_inline_edge_summary): Use it.
3950 (inline_read_section): Likewise.
3951 (write_predicate): New function.
3952 (write_inline_edge_summary): Use it.
3953 (inline_write_summary): Likewise.
3954 (inline_free_summary): Free alloc pool and edge summary vec.
3956 2011-04-27 Richard Guenther <rguenther@suse.de>
3958 * tree-ssa-structalias.c (changed_count): Remove.
3959 (changed): Use a bitmap.
3960 (unify_nodes): Adjust.
3961 (do_sd_constraint): Likewise.
3962 (do_ds_constraint): Likewise.
3963 (do_complex_constraint): Likewise.
3964 (solve_graph): Likewise.
3966 2011-04-27 Jan Hubicka <jh@suse.cz>
3968 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3970 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3972 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3973 (avx_vperm2f128_*_operand): Ditto.
3974 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3975 Use avx_vpermilp_parallel in insn condition.
3976 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3977 Use avx_vperm2f128_parallel in insn condition.
3979 2011-04-27 Richard Guenther <rguenther@suse.de>
3981 * Makefile.in (tree-ssa-structalias.o): Remove
3982 gt-tree-ssa-structalias.h dependency.
3983 (GTFILES): Remove tree-ssa-structalias.c.
3984 * tree.c (allocate_decl_uid): New function.
3985 (make_node_stat): Use it.
3986 (copy_node_stat): Likewise.
3987 * tree.h (allocate_decl_uid): Declare.
3988 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3989 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3990 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3991 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3992 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3993 (struct heapvar_map): Likewise.
3994 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3995 heapvar_insert): Likewise.
3996 (make_heapvar_for): Rename to ...
3997 (make_heapvar): ... this. Simplify.
3998 (fake_var_decl_obstack): New global var.
3999 (build_fake_var_decl): New function.
4000 (make_constraint_from_heapvar): Adjust.
4001 (handle_lhs_call): Likewise.
4002 (create_function_info_for): Likewise.
4003 (intra_create_variable_infos): Likewise.
4004 (init_alias_vars): Allocate fake_var_decl_obstack.
4005 (init_alias_heapvars, delete_alias_heapvars): Remove.
4006 (compute_points_to_sets): Do not call init_alias_heapvars.
4007 (ipa_pta_execute): Likewise.
4008 (delete_points_to_sets): Free fake_var_decl_obstack.
4010 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4012 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4013 (si_from_UTItype, si_to_UTItype): New functions.
4014 (__udivmodti4): Use them to implement type-punning.
4015 * config/spu/multi3.c (union qword_TItype): New data type.
4016 (si_from_TItype, si_to_TItype): New functions.
4017 (__multi3): Use them to implement type-punning.
4019 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4021 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4023 2011-04-27 Jan Hubicka <jh@suse.cz>
4025 * ipa-prop.c (function_insertion_hook_holder): New holder.
4026 (ipa_add_new_function): New function.
4027 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4028 Register/deregister holder.
4030 2011-04-27 Richard Guenther <rguenther@suse.de>
4032 PR tree-optimization/48772
4033 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4035 2011-04-27 Richard Guenther <rguenther@suse.de>
4037 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4038 TARGET_MEM_REF handling.
4040 2011-04-27 Nick Clifton <nickc@redhat.com>
4042 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4043 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4044 (REG_CLASS_NAMES): Likewise.
4045 (REG_CLASS_CONTENTS): Likewise.
4046 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4047 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4048 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4049 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4050 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4051 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4052 duplicate register classes.
4053 (frv_class_likely_spilled_p): Likewise.
4054 (frv_register_move_cost): Likewise.
4056 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4057 end of the regno_reg_class array.
4059 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4062 * c-typeck.c (build_binary_op): Don't wrap arguments if
4063 int_operands is true.
4065 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4068 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4069 targetm.calls.must_pass_in_stack for void type.
4071 2011-04-26 Jan Hubicka <jh@suse.cz>
4073 * cgraphbuild.c (build_cgraph_edges): Update call
4074 of cgraph_create_edge and cgraph_create_indirect_edge.
4075 * cgraph.c (cgraph_create_edge_including_clones,
4076 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4077 cgraph_update_edges_for_call_stmt_node): Do not take nest
4078 argument; do not initialize call_stmt_size/time.
4079 (dump_cgraph_node): Do not dump nest.
4080 (cgraph_clone_edge): Do not take loop_nest argument;
4081 do not propagate it; do not clone call_stmt_size/time.
4082 (cgraph_clone_node): Likewise.
4083 (cgraph_create_virtual_clone): Update.
4084 * cgraph.h (struct cgraph_edge): Remove
4085 call_stmt_size/call_stmt_time/loop_nest.
4086 (cgraph_create_edge, cgraph_create_indirect_edge,
4087 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4089 * tree-emutls.c (gen_emutls_addr): Update.
4090 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4091 loop_nest; handle indirect calls, too.
4092 (clone_inlined_nodes): Do not care about updating inline summaries.
4093 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4094 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4095 stream call_stmt_size/call_stmt_time/loop_nest.
4096 * ipa-inline.c (edge_badness): Update.
4097 (ipa_inline): dump summaries after inlining.
4098 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4100 (inline_edge_summary): New function.
4101 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4102 (inline_edge_removal_hook): Handle edge summaries.
4103 (inline_edge_duplication_hook): New hook.
4104 (inline_summary_alloc): Alloc hooks.
4105 (initialize_growth_caches): Do not register removal hooks.
4106 (free_growth_caches); Do not free removal hook.
4107 (dump_inline_edge_summary): New function.
4108 (dump_inline_summary): Use it.
4109 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4110 (inline_update_callee_summaries): New function.
4111 (inline_merge_summary): Use it.
4112 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4113 (read_inline_edge_summary): New function.
4114 (inline_read_section): Use it.
4115 (write_inline_edge_summary): New function.
4116 (inline_write_summary): Use it.
4117 (inline_free_summary): Free edge new holders.
4118 * tree-inline.c (copy_bb): Update.
4120 2011-04-26 Jason Merrill <jason@redhat.com>
4122 * tree-eh.c (lower_try_finally_switch): Create the label along with
4123 the CASE_LABEL_EXPR.
4125 2011-04-26 David S. Miller <davem@davemloft.net>
4126 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4128 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4129 * configure: Regenerate.
4131 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4134 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4136 (VEC_reduc): New code iterator and splitters for vector reduction.
4137 (VEC_reduc_name): Ditto.
4138 (VEC_reduc_rtx): Ditto.
4139 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4140 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4142 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4143 support for extracting SF on VSX.
4145 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4146 generating xscvspdp.
4147 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4148 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4149 double add, minimum, maximum vector reduction.
4150 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4151 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4152 optimize double vector reduction.
4153 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4155 2011-04-26 Joseph Myers <joseph@codesourcery.com>
4157 * config/fr30/fr30.h (inhibit_libc): Don't define.
4158 * config/m32r/m32r-protos.h: Correct comment.
4159 * config/v850/v850.h (GHS_default_section_names,
4160 GHS_current_section_names): Use tree, not union tree_node *.
4162 2011-04-26 Xinliang David Li <davidxl@google.com>
4164 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4165 * c-family/c-opts.c (c_common_handle_option): Set
4166 warn_maybe_uninitialized.
4167 * opts.c (common_handle_option): Ditto.
4168 * common.opt: New option.
4169 * tree-ssa.c (warn_uninit): Add one more parameter.
4170 (warn_uninitialized_var): Pass warning code.
4171 * tree-flow.h: Interface change.
4174 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4176 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4177 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4178 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4180 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4182 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4183 * config/mips/mips.opt (mmips-tfile): Remove.
4185 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4186 mips-tdump reference to ...
4187 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
4188 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4189 reference by Tru64 UNIX.
4191 2011-04-26 Jakub Jelinek <jakub@redhat.com>
4194 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4195 is error_mark_node, set value to NULL.
4197 PR tree-optimization/48734
4198 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4199 if return value from maybe_fold_*_comparsions isn't something
4200 the code is prepared to handle.
4202 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
4204 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4206 (ext_QIreg_nomode_operands): Remove.
4207 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4211 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
4213 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4215 2011-04-26 Richard Guenther <rguenther@suse.de>
4217 * c-typeck.c (build_unary_op): Do not expand array-refs via
4218 pointer arithmetic. Only adjust qualifiers for function types.
4220 2011-04-26 Richard Guenther <rguenther@suse.de>
4223 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4224 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4225 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
4226 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4228 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4230 * doc/extend.texi: Document __underlying_type.
4232 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
4234 * config/rs6000/titan.md (automata_option "progress"): Remove.
4236 2011-04-25 Jeff Law <law@redhat.com>
4238 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4240 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4242 * system.h (ENUM_BITFIELD): Remove.
4244 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
4245 Eric Botcazou <ebotcazou@adacore.com>
4247 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4248 for STORE_FLAG_VALUE==-1 case.
4250 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
4253 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4254 LEGITIMATE_PIC_OPERAND_P.
4256 2011-04-24 Jan Hubicka <jh@suse.cz>
4258 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4260 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4261 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4262 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4263 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4264 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4265 Sanity check predicate length.
4266 (remap_predicate): Likewise; sanity check jump functions.
4267 (inline_read_section, inline_write_summary): Sanity check
4270 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4273 * doc/extend.texi (Type Traits): Document __is_standard_layout,
4274 __is_literal_type, and __is_trivial; update throughout about
4275 possibly cv-qualified void types.
4277 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4279 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4280 testsuite and make it version agnostic.
4282 2011-04-22 Jan Hubicka <jh@suse.cz>
4284 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4286 2011-04-23 Jakub Jelinek <jakub@redhat.com>
4289 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4290 to VOID_TYPE even around MODIFY_EXPR.
4292 2011-04-22 Mike Stump <mikestump@comcast.net>
4294 * gensupport.c (read_md_rtx): Fix typo in comment.
4295 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4298 2011-04-22 Jan Hubicka <jh@suse.cz>
4300 * gengtype.c (open_base_files): Add ipa-inline.h include.
4301 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4302 ipa-prop.c; update all uses.
4303 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4304 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4305 merge summary of inlined function into former caller.
4306 * ipa-inline.c (max_benefit): Remove.
4307 (edge_badness): Compensate for removal of benefits.
4308 (update_caller_keys): Use
4309 reset_node_growth_cache/reset_edge_growth_cache.
4310 (update_callee_keys): Likewise.
4311 (update_all_callee_keys): Likewise.
4312 (inline_small_functions): Do not collect max_benefit; do not reset
4313 estimated_growth; call free_growth_caches and initialize_growth_caches.
4314 * ipa-inline.h (struct condition, type clause_t, struct predicate,
4315 struct size_time_entry): New structures.
4316 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4317 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4318 and estimated_growth.
4319 (edge_growth_cache_entry): New structure.
4320 (node_growth_cache, edge_growth_cache): New global vars.
4321 (estimate_growth): Turn into inline.
4322 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4323 initialize_growth_caches, free_growth_caches): Declare.
4324 (estimate_edge_growth): Rewrite.
4325 (estimate_edge_time): Implement as inline cache lookup.
4326 (reset_node_growth_cache, reset_edge_growth_cache): New inline
4328 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4329 (NUM_CONDITIONS): New constant.
4330 (predicate_conditions): New enum.
4331 (IS_NOT_CONSTANT): New constant.
4332 (edge_removal_hook_holder): New var.
4333 (node_growth_cache, edge_growth_cache): New global vars.
4334 (true_predicate, single_cond_predicate, false_predicate,
4335 not_inlined_predicate, add_condition, add_clause, and_predicates,
4336 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4337 dump_clause, dump_predicate, account_size_time,
4338 evaulate_conditions_for_edge): New functions.
4339 (inline_summary_alloc): Move to heap.
4340 (inline_node_removal_hook): Clear condition and entry vectors.
4341 (inline_edge_removal_hook): New function.
4342 (initialize_growth_caches, free_growth_caches): New function.
4343 (dump_inline_summary): Update.
4344 (edge_execution_predicate): New function.
4345 (will_be_nonconstant_predicate): New function.
4346 (estimate_function_body_sizes): Compute BB and constantness predicates.
4347 (compute_inline_parameters): Do not clear estimated_growth.
4348 (estimate_edge_size_and_time): New function.
4349 (estimate_calls_size_and_time): New function.
4350 (estimate_callee_size_and_time): New function.
4351 (remap_predicate): New function.
4352 (inline_merge_summary): New function.
4353 (do_estimate_edge_time): New function based on...
4354 (estimate_edge_time): ... this one.
4355 (do_estimate_edge_growth): New function.
4356 (do_estimate_growth): New function based on....
4357 (estimate_growth): ... this one.
4358 (inline_analyze_function): Analyze after deciding on jump functions.
4359 (inline_read_section): New function.
4360 (inline_read_summary): Use it.
4361 (inline_write_summary): Write all the new data.
4362 * ipa-prop.c (ipa_get_param_decl_index): Export.
4363 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4364 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4366 (ipa_get_lattice): Move here from ipa-cp.c
4367 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4368 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4369 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4370 cgraph_edge_inlinable_p): Remove.
4371 * cgraphunit.c: Include ipainline.h
4372 (cgraph_process_new_functions): Update call of
4373 compute_inline_parameters.
4375 2011-04-22 Richard Guenther <rguenther@suse.de>
4377 * tree.c (build_int_cst): Properly create canonicalized integer
4379 (build_int_cst_type): Remove scary comments.
4381 2011-04-22 Xinliang David Li <davidxl@google.com>
4383 * toplev.c (process_options): Enable -Werror=coverage-mismatch
4384 by default when -Wno-error is not specified.
4385 * opts-global.c (decode_options): Remove call to
4386 control_warning_options.
4388 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4390 PR tree-optimization/48717
4391 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4392 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4394 2011-04-22 Joseph Myers <joseph@codesourcery.com>
4396 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
4397 definition where used.
4399 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4402 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4403 TREE_STATIC variables declared inside of some OpenMP construct.
4405 2011-04-22 Martin Jambor <mjambor@suse.cz>
4408 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4410 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
4413 * c-typeck.c (pop_init_level): Do not warn about initializing
4416 2011-04-22 Alan Modra <amodra@gmail.com>
4418 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4419 when returning call_cookie.
4420 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4421 pointers, to functions with no more vector args than the current
4422 function, and some non-local calls for ABI_V4.
4423 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4424 sibcall_nonlocal_aix64): Combine to ..
4425 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
4426 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4427 (sibcall_value_nonlocal_aix<mode>): ..likewise.
4428 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4429 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
4431 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4432 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4433 sibcall_value_symbolic_64): Delete.
4435 2011-04-21 Xinliang David Li <davidxl@google.com>
4437 * cgraph.h: Remove pid.
4438 * cgraph.c: Remove pid.
4439 * value-prof.c (init_node_map): New function.
4440 (del_node_map): New function.
4441 (find_func_by_funcdef_no): New function.
4442 (gimple_ic_transform): Call new function.
4443 * cgraphunit.c (cgraph_finalize_function): Remove pid.
4444 * function.c (get_last_funcdef_no): New function.
4445 * function.h (get_last_funcdef_no): New function.
4446 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4447 to libgcov function.
4448 (tree-profiling): Call node map init and delete function.
4450 2011-04-21 Ian Lance Taylor <iant@google.com>
4452 * godump.c (go_format_type): Use exported Go name for anonymous
4455 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4457 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4458 Call builtin_function_type_list instead of builtin_function_type.
4459 (UNARY, BINARY, TRINARY, QUAD): Likewise.
4461 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4463 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4464 build_function_type_list instead of build_function_type.
4465 Delete variable `endlink'.
4467 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4469 * config/s390/s390.c (s390_init_builtins): Call
4470 build_function_type_list instead of build_function_type.
4472 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4474 * config/ia64/ia64.c (ia64_init_builtins): Call
4475 build_function_type_list instead of builtin_function_type.
4477 2011-04-21 Easwaran Raman <eraman@google.com>
4479 * cfgexpand.c (stack_var): Remove OFFSET...
4480 (add_stack_var): ...and its reference here...
4481 (expand_stack_vars): ...and here.
4482 (stack_var_cmp): Sort by descending order of size.
4483 (partition_stack_vars): Change heuristic.
4484 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4485 (dump_stack_var_partition): Add newline after each partition.
4487 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
4488 Jeff Law <law@redhat.com>
4490 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4491 * gengtype.c (matching_file_name_substitute): Likewise.
4493 2011-04-21 Richard Guenther <rguenther@suse.de>
4496 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4498 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
4500 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4502 2011-04-21 Richard Guenther <rguenther@suse.de>
4504 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4507 2011-04-21 Richard Guenther <rguenther@suse.de>
4509 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4510 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
4511 Use DECL_P, not SSA_VAR_P.
4512 (ptr_derefs_may_alias_p): Likewise.
4513 (ptr_deref_may_alias_ref_p_1): Likewise.
4514 (decl_refs_may_alias_p): Likewise.
4515 (refs_may_alias_p_1): Likewise.
4516 (ref_maybe_used_by_call_p_1): Likewise.
4517 (call_may_clobber_ref_p_1): Likewise.
4518 (indirect_ref_may_alias_decl_p): Assume indirect refrences
4519 are either MEM_REF or TARGET_MEM_REF.
4520 (indirect_refs_may_alias_p): Likewise.
4521 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4522 for MEM_EXPR of indirect calls.
4524 2011-04-21 Tristan Gingold <gingold@adacore.com>
4526 * vmsdbgout.c (write_srccorr): Compute file length from the string.
4527 (dst_file_info_struct): Remove flen field.
4528 (lookup_filename): Remove code that set flen field.
4530 2011-04-21 Tristan Gingold <gingold@adacore.com>
4532 * config/ia64/ia64.c (ia64_start_function): Add a guard.
4534 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
4537 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
4538 vec_extract and vec_concat for non-SSE4_1 targets.
4540 2011-04-21 Richard Guenther <rguenther@suse.de>
4542 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
4545 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4547 * config/i386/cygming.h (union tree_node, TREE): Don't define or
4549 (FILE): Don't undefine.
4551 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4553 * config/alpha/alpha.c (struct machine_function): Use rtx, not
4555 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
4557 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
4558 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
4559 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
4561 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
4562 definitions where used.
4563 * config/microblaze/microblaze.h (struct microblaze_args): Use
4564 rtx, not struct rtx_def *.
4565 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
4567 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
4568 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
4569 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
4570 not struct rtx_def *.
4571 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
4573 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
4575 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4577 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4579 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4580 operand_equal_p to compare DR_BASE_ADDRESSes.
4581 (vect_check_interleaving): Likewise.
4583 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4586 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4587 for all Neon struct constants.
4589 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4591 * target.def (legitimate_constant_p): New hook.
4592 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4593 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4594 * doc/tm.texi: Regenerate.
4595 * hooks.h (hook_bool_mode_rtx_true): Declare.
4596 * hooks.c (hook_bool_mode_rtx_true): Define.
4597 * system.h (LEGITIMATE_CONSTANT_P): Poison.
4598 * calls.c (precompute_register_parameters): Replace uses of
4599 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4600 (emit_library_call_value_1): Likewise.
4601 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4602 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4603 * ira-costs.c (scan_one_insn): Likewise.
4604 * recog.c (general_operand, immediate_operand): Likewise.
4605 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4606 * reload1.c (init_eliminable_invariants): Likewise.
4608 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4610 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4611 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4613 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4614 * config/alpha/predicates.md (input_operand): Update call to
4615 alpha_legitimate_constant_p.
4617 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4618 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4619 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4620 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4621 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4622 (arm_legitimate_constant_p): New functions.
4623 (arm_cannot_force_const_mem): Make static.
4625 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4627 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4628 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4629 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4630 instead of bfin_legitimate_constant_p.
4631 (bfin_legitimate_constant_p): Make static. Add a mode argument.
4632 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4634 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4636 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4638 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4639 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4640 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4641 (frv_legitimate_constant_p): Make static. Add a mode argument.
4643 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4644 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4645 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4647 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4648 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4649 * config/i386/i386.c (legitimate_constant_p): Rename to...
4650 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
4652 (ix86_cannot_force_const_mem): Update accordingly.
4653 (ix86_legitimate_address_p): Likewise.
4654 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4655 * config/i386/i386.md: Update commentary.
4657 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4658 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4659 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4660 (ia64_legitimate_constant_p): Make static. Add a mode argument.
4662 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4664 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4665 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4666 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4667 (lm32_legitimate_constant_p): Make static. Add a mode argument.
4669 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4670 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4671 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4673 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4674 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4675 (m32r_legitimate_constant_p): New function.
4677 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4678 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4679 LEGITIMATE_CONSTANT_P.
4680 (LEGITIMATE_CONSTANT_P): Delete.
4681 * config/m68k/m68k.c (m68k_expand_prologue): Call
4682 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4683 (m68k_legitimate_constant_p): New function.
4684 * config/m68k/m68k.md: Update comments.
4686 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4687 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4688 (mcore_legitimate_constant_p): New function.
4690 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4691 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4692 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4693 Add a mode argument.
4694 (mep_legitimate_address): Update accordingly.
4695 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4697 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4699 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4700 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4701 static. Check OP's mode for VOIDmode.
4702 (microblaze_legitimate_constant_p): New function.
4703 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4705 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4706 * config/mips/mips.c (mips_legitimate_constant_p): New function.
4707 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4708 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4709 * config/mips/predicates.md: Update comments.
4711 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4712 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4713 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4714 (mmix_legitimate_constant_p): Make static, return a bool, and take
4716 (mmix_print_operand_address): Update accordingly.
4718 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4720 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4721 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4722 static. Add a mode argument.
4723 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4725 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4727 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4728 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4729 (pa_legitimate_constant_p): New function.
4731 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4733 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4734 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4735 (pdp11_legitimate_constant_p): New function.
4737 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4738 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4739 (rs6000_legitimate_constant_p): New function.
4741 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4742 (rx_legitimate_constant_p): ...this.
4743 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4744 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4745 (rx_legitimate_constant_p): ...this.
4746 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4747 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4749 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4750 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4751 * config/s390/s390.c (legitimate_constant_p): Rename to...
4752 (s390_legitimate_constant_p): ...this. Make static, return a bool,
4753 and add a mode argument.
4754 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4756 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4758 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4759 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4760 (sh_legitimate_constant_p): New function.
4762 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4763 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4764 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4765 (legitimate_constant_p): Rename to...
4766 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
4768 (constant_address_p): Update accordingly.
4770 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4771 argument and return a bool.
4772 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4773 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4774 (spu_legitimate_constant_p): Add a mode argument and return a bool.
4775 (spu_rtx_costs): Update accordingly.
4776 * config/spu/predicates.md (vec_imm_operand): Likewise.
4778 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
4780 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
4781 * config/v850/v850.c (v850_legitimate_constant_p): New function.
4782 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4784 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
4785 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
4786 * config/vax/vax.c (legitimate_constant_p): Likewise.
4788 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
4789 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4790 (xtensa_legitimate_constant_p): New function.
4792 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4794 * target.def (cannot_force_const_mem): Add a mode argument.
4795 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4796 * doc/tm.texi: Regenerate.
4797 * hooks.h (hook_bool_mode_rtx_false): Declare.
4798 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4799 (hook_bool_mode_const_rtx_true): Likewise.
4800 (hook_bool_mode_rtx_false): New function.
4801 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4802 to be non-VOID. Update call to cannot_force_const_mem.
4803 (find_reloads): Update accordingly.
4804 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4805 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4807 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4808 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4809 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4810 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4811 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4812 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4813 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4814 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4815 (m68k_cannot_force_const_mem): ...this new function.
4816 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4818 (mips_const_insns, mips_legitimize_const_move): Update calls.
4819 (mips_secondary_reload_class): Likewise.
4820 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4821 (pa_cannot_force_const_mem): ...this new function.
4822 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
4823 (rs6000_cannot_force_const_mem): ...this new function.
4824 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
4826 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
4827 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
4829 (xtensa_cannot_force_const_mem): ...this new function.
4831 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4833 * config/mips/mips.c (mips16_build_function_stub): Call
4834 build_function_type_list instead of build_function_type.
4835 (mips16_build_call_stub): Likewise.
4837 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4839 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
4840 instead of build_function_type.
4842 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4844 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
4845 instead of build_function_type.
4847 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
4850 * config/i386/i386.md (insv): Change operand 0 constraint to
4851 "register_operand". Change operand 1 and 2 constraint to
4852 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
4853 * config/i386/sse.md (sse4_1_pinsrb): Export.
4854 (sse2_pinsrw): Ditto.
4855 (sse4_1_pinsrd): Ditto.
4856 (sse4_1_pinsrq): Ditto.
4857 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
4858 * config/i386/i386.c (ix86_expand_pinsr): New.
4860 2011-04-20 Easwaran Raman <eraman@google.com>
4862 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
4863 containing union type only with -fstrict-aliasing.
4865 2011-04-20 Jim Meyering <meyering@redhat.com>
4867 Remove useless if-before-free tests.
4868 * calls.c (expand_call, save_area): Likewise.
4869 * cfgcleanup.c (try_forward_edges): Likewise.
4870 * collect2.c (collect_execute): Likewise.
4871 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
4872 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4873 * coverage.c (coverage_checksum_string): Likewise.
4874 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
4875 * cselib.c (cselib_init): Likewise.
4876 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
4877 (df_set_clean_cfg): Likewise.
4878 * function.c (free_after_compilation): Likewise.
4879 * gcc.c (do_spec_1, main): Likewise.
4880 * gcov.c (create_file_names): Likewise.
4881 * gensupport.c (identify_predicable_attribute): Likewise.
4882 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
4883 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
4884 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
4885 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
4886 * ipa-pure-const.c (local_pure_const): Likewise.
4887 * ipa-reference.c (propagate): Likewise.
4888 * ira-costs.c (free_ira_costs): Likewise.
4889 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
4890 * matrix-reorg.c (mat_free): Likewise.
4891 * prefix.c (get_key_value): Likewise.
4892 * profile.c (compute_value_histograms): Likewise.
4893 * reload1.c (free_reg_equiv): Likewise.
4894 * sched-deps.c (free_deps): Likewise.
4895 * sel-sched-ir.c (fence_clear): Likewise.
4896 * sese.c (set_rename, if_region_set_false_region): Likewise.
4897 * tree-data-ref.c (free_rdg): Likewise.
4898 * tree-eh.c (lower_try_finally): Likewise.
4899 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4900 * tree-ssa-live.c (delete_var_map): Likewise.
4901 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4902 * tree-ssa-pre.c (phi_trans_add): Likewise.
4904 2011-04-20 Jakub Jelinek <jakub@redhat.com>
4906 PR tree-optimization/48611
4907 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4908 beyond ERT_MUST_NOT_THROW region.
4910 2011-04-20 Catherine Moore <clm@codesourcery.com>
4912 * config/mips/mips.opt (mfix-24k): New.
4913 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4914 * config/mips/mips.md (length): Increase by 4 for stores if
4916 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4917 all noreorder if fixing 24K errata.
4918 * doc/invoke.texi: Document mfix-24k.
4920 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
4922 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4923 quad-word modes, reduce to 9-bit index range when above 1016 limit.
4925 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4927 * config/arm/arm.c (arm_gen_constant): Move movw support ....
4928 (const_ok_for_op): ... to here.
4930 2011-04-20 Kai Tietz <ktietz@redhat.com>
4932 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4933 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4935 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4937 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4939 2011-04-20 Richard Guenther <rguenther@suse.de>
4941 PR tree-optimization/47892
4942 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4945 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
4947 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4949 2011-04-20 Tristan Gingold <gingold@adacore.com>
4951 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4953 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
4957 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4958 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4959 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4960 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4961 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4963 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4966 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4967 (avr_asm_named_section, avr_asm_output_aligned_common,
4968 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4969 New functions to update...
4970 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4971 (avr_asm_init_sections): Overwrite section callbacks for
4972 data_section, bss_section.
4973 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4975 (avr_file_end): ...here.
4977 2011-04-20 Richard Guenther <rguenther@suse.de>
4980 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4981 objects and types here. Adjust for their offset before comparing.
4983 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4985 * tree-vect-stmts.c (vectorizable_store): Only chain one related
4988 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4990 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4991 (GIMPLE_H): Include $(INTERNAL_FN_H).
4992 (OBJS-common): Add internal-fn.o.
4993 (internal-fn.o): New rule.
4994 * internal-fn.def: New file.
4995 * internal-fn.h: Likewise.
4996 * internal-fn.c: Likewise.
4997 * gimple.h: Include internal-fn.h.
4998 (GF_CALL_INTERNAL): New gf_mask.
4999 (gimple_statement_call): Put fntype into a union with a new
5001 (gimple_build_call_internal): Declare.
5002 (gimple_build_call_internal_vec): Likewise.
5003 (gimple_call_same_target_p): Likewise.
5004 (gimple_call_internal_p): New function.
5005 (gimple_call_internal_fn): Likewise.
5006 (gimple_call_fntype): Return null for internal calls.
5007 (gimple_call_set_fntype): Assert that the function is not internal.
5008 (gimple_call_set_fn): Likewise.
5009 (gimple_call_set_fndecl): Likewise.
5010 (gimple_call_set_internal_fn): New function.
5011 (gimple_call_addr_fndecl): Handle null functions.
5012 (gimple_call_return_type): Likewise null types.
5013 * gimple.c (gimple_build_call_internal_1): New function.
5014 (gimple_build_call_internal): Likewise.
5015 (gimple_build_call_internal_vec): Likewise.
5016 (gimple_call_same_target_p): Likewise.
5017 (gimple_call_flags): Handle calls to internal functions.
5018 (gimple_call_fnspec): New function.
5019 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5020 (gimple_has_side_effects): Handle null functions.
5021 (gimple_rhs_has_side_effects): Likewise.
5022 (gimple_call_copy_skip_args): Handle calls to internal functions.
5023 * cfgexpand.c (expand_call_stmt): Likewise.
5024 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5025 * gimple-fold.c (gimple_fold_call): Handle null functions.
5026 (gimple_fold_stmt_to_constant_1): Don't fold
5027 calls to internal functions.
5028 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5030 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5031 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5032 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5033 (do_warn_unused_result): Likewise.
5034 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5035 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5036 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5037 the target of a call.
5038 (initialize_hash_element): Update accordingly.
5039 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5040 (iterative_hash_hashable_expr): Handle calls to internal functions.
5041 (print_expr_hash_elt): Likewise.
5042 * tree-ssa-pre.c (can_value_number_call): Likewise.
5043 (eliminate): Handle null functions.
5044 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5045 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5046 (find_func_aliases): Likewise.
5047 * value-prof.c (gimple_ic_transform): Likewise.
5048 (gimple_indirect_call_to_profile): Likewise.
5049 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5050 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5052 2011-04-19 Jan Hubicka <jh@suse.cz>
5054 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5055 * ipa-inline.c (inline_small_functions): Compute summaries first,
5056 populate heap later.
5058 2011-04-19 Jan Hubicka <jh@suse.cz>
5060 * cgraph.h (save_inline_function_body): Remove.
5061 * ipa-inline-transform.c: New file, broke out of...
5062 * ipa-inline.c: ... this one; Update toplevel comment.
5063 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5065 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5066 (cgraph_mark_inline_edge): Rename to inline_call; move to
5067 ipa-inline-transform.c.
5068 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5069 move to ipa-inline-transform.c
5070 (recursive_inlining, inline_small_functions, flatten_function,
5071 ipa_inline, inline_always_inline_functions,
5072 early_inline_small_functions): Update.
5073 (inline_transform): Move to ipa-inline-transform.c.
5074 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5076 * Makefile.in (ipa-inline-transform.o): New file.
5077 * cgraphunit.c (save_inline_function_body): Move to
5078 ipa-inline-transform.c
5080 2011-04-19 DJ Delorie <dj@redhat.com>
5082 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5083 registers if we already know there aren't any.
5084 (m32c_emit_epilogue): Don't emit a barrier here.
5085 (m32c_emit_eh_epilogue): Likewise.
5086 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5087 operands at expand time.
5088 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5090 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5091 duplicates. Provide aliases instead.
5092 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5093 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5096 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5098 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5099 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5100 (general_or_i64_p, sparc_register_move_cost): New function.
5102 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5104 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5105 Add lynx, mipssde. Sort table.
5107 2011-04-19 Xinliang David Li <davidxl@google.com>
5109 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5112 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5115 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5116 is a SUBREG with non-MODE_INT mode inside of it.
5118 2011-04-19 Martin Jambor <mjambor@suse.cz>
5120 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5121 also according to actual contants.
5122 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5123 (gimple_fold_call): Use it.
5124 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5126 2011-04-19 Martin Jambor <mjambor@suse.cz>
5128 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5129 non-pointer assignments.
5131 2011-04-19 Martin Jambor <mjambor@suse.cz>
5133 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5134 account anc_offset and otr_type from the indirect edge info.
5135 * ipa-prop.c (get_ancestor_addr_info): New function.
5136 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5137 get_ancestor_addr_info, call it.
5138 (ipa_note_param_call): Do not initialize information about polymorphic
5139 calls, return the indirect call graph edge. Remove the last
5140 parameter, adjust all callers.
5141 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5142 parameters. Initialize polymorphic information in the indirect edge.
5144 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5147 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5148 the types if they have different enumeration identifiers.
5150 2011-04-19 Jan Hubicka <jh@suse.cz>
5152 * cgraph.h (cgraph_optimize_for_size_p): Declare.
5153 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5154 * predict.c (cgraph_optimize_for_size_p): Break out from ...
5155 (optimize_function_for_size_p) ... here.
5157 2011-04-19 Richard Guenther <rguenther@suse.de>
5160 * tree.c (free_lang_data): Do not reset the decl-assembler-name
5163 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5165 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5166 if DECL_NO_INLINE_WARNING_P is set on the function.
5168 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
5171 * reload1.c (inc_for_reload): Return void. All callers changed.
5172 (emit_input_reload_insns): Don't try to delete previous output
5173 reloads to a register, or record spill_reg_store for autoincs.
5175 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
5177 * gengtype.h: Updated copyright year.
5178 (struct input_file_st): Add inpisplugin field.
5179 (type_fileloc): New function.
5181 (write_typed_struct_alloc_def): Add gcc_assert.
5182 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5183 (write_typed_alloc_defns): Don't output for plugin files.
5184 (input_file_by_name): Clear inpisplugin field.
5185 (main): Set inpisplugin field for plugin files.
5187 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
5189 * gengtype-state.c (string_eq): New.
5190 (read_state): Use string_eq instead of strcmp when creating the
5193 2011-04-19 Wei Guozhi <carrot@google.com>
5196 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5197 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5199 * config/arm/constraints.md (Uu): New constraint.
5200 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5202 2011-04-19 Tristan Gingold <gingold@adacore.com>
5204 * config.gcc (-*-*-*vms): Added.
5205 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5207 * config/vms/vms-ld.c: New file.
5208 * config/vms/vms-ar.c: New file.
5209 * config/vms/t-vmsnative: New file.
5211 2011-04-18 Xinliang David Li <davidxl@google.com>
5213 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5215 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5218 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5219 if TREE_TYPE (v) is non-NULL.
5221 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5222 gimple_get_virt_mehtod_for_binfo.
5223 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5224 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5226 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5228 2011-04-18 Michael Matz <matz@suse.de>
5229 Steve Ellcey <sje@cup.hp.com>
5231 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5232 use its mode as source mode if it isn't VOIDmode.
5234 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
5236 * doc/passes.texi: Fill crossref nodes.
5238 2011-04-18 Jim Meyering <meyering@redhat.com>
5240 Fix doubled-word typos in comments and strings
5241 * config/alpha/vms-unwind.h: s/for for/for/
5242 * config/arm/unwind-arm.h: Likewise.
5243 * config/microblaze/microblaze.c: Likewise.
5244 * config/sh/constraints.md: s/in in/in/
5245 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5247 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
5249 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5250 (AVX_FLOAT_MODE_P): Ditto.
5251 (AVX128_VEC_FLOAT_MODE_P): Ditto.
5252 (AVX256_VEC_FLOAT_MODE_P): Ditto.
5253 (AVX_VEC_FLOAT_MODE_P): Ditto.
5254 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5255 (UNSPEC_MASKSTORE): Ditto.
5256 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5257 Merge from <sse>_movmsk<ssemodesuffix> and
5258 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
5259 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
5261 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5262 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5263 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5265 2011-04-18 Jan Hubicka <jh@suse.cz>
5267 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5269 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5270 (want_inline_function_called_once_p): Break out the logic from
5272 (edge_badness): Ensure that profile is not misupdated.
5273 (lookup_recursive_calls): Prioritize by call frequencies.
5274 (inline_small_functions): Move program size estimates here;
5275 actually process whole queue even when unit growth has been
5276 met. (to properly compute inline_failed reasons and for the
5277 case unit size decrease.) Revisit comments on recursive inlining.
5278 (ipa_inline): Remove unit summary code; first inline hot calls
5279 of functions called once, cold calls next.
5280 (order, nnodes): Remove unused variables.
5281 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5282 (GTFILES): Remove ipa-inline.c
5283 * sel-sched.c (fill_insns): Silence uninitialized var warning.
5285 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5287 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5289 2011-04-18 Jie Zhang <jie@codesourcery.com>
5290 Richard Earnshaw <rearnsha@arm.com>
5292 * arm.c (neon_builtin_type_bits): Remove.
5293 (typedef enum neon_builtin_mode): New.
5294 (T_MAX): Don't define.
5295 (typedef enum neon_builtin_datum): Remove bits, codes[],
5296 num_vars and base_fcode. Add mode, code and fcode.
5297 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5298 VAR10): Change accordingly.
5299 (neon_builtin_data[]): Change accordingly
5300 (arm_init_neon_builtins): Change accordingly.
5301 (neon_builtin_compare): Remove.
5302 (locate_neon_builtin_icode): Remove.
5303 (arm_expand_neon_builtin): Change accordingly.
5305 * arm.h (enum arm_builtins): Move to ...
5306 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5308 * arm.c (arm_builtin_decl): Declare.
5309 (TARGET_BUILTIN_DECL): Define.
5310 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5311 (arm_builtin_decls[]): New.
5312 (arm_init_neon_builtins): Store builtin declarations in
5313 arm_builtin_decls[].
5314 (arm_init_tls_builtins): Likewise.
5315 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
5316 (arm_builtin_decl): New.
5318 2011-04-18 Richard Guenther <rguenther@suse.de>
5320 * tree.c (upper_bound_in_type): Build properly canonicalized
5322 (lower_bound_in_type): Likewise.
5324 2011-04-18 Richard Guenther <rguenther@suse.de>
5326 * gimple.h (gimple_call_addr_fndecl): New function.
5327 (gimple_call_fndecl): Use it.
5328 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5330 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5331 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5333 2011-04-18 Richard Guenther <rguenther@suse.de>
5336 * tree.c (build_string): STRING_CST is now derived from tree_typed.
5338 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5341 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5342 DECL_IN_CONSTANT_POOL without RTL.
5344 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
5345 Ira Rosen <ira.rosen@linaro.org>
5348 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5349 to match neon_vzip/vuzp/vtrn_internal.
5350 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5351 outputs explicitly dependent on both inputs.
5352 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5354 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5356 PR tree-optimization/48616
5357 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5358 whether the shift is by scalar or vector based on whether all SLP
5359 scalar stmts have the same rhs.
5361 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
5363 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5366 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
5369 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5372 2011-04-17 Jan Hubicka <jh@suse.cz>
5374 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5375 * cgrpahunit.c (cgraph_finalize_function): Do not set
5376 finalized_by_frontend.
5377 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5378 finalized_by_frontend.
5380 2011-04-17 Jan Hubicka <jh@suse.cz>
5382 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5383 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5384 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5385 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5387 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5389 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5391 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
5394 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5395 is non-null before accessing it.
5396 (input_cgraph): Remove trailing spaces.
5398 2011-04-17 Revital Eres <revital.eres@linaro.org>
5400 * params.def (sms-min-sc): New param flag.
5401 * modulo-sched.c (sms_schedule): Use it.
5402 * doc/invoke.texi (sms-min-sc): Document it.
5404 2011-04-17 Jan Hubicka <jh@suse.cz>
5406 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5407 present, also set gimple_call_set_cannot_inline.
5408 * ipa-inline.c: Update toplevel comment.
5410 (cgraph_clone_inlined_nodes): Fix linebreaks.
5411 (cgraph_check_inline_limits): Restructure to ...
5412 (caller_growth_limits): ... this one; be more tolerant
5413 on growth in nested inline chains; add explanatory comment;
5414 fix stack accounting thinko introduced by previous patch.
5415 (cgraph_default_inline_p): Remove.
5416 (report_inline_failed_reason): New function.
5417 (can_inline_edge_p): New function.
5418 (can_early_inline_edge_p): New function.
5419 (leaf_node_p): Move upwards in file.
5420 (want_early_inline_function_p): New function.
5421 (want_inline_small_function_p): New function.
5422 (want_inline_self_recursive_call_p): New function.
5423 (cgraph_edge_badness): Rename to ...
5424 (edge_badness) ... this one; fix linebreaks.
5425 (update_edge_key): Update call of edge_baddness; add
5426 detailed dump about queue updates.
5427 (update_caller_keys): Use can_inline_edge_p and
5428 want_inline_small_function_p.
5429 (cgraph_decide_recursive_inlining): Rename to...
5430 (recursive_inlining): Use can_inline_edge_p and
5431 want_inline_self_recursive_call_p; simplify and remove no longer
5433 (cgraph_set_inline_failed): Remove.
5434 (add_new_edges_to_heap): Use can_inline_edge_p and
5435 want_inline_small_function_p.
5436 (cgraph_decide_inlining_of_small_functions): Rename to ...
5437 (inline_small_functions): ... this one; cleanup; use
5438 can/want predicates; cleanup debug ouput; work edges till fibheap
5439 is exhausted and do not stop once unit growth is reached; remove
5440 later loop processing remaining edges.
5441 (cgraph_flatten): Rename to ...
5442 (flatten_function): ... this one; use can_inline_edge_p
5443 and can_early_inline_edge_p predicates.
5444 (cgraph_decide_inlining): Rename to ...
5445 (ipa_inline): ... this one; remove unreachable nodes before
5446 inlining functions called once; simplify the pass.
5447 (cgraph_perform_always_inlining): Rename to ...
5448 (inline_always_inline_functions): ... this one; use
5449 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5450 (cgraph_decide_inlining_incrementally): Rename to ...
5451 (early_inline_small_functions): ... this one; simplify
5452 using new predicates; cleanup; make dumps prettier.
5453 (cgraph_early_inlining): Rename to ...
5454 (early_inliner): newer inline regular functions into always-inlines;
5455 fix updating of call stmt summaries.
5456 (pass_early_inline): Update for new names.
5457 (inline_transform): Fix formating.
5458 (gate_cgraph_decide_inlining): Rename to ...
5459 (pass_ipa_inline): ... this one.
5460 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5461 * ipa-inline-analysis.c (dump_inline_summary): Update.
5462 (compute_inline_parameters): Do not compute disregard_inline_limits;
5463 look for mismatching arguments.
5464 (estimate_growth): Fix handlig of non-trivial self recursion.
5465 (inline_read_summary): Do not read info->disregard_inline_limits.
5466 (inline_write_summary): Do not write info->disregard_inline_limits.
5467 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5468 and move all checks into can_inline_edge_p predicate; re-enable code
5469 comparing optimization levels.
5470 (expand_call_inline): Do not test inline_forbidden_into_p.
5471 * Makefile.in (ipa-inline.o): Update arguments.
5473 2011-04-17 Revital Eres <revital.eres@linaro.org>
5475 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5477 2011-04-17 Revital Eres <revital.eres@linaro.org>
5479 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5481 2011-04-17 Michael Matz <matz@suse.de>
5483 PR tree-optimization/48622
5485 * ipa-inline-analysis.c (inline_read_summary): Read size/time
5486 in same order as they're written.
5488 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5490 * config/pa/predicates.md: Reorganize and simplify predicates.
5491 Eliminate duplicate code checks.
5492 (arith_operand): Rename to arith14_operand
5493 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5494 * config/pa/pa.md: Use renamed operands.
5495 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5496 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5497 arith11_operand, adddi3_operand, indexed_memory_operand,
5498 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5499 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5500 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5501 move_dest_operand, move_src_operand, prefetch_cc_operand,
5502 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5503 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5504 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5505 div_operand, int5_operand, movb_comparison_operator,
5506 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5507 arith_double_operand, ireg_operand, lhs_lshift_operand,
5508 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
5509 integer_store_memory_operand): Likewise.
5510 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
5511 (integer_store_memory_operand, read_only_operand,
5512 function_label_operand, borx_reg_operand,
5513 non_hard_reg_operand): Likewise.
5514 (eq_neq_comparison_operator): Delete unused operator.
5515 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
5516 function_label_operand.
5517 (emit_move_sequence): Likewise.
5519 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5521 * config/i386/sse.md (sseunpackmode): New mode attribute.
5522 (ssepackmode): Ditto.
5523 (vec_pack_trunc_<mode>): Macroize expander from
5524 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5525 (vec_unpacks_lo_<mode>): Macroize expander from
5526 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5527 (vec_unpacks_hi_<mode>): Macroize expander from
5528 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5529 (vec_unpacku_lo_<mode>): Macroize expander from
5530 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5531 (vec_unpacku_hi_<mode>): Macroize expander from
5532 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5533 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
5534 ix86_expand_sse4_unpack.
5535 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
5537 2011-04-16 Jan Hubicka <jh@suse.cz>
5539 * cgraphbuild.c: Include ipa-inline.h.
5540 (reset_inline_failed): Use initialize_inline_failed.
5541 * cgraph.c: Include ipa-inline.h.
5542 (cgraph_create_node_1): Do not initialize estimated_growth.
5543 (initialize_inline_failed): More to ipa-inline-analysis.c
5544 (dump_cgraph_node): Do not dump inline flags.
5545 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
5546 and disregard_inline_limits flags.
5547 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
5548 time, size, estimated_growth.
5549 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
5551 * cgraphunit.c (cgraph_decide_is_function_needed): Use
5552 DECL_DISREGARD_INLINE_LIMITS.
5553 (cgraph_analyze_function): Do not initialize
5554 node->local.disregard_inline_limits.
5555 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5556 inlinable, versionable and disregard_inline_limits.
5557 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
5558 cgraph_check_inline_limits, cgraph_default_inline_p,
5559 cgraph_edge_badness, update_caller_keys, update_callee_keys,
5560 add_new_edges_to_heap): Update.
5561 (cgraph_decide_inlining_of_small_function): Update; set
5562 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
5563 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
5564 cgraph_decide_inlining_incrementally): Update.
5565 * ipa-inline.h (inline_summary): Add inlinable, versionable,
5566 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
5567 time, size and estimated_growth parameters.
5568 (estimate_edge_growth): Update.
5569 (initialize_inline_failed): Declare.
5570 * ipa-split.c: Include ipa-inline.h
5571 (execute_split_functions): Update.
5572 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
5573 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
5574 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
5575 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
5576 estimated_growth to INT_MIN.
5577 (inline_node_duplication_hook): Likewise.
5578 (dump_inline_summary): Dump new fields.
5579 (compute_inline_parameters): Update.
5580 (estimate_edge_time, estimate_time_after_inlining,
5581 estimate_size_after_inlining, estimate_growth, inline_read_summary,
5582 inline_write_summary):
5583 (initialize_inline_failed): Move here from cgraph.c.
5584 * tree-sra.c: Include ipa-inline.h.
5585 (ipa_sra_preliminary_function_checks): Update.
5586 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5589 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5591 * config/i386/sse.md (V16): New mode iterator.
5593 (AVXMODEQI, AVXMODEDI): Remove.
5594 (sse2, sse3): New mode attribute.
5595 (mov<mode>): Use V16 mode iterator.
5596 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5597 (push<mode>1): Use V16 mode iterator.
5598 (movmisalign<mode>): Ditto.
5599 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5600 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5601 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5602 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5603 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5604 avx_movdqu<avxmodesuffix>.
5605 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5606 *avx_movdqu<avxmodesuffix>.
5607 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5608 avx_lddqu<avxmodesuffix>.
5609 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5610 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5611 avx_movnt<AVXMODEDI:mode>.
5612 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5613 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5615 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
5618 * haifa-sched.c (prune_ready_list, schedule_block): Use
5619 sched_pressure_p rather than flag_sched_pressure.
5621 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
5623 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5624 cgraph_get_node instead of cgraph_get_create_node.
5626 2011-04-15 Jakub Jelinek <jakub@redhat.com>
5628 * cfgexpand.c (expand_debug_expr): Use
5629 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5631 2011-04-15 Michael Matz <matz@suse.de>
5633 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5634 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5635 * function.c (gimplify_parameters): Ditto.
5636 * gimplify.c (gimplify_vla_decl): Ditto.
5638 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5639 (gimple_call_set_alloca_for_var): New inline function.
5640 (gimple_call_alloca_for_var_p): Ditto.
5641 * gimple.c (gimple_build_call_from_tree): Remember
5642 CALL_ALLOCA_FOR_VAR_P state.
5643 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5645 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5646 calls if they were for VLA objects.
5648 2011-04-15 Martin Jambor <mjambor@suse.cz>
5650 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5653 2011-04-15 Martin Jambor <mjambor@suse.cz>
5656 * tree-emutls.c (lower_emutls_function_body): Call
5657 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
5660 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5662 * c-decl.c (detect_field_duplicates): Call
5663 objc_detect_field_duplicates instead of objc_get_interface_ivars.
5665 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
5667 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5668 * gimple.c (gimple_asm_clobbers_memory_p): Define.
5669 * ipa-pure-const.c (check_stmt): Call it.
5670 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5672 2011-04-15 Richard Guenther <rguenther@suse.de>
5674 PR tree-optimization/48290
5675 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5676 Properly decide inhibiting propagation based on the valueized
5677 operand. Do loop-closed SSA form preserving here ...
5678 (init_copy_prop): ... not here.
5680 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
5683 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5684 (*ieee_smax<mode>3): Likewise.
5686 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5688 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5689 Replace match_operand with match_dup for the third operand in
5692 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5694 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5695 to track processing of conditionals. Update all callers.
5696 (try_combine, simplify_if_then_else): Update.
5698 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5700 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5703 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
5705 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5706 instead of match_operand for operand 3.
5708 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
5710 * recog.h (insn_operand_data): Add an "allows_mem" field.
5711 * genoutput.c (output_operand_data): Initialize it.
5712 * optabs.c (maybe_legitimize_operand_same_code): New function.
5713 (maybe_legitimize_operand): Use it when matching the original
5716 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5718 * gimplify.c: Fix issues in comments throughout.
5719 (voidify_wrapper_expr): Fix long line.
5720 (build_stack_save_restore): Likewise.
5721 (gimplify_loop_expr): Likewise.
5722 (gimplify_compound_lval): Likewise.
5723 (gimplify_init_ctor_eval): Likewise.
5724 (gimplify_modify_expr_rhs): Likewise.
5725 (omp_notice_threadprivate_variable): Likewise.
5727 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5729 * cfgexpand.c (expand_call_stmt): Convert the function type to the
5730 original one if this is not a builtin function.
5732 2011-04-14 Jakub Jelinek <jakub@redhat.com>
5735 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5736 offset it as needed based on top 2 bits in operands[3], change
5737 MEM mode to SFmode and mask those 2 bits away from operands[3].
5739 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5741 * c-parser.c (c_parser_objc_protocol_definition): Updated for
5742 change from objc_declare_protocols() to objc_declare_protocol().
5744 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
5746 * config/i386/sse.md (sse4_1): New mode attribute.
5747 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5748 avx_blend<ssemodesuffix><avxmodesuffix> and
5749 sse4_1_blend<ssemodesuffix> using VF mode iterator.
5750 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5751 avx_blendv<ssemodesuffix><avxmodesuffix> and
5752 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5753 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5754 avx_dp<ssemodesuffix><avxmodesuffix> and
5755 sse4_1_dp<ssemodesuffix> using VF mode iterator.
5756 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5757 (sse4_1_packusdw): Merge with *avx_packusdw.
5758 (sse4_1_pblendvb): Merge with *avx_pblendvb.
5759 (sse4_1_pblendw): Merge with *avx_pblendw.
5760 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5761 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5762 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5764 (sse4_1_round<ssescalarmodesuffix>): Merge with
5765 *avx_round<ssescalarmodesuffix>.
5766 (aesenc): Merge with *avx_aesenc.
5767 (aesenclast): Merge with *avx_aesenclast.
5768 (aesdec): Merge with *avx_aesdec.
5769 (aesdeclast): Merge with *avx_aesdeclast.
5770 (pclmulqdq): Merge with *pclmulqdq.
5771 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5773 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
5775 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
5778 * cfgexpand.c (get_decl_align_unit): Renamed to ...
5779 (align_local_variable): This. Update DECL_ALIGN.
5780 (add_stack_var): Updated.
5781 (expand_one_stack_var): Likewise.
5783 2011-04-14 Richard Guenther <rguenther@suse.de>
5785 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
5787 (dse_initialize_block_local_data, dse_leave_block,
5788 record_voperand_set, get_stmt_uid): Likewise.
5789 (dse_possible_dead_store_p): Allow any kind of killing stmt.
5790 (dse_optimize_stmt): Remove voperand set handling code.
5791 Simplify and improve to handle any kind of killing stmt.
5792 (dse_record_phi): Remove.
5793 (dse_enter_block): Simplify.
5794 (tree_ssa_dse): Likewise.
5795 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5797 2011-04-14 Jan Hubicka <jh@suse.cz>
5799 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5800 * cgraph.h (struct inline_summary): Move to ipa-inline.h
5801 (cgraph_local_info): Remove inline_summary.
5802 * ipa-cp.c: Include ipa-inline.h.
5803 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5804 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5806 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5807 (input_overwrite_node): Do not set inline summary.
5808 (input_node): Do not stream inline summary.
5809 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5810 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5811 growth; we do not have inline parameters computed for that anyway.
5812 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5813 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5814 (inline_summary_t): New type and VECtor.
5815 (debug_inline_summary, dump_inline_summaries): Declare.
5816 (inline_summary): Use VOCtor.
5817 (estimate_edge_growth): Kill hack computing call stmt size directly.
5818 * lto-section-in.c (lto_section_name): Add inline section.
5819 * ipa-inline-analysis.c: Include lto-streamer.h
5820 (node_removal_hook_holder, node_duplication_hook_holder): New holders
5821 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
5822 (inline_summary_vec): Define.
5823 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
5824 dump_inline_summaries): New functions.
5825 (estimate_function_body_sizes): Properly compute size/time of outgoing
5827 (compute_inline_parameters): Alloc inline_summary; do not compute
5828 size/time of incomming calls.
5829 (estimate_edge_time): Avoid missing time summary hack.
5830 (inline_read_summary): Read inline summary info.
5831 (inline_write_summary): Write inline summary info.
5832 (inline_free_summary): Free all hooks and inline summary vector.
5833 * lto-streamer.h: Add LTO_section_inline_summary section.
5834 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
5835 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
5837 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5839 * tree-vectorizer.h (vect_strided_store_supported): Add a
5840 HOST_WIDE_INT argument.
5841 (vect_strided_load_supported): Likewise.
5842 (vect_permute_store_chain): Return void.
5843 (vect_transform_strided_load): Likewise.
5844 (vect_permute_load_chain): Delete.
5845 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
5846 count argument. Check that the count is a power of two.
5847 (vect_strided_load_supported): Likewise.
5848 (vect_permute_store_chain): Return void. Update after above changes.
5849 Assert that the access is supported.
5850 (vect_permute_load_chain): Likewise.
5851 (vect_transform_strided_load): Return void.
5852 * tree-vect-stmts.c (vectorizable_store): Update calls after
5853 above interface changes.
5854 (vectorizable_load): Likewise.
5855 (vect_analyze_stmt): Don't check for strided powers of two here.
5857 2011-04-14 Richard Guenther <rguenther@suse.de>
5859 PR tree-optimization/48590
5860 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5861 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5862 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
5863 BUILT_IN_STACK_SAVE.
5864 * tree-ssa-dce.c (propagate_necessity): Handle
5865 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5867 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5869 * c-parser.c (c_parser_objc_class_declaration): Updated call to
5872 2011-04-14 Richard Guenther <rguenther@suse.de>
5874 * tree.h (get_object_alignment_1): Declare.
5875 * builtins.c (get_object_alignment_1): Split out worker from ...
5876 (get_object_alignment): ... here.
5877 * fold-const.c (get_pointer_modulus_and_residue): Use
5878 get_object_alignment_1.
5880 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5882 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
5884 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
5885 parameter. Generalise code to handle arrays as well as vectors.
5886 (vect_setup_realignment): Update accordingly.
5887 * tree-vect-stmts.c (vectorizable_store): Likewise.
5888 (vectorizable_load): Likewise.
5890 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5892 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
5893 within the per-copy loop.
5895 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5897 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5900 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5902 * doc/options.texi (Negative): Explicitly mention that the
5903 Negative chain must be circular.
5905 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
5907 * function.h (block_chainon): Declare.
5908 * function.c (block_chainon): Define.
5910 2011-04-14 Anatoly Sokolov <aesok@post.ru>
5911 Eric Weddington <eric.weddington@atmel.com>
5912 Georg-Johann Lay <avr@gjlay.de>
5914 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5916 (avr_init_builtins, avr_expand_builtin,
5917 avr_expand_delay_cycles, avr_expand_unop_builtin,
5918 avr_expand_binop_builtin ): New functions.
5919 (avr_builtin_id): New enum
5920 (struct avr_builtin_description): New struct
5921 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5922 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5924 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5925 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5926 UNSPECV_DELAY_CYCLES): new enumeration values
5927 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5928 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5929 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5930 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5931 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5932 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5933 "fmulsu"): New insns
5935 * config/avr/avr-c.c: fix line endings
5936 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5937 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5938 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5939 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5940 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5942 * doc/extend.texi (AVR Built-in Functions): New node
5943 (Target Builtins): Add documentation of AVR
5946 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
5949 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5950 alone. Error if non-const data has attribute progmem.
5952 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5954 * tree.h (struct tree_constructor): Include tree_typed instead of
5956 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5957 TS_TYPED instead of TS_COMMON.
5959 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5961 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5962 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5963 (sse2_psadbw): Merge with *avx_psadbw.
5964 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5965 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5966 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5967 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5968 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5969 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5970 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5971 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5972 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5973 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5974 (ssse3_palignrti): Merge with *avx_palignrti.
5976 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5978 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5979 * tree-ssanames.c (fini_ssanames): VEC_free it.
5980 (make_ssa_name_fn): Update for VECness of free_ssanames.
5981 (release_ssa_name, release_dead_ssa_names): Likewise.
5982 * tree.h (struct tree_ssa_name): Include tree_typed instead of
5984 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5985 TS_TYPED instead of TS_COMMON.
5987 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5989 * postreload-gcse.c (gcse_after_reload_main): Add calls to
5990 statistics_counter_event.
5991 * tree-ssa-copyrename.c (stats): Define.
5992 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
5993 statistics_counter_event.
5994 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5995 (bswap_stats, widen_mul_stats): Define.
5996 (insert_reciprocals): Increment rdivs_inserted.
5997 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
5998 rfuncs_inserted. Add calls to statistics_counter_event.
5999 (execute_cse_sincos_1): Increment inserted.
6000 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6001 statistics_counter_event.
6002 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6003 of bswap_stats. Add calls to statistics_counter_event.
6004 (convert_mult_to_widen): Increment widen_mults_inserted.
6005 (convert_plusminus_to_widen): Increment maccs_inserted.
6006 (convert_mult_to_fma): Increment fmas_inserted.
6007 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6008 calls to statistics_counter_event.
6010 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6012 PR rtl-optimization/48455
6013 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6014 `temp_costs->mem_cost'.
6016 2011-04-13 Jan Hubicka <jh@suse.cz>
6018 * ipa-inline.h: New file.
6019 * ipa-inline-analysis.c: New file. Broken out of ...
6020 * ipa-inline.c: ... this file; update toplevel comment;
6021 include ipa-inline.h
6022 (inline_summary): Move to ipa-inline.h
6023 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6024 ipa-inline-analysis.c.
6025 (cgraph_estimate_time_after_inlining): Rename to
6026 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6027 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6028 to estimate_edge_growth.
6029 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6030 rename to estimate_size_after_inlining.
6031 (cgraph_mark_inline_edge): Update for new naming convention.
6032 (cgraph_check_inline_limits): Likewise.
6033 (cgraph_edge_badness): Likewise.
6034 (cgraph_decide_recursive_inlining): Likewise.
6035 (cgraph_decide_inlining_of_small_functions): Likewise.
6036 (cgraph_decide_inlining_incrementally): Likewise.
6037 (cgraph_estimate_growth): Rename to estimate_growth; move to
6038 ipa-inline-analysis.c.
6039 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6040 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6041 (compute_inline_parameters): Likewise.
6042 (compute_inline_parameters_for_current): Likewise.
6043 (pass_inline_parameters): Likewise.
6044 (inline_indirect_intraprocedural_analysis): Likewise.
6045 (analyze_function): Rename to inline_analyze_function; likewise.
6046 (add_new_function): Move to ipa-inline-analysis.c.
6047 (inline_generate_summary): Likewise.
6048 (inline_read_summary): Likewise.
6049 (inline_write_summary): Likewise.
6050 * Makefile.in (ipa-inline-analysis.c): New file.
6052 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6054 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6055 * configure: Regenerate.
6057 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6059 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6060 instead of tree_common.
6061 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6063 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6064 TS_TYPED rather than TS_COMMON.
6065 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6067 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6070 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6071 r20 around calls of __tablejump_elpm__
6073 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6076 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6078 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6080 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6082 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6083 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6084 (cfi_vec): New typedef.
6085 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6086 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6087 (cie_cfi_vec): New static variable.
6088 (cie_cfi_head): Delete.
6089 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6090 declaration changed. Use vector rather than list operations.
6091 (new_cfi): Don't initialize the dw_cfi_next field.
6092 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6093 rather than list operations.
6094 (lookup_cfa): Use vector rather than list operations.
6095 (output_cfis): New argument upto. Accept a cfi_vec rather than
6096 a dw_cfi_ref list head as argument. All callers changed.
6097 Iterate over the vector using upto as a maximum index.
6098 (output_all_cfis): New static function.
6099 (output_fde): Use vector rather than list operations. Use the
6100 new upto argument for output_cfis rather than manipulating a
6102 (dwarf2out_begin_prologue): Change initializations to match
6104 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6105 from the vector length rather than searching for the end of a list.
6106 Use output_all_cfis.
6107 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6109 2011-04-13 Nick Clifton <nickc@redhat.com>
6111 * config/rx/rx.md (movmemsi): Do not use this pattern when
6112 volatile pointers are involved.
6114 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6116 * config/i386/sse.md (pinsrbits): Remove.
6117 (sse2_packsswb): Merge with *avx_packsswb.
6118 (sse2_packssdw): Merge with *avx_packssdw.
6119 (sse2_packuswb): Merge with *avx_packuswb.
6120 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6121 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6122 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6123 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6124 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6125 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6126 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6127 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6128 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6129 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6130 (sse2_loadld): Merge with *avx_loadld.
6131 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6132 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6133 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6134 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6135 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6137 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6139 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6141 * print-tree.c (print_node): Likewise.
6142 * tree-inline.c (copy_tree_r): Likewise.
6143 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6144 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6145 instead of TS_COMMON.
6146 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6147 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6148 (copy_node_stat): Zero TREE_CHAIN only if necessary.
6149 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6150 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6152 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6154 (TREE_CHAIN): Check for a TS_COMMON structure.
6155 (TREE_TYPE): Check for a TS_TYPED structure.
6157 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
6159 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6160 cgraph_get_create_node instead of cgraph_node.
6162 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6164 * c-parser.c (c_parser_initelt): Updated call to
6165 objc_build_message_expr.
6166 (c_parser_postfix_expression): Likewise.
6168 2011-04-12 Kai Tietz <ktietz@redhat.com>
6170 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6171 MASK_MS_BITFIELD_LAYOUT bit.
6173 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6175 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6176 assert it is always true.
6177 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6180 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6182 * c-parser.c (c_lex_one_token): Rewritten conditional used when
6183 compiling Objective-C to be more efficient.
6185 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
6187 * opts-common.c (decode_cmdline_options_to_array): Remove variable
6190 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6192 * recog.h, genoutput.c, optabs.c: Revert last patch.
6194 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6197 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6199 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6201 * recog.h (insn_operand_data): Add an "allows_mem" field.
6202 * genoutput.c (output_operand_data): Initialize it.
6203 * optabs.c (maybe_legitimize_operand_same_code): New function.
6204 (maybe_legitimize_operand): Use it when matching the original
6207 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6209 * genpreds.c (process_define_predicate): Move most processing
6210 to gensupport.c. Continue to validate the expression.
6211 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6212 (process_define_predicate): Move processing to gensupport.c.
6213 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6214 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6215 (compute_predicate_codes): Moved from genrecog.c. Add lineno
6217 (valid_predicate_name_p): New function, split out from old
6218 genpreds.c:process_define_predicate.
6219 (process_define_predicate): New function, combining code from
6220 old genpreds.c and genrecog.c functions.
6221 (process_rtx): Call it for DEFINE_PREDICATE and
6222 DEFINE_SPECIAL_PREDICATE.
6224 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6226 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6227 size of a '%A' memory reference.
6228 (T_DREG, T_QREG): New neon_builtin_type_bits.
6229 (arm_init_neon_builtins): Assert that the load and store operands
6230 are neon_struct_operands.
6231 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6232 (NEON_ARG_MEMORY): New builtin_arg.
6233 (neon_dereference_pointer): New function.
6234 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6235 Handle NEON_ARG_MEMORY.
6236 (arm_expand_neon_builtin): Update after above interface changes.
6237 Use NEON_ARG_MEMORY for loads and stores.
6238 * config/arm/predicates.md (neon_struct_operand): New predicate.
6239 * config/arm/iterators.md (V_two_elem): Tweak formatting.
6240 (V_three_elem): Use BLKmode for accesses that have no associated mode.
6241 (V_four_elem): Tweak formatting.
6242 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6243 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6244 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6245 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6246 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6247 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6248 (neon_vst4<mode>): Replace pointer operand with a memory operand.
6249 Use %A in the output template.
6250 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6251 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6252 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6253 the width of the memory access. Remove post-increment.
6254 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6256 2011-04-12 Nick Clifton <nickc@redhat.com>
6258 * config/v850/v850.c (expand_prologue): Do not use the CALLT
6259 instruction for interrupt handlers if the target is the basic V850
6261 (expand_epilogue): Likewise.
6263 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6265 PR rtl-optimization/48549
6266 * combine.c (propagate_for_debug): Also stop after BB_END of
6267 this_basic_block. Process LAST and just stop processing after it.
6268 (combine_instructions): If last_combined_insn has been deleted,
6269 set last_combined_insn to its PREV_INSN.
6271 2011-04-12 Richard Guenther <rguenther@suse.de>
6273 PR tree-optimization/46076
6274 * gimple.h (struct gimple_statement_call): Add fntype field.
6275 (gimple_call_fntype): Adjust.
6276 (gimple_call_set_fntype): New function.
6277 * gimple.c (gimple_build_call_1): Set the call function type.
6278 * gimplify.c (gimplify_call_expr): Preserve the function
6279 type the frontend used for the call.
6280 (gimplify_modify_expr): Likewise.
6281 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6283 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6285 * tree-ssa.c (useless_type_conversion_p): Function pointer
6286 conversions are useless.
6288 2011-04-12 Martin Jambor <mjambor@suse.cz>
6290 * cgraph.h (cgraph_node): Remove function declaration.
6291 (cgraph_create_node): Declare.
6292 (cgraph_get_create_node): Likewise.
6293 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6294 Updated all callers.
6295 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6296 the decl does not already exist. Call cgraph_get_create_node instead
6298 (cgraph_get_create_node): New function.
6299 (cgraph_same_body_alias): Update comment.
6300 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6301 assert it does not return NULL.
6302 (cgraph_update_edges_for_call_stmt): Likewise.
6303 (cgraph_clone_edge): Likewise.
6304 (cgraph_create_virtual_clone): Likewise.
6305 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6306 instead of cgraph_node.
6307 (cgraph_add_new_function): Call cgraph_create_node or
6308 cgraph_get_create_node instead of cgraph_node.
6309 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6310 instead of cgraph_node.
6311 (record_eh_tables): Likewise.
6312 (mark_address): Likewise.
6313 (mark_load): Likewise.
6314 (build_cgraph_edges): Call cgraph_get_create_node instead
6316 (rebuild_cgraph_edges): Likewise.
6317 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6318 instead of cgraph_node.
6319 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6321 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6322 cgraph_create_node instead of cgraph_node.
6323 * c-decl.c (finish_function): Call cgraph_get_create_node instead
6325 * lto-cgraph.c (input_node): Likewise.
6326 * lto-streamer-in.c (input_function): Likewise.
6327 * varasm.c (mark_decl_referenced): Likewise.
6328 (assemble_alias): Likewise.
6330 2011-04-12 Martin Jambor <mjambor@suse.cz>
6332 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6333 instead of cgraph_node and assert it does not return NULL.
6334 * lto-streamer-in.c (lto_read_body): Likewise.
6335 * omp-low.c (new_omp_context): Likewise.
6336 (create_task_copyfn): Likewise.
6337 * tree-emutls.c (lower_emutls_function_body): Likewise.
6338 * matrix-reorg.c (transform_allocation_sites): Likewise.
6340 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6343 * c-typeck.c (build_asm_expr): Error out on attempts to use
6344 void type outputs or inputs for constraints that allow reg or
6347 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
6348 Richard Earnshaw <rearnsha@arm.com>
6351 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6352 to use sign-magnitude offsets. Reject unsupported unaligned
6353 cases. Add detailed description in comments.
6354 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6355 condition from TARGET_32BIT to TARGET_ARM.
6357 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
6359 * tree.h (struct typed_tree): New.
6360 (struct tree_common): Include it instead of tree_base.
6361 (TREE_TYPE): Update for new location of type field.
6362 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6363 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6364 (union tree_node): Add typed field.
6365 * treestruct.def (TS_TYPED): New.
6366 * lto-streamer.c (check_handled_ts_structures): Handle it.
6367 * tree.c (MARK_TS_TYPED): New macro.
6368 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6370 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
6372 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6373 (force_nonfallthru): Do not alter the loop nest if no basic block
6376 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6378 * config/i386/sse.md (VI): New mode iterator.
6380 (AVX256MODEI): Ditto.
6381 (AVXMODEF4P): Ditto.
6382 (avxvecpsmode): Ditto.
6383 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
6384 (sse2_andnot<mode>3): New expander.
6385 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6386 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
6387 (<any_logic:code><mode>3): Use VI mode iterator.
6388 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6389 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
6390 (*andnottf3): Handle AVX three-operand constraints.
6391 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6393 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6394 Robert Millan <rmh@gnu.org>
6396 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6397 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6398 GNU_USER_DYNAMIC_LINKER64): Define.
6399 (REG_NAME): Don't undefine.
6400 (MD_UNWIND_SUPPORT): Undefine.
6401 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6402 (REG_NAME): Don't undefine.
6403 (MD_UNWIND_SUPPORT): Undefine.
6404 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6406 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6408 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6409 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6411 2011-04-11 Xinliang David Li <davidxl@google.com>
6413 * value-profile.c (check_ic_target): New function.
6414 (gimple_ic_transform): Sanity check indirect call target.
6415 * gimple-low.c (gimple_check_call_args): Interface change.
6416 (gimple_check_call_matching_types): New function.
6417 * tree-inline.c (tree_can_inline_p): Call new function.
6419 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
6421 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6422 tree-pretty-print.h & realmpfr.h.
6424 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
6427 * ira.c (setup_pressure_classes): Fix typo in loop condition.
6428 (setup_allocno_and_important_classes): Ditto.
6430 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6432 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6433 GNU_USER_DYNAMIC_LINKER.
6434 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6435 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6436 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6437 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6438 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6439 GNU_USER_TARGET_OS_CPP_BUILTINS.
6440 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6441 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6442 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6443 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6444 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6445 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6446 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6447 GNU_USER_TARGET_OS_CPP_BUILTINS.
6448 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6449 GNU_USER_DYNAMIC_LINKER.
6450 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6451 GNU_USER_TARGET_OS_CPP_BUILTINS.
6452 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6453 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6454 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6455 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6456 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6457 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6458 GNU_USER_DYNAMIC_LINKER64): Remove.
6459 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6460 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6461 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6462 GNU_USER_DYNAMIC_LINKER.
6463 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6464 GNU_USER_TARGET_OS_CPP_BUILTINS.
6465 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6466 GNU_USER_TARGET_OS_CPP_BUILTINS.
6467 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6468 to GNU_USER_TARGET_OS_CPP_BUILTINS.
6469 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6470 GNU_USER_TARGET_OS_CPP_BUILTINS.
6471 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6472 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6473 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6474 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6475 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6476 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6477 GNU_USER_DYNAMIC_LINKER.
6478 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6479 GNU_USER_TARGET_OS_CPP_BUILTINS.
6480 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
6481 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6482 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6483 GNU_USER_DYNAMIC_LINKER.
6484 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6485 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6486 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6487 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6488 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6489 GNU_USER_DYNAMIC_LINKER.
6490 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6491 GNU_USER_DYNAMIC_LINKERN32.
6492 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6493 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
6494 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
6495 GNU_USER_DYNAMIC_LINKER32.
6496 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6497 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6498 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6499 GNU_USER_DYNAMIC_LINKER.
6500 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6501 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6502 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6503 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6504 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6505 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6506 GNU_USER_DYNAMIC_LINKER32.
6507 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6508 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
6509 GNU_USER_DYNAMIC_LINKER.
6510 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
6511 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6512 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6513 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
6514 GNU_USER_DYNAMIC_LINKER64.
6515 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
6516 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6517 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6518 GNU_USER_DYNAMIC_LINKER.
6519 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6520 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6521 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6522 GNU_USER_DYNAMIC_LINKER.
6523 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6524 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6525 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6526 GNU_USER_DYNAMIC_LINKER32.
6527 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6528 GNU_USER_DYNAMIC_LINKER64.
6529 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6530 GNU_USER_DYNAMIC_LINKER64.
6531 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
6532 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6533 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
6534 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6535 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6537 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6539 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
6540 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
6541 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
6542 GNU_USER_DYNAMIC_LINKER.
6543 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6544 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
6545 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
6546 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
6547 GNU_USER_DYNAMIC_LINKER64.
6548 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6549 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
6550 GNU_USER_LINK_EMULATION.
6551 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
6552 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
6553 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
6554 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
6555 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
6556 CPP_SPEC, CC1_SPEC): Remove.
6557 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
6558 (GNU_USER_DYNAMIC_LINKER): Define.
6559 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
6560 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
6561 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
6562 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
6563 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
6564 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
6565 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6566 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
6567 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
6568 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
6569 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
6570 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
6571 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
6572 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
6573 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
6574 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6575 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6576 GNU_USER_DYNAMIC_LINKER.
6577 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6578 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6579 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6580 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6581 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6582 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6583 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6584 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6585 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6586 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6588 2011-04-11 Kai Tietz <ktietz@redhat.com>
6592 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6593 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6595 (ix86_is_msabi_thiscall): Removed.
6596 (ix86_is_type_thiscall): Likewise.
6597 (ix86_get_callcvt): New function.
6598 (ix86_comp_type_attributes): Simplify check.
6599 (ix86_function_regparm): Use ix86_get_callcvt for calling
6600 convention attribute checks.
6601 (ix86_return_pops_args): Likewise.
6602 (ix86_static_chain): Likewise.
6603 (x86_this_parameter): Likewise.
6604 (x86_output_mi_thunk): Likewise.
6605 (ix86_function_type_abi): Optimize check for types without attributes.
6606 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6607 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6608 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6610 (IX86_BASE_CALLCVT): Helper macro.
6611 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6612 Use ix86_get_callcvt for calling convention attribute checks and avoid
6613 symbol-decoration for stdcall in TARGET_RTD case.
6614 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6616 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6619 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6621 * config/i386/sse.md (VI_128): New mode iterator.
6622 (VI12_128): Rename from SSEMODE12.
6623 (VI14_128): Rename from SSEMODE14.
6624 (VI124_128): New mode iterator.
6625 (VI24_128): Rename from SSEMODE248.
6626 (VI248_128): Rename from SSEMODE248.
6627 (SSEMODE124C8): Remove.
6628 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6629 (*sse2_<plusminus_insn><mode>3): Merge with
6630 *avx_<plusminus_insn><mode>3.
6631 (*mulv8hi3): Merge with *avx_mulv8hi3.
6632 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6633 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6634 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6635 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6636 (ashr<mode>3): Merge with *avx_ashr<mode>3.
6637 (lshr<mode>3): Merge with *avx_lshr<mode>3.
6638 (ashl<mode>3): Merge with *avx_ashl<mode>3.
6639 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6640 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6641 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6642 (*<smaxmin:code>v8hi3): Ditto.
6643 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6644 (*<smaxmin:code>v16qi3): Ditto.
6645 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6646 (*sse2_eq<mode>3): Ditto.
6647 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6648 (*sse2_gt<mode>3): Ditto.
6649 (vcondv2di): Split out of vcond<mode>.
6650 (vconduv2di): Split out of vcondu<mode>.
6652 2011-04-11 Richard Guenther <rguenther@suse.de>
6654 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6655 before calling tree_low_cst.
6657 2011-04-11 Richard Guenther <rguenther@suse.de>
6659 * stor-layout.c (layout_type): Compute all array index size operations
6660 in the original type.
6661 (initialize_sizetypes): Add comment.
6662 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6664 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6666 * common.opt (Tbss=, Tdata=, Ttext=): New options.
6668 2011-04-11 Martin Jambor <mjambor@suse.cz>
6670 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6671 of cgraph_node, handle NULL return value.
6672 (cgraph_global_info): Likewise.
6673 (cgraph_rtl_info): Likewise.
6674 * tree-inline.c (estimate_num_insns): Likewise.
6675 * gimplify.c (unshare_body): Likewise.
6676 (unvisit_body): Likewise.
6677 (gimplify_body): Likewise.
6678 * predict.c (optimize_function_for_size_p): Likewise.
6679 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6680 (call_may_clobber_ref_p_1): Likewise.
6681 * varasm.c (function_section_1): Likewise.
6682 (assemble_start_function): Likewise.
6684 2011-04-11 Martin Jambor <mjambor@suse.cz>
6686 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6688 * final.c (rest_of_clean_state): Likewise.
6689 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6690 * passes.c (pass_init_dump_file): Likewise.
6691 (execute_all_ipa_transforms): Likewise.
6692 (function_called_by_processed_nodes_p): Likewise.
6693 * predict.c (maybe_hot_frequency_p): Likewise.
6694 (probably_never_executed_bb_p): Likewise.
6695 (compute_function_frequency): Likewise.
6696 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6697 (unnest_nesting_tree_1): Likewise.
6698 (lower_nested_functions): Likewise.
6699 * tree-optimize.c (execute_fixup_cfg): Likewise.
6700 (tree_rest_of_compilation): Likewise.
6701 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6702 * tree-sra.c (ipa_early_sra): Likewise.
6703 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6704 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6705 * ipa.c (record_cdtor_fn): Likewise.
6706 * ipa-inline.c (cgraph_early_inlining): Likewise.
6707 (compute_inline_parameters_for_current): Likewise.
6708 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6709 * ipa-pure-const.c (local_pure_const): Likewise.
6710 * ipa-split.c (split_function): Likewise.
6711 (execute_split_functions): Likewise.
6712 * cgraphbuild.c (build_cgraph_edges): Likewise.
6713 (rebuild_cgraph_edges): Likewise.
6714 (cgraph_rebuild_references): Likewise.
6715 (remove_cgraph_callee_edges): Likewise.
6716 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6717 (verify_cgraph_node): Likewise.
6718 (cgraph_analyze_functions): Likewise.
6719 (cgraph_preserve_function_body_p): Likewise.
6720 (save_inline_function_body): Likewise.
6721 (save_inline_function_body): Likewise.
6722 * tree-inline.c (copy_bb): Likewise.
6723 (optimize_inline_calls): Likewise.
6725 2011-04-11 Martin Jambor <mjambor@suse.cz>
6727 PR tree-optimization/48195
6728 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6729 ipa_check_create_edge_args.
6730 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6731 ipa_check_create_edge_args.
6732 * ipa-inline.c (inline_generate_summary): Do not call
6733 ipa_check_create_node_params and ipa_check_create_edge_args.
6734 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6735 ipa_check_create_edge_args.
6737 2011-04-09 Anatoly Sokolov <aesok@post.ru>
6739 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6741 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6742 * function.c (record_hard_reg_sets): Likewise.
6743 * ira.c (compute_regs_asm_clobbered): Likewise.
6744 * sched-deps.c (sched_analyze_1): Likewise.
6745 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6747 2011-04-09 Xinliang David Li <davidxl@google.com>
6749 PR tree-optimization/PR48484
6750 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6751 has_valid_pred lazily
6753 2011-04-09 Duncan Sands <baldrick@free.fr>
6755 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6757 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
6759 * combine.c (combine_validate_cost): Adjust comments. Set registered
6760 cost of I0 to zero at the end, if any.
6762 2011-04-08 Xinliang David Li <davidxl@google.com>
6764 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6765 to insane profile data.
6767 2011-04-08 Xinliang David Li <davidxl@google.com>
6769 * ipa-cp.c (ipcp_update_profiling): Correct
6770 negative scale factor due to insane profile data.
6772 2011-04-08 Xinliang David Li <davidxl@google.com>
6774 * final.c (dump_basic_block_info): New function.
6775 (final): Dump basic block.
6776 (final_scan_insn): Remove old dump.
6778 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
6781 * config.gcc (i386-*-freebsd): Disable unwind table generation for
6784 2011-04-08 Michael Matz <matz@suse.de>
6787 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
6789 (rebuild_jump_labels): Call rebuild_jump_labels_1.
6790 * rtl.h (rebuild_jump_labels_chain): Declare.
6791 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
6792 insns inserted on edges.
6794 2011-04-08 Joseph Myers <joseph@codesourcery.com>
6796 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6797 * config/arm/arm-arches.def: New.
6798 * config/arm/arm-opts.h: New.
6799 * config/arm/genopt.sh: New.
6800 * config/arm/arm-tables.opt: New (generated).
6801 * config/arm/arm.c (arm_handle_option, arm_target_help,
6802 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6803 (all_architectures): Get most table contents from arm-arches.def.
6804 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6805 arm_selected_tune here.
6806 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6807 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6808 (march=, mcpu=, mtune=): Use Enum and Var.
6809 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6810 (arm.o): Update dependencies.
6812 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
6814 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6816 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6817 (write_typed_alloc_defns): Likewise.
6818 (main): Calls write_typed_alloc_defns with output_header.
6820 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
6823 * ira-color.c (setup_profitable_hard_regs): Add comments.
6824 Don't take prohibited hard regs into account.
6825 (setup_conflict_profitable_regs): Rename to
6826 get_conflict_profitable_regs.
6827 (check_hard_reg_p): Check prohibited hard regs.
6829 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
6831 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
6832 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
6833 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
6835 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6838 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
6839 move from floating point to shift amount register.
6840 (emit_move_sequence): Remove secondary reload support for floating
6841 point to shift amount amount register copies.
6842 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
6843 amount register copies.
6844 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
6845 register, return false if mode isn't a scalar integer mode.
6846 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
6848 2011-04-08 Richard Guenther <rguenther@suse.de>
6850 * gimple.c (gimple_call_flags): Remove kludge.
6852 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6854 * sel-sched.c (sel_region_init): Move call to
6855 sel_setup_region_sched_flags after setup_current_loop_nest.
6857 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
6859 PR rtl-optimization/48272
6860 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
6861 init_insn_reg_pressure_info. Adjust a caller.
6862 * sched-int.h (init_insn_reg_pressure_info): Declare.
6863 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
6864 when sched-pressure is enabled.
6866 2011-04-08 Richard Guenther <rguenther@suse.de>
6868 * gimple.c (gimple_set_modified): Do not queue calls to
6869 MODIFIED_NORETURN_CALLS here ...
6870 * tree-ssa-operands.c (update_stmt_operands): ... but here.
6872 2011-04-08 Richard Guenther <rguenther@suse.de>
6875 * toplev.c (lang_dependent_init): Do not open asm_out_file
6876 in WPA mode, nor perform debug machinery initialization.
6877 (finalize): Do not unlink asm_out_file in WPA mode.
6879 2011-04-08 Richard Guenther <rguenther@suse.de>
6881 * gimple.h (gimple_call_fntype): New function.
6882 (gimple_call_return_type): Use it.
6883 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
6884 * gimple-low.c (gimple_check_call_args): Likewise.
6885 * gimple.c (gimple_call_flags): Likewise.
6886 (gimple_call_arg_flags): Likewise.
6887 (gimple_call_return_flags): Likewise.
6888 * tree-cfg.c (verify_gimple_call): Likewise.
6889 (do_warn_unused_result): Likewise.
6890 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6891 * value-prof.c (gimple_ic_transform): Fix fndecl check.
6893 2011-04-08 Dmitry Melnik <dm@ispras.ru>
6895 PR rtl-optimization/48235
6896 * sel-sched.c (code_motion_process_successors): Recompute the last
6897 insn in basic block if control flow changed.
6898 (code_motion_path_driver): Ditto. Recompute the first insn as well.
6899 Update condition for ilist_remove.
6901 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6903 PR rtl-optimization/48302
6904 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6905 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
6906 it to record added preheader blocks.
6907 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
6908 on to sel_add_loop_preheaders.
6909 (sel_region_init): Move call to setup_current_loop_nest after
6912 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6915 * cfgloop.h (loop_has_exit_edges): New helper.
6916 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6918 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6919 that have no exit edges.
6921 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6923 PR rtl-optimization/48442
6924 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
6925 all callers. Adjust assert.
6927 2011-04-08 Jakub Jelinek <jakub@redhat.com>
6929 PR tree-optimization/48377
6930 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6931 is_packed to true even for types with smaller TYPE_ALIGN than
6934 2011-04-08 Richard Guenther <rguenther@suse.de>
6937 * doc/tm.texi: Re-generate.
6939 2011-04-08 Wei Guozhi <carrot@google.com>
6942 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6943 * config/arm/arm.c (arm_attr_length_push_multi): New function.
6944 * config/arm/arm.md (*push_multi): Change the length computation to
6947 2011-04-08 Anatoly Sokolov <aesok@post.ru>
6949 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6950 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6951 * doc/tm.texi: Regenerate.
6952 * system.h (ASM_OUTPUT_BSS): Poison.
6953 * varasm.c (asm_output_bss): Remove function.
6954 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6956 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6957 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6958 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6959 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6961 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6963 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6965 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6967 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6969 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6972 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6974 * config/m68k/m68k.c (m68k_handle_option): Don't handle
6975 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6976 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6978 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6979 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6980 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6981 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6982 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6983 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6984 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6985 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6986 options. Don't map other m68k options manually. Don't handle
6987 old-style options as canonical.
6988 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6989 * doc/install.texi (m68k-*-*): Document binutils version requirement.
6991 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
6993 * basic-block.h (force_nonfallthru): Move to...
6994 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6995 (force_nonfallthru): ...here.
6996 * cfghooks.c (force_nonfallthru): New function.
6997 * cfgrtl.c (force_nonfallthru): Rename into...
6998 (rtl_force_nonfallthru): ...this.
6999 (commit_one_edge_insertion): Do not set AUX field.
7000 (commit_edge_insertions): Do not discover new basic blocks.
7001 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7002 (cfg_layout_rtl_cfg_hooks): Likewise.
7003 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7004 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7005 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7007 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7009 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7012 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7014 * config/i386/sse.md: Update copyright year.
7015 (avxcvtvecmode): Remove.
7016 (sse_movhlps): Merge with *avx_movhlps.
7017 (sse_movlhps): Merge with *avx_movlhps.
7018 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7019 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7020 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7021 (sse_loadhps): Merge with *avx_loadhps.
7022 (sse_storelps): Merge with *avx_storelps.
7023 (sse_loadlps): Merge with *avx_loadlps.
7024 (sse_movss): Merge with *avx_movss.
7025 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7026 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7027 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7028 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7029 (vec_set<mode>_0): Ditto.
7030 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7031 (sse4_1_insertps): Merge with *avx_insertps.
7032 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7033 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7034 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7035 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7036 (sse2_storehpd): Merge with *avx_storehpd.
7037 (sse2_loadhpd): Merge with *avx_loadhpd.
7038 (sse2_loadlpd): Merge with *avx_loadlpd.
7039 (sse2_movsd): Merge with *avx_movsd.
7040 (*vec_concatv2df): Merge with *vec_concatv2df.
7042 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7045 * combine.c (combine_instructions): Add last_combined_insn,
7046 update it if insn is after it, pass it to all try_combine calls.
7047 (try_combine): Add last_combined_insn parameter, pass it instead of
7048 i3 to propagate_for_debug.
7050 2011-04-07 Nick Clifton <nickc@redhat.com>
7052 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7053 to handle MDR <-> data register transfers.
7054 (movhi_internal): Likewise.
7056 2011-04-07 Alan Modra <amodra@gmail.com>
7058 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7059 previous stack info.
7061 2011-04-07 Tom de Vries <tom@codesourcery.com>
7064 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7065 flow_find_cross_jump. Swap variables to implement backward replacement.
7066 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7068 2011-04-07 Tom de Vries <tom@codesourcery.com>
7071 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7072 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7074 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7075 src1 or src2. Redirect edges to the last basic block. Update
7076 frequency and count on multiple basic blocks in case of fallthru.
7078 2011-04-07 Tom de Vries <tom@codesourcery.com>
7081 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7083 (old_insns_match_p): Change return type. Replace return false/true
7084 with return dir_none/dir_both. Use can_replace_by.
7085 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7086 direction from dir_p. Register replacement direction in dir, last_dir
7087 and afterlast_dir. Handle new return type of old_insns_match_p using
7088 merge_dir. Return replacement direction in dir_p.
7089 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7090 return type of old_insns_match_p.
7091 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7092 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7093 flow_find_cross_jump.
7094 * basic-block.h (enum replace_direction): New type.
7095 (flow_find_cross_jump): Add parameter to declaration.
7097 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7099 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7100 (AVXMODEDCVTPS2DQ): Ditto.
7101 (VEC_FLOAT_MODE): Ditto.
7102 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7103 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7104 (<any_logic:code><mode>3): Use VF mode iterator.
7105 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7106 Use VF mode iterator.
7107 (copysign<mode>3): Use VF mode iterator.
7108 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7109 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7110 (*<any_logic:code><MODEF:mode>3): Merge with
7111 *avx_<any_logic:code><MODEF:mode>3.
7112 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7113 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7114 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7115 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7116 (sse2_cvtdq2ps): Use %v modifier.
7117 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7118 (avx_cvtps2dq<avxmodesuffix>): Remove.
7119 (sse2_cvtps2dq): Use %v modifier.
7120 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7121 (avx_cvttps2dq<avxmodesuffix>): Remove.
7122 (sse2_cvttps2dq): Use %v modifier.
7123 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7124 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7125 (sse2_cvtsd2siq): Fix insn template.
7126 (sse2_cvtsd2siq_2): Ditto.
7127 (sse2_cvttsd2siq): Ditto.
7128 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7129 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7131 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7133 * gcov-io.c: Use GCC Runtime Library Exception.
7135 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7138 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7139 as base_reg whatever register reg has been eliminated to, instead
7140 of hardcoding STACK_POINTER_REGNUM.
7142 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7144 * doc/tm.texi.in: Document C target hooks as separate from general
7146 * doc/tm.texi: Regenerate.
7147 * genhooks.c (struct hook_desc): Add docname field.
7148 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
7150 (hook_array): Include c-target.def.
7151 (emit_documentation): Use docname field in output.
7152 (emit_init_macros): Take docname argument. Only emit definitions
7153 for hooks matching docname.
7154 (main): Expect additional arguments in all cases. Pass argument
7155 to emit_init_macros.
7156 * target.def: Move initial macro definitions and comments to
7157 target-hooks-macros.h.
7158 (gcc_targetcm): Move to c-family/c-target.def.
7159 * target.h (targetcm): Move declaration to c-family/c-target.h.
7160 * targhooks.c (default_handle_c_option): Move to
7162 * targhooks.h (default_handle_c_option): Move declaration to
7163 c-family/c-common.h.
7164 * target-hooks-macros.h: New file.
7165 * config.gcc (target_has_targetcm): Define and use to add to
7166 c_target_objs and cxx_target_objs.
7167 * config/default-c.c: New file.
7168 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7169 of target.h and target-def.h.
7170 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7171 (darwin_objc_construct_string, darwin_cfstring_ref_p,
7172 darwin_check_cfstring_format_arg): Make static.
7173 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7174 TARGET_STRING_OBJECT_REF_TYPE_P,
7175 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7176 * config/darwin-protos.h (darwin_objc_construct_string,
7177 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7179 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7180 TARGET_STRING_OBJECT_REF_TYPE_P,
7181 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7182 * config/t-darwin (darwin-c.o): Update dependencies.
7183 * system.h (TARGET_HAS_TARGETCM): Poison.
7184 * Makefile.in (TARGET_H): Update.
7185 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7186 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7187 (default-c.o): New target.
7188 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7189 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7190 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
7192 (build/genhooks.o): Update dependencies.
7194 2011-04-06 Richard Guenther <rguenther@suse.de>
7196 * ipa-inline.c (enum inlining_mode): Remove.
7197 (cgraph_flatten): Use some other token.
7198 (cgraph_edge_early_inlinable_p): New function, split out from ...
7199 (cgraph_perform_always_inlining): New function, split out from ...
7200 (cgraph_decide_inlining_incrementally): ... here.
7201 (cgraph_mark_inline_edge): Adjust.
7202 (cgraph_early_inlining): Re-structure.
7203 (pass_early_inline): Require SSA form.
7205 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
7206 Julian Brown <julian@codesourcery.com>
7207 Mark Shinwell <shinwell@codesourcery.com>
7209 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7210 LO_REGS only for Thumb-1.
7211 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7212 be used in short instructions when optimising for size on Thumb-2.
7214 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7216 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7217 associated with user returns to be preserved.
7219 2011-04-06 Tristan Gingold <gingold@adacore.com>
7221 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7222 symbol_queue_size, DBXOUT_DECR_NESTING,
7223 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7224 if XCOFF_DEBUGGING_INFO.
7226 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7228 * config/i386/i386.md (attribute isa): New.
7229 (attribute enabled): New.
7230 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7231 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7232 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7233 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7234 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7235 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7236 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7237 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7239 * config/i386/sse.md (VF): New mode iterator.
7243 (SSEMODEF4): Remove.
7244 (attribute sse): Handle V8SF and V4DF modes.
7245 (<absneg:code><mode>2): Use VF mode iterator.
7246 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
7248 (<plusminus_insn><mode>3): Use VF mode iterator.
7249 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7250 Use VF mode iterator.
7251 (<sse>_vm<plusminus_insn><mode>3): Merge with
7252 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
7253 (mul<mode>3): Use VF mode iterator.
7254 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
7255 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
7257 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7258 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7259 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
7260 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
7262 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7263 Use VF1 mode iterator.
7264 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7265 (sqrt<VF2:mode>2): New expander.
7266 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7267 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7268 and sqrtv2df2. Use VF mode iterator.
7269 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
7271 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7272 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7273 Use VF1 mode iterator.
7274 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7275 (<smaxmin:code><mode>3): Use VF mode iterator.
7276 (*<smaxmin:code><mode>3_finite): Merge with
7277 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
7278 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7279 (<sse>_vm<smaxmin:code><mode>2): Merge with
7280 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
7281 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
7283 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
7285 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7286 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7287 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7288 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7289 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
7291 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7292 Use VF_128 mode iterator.
7293 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
7295 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
7296 VF_128 mode iterator.
7297 (vcond<mode>): Use VF mode iterator.
7298 * config/i386/predicates.md (sse_comparison_operator): Merge with
7299 avx_comparison_float_operator. Do not declare as special_predicate.
7300 * config/i386/i386.c (struct builtin_description): Update for renamed
7302 (ix86_expand_args_builtin): Ditto.
7303 (ix86_expand_sse_compare_mask): Ditto.
7305 2011-04-06 Richard Guenther <rguenther@suse.de>
7307 * tree-inline.c (estimate_num_insns): For calls simply account
7308 for all passed arguments and a used return value.
7310 2011-04-06 Richard Guenther <rguenther@suse.de>
7312 PR tree-optimization/47663
7313 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7314 call_stmt_time fields.
7315 (cgraph_edge_inlinable_p): Declare.
7316 (cgraph_edge_recursive_p): New inline function.
7317 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7318 (cgraph_clone_edge): Copy it.
7319 * ipa-inline.c (cgraph_estimate_edge_time): New function.
7320 Account for call stmt time.
7321 (cgraph_estimate_time_after_inlining): Take edge argument.
7322 (cgraph_estimate_edge_growth): Account call stmt size.
7323 (cgraph_estimate_size_after_inlining): Take edge argument.
7324 (cgraph_mark_inline_edge): Adjust.
7325 (cgraph_check_inline_limits): Likewise.
7326 (cgraph_recursive_inlining_p): Remove.
7327 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7328 (cgraph_decide_recursive_inlining): Take edge argument and
7330 (cgraph_decide_inlining_of_small_functions): Do not avoid
7331 diags for recursive inlining here.
7332 (cgraph_flatten): Adjust.
7333 (cgraph_decide_inlining_incrementally): Likewise.
7334 (estimate_function_body_sizes): Remove call cost handling.
7335 (compute_inline_parameters): Initialize caller edge call costs.
7336 (cgraph_estimate_edge_growth): New function.
7337 (cgraph_estimate_growth): Use it.
7338 (cgraph_edge_badness): Likewise.
7339 (cgraph_check_inline_limits): Take an edge argument.
7340 (cgraph_decide_inlining_of_small_functions): Adjust.
7341 (cgraph_decide_inlining): Likewise.
7342 * tree-inline.c (estimate_num_insns): Only account for call
7343 return value if it is used.
7344 (expand_call_inline): Avoid diagnostics on recursive inline
7346 * lto-cgraph.c (lto_output_edge): Output edge call costs.
7347 (input_edge): Input edge call costs.
7349 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7351 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7353 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7355 * doc/invoke.texi (Spec Files): Fix typo.
7357 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7359 * profile.c (branch_prob): Move declaration of local variable. Remove
7360 obsolete ??? comment. Expand the location explicitly instead of using
7361 the LOCATION_FILE and LOCATION_LINE macros.
7363 2011-04-06 Wei Guozhi <carrot@google.com>
7366 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7367 (arm_cond_branch): Likewise.
7368 (arm_cond_branch_reversed): Likewise.
7369 (arm_jump): Likewise.
7370 (push_multi): Likewise.
7371 * config/arm/constraints.md (Py): New constraint.
7373 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7376 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7378 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7379 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7380 #ifdef DBX_DEBUGGING_INFO.
7382 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
7385 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7386 if old and new states differ.
7388 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7390 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7391 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7392 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7393 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7394 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7396 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7397 ColdFire options to -mcpu= options.
7399 2011-04-05 Jeff Law <law@redhat.com>
7401 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7402 check if BB is a successor of LOOP->header and return
7403 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7405 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7407 * cprop.c (struct reg_use): Remove.
7408 (reg_use_table): Make an array of RTX.
7409 (find_used_regs, constprop_register, local_cprop_pass,
7410 bypass_block): Simplify users of reg_use_table.
7411 (cprop_insn): Likewise. Iterate if copy propagation succeeded
7412 on one of the uses found by find_used_regs.
7414 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7417 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7420 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7422 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7424 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7426 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7429 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7431 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7433 * combine.c: Include obstack.h.
7434 (struct insn_link): Define.
7435 (uid_log_links): Adjust type.
7436 (FOR_EACH_LOG_LINK): New macro.
7437 (insn_link_obstack): Declare.
7438 (alloc_insn_link): Define.
7439 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
7440 type of link variables.
7441 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7442 (try_combine, record_promoted_values, distribute_notes): Likewise.
7443 (distribute_links): Likewise. Tweak prototype.
7444 (clear_log_links): Delete.
7445 (adjust_for_new_dest): Call alloc_insn_link.
7446 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7448 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7450 * gcse.c (modify_mem_list): Convert to an array of VECs.
7451 (canon_modify_mem_list, compute_transp): Tweak formatting.
7452 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
7453 (load_killed_in_block_p): Likewise.
7454 (record_last_mem_set_info): Likewise.
7455 (clear_modify_mem_tables): Likewise.
7457 2011-04-05 Tom de Vries <tom@codesourcery.com>
7460 * function.c (emit_use_return_register_into_block): Only define if
7463 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
7465 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7467 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7469 * config/rx/rx-opts.h: New.
7470 * config/rx/rx.c (rx_cpu_type): Remove.
7471 (rx_handle_option): Don't assert that global structures are in
7472 use. Access variables via opts pointer. Defer most handling of
7473 OPT_mint_register_. Use error_at.
7474 (rx_option_override): Handle deferred OPT_mint_register_ here.
7475 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7476 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7477 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7478 (rx_cpu_types): New Enum and EnumValue entries.
7479 (mint-register=): Use Defer and use Var accordingly.
7481 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7483 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7484 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7485 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7487 (debug_free_queue, debug_nesting, symbol_queue_index):
7489 * dbxout.c: ...to here. Make static.
7491 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7493 * gcse.c (modify_pair): Define. Define a VEC of it.
7494 (canon_modify_mem_list): Convert to an array of VECs.
7495 (free_insn_expr_list_list): Delete.
7496 (clear_modify_mem_tables): Call VEC_free instead.
7497 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7498 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7499 (canon_list_insert, compute_transp): Likewise.
7501 2011-04-05 Tom de Vries <tom@codesourcery.com>
7504 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7507 2011-04-05 Tom de Vries <tom@codesourcery.com>
7510 * function.c (emit_use_return_register_into_block): New function.
7511 (thread_prologue_and_epilogue_insns): Use
7512 emit_use_return_register_into_block.
7514 2011-04-05 Tom de Vries <tom@codesourcery.com>
7517 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7520 2011-04-05 Tom de Vries <tom@codesourcery.com>
7522 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7524 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
7526 * config/arm/arm.md (define_constants for unspec): Replace with
7528 (define_constants for unspecv): Replace with define_c_enum.
7529 * config/arm/neon.md (define_constants for unspec): Replace with
7532 2011-04-04 Richard Henderson <rth@redhat.com>
7535 * dwarf2out.c (output_line_info): Always emit line info from
7536 at least one section.
7537 (dwarf2out_init): Create text_section_line_info here ...
7538 (set_cur_line_info_table): ... not here.
7540 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
7543 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
7546 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
7548 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
7550 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
7551 (expr_equiv_p): Remove.
7552 (insert_set_in_table): Look at <dest, src> pair instead of expr.
7553 (hash_scan_set): Update call to insert_set_in_table.
7554 (dump_hash_table): Dump <dest, src> pair.
7555 (lookup_set): Simplify. Lookup <dest, src> pair.
7556 (compute_transp): Remove, fold heavily simplified code into...
7557 (compute_local_properties): ...here. Expect COMP and TRANSP
7559 (find_avail_set): Take set directly from struct expr.
7560 (find_bypass-set): Likewise.
7561 (bypass_block): Likewise.
7562 (cprop_insn): Likewise. Remove redundant INSN_P test.
7564 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
7565 checks on form of COND from find_implicit_sets to here.
7566 (find_implicit_sets): Cleanup control flow. Split critical edges
7567 if it exposes implicit sets. Allocate/resize implicit_sets as
7569 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
7570 changed something. Run df_analyze after find_implicit_sets if any
7571 edges were split. Do not allocate implicit_sets here.
7573 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
7574 (gcse_obstack): Renamed to cprop_obstack.
7575 (GNEW, GNEWVEC, GNEWVAR): Remove.
7577 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7578 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7579 (gcse_alloc): Likewise, and rename to cprop_alloc.
7580 (alloc_gcse_men, free_gcse_mem): Remove.
7581 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7582 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7583 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7585 * cprop.c (oprs_not_set_p): Remove.
7586 (mark_set, mark_clobber): Remove.
7587 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7588 (reg_not_set_p): New function.
7589 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7590 (cprop_insn): Likewise.
7591 (cprop_jump): Use FOR_EACH_EDGE.
7593 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
7596 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7597 (rank_for_schedule): Use scheduled_insns vector instead of
7598 last_scheduled_insn.
7599 (ok_for_early_queue_removal): Likewise.
7600 (queue_to_ready): Search forward in nonscheduled_insns_begin if
7602 (choose_ready): Likewise.
7603 (commit_schedule): Use VEC_iterate.
7604 (schedule_block): Initialize nonscheduled_insns_begin. If we have
7605 a dbg_cnt, use it and ensure the first insn is in the ready list.
7606 (haifa_sched_init): Allocate scheduled_insns.
7607 (sched_extend_ready_list): Don't allocate it; reserve space.
7608 (haifa_sched_finish): Free it.
7610 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7612 * optc-gen.awk: Always remove type from Variable entry before
7613 recording in var_seen.
7615 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
7617 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7618 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7619 call to tidy_fallthru_edges.
7621 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7623 * doc/options.texi (ToLower): Document.
7624 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7625 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7626 * opts.h (cl_option): Add cl_tolower field.
7627 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7628 arguments with lowercase strings.
7629 * config/rx/rx.opt (mcpu=): Add ToLower.
7630 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7633 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7635 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7637 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7639 * config/vax/vax.c: Include reload.h.
7641 2011-04-04 Anatoly Sokolov <aesok@post.ru>
7643 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7644 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7645 (sparc_preferred_reload_class): New function.
7647 2011-04-04 Jakub Jelinek <jakub@redhat.com>
7650 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7651 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7653 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
7655 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7656 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7658 2011-04-03 Anatoly Sokolov <aesok@post.ru>
7660 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7661 (ASM_OUTPUT_ALIGNED_BSS): Define.
7663 2011-04-03 Michael Matz <matz@suse.de>
7665 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7666 and next_slot members.
7667 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7668 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7669 (lto_streamer_cache_append): Declare.
7670 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7671 unsigned index, remove offset parameter, ensure that we append
7672 or update existing entries.
7673 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7674 parameter, update next_slot for append.
7675 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7677 (lto_streamer_cache_insert_at): Likewise.
7678 (lto_streamer_cache_append): New function.
7679 (lto_streamer_cache_lookup): Use unsigned index.
7680 (lto_streamer_cache_get): Likewise.
7681 (lto_record_common_node): Don't test tree_node_can_be_shared.
7682 (preload_common_node): Adjust call to lto_streamer_cache_insert.
7683 (lto_streamer_cache_delete): Don't free offsets member.
7684 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7685 (lto_output_string_with_length): Use lto_output_data_stream.
7686 (lto_output_tree_header): Remove ix parameter, don't write it.
7687 (lto_output_builtin_tree): Likewise.
7688 (lto_write_tree): Adjust callers to above, don't track and write
7689 offset, write unsigned index.
7690 (output_unreferenced_globals): Don't emit all global vars.
7691 (write_global_references): Use unsigned indices.
7692 (lto_output_decl_state_refs): Likewise.
7693 (write_symbol): Likewise.
7694 * lto-streamer-in.c (lto_input_chain): Move earlier.
7695 (input_function): Use unsigned index.
7696 (input_alias_pairs): Don't read and then ignore all global vars.
7697 (lto_materialize_tree): Remove ix_p parameter, don't read index,
7698 don't pass it back, use lto_streamer_cache_append.
7699 (lto_register_var_decl_in_symtab): Use unsigned index.
7700 (lto_register_function_decl_in_symtab): Likewise.
7701 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7703 (lto_get_builtin_tree): Don't read index, use
7704 lto_streamer_cache_append.
7705 (lto_read_tree): Adjust call to lto_materialize_tree.
7707 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7708 don't use function calls in arguments to MIN.
7710 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7713 * gimple.c (gimple_type_leader_entry): Mark deletable.
7715 2011-04-03 Alan Modra <amodra@gmail.com>
7717 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7719 2011-04-03 Michael Matz <matz@suse.de>
7721 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7723 * tree.h (tree_decl_non_common.vindex): Adjust comment.
7725 2011-04-03 Michael Matz <matz@suse.de>
7727 * cgraphbuild.c (record_reference): Canonicalize constructor values.
7728 * gimple-fold.c (canonicalize_constructor_val): Accept being called
7729 without function context.
7730 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7731 current_function_decl and cfun.
7733 2011-04-03 Michael Matz <matz@suse.de>
7735 * tree.c (decl_init_priority_insert): Don't create entry for
7737 (decl_fini_priority_insert): Ditto.
7738 (fields_compatible_p, find_compatible_field): Remove.
7739 * tree.h (fields_compatible_p, find_compatible_field): Remove.
7740 * gimple.c (gimple_compare_field_offset): Adjust block comment.
7742 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
7744 * combine.c (try_combine): Remove useless local variable.
7746 2011-04-03 Richard Guenther <rguenther@suse.de>
7747 Ira Rosen <ira.rosen@linaro.org>
7749 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7750 non-variable offsets and compare the remaining bases of the two
7751 accesses instead of looking for exact same data-ref.
7753 2011-04-02 Kai Tietz <ktietz@redhat.com>
7756 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7758 * i386.c (ix86_is_msabi_thiscall): New helper function.
7759 (ix86_is_type_thiscall): New helper function.
7760 (ix86_comp_type_attributes): Handle thiscall for method-functions
7762 (init_cumulative_args): Likewise.
7763 (find_drap_reg): Likewise.
7764 (ix86_static_chain): Likewise.
7765 (x86_this_parameter): Likewise.
7766 (x86_output_mi_thunk): Likewise.
7768 2011-04-01 Olivier Hainque <hainque@adacore.com>
7769 Nicolas Setton <setton@adacore.com>
7770 Eric Botcazou <ebotcazou@adacore.com>
7772 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7773 (add_gnat_descriptive_type_attribute): New function.
7774 (gen_array_type_die): Call it.
7775 (gen_enumeration_type_die): Likewise.
7776 (gen_struct_or_union_type_die): Likewise.
7777 (modified_type_die): Likewise.
7778 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
7779 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
7780 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
7782 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7785 * dwarf2out.c (resolve_addr): Don't call force_decl_die
7786 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
7789 2011-03-17 Richard Guenther <rguenther@suse.de>
7792 * lto-cgraph.c (input_overwrite_node): Clear the abstract
7793 origin for decls in other ltrans units.
7794 (input_varpool_node): Likewise.
7796 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7799 * expr.c (expand_assignment): Handle all possibilities
7800 if TO_RTX is CONCAT.
7801 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7802 (store_split_bit_field): If SUBREG_REG (op0) or
7803 op0 itself has smaller mode than word, return it
7804 for offset 0 and const0_rtx for out-of-bounds stores.
7805 If word is const0_rtx, skip it.
7807 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
7809 * config/h8300/h8300.c (print_operand_address): Rename to...
7810 (h8300_print_operand_address): ...this. Make static. Adjust comments.
7811 Call h8300_print_operand and h8300_print_operand_address instead of
7812 print_operand and print_operand_address. Declare.
7813 (print_operand): Renake to...
7814 (h8300_print_operand): ...this. Make static. Adjust comments.
7815 Call h8300_print_operand instead of print_operand. Declare.
7816 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7817 (h8300_register_move_cost): Likewise.
7818 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
7819 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
7820 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
7821 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
7822 * config/h8300/h8300-protos.h (print_operand): Delete.
7823 (print_operand_address): Delete.
7825 2011-04-01 Richard Henderson <rth@redhat.com>
7828 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
7829 in strict mode before dwarf4. Re-order tests to early out
7830 before switching sections.
7832 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
7834 * config/h8300/constraints.md: New file.
7835 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
7836 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
7837 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
7838 * config/h8300/predicates.md (bit_operand): Likewise.
7839 (incdec_operand): Use satisfies_constraint_M and
7840 satisfies_constraint_O. Don't use C code block.
7841 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
7842 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
7843 (compute_mov_length): Use satisfies_constraint_G.
7844 (fix_bit_operand): Use satisfies_constraint_U.
7845 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
7846 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
7847 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
7848 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
7849 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
7850 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
7851 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7852 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
7853 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
7854 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
7855 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
7856 (EXTRA_MEMORY_CONSTRAINT): Delete.
7858 2011-04-01 Andrew Pinski <pinskia@gmail.com>
7859 Michael Meissner <meissner@linux.vnet.ibm.com>
7862 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
7863 operands, as per the specifications.
7865 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
7866 (vec_extract_evenv4sf): Ditto.
7867 (vec_extract_evenv8hi): Ditto.
7868 (vec_extract_evenv16qi): Ditto.
7869 (vec_extract_oddv4si): Ditto.
7871 2011-03-31 Mark Wielaard <mjw@redhat.com>
7873 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
7874 high_pc attribute if the CU has no associated code. Only output
7875 DW_AT_entry_pc for CU if not generating strict dwarf and
7878 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
7880 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
7881 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
7883 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7884 * final.c (final_start_function): Call the new function rather
7885 than using a NULL argument for dwarf2out_frame_debug.
7887 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
7888 that contains the prologue.
7890 * haifa-sched.c (queue_insn): New arg REASON. All callers
7891 changed. Print it in debugging output.
7893 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7895 * sched-ebb.c (begin_schedule_ready): Remove second argument.
7896 Split most of the code into...
7897 (begin_move_insn): ... here. New function.
7898 (ebb_sched_info): Add a pointer to it.
7899 * haifa-sched.c (scheduled_insns): New static variable.
7900 (sched_extend_ready_list): Allocate it.
7901 (schedule_block): Use it to record the order of scheduled insns.
7902 Perform RTL changes to move insns only after all scheduling
7903 decisions have been made.
7904 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7905 begin_move_insn field.
7906 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7907 * sched-int.h (struct haifa_sched_info): Remove second argument
7908 from begin_schedule_ready hook. Add new member begin_move_insn.
7909 * sched-rgn.c (begin_schedule_ready): Remove second argument.
7910 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7912 * haifa-sched.c (prune_ready_list): New function, broken out of
7914 (schedule_block): Use it.
7916 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7918 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7920 2011-04-01 Kai Tietz <ktietz@redhat.com>
7922 * config.gcc (*-*-mingw*): Allow as option the
7923 posix threading model.
7924 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
7925 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7927 (CPP_SPEC): Add pthread/no-pthread handling.
7928 (LIB_SPEC): Likewise.
7929 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7930 (LIB_SPEC): Likewise.
7931 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7932 flag to pass -pthread option for shared libgcc build.
7933 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7934 for shared libgcc build.
7935 * config/i386/t-mingw-pthread: New file.
7936 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7937 New define to enable use of library pthread by default.
7938 * config/i386/mingw.opt (pthread): New driver option.
7939 (no-pthread): New driver option.
7940 * config/i386/cygming.opt: Make sure trailing empty line is retained.
7941 * config/i386/mingw-w64.opt: Likewise.
7943 2011-04-01 Gary Funck <gary@intrepid.com>
7945 * c-decl.c (grokdeclarator): Fix formatting.
7947 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7949 * expr.c (emit_block_move_via_movmem): Use n_generator_args
7950 instead of n_operands.
7951 (set_storage_via_setmem): Likewise.
7952 * optabs.c (maybe_gen_insn): Likewise.
7953 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7954 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7955 (mips_expand_builtin_direct): Likewise.
7956 * config/spu/spu.c (expand_builtin_args): Likewise.
7958 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7960 * recog.h (insn_data_d): Add n_generator_args.
7961 * genoutput.c (data): Likewise.
7962 (output_insn_data): Print it.
7963 (max_opno, num_dups): Delete.
7964 (scan_operands): Just fill in "d->operand[...]".
7965 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7967 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7969 * gensupport.h (pattern_stats): New structure.
7970 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7971 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7972 (max_operand_1, max_operand_vec): Delete.
7973 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7975 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
7977 * emit-rtl.c (emit_pattern_after_setloc): New function.
7978 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7979 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7980 (emit_pattern_after): New function.
7981 (emit_insn_after, emit_jump_insn_after): Call it.
7982 (emit_call_insn_after, emit_debug_insn_after): Likewise.
7983 (emit_pattern_before_setloc): New function.
7984 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7985 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7987 (emit_pattern_before): New function.
7988 (emit_insn_before, emit_jump_insn_before): Call it.
7989 (emit_call_insn_before, emit_debug_insn_before): Likewise.
7991 2011-03-31 Richard Henderson <rth@redhat.com>
7993 * dwarf2out.c (dw_separate_line_info_ref): Remove.
7994 (dw_separate_line_info_entry): Remove.
7995 (enum dw_line_info_opcode): New.
7996 (dw_line_info_entry): Use it.
7997 (dw_line_info_table, dw_line_info_table_p): New.
7998 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7999 (line_info_table, line_info_label_num): Remove.
8000 (line_info_table_in_use): Remove.
8001 (separate_line_info_table): Remove.
8002 (separate_line_info_table_allocated): Remove.
8003 (separate_line_info_table_in_use): Remove.
8004 (LINE_INFO_TABLE_INCREMENT): Remove.
8005 (line_info_label_num): New.
8006 (cur_line_info_table): New.
8007 (text_section_line_info, cold_text_section_line_info): New.
8008 (separate_line_info): New.
8009 (SEPARATE_LINE_CODE_LABEL): Remove.
8010 (print_dwarf_line_table): Remove.
8011 (debug_dwarf): Don't dump it.
8012 (output_one_line_info_table): New.
8013 (output_line_info): Use it.
8014 (new_line_info_table): New.
8015 (set_cur_line_info_table): New.
8016 (dwarf2out_switch_text_section): Use it.
8017 (dwarf2out_begin_function): Likewise.
8018 (push_dw_line_info_entry): New.
8019 (dwarf2out_source_line): Rewrite for new line info tables.
8020 (dwarf2out_init): Remove dead initailizations.
8022 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8024 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8026 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8027 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8028 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8029 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8030 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8031 * opt-functions.awk (flag_init, switch_bit_fields): New.
8032 (switch_flags): Don't handle flags moved to bit-fields. Don't
8033 generate CL_MISSING_OK or CL_SAVE.
8034 * optc-gen.awk: Update to generate bit-field output as well as
8036 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8037 bit-field instead of CL_REJECT_DRIVER flag.
8038 * opts-common.c (generate_canonical_option,
8039 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8040 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8041 instead of CL_REJECT_NEGATIVE flag.
8042 * toplev.c (print_switch_values): Use cl_report bit-field instead
8045 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8047 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8048 a zero minimum index only if it is redundant.
8050 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8052 PR rtl-optimization/48381
8053 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8054 instead of ira_class_hard_reg_index for calculating conflicting
8057 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8059 * cprop.c: Clean up hash table building.
8060 (reg_avail_info): Remove.
8061 (oprs_available_p): Remove.
8062 (record_last_reg_set_info): Remove.
8063 (record_last_set_info): Remove.
8064 (reg_available_p): New function.
8065 (gcse_constant_p): Do not treat unfolded conditions as constants.
8066 (make_set_regs_unavailable): New function.
8067 (hash_scan_set): Simplify with new reg_available_p.
8068 (compute_hash_table_work): Traverse insns stream only once.
8069 Do not compute reg_avail_info. Traverse insns in reverse order.
8070 Record implicit sets after recording explicit sets from the block.
8072 2011-03-31 Michael Matz <matz@suse.de>
8074 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8076 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8078 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8079 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8080 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8081 (h8300_mode_dependent_address_p): New function.
8082 (h8300_get_index): Make static.
8084 2011-03-31 Jeff Law <law@redhat.com>
8086 * reload1.c (elimination_effects): Fix typo in recent change.
8088 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8089 typo potentially leading to null pointer dereference.
8091 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8092 (setup_save_areas): Corresponding changes to avoid useless
8095 * jump.c (reversed_comparison_code_parts): Avoid successive return
8096 statements when REVERSE_CONDITION is defined.
8098 * expr.c (expand_assignment): Avoid useless assignments.
8099 (expand_expr_real_1): Likewise.
8100 (expand_expr_real_2): Avoid useless statements.
8102 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8104 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8106 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8109 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8111 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8114 * doc/tm.texi.in (TARGET_VERSION): Remove.
8115 * doc/tm.texi: Regenerate.
8116 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8117 * collect2.c (main): Don't use TARGET_VERSION.
8118 * mips-tdump.c (main): Don't use TARGET_VERSION.
8119 * mips-tfile.c (main): Don't use TARGET_VERSION.
8120 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8121 * config/rs6000/vxworksae.h: Remove.
8122 * config/alpha/alpha.h (TARGET_VERSION): Remove.
8123 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8124 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8125 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8126 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8127 * config/arm/arm.h (TARGET_VERSION): Remove.
8128 * config/arm/coff.h (TARGET_VERSION): Remove.
8129 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8130 * config/arm/elf.h (TARGET_VERSION): Remove.
8131 * config/arm/freebsd.h (TARGET_VERSION): Remove.
8132 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8133 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8134 * config/arm/pe.h (TARGET_VERSION): Remove.
8135 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8136 * config/arm/semi.h (TARGET_VERSION): Remove.
8137 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8138 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8139 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8140 * config/avr/avr.h (TARGET_VERSION): Remove.
8141 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8142 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8143 * config/frv/frv.h (TARGET_VERSION): Remove.
8144 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8145 * config/i386/cygwin.h (TARGET_VERSION): Remove.
8146 * config/i386/darwin.h (TARGET_VERSION): Remove.
8147 * config/i386/darwin64.h (TARGET_VERSION): Remove.
8148 * config/i386/djgpp.h (TARGET_VERSION): Remove.
8149 * config/i386/freebsd.h (TARGET_VERSION): Remove.
8150 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8151 * config/i386/gnu.h (TARGET_VERSION): Remove.
8152 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8153 * config/i386/i386elf.h (TARGET_VERSION): Remove.
8154 * config/i386/linux.h (TARGET_VERSION): Remove.
8155 * config/i386/linux64.h (TARGET_VERSION): Remove.
8156 * config/i386/lynx.h (TARGET_VERSION): Remove.
8157 * config/i386/mingw32.h (TARGET_VERSION): Remove.
8158 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8159 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8160 * config/i386/netware.h (TARGET_VERSION): Remove.
8161 * config/i386/nto.h (TARGET_VERSION): Remove.
8162 * config/i386/openbsd.h (TARGET_VERSION): Remove.
8163 * config/i386/vxworks.h (TARGET_VERSION): Remove.
8164 * config/ia64/elf.h (TARGET_VERSION): Remove.
8165 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8166 * config/ia64/hpux.h (TARGET_VERSION): Remove.
8167 * config/ia64/linux.h (TARGET_VERSION): Remove.
8168 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8169 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8170 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8171 * config/lm32/lm32.h (TARGET_VERSION): Remove.
8172 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8173 * config/m32c/m32c.h (TARGET_VERSION): Remove.
8174 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8175 * config/m32r/m32r.h (TARGET_VERSION): Remove.
8176 * config/m68k/linux.h (TARGET_VERSION): Remove.
8177 * config/m68k/m68k.h (TARGET_VERSION): Remove.
8178 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8179 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8180 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8181 * config/mep/mep.h (TARGET_VERSION): Remove.
8182 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8183 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8184 * config/mips/iris6.h (MACHINE_TYPE): Remove.
8185 * config/mips/linux.h (TARGET_VERSION): Remove.
8186 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8187 * config/mips/vxworks.h (TARGET_VERSION): Remove.
8188 * config/mmix/mmix.h (TARGET_VERSION): Remove.
8189 * config/mn10300/linux.h (TARGET_VERSION): Remove.
8190 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8191 * config/pa/pa.h (TARGET_VERSION): Remove.
8192 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8193 * config/picochip/picochip.h (TARGET_VERSION): Remove.
8194 * config/rs6000/aix.h (TARGET_VERSION): Remove.
8195 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8196 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8197 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8198 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8199 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8200 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8201 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8202 * config/rs6000/linux.h (TARGET_VERSION): Remove.
8203 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8204 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8205 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8206 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8207 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8208 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8209 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8210 * config/s390/linux.h (TARGET_VERSION): Remove.
8211 * config/s390/s390.h (TARGET_VERSION): Remove.
8212 * config/s390/tpf.h (TARGET_VERSION): Remove.
8213 * config/score/score.h (TARGET_VERSION): Remove.
8214 * config/sh/linux.h (TARGET_VERSION): Remove.
8215 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8216 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8217 * config/sh/sh.h (TARGET_VERSION): Remove.
8218 * config/sh/sh64.h (TARGET_VERSION): Remove.
8219 * config/sh/superh.h (TARGET_VERSION): Remove.
8220 * config/sh/vxworks.h (TARGET_VERSION): Remove.
8221 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8222 * config/sparc/linux.h (TARGET_VERSION): Remove.
8223 * config/sparc/linux64.h (TARGET_VERSION): Remove.
8224 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8225 TARGET_NAME32, TARGET_NAME): Remove.
8226 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8227 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8228 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8229 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8230 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8231 * config/spu/spu.h (TARGET_VERSION): Remove.
8232 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8233 * config/v850/v850.h (TARGET_VERSION): Remove.
8234 * config/vax/linux.h (TARGET_VERSION): Remove.
8235 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8236 * config/xtensa/elf.h (TARGET_VERSION): Remove.
8237 * config/xtensa/linux.h (TARGET_VERSION): Remove.
8239 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8242 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8243 frame-related from frame-unrelated adjustments to the stack pointer.
8245 2011-03-31 Jakub Jelinek <jakub@redhat.com>
8247 * common.opt (fdebug-types-section): Move earlier.
8248 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8250 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
8252 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8255 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
8257 * tree.h (CASE_CHAIN): Define.
8258 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8259 (gimple_redirect_edge_and_branch): Likewise.
8261 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8264 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8267 2011-03-30 Jeff Law <law@redhat.com>
8269 * PR bootstrap/48371
8270 * reload1.c (reload): Fix botch in last change.
8272 * reload.h (struct reload): Fix typo introduced in last change.
8274 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8276 * config/arm/arm.opt (mhard-float, msoft-float): Mark
8277 Undocumented. Remove help text.
8278 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8281 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8283 * doc/options.texi (NegativeAlias): Document.
8284 (Alias): Mention NegativeAlias.
8285 * opt-functions.awk: Handle NegativeAlias.
8286 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8287 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8288 * opts.h (CL_NEGATIVE_ALIAS): Define.
8289 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8290 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8292 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8294 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8295 mno-spe and mno-isel instead of mspe=no and -misel=no.
8297 2011-03-29 Mark Wielaard <mjw@redhat.com>
8299 * common.opt (fdebug-types-section): New flag.
8300 * doc/invoke.texi: Document new -fno-debug-types-section flag.
8301 * dwarf2out.c (use_debug_types): New define.
8302 (struct die_struct): Mark die_id with GTY desc use_debug_types.
8303 (print_die): Guard output of type unit signatures using
8305 (build_abbrev_table): Replace assert of dwarf_version >= 4
8306 with assert on use_debug_types.
8307 (size_of_die): Likewise.
8308 (unmark_dies): Likewise.
8309 (value_format): Decide AT_ref_external form on use_debug_types.
8310 (output_die): Replace dwarf_version version check guard with
8311 use_debug_types where appropriate.
8312 (modified_type_die): Likewise.
8313 (gen_reference_type_die): Likewise.
8314 (dwarf2out_start_source_file): Likewise.
8315 (dwarf2out_end_source_file): Likewise.
8316 (prune_unused_types_walk_attribs): Likewise.
8317 (dwarf2out_finish): Likewise.
8319 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8321 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8323 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8325 PR rtl-optimization/48332
8326 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8327 mode of input operand N and modeN to its actual mode.
8329 2011-03-30 Jeff Law <law@redhat.com>
8331 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8332 define accessor macro.
8333 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8334 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8335 (reg_equiv_init): Likewise.
8336 (reg_equivs_size): New variable.
8337 (reg_equiv_init_size): Remove.
8338 (allocate_initial_values): Move prototype to here from....
8339 * integrate.h (allocate_initial_values): Remove prototype.
8340 * integrate.c: Include reload.h.
8341 (allocate_initial_values): Corresponding changes.
8342 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8343 (fix_reg_equiv_init, no_equiv): Corresponding changes.
8344 (update_equiv_regs): Corresponding changes.
8345 (ira): Corresponding changes.
8346 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8347 (push_secondary_reload): Corresponding changes.
8348 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8349 (make_memloc, find_reloads_address): Corresponding changes.
8350 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8351 (find_reloads_address_1): Corresponding changes.
8352 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8353 (refers_to_regno_for_reload_p): Corresponding changes.
8354 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8355 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8356 * reload1.c: Include ggc.h.
8357 (grow_reg_equivs): New function.
8358 (replace_pseudos_in, reload): Corresponding changes.
8359 (calculate_needs_all_insns, alter_regs): Corresponding changes.
8360 (eliminate_regs_1, elimination_effects): Corresponding changes.
8361 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8362 (delete_output_reload): Likewise.
8363 * caller-save.c (mark_referenced_regs): Corresponding changes.
8364 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8365 * frv/predicates.md (frv_load_operand): Corresponding changes.
8366 * microblaze/microblaze.c (double_memory_operand): Corresponding
8368 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8369 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8370 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8371 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8372 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8374 * pa/pa.c (emit_move_sequence): Corresponding changes.
8375 * vax/vax.c (nonindexed_address_p): Corresponding changes.
8377 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8380 * config/arm/arm.c (coproc_secondary_reload_class): Handle
8381 structure modes. Don't check neon_vector_mem_operand for
8382 vector or structure modes.
8384 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8385 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8388 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8389 operand 1 and reshuffle the operands to match.
8390 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8392 2011-03-30 Christian Schüler <cschueler@gmx.de>
8395 * config/c.opt (F): Added 'Driver' to -F option.
8398 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8400 * config/darwin.opt: Added '-arch' option.
8402 2011-03-30 Nick Clifton <nickc@redhat.com>
8404 * config/rx/rx.md: Add peepholes and patterns to combine
8405 extending loads and simple arithmetic instructions.
8406 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8407 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8408 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8409 modes to use pre-decrement and post-increment addressing.
8410 (rx_is_restricted_memory_address): Add range checking of REG+INT
8412 (rx_print_operand): Add support for %Q. Fix handling of %Q.
8413 (rx_memory_move_cost): Adjust cost of stores.
8414 (rx_adjust_insn_length): New function.
8416 2011-03-30 Jakub Jelinek <jakub@redhat.com>
8419 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8420 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8421 matching arg00/arg01 types.
8423 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
8425 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8426 last_location to UNKNOWN_LOCATION.
8428 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
8431 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8434 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8435 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8438 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8440 (sparc_cpu): Likewise.
8441 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8444 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8448 PR rtl-optimization/48345
8449 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8450 hard regs for given mode from profitable regs when doing secondary
8453 2011-03-29 Jeff Law <law@redhat.com>
8456 * tree-ssa-threadupdate.c (struct redirection_data): Remove
8457 do_not_duplicate field.
8458 (lookup_redirection_data): Corresponding changes.
8459 (create_duplicates): Always create a template block.
8460 (redirect_edges): Remove code which reused the original block
8461 when it was going to become unreachable code.
8462 (thread_block): Don't set do_not_duplicate field.
8464 2011-03-29 Joseph Myers <joseph@codesourcery.com>
8466 * lto-opts.c (register_user_option_p, lto_register_user_option):
8467 Make type argument unsigned.
8468 * lto-streamer.h (lto_register_user_option): Make type argument
8470 * opth-gen.awk: Make CL_* macros unsigned.
8471 * opts-common.c (find_opt): Make lang_mask argument unsigned.
8472 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8473 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8474 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8475 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8476 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8477 (find_opt): Make lang_mask argument unsigned.
8479 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8481 PR rtl-optimization/48331
8482 PR rtl-optimization/48334
8483 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8484 for any used algorithm.
8486 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8488 * ira-conflicts.c (build_object_conflicts): Add unused attribute
8491 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
8493 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8494 (alpha_option_override): Don't set alpha_sr_alias_set.
8495 (emit_frame_store_1): Use gen_frame_mem rather than calling
8497 (alpha_expand_epilogue): Ditto.
8499 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
8501 PR tree-optimization/48290
8502 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8503 vectorization, check that relevant phis in the basic block after
8504 the inner loop are really inner loop's exit phis.
8506 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
8509 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
8510 (cached_dw_loc_list_def): New structure.
8511 (cached_dw_loc_list): New typedef.
8512 (cached_dw_loc_list_table): New variable.
8513 (cached_dw_loc_list_table_hash): New function.
8514 (cached_dw_loc_list_table_eq): Likewise.
8515 (add_location_or_const_value_attribute): Take a bool cache_p.
8516 Cache the list when the parameter is true.
8517 (gen_formal_parameter_die): Update caller.
8518 (gen_variable_die): Likewise.
8519 (dwarf2out_finish): Likewise.
8520 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8521 while generating debug info for the decl.
8522 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8523 (dwarf2out_init): Initialize cached_dw_loc_list_table.
8524 (resolve_addr): Cache the result of resolving a chain of
8527 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
8529 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
8530 conflict object hard regset nodes have intersecting hard reg sets.
8532 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
8533 after regstat_init_n_sets_and_refs.
8535 * ira.c: Add more comments at the top.
8536 (setup_stack_reg_pressure_class, setup_pressure_classes):
8537 Add comments how we compute the register pressure classes.
8538 (setup_allocno_and_important_classes): Add more comments.
8539 (setup_class_translate_array, reorder_important_classes)
8540 (setup_reg_class_relations): Add comments.
8542 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
8545 * ira-color.c: Add 2011 to the Copyright line.
8546 (assign_hard_reg): Add more comments.
8547 (improve_allocation): Ditto.
8549 * ira-costs.c: Add 2011 to the Copyright line.
8550 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
8552 (setup_regno_cost_classes_by_mode): Ditto.
8554 Initial patches from ira-improv branch:
8556 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8558 * ira-build.c (ira_create_object): Remove initialization of
8559 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
8560 (ira_create_allocno): Remove initialization of
8561 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
8562 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
8563 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8564 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
8565 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
8566 Initialize ALLOCNO_ADD_DATA.
8567 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
8568 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
8570 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
8571 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
8573 * ira.c (ira_reallocate): Remove.
8574 (setup_pressure_classes): Call
8575 ira_init_register_move_cost_if_necessary. Use
8576 ira_register_move_cost instead of ira_get_register_move_cost.
8577 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8578 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8580 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8581 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8582 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8583 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8584 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8585 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8587 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8588 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8589 (struct allocno_color_data): New.
8590 (allocno_color_data_t): New typedef.
8591 (allocno_color_data): New definition.
8592 (ALLOCNO_COLOR_DATA): New macro.
8593 (struct object_color_data): New.
8594 (object_color_data_t): New typedef.
8595 (object_color_data): New definition.
8596 (OBJECT_COLOR_DATA): New macro.
8597 (update_copy_costs, calculate_allocno_spill_cost): Call
8598 ira_init_register_move_cost_if_necessary. Use
8599 ira_register_move_cost instead of ira_get_register_move_cost.
8600 (move_spill_restore, update_curr_costs): Ditto.
8601 (allocno_spill_priority): Make it inline.
8602 (color_pass): Allocate and free allocno_color_dat and object_color_data.
8603 (struct coalesce_data, coalesce_data_t): New.
8604 (allocno_coalesce_data): New definition.
8605 (ALLOCNO_COALESCE_DATA): New macro.
8606 (merge_allocnos, coalesced_allocno_conflict_p): Use
8607 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8608 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8609 (coalesce_allocnos): Ditto.
8610 (setup_coalesced_allocno_costs_and_nums): Ditto.
8611 (collect_spilled_coalesced_allocnos): Ditto.
8612 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8613 (setup_slot_coalesced_allocno_live_ranges): Ditto.
8614 (coalesce_spill_slots): Ditto.
8615 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
8616 free allocno_coalesce_data.
8618 * ira-conflicts.c: Fix formatting.
8619 (process_regs_for_copy): Call
8620 ira_init_register_move_cost_if_necessary. Use
8621 ira_register_move_cost instead of ira_get_register_move_cost.
8622 (build_object_conflicts): Optimize.
8624 * ira-costs.c (record_reg_classes): Optimize. Call
8625 ira_init_register_move_cost_if_necessary. Use
8626 ira_register_move_cost, ira_may_move_in_cost, and
8627 ira_may_move_out_cost instead of ira_get_register_move_cost and
8628 ira_get_may_move_cost.
8629 (record_address_regs): Ditto.
8630 (scan_one_insn): Optimize.
8631 (find_costs_and_classes): Optimize.
8632 (process_bb_node_for_hard_reg_moves): Call
8633 ira_init_register_move_cost_if_necessary. Use
8634 ira_register_move_cost instead of ira_get_register_move_cost.
8636 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8637 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8638 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8639 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8641 (ira_initiate_emit_data, ira_finish_emit_data)
8642 (create_new_allocno): New functions.
8643 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8644 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8645 Use ira_register_move_cost instead of ira_get_register_move_cost.
8647 * ira-int.h: Fix some comments.
8648 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8649 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8650 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8651 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
8653 (struct ira_allocno): Make mode and aclass a bitfield. Move other
8654 bitfield after mode. Make hard_regno a short int. Make
8655 hard_regno short. Remove first_coalesced_allocno and
8656 next_coalesced_allocno. Move mem_optimized_dest_p,
8657 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8658 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
8659 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8660 temp, colorable_p. Add new member add_data.
8661 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8662 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8663 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8664 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8665 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8666 (ALLOCNO_ADD_DATA): New macro.
8667 (ira_emit_data_t): New typedef.
8668 (struct ira_emit_data): New. Move mem_optimized_dest_p,
8669 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8670 from struct ira_allocno.
8671 (ALLOCNO_EMIT_DATA): New macro.
8672 (ira_allocno_emit_data, allocno_emit_reg): New.
8673 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8674 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8675 (OBJECT_ADD_DATA): New macro.
8676 (ira_reallocate): Remove.
8677 (ira_initiate_emit_data, ira_finish_emit_data): New.
8678 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8679 (ira_init_register_move_cost_if_necessary): New.
8680 (ira_object_conflict_iter_next): Merge into
8681 ira_object_conflict_iter_cond.
8682 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8684 * ira-live.c (process_single_reg_class_operands): Call
8685 ira_init_register_move_cost_if_necessary. Use
8686 ira_register_move_cost instead of ira_get_register_move_cost.
8688 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8690 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8692 * ira-costs.c: Fix formatting.
8693 (cost_classes, cost_classes_num): Remove.
8694 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8695 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8696 (cost_classes_del, cost_classes_htab): New.
8697 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8698 (initiate_regno_cost_classes, setup_cost_classes): New.
8699 (setup_regno_cost_classes_by_aclass): New.
8700 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8701 (record_reg_classes): Use regno_cost_classes instead of
8702 cost_classes. Move checking opposite operand up.
8703 (record_address_regs): Use regno_cost_classes
8704 instead of cost_classes.
8705 (scan_one_insn): Ditto. Use always general register.
8706 (print_allocno_costs): Use regno_cost_classes instead of
8708 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
8709 (find_costs_and_classes): Set up cost classes for each registers.
8710 Use also their mode for this. Use regno_cost_classes instead of
8712 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8714 (free_ira_costs, ira_init_costs): Don't use cost_classes.
8715 (ira_costs, ira_set_pseudo_classes): Call
8716 initiate_regno_cost_classes and finish_regno_cost_classes.
8718 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
8720 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8722 * target.def (ira_cover_classes): Remove.
8724 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8726 * doc/tm.texi.in: Ditto.
8728 * ira-conflicts.c: Remove mentioning cover classes from the file.
8729 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
8730 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
8732 * targhooks.c (default_ira_cover_classes): Remove.
8734 * targhooks.h (default_ira_cover_classes): Ditto.
8736 * haifa-sched.c: Remove mentioning cover classes from the file.
8737 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8738 ira_pressure_classes and ira_pressure_classes_num instead of
8739 ira_reg_class_cover_size and ira_reg_class_cover. Use
8740 sched_regno_pressure_class instead of sched_regno_cover_class.
8741 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8742 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8744 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
8745 classes from the file.
8746 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8747 (struct object_hard_regs, struct object_hard_regs_node): New.
8748 (struct ira_object): New members profitable_hard_regs,
8749 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8750 (struct ira_allocno): Rename cover_class to aclass. Rename
8751 cover_class_cost and updated_cover_class_cost to class_cost and
8752 updated_class_cost. Remove splay_removed_p and
8753 left_conflict_size. Add new members colorable_p.
8754 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8755 (ALLOCNO_COLORABLE_P): New macro.
8756 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8757 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8758 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8759 (OBJECT_...): Rename parameter C to O.
8760 (OBJECT_PROFITABLE_HARD_REGS): New macro.
8761 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8762 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8763 (struct target_ira_int): New members x_ira_max_memory_move_cost,
8764 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8765 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8766 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8767 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
8768 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
8769 x_ira_reg_class_subunion.
8770 (ira_max_memory_move_cost, ira_max_register_move_cost)
8771 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8772 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8773 (ira_important_class_nums, ira_reg_class_superunion): New macros.
8774 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
8775 (ira_reg_class_union): Rename to ira_reg_class_subunion.
8776 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8777 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8778 (ira_tune_allocno_costs_and_cover_classes): Rename to
8779 ira_tune_allocno_costs.
8780 (ira_debug_hard_regs_forest): New.
8781 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
8782 (ira_object_conflict_iter_next): Fix comments.
8783 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
8784 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
8785 cover_class to aclass.
8786 (ira_allocate_and_accumulate_costs): Ditto.
8787 (ira_allocate_and_set_or_copy_costs): Ditto.
8789 * opts.c (decode_options): Remove ira_cover_class check.
8791 * ira-color.c: Remove mentioning cover classes from the file. Use
8792 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
8793 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
8794 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8795 (splay-tree.h): Remove include.
8796 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8797 before copy_freq_compare_func.
8798 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8799 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8801 (hard_regs_roots, hard_regs_node_vec): Ditto.
8802 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8803 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8804 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8805 (create_new_object_hard_regs_node): Ditto.
8806 (add_new_object_hard_regs_node_to_forest): Ditto.
8807 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8808 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8810 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8811 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8812 (remove_unused_object_hard_regs_nodes): Ditto.
8813 (enumerate_object_hard_regs_nodes): Ditto.
8814 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8815 (object_hard_regs_subnode_t): Ditto.
8816 (struct object_hard_regs_subnode): Ditto.
8817 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8818 (setup_object_hard_regs_subnode_index): Ditto.
8819 (get_object_hard_regs_subnodes_num): Ditto.
8820 (form_object_hard_regs_nodes_forest): Ditto.
8821 (finish_object_hard_regs_nodes_tree): Ditto.
8822 (finish_object_hard_regs_nodes_forest): Ditto.
8823 (allocnos_have_intersected_live_ranges_p): Rename to
8824 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8825 (pseudos_have_intersected_live_ranges_p): Rename to
8826 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8827 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
8828 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
8829 (update_copy_costs): Remove assert. Skip cost update if the hard
8830 reg does not belong the class.
8831 (assign_hard_reg): Process only profitable hard regs.
8832 (uncolorable_allocnos_num): Make it scalar.
8833 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8834 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
8835 and ira_reg_class_max_nregs.
8836 (bucket_allocno_compare_func): Check frequency first.
8837 (sort_bucket): Add compare function as a parameter.
8838 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
8839 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
8840 (push_allocno_to_stack): Rewrite for checking new allocno
8842 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
8843 (push_only_colorable): Pass new parameter to sort_bucket.
8844 (push_allocno_to_spill): Remove.
8845 (allocno_spill_priority_compare): Make it inline and rewrite.
8846 (splay_tree_allocate, splay_tree_free): Remove.
8847 (allocno_spill_sort_compare): New function.
8848 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
8849 build and use splay tree. Choose first allocno in uncolorable
8850 allocno bucket to spill. Remove setting spill cost.
8851 (all_conflicting_hard_regs): Remove.
8852 (setup_allocno_available_regs_num): Check only profitable hard
8853 regs. Print info about hard regs nodes.
8854 (setup_allocno_left_conflicts_size): Remove.
8855 (put_allocno_into_bucket): Don't call
8856 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
8857 (improve_allocation): New.
8858 (color_allocnos): Call setup_profitable_hard_regs,
8859 form_object_hard_regs_nodes_forest, improve_allocation,
8860 finish_object_hard_regs_nodes_forest. Setup spill cost.
8861 (print_loop_title): Use pressure classes.
8862 (color_allocnso): Ditto.
8863 (do_coloring): Remove allocation and freeing splay_tree_node_pool
8864 and allocnos_for_spilling.
8865 (ira_sort_regnos_for_alter_reg): Don't setup members
8866 {first,next}_coalesced_allocno.
8867 (color): Remove allocating and freeing removed_splay_allocno_vec.
8868 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
8869 prohibited_class_mode_regs.
8871 * ira-lives.c: Remove mentioning cover classes from the file. Fix
8873 (update_allocno_pressure_excess_length): Use pressure classes.
8874 (inc_register_pressure, dec_register_pressure): Check for pressure
8876 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
8877 pressure class. Use ira_reg_class_nregs instead of
8878 ira_reg_class_max_nregs.
8879 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
8880 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
8881 (single_reg_class): Use ira_reg_class_nregs instead of
8882 ira_reg_class_max_nregs.
8883 (process_bb_node_lives): Use pressure classes.
8885 * ira-emit.c: Remove mentioning cover classes from the file. Use
8886 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
8887 (change_loop): Use pressure classes.
8888 (modify_move_list): Call ira_set_allocno_class instead of
8889 ira_set_allocno_cover_class.
8891 * ira-build.c: Remove mentioning cover classes from the file. Use
8892 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
8893 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
8894 ALLOCNO_UPDATED_CLASS_COST instead of
8895 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8896 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8897 (ira_create_allocno): Remove initialization of
8898 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
8899 ALLOCNO_COLORABLE_P.
8900 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8901 Update conflict regs for the objects.
8902 (create_cap_allocno): Remove assert. Don't propagate
8903 ALLOCNO_AVAILABLE_REGS_NUM.
8904 (ira_free_allocno_costs): New function.
8905 (finish_allocno): Change a part of code into call of
8906 ira_free_allocno_costs.
8907 (low_pressure_loop_node_p): Use pressure classes.
8908 (object_range_compare_func): Don't compare classes.
8909 (setup_min_max_conflict_allocno_ids): Ditto.
8911 * loop-invariant.c: Remove mentioning cover classes from the file.
8912 Use ira_pressure_classes and ira_pressure_classes_num instead of
8913 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
8914 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8915 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8916 Use reg_allocno_class instead of reg_cover_class.
8917 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8918 STACK_REG_COVER_CLASS.
8919 (get_regno_cover_class): Rename to get_regno_pressure_class.
8920 (move_loop_invariants): Initialize and finalize regstat.
8922 * ira.c: Remove mentioning cover classes from the file. Add
8923 comments about coloring without cover classes. Use ALLOCNO_CLASS
8924 instead of ALLOCNO_COVER_CLASS. Fix formatting.
8925 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8926 setup_class_subset_and_memory_move_costs.
8927 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8928 (setup_cover_and_important_classes): Rename to
8929 setup_allocno_and_important_classes.
8930 (setup_class_translate_array): New.
8931 (setup_class_translate): Call it for allocno and pressure classes.
8932 (cover_class_order): Rename to allocno_class_order.
8933 (comp_reg_classes_func): Use ira_allocno_class_translate instead
8934 of ira_class_translate.
8935 (reorder_important_classes): Set up ira_important_class_nums.
8936 (setup_reg_class_relations): Set up ira_reg_class_superunion.
8937 (print_class_cover): Rename to print_classes. Add parameter.
8938 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8939 Print pressure classes too.
8940 (find_reg_class_closure): Rename to find_reg_classes. Don't call
8941 setup_reg_subclasses.
8942 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8943 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8944 (setup_prohibited_class_mode_regs): Use
8945 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8946 (clarify_prohibited_class_mode_regs): New function.
8947 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8948 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8949 (ira_init_once): Initialize them.
8950 (free_register_move_costs): Process them.
8951 (ira_init): Move calls of find_reg_classes and
8952 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8953 Call clarify_prohibited_class_mode_regs.
8954 (ira_no_alloc_reg): Remove.
8955 (too_high_register_pressure_p): Use pressure classes.
8957 * sched-deps.c: Remove mentioning cover classes from the file.
8958 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8959 ira_pressure_classes and ira_pressure_classes_num instead of
8960 ira_reg_class_cover_size and ira_reg_class_cover.
8961 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8962 sched_regno_pressure_class instead of sched_regno_cover_class.
8963 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
8964 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8966 * ira.h: Add 2010 to Copyright.
8967 (ira_no_alloc_reg): Remove external.
8968 (struct target_ira): Rename x_ira_hard_regno_cover_class,
8969 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8970 x_ira_class_translate to x_ira_hard_regno_allocno_class,
8971 x_ira_allocno_classes_num, x_ira_allocno_classes, and
8972 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
8973 x_ira_pressure_classes, x_ira_pressure_class_translate, and
8974 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
8975 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
8976 x_ira_no_alloc_regs.
8977 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8978 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8979 ira_allocno_classes_num and ira_allocno_classes.
8980 (ira_class_translate): Rename to ira_allocno_class_translate.
8981 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8982 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8983 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8984 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8985 (ira_no_alloc_regs): New.
8987 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
8988 classes from the file. Use ALLOCNO_CLASS instead of
8989 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
8990 ALLOCNO_COVER_CLASS_COST.
8991 (regno_cover_class): Rename to regno_aclass.
8992 (record_reg_classes): Use ira_reg_class_subunion instead of
8993 ira_reg_class_union.
8994 (record_address_regs): Check overflow.
8995 (scan_one_insn): Ditto.
8996 (print_allocno_costs): Print total mem cost fore regional allocation.
8997 (print_pseudo_costs): Use REG_N_REFS.
8998 (find_costs_and_classes): Use classes intersected with them on the
8999 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9000 ira_reg_class_union. Use ira_allocno_class_translate and
9001 regno_aclass instead of ira_class_translate and regno_cover_class.
9002 Modify code for finding regno_aclass. Setup preferred classes for
9004 (setup_allocno_cover_class_and_costs): Rename to
9005 setup_allocno_class_and_costs. Use regno_aclass instead of
9006 regno_cover_class. Use ira_set_allocno_class instead of
9007 ira_set_allocno_cover_class.
9008 (init_costs, finish_costs): Use regno_aclass instead of
9010 (ira_costs): Use setup_allocno_class_and_costs instead of
9011 setup_allocno_cover_class_and_costs.
9012 (ira_tune_allocno_costs_and_cover_classes): Rename to
9013 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9014 by processing objects. Use ira_reg_class_max_nregs instead of
9015 ira_reg_class_nregs.
9017 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9019 * sched-int.h: Remove mentioning cover classes from the file.
9020 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9022 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9023 classes from the file.
9024 (struct reg_pref): Rename coverclass into allocnoclass.
9025 (reg_cover_class): Rename to reg_allocno_class.
9027 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9029 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9031 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9033 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9035 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9037 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9039 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9041 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9043 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9045 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9047 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9048 (i386_ira_cover_classes): Ditto.
9050 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9052 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9054 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9056 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9058 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9060 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9062 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9063 (mips_ira_cover_classes): Ditto.
9065 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9067 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9069 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9071 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9073 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9075 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9076 (IRA_COVER_CLASSES_VSX): Ditto.
9078 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9079 (rs6000_ira_cover_classes): Ditto.
9081 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9083 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9085 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9087 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9089 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9091 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9093 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9095 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9097 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9099 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9101 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9104 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9105 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9106 dw_fde_unlikely_section_end_label, cold_in_std_section,
9107 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9108 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9110 (output_fde): Use dw_fde_second_{begin,end} if second is
9111 true, otherwise dw_fde_{begin,end}.
9112 (output_call_frame_info): Test dw_fde_second_begin != NULL
9113 instead of dw_fde_switched_sections.
9114 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9115 fields, initialize new fields. Initialize in_std_section
9116 unconditionally from the first partition.
9117 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9118 dw_fde_second_begin is non-NULL.
9119 (dwarf2out_switch_text_section): Stop initializing removed
9120 dw_fde_struct fields, initialize new fields, initialize
9121 also dw_fde_end here. Set dw_fde_switch_cfi even when
9122 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
9123 (struct var_loc_list_def): Add last_before_switch field.
9124 (arange_table, arange_table_allocated, arange_table_in_use,
9125 ARANGE_TABLE_INCREMENT, add_arange): Removed.
9126 (size_of_aranges): Count !in_std_section and !second_in_std_section
9127 hunks in fdes, instead of looking at arange_table_in_use.
9128 (output_aranges): Add aranges_length argument, don't call
9129 size_of_aranges here. Instead of using aranges_table*
9130 emit ranges for fdes when !in_std_section resp.
9131 !second_in_std_section.
9132 (dw_loc_list): Break ranges crossing section switch.
9133 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9134 use dw_fde_second_end instead of dw_fde_end as end of last range.
9135 (gen_subprogram_die): Don't call add_arange. Use
9136 dw_fde_{begin,end} for first partition and if switched
9137 section dw_fde_second_{begin,end} for the second.
9138 (var_location_switch_text_section_1,
9139 var_location_switch_text_section): New functions.
9140 (dwarf2out_begin_function): Initialize cold_text_section even
9141 when function_section () isn't text_section.
9142 (prune_unused_types): Don't walk arange_table.
9143 (dwarf2out_finish): Don't needlessly test
9144 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9145 If info_section_emitted, call size_of_aranges and if it indicates
9146 non-empty .debug_aranges, call output_aranges with the computed
9147 size. Stop using removed dw_fde_struct fields, use
9148 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9152 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9153 create ENTRY_VALUE if incoming or address of incoming's MEM
9155 * dwarf2out.c (mem_loc_descriptor): Don't emit
9156 DW_OP_GNU_entry_value of DW_OP_fbreg.
9157 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9158 on ENTRY_VALUE is able to find the canonical parameter VALUE.
9159 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9160 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9162 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9163 is a REG_P or MEM_P with REG_P address, compute hash directly
9164 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9165 (preserve_only_constants): Don't clear VALUES forwaring
9166 ENTRY_VALUE to some other VALUE.
9168 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
9170 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9173 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9175 * cfgexpand.c (expand_gimple_cond): Always set the source location and
9176 block before expanding the statement.
9177 (expand_gimple_stmt_1): Likewise. Set them here...
9178 (expand_gimple_stmt): ...and not here. Tidy.
9179 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9182 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9184 * Makefile.in: New rule for cprop.o.
9185 * gcse.c: Move constant/copy propagation to cprop.c.
9186 (compute_local_properties): Only handle expression tables.
9187 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9188 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9189 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9190 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9191 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9192 compute_cprop_data, find_used_regs, try_replace_reg,
9193 find_avail_set, cprop_jump, constprop_register, cprop_insn,
9194 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9195 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9196 find_bypass_set, reg_killed_on_edge, bypass_block,
9197 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9198 execute_rtl_cprop, pass_rtl_cprop): Move to...
9199 * cprop.c: ...here. New file, constant/copy propagation for RTL
9200 moved from gcse.c to here with minor cleanups in duplicated code.
9202 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
9204 * config/i386/i386.c (flag_opts): Fix a typo in
9205 -mavx256-split-unaligned-store.
9207 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9209 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9210 LIBCALL_VALUE): Remove macros.
9211 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9212 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9213 (h8300_function_value, h8300_libcall_value,
9214 h8300_function_value_regno_p): New functions.
9216 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9218 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9220 2011-03-28 Jeff Law <law@redhat.com>
9222 * tree-ssa-threadupdate.c (redirect_edges): Call
9223 create_edge_and_update_destination_phis as needed.
9224 (create_edge_and_update_destination_phis): Accept new BB argument.
9225 All callers updated.
9226 (thread_block): Do not update the profile when threading around
9227 intermediate blocks.
9228 (thread_single_edge): Likewise.
9229 (determine_bb_domination_status): If BB is not a successor of the
9230 loop header, return NONDOMINATING.
9231 (register_jump_thread): Note when we register a jump thread around
9232 an intermediate block.
9233 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9234 (thread_across_edge): Use it.
9236 2011-03-28 Tristan Gingold <gingold@adacore.com>
9238 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9239 when for_return is 2.
9241 2011-03-28 Jeff Law <law@redhat.com>
9243 * var-tracking.c (canonicalize_values_mark): Delete unused
9245 (canonicalize_values_star, set_variable_part): Likewise.
9246 (clobber_variable_part, delete_variable_part): Likewise.
9248 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9250 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9252 2011-03-28 Martin Jambor <mjambor@suse.cz>
9254 * tree-inline.c (expand_call_inline): Do not check that destination
9256 (optimize_inline_calls): Assert that destination node is analyzed.
9257 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9258 not call tree_lowering_passes.
9259 * cgraph.h (cgraph_analyze_function): Declare.
9260 * cgraphunit.c (cgraph_analyze_function): Make public.
9262 2011-03-28 Joseph Myers <joseph@codesourcery.com>
9264 * config/sparc/sparc-opts.h: New.
9265 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9266 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9267 (sparc_option_override): Store processor_type enumeration rather
9268 than string in cpu_default. Remove name and enumeration from
9269 cpu_table. Directly default -mcpu then default -mtune from -mcpu
9270 without using sparc_select. Use target_flags_explicit instead of
9272 * config/sparc/sparc.h (enum processor_type): Move to
9274 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9275 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9276 HeaderInclude entry.
9277 (mcpu=, mtune=): Use Var and Enum.
9278 (sparc_processor_type): New Enum and EnumValue entries.
9280 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9281 Iain Sandoe <iains@gcc.gnu.org>
9284 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9286 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9288 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9289 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9290 Insert new statements at it in lieu of STMT.
9291 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9292 * tree-vect-stmts.c (vectorizable_store): Likewise.
9293 (vectorizable_load): Likewise.
9295 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
9297 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9302 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9304 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9305 unaligned 256bit load/store.
9306 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9307 (*avx_movdqu<avxmodesuffix>): Likewise.
9309 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9312 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9313 * config/pa/pa.md (iordi3): Use new predicate in expander.
9316 2011-03-27 Anatoly Sokolov <aesok@post.ru>
9318 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9319 FUNCTION_VALUE_REGNO_P): Remove macros.
9320 * config/mips/mips-protos.h (mips_function_value): Remove.
9321 * config/mips/mips.c (mips_function_value): Rename to...
9322 (mips_function_value_1): ... this. Make static. Handle receiving
9323 the function type in 'fn_decl_or_type' argument.
9324 (mips_function_value, mips_libcall_value,
9325 mips_function_value_regno_p): New function.
9326 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9327 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9329 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9331 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9332 and -mavx256-split-unaligned-store.
9333 (ix86_option_override_internal): Split 32-byte AVX unaligned
9334 load/store by default.
9335 (ix86_avx256_split_vector_move_misalign): New.
9336 (ix86_expand_vector_move_misalign): Use it.
9338 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9339 -mavx256-split-unaligned-store.
9341 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9342 256bit load/store. Generate unaligned store on misaligned memory
9344 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9346 (*avx_movdqu<avxmodesuffix>): Likewise.
9348 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9349 -mavx256-split-unaligned-store.
9351 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9354 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9357 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9359 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9360 opno arguments with an expand_operand. Use create_input_operand.
9361 (mips_prepare_builtin_target): Delete.
9362 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9364 (mips_expand_builtin_direct): Use create_output_operand and
9365 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
9366 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
9367 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9369 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
9371 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9373 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9375 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
9377 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9378 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
9379 basic blocks and call commit_edge_insertions directly.
9380 (fixup_abnormal_edges): Move from here to...
9381 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
9382 on the edges and return whether some have actually been inserted.
9383 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9386 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
9388 PR rtl-optimization/48144
9389 * sel-sched-ir.c (merge_history_vect): Factor out from ...
9390 (merge_expr_data): ... here.
9391 (av_set_intersect): Rename to av_set_code_motion_filter.
9392 Update all callers. Call merge_history_vect when an expression
9393 is found in both sets.
9394 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9396 2011-03-26 Alan Modra <amodra@gmail.com>
9398 * config/rs6000/predicates.md (word_offset_memref_op): Handle
9399 cmodel medium addresses.
9400 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9401 64-bit gpr loads and stores.
9402 (rs6000_secondary_reload_ppc64): New function.
9403 * config/rs6000/rs6000-protos.h: Declare it.
9404 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9406 2011-03-26 Alan Modra <amodra@gmail.com>
9409 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9410 GNU Go in traceback table.
9412 2011-03-25 Richard Henderson <rth@redhat.com>
9414 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9415 if there are exactly 6 operands.
9416 (set_storage_via_setmem): Similarly.
9418 2011-03-25 Kai Tietz <ktietz@redhat.com>
9420 * collect2.c (write_c_file_stat): Handle backslash
9421 as right-hand directory separator.
9422 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9423 checking just for slash.
9424 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9425 instead of checking for trailing slash.
9426 * gcc.c (record_temp_file): Use filename_cmp instead
9428 (do_spec_1): Likewise.
9429 (replace_outfile_spec_function): Likewise.
9430 (is_directory): Use filename_ncmp instead of strncmp.
9431 (print_multilib_info): Likewise.
9432 * gcov.c (find_source): Use filename_cmp instead
9434 (make_gcov_file_name): Fix order of slash/backslash
9436 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9437 (add_standard_paths): Likewise.
9438 * mips-tfile.c (saber_stop): Handle backslash.
9439 * prefix.c (update_path): Use filename_ncmp instead of
9441 * profile.c (output_location): Use filename_cmp instead
9443 * read-md.c (handle_toplevel_file): Handle backslash.
9444 * tlink.c (frob_extension): Likewise.
9445 * tree-cfg.c (same_line_p): Use filename_cmp instead of
9447 * tree-dump.c (dequeue_and_dump): Handle backslash.
9448 * tree.c (get_file_function_name): Likewise.
9449 * gengtype.c (read_input_list): Likewise.
9450 (get_file_realbasename): Likewise.
9451 (get_output_file_with_visibility): Use filename_cmp
9454 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
9456 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9459 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9461 * fold-const.c (expr_location_or): New function.
9462 (fold_truth_not_expr): Call it.
9464 2011-03-25 Jeff Law <law@redhat.com>
9466 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9468 * c-family/c-common.c (def_fn_type): Likewise.
9469 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9470 * emit-rtl.c (gen_rtvec): Likewise.
9471 * lto/lto-lang.c (def_fn_type): Likewise.
9473 2011-03-25 Richard Guenther <rguenther@suse.de>
9475 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9476 also generate copies.
9477 (fini_copy_prop): Handle constant values properly.
9479 2011-03-25 Jakub Jelinek <jakub@redhat.com>
9481 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9482 mode size instead of bitsize with DWARF2_ADDR_SIZE.
9483 (hash_loc_operands, compare_loc_operands): Handle
9484 DW_OP_GNU_entry_value.
9486 2011-03-25 Kai Tietz <ktietz@redhat.com>
9488 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9489 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9490 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9491 comment and use macro TARGET_64BIT_MS_ABI instead.
9492 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9493 and change default behavior for 32-bit MS_ABI.
9494 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9495 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9497 (ix86_cfun_abi): Likewise.
9498 (ix86_maybe_switch_abi): Adjust comment.
9499 (init_cumulative_args): Check for bit-ness in MS_ABI case.
9500 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9501 instead of checking for SYSV_ABI.
9502 (ix86_nsaved_sseregs): Likewise.
9503 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9505 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9506 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9507 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9508 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
9509 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
9511 2011-03-25 Richard Guenther <rguenther@suse.de>
9513 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
9514 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9515 (verify_gimple): Remove.
9516 * tree-cfg.c (verify_gimple_call): Merge verification
9518 (verify_gimple_phi): Merge verification from verify_stmts.
9519 (verify_gimple_label): New function.
9520 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9521 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9522 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9523 (verify_stmts): Rename to verify_gimple_in_cfg.
9524 (verify_gimple_in_cfg): New function.
9525 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
9526 * tree-ssa.c (verify_ssa): Likewise.
9527 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
9529 2011-03-25 Richard Guenther <rguenther@suse.de>
9531 * passes.c (init_optimization_passes): Add FRE pass after
9534 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
9535 Andrew Stubbs <ams@codesourcery.com>
9537 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
9539 (arm_movdi_vfp_cortexa8): New pattern.
9540 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
9541 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
9542 instructions when tuning for Cortex-A8. Set attribute "arch".
9543 * config/arm/arm.md: Move include arm-tune.md up a bit.
9544 (define_attr "arch"): Add "onlya8" and "nota8" values.
9545 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
9547 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9551 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9553 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9554 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9555 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9556 * passes.c (init_optimization_passes): Move
9557 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9559 2011-03-25 Kai Tietz <ktietz@redhat.com>
9561 * c-typeck.c (comptypes_internal): Replace target
9562 hook call of comp_type_attributes by version in tree.c file.
9563 * gimple.c (gimple_types_compatible_p_1): Likewise.
9564 * tree-ssa.c (useless_type_conversion_p): Likewise.
9565 * tree.c (build_type_attribute_qual_variant): Likewise.
9566 (attribute_value_equal): New static helper function.
9567 (comp_type_attributes): New function.
9568 (merge_attributes): Use attribute_value_equal for comparison.
9569 (attribute_list_contained): Likewise.
9570 * tree.h (comp_type_attributes): New prototype.
9572 2011-03-25 Richard Guenther <rguenther@suse.de>
9574 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
9575 of complex types at -O0.
9576 (verify_gimple_assign_binary): Likewise.
9577 (verify_gimple_assign_ternary): Likewise.
9579 2011-03-24 Mark Wielaard <mjw@redhat.com>
9581 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9582 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9584 2011-03-24 Mark Wielaard <mjw@redhat.com>
9587 * dwarf2out.c (output_abbrev_section): Only write table when
9588 abbrev_die_table_in_use > 1.
9590 2011-02-24 Richard Henderson <rth@redhat.com>
9592 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9593 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9594 (alpha_expand_unaligned_load_words): Use extql.
9595 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9596 (emit_insxl): Handle all modes for consistency.
9598 2011-02-24 Richard Henderson <rth@redhat.com>
9600 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9601 (alpha_expand_unaligned_load): Likewise.
9602 (alpha_expand_unaligned_store): Likewise.
9603 (alpha_expand_unaligned_load_words): Likewise.
9604 (alpha_expand_unaligned_store_words): Likewise.
9605 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9606 (alpha_split_lock_test_and_set_12): Likewise.
9607 (print_operand, alpha_fold_builtin_extxx): Likewise.
9608 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9609 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9610 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9611 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9612 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9613 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9614 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9615 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9616 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9617 (extwl, extll, extql): Similarly.
9618 (inswh, inslh, insqh): Similarly.
9619 (mskbl, mskwl, mskll, mskql): Similarly.
9620 (mskwh, msklh, mskqh): Similarly.
9622 2011-02-24 Richard Henderson <rth@redhat.com>
9624 * config/alpha/alpha.md (attribute isa): Add er, ner.
9625 (attribute enabled): Handle them.
9626 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9628 2011-02-24 Richard Henderson <rth@redhat.com>
9630 * config/alpha/alpha.md (attribute isa): Add vms.
9631 (attribute enabled): Handle it.
9632 (*movsf): Merge *movsf_{nofix,fix,nofp}.
9633 (*movdf): Merge *movdf_{nofix,fix,nofp}.
9634 (*movtf): Rename from *movtf_internal for consistency.
9635 (*movsi): Merge with *movsi_nt_vms.
9636 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9637 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9638 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9639 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9641 2011-02-24 Richard Henderson <rth@redhat.com>
9643 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9644 (extendqisi2, extendhisi2): Likewise.
9645 (extendqidi2): Simplify BWX/non-BWX expansions.
9646 (extendhidi2): Similarly.
9648 2011-02-24 Richard Henderson <rth@redhat.com>
9650 * config/alpha/alpha.md (attribute isa): New.
9651 (attribute enabled): New.
9652 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9653 (zero_extendqisi2, zero_extendqidi2): Similarly.
9654 (zero_extendhisi2, zero_extendhidi2): Similarly.
9655 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9657 2011-02-24 Richard Henderson <rth@redhat.com>
9659 * config/alpha/predicates.md (input_operand): Revert last change;
9660 update comment to mention 32-bit VMS rather than Windows.
9662 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9664 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9665 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9666 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9667 * passes.c (init_optimization_passes): Move
9668 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9670 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9672 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9674 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9676 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9679 2011-03-24 Jakub Jelinek <jakub@redhat.com>
9682 * simplify-rtx.c (simplify_const_unary_operation): Call
9683 real_convert when changing mode class with FLOAT_EXTEND.
9685 2011-03-24 Nick Clifton <nickc@redhat.com>
9687 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9688 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9689 * config/rx/rx.c (rx_option_override): Set align_jumps,
9690 align_loops and align_labels if not set by the user.
9691 (rx_align_for_label): New function.
9692 (rx_max_skip_for_label): New function.
9693 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9694 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9695 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9696 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9697 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9699 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9701 PR rtl-optimization/48263
9702 * optabs.c (expand_binop_directly): Reinstate convert_modes code
9703 and original commutative_p handling. Use maybe_gen_insn.
9705 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9707 * reload.c (find_reloads_subreg_address): Add address_reloaded
9708 parameter and return true there if the full address has been
9710 (find_reloads_toplev): Pass address_reloaded flag.
9711 (find_reloads_address_1): Don't use address_reloaded parameter.
9713 2011-03-24 Jeff Law <law@redhat.com>
9715 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9716 unused variable "ann".
9717 (remove_unused_locals): Likewise.
9719 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9722 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9725 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9727 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9728 for invalid symbolic addresses.
9729 (s390_secondary_reload): Don't use s390_check_symref_alignment for
9732 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9734 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9735 the argument in calls to fold_truth_not_expr.
9737 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9739 * tree.c (record_node_allocation_statistics): New function.
9740 (make_node_stat, copy_node_stat, build_string): Call it.
9741 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9742 (build1_stat, build_omp_clause): Likewise.
9744 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9746 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9749 2011-03-24 Richard Guenther <rguenther@suse.de>
9751 PR tree-optimization/48271
9752 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9753 blocks that still exist.
9755 2011-03-24 Richard Guenther <rguenther@suse.de>
9757 PR tree-optimization/48270
9758 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9759 not free datarefs before ddrs.
9761 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9763 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9764 from the address built for a reference with variable offset.
9766 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9769 * config/i386/i386.md (*movdf_internal_rex64): Do not split
9770 alternatives that can be handled with movq or movabsq insn.
9771 (*movdf_internal): Disable for !TARGET_64BIT.
9772 (*movdf_internal_nointeger): Ditto.
9773 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
9775 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9777 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9778 (FUNCTION_ARG_ADVANCE): Likewise.
9779 * tm.texi.in: Change references to them to hook references.
9780 * tm.texi: Regenerate.
9781 * targhooks.c (default_function_arg): Eliminate check for target macro.
9782 (default_function_incoming_arg): Likewise.
9783 (default_function_arg_advance): Likewise.
9784 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9785 (function_arg_advance): Likewise.
9786 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9788 2011-03-24 Richard Guenther <rguenther@suse.de>
9791 * tree-object-size.c (addr_object_size): Do not double-account
9792 for MEM_REF offsets.
9794 2011-03-24 Diego Novillo <dnovillo@google.com>
9796 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9797 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9798 (lto_input_data_block): Move from lto-opts.c. Make extern.
9800 (lto_input_string): Rename from input_string. Make extern.
9802 * lto-streamer-out.c (lto_output_string_with_length): Rename from
9803 output_string_with_length.
9804 Output 0 to indicate a non-NULL string. Update all callers to
9806 (lto_output_string): Rename from output_string. Make extern.
9808 (lto_output_decl_state_streams): Make extern.
9809 (lto_output_decl_state_refs): Make extern.
9810 * lto-streamer.h (lto_input_string): Declare.
9811 (lto_input_data_block): Declare.
9812 (lto_output_string): Declare.
9813 (lto_output_string_with_length): Declare.
9814 (lto_output_decl_state_streams): Declare.
9815 (lto_output_decl_state_refs): Declare.
9817 2011-03-24 Richard Guenther <rguenther@suse.de>
9819 PR tree-optimization/46562
9820 * tree.c (build_invariant_address): New function.
9821 * tree.h (build_invariant_address): Declare.
9822 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
9823 a renamed function moved ...
9824 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
9825 Take valueization callback parameter.
9826 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
9827 * gimple-fold.h: New file.
9828 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
9829 (ccp_fold, fold_const_aggregate_ref,
9830 fold_ctor_reference, fold_nonarray_ctor_reference,
9831 fold_array_ctor_reference, fold_string_cst_ctor_reference,
9832 get_base_constructor): Move ...
9833 * gimple-fold.c: ... here.
9834 (gimple_fold_stmt_to_constant_1): New function
9835 split out from ccp_fold. Take a valueization callback parameter.
9836 Valueize all operands.
9837 (gimple_fold_stmt_to_constant): New wrapper function.
9838 (fold_const_aggregate_ref_1): New function split out from
9839 fold_const_aggregate_ref. Take a valueization callback parameter.
9840 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
9841 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
9842 invariant POINTER_PLUS_EXPRs to invariant form.
9843 (vn_valueize): New function.
9844 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
9845 * tree-vrp.c (vrp_valueize): New function.
9846 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
9847 to fold statements to constants.
9848 * tree-ssa-pre.c (eliminate): Properly guard propagation of
9849 function declarations.
9850 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
9851 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
9853 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9855 * config/h8300/predicates.md (jump_address_operand): Fix register
9858 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
9860 * doc/invoke.texi (max-stores-to-sink): Document.
9861 * params.h (MAX_STORES_TO_SINK): Define.
9862 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
9863 if either vectorization or if-conversion is disabled.
9864 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
9865 tree-vect-data-refs.c vect_equal_offsets.
9866 (dr_equal_offsets_p): New function.
9867 (find_data_references_in_bb): Remove static.
9868 * tree-data-ref.h (find_data_references_in_bb): Declare.
9869 (dr_equal_offsets_p): Likewise.
9870 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
9871 (vect_drs_dependent_in_basic_block): Update calls to
9873 (vect_check_interleaving): Likewise.
9874 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
9875 (cond_if_else_store_replacement): Rename to...
9876 (cond_if_else_store_replacement_1): ... this. Change arguments and
9878 (cond_if_else_store_replacement): New function.
9879 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
9880 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
9882 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
9885 * config/arm/arm.md (casesi): Use the gen_int_mode() function
9886 to subtract lower bound instead of GEN_INT().
9888 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
9893 * doc/extend.texi (Alignment): Move section to match order in TOC.
9894 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9895 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9897 2011-03-23 Jeff Law <law@redhat.com>
9899 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9900 before removing the edge.
9902 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9903 it may have been freed by redirect_branch_edge or
9904 redirect_edge_succ_nodup.
9906 2011-03-23 Richard Guenther <rguenther@suse.de>
9908 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9909 (check_va_list_escapes): Likewise.
9910 (check_all_va_list_escapes): Likewise.
9912 2011-03-23 Richard Guenther <rguenther@suse.de>
9914 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9915 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9916 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9917 (alias.o): Likewise.
9918 (ipa-type-escape.o): Remove.
9919 (ipa-struct-reorg.o): Likewise.
9920 (GTFILES): Remove ipa-struct-reorg.c.
9921 * alias.c: Do not include ipa-type-escape.h.
9922 * tree-ssa-alias.c: Likewise.
9923 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9924 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9925 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9926 and ipa-type-escape passes.
9927 * tree-pass.h (pass_ipa_type_escape): Remove.
9928 (pass_ipa_struct_reorg): Likewise.
9929 * ipa-struct-reorg.h: Remove.
9930 * ipa-struct-reorg.c: Likewise.
9931 * ipa-type-escape.h: Likewise.
9932 * ipa-type-escape.c: Likewise.
9933 * doc/invoke.texi (-fipa-struct-reorg): Remove.
9934 (--param struct-reorg-cold-struct-ratio): Likewise.
9935 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9936 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9937 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9939 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9941 * config/s390/2084.md: Enable all insn reservations also for z9_ec
9942 cpu attribute value.
9943 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9944 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9945 * config/s390/s390.c (processor_flags_table): New constant array.
9946 (s390_handle_arch_option): Remove.
9947 (s390_handle_option): Remove s390_handle_arch_option invocations
9948 and OPT_mwarn_framesize_ handling.
9949 (s390_option_override): Remove s390_handle_arch_option invocation.
9950 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9952 * config/s390/s390.md (cpu attribute): Add z9_ec value.
9953 * config/s390/s390.opt (s390_tune, s390_arch)
9954 (march=): Replace s390_arch_option enum and values with
9955 processor_type. Set variable name to s390_arch. Set
9956 initialization value.
9957 (mtune=): Replace s390_arch_option with processor_type. Set
9958 variable name to s390_tune. Set initialization value.
9960 2011-03-23 Julian Brown <julian@codesourcery.com>
9962 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9963 accesses which are not naturally aligned.
9965 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9968 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9970 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9972 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9973 parameter from "int" to "enum insn_code".
9974 (expand_operand_type): New enum.
9975 (expand_operand): New structure.
9976 (create_expand_operand): New function.
9977 (create_fixed_operand, create_output_operand): Likewise
9978 (create_input_operand, create_convert_operand_to): Likewise.
9979 (create_convert_operand_from, create_address_operand): Likewise.
9980 (create_integer_operand): Likewise.
9981 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9982 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9983 (expand_insn, expand_jump_insn): Likewise.
9984 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9985 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9986 (expand_movstr, expand_builtin___clear_cache): Likewise.
9987 (expand_builtin_lock_release): Likewise.
9988 * explow.c (allocate_dynamic_stack_space): Likewise.
9989 (probe_stack_range): Likewise. Allow check_stack to FAIL,
9990 and use the default handling in that case.
9991 * expmed.c (check_predicate_volatile_ok): Delete.
9992 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9993 (emit_cstore): Likewise.
9994 * expr.c (emit_block_move_via_movmem): Likewise.
9995 (set_storage_via_setmem, expand_assignment): Likewise.
9996 (emit_storent_insn, try_casesi): Likewise.
9997 (emit_single_push_insn): Likewise. Allow the expansion to fail.
9998 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9999 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10000 (expand_twoval_unop, expand_twoval_binop): Likewise.
10001 (expand_unop_direct, emit_indirect_jump): Likewise.
10002 (emit_conditional_move, vector_compare_rtx): Likewise.
10003 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10004 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10005 (expand_sync_lock_test_and_set): Likewise.
10006 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10007 (emit_unop_insn): Likewise.
10008 (expand_copysign_absneg): Change icode to an insn_code.
10009 (create_convert_operand_from_type): New function.
10010 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10011 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10012 (expand_insn, expand_jump_insn): Likewise.
10013 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10014 than const_int_operand for operand 2.
10016 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10018 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10021 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10023 * emit-rtl.c (emit_pattern_before_noloc): New function.
10024 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10025 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10026 (emit_pattern_after_noloc): New function.
10027 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10028 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10030 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10032 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10033 (__ffsDI2): Likewise.
10035 2011-03-22 Richard Henderson <rth@redhat.com>
10037 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10038 of !TARGET_ABI_OPEN_VMS.
10039 (alpha_trampoline_init, alpha_start_function): Likewise.
10040 (alpha_expand_epilogue, alpha_file_start): Likewise.
10041 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10042 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10043 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10044 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10045 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10047 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10049 * config/s390/s390-opts.h: New.
10050 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10051 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10052 s390_stack_guard): Remove.
10053 (s390_handle_arch_option): Return void. Take enum
10054 s390_arch_option value instead of string and searching array.
10055 (s390_handle_option): Don't assert that global structures are in
10056 use. Access variables via opts pointer. Use error_at. Don't use
10057 sscanf for -mstack-guard= or -mstack-size=. Update call to
10058 s390_handle_arch_option.
10059 (s390_option_override): Update call to s390_handle_arch_option.
10060 (s390_emit_prologue): Use %d format for s390_stack_size in
10061 diagnostic. Use %wd for HOST_WIDE_INT.
10062 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10063 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10064 * config/s390/s390.opt (config/s390/s390-opts.h): New
10065 HeaderInclude entry.
10066 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10067 s390_arch_flags, s390_warn_framesize): New Variable entries.
10068 (s390_arch_option): New Enum and EnumValue entries.
10069 (march=): Use Enum instead of Var.
10070 (mstack-guard=, mstack-size=): Use UInteger and Var.
10071 (mtune=): Use Enum.
10073 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10075 * config/score/score.c (score_handle_option): Don't assert that
10076 global structures are in use. Access target_flags via opts
10077 pointer. Use value of -march= option to determine target_flags
10079 * config/score/score.opt (march=): Use Enum.
10080 (score_arch): New Enum and EnumValue entries.
10082 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10084 * config/mep/mep.c (option_mtiny_specified): Remove.
10085 (mep_option_override): Move register handling for -mivc2 from
10086 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10087 instead of option_mtiny_specified.
10088 (mep_handle_option): Access target_flags via opts pointer. Don't
10089 assert that global structures are in use. Defer part of -mivc2
10090 handling and move it to mep_option_override.
10091 * config/mep/mep.opt (IVC2): New Mask entry.
10092 (mivc2): Use Var and Defer instead of Mask.
10094 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10096 * config/v850/v850-opts.h: New.
10097 * config/v850/v850.c (small_memory): Replace with
10098 small_memory_physical_max array. Make that array static const.
10099 (v850_handle_memory_option): Take integer value of argument. Take
10100 gcc_options pointer, option text and location. Return void.
10101 Update for changes to small memory structures.
10102 (v850_handle_option): Access target_flags via opts pointer. Don't
10103 assert that global structures are in use. Update calls to
10104 v850_handle_memory_option.
10105 (v850_encode_data_area): Update references to small memory settings.
10106 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10107 (enum small_memory_type): Move to v850-opts.h.
10108 * config/v850/v850.opt (config/v850/v850-opts.h): New
10109 HeaderInclude entry.
10110 (small_memory_max): New Variable entry.
10111 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10112 (mtda, mzda): Likewise.
10114 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10116 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10117 pointer. Don't assert that global structures are in use.
10119 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10121 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10122 via opts pointer. Don't assert that global structures are in use.
10124 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10126 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10127 (munix=93): Use Var.
10128 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10129 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10130 * config/pa/pa-opts.h: New.
10131 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10132 (pa_handle_option): Don't assert that global structures are in
10133 use. Access target_flags via opts pointer. Don't handle
10134 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10136 (pa_option_override): Handle deferred OPT_mfixed_range_.
10138 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10140 * config/mn10300/mn10300-opts.h: New.
10141 * config/mn10300/mn10300.c (mn10300_processor,
10142 mn10300_tune_string): Remove.
10143 (mn10300_handle_option): Don't assert that global structures are
10144 in use. Access mn10300_processor via opts pointer. Don't handle
10146 * config/mn10300/mn10300.h (enum processor_type): Move to
10148 (mn10300_processor): Remove.
10149 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10150 HeaderInclude entry.
10151 (mn10300_processor): New Variable entry.
10154 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10156 * config/microblaze/microblaze.c: Don't include opts.h.
10157 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10158 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10159 (mno-clearbss): Use Var and Warn.
10161 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10163 * config/m32r/m32r-opts.h: New.
10164 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10165 (m32r_handle_option): Don't assert that global structures are in
10166 use. Access target_flags and m32r_cache_flush_func via opts
10167 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
10168 OPT_mno_flush_trap here.
10169 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10170 include of m32r-opts.h.
10171 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10172 HeaderInclude entry.
10173 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10174 (mmodel=): Use Enum and Var.
10175 (m32r_model): New Enum and EnumValue entries.
10176 (mno-flush-trap): Use Var.
10177 (msdata=): Use Enum and Var.
10178 (m32r_sdata): New Enum and EnumValue entries.
10180 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10182 * config/m32c/m32c.c: Don't include opts.h.
10183 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10184 m32c_handle_option): Remove.
10185 (m32c_option_override): Check global_options_set.x_target_memregs
10186 instead of target_memregs_set.
10187 * config/m32c/m32c.h (target_memregs): Remove.
10188 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10191 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10193 * config/iq2000/iq2000-opts.h: New.
10194 * config/iq2000/iq2000.c: Don't include opts.h.
10195 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10196 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10197 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10198 HeaderInclude entry.
10199 (iq2000_tune): New Variable entry.
10200 (march=): Add comment. Use Enum.
10201 (iq2000_arch): New Enum and EnumValue entries.
10202 (mcpu=): Use Enum and Var.
10203 (iq2000_tune): New Enum and EnumValue entries.
10205 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10207 * config/ia64/ia64-opts.h: New.
10208 * config/ia64/ia64.c (ia64_tune): Remove.
10209 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10210 here. Use error_at.
10211 (ia64_option_override): Handle deferred OPT_mfixed_range_.
10212 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10213 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10214 HeaderInclude entry.
10215 (ia64_tune): New Variable entry.
10216 (mfixed-range=): Use Defer and Var.
10217 (mtune=): Use Enum and Var.
10218 (ia64_tune): New Enum and EnumValue entries.
10220 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10222 * config/frv/frv-opts.h: New.
10223 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10225 (frv_cpu_type): Remove.
10226 * config/frv/frv.c: Don't include opts.h.
10227 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10228 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10229 (frv_cpu_type): New Variable entry.
10230 (frv_cpu): New Enum and EnumValue entries.
10232 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10234 * config/cris/cris.c (cris_handle_option): Access target_flags via
10235 opts pointer. Don't assert that global structures are in use.
10236 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10237 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10239 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10241 * config/bfin/bfin-opts.h: New.
10242 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10243 bfin_si_revision, bfin_workarounds): Remove.
10244 (bfin_cpus): Make static const.
10245 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10246 not bfin_lib_id_given.
10247 (bfin_handle_option): Don't set bfin_lib_id_given. Access
10248 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10249 pointer. Use error_at. Don't assert that global structures are in use.
10250 * config/bfin/bfin.h: Include bfin-opts.h.
10251 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10252 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10253 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10254 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10257 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10259 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10260 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10261 or -msoft-float here.
10262 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10263 -msoft-float and -mhard-float.
10264 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10265 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10267 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10269 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10270 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10272 (LIBGCC_SPEC): Don't handle -msoft-float.
10273 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10275 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10277 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10278 -mfloat-abi=*, not -msoft-float and -mhard-float.
10279 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10281 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10282 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10283 mhard-float and msoft-float.
10284 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10285 mfloat-abi=soft in comments, not mhard-float and msoft-float.
10286 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10287 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10289 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10290 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10292 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10294 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10297 2011-03-22 Richard Henderson <rth@redhat.com>
10299 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10300 TARGET_ABI_WINDOWS_NT.
10301 (alpha_output_function_end_prologue): Likewise.
10302 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10303 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10304 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10305 (trap, *movsi_nt_vms): Likewise.
10306 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10307 (*tablejump_osf_nt_internal): Remove.
10308 * config/alpha/predicates.md (input_operand): Only test Pmode.
10310 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10312 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10313 via opts pointer. Use error_at. Don't assert that global
10314 structures are in use.
10316 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10318 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10319 (ix86_handle_option): Access ix86_isa_flags and
10320 ix86_isa_flags_explicit via opts pointer. Don't assert that
10321 global structures are in use.
10322 (ix86_function_specific_save, ix86_function_specific_restore):
10323 Update ix86_isa_flags_explicit field name.
10324 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10325 (ix86_isa_flags_explicit): Rename TargetSave entry to
10326 x_ix86_isa_flags_explicit.
10328 2011-03-22 Richard Henderson <rth@redhat.com>
10330 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10331 (alpha_option_override, direct_return): Likewise.
10332 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10333 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10334 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10335 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10336 (alpha_expand_epilogue, alpha_end_function): Likewise.
10337 (alpha_init_libfuncs): Likewise.
10338 (struct machine_function): Remove unicosmk members.
10339 (print_operand) ['t']: Remove.
10340 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10341 unicosmk_output_module_name, unicosmk_output_common,
10342 current_section_align, unicosmk_output_text_section_asm_op,
10343 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10344 unicosmk_section_type_flags, unicosmk_unique_section,
10345 unicosmk_asm_named_section, unicosmk_insert_attributes,
10346 unicosmk_output_align, unicosmk_defer_case_vector,
10347 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10348 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10349 unicosmk_output_ssib, unicosmk_add_call_info_word,
10350 unicosmk_extern_head, unicosmk_output_default_externs,
10351 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10352 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10353 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10354 * config/alpha/alpha-protos.h: Update.
10355 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10356 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10357 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10358 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10359 (*mulsi_se, mulvsi3): Likewise.
10360 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10361 (*divmodsi_internal, call, call_value, realign): Likewise.
10362 (moddi3, umoddi3): Likewise; remove duplicate expander.
10363 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10364 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10365 (*movdi_nofix): Remove r/U alternative.
10366 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10367 * config/alpha/constraints.md ("U"): Remove.
10368 * config/alpha/predicates.md (call_operand"): Don't test
10369 TARGET_ABI_UNICOSMK.
10371 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10373 * target.def (handle_option): Take gcc_options and
10374 cl_decoded_option pointers and location_t.
10375 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10376 * doc/tm.texi: Regenerate.
10377 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10378 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10379 * lto-opts.c (lto_reissue_options): Generate option structure for
10380 targetm.handle_option call.
10381 * opts.c (target_handle_option): Update call to
10382 targetm.handle_option. Remove assertions about values now passed
10384 * targhooks.c (default_target_handle_option): New.
10385 * targhooks.h (default_target_handle_option): Declare.
10386 * config/alpha/alpha.c: Include opts.h.
10387 (alpha_handle_option): Update to new hook interface.
10388 * config/arm/arm.c: Include opts.h.
10389 (arm_handle_option): Update to new hook interface.
10390 * config/arm/t-arm (arm.o): Update dependencies.
10391 * config/bfin/bfin.c: Include opts.h.
10392 (bfin_handle_option): Update to new hook interface.
10393 * config/cris/cris.c: Include opts.h.
10394 (cris_handle_option): Update to new hook interface.
10395 * config/frv/frv.c: Include opts.h.
10396 (frv_handle_option): Update to new hook interface.
10397 * config/i386/i386.c: Include opts.h.
10398 (ix86_handle_option): Update to new hook interface.
10399 (ix86_valid_target_attribute_inner_p): Generate option structure
10400 for call to ix86_handle_option.
10401 * config/i386/t-i386 (i386.o): Update dependencies.
10402 * config/ia64/ia64.c: Include opts.h.
10403 (ia64_handle_option): Update to new hook interface.
10404 * config/ia64/t-ia64 (ia64.o): Update dependencies.
10405 * config/iq2000/iq2000.c: Include opts.h.
10406 (iq2000_handle_option): Update to new hook interface.
10407 * config/m32c/m32c.c: Include opts.h.
10408 (m32c_handle_option): Update to new hook interface.
10409 * config/m32r/m32r.c: Include opts.h.
10410 (m32r_handle_option): Update to new hook interface.
10411 * config/m68k/m68k.c: Include opts.h.
10412 (m68k_handle_option): Update to new hook interface.
10413 * config/mep/mep.c: Include opts.h.
10414 (mep_handle_option): Update to new hook interface.
10415 * config/microblaze/microblaze.c: Include opts.h.
10416 (microblaze_handle_option): Update to new hook interface.
10417 * config/mips/mips.c: Include opts.h.
10418 (mips_handle_option): Update to new hook interface.
10419 * config/mn10300/mn10300.c: Include opts.h.
10420 (mn10300_handle_option): Update to new hook interface.
10421 * config/pa/pa.c: Include opts.h.
10422 (pa_handle_option): Update to new hook interface.
10423 * config/pdp11/pdp11.c: Include opts.h.
10424 (pdp11_handle_option): Update to new hook interface.
10425 * config/rs6000/rs6000.c: Include opts.h.
10426 (rs6000_handle_option): Update to new hook interface.
10427 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10428 * config/rx/rx.c: Include opts.h.
10429 (rx_handle_option): Update to new hook interface.
10430 * config/s390/s390.c: Include opts.h.
10431 (s390_handle_option): Update to new hook interface.
10432 * config/score/score.c: Include opts.h.
10433 (score_handle_option): Update to new hook interface.
10434 * config/sh/sh.c: Include opts.h.
10435 (sh_handle_option): Update to new hook interface.
10436 * config/sparc/sparc.c: Include opts.h.
10437 (sparc_handle_option): Update to new hook interface.
10438 * config/v850/v850.c: Include opts.h.
10439 (v850_handle_option): Update to new hook interface.
10441 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10443 * gcc.c (driver_unknown_option_callback): Only permit and save
10444 unknown -Wno- options.
10445 (driver_wrong_lang_callback): Save options directly instead of via
10446 driver_unknown_option_callback.
10448 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10450 * combine.c (simplify_set): Try harder to find the best CC mode when
10451 simplifying a nested COMPARE on the RHS.
10453 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10455 * config/alpha/gnu.h: Remove.
10456 * config/arc: Remove directory.
10457 * config/arm/netbsd.h: Remove.
10458 * config/arm/t-pe: Remove.
10459 * config/crx: Remove directory.
10460 * config/i386/netbsd.h: Remove.
10461 * config/m68hc11: Remove directory.
10462 * config/m68k/uclinux-oldabi.h: Remove.
10463 * config/mcore/mcore-pe.h: Remove.
10464 * config/mcore/t-mcore-pe: Remove.
10465 * config/netbsd-aout.h: Remove.
10466 * config/rs6000/gnu.h: Remove.
10467 * config/sh/sh-symbian.h: Remove.
10468 * config/sh/symbian-base.c: Remove.
10469 * config/sh/symbian-c.c: Remove.
10470 * config/sh/symbian-cxx.c: Remove.
10471 * config/sh/symbian-post.h: Remove.
10472 * config/sh/symbian-pre.h: Remove.
10473 * config/sh/t-symbian: Remove.
10474 * config/svr3.h: Remove.
10475 * config/vax/netbsd.h: Remove.
10476 * config.build: Don't handle i[34567]86-*-pe.
10477 * config.gcc: Remove handling of deprecations for most deprecated
10479 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10480 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10481 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10482 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10483 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10484 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10486 * config.host: Don't handle i[34567]86-*-pe.
10487 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10488 (ASM_SPEC32): Don't handle -mcall-gnu.
10489 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10491 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10492 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10493 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10494 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10495 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10496 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10497 conditional on SYMBIAN.
10498 * configure.ac: Don't handle powerpc*-*-gnu*.
10499 * configure: Regenerate.
10500 * doc/extend.texi (interrupt attribute): Don't mention CRX.
10501 * doc/install-old.texi (m6811, m6812): Don't mention.
10502 * doc/install.texi (arc-*-elf*): Don't document multilib option.
10503 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10504 (m68k-uclinuxoldabi): Don't mention.
10505 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10507 (-mcall-gnu): Remove.
10508 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
10509 families): Remove constraint documentation.
10511 2011-03-22 Marius Strobl <marius@FreeBSD.org>
10513 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
10514 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
10515 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
10517 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10520 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10521 vector when peeking at the next token for vector, don't expand the
10524 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
10526 * config/avr/avr-protos.h (expand_epilogue): Change prototype
10527 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
10528 * config/avr/avr.c (init_cumulative_args)
10529 (avr_function_arg_advance): Use it.
10530 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
10532 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
10533 (avr_function_ok_for_sibcall): ...this new function.
10534 (avr_lookup_function_attribute1): New static Function.
10535 (avr_naked_function_p, interrupt_function_p)
10536 (signal_function_p, avr_OS_task_function_p)
10537 (avr_OS_main_function_p): Use it.
10538 * config/avr/avr.md ("sibcall", "sibcall_value")
10539 ("sibcall_epilogue"): New expander.
10540 ("*call_insn", "*call_value_insn"): New insn.
10541 ("call_insn", "call_value_insn"): Remove
10542 ("call", "call_value", "epilogue"): Change expander to handle
10545 2011-03-21 Nick Clifton <nickc@redhat.com>
10547 * doc/invoke.texi (Overall Options): Move closing brace to end of
10549 (Optimization Options): Add missing @gol.
10550 (Directory Options): Likewise.
10551 (i386 and x86-64 Options): Likewise.
10552 (RS6000 and PowerPC Options): Likewise.
10553 (i386 and x86-64 Windows Options): Likewise.
10554 (V850 Options): Add text missing from descriptions.
10556 2011-03-22 Richard Henderson <rth@redhat.com>
10558 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
10559 (avr_incoming_return_addr_rtx): New.
10560 (emit_push_byte): New.
10561 (expand_prologue): Use it. Remove incorrect dwarf annotation for
10562 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
10563 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
10564 (emit_pop_byte): New.
10565 (expand_epilogue): Use it. Pop frame pointer by bytes.
10566 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
10567 (INCOMING_RETURN_ADDR_RTX): New.
10568 (INCOMING_FRAME_SP_OFFSET): New.
10569 (ARG_POINTER_CFA_OFFSET): New.
10570 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
10571 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
10574 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
10576 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10578 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10579 (FUNCTION_ARG_ADVANCE): Likewise.
10580 * tm.texi.in: Change references to them to hook references.
10581 * tm.texi: Regenerate.
10582 * targhooks.c (default_function_arg): Eliminate check for target
10584 (default_function_incoming_arg): Likewise.
10585 (default_function_arg_advance): Likewise.
10586 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10587 (function_arg_advance): Likewise.
10588 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10590 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10592 * tree.c (build_call_1): New function.
10593 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10595 2011-03-22 Richard Guenther <rguenther@suse.de>
10597 PR tree-optimization/48228
10598 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10599 for single-arg PHIs.
10601 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
10603 PR rtl-optimization/48143
10604 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10605 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10606 sse2_cvtps2pd): Likewise.
10608 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10610 * recog.c (canonicalize_change_group): Use validate_unshare_change.
10612 2011-03-22 Richard Guenther <rguenther@suse.de>
10614 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10615 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10616 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10617 and REALIGN_LOAD_EXPR.
10618 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10619 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10620 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10621 DOT_PROD_EXPR case ...
10622 (expand_expr_real_2): ... here.
10623 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10624 and REALIGN_LOAD_EXPR.
10625 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10626 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10627 (vect_create_epilog_for_reduction): Likewise.
10628 (vectorizable_reduction): Likewise.
10629 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10630 * tree-vect-stmts.c (vectorizable_load): Likewise.
10632 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10634 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10636 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10638 * config/s390/s390.c (s390_delegitimize_address): Fix offset
10639 handling for PLTOFF/GOTOFF.
10641 2011-03-22 Nick Clifton <nickc@redhat.com>
10643 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10644 trailing backslash from the end of the macro definition.
10646 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10648 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10651 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
10653 * expr.h (prepare_operand): Move to...
10654 * optabs.h (prepare_operand): ...here and change the insn code
10655 parameter from "int" to "enum insn_code".
10656 (insn_operand_matches): Declare.
10657 * expr.c (init_expr_target): Use insn_operand_matches.
10658 (compress_float_constant): Likewise.
10659 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10660 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10661 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10662 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10664 (gen_cond_trap): Likewise.
10665 (prepare_operand): Likewise. Change icode to an insn_code.
10666 (insn_operand_matches): New function.
10667 * reload.c (find_reloads_address_1): Use insn_operand_matches.
10668 * reload1.c (gen_reload): Likewise.
10669 * targhooks.c (default_secondary_reload): Likewise.
10671 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10673 * config/alpha/alpha.md (unspec): New define_c_enum.
10676 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10679 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10680 between a call and its CALL_ARG_LOCATION note.
10682 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
10684 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10686 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10690 * c-common.c (shorten_compare): If primopN is first sign-extended
10691 to opN and then zero-extended to result type, set primopN to opN.
10693 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
10695 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10696 for barrier handlers.
10698 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10700 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10701 UNSPEC constants to be in the unspec enumeration, and redefine
10702 all UNSPECV constants to be in the unspecv enumeration, so that
10703 dumps print which unspec/unspec_volatile this is.
10704 * config/rs6000/vector.md (UNSPEC_*): Ditto.
10705 * config/rs6000/paired.md (UNSPEC_*): Ditto.
10706 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10707 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10708 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10710 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10711 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10712 UNSPECV_LWSYNC, since these are used as unspec_volatile.
10713 * config/rs6000/sync.md (isync, lwsync): Ditto.
10715 2011-03-21 Richard Guenther <rguenther@suse.de>
10717 * params.def (lto-min-partition): Fix typo.
10719 2011-03-21 Richard Guenther <rguenther@suse.de>
10722 * c-decl.c (grokdeclarator): Drop to the main variant only
10723 for array types. Drop flag_gen_aux_info check.
10725 2011-03-21 Richard Guenther <rguenther@suse.de>
10727 PR translation/47911
10728 * params.def (lto-partitions): Fix typo.
10729 (lto-min-partition): Fix wording.
10731 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
10733 * config/rs6000/t-freebsd: Remove duplication from file.
10735 2011-03-21 Richard Guenther <rguenther@suse.de>
10737 PR middle-end/47661
10738 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10740 2011-03-21 Richard Guenther <rguenther@suse.de>
10743 * params.def (lto-partitions): Require at least 1 partition.
10745 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10747 * gthr-solaris.h: Remove.
10748 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10749 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10750 (LIB_SPEC): Likewise.
10751 * config/sol2.opt (threads): Remove.
10752 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10753 (sparc*-*-solaris2*): Likewise.
10754 * configure.ac (enable_threads): Enable solaris support.
10755 * configure: Regenerate.
10756 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10757 * doc/install.texi (Configuration, --enable-threads=lib): Remove
10760 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10762 * config.gcc: Obsolete *-*-solaris2.8*.
10763 * doc/install.texi (Specific, *-*-solaris2*): Document it.
10765 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10768 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10769 reference. Solaris 8 perl works.
10771 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10774 * doc/install.texi (Prerequisites): Move jar etc. up.
10775 Explain support library version requirements.
10777 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10780 * doc/install.texi (Prerequisites): Move Perl to build
10781 requirements. Always necessary on Solaris 2 with Sun ld.
10783 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10785 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
10787 (Specific, i?86-*-solaris2.[89]): Likewise.
10788 (Specific, i?86-*-solaris2.10): Likewise.
10789 (Specific, mips-sgi-irix6): Likewise.
10790 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
10791 Update for binutils 2.21.
10793 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10795 * configure.ac (gcc_cv_lto_plugin): Fix typo.
10796 Allow -fuse-linker-plugin for non-default plugin linker.
10797 * configure: Regenerate.
10799 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
10802 * gengtype.c (files_rules): Added rule for cp/parser.h.
10804 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10807 * config/s390/s390.c (s390_delegitimize_address): Don't call
10808 lowpart_subreg if orig_x has BLKmode.
10810 2011-03-21 Kai Tietz <ktietz@redhat.com>
10813 * doc/plugins.texi: Adjust documentation for plugin register_callback.
10814 * tree.h (attribute_spec): Add new member affects_type_identity.
10815 * attribs.c (empty_attribute_table): Adjust attribute_spec
10817 * config/alpha/alpha.c: Likewise.
10818 * config/arc/arc.c: Likewise.
10819 * config/arm/arm.c: Likewise.
10820 * config/avr/avr.c: Likewise.
10821 * config/bfin/bfin.c: Likewise.
10822 * config/crx/crx.c: Likewise.
10823 * config/darwin.h: Likewise.
10824 * config/h8300/h8300.c: Likewise.
10825 * config/i386/cygming.h: Likewise.
10826 * config/i386/i386.c: Likewise.
10827 * config/ia64/ia64.c: Likewise.
10828 * config/m32c/m32c.c: Likewise.
10829 * config/m32r/m32r.c: Likewise.
10830 * config/m68hc11/m68hc11.c: Likewise.
10831 * config/m68k/m68k.c: Likewise.
10832 * config/mcore/mcore.c: Likewise.
10833 * config/mep/mep.c: Likewise.
10834 * config/microblaze/microblaze.c: Likewise.
10835 * config/mips/mips.c: Likewise.
10836 * config/rs6000/rs6000.c: Likewise.
10837 * config/rx/rx.c: Likewise.
10838 * config/sh/sh.c: Likewise.
10839 * config/sol2.h: Likewise.
10840 * config/sparc/sparc.c: Likewise.
10841 * config/spu/spu.c: Likewise.
10842 * config/stormy16/stormy16.c: Likewise.
10843 * config/v850/v850.c: Likewise.
10845 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
10847 * simplify-rtx.c (simplify_binary_operation_1): Handle
10848 (xor (and A B) C) case when B and C are both constants.
10850 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
10852 * tree-dfa.c (add_referenced_var): Fix typo in comment.
10854 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
10857 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
10859 2011-03-20 Jakub Jelinek <jakub@redhat.com>
10861 PR rtl-optimization/48156
10862 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
10863 assume df and df_lr are not NULL.
10865 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10868 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
10869 between a call and its CALL_ARG_LOCATION note.
10871 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
10874 * config/sh/sh.c (find_barrier): Don't emit a constant pool
10875 between a call and its corresponding CALL_ARG_LOCATION note.
10877 2011-03-19 Anatoly Sokolov <aesok@post.ru>
10879 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
10880 instead of loop. Use HARD_REGISTER_NUM_P predicate.
10881 * haifa-sched.c (setup_ref_regs): Ditto.
10882 * caller-save.c (add_used_regs_1): Ditto.
10883 * dse.c (look_for_hardregs): Ditto.
10884 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
10885 * sched-rgn.c (check_live_1): Ditto.
10887 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10889 * c-decl.c (diagnose_mismatched_decls): Give an error for
10890 redefining a typedef with variably modified type.
10892 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10894 * c-decl.c (grokfield): Don't allow typedefs for structures or
10895 unions with no tag by default.
10896 * doc/extend.texi (Unnamed Fields): Update.
10898 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
10900 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10901 Rewrite using indirect functions.
10902 (lwp_slwpcb): Ditto.
10903 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10904 (avx_vinsertf128<mode>): Ditto.
10906 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10908 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10911 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10913 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10914 splitting between a call and its corresponding CALL_ARG_LOCATION note.
10916 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
10918 PR rtl-optimization/48170
10919 * gcse.c (hoist_code): Remove bogus asserts.
10921 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
10923 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10924 computation for prologue/epilogue.
10926 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10928 * Makefile.in (check-consistency): Remove.
10930 2011-03-18 Jakub Jelinek <jakub@redhat.com>
10933 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10934 arange_table_in_use is 0, but either text_section_used or
10935 cold_text_section_used is true. Don't call it if
10936 !info_section_emitted.
10938 2011-03-18 Anatoly Sokolov <aesok@post.ru>
10940 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10941 FUNCTION_VALUE_REGNO_P): Remove.
10942 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10944 * config/avr/avr.c (avr_ret_register): Make static inline.
10945 (avr_function_value_regno_p): New function.
10946 (avr_libcall_value): Make static. Add 'func' argument.
10947 (avr_function_value): Make static. Rename 'func' argument to
10948 'fn_decl_or_type', forward it to avr_libcall_value. Call
10949 avr_ret_register function instead of RET_REGISTER macro.
10950 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10952 2011-03-18 Jason Merrill <jason@redhat.com>
10955 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10957 2011-03-18 Richard Guenther <rguenther@suse.de>
10959 * doc/install.texi (--enable-gold): Remove.
10960 (--with-plugin-ld): Document.
10961 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10963 2011-03-18 Andrew Pinski <pinskia@gmail.com>
10965 PR middle-end/47790
10966 * expr.c (optimize_bitfield_assignment_op): Revamp to work
10967 again after expansion changes.
10969 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
10971 * combine.c (try_combine): Do simplification only call of
10972 subst() on i2 even when i1 is present. Update comments.
10974 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
10976 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10977 and UNSPEC_PCREL_SYMOFF.
10979 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10981 * config/s390/s390.md: Use define_c_enum for the unspec constant
10984 2011-03-18 Richard Henderson <rth@redhat.com>
10985 Jakub Jelinek <jakub@redhat.com>
10988 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10989 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10991 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10993 PR middle-end/47725
10994 * combine.c (cant_combine_insn_p): Don't check zero/sign
10995 extended hard registers.
10997 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10999 PR middle-end/47725
11000 * combine.c (cant_combine_insn_p): Check zero/sign extended
11003 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11005 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11006 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11007 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11008 Change return type to bool.
11009 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11011 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11014 * var-tracking.c (prepare_call_arguments): If CALL target
11015 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11016 pc instead of looking it up using cselib_lookup and use
11017 Pmode for it if x has VOIDmode.
11018 * dwarf2out.c (gen_subprogram_die): If also both first and
11019 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11022 * function.c (assign_parms): For data.passed_pointer parms
11023 use MEM of data.entry_parm instead of data.entry_parm itself
11024 as DECL_INCOMING_RTL.
11025 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11026 also when passed and declared mode is the same, DECL_RTL
11027 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11030 2011-03-16 Jeff Law <law@redhat.com>
11032 PR rtl-optimization/37273
11033 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11034 handle them like argument loads from stack slots. Do not double
11035 count memory for memory constants and argument loads from stack slots.
11037 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11040 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11042 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11045 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11047 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11050 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11052 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11053 Clear call_arg_locations and call_arg_loc_last always.
11055 PR middle-end/48152
11056 * var-tracking.c (prepare_call_arguments): If argument needs to be
11057 passed by reference, adjust argtype and mode.
11059 2011-03-17 Richard Guenther <rguenther@suse.de>
11061 PR middle-end/48134
11062 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11063 a value make sure to fold the statement.
11065 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11068 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11069 return condition with !cfun->calls_alloca.
11071 2011-03-17 Richard Guenther <rguenther@suse.de>
11074 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11075 origin for decls in other ltrans units.
11076 (input_varpool_node): Likewise.
11078 2011-03-17 Richard Guenther <rguenther@suse.de>
11080 PR middle-end/48165
11081 * tree-object-size.c (compute_object_offset): Properly return
11082 the offset operand of MEM_REFs as sizetype.
11084 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11086 PR rtl-optimization/48141
11087 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11088 * dse.c: Include params.h.
11089 (active_local_stores_len): New variable.
11090 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11092 (record_store, check_mem_read_rtx): Decrease it when removing
11094 (scan_insn): Likewise. Increase it when adding to chain, if it
11095 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11096 set active_local_stores to NULL before the addition.
11097 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11099 PR rtl-optimization/48141
11100 * dse.c (record_store): If no positions are needed in an insn
11101 that cannot be deleted, at least unchain it from active_local_stores.
11103 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11106 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11107 (lookup_type_die_strip_naming_typedef): ... here.
11108 (get_context_die): Use it.
11109 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11110 the anonymous struct named by the naming typedef.
11112 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11115 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11116 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11118 2011-03-16 Jeff Law <law@redhat.com>
11120 * tree-vrp.c (identify_jump_threads): Slightly simplify type
11121 check for operands of conditional. Allow type to be a pointer.
11123 2011-03-16 Richard Guenther <rguenther@suse.de>
11125 PR tree-optimization/48149
11126 * fold-const.c (fold_binary_loc): Fold
11127 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11129 2011-03-16 Richard Guenther <rguenther@suse.de>
11131 PR tree-optimization/26134
11132 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11133 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11134 (non_rewritable_mem_ref_base): Handle complex type component
11135 accesses, constrain offsets for vector and complex extracts
11138 2011-03-16 Richard Guenther <rguenther@suse.de>
11140 PR tree-optimization/48146
11141 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11142 operands avoiding the need for renaming.
11144 2011-03-16 Richard Guenther <rguenther@suse.de>
11146 * gimple-fold.c (maybe_fold_reference): Open-code relevant
11147 constant folding. Move MEM_REF canonicalization first.
11148 Rely on fold_const_aggregate_ref for initializer folding.
11149 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11151 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11153 PR middle-end/48136
11154 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11155 arg0/arg1 or their arguments are always fold converted to matching
11158 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11161 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11164 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11165 Handle in-tree gold.
11166 (ld_vers): Extract binutils version for gold.
11167 (gcc_cv_ld_hidden): Handle gold here.
11168 (gcc_cv_lto_plugin): Determine level of linker plugin support.
11169 * configure: Regenerate.
11170 * config.in: Regenerate.
11171 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11172 -fuse-linker-plugin otherwise.
11173 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
11174 (LINK_COMMAND_SPEC): Use it.
11175 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11177 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11179 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11180 * calls.c: Remove debug.h include.
11181 (emit_call_1): Don't call virtual_call_token debug hook.
11182 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11183 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11184 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11185 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11186 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11187 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11188 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11189 dwarf2out_virtual_call): Remove.
11190 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11191 copy_call_info and virtual_call hooks.
11192 (dwarf2out_init): Don't initialize vcall_insn_table,
11193 debug_dcall_section and debug_vcall_section.
11194 (prune_unused_types): Don't mark nodes from dcall_table.
11195 (dwarf2out_finish): Don't output dcall or vcall tables.
11196 * final.c (final_scan_insn): Don't call direct_call or
11197 virtual_call debug hooks.
11198 * debug.h (struct gcc_debug_hooks): Remove direct_call,
11199 virtual_call_token, copy_call_info and virtual_call hooks.
11200 (debug_nothing_uid): Remove prototype.
11201 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11202 copy_call_info and virtual_call hooks.
11203 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11204 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11205 * debug.c (do_nothing_debug_hooks): Likewise.
11206 (debug_nothing_uid): Remove.
11207 * doc/invoke.texi (-fenable-icf-debug): Remove.
11208 * common.opt (-fenable-icf-debug): Likewise.
11210 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11211 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11212 call's MEM. Handle functions returning aggregate through a hidden
11213 first pointer. For virtual calls add clobbered pc to call arguments
11215 * dwarf2out.c (gen_subprogram_die): Emit
11216 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11220 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11221 * rtl.h (ENTRY_VALUE_EXP): Define.
11222 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11223 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11224 * print-rtl.c (print_rtx): Likewise.
11225 * gengtype.c (adjust_field_rtx_def): Likewise.
11226 * var-tracking.c (vt_add_function_parameter): Adjust
11227 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11228 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11229 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11230 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11231 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11233 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11234 Call var_location debug hook even on CALL_INSNs.
11235 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11236 * rtl.def (ENTRY_VALUE): New.
11237 * dwarf2out.c: Include cfglayout.h.
11238 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11239 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11240 (struct call_arg_loc_node): New type.
11241 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11242 tail_call_site_count): New variables.
11243 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11244 DW_TAG_GNU_call_site_parameter.
11245 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11246 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11247 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11248 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11249 and DW_AT_GNU_all_source_call_sites.
11250 (mem_loc_descriptor): Handle ENTRY_VALUE.
11251 (add_src_coords_attributes): Don't add enything if
11252 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11253 (dwarf2out_abstract_function): Save and clear call_arg_location,
11254 call_site_count and tail_call_site_count around dwarf2out_decl call.
11255 (gen_call_site_die): New function.
11256 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11257 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11258 (dwarf2out_function_decl): Clear call_arg_locations,
11259 call_arg_loc_last, set call_site_count and tail_call_site_count
11260 to -1 and free block_map.
11261 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11262 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
11263 followed by any real instructions.
11264 (dwarf2out_begin_function): Set call_site_count and
11265 tail_call_site_count to 0.
11266 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11267 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11268 attempt to force a DIE for it and worst case remove the attribute.
11269 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11270 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11272 * var-tracking.c: Include tm_p.h.
11273 (vt_stack_adjustments): For calls call note_register_arguments.
11274 (argument_reg_set): New variable.
11275 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11276 ensure the VALUE is resolved.
11277 (call_arguments): New variable.
11278 (prepare_call_arguments): New function.
11279 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11280 (struct expand_loc_callback_data): Add ignore_cur_loc field.
11281 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11282 always use the best expression.
11283 (vt_expand_loc): Add ignore_cur_loc argument.
11284 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11285 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11286 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11287 note for all calls.
11288 (vt_add_function_parameter): Use cselib_lookup_from_insn.
11289 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11290 argument. Don't call cselib_preserve_only_values and
11291 cselib_reset_table.
11292 (note_register_arguments): New function.
11293 (vt_initialize): Compute argument_reg_set. Call
11294 vt_add_function_parameters before processing basic blocks instead of
11295 afterwards. For calls call prepare_call_arguments before calling
11296 cselib_process_insn.
11297 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11298 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11299 (var-tracking.o): Depend on $(TM_P_H).
11300 * cfglayout.h (insn_scope): New prototype.
11301 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11302 * cfglayout.c (insn_scope): No longer static.
11303 * insn-notes.def (CALL_ARG_LOCATION): New.
11304 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11305 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11306 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11307 nothing for DECL_EXTERNAL BLOCK_VARS.
11309 2011-03-16 Alan Modra <amodra@gmail.com>
11312 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11313 create invalid offset address for vsx splat insn.
11314 * config/rs6000/predicates.md (splat_input_operand): New.
11315 * config/rs6000/vsx.md (vsx_splat_*): Use it.
11317 2011-03-15 Xinliang David Li <davidxl@google.com>
11320 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11321 (normalize_preds): New function.
11322 (is_use_properly_guarded): Normalize def predicates.
11324 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11327 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11328 in the output template.
11330 2011-03-15 Richard Guenther <rguenther@suse.de>
11332 PR middle-end/47650
11333 * tree-pretty-print.c (dump_function_declaration): Properly
11334 dump unprototyped and varargs function types.
11336 2011-03-15 Richard Guenther <rguenther@suse.de>
11338 PR tree-optimization/13954
11339 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11342 2011-03-15 Richard Guenther <rguenther@suse.de>
11344 PR tree-optimization/48037
11345 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11346 selects into BIT_FIELD_REFs.
11347 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11350 2011-03-15 Jakub Jelinek <jakub@redhat.com>
11352 PR tree-optimization/48129
11353 * builtins.c (fold_builtin_snprintf): Convert to type of
11354 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11355 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11357 2011-03-15 Richard Guenther <rguenther@suse.de>
11359 PR tree-optimization/41490
11360 * tree-ssa-dce.c (propagate_necessity): Handle returns without
11361 value but with VUSE.
11362 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11364 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11365 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11366 * tree-tailcall.c (find_tail_calls): Ignore returns.
11368 2011-03-15 Richard Guenther <rguenther@suse.de>
11370 PR middle-end/48031
11371 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11372 or variable-indexed array accesses when in gimple form.
11374 2011-03-15 Richard Guenther <rguenther@suse.de>
11376 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11378 2011-03-15 Alan Modra <amodra@gmail.com>
11381 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11382 presume symbol_refs without a symbol_ref_decl are suitably
11383 aligned, nor other trees we may see here. Handle anchor symbols.
11384 (legitimate_constant_pool_address_p): Comment. Add mode param.
11385 Check cmodel=medium addresses. Adjust all calls.
11386 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11387 creating cmodel=medium optimized access to locals.
11388 * config/rs6000/constraints.md (R): Pass QImode to
11389 legitimate_constant_pool_address_p.
11390 * config/rs6000/predicates.md (input_operand): Pass mode to
11391 legitimate_constant_pool_address_p.
11392 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11395 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11398 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11399 64-bit constants being loaded into registers other than GPRs such
11400 as loading 0 into a VSX register.
11402 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11404 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11406 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11408 PR middle-end/47917
11409 * builtins.c (fold_builtin_snprintf): New function.
11410 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11411 (fold_builtin_4): Likewise.
11413 PR middle-end/38878
11414 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11415 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
11416 and C - X == X also strip nops from +/-/p+ operand.
11417 When optimizing -X == C, fold C to arg0's type.
11420 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11421 emit it as add_AT_int instead of add_AT_unsigned.
11423 2011-03-14 Tom Tromey <tromey@redhat.com>
11425 * unwind-dw2.c: Include sys/sdt.h if it exists.
11426 (_Unwind_DebugHook): Use STAP_PROBE2.
11427 * config.in, configure: Rebuild.
11428 * configure.ac: Check for sys/sdt.h.
11430 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
11432 * config/i386/i386.md (ROUND_FLOOR): New constant.
11433 (ROUND_CEIL): Ditto.
11434 (ROUND_TRUNC): Ditto.
11435 (ROUND_MXCSR): Ditto.
11436 (ROUND_NO_EXC): Ditto.
11437 (rint<mode>2): Use new defines instead of numerical constants.
11438 (floor<mode>2): Ditto.
11439 (ceil<mode>2): Ditto.
11440 (btrunc<mode>2): Ditto.
11441 * config/i386/i386-builtin-types.def: Define ROUND function type
11443 * config/i386/i386.c (enum ix86_builtins): Add
11444 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11445 (struct builtin_description): Add
11446 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11447 (ix86_expand_sse_round): New static function.
11448 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11450 (ix86_builtin_vectorized_function): Handle
11451 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11453 2011-03-14 Tom Tromey <tromey@redhat.com>
11455 * c-parser.c (c_parser_asm_string_literal): Clear
11456 warn_overlength_strings.
11458 2011-03-14 Tom Tromey <tromey@redhat.com>
11460 * c-parser.c (disable_extension_diagnostics): Save
11461 warn_overlength_strings.
11462 (restore_extension_diagnostics): Restore warn_overlength_strings.
11464 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11466 * BASE-VER: Change to 4.7.0.
11468 2011-03-14 Richard Guenther <rguenther@suse.de>
11470 PR middle-end/48098
11471 * tree.c (build_vector_from_val): Adjust assert to requirements
11474 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11477 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11479 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
11481 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11482 terms of target_flags_explicit. Adjust copyright year.
11484 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11485 * config/rs6000/t-freebsd: New file. Add override for
11488 2011-03-13 Chris Demetriou <cgd@google.com>
11490 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11491 (-fno-diagnostics-show-option): this, to reflect current default.
11492 (-Werror=): Update text about -fno-diagnostics-show-option.
11494 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
11497 * config/rs6000/predicates.md (easy_vector_constant_add_self,
11498 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11499 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11500 mode is not V2DImode or V2DFmode.
11501 (vspltis_constant): Do not handle V2DImode and V2DFmode.
11502 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11503 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11505 (movdi_internal64): Likewise.
11507 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
11509 PR tree-optimization/47127
11510 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
11512 (set_cloog_options): Same.
11513 (scop_to_clast): Same.
11514 (print_clast_stmt): Do not call cloog_state_malloc and
11516 (print_generated_program): Same.
11518 * graphite-clast-to-gimple.h (cloog_state): Declared.
11519 (scop_to_clast): Adjust declaration.
11520 * graphite.c (cloog_state): Defined here.
11521 (graphite_initialize): Call cloog_state_malloc.
11522 (graphite_finalize): Call cloog_state_free.
11524 2011-03-11 Jason Merrill <jason@redhat.com>
11526 * attribs.c (lookup_attribute_spec): Take const_tree.
11529 2011-03-11 Joseph Myers <joseph@codesourcery.com>
11531 * config/sparc/sparc.c (sparc_option_override): Use
11532 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
11534 2011-03-11 Richard Guenther <rguenther@suse.de>
11536 PR tree-optimization/48067
11537 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
11538 multiplication result will be only used once on the target
11541 2011-03-11 Richard Guenther <rguenther@suse.de>
11543 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
11545 2011-03-11 Richard Guenther <rguenther@suse.de>
11548 * tree.c (find_decls_types_r): Do not walk types only reachable
11549 from IDENTIFIER_NODEs.
11551 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11553 PR middle-end/48044
11554 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
11555 all vnode->force_output nodes as needed.
11557 2011-03-11 Jason Merrill <jason@redhat.com>
11560 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
11561 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
11563 2011-03-11 Martin Jambor <mjambor@suse.cz>
11565 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
11568 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11570 PR tree-optimization/48063
11571 * ipa-inline.c (cgraph_decide_inlining): Don't try to
11572 inline functions called once if !tree_can_inline_p (node->callers).
11574 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
11576 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11578 * config/score/score3.c: Delete.
11579 * config/score/score3.h: Delete.
11580 * config/score/mul-div.S: Delete.
11581 * config/score/sfp-machine.h: Add new file.
11582 * config/score/constraints.md: Add new file.
11583 * config/score/t-score-softfp: Add new file.
11584 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11585 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11586 (score7_extra_constraint): Delete.
11587 (score7_option_override): Remove unused code.
11588 * config/score/score.c: Remove score3 and score5 define and code.
11589 * config/score/score.h: Remove score3 and score5 define and code.
11590 * config/score/score.md: Remove score3 template and unusual insn.
11591 * config/score/score.opt: Remove score3 and score5 options.
11593 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11595 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11596 when _HPUX_SOURCE is defined.
11597 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11599 2011-03-10 Jason Merrill <jason@redhat.com>
11602 * stor-layout.c (layout_type): Don't set structural equality
11603 on arrays of incomplete type.
11604 * tree.c (type_hash_eq): Handle comparing them properly.
11606 2011-03-10 Jakub Jelinek <jakub@redhat.com>
11609 * config/s390/s390.c (s390_delegitimize_address): Make sure the
11610 result mode matches original rtl mode.
11612 2011-03-10 Nick Clifton <nickc@redhat.com>
11614 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11615 (andsi3, andsi3_flags): Fix timings for three operand alternative.
11617 2011-03-09 Jakub Jelinek <jakub@redhat.com>
11619 PR rtl-optimization/47866
11620 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11621 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11622 if target wasn't scalar.
11623 * function.c (assign_stack_temp_for_type): Assert that neither
11624 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11625 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11627 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11629 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11631 * config/s390/s390-protos.h (s390_label_align): New prototype.
11632 * config/s390/s390.c (s390_label_align): New function.
11633 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11635 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11638 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11639 V2DI/V2DF constants. Only all 0's or all 1's are easy.
11640 (output_vec_const_move): Ditto.
11642 2011-03-08 Anatoly Sokolov <aesok@post.ru>
11644 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11645 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11646 * config/mips/mips.c (mips_preferred_reload_class): Make static.
11647 Change 'rclass' argument and result type to reg_class_t.
11648 (TARGET_PREFERRED_RELOAD_CLASS): Define.
11650 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
11652 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11653 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11654 (TARGET_MEMORY_MOVE_COST): Define.
11655 (avr_register_move_cost, avr_memory_move_cost): New Functions.
11657 2011-03-08 Jakub Jelinek <jakub@redhat.com>
11660 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11663 PR tree-optimization/48022
11664 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11667 2011-03-07 Jakub Jelinek <jakub@redhat.com>
11670 * var-tracking.c (find_use_val): Return NULL for
11671 cui->sets && cui->store_p BLKmode MEMs.
11673 2011-03-07 Anatoly Sokolov <aesok@post.ru>
11675 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11677 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11678 xstormy16_print_operand_address): Remove.
11679 * config/stormy16/stormy16.c (xstormy16_print_operand,
11680 xstormy16_print_operand_address): Make static.
11681 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11683 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
11686 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11687 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11690 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
11693 * cfgloopmanip.c (fix_bb_placements): Return immediately
11694 if FROM is BASE_LOOP's header.
11696 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
11698 * gimplify.c (gimplify_function_tree): Fix building calls
11699 to __builtin_return_address.
11701 2011-03-07 Alan Modra <amodra@gmail.com>
11703 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11704 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11705 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11706 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11708 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11709 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11710 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11711 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11712 * config/rs6000/rs6000.c
11713 (rs6000_elf_end_indicate_exec_stack): Rename to..
11714 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
11715 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
11716 (rs6000_file_start): ..here.
11717 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11718 file scope variables.
11719 (call_ABI_of_interest): New function.
11720 (init_cumulative_args): Set above vars when function return value
11721 is a float, vector, or small struct.
11722 (rs6000_function_arg_advance_1): Likewise for function args.
11723 (rs6000_va_start): Set rs6000_passes_float if variable arg function
11724 references float args.
11726 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
11728 * doc/cfg.texi: Remove "See" before @ref.
11729 * doc/invoke.texi: Likewise.
11731 2011-03-05 Jason Merrill <jason@redhat.com>
11733 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11735 2011-03-05 Anthony Green <green@moxielogic.com>
11737 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11739 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
11741 PR rtl-optimization/47899
11742 * cfgloopmanip.c (fix_bb_placements): Fix first argument
11743 to flow_loop_nested_p when moving the loop upward.
11745 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
11748 * arm.md (movhi_insn_arch4): Accept any immediate constant.
11750 2011-03-05 Jakub Jelinek <jakub@redhat.com>
11752 PR tree-optimization/47967
11753 * ipa-cp.c (build_const_val): Return NULL instead of creating
11754 VIEW_CONVERT_EXPR for mismatching sizes.
11755 (ipcp_create_replace_map): Return NULL if build_const_val failed.
11756 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11757 give up on versioning.
11759 2011-03-05 Alan Modra <amodra@gmail.com>
11762 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11763 full cmodel medium/large lo_sum + high addresses.
11765 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11767 * config/s390/s390.c (s390_decompose_address): Reject non-literal
11768 pool references in UNSPEC_LTREL_OFFSET.
11770 2011-03-04 Jan Hubicka <jh@suse.cz>
11773 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11774 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
11775 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
11777 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
11778 cgraph_add_thunk): Add node pointers.
11779 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
11780 associated to right node.
11781 (input_node): Update use of cgraph_same_body_alias
11782 and cgraph_add_thunk.
11784 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
11786 * config/i386/i386.opt (mprefer-avx128): New flag.
11787 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
11788 modes when the flag -mprefer-avx128 is on.
11790 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
11792 * dwarf2out.c (compare_loc_operands): Fix address handling.
11794 2011-03-04 Alan Modra <amodra@gmail.com>
11796 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11798 2011-03-04 Richard Guenther <rguenther@suse.de>
11800 PR middle-end/47968
11801 * expmed.c (extract_bit_field_1): Prefer vector modes that
11802 vec_extract patterns can handle.
11804 2011-03-04 Richard Guenther <rguenther@suse.de>
11806 PR middle-end/47975
11807 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11809 2011-03-04 Richard Henderson <rth@redhat.com>
11811 * explow.c (emit_stack_save): Remove 'after' parameter.
11812 (emit_stack_restore): Likewise.
11813 * expr.h: Update to match.
11814 * builtins.c, calls.c, stmt.c: Likewise.
11815 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11816 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11817 * function.c (expand_function_end): Insert the emit_stack_save
11818 sequence before parm_birth_insn instead of after.
11820 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
11822 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
11823 (ssse3_pmaddubsw128): Ditto.
11824 (ssse3_pmaddubsw): Ditto.
11826 2011-03-03 Steve Ellcey <sje@cup.hp.com>
11828 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
11830 2011-03-03 Jakub Jelinek <jakub@redhat.com>
11833 * gimplify.c (omp_add_variable): Only call omp_notice_variable
11834 on TYPE_SIZE_UNIT if it is a DECL.
11837 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
11838 first operand is not is_gimple_mem_ref_addr, try to fold it.
11839 If the operand still isn't is_gimple_mem_ref_addr, clear
11842 2011-03-03 Richard Guenther <rguenther@suse.de>
11844 PR middle-end/47283
11845 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
11847 (refs_may_alias_p_1): For release branches return true if
11848 we are confused by our input.
11850 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11852 * config/s390/s390.c (s390_function_value): Rename to ...
11853 (s390_function_and_libcall_value): ... this.
11854 (s390_function_value): New function.
11855 (s390_libcall_value): New function.
11856 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
11857 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
11858 target macro definitions.
11859 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
11861 2011-03-02 Joseph Myers <joseph@codesourcery.com>
11863 * config/i386/freebsd64.h (CC1_SPEC): Define.
11864 * config/i386/linux64.h (CC1_SPEC): Define.
11865 * config/i386/x86-64.h (CC1_SPEC): Don't define.
11867 2011-03-02 Anatoly Sokolov <aesok@post.ru>
11869 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11871 * config/stormy16/stormy16.c: Include reload.h.
11872 (xstormy16_memory_move_cost): New function.
11873 (TARGET_MEMORY_MOVE_COST): Define.
11875 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
11877 PR rtl-optimization/47925
11878 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
11879 with side effects. Remove the more-specific check for volatile asms.
11881 2011-03-02 Alan Modra <amodra@gmail.com>
11884 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
11885 toc relative addresses for valid offsets.
11887 2011-03-01 Richard Guenther <rguenther@suse.de>
11889 PR tree-optimization/47890
11890 * tree-vect-loop.c (get_initial_def_for_induction): Set
11891 related stmt properly.
11893 2011-03-01 Richard Guenther <rguenther@suse.de>
11896 * lto-streamer.c (lto_record_common_node): Also register
11897 the canonical type.
11899 2011-03-01 Richard Guenther <rguenther@suse.de>
11902 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11903 Do not stream DECL_ABSTRACT_ORIGIN.
11904 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11905 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11906 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11907 Do not stream DECL_ABSTRACT_ORIGIN.
11908 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11909 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11911 2011-02-28 Anatoly Sokolov <aesok@post.ru>
11913 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11914 FUNCTION_VALUE_REGNO_P): Remove.
11915 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11916 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11917 Add 'outgoing' argument.
11918 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11920 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11921 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11923 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
11926 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11927 (lookup_filename): Likewise.
11928 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11930 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
11931 Jakub Jelinek <jakub@redhat.com>
11933 PR middle-end/47893
11934 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11935 (assign_stack_local_1): Change last argument type to int.
11936 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11937 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
11938 don't record padding space into frame_space_list nor use those areas.
11939 (assign_stack_local): Adjust caller.
11940 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11941 of assign_stack_local, pass 0 as last argument.
11942 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11945 2011-02-28 Jakub Jelinek <jakub@redhat.com>
11948 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11949 Use target address_mode and pointer_mode hooks instead of hardcoded
11950 Pmode and ptr_mode. Handle some simple cases of extending if
11951 POINTERS_EXTEND_UNSIGNED < 0.
11952 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11953 Call convert_debug_memory_address.
11954 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11955 convert_debug_memory_address.
11957 PR middle-end/46790
11958 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11959 * configure: Regenerated.
11960 * config.in: Regenerated.
11961 * varasm.c (default_function_section): Return NULL
11962 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11964 2011-02-28 Martin Jambor <mjambor@suse.cz>
11966 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11967 the description to match the printed values.
11969 2011-02-28 Richard Guenther <rguenther@suse.de>
11971 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11972 of the copied scope tree.
11974 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11976 * doc/extend.texi (Function Attributes): Avoid deeply (and
11977 wrongly) nested tables.
11979 2011-02-27 Jakub Jelinek <jakub@redhat.com>
11981 PR middle-end/47903
11982 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11983 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11984 r isn't op0 nor op1.
11986 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11988 * config/avr/avr.md: Remove magic comment for emacs.
11990 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11993 * config/avr/avr.c (avr_option_override): Use error on bad options.
11994 (avr_help): New function.
11995 (TARGET_HELP): Define.
11997 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12000 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12001 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12003 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12005 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12006 (ARM Options): Ditto.
12007 (i386 and x86-64 Options): Ditto.
12008 (RX Options): Ditto.
12009 (SPARC Options): Ditto.
12011 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12013 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12014 FreeBSD 6 and later. Generally use cpu generic.
12016 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12018 * doc/cpp.texi: Update copyright years.
12020 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12023 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12025 2011-02-25 Jon Beniston <jon@beniston.com>
12028 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12029 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12030 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12031 (lm32_block_move_inline): Add type cast to remove warning.
12032 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12033 (gen_int_relational): Move declarations to start of function.
12035 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12037 PR tree-optimization/45470
12038 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12039 can throw internally only.
12040 * tree-vect-stmts.c (vectorizable_call): Likewise.
12042 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12044 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12045 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12046 * config/stormy16/stormy16-protos.h
12047 (xstormy16_preferred_reload_class): Remove.
12048 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12049 static. Change 'rclass' argument and return type to reg_class_t.
12050 (TARGET_PREFERRED_RELOAD_CLASS,
12051 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12053 2011-02-24 Richard Guenther <rguenther@suse.de>
12055 * lto-streamer-in.c (input_bb): Do not find referenced vars
12056 in debug statements.
12058 2011-02-23 Jason Merrill <jason@redhat.com>
12060 * common.opt (fabi-version): Document v5 and v6.
12062 2011-02-23 Richard Guenther <rguenther@suse.de>
12064 PR tree-optimization/47849
12065 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12067 2011-02-23 Jie Zhang <jie@codesourcery.com>
12069 * opts-common.c (decode_cmdline_option): Print empty string
12070 argument as "" in decoded->orig_option_with_args_text.
12071 * gcc.c (execute): Print empty string argument as ""
12072 in the verbose output.
12073 (do_spec_1): Keep empty string argument.
12075 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12077 * config.gcc: Declare score-* and crx-* obsolete.
12079 2011-02-23 Jie Zhang <jie@codesourcery.com>
12081 PR rtl-optimization/47763
12082 * web.c (web_main): Ignore naked clobber when replacing register.
12084 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12086 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12089 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12092 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12094 2011-02-22 Mike Stump <mikestump@comcast.net>
12096 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12098 * configure: Regenerate.
12100 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12102 PR rtl-optimization/46002
12103 * ira-color.c (update_copy_costs): Change class intersection
12104 test to reg_class_contents[] test of 'hard_regno'.
12106 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12108 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12109 than Driver option.
12110 * config/hpux11.opt (mt): Likewise.
12111 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12112 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12113 * config/vax/elf.opt (mno-asm-pic): Likewise.
12114 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12116 2011-02-21 Mike Stump <mikestump@comcast.net>
12119 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12120 tree so we can get save the type.
12121 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12122 for CFString instead of trying to use past the end of the builtins.
12123 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12124 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12125 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12126 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12127 Rename to darwin_builtin_cfstring.
12128 (darwin_init_cfstring_builtins): Return the built type.
12130 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12133 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12134 (_mm256_insert_epi64): Use _mm_insert_epi64.
12136 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12138 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12139 * config/stormy16/stormy16-protos.h
12140 (xstormy16_mode_dependent_address_p): Remove.
12141 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12142 Make static. Change return type to bool. Change argument type to
12143 const_rtx. Remove dead code.
12144 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12146 2011-02-21 Richard Guenther <rguenther@suse.de>
12149 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12150 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12151 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12153 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12154 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12156 2011-02-20 Richard Guenther <rguenther@suse.de>
12159 * tree.c (free_lang_data_in_decl): Clean builtins from
12160 the TU decl BLOCK_VARS.
12162 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
12166 * haifa-sched.c (fix_tick_ready): Skip tick computation
12169 2011-02-19 Richard Guenther <rguenther@suse.de>
12172 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12173 Remove lazy BLOCK_VARS streaming.
12174 (lto_input_ts_block_tree_pointers): Likewise.
12175 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12177 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12179 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12181 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12183 * config/i386/biarch32.h, config/i386/mach.h,
12184 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12186 2011-02-19 Jakub Jelinek <jakub@redhat.com>
12189 * config/i386/i386.md (peephole2 for shift and plus): Use
12190 operands[1] original mode in the first insn.
12192 2011-02-18 Mike Stump <mikestump@comcast.net>
12194 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12196 2011-02-18 Jan Hubicka <jh@suse.cz>
12198 PR middle-end/47788
12199 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12200 to zero when the function is not inlinable at all.
12202 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12204 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12205 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12206 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12207 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12208 * config/pa/t-pa64: Likewise.
12209 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12211 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12214 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12216 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12219 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12221 2011-02-18 Anatoly Sokolov <aesok@post.ru>
12223 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12224 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12225 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12226 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12227 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12228 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12229 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12230 m32r_load_postinc_p, m32r_store_preinc_predec_p,
12231 m32r_legitimate_address_p): New functions.
12232 * config/m32r/constraints.md (constraint "S"): Don't use
12233 STORE_PREINC_PREDEC_P.
12234 (constraint "U"): Don't use LOAD_POSTINC_P.
12236 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
12238 PR rtl-optimization/46178
12239 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12240 compute ira_hard_regno_cover_class[].
12242 2011-02-18 Richard Guenther <rguenther@suse.de>
12245 * lto-streamer.h (lto_global_var_decls): Declare.
12246 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12247 statics for global var processing.
12249 2011-02-18 Richard Guenther <rguenther@suse.de>
12251 PR tree-optimization/47737
12252 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12253 edge dominance check.
12255 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12258 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12259 avoid invalid rtx sharing.
12261 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
12263 * doc/cpp.texi (Obsolete Features): Add background on the
12264 origin of assertions.
12266 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
12268 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12270 * config/darwin.c (output_objc_section_asm_op): Added support for
12272 (is_objc_metadata): New.
12273 (darwin_objc2_section): New.
12274 (darwin_objc1_section): New.
12275 (machopic_select_section): Added support for ABI v1 and v2.
12276 (darwin_emit_objc_zeroed): New.
12277 (darwin_output_aligned_bss): Detect objc metadata and treat it
12279 (darwin_asm_output_aligned_decl_common): Same.
12280 (darwin_asm_output_aligned_decl_local): Same.
12281 * config/darwin-sections.def: Updated for ABI v1 and v2.
12282 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12283 compiling Objective-C code for the NeXT runtime, default to using
12284 ABI version 0 for 32-bit, and version 2 for 64-bit.
12286 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12288 * common.opt (optimize_fast): New Variable.
12289 * opts.c (default_options_optimization): Use opts->x_optimize_fast
12290 instead of local variable ofast.
12292 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
12294 * doc/invoke.texi (fobjc-abi-version): Documented.
12295 (fobjc-nilcheck): Documented.
12296 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12299 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12302 * common.opt (export-dynamic): New Driver option.
12303 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12305 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12307 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12309 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
12310 Jan Hubicka <jh@suse.cz>
12314 * cfgexpand.c (account_used_vars_for_block): Remove.
12315 (estimated_stack_frame_size): Use referenced vars.
12316 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12317 that were referenced in the original function. Test src_fn
12318 rather than cfun. Drop redundant get_var_ann.
12319 (setup_one_parameter): Drop redundant get_var_ann.
12320 (declare_return_variable): Likewise.
12321 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12322 (copy_arguments_for_versioning): Drop redundant get_var_ann.
12323 * ipa-inline.c (compute_inline_parameters): Do not compute
12324 disregard_inline_limits here.
12325 (compute_inlinable_for_current, pass_inlinable): New.
12326 (pass_inline_parameters): Require PROP_referenced_vars.
12327 * cgraphunit.c (cgraph_process_new_functions): Don't run
12328 compute_inline_parameters explicitly unless function is in SSA form.
12329 (cgraph_analyze_function): Set .disregard_inline_limits.
12330 * tree-sra.c (convert_callers): Compute inliner parameters
12331 only for functions already in SSA form.
12333 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12335 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12336 -mlittle-endian-data.
12338 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12340 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12341 -mno-fpu, not -fpu and -no-fpu.
12342 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12343 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12345 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
12348 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12349 input reload with PLUS RTX.
12351 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12353 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12354 of InverseVar(MDMX).
12356 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12358 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12361 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12363 * config/mn10300/mn10300.opt (mno-crt0): New.
12365 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12367 * config/m68k/uclinux.opt (static-libc): New Driver option.
12369 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12371 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12373 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12375 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12376 %{muser-extend-enabled}.
12378 2011-02-16 Richard Guenther <rguenther@suse.de>
12380 PR tree-optimization/47738
12381 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12382 the TODO from tree_predictive_commoning.
12384 2011-02-15 Jeff Law <law@redhat.com>
12387 2011-01-25 Jeff Law <law@redhat.com>
12389 PR rtl-optimization/37273
12390 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12391 handle them like argument loads from stack slots. Do not double
12392 count memory for memory constants and argument loads from stack slots.
12394 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12396 PR middle-end/47725
12397 * combine.c (cant_combine_insn_p): Revert the last change.
12399 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
12402 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12403 mode for vector constants. Remove code that checks for TImode.
12405 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12409 * cgraph.h (compute_inline_parameters): Return void.
12410 * ipa-inline.c (compute_inline_parameters): Adjust.
12412 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12416 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12418 * cfgexpand.c (estimated_stack_frame_size): Likewise.
12419 * ipa-inline.c (compute_inline_parameters): Adjust.
12421 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12425 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12426 Adjust all users. Pass FN to...
12427 * tree-flow-inline.h (first_referenced_var): ... this. Add
12429 * ipa-struct-reorg.c: Adjust.
12430 * tree-dfa.c: Adjust.
12431 * tree-into-ssa.c: Adjust.
12432 * tree-sra.c: Adjust.
12433 * tree-ssa-alias.c: Adjust.
12434 * tree-ssa-live.c: Adjust.
12435 * tree-ssa.c: Adjust.
12436 * tree-ssanames.c: Adjust.
12437 * tree-tailcall.c: Adjust.
12439 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12443 * tree-flow.h (referenced_var_lookup): Add fn parameter.
12444 Adjust all callers.
12445 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12446 * tree-flow-inline.h: Adjust.
12447 * gimple-pretty-print.c: Adjust.
12448 * tree-into-ssa.c: Adjust.
12449 * tree-ssa.c: Adjust.
12450 * cfgexpand.c: Adjust.
12452 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12454 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12455 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12456 (EXTRA_CONSTRAINT): Delete.
12457 * config/iq2000/constraints.md: New file.
12458 * config/iq2000/iq2000.md: Include it.
12459 (define_insn ""): Delete.
12460 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12461 unsupported constraint letters from patterns.
12462 (call_value, call_value_internal1): Likewise.
12463 (call_value_multiple_internal1): Likewise.
12465 2011-02-15 Nick Clifton <nickc@redhat.com>
12467 * config/mn10300/mn10300.c: Include tm-constrs.h.
12468 (struct liw_data): New data structure describing an LIW candidate
12470 (extract_bundle): Use struct liw_data. Allow small integer
12471 operands for some instructions.
12472 (check_liw_constraints): Use struct liw_data. Remove swapped
12473 parameter. Add comments describing the checks. Fix bug when
12474 assigning the source of liw1 to the source of liw2.
12475 (liw_candidate): Delete. Code moved into extract_bundle.
12476 (mn10300_bundle_liw): Use struct liw_data. Check constraints
12478 * config/mn10300/predicates.md (liw_operand): New predicate.
12479 Allows registers and small integer constants.
12480 * config/mn10300/constraints.md (O): New constraint. Accetps
12481 integers in the range -8 to +7 inclusive.
12482 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12483 for moving a small integer into a register. Give this alternative
12485 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12486 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12487 using the J,K,L and M constraints,
12488 (liw): Remove SI mode on second operands to allow for HI and QI
12490 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
12493 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12495 PR middle-end/47725
12496 * combine.c (cant_combine_insn_p): Check zero/sign extended
12499 2011-02-15 Richard Guenther <rguenther@suse.de>
12501 PR tree-optimization/47743
12502 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12503 for a non-type-compatible VN lookup bail out.
12505 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12507 * config/fr30/constraints.md: New file.
12508 * config/fr30/fr30.md: Include it.
12509 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
12510 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12511 (EXTRA_CONSTRAINT): Delete.
12513 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12515 * config/frv/constraints.md: New file.
12516 * config/frv/predicates.md: Include it.
12517 * config/frv/frv.c (reg_class_from_letter): Delete.
12518 (frv_option_override): Don't initialize it.
12519 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12520 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12521 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12522 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12523 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12524 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12525 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
12526 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
12527 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
12528 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
12529 (REG_CLASS_FROM_CONSTRAINT): Delete.
12531 2011-02-15 Jakub Jelinek <jakub@redhat.com>
12533 PR middle-end/47581
12534 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
12535 if frame size is 0 in a leaf function.
12537 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12540 * config/alpha/host-osf.c: New file.
12541 * config/alpha/x-osf: New file.
12542 * config.host (alpha*-dec-osf*): Use it.
12544 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12546 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12547 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
12548 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
12549 (rx_mode_dependent_address_p): ...this. Make static. Change argument
12551 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12553 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12555 * config/stormy16/constraints.md: New file.
12556 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
12557 Use satisfies_constraint_Q and satisfies_constraint_R.
12558 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
12560 (xstormy16_legitiamte_address_p): Declare.
12561 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
12562 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12563 (EXTRA_CONSTRAINT): Delete.
12564 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12566 (xstormy16_extra_constraint_p): Delete.
12568 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
12570 PR tree-optimization/46494
12571 * loop-unroll.c (split_edge_and_insert): Adjust comment.
12572 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
12573 (pass_rtl_loop_done): Add TODO_verify_flow.
12574 * fwprop.c (pass_rtl_fwprop): Likewise.
12575 * modulo-sched.c (pass_sms): Likewise.
12576 * tree-ssa-dom.c (pass_dominator): Likewise.
12577 * tree-ssa-loop-ch.c (pass_ch): Likewise.
12578 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12579 (pass_tree_loop_done): Likewise.
12580 * tree-ssa-pre.c (execute_pre): Likewise.
12581 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12582 * tree-ssa-sink.c (pass_sink_code): Likewise.
12583 * tree-vrp.c (pass_vrp): Likewise.
12585 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12587 * config/v850/constraints.md: New file.
12588 * config/v850/v850.md: Include it.
12589 * config/v850/predicates.md (reg_or_0_operand): Use
12590 satisfies_constraint_G.
12591 (special_symbolref_operand): Use satisfies_constraint_K.
12592 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12593 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12594 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12595 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12596 (EXTRA_CONSTRAINT): Delete.
12597 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12598 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12599 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12601 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12604 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12607 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12609 * config/mcore/constraints.md: New file.
12610 * config/mcore/mcore.md: Include it.
12611 * config/mcore/mcore.c (reg_class_from_letter): Delete.
12612 * config/mcore/mcore.h (reg_class_from_letter): Delete.
12613 (REG_CLASS_FROM_LETTER): Delete.
12614 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12615 insn_const_int_ok_for_constraint.
12616 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12617 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12618 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12619 (EXTRA_CONSTRAINT): Delete.
12621 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12624 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12625 (IS_SIGHANDLER): Define.
12626 (sparc64_is_sighandler): New function, split off from
12627 sparc64_fallback_frame_state.
12628 (sparc_is_sighandler): New function, split off from
12629 sparc_fallback_frame_state.
12630 (sparc64_fallback_frame_state): Merge with ...
12631 (sparc_fallback_frame_state): ... this into ...
12632 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12633 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
12634 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
12635 stack instead of hardcoded offsets.
12637 2011-02-14 Andriy Gapon <avg@freebsd.org>
12640 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12642 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12644 * configure: Regenerate.
12646 2011-02-12 Joseph Myers <joseph@codesourcery.com>
12649 * gcc.c (asm_options): Correct spec matching --target-help.
12651 2011-02-12 Martin Jambor <mjambor@suse.cz>
12653 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12654 to gimple call error.
12656 2011-02-12 Mike Stump <mikestump@comcast.net>
12658 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12659 comments in backslash regions.
12661 2011-02-12 Mike Stump <mikestump@comcast.net>
12662 Jakub Jelinek <jakub@redhat.com>
12663 Iain Sandoe <iains@gcc.gnu.org>
12666 * dwarf2out.c (output_cfa_loc): When required, apply the
12667 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12668 (output_loc_sequence): Likewise.
12669 (output_loc_operands_raw): Likewise.
12670 (output_loc_sequence_raw): Likewise.
12671 (output_cfa_loc): Likewise.
12672 (output_loc_list): Suppress register number adjustment when
12673 calling output_loc_sequence()
12674 (output_die): Likewise.
12676 2011-02-12 Anatoly Sokolov <aesok@post.ru>
12678 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12680 * config/xtensa/xtensa.c (xtensa_register_move_cost,
12681 xtensa_memory_move_cost): New functions.
12682 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12684 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
12687 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12688 in the current directory.
12689 * configure: Rebuilt.
12691 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12693 * config/darwin.c (darwin_override_options): Add a hunk missed
12694 from the commit of r168571. Trim comment line lengths and
12695 correct indents of the preceding block.
12697 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12699 * gcc.c (driver_handle_option): Concatenate the argument to -F with
12702 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12704 * common.opt (nostartfiles): New Driver option.
12706 2011-02-11 Xinliang David Li <davidxl@google.com>
12708 PR tree-optimization/47707
12709 * tree-chrec.c (convert_affine_scev): Keep type precision.
12711 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
12713 PR tree-optimization/47420
12714 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12716 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
12718 PR rtl-optimization/47614
12719 * rtl.h (check_for_inc_dec): Declare.
12720 * dse.c (check_for_inc_dec): Externalize...
12721 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12722 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12724 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12727 * gcc.c (main): Do not compile inputs if there were errors in
12729 * opts-common.c (read_cmdline_option): Check for wrong language
12730 after other error checks.
12732 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
12734 * cgraph.c: Fix comment typos.
12735 * cgraph.h: Likewise.
12736 * cgraphunit.c: Likewise.
12737 * ipa-cp.c: Likewise.
12738 * ipa-inline.c: Likewise.
12739 * ipa-prop.c: Likewise.
12740 * ipa-pure-const.c: Likewise.
12741 * ipa-ref.c: Likewise.
12742 * ipa-reference.c: Likewise.
12744 2011-02-11 Jakub Jelinek <jakub@redhat.com>
12747 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12749 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12752 * doc/sourcebuild.texi (Require Support): Document
12753 dg-require-ascii-locale.
12755 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
12757 * doc/lto.texi (Write summary): Fix missing parentheses.
12759 2011-02-10 DJ Delorie <dj@redhat.com>
12761 * config/m32c/m32c.c (m32c_option_override): Disable
12762 -fcombine-stack-adjustments until flag value tracking and compare
12763 optimization can be rewritten.
12765 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
12767 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12769 (PROCESSOR_DEFAULT64): Likewise.
12771 2011-02-10 Richard Henderson <rth@redhat.com>
12773 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12774 change from 2011-02-03.
12775 * config/rx/rx.c (flags_from_code): Likewise.
12776 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
12777 is valid, n/pz otherwise.
12778 (rx_select_cc_mode): Return CCmode if Y is not zero.
12780 2011-02-10 Richard Guenther <rguenther@suse.de>
12782 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
12784 2011-02-10 Richard Guenther <rguenther@suse.de>
12786 PR tree-optimization/47677
12787 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
12789 2011-02-10 Jakub Jelinek <jakub@redhat.com>
12792 * combine.c (make_compound_operation): Only change shifts into
12793 multiplication for SCALAR_INT_MODE_P.
12795 2011-02-10 Jie Zhang <jie@codesourcery.com>
12799 2011-02-05 Jie Zhang <jie@codesourcery.com>
12801 * web.c (entry_register): Don't clobber the number of the
12802 first uninitialized reference in used[].
12804 2011-02-09 Richard Guenther <rguenther@suse.de>
12806 PR tree-optimization/47664
12807 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12810 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
12814 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12816 (PROCESSOR_DEFAULT64): Same.
12817 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
12819 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12821 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
12823 2011-02-09 Martin Jambor <mjambor@suse.cz>
12825 PR middle-end/45505
12826 * tree-sra.c (struct access): New flags grp_scalar_read and
12827 grp_scalar_write. Changed description of assignment read and write
12829 (dump_access): Dump new flags, reorder all of them.
12830 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
12831 to detect multiple scalar reads.
12832 (analyze_access_subtree): Use the new scalar read write flags instead
12833 of the old flags. Adjusted comments.
12835 2011-02-08 DJ Delorie <dj@redhat.com>
12838 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
12841 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12843 * config/m68k/uclinux.opt: New.
12844 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
12846 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12848 * config/cris/elf.opt (sim): New Driver option.
12850 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12852 * config/xtensa/elf.opt: New.
12853 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
12855 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12857 * config/vax/elf.opt: New.
12858 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
12860 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12862 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
12864 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12866 * config/gnu-user.opt: New.
12867 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
12868 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
12869 *-*-uclinux*): Use gnu-user.opt.
12871 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
12873 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
12874 * config/i386/gnu.h (CPP_SPEC): Likewise.
12876 2011-02-08 Ian Lance Taylor <iant@google.com>
12878 * common.opt (fcx-limited-range): Add SetByCombined flag.
12879 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
12880 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
12881 (fassociative-math, freciprocal-math): Likewise.
12882 (funsafe-math-optimizations): Likewise.
12883 * opth-gen.awk: Handle SetByCombined.
12884 * optc-gen.awk: Likewise.
12885 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
12886 (set_unsafe_math_optimizations_flags): Likewise.
12887 * doc/options.texi (Option properties): Document SetByCombined.
12889 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12891 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
12892 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
12893 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
12894 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12895 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12897 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
12899 PR tree-optimization/46834
12900 PR tree-optimization/46994
12901 PR tree-optimization/46995
12902 * graphite-sese-to-poly.c (used_outside_reduction): New.
12903 (detect_commutative_reduction): Call used_outside_reduction.
12904 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12905 translate_scalar_reduction_to_array only when at least one
12906 loop-phi/close-phi tuple has been detected.
12908 2011-02-08 Richard Guenther <rguenther@suse.de>
12910 PR middle-end/47639
12911 * tree-vect-generic.c (expand_vector_operations_1): Update
12913 (expand_vector_operations): ... not here. Cleanup EH info
12914 and the CFG if required.
12916 2011-02-08 Richard Guenther <rguenther@suse.de>
12918 PR tree-optimization/47641
12919 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12920 require type compatibility.
12922 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12924 * gimple-low.c (lower_function_body): Don't remove the location of
12925 the return statement here.
12926 (lower_gimple_return): Do it here instead but only if the return
12927 statement is actually used twice.
12929 2011-02-08 Richard Guenther <rguenther@suse.de>
12931 PR tree-optimization/47632
12932 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12933 unused up_to_stmt parameter, return whether cfg-cleanup is
12934 necessary, remove EH info properly.
12935 (forward_propagate_into_gimple_cond): Adjust caller.
12936 (forward_propagate_into_cond): Likewise.
12937 (forward_propagate_comparison): Likewise.
12938 (tree_ssa_forward_propagate_single_use_vars): Make
12939 forward_propagate_comparison case similar to the two others.
12941 2011-02-08 Nick Clifton <nickc@redhat.com>
12943 * config/mn10300/mn10300.opt (mliw): New command line option.
12944 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12945 (liw_bundling): New automaton.
12946 (liw): New attribute.
12947 (liw_op): New attribute.
12948 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12949 (movsi_internal): Add LIW attributes.
12950 (andsi3): Likewise.
12951 (iorsi3): Likewise.
12952 (xorsi3): Likewise.
12953 (addsi3): Separate register and immediate alternatives.
12954 Add LIW attributes.
12955 (subsi3): Likewise.
12957 (aslsi3): Likewise.
12958 (lshrsi3): Likewise.
12959 (ashrsi3): Likewise.
12960 (liw): New pattern.
12961 * config/mn10300/mn10300.c (liw_op_names): New
12962 (mn10300_print_operand): Handle 'W' operand descriptor.
12963 (extract_bundle): New function.
12964 (check_liw_constraints): New function.
12965 (liw_candidate): New function.
12966 (mn10300_bundle_liw): New function.
12967 (mn10300_reorg): New function.
12968 (TARGET_MACHINE_DEPENDENT_REORG): Define.
12969 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12970 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12971 __LIW__ or __NO_LIW__.
12972 * doc/invoke.texi: Describe the -mliw command line option.
12974 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12976 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12977 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12978 pthread_mutex_unlock): Remove.
12979 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12980 * config/pa/t-pa64: Likewise.
12981 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12982 shared libc if not linking against libpthread.
12983 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12985 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
12988 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12989 on 10.6 and later to ensure that we always use the unwinder from
12990 the system. Only add -no_compact_unwind when tarteting darwin
12993 2011-02-07 Steve Ellcey <sje@cup.hp.com>
12996 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12997 (vec_interleave_lowv2sf): Ditto.
12998 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12999 (vec_extract_oddv2sf): Ditto.
13001 2011-02-07 Mike Stump <mikestump@comcast.net>
13004 Add __ieee_divdc3 entry point.
13005 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13007 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13008 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13009 * config/darwin.c (darwin_rename_builtins): Add.
13010 * config/darwin-protos.h (darwin_rename_builtins): Add.
13012 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13015 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13018 2011-02-07 Mike Stump <mikestump@comcast.net>
13020 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13022 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13025 * config/avr/libgcc.S (exit): Move .endfunc
13027 2011-02-07 Richard Guenther <rguenther@suse.de>
13029 PR tree-optimization/47615
13030 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13031 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13032 (run_scc_vn): Initialize it.
13033 (visit_reference_op_load): Use it.
13034 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13036 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13038 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13039 DImode trapping arithmetic libfuncs.
13041 2011-02-07 Richard Guenther <rguenther@suse.de>
13043 PR tree-optimization/47621
13044 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13046 (execute_update_addresses_taken): ... here. Make it more
13047 conservative in what we accept.
13049 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13051 * config/sparc/freebsd.h (ASM_SPEC): Define.
13052 * config/sparc/vxworks.h (ASM_SPEC): Define.
13054 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13056 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13058 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13060 * doc/invoke.texi: Remove reference to compiler internals from
13061 user documentation.
13063 * reg-notes.def: Remove REG_VALUE_PROFILE.
13064 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13066 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13068 PR middle-end/47610
13069 * varasm.c (default_section_type_flags): If decl is NULL,
13070 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13072 2011-02-05 Jie Zhang <jie@codesourcery.com>
13075 * web.c (entry_register): Don't clobber the number of the
13076 first uninitialized reference in used[].
13078 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13080 PR tree-optimization/46194
13081 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13082 (build_classic_dist_vector_1): Do not represent classic distance
13083 vectors when the access functions are variating in different loops.
13085 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13087 * config/mips/iris6.opt: New.
13088 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13090 2011-02-04 Richard Henderson <rth@redhat.com>
13091 Steve Ellcey <sje@cup.hp.com>
13094 * config/ia64/predicates.md (mux1_brcst_element): New.
13095 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13096 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13097 (ia64_unpack_sign): New.
13098 (ia64_expand_unpack): Rewrite using new routines.
13099 (ia64_expand_widen_sum): Ditto.
13100 (ia64_expand_dot_prod_v8qi): Ditto.
13101 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13102 routines, add endian check.
13103 (pmpy2_even): Rename from pmpy2_r, add endian check.
13104 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13105 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13106 (vec_widen_smult_hi_v4hi): Ditto.
13107 (vec_widen_umult_lo_v4hi): Ditto.
13108 (vec_widen_umult_hi_v4hi): Ditto.
13109 (mulv2si3): Change endian checks.
13110 (sdot_prodv4hi): Rewrite with new calls.
13111 (udot_prodv4hi): New.
13112 (vec_pack_ssat_v4hi): Add endian check.
13113 (vec_pack_usat_v4hi): Ditto.
13114 (vec_pack_ssat_v2si): Ditto.
13115 (max1_even): Rename from max1_r, add endian check.
13116 (max1_odd): Rename from max1_l, add endian check.
13117 (*mux1_rev): Format change.
13118 (*mux1_mix): Ditto.
13119 (*mux1_shuf): Ditto.
13120 (*mux1_alt): Ditto.
13121 (*mux1_brcst_v8qi): Use new predicate.
13122 (vec_extract_evenv8qi): Remove endian check.
13123 (vec_extract_oddv8qi): Ditto.
13124 (vec_interleave_lowv4hi): Format change.
13125 (vec_interleave_highv4hi): Ditto.
13126 (mix2_even): Rename from mix2_r, add endian check.
13127 (mix2_odd): Rename from mux2_l, add endian check.
13128 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13129 (vec_extract_evenodd_helper): Format change.
13130 (vec_extract_evenv4hi): Remove endian check.
13131 (vec_extract_oddv4hi): Remove endian check.
13132 (vec_interleave_lowv2si): Format change.
13133 (vec_interleave_highv2si): Format change.
13134 (vec_initv2si): Remove endian check.
13135 (vecinit_v2si): Add endian check.
13136 (reduc_splus_v2sf): Add endian check.
13137 (reduc_smax_v2sf): Ditto.
13138 (reduc_smin_v2sf): Ditto.
13139 (vec_initv2sf): Remove endian check.
13140 (fpack): Add endian check.
13141 (fswap): Add endian check.
13142 (vec_interleave_highv2sf): Add endian check.
13143 (vec_interleave_lowv2sf): Add endian check.
13144 (fmix_lr): Add endian check.
13145 (vec_setv2sf): Format change.
13146 (*vec_extractv2sf_0_be): Use shift to extract operand.
13147 (*vec_extractv2sf_1_be): New.
13148 (vec_pack_trunc_v4hi): Add endian check.
13149 (vec_pack_trunc_v2si): Format change.
13151 2011-02-04 Jakub Jelinek <jakub@redhat.com>
13153 PR inline-asm/23200
13154 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
13155 do bb, locus and block comparison and disallow loads if it is not set.
13156 (stmt_is_replaceable_p): New function.
13157 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13159 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13160 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13162 * tree-flow.h (stmt_is_replaceable_p): New prototype.
13164 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13166 * config/rs6000/xilinx.opt: New.
13167 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13169 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13171 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13173 2011-02-03 Anatoly Sokolov <aesok@post.ru>
13175 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13176 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13177 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13178 secondary_reload_info, xtensa_secondary_reload): Remove.
13179 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13180 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13181 (xtensa_preferred_reload_class): Make static. Change return and
13182 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13183 Use CONST_DOUBLE_P predicate.
13184 (xtensa_preferred_output_reload_class): New function.
13185 (xtensa_secondary_reload): Make static.
13187 2011-02-03 Joseph Myers <joseph@codesourcery.com>
13189 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13190 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13191 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13193 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13195 PR middle-end/31490
13196 * output.h (SECTION_RELRO): Define.
13197 (SECTION_MACH_DEP): Adjust.
13198 (get_variable_section): New prototype.
13199 * varpool.c (varpool_finalize_named_section_flags): New function.
13200 (varpool_assemble_pending_decls): Call it.
13201 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13202 * cgraphunit.c (cgraph_output_in_order): Call
13203 varpool_finalize_named_section_flags.
13204 * varasm.c (get_section): Allow section flags conflicts between
13205 relro and read-only sections if the section hasn't been declared yet.
13206 Set SECTION_OVERRIDE after diagnosing section type conflict.
13207 (get_variable_section): No longer static.
13208 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13209 readonly sections that need relocations.
13210 (decl_readonly_section_1): New function.
13211 (decl_readonly_section): Use it.
13214 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
13215 Steve Ellcey <sje@cup.hp.com>
13217 PR middle-end/31490
13218 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13219 if section attribute used.
13221 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13223 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13224 * config/darwin.c (SECTION_NO_ANCHOR): Define.
13225 (darwin_init_sections): Remove assertion.
13227 2011-02-03 Nick Clifton <nickc@redhat.com>
13229 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13231 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13232 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13233 instead of "n" and "pz".
13234 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13237 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13240 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13241 fma, expand FMA_EXPR as fma{,f,l} call.
13244 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13245 copy them into a unsigned char variable and pass address of it to
13246 lto_output_data_stream.
13249 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13250 around backend_init_target and lang_dependent_init_target calls.
13251 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13252 (verify_cgraph_node): Don't call set_cfun here. Use
13253 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13254 Set error_found for incorrectly represented calls to thunks.
13256 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13259 PR rtl-optimization/43494
13260 * rtl.h (for_each_inc_dec_fn): New type.
13261 (for_each_inc_dec): Declare.
13262 * rtlanal.c (struct for_each_inc_dec_ops): New type.
13263 (for_each_inc_dec_find_inc_dec): New fn.
13264 (for_each_inc_dec_find_mem): New fn.
13265 (for_each_inc_dec): New fn.
13266 * dse.c (struct insn_size): Remove.
13267 (replace_inc_dec, replace_inc_dec_mem): Remove.
13268 (emit_inc_dec_insn_before): New fn.
13269 (check_for_inc_dec): Use it, along with for_each_inc_dec.
13270 (canon_address): Pass mem modes to cselib_lookup.
13271 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
13272 (cselib_lookup_from_insn): Likewise.
13273 (cselib_subst_to_values): Likewise.
13274 * cselib.c (find_slot_memmode): New var.
13275 (cselib_find_slot): New fn. Use it instead of
13276 htab_find_slot_with_hash everywhere.
13277 (entry_and_rtx_equal_p): Use find_slot_memmode.
13278 (autoinc_split): New fn.
13279 (rtx_equal_for_cselib_p): Rename and implement in terms of...
13280 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
13281 Deal with autoinc. Special-case recursion into MEMs.
13282 (cselib_hash_rtx): Likewise.
13283 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
13284 address and MEM modes.
13285 (cselib_subst_to_values): Add memmode, pass it on.
13287 (cselib_lookup): Add memmode argument, pass it on.
13288 (cselib_lookup_from_insn): Add memmode.
13289 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13290 (struct cselib_record_autoinc_data): New.
13291 (cselib_record_autoinc_cb): New fn.
13292 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
13293 mode to cselib_lookup. Reset autoinced REGs here instead of...
13294 (cselib_process_insn): ... here.
13295 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13297 (add_uses): Likewise, also to cselib_subst_to_values.
13298 (add_stores): Likewise.
13299 * sched-deps.c (add_insn_mem_dependence): Pass mode to
13300 cselib_subst_to_values.
13301 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
13302 * gcse.c (do_local_cprop): Adjusted.
13303 * postreload.c (reload_cse_simplify_set): Adjusted.
13304 (reload_cse_simplify_operands): Adjusted.
13305 * sel-sched-dump (debug_mem_addr_value): Pass mode.
13307 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13309 PR tree-optimization/45122
13310 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13311 unsafe assumptions when there's more than one loop exit.
13313 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13316 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13317 Document using vector double with the load/store builtins, and
13318 that the load/store builtins always use Altivec instructions.
13320 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13321 to use altivec memory instructions, even on VSX.
13322 (vector_altivec_store_<mode>): Ditto.
13324 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13327 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13328 V2DF, V2DI support to load/store overloaded builtins.
13330 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13331 altivec load/store builtins for V2DF/V2DI types.
13333 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13334 set avoid indexed addresses on power6 if -maltivec.
13335 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13336 vector_altivec_load/vector_altivec_store builtins.
13337 (altivec_expand_st_builtin): Ditto.
13338 (altivec_expand_builtin): Add VSX memory builtins.
13339 (rs6000_init_builtins): Add V2DI types to internal types.
13340 (altivec_init_builtins): Add support for V2DF/V2DI altivec
13341 load/store builtins.
13342 (rs6000_address_for_altivec): Insure memory address is appropriate
13345 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13346 vec_vsx_ld and vec_vsx_st.
13347 (vsx_store_<mode>): Ditto.
13349 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13350 variables to hold long long types for VSX vector memory builtins.
13351 (RS6000_BTI_unsigned_long_long): Ditto.
13352 (long_long_integer_type_internal_node): Ditti.
13353 (long_long_unsigned_type_internal_node): Ditti.
13355 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13356 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13357 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13359 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13361 (vec_vsx_st): Ditto.
13363 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13365 * config/pa/pa-hpux10.opt: New.
13366 * config/hpux11.opt (pthread): New Driver option.
13367 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13368 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13370 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13372 * config/ia64/vms.opt: New.
13373 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13375 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
13378 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13379 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13380 generator functions.
13381 (vsx_floatuns<VSi><mode>2): Ditto.
13382 (vsx_fix_trunc<mode><VSi>2): Ditto.
13383 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13385 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13387 * config/i386/djgpp.opt (posix): New Driver option.
13389 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
13391 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13392 Move to the unsupported targets list.
13394 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
13396 PR rtl-optimization/47525
13397 * df-scan.c: Update copyright years.
13398 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13399 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13401 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13403 * config/i386/sysv4.h (TARGET_VERSION): Remove.
13404 (SUBTARGET_RETURN_IN_MEMORY): Remove.
13405 (ASM_OUTPUT_ASCII): Remove.
13406 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13408 2011-02-02 Jeff Law <law@redhat.com>
13410 PR middle-end/47543
13411 * reload.c (find_reloads_address): Handle reg+d address where both
13412 components are invalid by reloading the entire address.
13414 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13415 Richard Guenther <rguenther@suse.de>
13417 PR tree-optimization/40979
13419 * passes.c (init_optimization_passes): After LIM call copy_prop
13420 and DCE to clean up.
13421 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13423 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13425 PR tree-optimization/47576
13426 PR tree-optimization/47555
13427 * doc/invoke.texi (scev-max-expr-complexity): Documented.
13428 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13429 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13430 * tree-scalar-evolution.c (follow_ssa_edge): Use
13431 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13433 2011-02-02 Richard Guenther <rguenther@suse.de>
13435 PR tree-optimization/47566
13436 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13438 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13442 * tree-inline.c (declare_return_variable): Remove unused caller
13447 * tree-flow-inline.h (clear_is_used, is_used_p): New.
13448 * cfgexpand.c (account_used_vars_for_block): Use them.
13449 * tree-nrv.c (tree_nrv): Likewise.
13450 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13451 (dump_scope_block): Likewise.
13452 (remove_unused_locals): Likewise.
13456 * tree-inline.c (declare_return_variable): Add result decl to
13457 local decls only once.
13458 * gimple-low.c (record_vars_into): Mark newly-created variables
13461 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13467 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13469 (no_real_insns_p, schedule_block, set_priorities): Drop special
13470 treatment of boundary debug insns.
13471 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13472 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13473 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13474 (BOUNDARY_DEBUG_INSN_P): Likewise.
13475 (SCHEDULE_DEBUG_INSN_P): Likewise.
13476 * sched-rgn.c (init_ready_list): Drop special treatment of
13477 boundary debug insns.
13478 * final.c (rest_of_clean_state): Clear notes' BB.
13480 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13482 * config/openbsd.opt (assert=): New Driver option.
13484 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13486 * config/i386/nto.opt: New.
13487 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13489 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13491 * config/i386/netware.opt: New.
13492 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13494 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13496 * config/interix.opt (posix): New Driver option.
13498 2011-02-01 DJ Delorie <dj@redhat.com>
13500 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13502 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13505 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
13507 PR tree-optimization/47561
13508 * toplev.c (process_options): Print the Graphite flags. Add
13509 flag_loop_flatten to the list of options requiring Graphite.
13511 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13513 * config/i386/cygming.opt (posix): New Driver option.
13515 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13517 * config/arm/vxworks.opt: New.
13518 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13520 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13522 * config/alpha/elf.opt: New.
13523 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13524 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13526 2011-02-01 Richard Guenther <rguenther@suse.de>
13528 PR tree-optimization/47559
13529 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
13530 store-motion on references that can throw.
13532 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
13534 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
13535 * tree-pass.h (TDF_CSELIB): New macro.
13536 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
13537 cselib_lookup): Check for it rather than for TDF_DETAILS.
13539 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
13542 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
13543 is HOST_BIT_BUCKET.
13545 * opts.c (finish_options): Don't add x_aux_base_name if it is
13548 2011-02-01 Richard Guenther <rguenther@suse.de>
13550 PR tree-optimization/47555
13552 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
13554 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13556 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
13559 * config/lm32/t-lm32: Add multilib for all CPU options.
13561 2011-02-01 Richard Guenther <rguenther@suse.de>
13563 PR tree-optimization/47541
13564 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13565 sure to have a field at offset zero.
13567 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13569 * config/arc/arc.opt (EB, EL): New Driver options.
13571 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13573 * config/alpha/osf5.opt: New.
13574 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
13576 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13578 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13580 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
13582 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13583 -floop-interchange.
13584 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13585 is an alias of -floop-interchange and that it requires the
13586 Graphite infrastructure.
13587 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13588 flag_loop_interchange based on the value of flag_tree_loop_linear.
13590 2011-01-31 Jakub Jelinek <jakub@redhat.com>
13591 Richard Guenther <rguenther@suse.de>
13593 PR tree-optimization/47538
13594 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13595 type instead of r1type, except for comparisons. For right
13596 shifts and comparisons punt if there are mismatches in
13597 sizetype vs. non-sizetype types.
13599 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13601 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13604 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13606 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13608 * configure: Regenerate.
13610 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13612 * configure.ac (gcc_cv_ld_static_option): Define.
13613 (gcc_cv_ld_dynamic_option): Define.
13614 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13616 (HAVE_LD_STATIC_DYNAMIC): Update message.
13617 (LD_STATIC_OPTION): Define.
13618 (LD_DYNAMIC_OPTION): Define.
13619 * configure: Regenerate.
13620 * config.in: Regenerate.
13621 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13622 HAVE_LD_STATIC_DYNAMIC]: Use them.
13624 2011-01-31 Nick Clifton <nickc@redhat.com>
13626 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13627 registers inside interrupt handlers if the handler is not a leaf
13630 2011-01-31 Nick Clifton <nickc@redhat.com>
13632 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13633 reg_renumber returning an INVALID_REGNUM.
13635 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13638 * doc/install.texi: Document host options discarded when cross
13639 configuring target libraries.
13641 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13644 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13647 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13649 (no_real_insns_p, schedule_block, set_priorities): Drop special
13650 treatment of boundary debug insns.
13651 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13652 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13653 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13654 (BOUNDARY_DEBUG_INSN_P): Likewise.
13655 (SCHEDULE_DEBUG_INSN_P): Likewise.
13656 * sched-rgn.c (init_ready_list): Drop special treatment of
13657 boundary debug insns.
13658 * final.c (rest_of_clean-state): Clear notes' BB.
13660 2011-01-31 Alan Modra <amodra@gmail.com>
13662 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13663 toc relative expressions as we do in print_operand_address.
13665 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
13667 * doc/extend.texi: Follow spelling conventions.
13668 * doc/invoke.texi: Fix a typo.
13670 2011-01-30 Joseph Myers <joseph@codesourcery.com>
13672 * config/hpux11.opt: New.
13673 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13674 ia64*-*-hpux*): Use hpux11.opt.
13676 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
13678 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13681 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13683 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13686 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13688 * doc/install.texi (Binaries): Remove outdated reference for
13689 Motorola 68HC11/68HC12 downloads.
13691 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13693 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13696 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
13699 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13702 2011-01-28 Ahmad Sharif <asharif@google.com>
13704 * value-prof.c (check_counter): Corrected error message.
13706 2011-01-29 Jie Zhang <jie@codesourcery.com>
13708 * config/arm/arm.c (arm_legitimize_reload_address): New.
13709 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13710 arm_legitimize_reload_address.
13711 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13713 2011-01-28 Ian Lance Taylor <iant@google.com>
13715 * godump.c (go_define): Ignore macros whose definitions include
13716 two adjacent operands.
13718 2011-01-28 Jakub Jelinek <jakub@redhat.com>
13721 * varasm.c (force_const_mem): Store copy of x in desc->constant
13722 instead of x itself.
13723 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13724 itself into REG_EQUAL note.
13726 2011-01-28 Joseph Myers <joseph@codesourcery.com>
13728 * config/freebsd.opt (posix, rdynamic): New Driver options.
13730 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13732 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13733 -Bstatic/-Bdynamic.
13734 * configure: Regenerate.
13736 2011-01-27 Joseph Myers <joseph@codesourcery.com>
13738 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13739 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13741 2011-01-27 Anatoly Sokolov <aesok@post.ru>
13743 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13744 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13745 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13746 (s390_preferred_reload_class): Make static. Change return and
13747 'rclass' argument type to reg_class_t.
13749 2011-01-27 Jan Hubicka <jh@suse.cz>
13751 PR middle-end/46949
13752 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13753 (process_function_and_variable_attributes): Check defined weakrefs.
13755 2011-01-27 Martin Jambor <mjambor@suse.cz>
13757 PR tree-optimization/47228
13758 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13759 build_ref_for_offset.
13761 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13763 * config/spu/spu-elf.h (ASM_SPEC): Remove.
13765 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
13767 PR rtl-optimization/46856
13768 * postreload.c (reload_combine_recognize_const_pattern): Do not
13769 separate cc0 setter and user on cc0 targets.
13771 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
13774 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
13775 passed a VOID_TYPE expression, immediately emit an error and
13776 return error_mark_node.
13778 2011-01-26 Jeff Law <law@redhat.com>
13780 PR rtl-optimization/47464
13781 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
13782 rather than may_trap_p as needed.
13784 2011-01-26 DJ Delorie <dj@redhat.com>
13786 PR rtl-optimization/46878
13787 * combine.c (insn_a_feeds_b): Check for the implicit cc0
13788 setter/user dependency as well.
13790 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
13792 PR rtl-optimization/44469
13793 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
13794 after removing trivially dead basic blocks.
13796 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13798 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13799 * config/frv/frv.h (LINK_SPEC): Likewise.
13800 * config/i386/netware.h (LINK_SPEC): Likewise.
13801 * config/m68k/linux.h (ASM_SPEC): Likewise.
13802 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13803 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13804 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13805 * config/sparc/linux.h (ASM_SPEC): Likewise.
13806 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13807 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13809 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13811 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
13812 * config/frv/frv.h (ASM_SPEC): Likewise.
13813 * config/m68k/linux.h (ASM_SPEC): Likewise.
13814 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13815 * config/rs6000/linux64.h (ASM_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 (LINK_SPEC): Remove %{YP,*}.
13824 * config/frv/frv.h (LINK_SPEC): Likewise.
13825 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13827 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13829 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
13830 * config/frv/frv.h (ASM_SPEC): Likewise.
13831 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
13832 * config/m68k/linux.h (ASM_SPEC): Likewise.
13833 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13834 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13835 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13836 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
13837 * config/sparc/linux.h (ASM_SPEC): Likewise.
13838 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13839 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13840 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
13842 2011-01-26 Steve Ellcey <sje@cup.hp.com>
13845 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
13847 (vec_extract_evenodd_help): Ditto.
13848 (vec_extract_evenv4hi): Ditto.
13849 (vec_extract_oddv4hi): Ditto.
13850 (vec_interleave_lowv2si): Ditto.
13851 (vec_interleave_highv2si): Ditto.
13852 (vec_extract_evenv2si): Ditto.
13853 (vec_extract_oddv2si: Ditto.
13854 (vec_pack_trunc_v2si): Ditto.
13856 2011-01-22 Jan Hubicka <jh@suse.cz>
13859 * cgraph.h (cgraph_local_info): New field can_change_signature.
13860 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
13861 signature can change.
13862 (ipcp_estimate_growth): Call sequence simplify only if calle signature
13864 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
13865 (cgraph_function_versioning): We can not change signature of functions
13866 that don't allow that.
13867 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
13868 (lto_input_node): Likewise.
13869 * ipa-inline.c (compute_inline_parameters): Compute
13870 local.can_change_signature.
13871 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
13872 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
13873 functions that can not change signature.
13874 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
13875 init_cumulative_args): Do not use local calling conventions
13876 for functions that can not change signature.
13878 2011-01-22 Jan Hubicka <jh@suse.cz>
13880 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
13882 2011-01-26 Richard Guenther <rguenther@suse.de>
13884 PR tree-optimization/47190
13885 * cgraphunit.c (process_common_attributes): New function.
13886 (process_function_and_variable_attributes): Use it.
13888 2011-01-26 Richard Guenther <rguenther@suse.de>
13891 * cgraphbuild.c (record_eh_tables): Record reference to personality
13894 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
13897 * sel-sched.c (moveup_expr): Don't let debug insns prevent
13898 non-debug insns from moving up.
13900 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13903 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13904 t-dlldir{,-x} fragment for build and add it to tmake_file.
13905 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13906 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13907 * config/i386/t-dlldir: New file.
13908 (SHLIB_DLLDIR): Define.
13909 * config/i386/t-dlldir-x: New file.
13910 (SHLIB_DLLDIR): Define.
13911 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13912 (SHLIB_INSTALL): Use it.
13914 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
13917 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13918 lower bound of the allowed Thumb-2 coprocessor load/store
13919 index range to -256. Add explaining comment.
13921 2011-01-25 Ian Lance Taylor <iant@google.com>
13923 * godump.c (go_define): Improve lexing of macro expansion to only
13924 accept expressions which match Go spec.
13926 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13929 * tree.c (handle_dll_attribute): Handle it.
13930 * doc/extend.texi (@item dllexport): Mention it.
13931 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13933 2011-01-25 Ian Lance Taylor <iant@google.com>
13935 PR tree-optimization/26854
13936 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13937 (decl_jump_unsafe): Move higher in file, with no other change.
13938 (bind): Set has_jump_unsafe_decl if appropriate.
13939 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13940 (check_earlier_gotos): Likewise.
13941 (c_check_switch_jump_warnings): Likewise.
13943 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
13945 * doc/invoke.texi (Warning Options): Add missing hyphen.
13946 (-fprofile-dir): Minor grammatical fixes.
13947 (-fbranch-probabilities): Likewise.
13949 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13953 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13955 (no_real_insns_p, schedule_block, set_priorities): Drop special
13956 treatment of boundary debug insns.
13957 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13958 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13959 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13960 (BOUNDARY_DEBUG_INSN_P): Likewise.
13961 (SCHEDULE_DEBUG_INSN_P): Likewise.
13962 * sched-rgn.c (init_ready_list): Drop special treatment of
13963 boundary debug insns.
13964 * final.c (rest_of_clean-state): Clear notes' BB.
13966 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13968 * Makefile.in (LAMBDA_H): Removed.
13969 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13970 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13971 lambda-trans.o, and tree-loop-linear.o.
13972 (lto-symtab.o): Remove dependence on LAMBDA_H.
13973 (tree-loop-linear.o): Remove rule.
13974 (lambda-mat.o): Same.
13975 (lambda-trans.o): Same.
13976 (lambda-code.o): Same.
13977 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13978 (tree-vect-slp.o): Same.
13979 * hwint.h (gcd): Moved here.
13980 (least_common_multiple): Same.
13981 * lambda-code.c: Removed.
13982 * lambda-mat.c: Removed.
13983 * lambda-trans.c: Removed.
13984 * lambda.h: Removed.
13985 * tree-loop-linear.c: Removed.
13986 * lto-symtab.c: Do not include lambda.h.
13987 * omega.c (gcd): Removed.
13988 * passes.c (init_optimization_passes): Remove pass_linear_transform.
13989 * tree-data-ref.c (print_lambda_vector): Moved here.
13990 (lambda_vector_copy): Same.
13991 (lambda_matrix_copy): Same.
13992 (lambda_matrix_id): Same.
13993 (lambda_vector_first_nz): Same.
13994 (lambda_matrix_row_add): Same.
13995 (lambda_matrix_row_exchange): Same.
13996 (lambda_vector_mult_const): Same.
13997 (lambda_vector_negate): Same.
13998 (lambda_matrix_row_negate): Same.
13999 (lambda_vector_equal): Same.
14000 (lambda_matrix_right_hermite): Same.
14001 * tree-data-ref.h: Do not include lambda.h.
14002 (lambda_vector): Moved here.
14003 (lambda_matrix): Same.
14004 (dependence_level): Same.
14005 (lambda_transform_legal_p): Removed declaration.
14006 (lambda_collect_parameters): Same.
14007 (lambda_compute_access_matrices): Same.
14008 (lambda_vector_gcd): Same.
14009 (lambda_vector_new): Same.
14010 (lambda_vector_clear): Same.
14011 (lambda_vector_lexico_pos): Same.
14012 (lambda_vector_zerop): Same.
14013 (lambda_matrix_new): Same.
14014 * tree-flow.h (least_common_multiple): Removed declaration.
14015 * tree-parloops.c (lambda_trans_matrix): Moved here.
14016 (LTM_MATRIX): Same.
14017 (LTM_ROWSIZE): Same.
14018 (LTM_COLSIZE): Same.
14019 (LTM_DENOMINATOR): Same.
14020 (lambda_trans_matrix_new): Same.
14021 (lambda_matrix_vector_mult): Same.
14022 (lambda_transform_legal_p): Same.
14023 * tree-pass.h (pass_linear_transform): Removed declaration.
14024 * tree-ssa-loop.c (tree_linear_transform): Removed.
14025 (gate_tree_linear_transform): Removed.
14026 (pass_linear_transform): Removed.
14027 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14028 flag_loop_interchange.
14030 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14032 PR tree-optimization/47265
14033 PR tree-optimization/47443
14034 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14035 if name still has some uses.
14037 2011-01-25 Martin Jambor <mjambor@suse.cz>
14039 PR tree-optimization/47382
14040 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14041 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14043 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14045 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14046 sjlj_except_unwind_info.
14048 2011-01-25 Richard Guenther <rguenther@suse.de>
14050 PR tree-optimization/47426
14051 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14052 visible functions results escape.
14054 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14057 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14058 (arm_get_frame_offsets): Use it.
14060 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14061 Jakub Jelinek <jakub@redhat.com>
14063 PR tree-optimization/47271
14064 * tree-if-conv.c (bb_postdominates_preds): New.
14065 (if_convertible_bb_p): Call bb_postdominates_preds.
14066 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14067 (predicate_scalar_phi): Call bb_postdominates_preds.
14069 2011-01-25 Nick Clifton <nickc@redhat.com>
14071 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14072 * config/rx/rx.c (rx_function_value): Likewise.
14073 (rx_promote_function_mode): Likewise.
14074 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14075 in order to make it legitimate.
14076 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14077 make sure that the first operand is the same as the result register.
14078 (addsi3_unspec): Delete.
14079 (subdi3): Do not accept immediate operands.
14080 (subdi3_internal): Likewise.
14082 2011-01-25 Jeff Law <law@redhat.com>
14084 PR rtl-optimization/37273
14085 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14086 handle them like argument loads from stack slots. Do not double
14087 count memory for memory constants and argument loads from stack slots.
14089 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14091 PR tree-optimization/47427
14092 PR tree-optimization/47428
14093 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14094 coalesce if the new root var would be TREE_READONLY.
14096 2011-01-25 Richard Guenther <rguenther@suse.de>
14098 PR middle-end/47414
14099 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14100 correct type for TBAA.
14102 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14104 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14105 (close_phi_written_to_memory): Call for_each_index with
14106 dr_indices_valid_in_loop.
14108 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14110 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14111 when it is initialized.
14113 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14115 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14116 call to graphite_find_data_references_in_stmt.
14117 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14118 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14119 call to graphite_find_data_references_in_stmt.
14120 (analyze_drs_in_stmts): Same.
14121 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14122 in which the scalar analysis of indices is performed.
14123 (create_data_ref): Same. Update call to dr_analyze_indices.
14124 (find_data_references_in_stmt): Update call to create_data_ref.
14125 (graphite_find_data_references_in_stmt): Same.
14126 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14128 (create_data_ref): Same.
14129 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14130 call to create_data_ref.
14132 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14134 * graphite-sese-to-poly.c (build_poly_scop): Move
14135 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14137 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14139 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14140 VAR_DECL, PARM_DECL, and RESULT_DECL.
14142 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14144 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14145 in a reduction PBB.
14146 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14147 that have already been marked as PBB_IS_REDUCTION.
14149 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14151 * graphite-scop-detection.c (same_close_phi_node): New.
14152 (remove_duplicate_close_phi): New.
14153 (make_close_phi_nodes_unique): New.
14154 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14156 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14158 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14159 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14160 of both data references to be the same.
14162 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14164 * graphite-dependences.c (build_lexicographical_constraint): Remove
14165 the gdim parameter.
14166 (build_lexicographical_constraint): Adjust call to
14167 ppl_powerset_is_empty.
14168 (dependence_polyhedron): Same.
14169 (graphite_legal_transform_dr): Same.
14170 (graphite_carried_dependence_level_k): Same.
14171 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14173 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14175 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14177 * graphite-sese-to-poly.c
14178 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14179 (close_phi_written_to_memory): New.
14180 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14183 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14185 * doc/install.texi: Update the expected version number of PPL to 0.11.
14186 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14187 #if PPL_VERSION_MINOR < 11.
14189 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14191 * graphite-dependences.c: Include graphite-cloog-util.h.
14192 (new_poly_ddr): Inlined into dependence_polyhedron.
14193 (free_poly_ddr): Moved close by new_poly_ddr.
14194 (dependence_polyhedron_1): Renamed dependence_polyhedron.
14195 Early return NULL when ppl_powerset_is_empty returns true.
14196 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
14197 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
14198 (graphite_legal_transform_dr): Call new_poly_ddr.
14199 (graphite_carried_dependence_level_k): Same.
14200 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
14201 (dot_transformed_deps_stmt_1): Removed.
14202 (dot_deps_stmt_1): Call dot_deps_stmt_2.
14203 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
14204 (dot_deps_1): Call dot_deps_2.
14205 * Makefile.in (graphite-dependences.o): Add missing dependence on
14206 graphite-cloog-util.h.
14208 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14210 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14211 (build_lexicographical_constraint): Same.
14212 (dependence_polyhedron_1): Same.
14213 (graphite_legal_transform_dr): Same.
14214 (graphite_carried_dependence_level_k): Same.
14215 * graphite-ppl.c (ppl_powerset_is_empty): New.
14216 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14217 * tree-data-ref.c (dump_data_reference): Print the basic block index.
14219 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14221 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14222 the "a followed by b" relation and document it.
14224 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14226 * graphite-dependences.c (build_lexicographical_constraint): Stop the
14227 iteration when the bag of constraints is empty.
14229 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14231 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14233 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14235 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14236 nest and two loop depths as parameters.
14237 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14238 lst_perfect_nestify.
14240 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14242 * graphite-dependences.c (print_pddr): Call
14243 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14245 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14247 * graphite-ppl.c (debug_gmp_value): New.
14248 * graphite-ppl.h (debug_gmp_value): Declared.
14250 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
14252 * doc/install.texi: Document availability of cloog-0.16.
14254 2011-01-25 Vladimir Kargov <kargov@gmail.com>
14256 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14257 invalid postdominance info.
14259 2011-01-24 Jan Hubicka <jh@suse.cz>
14262 * doc/extend.texi (weak pragma): Drop claim that it must
14263 appear before definition.
14264 * varasm.c (merge_weak, declare_weak): Only sanity check
14265 that DECL is not output at a time it is declared weak.
14267 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
14269 * machmode.def: Fixed comments.
14271 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
14273 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14275 2011-01-24 Paul Koning <ni1d@arrl.net>
14277 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14280 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
14283 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14284 (block_info): Add scanned and prev.
14285 (move_or_delete_vzeroupper_2): Return if the basic block
14286 has been scanned and the upper 128bit state is unchanged
14287 from the last scan.
14288 (move_or_delete_vzeroupper_1): Return true if the exit
14290 (move_or_delete_vzeroupper): Visit basic blocks using the
14291 work-list based algorithm based on vt_find_locations in
14294 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14296 2011-01-24 Nick Clifton <nickc@redhat.com>
14298 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14299 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14300 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
14301 then define __v850e1__.
14302 * doc/invoke.texi: Document -mv850es.
14304 2011-01-24 Richard Henderson <rth@redhat.com>
14306 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14307 compound unordered comparisons.
14308 * config/rx/rx.c (rx_split_fp_compare): Remove.
14309 * config/rx/rx-protos.h: Update.
14310 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14311 (cbranchsf4): Don't call rx_split_fp_compare.
14312 (*cbranchsf4): Use rx_split_cbranch.
14313 (*cmpsf): Don't accept "i" constraint.
14314 (*conditional_branch): Only valid after reload.
14315 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
14317 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14320 * config/rs6000/altivec.md (vector constant splitters): Add
14321 support for creating vector single precision constants if -mvsx is
14322 used and we would create the constant using Altivec primitives.
14324 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
14325 Richard Sandiford <rdsandiford@googlemail.com>
14327 PR rtl-optimization/47166
14328 * reload1.c (emit_reload_insns): Disable the spill_reg_store
14329 mechanism for PRE_MODIFY and POST_MODIFY.
14330 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14333 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
14335 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14337 2011-01-22 Jan Hubicka <jh@suse.cz>
14340 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14342 2011-01-22 Jan Hubicka <jh@suse.cz>
14344 PR tree-optimization/43884
14346 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14347 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14349 2011-01-22 Anatoly Sokolov <aesok@post.ru>
14351 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14352 * config/s390/s390.c (s390_register_move_cost,
14353 s390_memory_move_cost): New.
14354 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14356 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14358 PR middle-end/47401
14359 * except.c (sjlj_assign_call_site_values): Move setting the
14360 crtl->uses_eh_lsda flag to ...
14361 (sjlj_mark_call_sites): ... here.
14362 (sjlj_emit_function_enter): Support NULL dispatch label.
14363 (sjlj_build_landing_pads): In a function with no landing pads
14364 that still has must-not-throw regions, generate code to register
14365 a personality function with empty LSDA.
14367 2011-01-21 Richard Henderson <rth@redhat.com>
14369 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14371 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14373 * compare-elim.c: New file.
14374 * Makefile.in (OBJS-common): Add it.
14375 (compare-elim.o): New.
14376 * common.opt (fcompare-elim): New.
14377 * opts.c (default_options_table): Add OPT_fcompare_elim.
14378 * tree-pass.h (pass_compare_elim_after_reload): New.
14379 * passes.c (init_optimization_passes): Add it.
14380 * recog.h: Protect against re-inclusion.
14381 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14382 * doc/invoke.texi (-fcompare-elim): Document it.
14383 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14384 * doc/tm.texi: Rebuild.
14386 2011-01-22 Nick Clifton <nickc@redhat.com>
14388 * config/rx/rx.md (cstoresf4): Pass comparison operator to
14389 rx_split_fp_compare.
14391 2011-01-22 Nick Clifton <nickc@redhat.com>
14393 * config/rx/rx.md (UNSPEC_CONST): New.
14394 (deallocate_and_return): Wrap the amount popped off the stack in
14395 an UNSPEC_CONST in order to stop it being rejected by
14396 -mmax-constant-size.
14397 (pop_and_return): Add a "(return)" rtx.
14398 (call): Drop the immediate operand.
14399 (call_internal): Likewise.
14400 (call_value): Likewise.
14401 (call_value_internal): Likewise.
14402 (sibcall_internal): Likewise.
14403 (sibcall_value_internal): Likewise.
14404 (sibcall): Likewise. Generate an explicit call using
14406 (sibcall_value): Likewise.
14407 (mov<>): FAIL if a constant operand is not legitimate.
14408 (addsi3_unpsec): New pattern.
14410 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14411 (ok_for_max_constant): New function.
14412 (gen_safe_add): New function.
14413 (rx_expand_prologue): Use gen_safe_add.
14414 (rx_expand_epilogue): Likewise.
14415 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
14418 2011-01-21 Jeff Law <law@redhat.com>
14420 PR tree-optimization/47053
14421 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14422 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14423 statements are deleted.
14424 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
14425 is nonempty, then purge dead edges and cleanup the CFG.
14427 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14430 Temporarily revert:
14431 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14433 * tree-dfa.c (create_var_ann): Mark variable as used.
14435 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14437 PR middle-end/45566
14438 * except.c (convert_to_eh_region_ranges): Emit queued no-region
14439 notes from other section in hot/cold partitioning even if
14440 last_action is -3. Increment call_site_base.
14442 PR rtl-optimization/47366
14443 * fwprop.c (forward_propagate_into): Return bool. If
14444 any changes are made, -fnon-call-exceptions is used and
14445 REG_EH_REGION note is present, call purge_dead_edges
14446 and return true if it purged anything.
14447 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14448 any EH edges were purged.
14450 2011-01-21 Jeff Law <law@redhat.com>
14452 PR rtl-optimization/41619
14453 * caller-save.c (setup_save_areas): Break out code to determine
14454 which hard regs are live across calls by examining the reload chains
14455 so that it is always used.
14456 Eliminate code which checked REG_N_CALLS_CROSSED.
14458 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14460 PR tree-optimization/47355
14461 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14462 NOP has non-debug uses beyond PHIs in new_bb.
14464 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14467 * cfgexpand.c (account_used_vars_for_block): Only account vars
14468 that are annotated as used.
14469 (estimated_stack_frame_size): Don't set TREE_USED.
14470 * tree-dfa.c (create_var_ann): Mark variable as used.
14472 2011-01-21 Richard Guenther <rguenther@suse.de>
14474 PR middle-end/47395
14475 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14477 2011-01-21 Richard Guenther <rguenther@suse.de>
14479 PR tree-optimization/47365
14480 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14481 (vn_reference_lookup_pieces): Adjust.
14482 (vn_reference_lookup): Likewise.
14483 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14484 (vn_reference_lookup_3): Only look through kills if in
14485 VN_WALKREWRITE mode.
14486 (vn_reference_lookup_pieces): Adjust.
14487 (vn_reference_lookup): Likewise.
14488 (visit_reference_op_load): Likewise.
14489 (visit_reference_op_store): Likewise.
14490 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14491 (compute_avail): Likewise.
14492 (eliminate): Likewise.
14494 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14496 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14497 DECL_IGNORED_P non-reg vars if they are used.
14499 PR tree-optimization/47391
14500 * varpool.c (const_value_known_p): Return false if
14503 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
14506 * config/i386/i386.c (ix86_local_alignment): Handle
14507 case for va_list_type_node is nil.
14508 (ix86_canonical_va_list_type): Likewise.
14510 2011-01-21 Alan Modra <amodra@gmail.com>
14512 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
14513 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
14515 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14517 * config/arm/arm.md (define_attr type): Rename f_load
14518 and f_store to f_fpa_load and f_fpa_store. Update.
14519 (write_conflict): Deal with rename fallout.
14520 (*push_fp_multi): Likewise.
14521 * config/arm/fpa.md (f_load): Use f_fpa_load.
14522 (f_store): Use f_fpa_store.
14523 (*movsf_fpa): Likewise.
14524 (*movdf_fpa): Likewise.
14525 (*movxf_fpa): Likewise.
14526 (*thumb2_movsf_fpa): Likewise.
14527 (*thumb2_movdf_fpa): Likewise.
14528 (*thumb2_movxf_fpa): Likewise.
14529 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
14530 f_loadd and f_stored.
14531 (*thumb2_movdi_vfp): Likewise.
14532 (*thumb2_movsf_vfp): Fix attribute to f_loads.
14533 (*thumb2_movsi_vfp): Likewise.
14534 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
14535 Use f_loads instead of f_load.
14536 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
14538 2011-01-20 Anatoly Sokolov <aesok@post.ru>
14540 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14541 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
14542 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14543 (xtensa_mode_dependent_address_p): New function.
14544 (constantpool_address_p): Make static. Change return type to bool.
14545 Change argument type to const_rtx. Use CONST_INT_P predicate.
14547 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
14550 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
14552 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14555 * cfgexpand.c (expand_debug_expr): Instead of generating
14556 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
14559 2011-01-20 Richard Guenther <rguenther@suse.de>
14561 PR middle-end/47370
14562 * tree-inline.c (remap_gimple_op_r): Recurse manually for
14563 the pointer operand of MEM_REFs.
14565 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14567 PR tree-optimization/46130
14568 * ipa-split.c (consider_split): If return_bb contains non-virtual
14569 PHIs other than for retval or if split_function would not adjust it,
14572 2011-01-20 Richard Guenther <rguenther@suse.de>
14574 PR tree-optimization/47167
14575 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14576 Revert previous change, only avoid enumeral type changes.
14578 2011-01-19 Mike Stump <mikestump@comcast.net>
14580 * doc/tm.texi.in (BRANCH_COST): Englishify.
14581 * doc/tm.texi (BRANCH_COST): Likewise.
14583 2011-01-19 Dodji Seketeli <dodji@redhat.com>
14586 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14587 (gen_scheduled_generic_parms_dies): New functions.
14588 (gen_struct_or_union_type_die): Schedule template parameters DIEs
14589 generation for the end of CU compilation.
14590 (dwarf2out_finish): Generate template parameters DIEs here.
14592 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14595 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14596 debug bind stmt on merge edges.
14598 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14602 * function.c (instantiate_expr): Instantiate incoming rtl of
14603 implicit arguments, and recurse on VALUE_EXPRs.
14604 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14605 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14607 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14609 * c-parser.c (c_parser_for_statement): Initialize
14610 collection_expression.
14612 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14614 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14616 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14618 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14619 (LINK_SHLIB_SPEC): Don't use %(link_path).
14620 (SUBTARGET_EXTRA_SPECS): Remove link_path.
14622 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14624 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14625 (NO_SHARED_LIB_SUPPORT): Remove.
14626 (LINK_SHLIB_SPEC): Remove one conditional definition.
14628 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14630 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14632 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14633 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14634 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14635 %{call_shared} and conditionals on these options not being passed.
14636 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14639 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14641 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14644 * ipa-split.c: Spelling fixes.
14646 2011-01-19 Richard Henderson <rth@redhat.com>
14648 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14649 (*mulsi3): Likewise.
14651 * longlong.h [__mn10300__] (count_leading_zeros): New.
14652 [__mn10300__] (umul_ppmm, smul_ppmm): New.
14653 [__mn10300__] (add_ssaaaa, subddmmss): New.
14654 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14655 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14657 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14659 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14661 2011-01-19 Richard Henderson <rth@redhat.com>
14663 * config/mn10300/mn10300.md (addsi3_flags): New.
14664 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14665 (subsi3_flags, subc_internal, subdi3): New.
14666 (subdi3_internal, *subdi3_degenerate): New.
14667 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14669 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14670 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14671 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
14672 * config/mn10300/mn10300-protos.h: Update.
14673 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14674 (return_ret): Likewise. Rename from return_internal_regs.
14675 (return_internal): Remove.
14677 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14678 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14679 (mn10300_legitimate_constant_p): Likewise.
14680 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14681 (mn10300_frame_size): New.
14682 (mn10300_expand_prologue): Use it.
14683 (mn10300_expand_epilogue): Likewise.
14684 (mn10300_initial_offset): Likewise.
14685 * config/mn10300/mn10300-protos.h: Update.
14686 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14687 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14688 (prologue, epilogue, return_internal): Tidy output code.
14689 (mn10300_store_multiple_operation, return): Likewise.
14690 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14691 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14692 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14693 (load_pic, am33_load_pic): New.
14694 (mn10300_load_pic0, mn10300_load_pic1): New.
14696 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14697 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14698 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14699 (cc_flags_for_mode, cc_flags_for_code): New.
14700 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14701 overflow flag is not valid. Validate that the flags we need
14702 for the comparison are valid.
14703 (mn10300_output_cmp): Remove.
14704 (mn10300_output_add): New.
14705 (mn10300_select_cc_mode): Use cc_flags_for_code.
14706 (mn10300_split_cbranch): New.
14707 (mn10300_match_ccmode): New.
14708 (mn10300_split_and_operand_count): New.
14709 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14711 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14712 (addsi3): ... here. Use mn10300_output_add.
14713 (*addsi3_flags): New.
14714 (*am33_subsi3, *mn10300_subsi3): Merge...
14715 (subsi3): ... here. Use attribute isa.
14716 (*subsi3_flags): New.
14717 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
14719 (*am33_andsi3, *mn10300_andsi3): Merge...
14720 (andsi3): ... here.
14721 (*andsi3_flags): New.
14722 (andsi3 splitters): New.
14723 (*am33_iorsi3, *mn10300_iorsi3): Merge...
14724 (iorsi3): ... here.
14725 (*iorsi3_flags): New.
14726 (*am33_xorsi3, *mn10300_xorsi3): Merge...
14727 (xorsi3): ... here.
14728 (*xorsi3_flags): New.
14729 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14730 (one_cmplsi2): ... here.
14731 (*one_cmplsi2_flags): New.
14732 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
14733 instead of "dax" in constraints. Use mn10300_split_cbranch.
14734 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
14735 use matching constraints to eliminate a self-comparison.
14736 (*integer_conditional_branch): Rename from integer_conditional_branch.
14737 Use int_mode_flags to match CC_REG.
14738 (*cbranchsi4_btst, *btstsi): New.
14739 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
14740 mn10300_split_cbranch.
14741 (*am33_cmpsf): Rename from am33_cmpsf.
14742 (*float_conditional_branch): Rename from float_conditional_branch.
14743 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14744 (zero_extendqisi2): ... here.
14745 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14746 (zero_extendhisi2): ... here.
14747 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14748 (extendqisi2): ... here.
14749 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14750 (extendhisi2): ... here.
14751 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14752 (ashlsi3): ... here.
14753 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14754 (lshrsi3): ... here.
14755 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14756 (ashrsi3): ... here.
14757 (consecutive add peephole): Remove.
14758 * config/mn10300/predicates.md (label_ref_operand): New.
14759 (int_mode_flags): New.
14760 (CCZN_comparison_operator): New.
14762 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14763 (throughput_42_latency_43): New reservation.
14764 (mulsidi3, umulsidi3): New expanders.
14765 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
14766 the MDR register to allocation; separately allocate the low and
14767 high parts of the DImode result.
14768 (umulsidi3_internal): Similarly.
14769 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14770 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
14771 (udivsi3, umodsi3): Remove.
14772 (udivmodsi4, divmodsi4): New expanders.
14773 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
14774 (*divmodsi4): Simiarly.
14775 (ext_internal): New.
14777 * config/mn10300/constraints.md ("z"): New constraint.
14778 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
14779 (FIXED_REGISTERS): Don't fix MDR.
14780 (CALL_USED_REGSITERS): Reformat nicely.
14781 (REG_ALLOC_ORDER): Add MDR.
14782 (enum regclass): Add MDR_REGS.
14783 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
14784 (IRA_COVER_CLASSES): Add MDR_REGS.
14785 (REGNO_REG_CLASS): Handle MDR_REG.
14786 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
14787 (mn10300_register_move_cost): Likewise.
14788 * config/mn10300/mn10300.md (MDR_REG): New.
14789 (*movsi_internal): Handle moves to/from MDR_REGS.
14791 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
14793 (mn10300_secondary_reload): Tidy combination reload classes.
14794 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
14795 addresses for AM33. Allow symbolic offsets for reg+imm.
14796 (mn10300_regno_in_class_p): New.
14797 (mn10300_legitimize_reload_address): New.
14798 * config/mn10300/mn10300.h (enum reg_class): Remove
14799 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14800 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
14801 SP_OR_GENERAL_REGS.
14802 (REG_CLASS_NAMES): Update to match.
14803 (REG_CLASS_CONTENTS): Likewise.
14804 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14805 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14806 (REGNO_IN_RANGE_P): Remove.
14807 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14808 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14809 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14810 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14811 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14812 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14813 (REGNO_GENERAL_P): New.
14814 (HAVE_POST_MODIFY_DISP): New.
14815 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14816 (LEGITIMIZE_RELOAD_ADDRESS): New.
14817 * config/mn10300/mn10300-protos.h: Update.
14819 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
14820 DATA_REGS for AM33 stack-pointer destination.
14821 (mn10300_preferred_output_reload_class): Likewise.
14822 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
14823 into a form appropriate for ...
14824 (TARGET_SECONDARY_RELOAD): New.
14825 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
14826 * config/mn10300/mn10300-protos.h: Update.
14827 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
14828 reload_insi; use the "A" constraint for the scratch; handle AM33
14829 moves of sp to non-address registers.
14831 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
14832 (*movqi_internal): ... here.
14833 (*am33_movhi, *mn10300_movhi): Merge into...
14834 (*movhi_internal): ... here.
14835 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
14836 as the source/destination of moves from/to SP.
14837 (movsf): Only allow for AM33-2.
14838 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
14839 any integer constant constraint. Only allow for AM33-2. Tidy
14840 all of the alternative outputs.
14841 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
14842 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
14844 (udivsi3, umodsi3): New patterns for MN103 only.
14846 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
14848 * doc/tm.texi.in: Spell out that a lack of register class unions
14850 * doc/tm.texi: Regenerate.
14852 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14854 PR rtl-optimization/47337
14855 * dce.c (check_argument_store): New function.
14856 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
14858 PR tree-optimization/47290
14859 * tree-eh.c (infinite_empty_loop_p): New function.
14860 (cleanup_empty_eh): Use it.
14862 2011-01-18 Steve Ellcey <sje@cup.hp.com>
14865 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
14866 (a64_expand_widen_sum): Ditto.
14867 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
14868 (vec_extract_evenodd_help): Ditto.
14869 (vec_extract_evenv4hi): Ditto.
14870 (vec_extract_oddv4hi): Ditto.
14871 (vec_extract_evenv2si): Ditto.
14872 (vec_extract_oddv2si): Ditto.
14873 (vec_extract_evenv2sf): Ditto.
14874 (vec_extract_oddv2sf): Ditto.
14875 (vec_pack_trunc_v4hi: Ditto.
14876 (vec_pack_trunc_v2si): Ditto.
14877 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
14878 (vec_interleave_highv8qi): Ditto.
14880 (vec_extract_oddv8qi): Ditto.
14881 (vec_interleave_lowv4hi): Ditto.
14882 (vec_interleave_highv4hi): Ditto.
14883 (vec_interleave_lowv2si): Ditto.
14884 (vec_interleave_highv2si): Ditto.
14886 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14888 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
14889 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
14890 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
14891 (pa_c_mode_for_suffix): New.
14892 (TARGET_EXPAND_BUILTIN): Define.
14893 (TARGET_C_MODE_FOR_SUFFIX): Define.
14894 (pa_builtins): Define.
14895 (pa_init_builtins): Register __float128 type and init new support
14897 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14898 * config/pa/quadlib.c (_U_Qfcopysign): New.
14900 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
14902 PR middle-end/46894
14903 * explow.c (allocate_dynamic_stack_space): Do not assume more than
14904 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14907 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14909 PR tree-optimization/47179
14910 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14911 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14913 2011-01-18 Richard Guenther <rguenther@suse.de>
14915 PR rtl-optimization/47216
14916 * emit-rtl.c: Include tree-flow.h.
14917 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14918 of replicating it with different semantics.
14919 * Makefile.in (emit-rtl.o): Adjust.
14921 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14923 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14924 (cortex_a9_dp): Handle neon types correctly.
14926 2011-01-18 Jakub Jelinek <jakub@redhat.com>
14928 PR rtl-optimization/47299
14929 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14930 subtarget. Use normal multiplication if both operands are constants.
14931 * expmed.c (expand_widening_mult): Don't try to optimize constant
14932 multiplication if op0 has VOIDmode. Convert op1 constant to mode
14935 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14937 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
14938 spacing after 'e.g.', typos, comma, hyphenation.
14940 2011-01-17 Richard Henderson <rth@redhat.com>
14942 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14943 (rx_restricted_mem_operand): New.
14944 (rx_shift_operand): Use register_operand.
14945 (rx_source_operand, rx_compare_operand): Likewise.
14946 * config/rx/rx.md (addsi3_flags): New expander.
14947 (adddi3): Rewrite as expander.
14948 (adc_internal, *adc_flags, adddi3_internal): New patterns.
14949 (subsi3_flags): New expander.
14950 (subdi3): Rewrite as expander.
14951 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14953 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14954 (rx_init_builtins): Remove sat builtin.
14955 (rx_expand_builtin): Likewise.
14956 * config/rx/rx.md (ssaddsi3): New.
14957 (*sat): Rename from sat. Represent the CC_REG input.
14959 * config/rx/predicates.md (rshift_operator): New.
14960 * config/rx/rx.c (rx_expand_insv): Remove.
14961 * config/rx/rx-protos.h: Update.
14962 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
14963 operand to the canonical position.
14964 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14965 (*bitclr, *bitclr_in_memory): Similarly.
14966 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14967 (insv): Retain the zero_extract in the expansion.
14969 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14970 (bswaphi2, bitinvert, revw): Likewise.
14972 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14973 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14974 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14975 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14976 (bitset, bitset_in_memory): Likewise.
14977 (bitinvert, bitinvert_in_memory): Likewise.
14978 (bitclr, bitclr_in_memory): Likewise.
14979 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14980 (rx_strend, rx_cmpstrn): Likewise.
14981 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
14982 (bitop peep2 patterns): Remove.
14984 * config/rx/rx.c (rx_match_ccmode): New.
14985 * config/rx/rx-protos.h: Update.
14986 * config/rx/rx.md (abssi2): Clobber, don't set flags.
14987 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14988 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14989 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14990 (fix_truncsfsi2, floatsisf2): Likewise.
14991 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14992 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14993 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14994 (*subsi3_flags, *xorsi3_flags): New.
14996 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14998 * config/rx/rx.c (rx_print_operand): Remove workaround for
14999 unsplit comparison operations.
15001 * config/rx/rx.md (movsicc): Split after reload.
15002 (*movsicc): Merge *movsieq and *movsine via match_operator.
15003 (*stcc): New pattern.
15005 * config/rx/rx.c (rx_float_compare_mode): Remove.
15006 * config/rx/rx.h (rx_float_compare_mode): Remove.
15007 * config/rx/rx.md (cstoresi4): Split after reload.
15008 (*sccc): New pattern.
15010 * config/rx/predicates.md (label_ref_operand): New.
15011 (rx_z_comparison_operator): New.
15012 (rx_zs_comparison_operator): New.
15013 (rx_fp_comparison_operator): New.
15014 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15015 Validate that the flags are set properly for the comparison.
15016 (rx_gen_cond_branch_template): Remove.
15017 (rx_cc_modes_compatible): Remove.
15018 (mode_from_flags): New.
15019 (flags_from_code): Rename from flags_needed_for_conditional.
15020 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15021 (rx_select_cc_mode): Likewise.
15022 (rx_split_fp_compare): New.
15023 (rx_split_cbranch): New.
15024 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15025 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15026 (*cbranchsf4): Similarly.
15027 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15028 match_operator and rx_split_cbranch.
15029 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15030 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15031 (*cmpsi): Rename from cmpsi.
15032 (*tstsi): Rename from tstsi.
15033 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15034 (*conditional_branch): Rename from conditional_branch.
15035 (*reveresed_conditional_branch): Remove.
15036 (b<code>): Remove expander.
15037 * config/rx/rx-protos.h: Update.
15039 * config/rx/rx.c (rx_compare_redundant): Remove.
15040 * config/rx/rx.md (cmpsi): Don't use it.
15041 * config/rx/rx-protos.h: Update.
15043 * config/rx/rx-modes.def (CC_F): New mode.
15044 * config/rx/rx.c (rx_select_cc_mode): New.
15045 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15046 * config/rx/rx-protos.h: Update.
15048 2011-01-17 Richard Henderson <rth@redhat.com>
15050 * except.c (dump_eh_tree): Fix stray ; after for statement.
15052 2011-01-17 Richard Guenther <rguenther@suse.de>
15054 PR tree-optimization/47313
15055 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15056 handling before copying the body. Properly deal with
15057 by-reference result in SSA form.
15059 2011-01-17 Ian Lance Taylor <iant@google.com>
15062 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15063 (struct_value_alias_set): Don't define.
15064 (sparc_option_override): Don't set sparc_sr_alias_set and
15065 struct_value_alias_set.
15066 (save_or_restore_regs): Use gen_frame_mem rather than calling
15068 (sparc_struct_value_rtx): Likewise.
15070 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15073 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15074 (_mm_maskstore_pd): Likewise.
15075 (_mm_maskload_ps): Likewise.
15076 (_mm_maskstore_ps): Likewise.
15077 (_mm256_maskload_pd): Change mask to __m256i.
15078 (_mm256_maskstore_pd): Likewise.
15079 (_mm256_maskload_ps): Likewise.
15080 (_mm256_maskstore_ps): Likewise.
15082 * config/i386/i386-builtin-types.def: Updated.
15083 (ix86_expand_special_args_builtin): Likewise.
15085 * config/i386/i386.c (bdesc_special_args): Update
15086 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15087 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15088 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15089 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15091 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15092 Use <avxpermvecmode> on mask register.
15093 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15095 2011-01-17 Olivier Hainque <hainque@adacore.com>
15096 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15097 Eric Botcazou <ebotcazou@adacore.com>
15100 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15101 if <= USHRT_MAX in 32-bit mode.
15103 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15105 * doc/install.texi (Configuration, Specific): Wrap long
15106 lines in examples. Allow line wrapping in long options
15107 and URLs where beneficial for PDF output.
15109 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15111 * config/mips/mips.c (mips_classify_symbol): Don't return
15112 SYMBOL_PC_RELATIVE for nonlocal labels.
15114 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15116 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15118 2011-01-15 Jan Hubicka <jh@suse.cz>
15120 PR tree-optimization/47276
15121 * ipa.c (function_and_variable_visibility): Do not try to mark alias
15122 declarations as needed.
15124 2011-01-15 Martin Jambor <mjambor@suse.cz>
15126 * common.opt (fdevirtualize): New flag.
15127 * doc/invoke.texi (Option Summary): Document it.
15128 * opts.c (default_options_table): Add devirtualize flag.
15129 * ipa-prop.c (detect_type_change): Return immediately if
15130 devirtualize flag is not set.
15131 (detect_type_change_ssa): Likewise.
15132 (compute_known_type_jump_func): Likewise.
15133 (ipa_analyze_virtual_call_uses): Likewise.
15135 2011-01-14 Martin Jambor <mjambor@suse.cz>
15137 PR tree-optimization/45934
15138 PR tree-optimization/46302
15139 * ipa-prop.c (type_change_info): New type.
15140 (stmt_may_be_vtbl_ptr_store): New function.
15141 (check_stmt_for_type_change): Likewise.
15142 (detect_type_change): Likewise.
15143 (detect_type_change_ssa): Likewise.
15144 (compute_complex_assign_jump_func): Check for dynamic type change.
15145 (compute_complex_ancestor_jump_func): Likewise.
15146 (compute_known_type_jump_func): Likewise.
15147 (compute_scalar_jump_functions): Likewise.
15148 (ipa_analyze_virtual_call_uses): Likewise.
15149 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15151 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15153 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15154 * config/i386/i386.opt (msse5): New Alias.
15156 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15158 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15159 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15160 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15161 * config/sparc/sparc.h (CC1_SPEC): Likewise.
15163 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15165 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15167 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15168 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15169 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15170 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15172 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15174 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15176 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15178 2011-01-14 Mike Stump <mikestump@comcast.net>
15180 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15181 * config/fr30/fr30.md: Likweise
15182 (movsi_push): Likewise.
15183 (movsi_pop): Likewise.
15184 (enter_func): Likewise.
15185 * config/moxie/moxie.md (movsi_push): Likewise.
15186 (movsi_pop): Likewise.
15188 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15190 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15191 %{no_archive} %{exact_version}.
15192 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15193 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15194 %{no_archive} %{exact_version}.
15195 * config/mips/openbsd.h (LINK_SPEC): Likewise.
15196 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15197 * config/mips/vxworks.h: Likewise.
15199 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15201 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15203 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15205 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15206 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15208 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15210 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15213 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15215 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15217 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15218 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15220 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15221 Don't handle -shlib.
15223 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15225 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15226 (CC1_SPEC): Don't handle -profile.
15228 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15230 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15231 * config/mips/mips.h (CC1_SPEC): Likewise.
15233 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15235 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15236 * config/mips/mips.h (CC1_SPEC): Likewise.
15238 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15240 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15241 * config/m32r/linux.h (LINK_SPEC): Likewise.
15242 * config/mips/linux.h (LINK_SPEC): Likewise.
15243 * config/mips/linux64.h (LINK_SPEC): Likewise.
15244 * config/sparc/linux.h (LINK_SPEC): Likewise.
15245 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15246 LINK_SPEC): Likewise.
15247 * config/xtensa/linux.h (LINK_SPEC): Likewise.
15249 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15251 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15253 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15255 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15257 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15258 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15260 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15262 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15264 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15266 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15267 supports -Bstatic/-Bdynamic.
15268 * configure: Regenerate.
15270 2011-01-14 Jan Hubicka <jh@suse.cz>
15271 Jack Howarth <howarth@bromo.med.uc.edu>
15274 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15275 when checking debug_info_level. Test write_symbols instead of
15276 debug_hooks->var_location when setting flag_var_tracking_uninit.
15278 2011-01-14 Richard Guenther <rguenther@suse.de>
15280 PR tree-optimization/47179
15281 * target.def (ref_may_alias_errno): New target hook.
15282 * targhooks.h (default_ref_may_alias_errno): Declare.
15283 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15284 (default_ref_may_alias_errno): New function.
15285 * target.h (struct ao_ref_s): Declare.
15286 * tree-ssa-alias.c: Include target.h.
15287 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15288 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15289 (targhooks.o): Likewise.
15290 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15291 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15293 2011-01-14 Richard Guenther <rguenther@suse.de>
15295 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
15297 2011-01-14 Richard Guenther <rguenther@suse.de>
15299 PR tree-optimization/47280
15300 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15301 return CFG changes.
15302 (tree_ssa_forward_propagate_single_use_vars): Deal with
15303 CFG changes from associate_plusminus.
15305 2011-01-14 Richard Guenther <rguenther@suse.de>
15307 PR middle-end/47281
15309 2011-01-11 Richard Guenther <rguenther@suse.de>
15311 PR tree-optimization/46076
15312 * tree-ssa.c (useless_type_conversion_p): Conversions from
15313 unprototyped to empty argument list function types are useless.
15315 2011-01-14 Richard Guenther <rguenther@suse.de>
15317 PR tree-optimization/47286
15318 * tree-ssa-structalias.c (new_var_info): Register variables are global.
15320 2011-01-14 Martin Jambor <mjambor@suse.cz>
15322 PR middle-end/46823
15323 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15325 2011-01-13 Anatoly Sokolov <aesok@post.ru>
15327 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15328 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15329 * config/xtensa/xtensa.c (xtensa_libcall_value,
15330 xtensa_function_value_regno_p): New functions.
15331 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15333 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
15336 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15338 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15339 New function prototype.
15340 * config/i386/winnt.c (i386_pe_assemble_visibility):
15341 Warn only if attribute was specified by user.
15343 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15346 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15348 (floatunsdidf2_fcfidu): Ditto.
15350 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15352 * config/s390/s390.c (print_operand_address): Replace 'error' with
15353 'output_operand_lossage'.
15354 (print_operand): Likewise.
15356 2011-01-13 Jeff Law <law@redhat.com>
15358 PR rtl-optimization/39077
15359 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15360 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15361 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15362 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15363 * gcse.c (prune_insertions_deletions): New function.
15364 (compute_pre_data): Use it.
15366 2011-01-13 Dodji Seketeli <dodji@redhat.com>
15369 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15371 (prune_unused_types_mark): Use it.
15373 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
15375 PR rtl-optimization/45352
15376 * sel-sched.c: Update copyright years.
15377 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15378 in the advancing loop when we have issued issue_rate insns.
15380 2011-01-12 Richard Henderson <rth@redhat.com>
15382 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15383 (TARGET_MD_ASM_CLOBBERS): New.
15385 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15386 (TARGET_DELEGITIMIZE_ADDRESS): New.
15388 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15389 (clzsi2, *bsch): New patterns.
15391 * config/mn10300/mn10300.md (INT): New mode iterator.
15392 (*mov<INT>_clr): New pattern, and peep2 to generate it.
15394 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15395 flag_split_wide_types.
15397 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15398 (mn10300_trampoline_init): Rewrite without a template, an immediate
15399 load and a direct branch.
15400 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15402 2011-01-12 Anatoly Sokolov <aesok@post.ru>
15404 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15405 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15406 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15407 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15409 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
15412 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15415 2011-01-12 Jan Hubicka <jh@suse.cz>
15418 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15419 (PLUGIN_COND_CLOSE): New macro.
15420 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15422 2011-01-12 Richard Guenther <rguenther@suse.de>
15425 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15426 register variables in a MEM_REF.
15428 2011-01-12 Joseph Myers <joseph@codesourcery.com>
15430 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15431 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15432 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15433 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15434 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15435 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15436 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15437 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15438 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15439 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15440 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15441 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15442 * config/gnu-user.h: New. Copied from linux.h.
15443 (LINUX_TARGET_STARTFILE_SPEC): Rename to
15444 GNU_USER_TARGET_STARTFILE_SPEC.
15445 (LINUX_TARGET_ENDFILE_SPEC): Rename to
15446 GNU_USER_TARGET_ENDFILE_SPEC.
15447 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15448 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15449 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15450 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15451 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15452 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15453 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15454 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15455 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15456 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15457 * config/arm/linux-eabi.h (CC1_SPEC): Use
15458 GNU_USER_TARGET_CC1_SPEC.
15459 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15460 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15461 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15462 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15463 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15464 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15465 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15466 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15468 2011-01-12 Richard Guenther <rguenther@suse.de>
15471 * doc/invoke.texi (ffast-math): Document it is turned on
15474 2011-01-12 Jan Hubicka <jh@suse.cz>
15476 PR tree-optimization/47233
15477 * opts.c (common_handle_option): Disable ipa-reference with profile
15480 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15482 * c-parser.c (c_parser_objc_at_property_declaration): Improved
15485 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
15487 * c-parser.c (c_lex_one_token): Updated and reindented some
15488 comments. No changes in code.
15490 2011-01-11 Ian Lance Taylor <iant@google.com>
15492 * godump.c (go_output_var): Don't output the variable if there is
15493 already a type with the same name.
15495 2011-01-11 Ian Lance Taylor <iant@google.com>
15497 * godump.c (go_format_type): Don't generate float80.
15499 2011-01-11 Richard Henderson <rth@redhat.com>
15501 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15502 declaration. Rewrite for both speed and size.
15503 (mn10300_address_cost_1): Remove.
15504 (mn10300_register_move_cost): New.
15505 (mn10300_memory_move_cost): New.
15506 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
15507 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
15508 extensions, shifts, BSWAP, CLZ.
15509 (mn10300_wide_const_load_uses_clr): Remove.
15510 (TARGET_REGISTER_MOVE_COST): New.
15511 (TARGET_MEMORY_MOVE_COST): New.
15512 * config/mn10300/mn10300-protos.h: Update.
15513 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
15515 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
15516 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
15517 * config/mn10300/mn10300-protos.h: Update.
15518 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15519 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15520 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15521 (*test_int_bitfield, *test_byte_bitfield): Remove.
15522 (*bit_test, *subreg_bit_test): Remove.
15523 * config/mn10300/predicates.md (const_8bit_operand): Remove.
15525 * config/mn10300/constraints.md ("c"): Rename from "A".
15526 ("A", "D"): New constraint letters.
15527 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
15528 (fmssf4, fnmasf4, fnmssf4): Likewise.
15530 * config/mn10300/mn10300.md (isa): New attribute.
15531 (enabled): New attribute.
15533 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
15534 (abssf2, negsf2): Define only for hardware fp.
15535 (sqrtsf2): Reformat.
15536 (addsf3, subsf3, mulsf3): Merge expander and insn.
15538 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
15539 (DEBUGGER_AUTO_OFFSET): Remove.
15540 (DEBUGGER_ARG_OFFSET): Remove.
15542 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
15543 Emit register stores with the same offsets as the hardware.
15544 (mn10300_store_multiple_operation): Don't check that the register
15545 save offsets are monotonic.
15546 * config/mn10300/mn10300-protos.h: Update.
15548 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
15550 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
15551 in terms of the value on the stack, not the MDR register.
15553 2011-01-11 Jan Hubicka <jh@suse.cz>
15557 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
15558 (symbol_alias_set_destroy, symbol_alias_set_contains,
15559 propagate_aliases_backward): Declare.
15560 * lto-streamer-out.c (struct sets): New sturcture.
15561 (trivally_defined_alias): New function.
15562 (output_alias_pair_p): Rewrite.
15563 (output_unreferenced_globals): Fix output of alias pairs.
15564 (produce_symtab): Likewise.
15565 * ipa.c (function_and_variable_visibility): Set weak alias destination
15567 * varasm.c (symbol_alias_set_t): Remove.
15568 (symbol_alias_set_destroy): Export.
15569 (propagate_aliases_forward, propagate_aliases_backward): New functions
15571 (compute_visible_aliases): ... this one; remove.
15572 (trivially_visible_alias): New
15573 (trivially_defined_alias): New.
15574 (remove_unreachable_alias_pairs): Rewrite.
15575 (finish_aliases_1): Reorganize code checking if alias is defined.
15576 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15579 2011-01-11 Richard Guenther <rguenther@suse.de>
15581 PR tree-optimization/46076
15582 * tree-ssa.c (useless_type_conversion_p): Conversions from
15583 unprototyped to empty argument list function types are useless.
15585 2011-01-11 Richard Guenther <rguenther@suse.de>
15587 PR middle-end/45235
15588 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15589 volatile MEMs as MEM_READONLY_P.
15591 2011-01-11 Richard Guenther <rguenther@suse.de>
15593 PR tree-optimization/47239
15594 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15596 2011-01-11 Jeff Law <law@redhat.com>
15598 PR tree-optimization/47086
15599 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15600 IVs from statements that might throw.
15602 2011-01-10 Jan Hubicka <jh@suse.cz>
15605 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15607 2011-01-10 Jan Hubicka <jh@suse.cz>
15610 * profile.c (read_profile_edge_counts): Ignore profile inconistency
15611 when correcting profile.
15613 2011-01-10 Jan Hubicka <jh@suse.cz>
15616 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15617 DECL_FINI_PRIORITY.
15618 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15619 Restore DECL_FINI_PRIORITY.
15621 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15623 * doc/gimple.texi: Fix quoting of multi-word return values in
15624 @deftypefn statements. Ensure presence of return value. Wrap
15625 overlong @deftypefn lines.
15626 (is_gimple_operand, is_gimple_min_invariant_address): Remove
15627 descriptions of removed functions.
15628 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15629 of multi-word return value in @deftypefn statement.
15631 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15633 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15634 (Conditional Expressions, Logical Operators)
15635 (Statement and operand traversals): Do not indent smallexample
15636 code. Fix duplicate function argument in example.
15638 2011-01-10 Jeff Law <law@redhat.com>
15640 PR tree-optimization/47141
15641 * ipa-split.c (split_function): Handle case where we are
15642 returning a value and the return block has a virtual operand phi.
15644 2011-01-10 Jan Hubicka <jh@suse.cz>
15646 PR tree-optimization/47234
15647 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15648 (pass_feedback_split_functions): Declare.
15649 * passes.c (init_optimization_passes): Add ipa-split as subpass of
15651 * ipa-split.c (gate_split_functions): Update comments; disable
15652 split-functions for profile_arc_flag and branch_probabilities.
15653 (gate_feedback_split_functions): New function.
15654 (execute_feedback_split_functions): New function.
15655 (pass_feedback_split_functions): New global var.
15657 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
15660 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15661 calling gimple_call_set_cannot_inline.
15663 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
15665 * config/darwin-sections.def: Remove unused section.
15667 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
15670 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15672 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
15675 * c-parser.c (c_parser_declaration_or_fndef): Improved
15678 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
15680 * config/i386/winnt.c (i386_pe_start_function): Make sure
15681 to switch back to function's section.
15683 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
15687 * plugin.c: Move include of dlfcn.h from here...
15688 * system.h: ... to here.
15690 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15692 * doc/cpp.texi (C++ Named Operators): Fix markup for header
15694 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15695 two extra empty pages in PDF output.
15697 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
15700 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15701 for error recovery purposes behave as if it was not specified so
15702 that the default type is usd.
15704 2011-01-07 Jan Hubicka <jh@suse.cz>
15706 PR tree-optmization/46469
15707 * ipa.c (function_and_variable_visibility): Clear needed flags on
15708 nodes with external decls; handle weakrefs merging correctly.
15710 2011-01-07 Joseph Myers <joseph@codesourcery.com>
15712 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15715 2011-01-07 Jan Hubicka <jh@suse.cz>
15717 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15718 and no longer claim that gold is required for linker plugin.
15719 * configure: Regenerate.
15720 * gcc.c (PLUGIN_COND): New macro.
15721 (LINK_COMMAND_SPEC): Use it.
15722 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15723 * config.in (HAVE_LTO_PLUGIN): New.
15724 * configure.ac (--with-lto-plugin): New parameter; autodetect
15727 2011-01-07 Jan Hubicka <jh@suse.cz>
15729 PR tree-optimization/46367
15730 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15731 when we can update original.
15732 (cgraph_mark_inline_edge): Sanity check.
15733 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15735 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15737 * config/spu/spu.h (ASM_COMMENT_START): Define.
15739 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
15742 * gcc.c (%>S): New.
15743 (SWITCH_KEEP_FOR_GCC): Likewise.
15744 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15745 (do_spec_1): Handle "%>".
15747 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15749 2011-01-07 Jakub Jelinek <jakub@redhat.com>
15752 * config/i386/i386.c (ix86_delegitimize_address): If
15753 simplify_gen_subreg fails, return orig_x.
15756 * value-prof.c (gimple_stringop_fixed_value): Handle
15757 lhs of the call properly.
15759 2011-01-07 Jan Hubicka <jh@suse.cz>
15762 * lto-opt.c (lto_reissue_options): Set flag_shlib.
15764 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15766 * target.def (function_switched_text_sections): New hook.
15767 * doc/tm.texi: Regenerated.
15768 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15769 * final.c (default_function_switched_text_sections): New.
15770 (final_scan_insn): Call function_switched_text_sections when a
15771 mid-function section change occurs.
15772 * output.h (default_function_switched_text_sections): Declare.
15773 * config/darwin-protos.h (darwin_function_switched_text_sections):
15775 * config/darwin.c (darwin_function_switched_text_sections): New.
15776 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15778 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15780 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
15781 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
15782 the secondary code fragment when outputting for DWARF == 2.
15784 2011-01-07 Anatoly Sokolov <aesok@post.ru>
15786 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15787 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
15789 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
15790 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15792 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
15795 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15796 when it is not empty.
15798 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
15801 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15802 (case ${target}): Add btver1.
15803 * config/i386/driver-i386.c (host_detect_local_cpu): Let
15804 -march=native recognize btver1 processors.
15805 * config/i386/i386-c.c (ix86_target_macros_internal): Add
15806 btver1 def_and_undef
15807 * config/i386/i386.c (struct processor_costs btver1_cost): New
15809 (m_BTVER1): New definition.
15810 (m_AMD_MULTIPLE): Includes m_BTVER1.
15811 (initial_ix86_tune_features): Add btver1 tune.
15812 (processor_target_table): Add btver1 entry.
15813 (static const char *const cpu_names): Add btver1 entry.
15814 (software_prefetching_beneficial_p): Add btver1.
15815 (ix86_option_override_internal): Add btver1 instruction sets.
15816 (ix86_issue_rate): Add btver1.
15817 (ix86_adjust_cost): Add btver1.
15818 * config/i386/i386.h (TARGET_BTVER1): New definition.
15819 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
15820 (enum processor_type): Add PROCESSOR_BTVER1.
15821 * config/i386/i386.md (define_attr "cpu"): Add btver1.
15823 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15826 * config/i386/i386.c (legitimize_tls_address)
15827 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
15828 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
15829 (tls_initial_exec_64_sun): New pattern.
15831 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
15833 * doc/invoke.texi (Overall Options): Improve wording and markup
15834 of the description of -wrapper.
15836 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15838 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
15839 rdynamic, threads): New Driver options.
15841 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15844 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
15845 if coming from .tdata.
15846 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
15848 2011-01-06 Jan Hubicka <jh@suse.cz>
15851 * collect2.c (main): Do not enable LTOmode when plugin is active.
15853 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15856 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
15857 --version output if supported.
15858 * configure: Regenerate.
15860 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15862 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
15865 2011-01-06 Jakub Jelinek <jakub@redhat.com>
15868 * c-convert.c (convert): When converting a complex expression
15869 other than COMPLEX_EXPR to a different complex type, ensure
15870 c_save_expr is called instead of save_expr, unless in_late_binary_op.
15871 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
15872 when converting COMPLEX_TYPE.
15874 2011-01-06 Ira Rosen <irar@il.ibm.com>
15876 PR tree-optimization/47139
15877 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
15878 only the last reduction value is used outside the loop. Update
15881 2011-01-05 Joseph Myers <joseph@codesourcery.com>
15883 * config/rtems.opt: New.
15884 * config.gcc (*-*-rtems*): Use rtems.opt.
15886 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
15888 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
15889 processors do not support 3DNow instructions.
15891 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15893 * config/spu/spu.c (spu_option_override): Set parameter
15894 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15896 2011-01-05 Jan Hubicka <jh@suse.cz>
15898 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15899 at the command line.
15901 2011-01-05 Martin Jambor <mjambor@suse.cz>
15904 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15905 deltas on streamed outgoing edges.
15906 (output_node_opt_summary): Output info for outgoing edges only when
15907 the node is in new parameter set.
15908 (output_cgraph_opt_summary): New parameter set, passed to the two
15909 aforementioned functions. Update its forward declaration and its
15912 2011-01-05 Tom Tromey <tromey@redhat.com>
15914 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15915 operator to c_finish_omp_atomic.
15916 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15917 (build_unary_op): Update.
15918 (build_modify_expr): Update.
15919 (build_asm_expr): Update.
15921 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15923 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15924 newly inserted insns.
15925 (pad_bb): Likewise.
15926 (spu_emit_branch_hint): Likewise.
15927 (insert_hbrp_for_ilb_runout): Likewise.
15928 (spu_machine_dependent_reorg): Call df_finish_pass after
15929 schedule_insns returns.
15931 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15933 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15935 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
15937 PR tree-optimization/47005
15938 * tree-sra.c (struct access): Add 'non_addressable' bit.
15939 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15940 (decide_one_param_reduction): Return 0 if the parameter is passed by
15941 reference and one of the accesses in the group is non_addressable.
15943 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15945 PR tree-optimization/47056
15946 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15947 (mark_load): Likewise. Handle FUNCTION_DECL specially.
15948 (mark_store): Likewise. Pass STMT to ipa_record_reference.
15950 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15952 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15953 initializer. Skip view conversions from aggregate types.
15955 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
15958 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15960 2011-01-04 Philipp Thomas <pth@suse.de>
15962 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15965 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15967 * function.c (thread_prologue_and_epilogue_insns): Do not crash
15968 on empty epilogue sequences.
15970 2011-01-04 Joseph Myers <joseph@codesourcery.com>
15972 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15973 non-static): New Driver options.
15975 2011-01-04 Jie Zhang <jie@codesourcery.com>
15978 * gcc.c (default_compilers[]): Set combinable field to 0
15979 for all assembly languages.
15981 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
15983 * config/mips/loongson3a.md: New file.
15984 * config/mips/mips.md: Include loongson3a.md.
15985 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15988 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
15990 PR middle-end/47017
15991 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15992 instead of convert_memory_address_addr_space on the base expression.
15994 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15996 * config/spu/spu.c (spu_option_override): Update error text
15997 for bad -march= / -mtune= values.
15999 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16001 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16002 if branch-hint optimization will be performed.
16004 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16006 PR tree-optimization/47148
16007 * ipa-split.c (split_function): Convert arguments to
16008 DECL_ARG_TYPE if possible.
16010 PR tree-optimization/47155
16011 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16012 when computing uns.
16014 PR rtl-optimization/47157
16015 * combine.c (try_combine): If undobuf.other_insn becomes
16016 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16017 and set *new_direct_jump_p too.
16019 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16021 PR tree-optimization/47021
16022 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16024 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16026 * gcc.c (process_command): Update copyright notice dates.
16027 * gcov.c (print_version): Likewise.
16028 * gcov-dump.c (print_version): Likewise.
16029 * mips-tfile.c (main): Likewise.
16030 * mips-tdump.c (main): Likewise.
16032 2011-01-03 Martin Jambor <mjambor@suse.cz>
16034 PR tree-optimization/46801
16035 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16036 aggregate fields start at byte boundary instead of the bit-field flag.
16038 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16041 * gcc.c (main): Revert revision 168407.
16043 2011-01-03 Martin Jambor <mjambor@suse.cz>
16045 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16047 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16049 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16050 vector optab to expand vector/scalar shift, update gimple to vector.
16052 2011-01-03 Martin Jambor <mjambor@suse.cz>
16054 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16057 2011-01-03 Martin Jambor <mjambor@suse.cz>
16059 PR tree-optimization/46984
16060 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16062 (cgraph_create_indirect_edge): Fixed line length.
16063 (cgraph_indirect_call_info): Declare.
16064 (cgraph_make_edge_direct) Update declaration.
16065 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16066 (cgraph_create_indirect_edge): Use it.
16067 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16069 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16070 the new thunk_delta representation.
16071 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16073 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16074 (ipa_read_indirect_edge_info): Likewise.
16075 * lto-cgraph.c (output_edge_opt_summary): New function.
16076 (output_node_opt_summary): Call it on all outgoing edges.
16077 (input_edge_opt_summary): New function.
16078 (input_node_opt_summary): Call it on all outgoing edges.
16080 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16083 * gcc.c (main): Don't check have_o when settting combine_inputs.
16085 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16087 * regrename.c: Add general comment describing the pass.
16088 (struct du_head): Remove 'length' field.
16089 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16090 (regrename_optimize): Do not sort chains. Rework comments, add others.
16091 Force renaming to the preferred class (if any) in the first pass and do
16092 not consider registers that belong to it in the second pass.
16093 (create_new_chain): Do not set 'length' field.
16094 (scan_rtx_reg): Likewise.
16096 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16098 PR tree-optimization/47140
16099 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16100 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16101 to bit_value_binop.
16103 PR rtl-optimization/47028
16104 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16105 parm_birth_insn instead of at the beginning of first bb.
16107 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16109 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16110 Remove the word "see" before "@pxref".
16111 * doc/rtl.texi: Remove the word "see" before "@pxref".
16113 2011-01-01 Jan Hubicka <jh@suse.cz>
16115 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16118 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
16121 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16124 Copyright (C) 2011 Free Software Foundation, Inc.
16126 Copying and distribution of this file, with or without modification,
16127 are permitted in any medium without royalty provided the copyright
16128 notice and this notice are preserved.